A better Rust ATProto crate

codegen works, generates reasonable looking source

Orual 7daab148 85ef9905

+3407 -725
+1
Cargo.lock
··· 820 name = "jacquard-lexicon" 821 version = "0.1.0" 822 dependencies = [ 823 "heck 0.5.0", 824 "itertools", 825 "jacquard-common",
··· 820 name = "jacquard-lexicon" 821 version = "0.1.0" 822 dependencies = [ 823 + "clap", 824 "heck 0.5.0", 825 "itertools", 826 "jacquard-common",
+6 -1
crates/jacquard-api/src/app_bsky.rs
··· 1 pub mod actor; 2 pub mod bookmark; 3 pub mod embed; ··· 7 pub mod notification; 8 pub mod richtext; 9 pub mod unspecced; 10 - pub mod video;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod actor; 7 pub mod bookmark; 8 pub mod embed; ··· 12 pub mod notification; 13 pub mod richtext; 14 pub mod unspecced; 15 + pub mod video;
+109 -29
crates/jacquard-api/src/app_bsky/actor.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct AdultContentPref<'a> { 5 pub enabled: bool, 6 } 7 ///If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 12 #[serde(borrow)] 13 pub guide: jacquard_common::CowStr<'a>, 14 } 15 ///A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 21 #[serde(borrow)] 22 pub active_progress_guide: std::option::Option< 23 - jacquard_common::types::value::Data<'a>, 24 >, 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub nuxs: std::option::Option<Vec<crate::app_bsky::actor::Nux<'a>>>, 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub queued_nudges: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 31 } 32 #[jacquard_derive::lexicon] 33 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 34 #[serde(rename_all = "camelCase")] 35 pub struct ContentLabelPref<'a> { 36 #[serde(borrow)] 37 pub label: jacquard_common::CowStr<'a>, 38 #[serde(skip_serializing_if = "std::option::Option::is_none")] 39 #[serde(borrow)] 40 pub labeler_did: std::option::Option<jacquard_common::types::string::Did<'a>>, 41 #[serde(borrow)] 42 pub visibility: jacquard_common::CowStr<'a>, 43 } 44 #[jacquard_derive::lexicon] 45 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 46 #[serde(rename_all = "camelCase")] 47 pub struct FeedViewPref<'a> { 48 #[serde(borrow)] 49 pub feed: jacquard_common::CowStr<'a>, 50 #[serde(skip_serializing_if = "std::option::Option::is_none")] 51 pub hide_quote_posts: std::option::Option<bool>, 52 #[serde(skip_serializing_if = "std::option::Option::is_none")] 53 pub hide_replies: std::option::Option<bool>, 54 #[serde(skip_serializing_if = "std::option::Option::is_none")] 55 pub hide_replies_by_like_count: std::option::Option<i64>, 56 #[serde(skip_serializing_if = "std::option::Option::is_none")] 57 pub hide_replies_by_unfollowed: std::option::Option<bool>, 58 #[serde(skip_serializing_if = "std::option::Option::is_none")] 59 pub hide_reposts: std::option::Option<bool>, 60 } 61 #[jacquard_derive::lexicon] 62 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 63 #[serde(rename_all = "camelCase")] 64 pub struct HiddenPostsPref<'a> { 65 #[serde(borrow)] 66 pub items: Vec<jacquard_common::types::string::AtUri<'a>>, 67 } 68 #[jacquard_derive::lexicon] 69 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 70 #[serde(rename_all = "camelCase")] 71 pub struct InterestsPref<'a> { 72 #[serde(borrow)] 73 pub tags: Vec<jacquard_common::CowStr<'a>>, 74 } 75 ///The subject's followers whom you also follow 76 #[jacquard_derive::lexicon] 77 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 79 pub struct KnownFollowers<'a> { 80 pub count: i64, 81 #[serde(borrow)] 82 - pub followers: Vec<jacquard_common::types::value::Data<'a>>, 83 } 84 #[jacquard_derive::lexicon] 85 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 86 #[serde(rename_all = "camelCase")] ··· 88 #[serde(borrow)] 89 pub did: jacquard_common::types::string::Did<'a>, 90 } 91 #[jacquard_derive::lexicon] 92 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 93 #[serde(rename_all = "camelCase")] 94 pub struct LabelersPref<'a> { 95 #[serde(borrow)] 96 - pub labelers: Vec<jacquard_common::types::value::Data<'a>>, 97 } 98 ///A word that the account owner has muted. 99 #[jacquard_derive::lexicon] 100 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 101 #[serde(rename_all = "camelCase")] 102 pub struct MutedWord<'a> { 103 #[serde(skip_serializing_if = "std::option::Option::is_none")] 104 #[serde(borrow)] 105 pub actor_target: std::option::Option<jacquard_common::CowStr<'a>>, 106 #[serde(skip_serializing_if = "std::option::Option::is_none")] 107 pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>, 108 #[serde(skip_serializing_if = "std::option::Option::is_none")] 109 #[serde(borrow)] 110 pub id: std::option::Option<jacquard_common::CowStr<'a>>, 111 #[serde(borrow)] 112 pub targets: Vec<crate::app_bsky::actor::MutedWordTarget<'a>>, 113 #[serde(borrow)] 114 pub value: jacquard_common::CowStr<'a>, 115 } 116 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 117 pub enum MutedWordTarget<'a> { 118 Content, 119 Tag, 120 Other(jacquard_common::CowStr<'a>), 121 } 122 impl<'a> MutedWordTarget<'a> { 123 pub fn as_str(&self) -> &str { 124 match self { ··· 128 } 129 } 130 } 131 impl<'a> From<&'a str> for MutedWordTarget<'a> { 132 fn from(s: &'a str) -> Self { 133 match s { ··· 137 } 138 } 139 } 140 impl<'a> From<String> for MutedWordTarget<'a> { 141 fn from(s: String) -> Self { 142 match s.as_str() { ··· 146 } 147 } 148 } 149 impl<'a> AsRef<str> for MutedWordTarget<'a> { 150 fn as_ref(&self) -> &str { 151 self.as_str() 152 } 153 } 154 impl<'a> serde::Serialize for MutedWordTarget<'a> { 155 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 156 where ··· 159 serializer.serialize_str(self.as_str()) 160 } 161 } 162 impl<'de, 'a> serde::Deserialize<'de> for MutedWordTarget<'a> 163 where 164 'de: 'a, ··· 171 Ok(Self::from(s)) 172 } 173 } 174 #[jacquard_derive::lexicon] 175 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 176 #[serde(rename_all = "camelCase")] 177 pub struct MutedWordsPref<'a> { 178 #[serde(borrow)] 179 pub items: Vec<crate::app_bsky::actor::MutedWord<'a>>, 180 } 181 ///A new user experiences (NUX) storage object 182 #[jacquard_derive::lexicon] 183 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 184 #[serde(rename_all = "camelCase")] 185 pub struct Nux<'a> { 186 pub completed: bool, 187 #[serde(skip_serializing_if = "std::option::Option::is_none")] 188 #[serde(borrow)] 189 pub data: std::option::Option<jacquard_common::CowStr<'a>>, 190 #[serde(skip_serializing_if = "std::option::Option::is_none")] 191 pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>, 192 #[serde(borrow)] 193 pub id: jacquard_common::CowStr<'a>, 194 } 195 #[jacquard_derive::lexicon] 196 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 197 #[serde(rename_all = "camelCase")] 198 pub struct PersonalDetailsPref<'a> { 199 #[serde(skip_serializing_if = "std::option::Option::is_none")] 200 pub birth_date: std::option::Option<jacquard_common::types::string::Datetime>, 201 } 202 ///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. 203 #[jacquard_derive::lexicon] 204 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 205 #[serde(rename_all = "camelCase")] 206 pub struct PostInteractionSettingsPref<'a> { 207 #[serde(skip_serializing_if = "std::option::Option::is_none")] 208 #[serde(borrow)] 209 pub postgate_embedding_rules: std::option::Option< 210 Vec<jacquard_common::types::value::Data<'a>>, 211 >, 212 #[serde(skip_serializing_if = "std::option::Option::is_none")] 213 #[serde(borrow)] 214 pub threadgate_allow_rules: std::option::Option< 215 Vec<jacquard_common::types::value::Data<'a>>, 216 >, 217 } 218 pub type Preferences<'a> = Vec<jacquard_common::types::value::Data<'a>>; 219 #[jacquard_derive::lexicon] 220 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 223 #[serde(skip_serializing_if = "std::option::Option::is_none")] 224 #[serde(borrow)] 225 pub activity_subscription: std::option::Option< 226 - jacquard_common::types::value::Data<'a>, 227 >, 228 #[serde(skip_serializing_if = "std::option::Option::is_none")] 229 #[serde(borrow)] 230 - pub chat: std::option::Option<jacquard_common::types::value::Data<'a>>, 231 #[serde(skip_serializing_if = "std::option::Option::is_none")] 232 pub feedgens: std::option::Option<i64>, 233 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 237 #[serde(skip_serializing_if = "std::option::Option::is_none")] 238 pub starter_packs: std::option::Option<i64>, 239 } 240 #[jacquard_derive::lexicon] 241 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 242 #[serde(rename_all = "camelCase")] ··· 244 #[serde(borrow)] 245 pub allow_subscriptions: jacquard_common::CowStr<'a>, 246 } 247 #[jacquard_derive::lexicon] 248 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 249 #[serde(rename_all = "camelCase")] ··· 251 #[serde(borrow)] 252 pub allow_incoming: jacquard_common::CowStr<'a>, 253 } 254 #[jacquard_derive::lexicon] 255 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 256 #[serde(rename_all = "camelCase")] 257 pub struct ProfileView<'a> { 258 #[serde(skip_serializing_if = "std::option::Option::is_none")] 259 #[serde(borrow)] 260 - pub associated: std::option::Option<jacquard_common::types::value::Data<'a>>, 261 #[serde(skip_serializing_if = "std::option::Option::is_none")] 262 #[serde(borrow)] 263 pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>, ··· 283 pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>, 284 #[serde(skip_serializing_if = "std::option::Option::is_none")] 285 #[serde(borrow)] 286 - pub status: std::option::Option<jacquard_common::types::value::Data<'a>>, 287 #[serde(skip_serializing_if = "std::option::Option::is_none")] 288 #[serde(borrow)] 289 - pub verification: std::option::Option<jacquard_common::types::value::Data<'a>>, 290 #[serde(skip_serializing_if = "std::option::Option::is_none")] 291 #[serde(borrow)] 292 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 293 } 294 #[jacquard_derive::lexicon] 295 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 296 #[serde(rename_all = "camelCase")] 297 pub struct ProfileViewBasic<'a> { 298 #[serde(skip_serializing_if = "std::option::Option::is_none")] 299 #[serde(borrow)] 300 - pub associated: std::option::Option<jacquard_common::types::value::Data<'a>>, 301 #[serde(skip_serializing_if = "std::option::Option::is_none")] 302 #[serde(borrow)] 303 pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>, ··· 318 pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>, 319 #[serde(skip_serializing_if = "std::option::Option::is_none")] 320 #[serde(borrow)] 321 - pub status: std::option::Option<jacquard_common::types::value::Data<'a>>, 322 #[serde(skip_serializing_if = "std::option::Option::is_none")] 323 #[serde(borrow)] 324 - pub verification: std::option::Option<jacquard_common::types::value::Data<'a>>, 325 #[serde(skip_serializing_if = "std::option::Option::is_none")] 326 #[serde(borrow)] 327 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 328 } 329 #[jacquard_derive::lexicon] 330 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 331 #[serde(rename_all = "camelCase")] 332 pub struct ProfileViewDetailed<'a> { 333 #[serde(skip_serializing_if = "std::option::Option::is_none")] 334 #[serde(borrow)] 335 - pub associated: std::option::Option<jacquard_common::types::value::Data<'a>>, 336 #[serde(skip_serializing_if = "std::option::Option::is_none")] 337 #[serde(borrow)] 338 pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>, ··· 377 pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>, 378 #[serde(skip_serializing_if = "std::option::Option::is_none")] 379 #[serde(borrow)] 380 - pub status: std::option::Option<jacquard_common::types::value::Data<'a>>, 381 #[serde(skip_serializing_if = "std::option::Option::is_none")] 382 #[serde(borrow)] 383 - pub verification: std::option::Option<jacquard_common::types::value::Data<'a>>, 384 #[serde(skip_serializing_if = "std::option::Option::is_none")] 385 #[serde(borrow)] 386 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 387 #[serde(skip_serializing_if = "std::option::Option::is_none")] 388 #[serde(borrow)] 389 pub website: std::option::Option<jacquard_common::types::string::Uri<'a>>, 390 } 391 #[jacquard_derive::lexicon] 392 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 393 #[serde(rename_all = "camelCase")] ··· 400 #[serde(borrow)] 401 pub value: jacquard_common::CowStr<'a>, 402 } 403 #[jacquard_derive::lexicon] 404 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 405 #[serde(rename_all = "camelCase")] ··· 411 #[serde(skip_serializing_if = "std::option::Option::is_none")] 412 pub timeline_index: std::option::Option<i64>, 413 } 414 #[jacquard_derive::lexicon] 415 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 416 #[serde(rename_all = "camelCase")] ··· 418 #[serde(borrow)] 419 pub items: Vec<crate::app_bsky::actor::SavedFeed<'a>>, 420 } 421 #[jacquard_derive::lexicon] 422 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 423 #[serde(rename_all = "camelCase")] 424 pub struct StatusView<'a> { 425 #[serde(skip_serializing_if = "std::option::Option::is_none")] 426 #[serde(borrow)] 427 pub embed: std::option::Option<StatusViewRecordEmbed<'a>>, 428 #[serde(skip_serializing_if = "std::option::Option::is_none")] 429 pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>, 430 #[serde(skip_serializing_if = "std::option::Option::is_none")] 431 pub is_active: std::option::Option<bool>, 432 #[serde(borrow)] 433 pub record: jacquard_common::types::value::Data<'a>, 434 #[serde(borrow)] 435 pub status: jacquard_common::CowStr<'a>, 436 } 437 #[jacquard_derive::open_union] 438 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 439 #[serde(tag = "$type")] ··· 442 #[serde(rename = "app.bsky.embed.external#view")] 443 ExternalView(Box<crate::app_bsky::embed::external::View<'a>>), 444 } 445 #[jacquard_derive::lexicon] 446 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 447 #[serde(rename_all = "camelCase")] 448 pub struct ThreadViewPref<'a> { 449 #[serde(skip_serializing_if = "std::option::Option::is_none")] 450 pub prioritize_followed_users: std::option::Option<bool>, 451 #[serde(skip_serializing_if = "std::option::Option::is_none")] 452 #[serde(borrow)] 453 pub sort: std::option::Option<jacquard_common::CowStr<'a>>, 454 } 455 ///Preferences for how verified accounts appear in the app. 456 #[jacquard_derive::lexicon] 457 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 458 #[serde(rename_all = "camelCase")] 459 pub struct VerificationPrefs<'a> { 460 #[serde(skip_serializing_if = "std::option::Option::is_none")] 461 pub hide_badges: std::option::Option<bool>, 462 } 463 ///Represents the verification information about the user this object is attached to. 464 #[jacquard_derive::lexicon] 465 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 466 #[serde(rename_all = "camelCase")] 467 pub struct VerificationState<'a> { 468 #[serde(borrow)] 469 pub trusted_verifier_status: jacquard_common::CowStr<'a>, 470 #[serde(borrow)] 471 - pub verifications: Vec<jacquard_common::types::value::Data<'a>>, 472 #[serde(borrow)] 473 pub verified_status: jacquard_common::CowStr<'a>, 474 } 475 ///An individual verification for an associated subject. 476 #[jacquard_derive::lexicon] 477 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 478 #[serde(rename_all = "camelCase")] 479 pub struct VerificationView<'a> { 480 pub created_at: jacquard_common::types::string::Datetime, 481 pub is_valid: bool, 482 #[serde(borrow)] 483 pub issuer: jacquard_common::types::string::Did<'a>, 484 #[serde(borrow)] 485 pub uri: jacquard_common::types::string::AtUri<'a>, 486 } 487 ///Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. 488 #[jacquard_derive::lexicon] 489 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 490 #[serde(rename_all = "camelCase")] 491 pub struct ViewerState<'a> { 492 #[serde(skip_serializing_if = "std::option::Option::is_none")] 493 #[serde(borrow)] 494 pub activity_subscription: std::option::Option< ··· 508 #[serde(skip_serializing_if = "std::option::Option::is_none")] 509 #[serde(borrow)] 510 pub following: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 511 #[serde(skip_serializing_if = "std::option::Option::is_none")] 512 #[serde(borrow)] 513 - pub known_followers: std::option::Option<jacquard_common::types::value::Data<'a>>, 514 #[serde(skip_serializing_if = "std::option::Option::is_none")] 515 pub muted: std::option::Option<bool>, 516 #[serde(skip_serializing_if = "std::option::Option::is_none")] 517 #[serde(borrow)] 518 pub muted_by_list: std::option::Option<crate::app_bsky::graph::ListViewBasic<'a>>, 519 - } 520 - pub mod get_preferences; 521 - pub mod get_profile; 522 - pub mod get_profiles; 523 - pub mod get_suggestions; 524 - pub mod profile; 525 - pub mod put_preferences; 526 - pub mod search_actors; 527 - pub mod search_actors_typeahead; 528 - pub mod status;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod get_preferences; 7 + pub mod get_profile; 8 + pub mod get_profiles; 9 + pub mod get_suggestions; 10 + pub mod profile; 11 + pub mod put_preferences; 12 + pub mod search_actors; 13 + pub mod search_actors_typeahead; 14 + pub mod status; 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct AdultContentPref<'a> { 20 pub enabled: bool, 21 } 22 + 23 ///If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 28 #[serde(borrow)] 29 pub guide: jacquard_common::CowStr<'a>, 30 } 31 + 32 ///A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. 33 #[jacquard_derive::lexicon] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 37 #[serde(skip_serializing_if = "std::option::Option::is_none")] 38 #[serde(borrow)] 39 pub active_progress_guide: std::option::Option< 40 + crate::app_bsky::actor::BskyAppProgressGuide<'a>, 41 >, 42 + ///Storage for NUXs the user has encountered. 43 #[serde(skip_serializing_if = "std::option::Option::is_none")] 44 #[serde(borrow)] 45 pub nuxs: std::option::Option<Vec<crate::app_bsky::actor::Nux<'a>>>, 46 + ///An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. 47 #[serde(skip_serializing_if = "std::option::Option::is_none")] 48 #[serde(borrow)] 49 pub queued_nudges: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 50 } 51 + 52 #[jacquard_derive::lexicon] 53 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 54 #[serde(rename_all = "camelCase")] 55 pub struct ContentLabelPref<'a> { 56 #[serde(borrow)] 57 pub label: jacquard_common::CowStr<'a>, 58 + ///Which labeler does this preference apply to? If undefined, applies globally. 59 #[serde(skip_serializing_if = "std::option::Option::is_none")] 60 #[serde(borrow)] 61 pub labeler_did: std::option::Option<jacquard_common::types::string::Did<'a>>, 62 #[serde(borrow)] 63 pub visibility: jacquard_common::CowStr<'a>, 64 } 65 + 66 #[jacquard_derive::lexicon] 67 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 68 #[serde(rename_all = "camelCase")] 69 pub struct FeedViewPref<'a> { 70 + ///The URI of the feed, or an identifier which describes the feed. 71 #[serde(borrow)] 72 pub feed: jacquard_common::CowStr<'a>, 73 + ///Hide quote posts in the feed. 74 #[serde(skip_serializing_if = "std::option::Option::is_none")] 75 pub hide_quote_posts: std::option::Option<bool>, 76 + ///Hide replies in the feed. 77 #[serde(skip_serializing_if = "std::option::Option::is_none")] 78 pub hide_replies: std::option::Option<bool>, 79 + ///Hide replies in the feed if they do not have this number of likes. 80 #[serde(skip_serializing_if = "std::option::Option::is_none")] 81 pub hide_replies_by_like_count: std::option::Option<i64>, 82 + ///Hide replies in the feed if they are not by followed users. 83 #[serde(skip_serializing_if = "std::option::Option::is_none")] 84 pub hide_replies_by_unfollowed: std::option::Option<bool>, 85 + ///Hide reposts in the feed. 86 #[serde(skip_serializing_if = "std::option::Option::is_none")] 87 pub hide_reposts: std::option::Option<bool>, 88 } 89 + 90 #[jacquard_derive::lexicon] 91 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 92 #[serde(rename_all = "camelCase")] 93 pub struct HiddenPostsPref<'a> { 94 + ///A list of URIs of posts the account owner has hidden. 95 #[serde(borrow)] 96 pub items: Vec<jacquard_common::types::string::AtUri<'a>>, 97 } 98 + 99 #[jacquard_derive::lexicon] 100 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 101 #[serde(rename_all = "camelCase")] 102 pub struct InterestsPref<'a> { 103 + ///A list of tags which describe the account owner's interests gathered during onboarding. 104 #[serde(borrow)] 105 pub tags: Vec<jacquard_common::CowStr<'a>>, 106 } 107 + 108 ///The subject's followers whom you also follow 109 #[jacquard_derive::lexicon] 110 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 112 pub struct KnownFollowers<'a> { 113 pub count: i64, 114 #[serde(borrow)] 115 + pub followers: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>, 116 } 117 + 118 #[jacquard_derive::lexicon] 119 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 120 #[serde(rename_all = "camelCase")] ··· 122 #[serde(borrow)] 123 pub did: jacquard_common::types::string::Did<'a>, 124 } 125 + 126 #[jacquard_derive::lexicon] 127 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 128 #[serde(rename_all = "camelCase")] 129 pub struct LabelersPref<'a> { 130 #[serde(borrow)] 131 + pub labelers: Vec<crate::app_bsky::actor::LabelerPrefItem<'a>>, 132 } 133 + 134 ///A word that the account owner has muted. 135 #[jacquard_derive::lexicon] 136 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 137 #[serde(rename_all = "camelCase")] 138 pub struct MutedWord<'a> { 139 + ///Groups of users to apply the muted word to. If undefined, applies to all users. 140 #[serde(skip_serializing_if = "std::option::Option::is_none")] 141 #[serde(borrow)] 142 pub actor_target: std::option::Option<jacquard_common::CowStr<'a>>, 143 + ///The date and time at which the muted word will expire and no longer be applied. 144 #[serde(skip_serializing_if = "std::option::Option::is_none")] 145 pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>, 146 #[serde(skip_serializing_if = "std::option::Option::is_none")] 147 #[serde(borrow)] 148 pub id: std::option::Option<jacquard_common::CowStr<'a>>, 149 + ///The intended targets of the muted word. 150 #[serde(borrow)] 151 pub targets: Vec<crate::app_bsky::actor::MutedWordTarget<'a>>, 152 + ///The muted word itself. 153 #[serde(borrow)] 154 pub value: jacquard_common::CowStr<'a>, 155 } 156 + 157 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 158 pub enum MutedWordTarget<'a> { 159 Content, 160 Tag, 161 Other(jacquard_common::CowStr<'a>), 162 } 163 + 164 impl<'a> MutedWordTarget<'a> { 165 pub fn as_str(&self) -> &str { 166 match self { ··· 170 } 171 } 172 } 173 + 174 impl<'a> From<&'a str> for MutedWordTarget<'a> { 175 fn from(s: &'a str) -> Self { 176 match s { ··· 180 } 181 } 182 } 183 + 184 impl<'a> From<String> for MutedWordTarget<'a> { 185 fn from(s: String) -> Self { 186 match s.as_str() { ··· 190 } 191 } 192 } 193 + 194 impl<'a> AsRef<str> for MutedWordTarget<'a> { 195 fn as_ref(&self) -> &str { 196 self.as_str() 197 } 198 } 199 + 200 impl<'a> serde::Serialize for MutedWordTarget<'a> { 201 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 202 where ··· 205 serializer.serialize_str(self.as_str()) 206 } 207 } 208 + 209 impl<'de, 'a> serde::Deserialize<'de> for MutedWordTarget<'a> 210 where 211 'de: 'a, ··· 218 Ok(Self::from(s)) 219 } 220 } 221 + 222 #[jacquard_derive::lexicon] 223 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 224 #[serde(rename_all = "camelCase")] 225 pub struct MutedWordsPref<'a> { 226 + ///A list of words the account owner has muted. 227 #[serde(borrow)] 228 pub items: Vec<crate::app_bsky::actor::MutedWord<'a>>, 229 } 230 + 231 ///A new user experiences (NUX) storage object 232 #[jacquard_derive::lexicon] 233 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 234 #[serde(rename_all = "camelCase")] 235 pub struct Nux<'a> { 236 pub completed: bool, 237 + ///Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. 238 #[serde(skip_serializing_if = "std::option::Option::is_none")] 239 #[serde(borrow)] 240 pub data: std::option::Option<jacquard_common::CowStr<'a>>, 241 + ///The date and time at which the NUX will expire and should be considered completed. 242 #[serde(skip_serializing_if = "std::option::Option::is_none")] 243 pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>, 244 #[serde(borrow)] 245 pub id: jacquard_common::CowStr<'a>, 246 } 247 + 248 #[jacquard_derive::lexicon] 249 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 250 #[serde(rename_all = "camelCase")] 251 pub struct PersonalDetailsPref<'a> { 252 + ///The birth date of account owner. 253 #[serde(skip_serializing_if = "std::option::Option::is_none")] 254 pub birth_date: std::option::Option<jacquard_common::types::string::Datetime>, 255 } 256 + 257 ///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. 258 #[jacquard_derive::lexicon] 259 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 260 #[serde(rename_all = "camelCase")] 261 pub struct PostInteractionSettingsPref<'a> { 262 + ///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. 263 #[serde(skip_serializing_if = "std::option::Option::is_none")] 264 #[serde(borrow)] 265 pub postgate_embedding_rules: std::option::Option< 266 Vec<jacquard_common::types::value::Data<'a>>, 267 >, 268 + ///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. 269 #[serde(skip_serializing_if = "std::option::Option::is_none")] 270 #[serde(borrow)] 271 pub threadgate_allow_rules: std::option::Option< 272 Vec<jacquard_common::types::value::Data<'a>>, 273 >, 274 } 275 + 276 pub type Preferences<'a> = Vec<jacquard_common::types::value::Data<'a>>; 277 #[jacquard_derive::lexicon] 278 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 281 #[serde(skip_serializing_if = "std::option::Option::is_none")] 282 #[serde(borrow)] 283 pub activity_subscription: std::option::Option< 284 + crate::app_bsky::actor::ProfileAssociatedActivitySubscription<'a>, 285 >, 286 #[serde(skip_serializing_if = "std::option::Option::is_none")] 287 #[serde(borrow)] 288 + pub chat: std::option::Option<crate::app_bsky::actor::ProfileAssociatedChat<'a>>, 289 #[serde(skip_serializing_if = "std::option::Option::is_none")] 290 pub feedgens: std::option::Option<i64>, 291 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 295 #[serde(skip_serializing_if = "std::option::Option::is_none")] 296 pub starter_packs: std::option::Option<i64>, 297 } 298 + 299 #[jacquard_derive::lexicon] 300 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 301 #[serde(rename_all = "camelCase")] ··· 303 #[serde(borrow)] 304 pub allow_subscriptions: jacquard_common::CowStr<'a>, 305 } 306 + 307 #[jacquard_derive::lexicon] 308 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 309 #[serde(rename_all = "camelCase")] ··· 311 #[serde(borrow)] 312 pub allow_incoming: jacquard_common::CowStr<'a>, 313 } 314 + 315 #[jacquard_derive::lexicon] 316 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 317 #[serde(rename_all = "camelCase")] 318 pub struct ProfileView<'a> { 319 #[serde(skip_serializing_if = "std::option::Option::is_none")] 320 #[serde(borrow)] 321 + pub associated: std::option::Option<crate::app_bsky::actor::ProfileAssociated<'a>>, 322 #[serde(skip_serializing_if = "std::option::Option::is_none")] 323 #[serde(borrow)] 324 pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>, ··· 344 pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>, 345 #[serde(skip_serializing_if = "std::option::Option::is_none")] 346 #[serde(borrow)] 347 + pub status: std::option::Option<crate::app_bsky::actor::StatusView<'a>>, 348 #[serde(skip_serializing_if = "std::option::Option::is_none")] 349 #[serde(borrow)] 350 + pub verification: std::option::Option<crate::app_bsky::actor::VerificationState<'a>>, 351 #[serde(skip_serializing_if = "std::option::Option::is_none")] 352 #[serde(borrow)] 353 + pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>, 354 } 355 + 356 #[jacquard_derive::lexicon] 357 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 358 #[serde(rename_all = "camelCase")] 359 pub struct ProfileViewBasic<'a> { 360 #[serde(skip_serializing_if = "std::option::Option::is_none")] 361 #[serde(borrow)] 362 + pub associated: std::option::Option<crate::app_bsky::actor::ProfileAssociated<'a>>, 363 #[serde(skip_serializing_if = "std::option::Option::is_none")] 364 #[serde(borrow)] 365 pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>, ··· 380 pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>, 381 #[serde(skip_serializing_if = "std::option::Option::is_none")] 382 #[serde(borrow)] 383 + pub status: std::option::Option<crate::app_bsky::actor::StatusView<'a>>, 384 #[serde(skip_serializing_if = "std::option::Option::is_none")] 385 #[serde(borrow)] 386 + pub verification: std::option::Option<crate::app_bsky::actor::VerificationState<'a>>, 387 #[serde(skip_serializing_if = "std::option::Option::is_none")] 388 #[serde(borrow)] 389 + pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>, 390 } 391 + 392 #[jacquard_derive::lexicon] 393 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 394 #[serde(rename_all = "camelCase")] 395 pub struct ProfileViewDetailed<'a> { 396 #[serde(skip_serializing_if = "std::option::Option::is_none")] 397 #[serde(borrow)] 398 + pub associated: std::option::Option<crate::app_bsky::actor::ProfileAssociated<'a>>, 399 #[serde(skip_serializing_if = "std::option::Option::is_none")] 400 #[serde(borrow)] 401 pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>, ··· 440 pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>, 441 #[serde(skip_serializing_if = "std::option::Option::is_none")] 442 #[serde(borrow)] 443 + pub status: std::option::Option<crate::app_bsky::actor::StatusView<'a>>, 444 #[serde(skip_serializing_if = "std::option::Option::is_none")] 445 #[serde(borrow)] 446 + pub verification: std::option::Option<crate::app_bsky::actor::VerificationState<'a>>, 447 #[serde(skip_serializing_if = "std::option::Option::is_none")] 448 #[serde(borrow)] 449 + pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>, 450 #[serde(skip_serializing_if = "std::option::Option::is_none")] 451 #[serde(borrow)] 452 pub website: std::option::Option<jacquard_common::types::string::Uri<'a>>, 453 } 454 + 455 #[jacquard_derive::lexicon] 456 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 457 #[serde(rename_all = "camelCase")] ··· 464 #[serde(borrow)] 465 pub value: jacquard_common::CowStr<'a>, 466 } 467 + 468 #[jacquard_derive::lexicon] 469 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 470 #[serde(rename_all = "camelCase")] ··· 476 #[serde(skip_serializing_if = "std::option::Option::is_none")] 477 pub timeline_index: std::option::Option<i64>, 478 } 479 + 480 #[jacquard_derive::lexicon] 481 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 482 #[serde(rename_all = "camelCase")] ··· 484 #[serde(borrow)] 485 pub items: Vec<crate::app_bsky::actor::SavedFeed<'a>>, 486 } 487 + 488 #[jacquard_derive::lexicon] 489 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 490 #[serde(rename_all = "camelCase")] 491 pub struct StatusView<'a> { 492 + ///An optional embed associated with the status. 493 #[serde(skip_serializing_if = "std::option::Option::is_none")] 494 #[serde(borrow)] 495 pub embed: std::option::Option<StatusViewRecordEmbed<'a>>, 496 + ///The date when this status will expire. The application might choose to no longer return the status after expiration. 497 #[serde(skip_serializing_if = "std::option::Option::is_none")] 498 pub expires_at: std::option::Option<jacquard_common::types::string::Datetime>, 499 + ///True if the status is not expired, false if it is expired. Only present if expiration was set. 500 #[serde(skip_serializing_if = "std::option::Option::is_none")] 501 pub is_active: std::option::Option<bool>, 502 #[serde(borrow)] 503 pub record: jacquard_common::types::value::Data<'a>, 504 + ///The status for the account. 505 #[serde(borrow)] 506 pub status: jacquard_common::CowStr<'a>, 507 } 508 + 509 #[jacquard_derive::open_union] 510 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 511 #[serde(tag = "$type")] ··· 514 #[serde(rename = "app.bsky.embed.external#view")] 515 ExternalView(Box<crate::app_bsky::embed::external::View<'a>>), 516 } 517 + 518 #[jacquard_derive::lexicon] 519 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 520 #[serde(rename_all = "camelCase")] 521 pub struct ThreadViewPref<'a> { 522 + ///Show followed users at the top of all replies. 523 #[serde(skip_serializing_if = "std::option::Option::is_none")] 524 pub prioritize_followed_users: std::option::Option<bool>, 525 + ///Sorting mode for threads. 526 #[serde(skip_serializing_if = "std::option::Option::is_none")] 527 #[serde(borrow)] 528 pub sort: std::option::Option<jacquard_common::CowStr<'a>>, 529 } 530 + 531 ///Preferences for how verified accounts appear in the app. 532 #[jacquard_derive::lexicon] 533 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 534 #[serde(rename_all = "camelCase")] 535 pub struct VerificationPrefs<'a> { 536 + ///Hide the blue check badges for verified accounts and trusted verifiers. 537 #[serde(skip_serializing_if = "std::option::Option::is_none")] 538 pub hide_badges: std::option::Option<bool>, 539 } 540 + 541 ///Represents the verification information about the user this object is attached to. 542 #[jacquard_derive::lexicon] 543 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 544 #[serde(rename_all = "camelCase")] 545 pub struct VerificationState<'a> { 546 + ///The user's status as a trusted verifier. 547 #[serde(borrow)] 548 pub trusted_verifier_status: jacquard_common::CowStr<'a>, 549 + ///All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. 550 #[serde(borrow)] 551 + pub verifications: Vec<crate::app_bsky::actor::VerificationView<'a>>, 552 + ///The user's status as a verified account. 553 #[serde(borrow)] 554 pub verified_status: jacquard_common::CowStr<'a>, 555 } 556 + 557 ///An individual verification for an associated subject. 558 #[jacquard_derive::lexicon] 559 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 560 #[serde(rename_all = "camelCase")] 561 pub struct VerificationView<'a> { 562 + ///Timestamp when the verification was created. 563 pub created_at: jacquard_common::types::string::Datetime, 564 + ///True if the verification passes validation, otherwise false. 565 pub is_valid: bool, 566 + ///The user who issued this verification. 567 #[serde(borrow)] 568 pub issuer: jacquard_common::types::string::Did<'a>, 569 + ///The AT-URI of the verification record. 570 #[serde(borrow)] 571 pub uri: jacquard_common::types::string::AtUri<'a>, 572 } 573 + 574 ///Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. 575 #[jacquard_derive::lexicon] 576 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 577 #[serde(rename_all = "camelCase")] 578 pub struct ViewerState<'a> { 579 + ///This property is present only in selected cases, as an optimization. 580 #[serde(skip_serializing_if = "std::option::Option::is_none")] 581 #[serde(borrow)] 582 pub activity_subscription: std::option::Option< ··· 596 #[serde(skip_serializing_if = "std::option::Option::is_none")] 597 #[serde(borrow)] 598 pub following: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 599 + ///This property is present only in selected cases, as an optimization. 600 #[serde(skip_serializing_if = "std::option::Option::is_none")] 601 #[serde(borrow)] 602 + pub known_followers: std::option::Option<crate::app_bsky::actor::KnownFollowers<'a>>, 603 #[serde(skip_serializing_if = "std::option::Option::is_none")] 604 pub muted: std::option::Option<bool>, 605 #[serde(skip_serializing_if = "std::option::Option::is_none")] 606 #[serde(borrow)] 607 pub muted_by_list: std::option::Option<crate::app_bsky::graph::ListViewBasic<'a>>, 608 + }
+6 -1
crates/jacquard-api/src/app_bsky/actor/get_preferences.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetPreferencesParams {} ··· 7 pub struct GetPreferencesOutput<'a> { 8 #[serde(borrow)] 9 pub preferences: crate::app_bsky::actor::Preferences<'a>, 10 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetPreferencesParams {} ··· 12 pub struct GetPreferencesOutput<'a> { 13 #[serde(borrow)] 14 pub preferences: crate::app_bsky::actor::Preferences<'a>, 15 + }
+7 -1
crates/jacquard-api/src/app_bsky/actor/get_profile.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetProfileParams<'a> { 4 #[serde(borrow)] 5 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 11 #[serde(flatten)] 12 #[serde(borrow)] 13 pub value: crate::app_bsky::actor::ProfileViewDetailed<'a>, 14 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetProfileParams<'a> { 9 #[serde(borrow)] 10 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 17 #[serde(flatten)] 18 #[serde(borrow)] 19 pub value: crate::app_bsky::actor::ProfileViewDetailed<'a>, 20 + }
+7 -1
crates/jacquard-api/src/app_bsky/actor/get_profiles.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetProfilesParams<'a> { 4 #[serde(borrow)] 5 pub actors: Vec<jacquard_common::types::ident::AtIdentifier<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetProfilesOutput<'a> { 11 #[serde(borrow)] 12 pub profiles: Vec<crate::app_bsky::actor::ProfileViewDetailed<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetProfilesParams<'a> { 9 #[serde(borrow)] 10 pub actors: Vec<jacquard_common::types::ident::AtIdentifier<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetProfilesOutput<'a> { 17 #[serde(borrow)] 18 pub profiles: Vec<crate::app_bsky::actor::ProfileViewDetailed<'a>>, 19 + }
+8 -1
crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestionsParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 pub rec_id: std::option::Option<i64>, 21 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestionsParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 + ///Snowflake for this recommendation, use when submitting recommendation events. 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 pub rec_id: std::option::Option<i64>, 28 + }
+12 -1
crates/jacquard-api/src/app_bsky/actor/profile.rs
··· 1 ///A declaration of a Bluesky account profile. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Profile<'a> { 6 #[serde(skip_serializing_if = "std::option::Option::is_none")] 7 #[serde(borrow)] 8 pub avatar: std::option::Option<jacquard_common::types::blob::Blob<'a>>, 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 #[serde(borrow)] 11 pub banner: std::option::Option<jacquard_common::types::blob::Blob<'a>>, 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub created_at: std::option::Option<jacquard_common::types::string::Datetime>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub description: std::option::Option<jacquard_common::CowStr<'a>>, ··· 22 pub joined_via_starter_pack: std::option::Option< 23 crate::com_atproto::repo::strong_ref::StrongRef<'a>, 24 >, 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub labels: std::option::Option<ProfileRecordLabels<'a>>, ··· 30 pub pinned_post: std::option::Option< 31 crate::com_atproto::repo::strong_ref::StrongRef<'a>, 32 >, 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>, ··· 37 #[serde(borrow)] 38 pub website: std::option::Option<jacquard_common::types::string::Uri<'a>>, 39 } 40 #[jacquard_derive::open_union] 41 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 42 #[serde(tag = "$type")] ··· 44 pub enum ProfileRecordLabels<'a> { 45 #[serde(rename = "com.atproto.label.defs#selfLabels")] 46 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 47 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///A declaration of a Bluesky account profile. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Profile<'a> { 11 + ///Small image to be displayed next to posts from account. AKA, 'profile picture' 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 #[serde(borrow)] 14 pub avatar: std::option::Option<jacquard_common::types::blob::Blob<'a>>, 15 + ///Larger horizontal image to display behind profile view. 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub banner: std::option::Option<jacquard_common::types::blob::Blob<'a>>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 pub created_at: std::option::Option<jacquard_common::types::string::Datetime>, 21 + ///Free-form profile description text. 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub description: std::option::Option<jacquard_common::CowStr<'a>>, ··· 30 pub joined_via_starter_pack: std::option::Option< 31 crate::com_atproto::repo::strong_ref::StrongRef<'a>, 32 >, 33 + ///Self-label values, specific to the Bluesky application, on the overall account. 34 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 #[serde(borrow)] 36 pub labels: std::option::Option<ProfileRecordLabels<'a>>, ··· 39 pub pinned_post: std::option::Option< 40 crate::com_atproto::repo::strong_ref::StrongRef<'a>, 41 >, 42 + ///Free-form pronouns text. 43 #[serde(skip_serializing_if = "std::option::Option::is_none")] 44 #[serde(borrow)] 45 pub pronouns: std::option::Option<jacquard_common::CowStr<'a>>, ··· 47 #[serde(borrow)] 48 pub website: std::option::Option<jacquard_common::types::string::Uri<'a>>, 49 } 50 + 51 #[jacquard_derive::open_union] 52 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 53 #[serde(tag = "$type")] ··· 55 pub enum ProfileRecordLabels<'a> { 56 #[serde(rename = "com.atproto.label.defs#selfLabels")] 57 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 58 + }
+6 -1
crates/jacquard-api/src/app_bsky/actor/put_preferences.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct PutPreferencesInput<'a> { 5 #[serde(borrow)] 6 pub preferences: crate::app_bsky::actor::Preferences<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct PutPreferencesInput<'a> { 10 #[serde(borrow)] 11 pub preferences: crate::app_bsky::actor::Preferences<'a>, 12 + }
+7 -1
crates/jacquard-api/src/app_bsky/actor/search_actors.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchActorsParams<'a> { ··· 13 #[serde(borrow)] 14 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchActorsParams<'a> { ··· 18 #[serde(borrow)] 19 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 20 } 21 + 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 31 + }
+7 -1
crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchActorsTypeaheadParams<'a> { ··· 10 #[serde(borrow)] 11 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct SearchActorsTypeaheadOutput<'a> { 17 #[serde(borrow)] 18 pub actors: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchActorsTypeaheadParams<'a> { ··· 15 #[serde(borrow)] 16 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] 22 pub struct SearchActorsTypeaheadOutput<'a> { 23 #[serde(borrow)] 24 pub actors: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>, 25 + }
+10 -1
crates/jacquard-api/src/app_bsky/actor/status.rs
··· 1 ///A declaration of a Bluesky account status. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Status<'a> { 6 pub created_at: jacquard_common::types::string::Datetime, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub duration_minutes: std::option::Option<i64>, 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 #[serde(borrow)] 11 pub embed: std::option::Option<StatusRecordEmbed<'a>>, 12 #[serde(borrow)] 13 pub status: jacquard_common::CowStr<'a>, 14 } 15 #[jacquard_derive::open_union] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(tag = "$type")] ··· 19 pub enum StatusRecordEmbed<'a> { 20 #[serde(rename = "app.bsky.embed.external")] 21 External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>), 22 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///A declaration of a Bluesky account status. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Status<'a> { 11 pub created_at: jacquard_common::types::string::Datetime, 12 + ///The duration of the status in minutes. Applications can choose to impose minimum and maximum limits. 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 pub duration_minutes: std::option::Option<i64>, 15 + ///An optional embed associated with the status. 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub embed: std::option::Option<StatusRecordEmbed<'a>>, 19 + ///The status for the account. 20 #[serde(borrow)] 21 pub status: jacquard_common::CowStr<'a>, 22 } 23 + 24 #[jacquard_derive::open_union] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(tag = "$type")] ··· 28 pub enum StatusRecordEmbed<'a> { 29 #[serde(rename = "app.bsky.embed.external")] 30 External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>), 31 + }
+14 -4
crates/jacquard-api/src/app_bsky/bookmark.rs
··· 1 ///Object used to store bookmark data in stash. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Bookmark<'a> { 6 #[serde(borrow)] 7 pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] ··· 14 pub created_at: std::option::Option<jacquard_common::types::string::Datetime>, 15 #[serde(borrow)] 16 pub item: BookmarkViewRecordItem<'a>, 17 #[serde(borrow)] 18 pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 19 } 20 #[jacquard_derive::open_union] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(tag = "$type")] ··· 28 DefsNotFoundPost(Box<crate::app_bsky::feed::NotFoundPost<'a>>), 29 #[serde(rename = "app.bsky.feed.defs#postView")] 30 DefsPostView(Box<crate::app_bsky::feed::PostView<'a>>), 31 - } 32 - pub mod create_bookmark; 33 - pub mod delete_bookmark; 34 - pub mod get_bookmarks;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod create_bookmark; 7 + pub mod delete_bookmark; 8 + pub mod get_bookmarks; 9 + 10 ///Object used to store bookmark data in stash. 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] 14 pub struct Bookmark<'a> { 15 + ///A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported. 16 #[serde(borrow)] 17 pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 18 } 19 + 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] ··· 25 pub created_at: std::option::Option<jacquard_common::types::string::Datetime>, 26 #[serde(borrow)] 27 pub item: BookmarkViewRecordItem<'a>, 28 + ///A strong ref to the bookmarked record. 29 #[serde(borrow)] 30 pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 31 } 32 + 33 #[jacquard_derive::open_union] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 #[serde(tag = "$type")] ··· 41 DefsNotFoundPost(Box<crate::app_bsky::feed::NotFoundPost<'a>>), 42 #[serde(rename = "app.bsky.feed.defs#postView")] 43 DefsPostView(Box<crate::app_bsky::feed::PostView<'a>>), 44 + }
+9 -2
crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub uri: jacquard_common::types::string::AtUri<'a>, 9 } 10 #[jacquard_derive::open_union] 11 #[derive( 12 serde::Serialize, ··· 25 #[serde(rename = "UnsupportedCollection")] 26 UnsupportedCollection(std::option::Option<String>), 27 } 28 impl std::fmt::Display for CreateBookmarkError<'_> { 29 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 30 match self { ··· 35 } 36 Ok(()) 37 } 38 - Self::Unknown(_) => write!(f, "Unknown error"), 39 } 40 } 41 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub uri: jacquard_common::types::string::AtUri<'a>, 14 } 15 + 16 #[jacquard_derive::open_union] 17 #[derive( 18 serde::Serialize, ··· 31 #[serde(rename = "UnsupportedCollection")] 32 UnsupportedCollection(std::option::Option<String>), 33 } 34 + 35 impl std::fmt::Display for CreateBookmarkError<'_> { 36 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 37 match self { ··· 42 } 43 Ok(()) 44 } 45 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 46 } 47 } 48 + }
+9 -2
crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub uri: jacquard_common::types::string::AtUri<'a>, 7 } 8 #[jacquard_derive::open_union] 9 #[derive( 10 serde::Serialize, ··· 23 #[serde(rename = "UnsupportedCollection")] 24 UnsupportedCollection(std::option::Option<String>), 25 } 26 impl std::fmt::Display for DeleteBookmarkError<'_> { 27 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 28 match self { ··· 33 } 34 Ok(()) 35 } 36 - Self::Unknown(_) => write!(f, "Unknown error"), 37 } 38 } 39 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub uri: jacquard_common::types::string::AtUri<'a>, 12 } 13 + 14 #[jacquard_derive::open_union] 15 #[derive( 16 serde::Serialize, ··· 29 #[serde(rename = "UnsupportedCollection")] 30 UnsupportedCollection(std::option::Option<String>), 31 } 32 + 33 impl std::fmt::Display for DeleteBookmarkError<'_> { 34 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 35 match self { ··· 40 } 41 Ok(()) 42 } 43 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 44 } 45 } 46 + }
+7 -1
crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetBookmarksParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetBookmarksParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 + }
+12 -6
crates/jacquard-api/src/app_bsky/embed.rs
··· 1 ///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 5 pub struct AspectRatio<'a> { 6 pub height: i64, 7 pub width: i64, 8 - } 9 - pub mod external; 10 - pub mod images; 11 - pub mod record; 12 - pub mod record_with_media; 13 - pub mod video;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod external; 7 + pub mod images; 8 + pub mod record; 9 + pub mod record_with_media; 10 + pub mod video; 11 + 12 ///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 16 pub struct AspectRatio<'a> { 17 pub height: i64, 18 pub width: i64, 19 + }
+11 -3
crates/jacquard-api/src/app_bsky/embed/external.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub uri: jacquard_common::types::string::Uri<'a>, 14 } 15 ///A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ExternalRecord<'a> { 20 #[serde(borrow)] 21 - pub external: jacquard_common::types::value::Data<'a>, 22 } 23 #[jacquard_derive::lexicon] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 #[serde(rename_all = "camelCase")] 26 pub struct View<'a> { 27 #[serde(borrow)] 28 - pub external: jacquard_common::types::value::Data<'a>, 29 } 30 #[jacquard_derive::lexicon] 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 32 #[serde(rename_all = "camelCase")] ··· 40 pub title: jacquard_common::CowStr<'a>, 41 #[serde(borrow)] 42 pub uri: jacquard_common::types::string::Uri<'a>, 43 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 17 #[serde(borrow)] 18 pub uri: jacquard_common::types::string::Uri<'a>, 19 } 20 + 21 ///A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] 25 pub struct ExternalRecord<'a> { 26 #[serde(borrow)] 27 + pub external: crate::app_bsky::embed::external::External<'a>, 28 } 29 + 30 #[jacquard_derive::lexicon] 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 32 #[serde(rename_all = "camelCase")] 33 pub struct View<'a> { 34 #[serde(borrow)] 35 + pub external: crate::app_bsky::embed::external::ViewExternal<'a>, 36 } 37 + 38 #[jacquard_derive::lexicon] 39 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 40 #[serde(rename_all = "camelCase")] ··· 48 pub title: jacquard_common::CowStr<'a>, 49 #[serde(borrow)] 50 pub uri: jacquard_common::types::string::Uri<'a>, 51 + }
+15 -3
crates/jacquard-api/src/app_bsky/embed/images.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct Image<'a> { 5 #[serde(borrow)] 6 pub alt: jacquard_common::CowStr<'a>, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 10 #[serde(borrow)] 11 pub image: jacquard_common::types::blob::Blob<'a>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct Images<'a> { 17 #[serde(borrow)] 18 - pub images: Vec<jacquard_common::types::value::Data<'a>>, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] 23 pub struct View<'a> { 24 #[serde(borrow)] 25 - pub images: Vec<jacquard_common::types::value::Data<'a>>, 26 } 27 #[jacquard_derive::lexicon] 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 29 #[serde(rename_all = "camelCase")] 30 pub struct ViewImage<'a> { 31 #[serde(borrow)] 32 pub alt: jacquard_common::CowStr<'a>, 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 pub aspect_ratio: std::option::Option<crate::app_bsky::embed::AspectRatio<'a>>, 36 #[serde(borrow)] 37 pub fullsize: jacquard_common::types::string::Uri<'a>, 38 #[serde(borrow)] 39 pub thumb: jacquard_common::types::string::Uri<'a>, 40 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct Image<'a> { 10 + ///Alt text description of the image, for accessibility. 11 #[serde(borrow)] 12 pub alt: jacquard_common::CowStr<'a>, 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 16 #[serde(borrow)] 17 pub image: jacquard_common::types::blob::Blob<'a>, 18 } 19 + 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] 23 pub struct Images<'a> { 24 #[serde(borrow)] 25 + pub images: Vec<crate::app_bsky::embed::images::Image<'a>>, 26 } 27 + 28 #[jacquard_derive::lexicon] 29 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 30 #[serde(rename_all = "camelCase")] 31 pub struct View<'a> { 32 #[serde(borrow)] 33 + pub images: Vec<crate::app_bsky::embed::images::ViewImage<'a>>, 34 } 35 + 36 #[jacquard_derive::lexicon] 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 38 #[serde(rename_all = "camelCase")] 39 pub struct ViewImage<'a> { 40 + ///Alt text description of the image, for accessibility. 41 #[serde(borrow)] 42 pub alt: jacquard_common::CowStr<'a>, 43 #[serde(skip_serializing_if = "std::option::Option::is_none")] 44 #[serde(borrow)] 45 pub aspect_ratio: std::option::Option<crate::app_bsky::embed::AspectRatio<'a>>, 46 + ///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. 47 #[serde(borrow)] 48 pub fullsize: jacquard_common::types::string::Uri<'a>, 49 + ///Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. 50 #[serde(borrow)] 51 pub thumb: jacquard_common::types::string::Uri<'a>, 52 + }
+13 -1
crates/jacquard-api/src/app_bsky/embed/record.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub record: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub record: ViewRecordRecord<'a>, 14 } 15 #[jacquard_derive::open_union] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(tag = "$type")] ··· 26 #[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")] 27 DefsStarterPackViewBasic(Box<crate::app_bsky::graph::StarterPackViewBasic<'a>>), 28 } 29 #[jacquard_derive::lexicon] 30 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 31 #[serde(rename_all = "camelCase")] ··· 36 #[serde(borrow)] 37 pub uri: jacquard_common::types::string::AtUri<'a>, 38 } 39 #[jacquard_derive::lexicon] 40 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 41 #[serde(rename_all = "camelCase")] ··· 44 #[serde(borrow)] 45 pub uri: jacquard_common::types::string::AtUri<'a>, 46 } 47 #[jacquard_derive::lexicon] 48 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 49 #[serde(rename_all = "camelCase")] ··· 52 #[serde(borrow)] 53 pub uri: jacquard_common::types::string::AtUri<'a>, 54 } 55 #[jacquard_derive::lexicon] 56 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 57 #[serde(rename_all = "camelCase")] ··· 77 pub repost_count: std::option::Option<i64>, 78 #[serde(borrow)] 79 pub uri: jacquard_common::types::string::AtUri<'a>, 80 #[serde(borrow)] 81 pub value: jacquard_common::types::value::Data<'a>, 82 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub record: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] ··· 18 #[serde(borrow)] 19 pub record: ViewRecordRecord<'a>, 20 } 21 + 22 #[jacquard_derive::open_union] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(tag = "$type")] ··· 33 #[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")] 34 DefsStarterPackViewBasic(Box<crate::app_bsky::graph::StarterPackViewBasic<'a>>), 35 } 36 + 37 #[jacquard_derive::lexicon] 38 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 39 #[serde(rename_all = "camelCase")] ··· 44 #[serde(borrow)] 45 pub uri: jacquard_common::types::string::AtUri<'a>, 46 } 47 + 48 #[jacquard_derive::lexicon] 49 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 50 #[serde(rename_all = "camelCase")] ··· 53 #[serde(borrow)] 54 pub uri: jacquard_common::types::string::AtUri<'a>, 55 } 56 + 57 #[jacquard_derive::lexicon] 58 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 59 #[serde(rename_all = "camelCase")] ··· 62 #[serde(borrow)] 63 pub uri: jacquard_common::types::string::AtUri<'a>, 64 } 65 + 66 #[jacquard_derive::lexicon] 67 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 68 #[serde(rename_all = "camelCase")] ··· 88 pub repost_count: std::option::Option<i64>, 89 #[serde(borrow)] 90 pub uri: jacquard_common::types::string::AtUri<'a>, 91 + ///The record data itself. 92 #[serde(borrow)] 93 pub value: jacquard_common::types::value::Data<'a>, 94 + }
+9 -1
crates/jacquard-api/src/app_bsky/embed/record_with_media.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub record: crate::app_bsky::embed::record::Record<'a>, 9 } 10 #[jacquard_derive::open_union] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(tag = "$type")] ··· 19 #[serde(rename = "app.bsky.embed.external")] 20 External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>), 21 } 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 28 #[serde(borrow)] 29 pub record: crate::app_bsky::embed::record::View<'a>, 30 } 31 #[jacquard_derive::open_union] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(tag = "$type")] ··· 39 VideoView(Box<crate::app_bsky::embed::video::View<'a>>), 40 #[serde(rename = "app.bsky.embed.external#view")] 41 ExternalView(Box<crate::app_bsky::embed::external::View<'a>>), 42 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub record: crate::app_bsky::embed::record::Record<'a>, 14 } 15 + 16 #[jacquard_derive::open_union] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(tag = "$type")] ··· 25 #[serde(rename = "app.bsky.embed.external")] 26 External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>), 27 } 28 + 29 #[jacquard_derive::lexicon] 30 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 31 #[serde(rename_all = "camelCase")] ··· 35 #[serde(borrow)] 36 pub record: crate::app_bsky::embed::record::View<'a>, 37 } 38 + 39 #[jacquard_derive::open_union] 40 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 41 #[serde(tag = "$type")] ··· 47 VideoView(Box<crate::app_bsky::embed::video::View<'a>>), 48 #[serde(rename = "app.bsky.embed.external#view")] 49 ExternalView(Box<crate::app_bsky::embed::external::View<'a>>), 50 + }
+11 -2
crates/jacquard-api/src/app_bsky/embed/video.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 pub file: jacquard_common::types::blob::Blob<'a>, 7 pub lang: jacquard_common::types::string::Language, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct Video<'a> { 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub alt: std::option::Option<jacquard_common::CowStr<'a>>, ··· 18 pub aspect_ratio: std::option::Option<crate::app_bsky::embed::AspectRatio<'a>>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 - pub captions: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 22 #[serde(borrow)] 23 pub video: jacquard_common::types::blob::Blob<'a>, 24 } 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] ··· 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] 40 #[serde(borrow)] 41 pub thumbnail: std::option::Option<jacquard_common::types::string::Uri<'a>>, 42 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 pub file: jacquard_common::types::blob::Blob<'a>, 12 pub lang: jacquard_common::types::string::Language, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] 18 pub struct Video<'a> { 19 + ///Alt text description of the video, for accessibility. 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 21 #[serde(borrow)] 22 pub alt: std::option::Option<jacquard_common::CowStr<'a>>, ··· 25 pub aspect_ratio: std::option::Option<crate::app_bsky::embed::AspectRatio<'a>>, 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 #[serde(borrow)] 28 + pub captions: std::option::Option<Vec<crate::app_bsky::embed::video::Caption<'a>>>, 29 + ///The mp4 video file. May be up to 100mb, formerly limited to 50mb. 30 #[serde(borrow)] 31 pub video: jacquard_common::types::blob::Blob<'a>, 32 } 33 + 34 #[jacquard_derive::lexicon] 35 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 36 #[serde(rename_all = "camelCase")] ··· 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 #[serde(borrow)] 50 pub thumbnail: std::option::Option<jacquard_common::types::string::Uri<'a>>, 51 + }
+61 -33
crates/jacquard-api/src/app_bsky/feed.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 #[serde(borrow)] 9 pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] 14 pub struct BlockedPost<'a> { 15 #[serde(borrow)] 16 - pub author: jacquard_common::types::value::Data<'a>, 17 pub blocked: bool, 18 #[serde(borrow)] 19 pub uri: jacquard_common::types::string::AtUri<'a>, 20 } 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] 24 pub struct FeedViewPost<'a> { 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>, 28 #[serde(borrow)] 29 - pub post: jacquard_common::types::value::Data<'a>, 30 #[serde(skip_serializing_if = "std::option::Option::is_none")] 31 #[serde(borrow)] 32 pub reason: std::option::Option<FeedViewPostRecordReason<'a>>, 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 - pub reply: std::option::Option<jacquard_common::types::value::Data<'a>>, 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 37 #[serde(borrow)] 38 pub req_id: std::option::Option<jacquard_common::CowStr<'a>>, 39 } 40 #[jacquard_derive::open_union] 41 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 42 #[serde(tag = "$type")] ··· 80 pub uri: jacquard_common::types::string::AtUri<'a>, 81 #[serde(skip_serializing_if = "std::option::Option::is_none")] 82 #[serde(borrow)] 83 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 84 } 85 #[jacquard_derive::lexicon] 86 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 87 #[serde(rename_all = "camelCase")] ··· 90 #[serde(borrow)] 91 pub like: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 92 } 93 #[jacquard_derive::lexicon] 94 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 95 #[serde(rename_all = "camelCase")] ··· 97 #[serde(skip_serializing_if = "std::option::Option::is_none")] 98 #[serde(borrow)] 99 pub event: std::option::Option<jacquard_common::CowStr<'a>>, 100 #[serde(skip_serializing_if = "std::option::Option::is_none")] 101 #[serde(borrow)] 102 pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>, 103 #[serde(skip_serializing_if = "std::option::Option::is_none")] 104 #[serde(borrow)] 105 pub item: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 106 #[serde(skip_serializing_if = "std::option::Option::is_none")] 107 #[serde(borrow)] 108 pub req_id: std::option::Option<jacquard_common::CowStr<'a>>, 109 } 110 #[jacquard_derive::lexicon] 111 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 112 #[serde(rename_all = "camelCase")] ··· 115 #[serde(borrow)] 116 pub uri: jacquard_common::types::string::AtUri<'a>, 117 } 118 #[jacquard_derive::lexicon] 119 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 120 #[serde(rename_all = "camelCase")] ··· 144 pub repost_count: std::option::Option<i64>, 145 #[serde(skip_serializing_if = "std::option::Option::is_none")] 146 #[serde(borrow)] 147 - pub threadgate: std::option::Option<jacquard_common::types::value::Data<'a>>, 148 #[serde(borrow)] 149 pub uri: jacquard_common::types::string::AtUri<'a>, 150 #[serde(skip_serializing_if = "std::option::Option::is_none")] 151 #[serde(borrow)] 152 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 153 } 154 #[jacquard_derive::open_union] 155 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 156 #[serde(tag = "$type")] ··· 167 #[serde(rename = "app.bsky.embed.recordWithMedia#view")] 168 RecordWithMediaView(Box<crate::app_bsky::embed::record_with_media::View<'a>>), 169 } 170 #[jacquard_derive::lexicon] 171 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 172 #[serde(rename_all = "camelCase")] ··· 185 #[serde(borrow)] 186 pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 187 } 188 #[jacquard_derive::lexicon] 189 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 190 #[serde(rename_all = "camelCase")] 191 pub struct ReplyRef<'a> { 192 #[serde(skip_serializing_if = "std::option::Option::is_none")] 193 #[serde(borrow)] 194 pub grandparent_author: std::option::Option< ··· 199 #[serde(borrow)] 200 pub root: ReplyRefRecordRoot<'a>, 201 } 202 #[jacquard_derive::open_union] 203 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 204 #[serde(tag = "$type")] ··· 213 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 214 #[serde(rename_all = "camelCase")] 215 pub struct SkeletonFeedPost<'a> { 216 #[serde(skip_serializing_if = "std::option::Option::is_none")] 217 #[serde(borrow)] 218 pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>, ··· 222 #[serde(borrow)] 223 pub reason: std::option::Option<SkeletonFeedPostRecordReason<'a>>, 224 } 225 #[jacquard_derive::open_union] 226 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 227 #[serde(tag = "$type")] ··· 238 #[serde(borrow)] 239 pub repost: jacquard_common::types::string::AtUri<'a>, 240 } 241 ///Metadata about this post within the context of the thread it is in. 242 #[jacquard_derive::lexicon] 243 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 247 #[serde(borrow)] 248 pub root_author_like: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 249 } 250 #[jacquard_derive::lexicon] 251 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 252 #[serde(rename_all = "camelCase")] ··· 255 #[serde(borrow)] 256 pub parent: std::option::Option<ThreadViewPostRecordParent<'a>>, 257 #[serde(borrow)] 258 - pub post: jacquard_common::types::value::Data<'a>, 259 #[serde(skip_serializing_if = "std::option::Option::is_none")] 260 #[serde(borrow)] 261 pub replies: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 262 #[serde(skip_serializing_if = "std::option::Option::is_none")] 263 #[serde(borrow)] 264 - pub thread_context: std::option::Option<jacquard_common::types::value::Data<'a>>, 265 } 266 #[jacquard_derive::open_union] 267 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 268 #[serde(tag = "$type")] ··· 285 #[serde(borrow)] 286 pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 287 } 288 ///Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. 289 #[jacquard_derive::lexicon] 290 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 306 pub repost: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 307 #[serde(skip_serializing_if = "std::option::Option::is_none")] 308 pub thread_muted: std::option::Option<bool>, 309 - } 310 - pub mod describe_feed_generator; 311 - pub mod generator; 312 - pub mod get_actor_feeds; 313 - pub mod get_actor_likes; 314 - pub mod get_author_feed; 315 - pub mod get_feed; 316 - pub mod get_feed_generator; 317 - pub mod get_feed_generators; 318 - pub mod get_feed_skeleton; 319 - pub mod get_likes; 320 - pub mod get_list_feed; 321 - pub mod get_post_thread; 322 - pub mod get_posts; 323 - pub mod get_quotes; 324 - pub mod get_reposted_by; 325 - pub mod get_suggested_feeds; 326 - pub mod get_timeline; 327 - pub mod like; 328 - pub mod post; 329 - pub mod postgate; 330 - pub mod repost; 331 - pub mod search_posts; 332 - pub mod send_interactions; 333 - pub mod threadgate;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod describe_feed_generator; 7 + pub mod generator; 8 + pub mod get_actor_feeds; 9 + pub mod get_actor_likes; 10 + pub mod get_author_feed; 11 + pub mod get_feed; 12 + pub mod get_feed_generator; 13 + pub mod get_feed_generators; 14 + pub mod get_feed_skeleton; 15 + pub mod get_likes; 16 + pub mod get_list_feed; 17 + pub mod get_post_thread; 18 + pub mod get_posts; 19 + pub mod get_quotes; 20 + pub mod get_reposted_by; 21 + pub mod get_suggested_feeds; 22 + pub mod get_timeline; 23 + pub mod like; 24 + pub mod post; 25 + pub mod postgate; 26 + pub mod repost; 27 + pub mod search_posts; 28 + pub mod send_interactions; 29 + pub mod threadgate; 30 + 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(rename_all = "camelCase")] ··· 38 #[serde(borrow)] 39 pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>, 40 } 41 + 42 #[jacquard_derive::lexicon] 43 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 44 #[serde(rename_all = "camelCase")] 45 pub struct BlockedPost<'a> { 46 #[serde(borrow)] 47 + pub author: crate::app_bsky::feed::BlockedAuthor<'a>, 48 pub blocked: bool, 49 #[serde(borrow)] 50 pub uri: jacquard_common::types::string::AtUri<'a>, 51 } 52 + 53 #[jacquard_derive::lexicon] 54 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 55 #[serde(rename_all = "camelCase")] 56 pub struct FeedViewPost<'a> { 57 + ///Context provided by feed generator that may be passed back alongside interactions. 58 #[serde(skip_serializing_if = "std::option::Option::is_none")] 59 #[serde(borrow)] 60 pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>, 61 #[serde(borrow)] 62 + pub post: crate::app_bsky::feed::PostView<'a>, 63 #[serde(skip_serializing_if = "std::option::Option::is_none")] 64 #[serde(borrow)] 65 pub reason: std::option::Option<FeedViewPostRecordReason<'a>>, 66 #[serde(skip_serializing_if = "std::option::Option::is_none")] 67 #[serde(borrow)] 68 + pub reply: std::option::Option<crate::app_bsky::feed::ReplyRef<'a>>, 69 + ///Unique identifier per request that may be passed back alongside interactions. 70 #[serde(skip_serializing_if = "std::option::Option::is_none")] 71 #[serde(borrow)] 72 pub req_id: std::option::Option<jacquard_common::CowStr<'a>>, 73 } 74 + 75 #[jacquard_derive::open_union] 76 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 77 #[serde(tag = "$type")] ··· 115 pub uri: jacquard_common::types::string::AtUri<'a>, 116 #[serde(skip_serializing_if = "std::option::Option::is_none")] 117 #[serde(borrow)] 118 + pub viewer: std::option::Option<crate::app_bsky::feed::GeneratorViewerState<'a>>, 119 } 120 + 121 #[jacquard_derive::lexicon] 122 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 123 #[serde(rename_all = "camelCase")] ··· 126 #[serde(borrow)] 127 pub like: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 128 } 129 + 130 #[jacquard_derive::lexicon] 131 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 132 #[serde(rename_all = "camelCase")] ··· 134 #[serde(skip_serializing_if = "std::option::Option::is_none")] 135 #[serde(borrow)] 136 pub event: std::option::Option<jacquard_common::CowStr<'a>>, 137 + ///Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. 138 #[serde(skip_serializing_if = "std::option::Option::is_none")] 139 #[serde(borrow)] 140 pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>, 141 #[serde(skip_serializing_if = "std::option::Option::is_none")] 142 #[serde(borrow)] 143 pub item: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 144 + ///Unique identifier per request that may be passed back alongside interactions. 145 #[serde(skip_serializing_if = "std::option::Option::is_none")] 146 #[serde(borrow)] 147 pub req_id: std::option::Option<jacquard_common::CowStr<'a>>, 148 } 149 + 150 #[jacquard_derive::lexicon] 151 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 152 #[serde(rename_all = "camelCase")] ··· 155 #[serde(borrow)] 156 pub uri: jacquard_common::types::string::AtUri<'a>, 157 } 158 + 159 #[jacquard_derive::lexicon] 160 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 161 #[serde(rename_all = "camelCase")] ··· 185 pub repost_count: std::option::Option<i64>, 186 #[serde(skip_serializing_if = "std::option::Option::is_none")] 187 #[serde(borrow)] 188 + pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>, 189 #[serde(borrow)] 190 pub uri: jacquard_common::types::string::AtUri<'a>, 191 #[serde(skip_serializing_if = "std::option::Option::is_none")] 192 #[serde(borrow)] 193 + pub viewer: std::option::Option<crate::app_bsky::feed::ViewerState<'a>>, 194 } 195 + 196 #[jacquard_derive::open_union] 197 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 198 #[serde(tag = "$type")] ··· 209 #[serde(rename = "app.bsky.embed.recordWithMedia#view")] 210 RecordWithMediaView(Box<crate::app_bsky::embed::record_with_media::View<'a>>), 211 } 212 + 213 #[jacquard_derive::lexicon] 214 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 215 #[serde(rename_all = "camelCase")] ··· 228 #[serde(borrow)] 229 pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 230 } 231 + 232 #[jacquard_derive::lexicon] 233 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 234 #[serde(rename_all = "camelCase")] 235 pub struct ReplyRef<'a> { 236 + ///When parent is a reply to another post, this is the author of that post. 237 #[serde(skip_serializing_if = "std::option::Option::is_none")] 238 #[serde(borrow)] 239 pub grandparent_author: std::option::Option< ··· 244 #[serde(borrow)] 245 pub root: ReplyRefRecordRoot<'a>, 246 } 247 + 248 #[jacquard_derive::open_union] 249 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 250 #[serde(tag = "$type")] ··· 259 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 260 #[serde(rename_all = "camelCase")] 261 pub struct SkeletonFeedPost<'a> { 262 + ///Context that will be passed through to client and may be passed to feed generator back alongside interactions. 263 #[serde(skip_serializing_if = "std::option::Option::is_none")] 264 #[serde(borrow)] 265 pub feed_context: std::option::Option<jacquard_common::CowStr<'a>>, ··· 269 #[serde(borrow)] 270 pub reason: std::option::Option<SkeletonFeedPostRecordReason<'a>>, 271 } 272 + 273 #[jacquard_derive::open_union] 274 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 275 #[serde(tag = "$type")] ··· 286 #[serde(borrow)] 287 pub repost: jacquard_common::types::string::AtUri<'a>, 288 } 289 + 290 ///Metadata about this post within the context of the thread it is in. 291 #[jacquard_derive::lexicon] 292 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 296 #[serde(borrow)] 297 pub root_author_like: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 298 } 299 + 300 #[jacquard_derive::lexicon] 301 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 302 #[serde(rename_all = "camelCase")] ··· 305 #[serde(borrow)] 306 pub parent: std::option::Option<ThreadViewPostRecordParent<'a>>, 307 #[serde(borrow)] 308 + pub post: crate::app_bsky::feed::PostView<'a>, 309 #[serde(skip_serializing_if = "std::option::Option::is_none")] 310 #[serde(borrow)] 311 pub replies: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 312 #[serde(skip_serializing_if = "std::option::Option::is_none")] 313 #[serde(borrow)] 314 + pub thread_context: std::option::Option<crate::app_bsky::feed::ThreadContext<'a>>, 315 } 316 + 317 #[jacquard_derive::open_union] 318 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 319 #[serde(tag = "$type")] ··· 336 #[serde(borrow)] 337 pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 338 } 339 + 340 ///Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. 341 #[jacquard_derive::lexicon] 342 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 358 pub repost: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 359 #[serde(skip_serializing_if = "std::option::Option::is_none")] 360 pub thread_muted: std::option::Option<bool>, 361 + }
+8 -1
crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub uri: jacquard_common::types::string::AtUri<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] ··· 16 #[serde(borrow)] 17 pub terms_of_service: std::option::Option<jacquard_common::CowStr<'a>>, 18 } 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub links: std::option::Option<jacquard_common::types::value::Data<'a>>, 30 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub uri: jacquard_common::types::string::AtUri<'a>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] ··· 22 #[serde(borrow)] 23 pub terms_of_service: std::option::Option<jacquard_common::CowStr<'a>>, 24 } 25 + 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] ··· 34 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 #[serde(borrow)] 36 pub links: std::option::Option<jacquard_common::types::value::Data<'a>>, 37 + }
+9 -1
crates/jacquard-api/src/app_bsky/feed/generator.rs
··· 1 ///Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Generator<'a> { 6 #[serde(skip_serializing_if = "std::option::Option::is_none")] 7 pub accepts_interactions: std::option::Option<bool>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 24 pub did: jacquard_common::types::string::Did<'a>, 25 #[serde(borrow)] 26 pub display_name: jacquard_common::CowStr<'a>, 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub labels: std::option::Option<GeneratorRecordLabels<'a>>, 30 } 31 #[jacquard_derive::open_union] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(tag = "$type")] ··· 35 pub enum GeneratorRecordLabels<'a> { 36 #[serde(rename = "com.atproto.label.defs#selfLabels")] 37 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 38 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Generator<'a> { 11 + ///Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub accepts_interactions: std::option::Option<bool>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 30 pub did: jacquard_common::types::string::Did<'a>, 31 #[serde(borrow)] 32 pub display_name: jacquard_common::CowStr<'a>, 33 + ///Self-label values 34 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 #[serde(borrow)] 36 pub labels: std::option::Option<GeneratorRecordLabels<'a>>, 37 } 38 + 39 #[jacquard_derive::open_union] 40 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 41 #[serde(tag = "$type")] ··· 43 pub enum GeneratorRecordLabels<'a> { 44 #[serde(rename = "com.atproto.label.defs#selfLabels")] 45 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 46 + }
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetActorFeedsParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 #[serde(borrow)] 20 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 21 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetActorFeedsParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(borrow)] 26 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 27 + }
+10 -2
crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetActorLikesParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 19 #[serde(borrow)] 20 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 21 } 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 38 #[serde(rename = "BlockedByActor")] 39 BlockedByActor(std::option::Option<String>), 40 } 41 impl std::fmt::Display for GetActorLikesError<'_> { 42 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 43 match self { ··· 55 } 56 Ok(()) 57 } 58 - Self::Unknown(_) => write!(f, "Unknown error"), 59 } 60 } 61 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetActorLikesParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 27 } 28 + 29 #[jacquard_derive::open_union] 30 #[derive( 31 serde::Serialize, ··· 45 #[serde(rename = "BlockedByActor")] 46 BlockedByActor(std::option::Option<String>), 47 } 48 + 49 impl std::fmt::Display for GetActorLikesError<'_> { 50 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 51 match self { ··· 63 } 64 Ok(()) 65 } 66 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 67 } 68 } 69 + }
+10 -2
crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetAuthorFeedParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] ··· 24 #[serde(borrow)] 25 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 26 } 27 #[jacquard_derive::open_union] 28 #[derive( 29 serde::Serialize, ··· 43 #[serde(rename = "BlockedByActor")] 44 BlockedByActor(std::option::Option<String>), 45 } 46 impl std::fmt::Display for GetAuthorFeedError<'_> { 47 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 48 match self { ··· 60 } 61 Ok(()) 62 } 63 - Self::Unknown(_) => write!(f, "Unknown error"), 64 } 65 } 66 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetAuthorFeedParams<'a> { ··· 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 pub limit: std::option::Option<i64>, 21 } 22 + 23 #[jacquard_derive::lexicon] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 #[serde(rename_all = "camelCase")] ··· 30 #[serde(borrow)] 31 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 32 } 33 + 34 #[jacquard_derive::open_union] 35 #[derive( 36 serde::Serialize, ··· 50 #[serde(rename = "BlockedByActor")] 51 BlockedByActor(std::option::Option<String>), 52 } 53 + 54 impl std::fmt::Display for GetAuthorFeedError<'_> { 55 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 56 match self { ··· 68 } 69 Ok(()) 70 } 71 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 72 } 73 } 74 + }
+10 -2
crates/jacquard-api/src/app_bsky/feed/get_feed.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetFeedParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 19 #[serde(borrow)] 20 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 21 } 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 36 #[serde(rename = "UnknownFeed")] 37 UnknownFeed(std::option::Option<String>), 38 } 39 impl std::fmt::Display for GetFeedError<'_> { 40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 41 match self { ··· 46 } 47 Ok(()) 48 } 49 - Self::Unknown(_) => write!(f, "Unknown error"), 50 } 51 } 52 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetFeedParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 27 } 28 + 29 #[jacquard_derive::open_union] 30 #[derive( 31 serde::Serialize, ··· 43 #[serde(rename = "UnknownFeed")] 44 UnknownFeed(std::option::Option<String>), 45 } 46 + 47 impl std::fmt::Display for GetFeedError<'_> { 48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 49 match self { ··· 54 } 55 Ok(()) 56 } 57 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 } 59 } 60 + }
+9 -1
crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetFeedGeneratorParams<'a> { 4 #[serde(borrow)] 5 pub feed: jacquard_common::types::string::AtUri<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetFeedGeneratorOutput<'a> { 11 pub is_online: bool, 12 pub is_valid: bool, 13 #[serde(borrow)] 14 pub view: crate::app_bsky::feed::GeneratorView<'a>, 15 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetFeedGeneratorParams<'a> { 9 #[serde(borrow)] 10 pub feed: jacquard_common::types::string::AtUri<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetFeedGeneratorOutput<'a> { 17 + ///Indicates whether the feed generator service has been online recently, or else seems to be inactive. 18 pub is_online: bool, 19 + ///Indicates whether the feed generator service is compatible with the record declaration. 20 pub is_valid: bool, 21 #[serde(borrow)] 22 pub view: crate::app_bsky::feed::GeneratorView<'a>, 23 + }
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetFeedGeneratorsParams<'a> { 4 #[serde(borrow)] 5 pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetFeedGeneratorsOutput<'a> { 11 #[serde(borrow)] 12 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetFeedGeneratorsParams<'a> { 9 #[serde(borrow)] 10 pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetFeedGeneratorsOutput<'a> { 17 #[serde(borrow)] 18 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 19 + }
+11 -2
crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetFeedSkeletonParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 #[serde(borrow)] 20 pub feed: Vec<crate::app_bsky::feed::SkeletonFeedPost<'a>>, 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 #[serde(borrow)] 23 pub req_id: std::option::Option<jacquard_common::CowStr<'a>>, 24 } 25 #[jacquard_derive::open_union] 26 #[derive( 27 serde::Serialize, ··· 39 #[serde(rename = "UnknownFeed")] 40 UnknownFeed(std::option::Option<String>), 41 } 42 impl std::fmt::Display for GetFeedSkeletonError<'_> { 43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 44 match self { ··· 49 } 50 Ok(()) 51 } 52 - Self::Unknown(_) => write!(f, "Unknown error"), 53 } 54 } 55 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetFeedSkeletonParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(borrow)] 26 pub feed: Vec<crate::app_bsky::feed::SkeletonFeedPost<'a>>, 27 + ///Unique identifier per request that may be passed back alongside interactions. 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub req_id: std::option::Option<jacquard_common::CowStr<'a>>, 31 } 32 + 33 #[jacquard_derive::open_union] 34 #[derive( 35 serde::Serialize, ··· 47 #[serde(rename = "UnknownFeed")] 48 UnknownFeed(std::option::Option<String>), 49 } 50 + 51 impl std::fmt::Display for GetFeedSkeletonError<'_> { 52 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 53 match self { ··· 58 } 59 Ok(()) 60 } 61 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 62 } 63 } 64 + }
+8 -1
crates/jacquard-api/src/app_bsky/feed/get_likes.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 pub created_at: jacquard_common::types::string::Datetime, 8 pub indexed_at: jacquard_common::types::string::Datetime, 9 } 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct GetLikesParams<'a> { ··· 21 #[serde(borrow)] 22 pub uri: jacquard_common::types::string::AtUri<'a>, 23 } 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 35 pub likes: Vec<jacquard_common::types::value::Data<'a>>, 36 #[serde(borrow)] 37 pub uri: jacquard_common::types::string::AtUri<'a>, 38 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 pub created_at: jacquard_common::types::string::Datetime, 13 pub indexed_at: jacquard_common::types::string::Datetime, 14 } 15 + 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] 18 pub struct GetLikesParams<'a> { ··· 27 #[serde(borrow)] 28 pub uri: jacquard_common::types::string::AtUri<'a>, 29 } 30 + 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(rename_all = "camelCase")] ··· 42 pub likes: Vec<jacquard_common::types::value::Data<'a>>, 43 #[serde(borrow)] 44 pub uri: jacquard_common::types::string::AtUri<'a>, 45 + }
+10 -2
crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetListFeedParams<'a> { ··· 9 #[serde(borrow)] 10 pub list: jacquard_common::types::string::AtUri<'a>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 19 #[serde(borrow)] 20 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 21 } 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 36 #[serde(rename = "UnknownList")] 37 UnknownList(std::option::Option<String>), 38 } 39 impl std::fmt::Display for GetListFeedError<'_> { 40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 41 match self { ··· 46 } 47 Ok(()) 48 } 49 - Self::Unknown(_) => write!(f, "Unknown error"), 50 } 51 } 52 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetListFeedParams<'a> { ··· 14 #[serde(borrow)] 15 pub list: jacquard_common::types::string::AtUri<'a>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 27 } 28 + 29 #[jacquard_derive::open_union] 30 #[derive( 31 serde::Serialize, ··· 43 #[serde(rename = "UnknownList")] 44 UnknownList(std::option::Option<String>), 45 } 46 + 47 impl std::fmt::Display for GetListFeedError<'_> { 48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 49 match self { ··· 54 } 55 Ok(()) 56 } 57 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 } 59 } 60 + }
+11 -2
crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetPostThreadParams<'a> { ··· 8 #[serde(borrow)] 9 pub uri: jacquard_common::types::string::AtUri<'a>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] ··· 18 #[serde(borrow)] 19 pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>, 20 } 21 #[jacquard_derive::open_union] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(tag = "$type")] ··· 30 #[serde(rename = "app.bsky.feed.defs#blockedPost")] 31 DefsBlockedPost(Box<crate::app_bsky::feed::BlockedPost<'a>>), 32 } 33 #[jacquard_derive::open_union] 34 #[derive( 35 serde::Serialize, ··· 47 #[serde(rename = "NotFound")] 48 NotFound(std::option::Option<String>), 49 } 50 impl std::fmt::Display for GetPostThreadError<'_> { 51 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 52 match self { ··· 57 } 58 Ok(()) 59 } 60 - Self::Unknown(_) => write!(f, "Unknown error"), 61 } 62 } 63 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetPostThreadParams<'a> { ··· 13 #[serde(borrow)] 14 pub uri: jacquard_common::types::string::AtUri<'a>, 15 } 16 + 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] ··· 24 #[serde(borrow)] 25 pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>, 26 } 27 + 28 #[jacquard_derive::open_union] 29 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 30 #[serde(tag = "$type")] ··· 37 #[serde(rename = "app.bsky.feed.defs#blockedPost")] 38 DefsBlockedPost(Box<crate::app_bsky::feed::BlockedPost<'a>>), 39 } 40 + 41 #[jacquard_derive::open_union] 42 #[derive( 43 serde::Serialize, ··· 55 #[serde(rename = "NotFound")] 56 NotFound(std::option::Option<String>), 57 } 58 + 59 impl std::fmt::Display for GetPostThreadError<'_> { 60 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 61 match self { ··· 66 } 67 Ok(()) 68 } 69 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 70 } 71 } 72 + }
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_posts.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetPostsParams<'a> { 4 #[serde(borrow)] 5 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetPostsOutput<'a> { 11 #[serde(borrow)] 12 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetPostsParams<'a> { 9 #[serde(borrow)] 10 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetPostsOutput<'a> { 17 #[serde(borrow)] 18 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_quotes.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetQuotesParams<'a> { ··· 12 #[serde(borrow)] 13 pub uri: jacquard_common::types::string::AtUri<'a>, 14 } 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 26 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>, 27 #[serde(borrow)] 28 pub uri: jacquard_common::types::string::AtUri<'a>, 29 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetQuotesParams<'a> { ··· 17 #[serde(borrow)] 18 pub uri: jacquard_common::types::string::AtUri<'a>, 19 } 20 + 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] ··· 32 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>, 33 #[serde(borrow)] 34 pub uri: jacquard_common::types::string::AtUri<'a>, 35 + }
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRepostedByParams<'a> { ··· 12 #[serde(borrow)] 13 pub uri: jacquard_common::types::string::AtUri<'a>, 14 } 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 26 pub reposted_by: Vec<crate::app_bsky::actor::ProfileView<'a>>, 27 #[serde(borrow)] 28 pub uri: jacquard_common::types::string::AtUri<'a>, 29 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRepostedByParams<'a> { ··· 17 #[serde(borrow)] 18 pub uri: jacquard_common::types::string::AtUri<'a>, 19 } 20 + 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] ··· 32 pub reposted_by: Vec<crate::app_bsky::actor::ProfileView<'a>>, 33 #[serde(borrow)] 34 pub uri: jacquard_common::types::string::AtUri<'a>, 35 + }
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestedFeedsParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 17 #[serde(borrow)] 18 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestedFeedsParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 #[serde(borrow)] 24 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 25 + }
+7 -1
crates/jacquard-api/src/app_bsky/feed/get_timeline.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetTimelineParams<'a> { ··· 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 pub limit: std::option::Option<i64>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 19 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 20 #[serde(borrow)] 21 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 22 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetTimelineParams<'a> { ··· 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 pub limit: std::option::Option<i64>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 25 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 26 #[serde(borrow)] 27 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 28 + }
+6 -1
crates/jacquard-api/src/app_bsky/feed/like.rs
··· 1 ///Record declaring a 'like' of a piece of subject content. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 #[serde(borrow)] 11 pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 12 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Record declaring a 'like' of a piece of subject content. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 17 + }
+22 -4
crates/jacquard-api/src/app_bsky/feed/post.rs
··· 1 ///Deprecated: use facets instead. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Entity<'a> { 6 #[serde(borrow)] 7 - pub index: jacquard_common::types::value::Data<'a>, 8 #[serde(borrow)] 9 pub r#type: jacquard_common::CowStr<'a>, 10 #[serde(borrow)] 11 pub value: jacquard_common::CowStr<'a>, 12 } 13 ///Record containing a Bluesky post. 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] 17 pub struct Post<'a> { 18 pub created_at: jacquard_common::types::string::Datetime, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub embed: std::option::Option<PostRecordEmbed<'a>>, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 - pub entities: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>, 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub labels: std::option::Option<PostRecordLabels<'a>>, 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 pub langs: std::option::Option<Vec<jacquard_common::types::string::Language>>, 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 - pub reply: std::option::Option<jacquard_common::types::value::Data<'a>>, 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 37 #[serde(borrow)] 38 pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 39 #[serde(borrow)] 40 pub text: jacquard_common::CowStr<'a>, 41 } 42 #[jacquard_derive::open_union] 43 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 44 #[serde(tag = "$type")] ··· 55 #[serde(rename = "app.bsky.embed.recordWithMedia")] 56 RecordWithMedia(Box<crate::app_bsky::embed::record_with_media::RecordWithMedia<'a>>), 57 } 58 #[jacquard_derive::open_union] 59 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 60 #[serde(tag = "$type")] ··· 63 #[serde(rename = "com.atproto.label.defs#selfLabels")] 64 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 65 } 66 #[jacquard_derive::lexicon] 67 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 68 #[serde(rename_all = "camelCase")] ··· 72 #[serde(borrow)] 73 pub root: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 74 } 75 ///Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. 76 #[jacquard_derive::lexicon] 77 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 79 pub struct TextSlice<'a> { 80 pub end: i64, 81 pub start: i64, 82 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Deprecated: use facets instead. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Entity<'a> { 11 #[serde(borrow)] 12 + pub index: crate::app_bsky::feed::post::TextSlice<'a>, 13 + ///Expected values are 'mention' and 'link'. 14 #[serde(borrow)] 15 pub r#type: jacquard_common::CowStr<'a>, 16 #[serde(borrow)] 17 pub value: jacquard_common::CowStr<'a>, 18 } 19 + 20 ///Record containing a Bluesky post. 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] 24 pub struct Post<'a> { 25 + ///Client-declared timestamp when this post was originally created. 26 pub created_at: jacquard_common::types::string::Datetime, 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub embed: std::option::Option<PostRecordEmbed<'a>>, 30 + ///DEPRECATED: replaced by app.bsky.richtext.facet. 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 #[serde(borrow)] 33 + pub entities: std::option::Option<Vec<crate::app_bsky::feed::post::Entity<'a>>>, 34 + ///Annotations of text (mentions, URLs, hashtags, etc) 35 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 #[serde(borrow)] 37 pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>, 38 + ///Self-label values for this post. Effectively content warnings. 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] 40 #[serde(borrow)] 41 pub labels: std::option::Option<PostRecordLabels<'a>>, 42 + ///Indicates human language of post primary text content. 43 #[serde(skip_serializing_if = "std::option::Option::is_none")] 44 pub langs: std::option::Option<Vec<jacquard_common::types::string::Language>>, 45 #[serde(skip_serializing_if = "std::option::Option::is_none")] 46 #[serde(borrow)] 47 + pub reply: std::option::Option<crate::app_bsky::feed::post::ReplyRef<'a>>, 48 + ///Additional hashtags, in addition to any included in post text and facets. 49 #[serde(skip_serializing_if = "std::option::Option::is_none")] 50 #[serde(borrow)] 51 pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 52 + ///The primary post content. May be an empty string, if there are embeds. 53 #[serde(borrow)] 54 pub text: jacquard_common::CowStr<'a>, 55 } 56 + 57 #[jacquard_derive::open_union] 58 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 59 #[serde(tag = "$type")] ··· 70 #[serde(rename = "app.bsky.embed.recordWithMedia")] 71 RecordWithMedia(Box<crate::app_bsky::embed::record_with_media::RecordWithMedia<'a>>), 72 } 73 + 74 #[jacquard_derive::open_union] 75 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 76 #[serde(tag = "$type")] ··· 79 #[serde(rename = "com.atproto.label.defs#selfLabels")] 80 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 81 } 82 + 83 #[jacquard_derive::lexicon] 84 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 85 #[serde(rename_all = "camelCase")] ··· 89 #[serde(borrow)] 90 pub root: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 91 } 92 + 93 ///Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. 94 #[jacquard_derive::lexicon] 95 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 97 pub struct TextSlice<'a> { 98 pub end: i64, 99 pub start: i64, 100 + }
+9 -1
crates/jacquard-api/src/app_bsky/feed/postgate.rs
··· 1 ///Disables embedding of this post. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 9 #[serde(rename_all = "camelCase")] 10 pub struct Postgate<'a> { 11 pub created_at: jacquard_common::types::string::Datetime, 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 #[serde(borrow)] 14 pub detached_embedding_uris: std::option::Option< 15 Vec<jacquard_common::types::string::AtUri<'a>>, 16 >, 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub embedding_rules: std::option::Option< 20 Vec<jacquard_common::types::value::Data<'a>>, 21 >, 22 #[serde(borrow)] 23 pub post: jacquard_common::types::string::AtUri<'a>, 24 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Disables embedding of this post. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 14 #[serde(rename_all = "camelCase")] 15 pub struct Postgate<'a> { 16 pub created_at: jacquard_common::types::string::Datetime, 17 + ///List of AT-URIs embedding this post that the author has detached from. 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub detached_embedding_uris: std::option::Option< 21 Vec<jacquard_common::types::string::AtUri<'a>>, 22 >, 23 + ///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. 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub embedding_rules: std::option::Option< 27 Vec<jacquard_common::types::value::Data<'a>>, 28 >, 29 + ///Reference (AT-URI) to the post record. 30 #[serde(borrow)] 31 pub post: jacquard_common::types::string::AtUri<'a>, 32 + }
+6 -1
crates/jacquard-api/src/app_bsky/feed/repost.rs
··· 1 ///Record representing a 'repost' of an existing Bluesky post. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 #[serde(borrow)] 11 pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 12 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Record representing a 'repost' of an existing Bluesky post. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 17 + }
+11 -2
crates/jacquard-api/src/app_bsky/feed/search_posts.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchPostsParams<'a> { ··· 35 #[serde(borrow)] 36 pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>, 37 } 38 #[jacquard_derive::lexicon] 39 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 40 #[serde(rename_all = "camelCase")] ··· 42 #[serde(skip_serializing_if = "std::option::Option::is_none")] 43 #[serde(borrow)] 44 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 45 #[serde(skip_serializing_if = "std::option::Option::is_none")] 46 pub hits_total: std::option::Option<i64>, 47 #[serde(borrow)] 48 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>, 49 } 50 #[jacquard_derive::open_union] 51 #[derive( 52 serde::Serialize, ··· 64 #[serde(rename = "BadQueryString")] 65 BadQueryString(std::option::Option<String>), 66 } 67 impl std::fmt::Display for SearchPostsError<'_> { 68 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 69 match self { ··· 74 } 75 Ok(()) 76 } 77 - Self::Unknown(_) => write!(f, "Unknown error"), 78 } 79 } 80 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchPostsParams<'a> { ··· 40 #[serde(borrow)] 41 pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>, 42 } 43 + 44 #[jacquard_derive::lexicon] 45 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 46 #[serde(rename_all = "camelCase")] ··· 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 #[serde(borrow)] 50 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 51 + ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. 52 #[serde(skip_serializing_if = "std::option::Option::is_none")] 53 pub hits_total: std::option::Option<i64>, 54 #[serde(borrow)] 55 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>, 56 } 57 + 58 #[jacquard_derive::open_union] 59 #[derive( 60 serde::Serialize, ··· 72 #[serde(rename = "BadQueryString")] 73 BadQueryString(std::option::Option<String>), 74 } 75 + 76 impl std::fmt::Display for SearchPostsError<'_> { 77 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 78 match self { ··· 83 } 84 Ok(()) 85 } 86 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 87 } 88 } 89 + }
+7 -1
crates/jacquard-api/src/app_bsky/feed/send_interactions.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub interactions: Vec<crate::app_bsky::feed::Interaction<'a>>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] 11 - pub struct SendInteractionsOutput<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub interactions: Vec<crate::app_bsky::feed::Interaction<'a>>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] 17 + pub struct SendInteractionsOutput<'a> {}
+11 -1
crates/jacquard-api/src/app_bsky/feed/threadgate.rs
··· 1 ///Allow replies from actors who follow you. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 16 #[serde(borrow)] 17 pub list: jacquard_common::types::string::AtUri<'a>, 18 } 19 ///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. 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] 23 pub struct Threadgate<'a> { 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub allow: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 27 pub created_at: jacquard_common::types::string::Datetime, 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub hidden_replies: std::option::Option< 31 Vec<jacquard_common::types::string::AtUri<'a>>, 32 >, 33 #[serde(borrow)] 34 pub post: jacquard_common::types::string::AtUri<'a>, 35 } 36 ///Allow replies from actors mentioned in your post. 37 #[jacquard_derive::lexicon] 38 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 39 #[serde(rename_all = "camelCase")] 40 - pub struct MentionRule<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Allow replies from actors who follow you. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 21 #[serde(borrow)] 22 pub list: jacquard_common::types::string::AtUri<'a>, 23 } 24 + 25 ///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. 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] 29 pub struct Threadgate<'a> { 30 + ///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. 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 #[serde(borrow)] 33 pub allow: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 34 pub created_at: jacquard_common::types::string::Datetime, 35 + ///List of hidden reply URIs. 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 37 #[serde(borrow)] 38 pub hidden_replies: std::option::Option< 39 Vec<jacquard_common::types::string::AtUri<'a>>, 40 >, 41 + ///Reference (AT-URI) to the post record. 42 #[serde(borrow)] 43 pub post: jacquard_common::types::string::AtUri<'a>, 44 } 45 + 46 ///Allow replies from actors mentioned in your post. 47 #[jacquard_derive::lexicon] 48 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 49 #[serde(rename_all = "camelCase")] 50 + pub struct MentionRule<'a> {}
+59 -37
crates/jacquard-api/src/app_bsky/graph.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub uri: jacquard_common::types::string::AtUri<'a>, 9 } 10 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 11 pub enum ListPurpose<'a> { 12 AppBskyGraphDefsModlist, ··· 14 AppBskyGraphDefsReferencelist, 15 Other(jacquard_common::CowStr<'a>), 16 } 17 impl<'a> ListPurpose<'a> { 18 pub fn as_str(&self) -> &str { 19 match self { ··· 24 } 25 } 26 } 27 impl<'a> From<&'a str> for ListPurpose<'a> { 28 fn from(s: &'a str) -> Self { 29 match s { ··· 34 } 35 } 36 } 37 impl<'a> From<String> for ListPurpose<'a> { 38 fn from(s: String) -> Self { 39 match s.as_str() { ··· 44 } 45 } 46 } 47 impl<'a> AsRef<str> for ListPurpose<'a> { 48 fn as_ref(&self) -> &str { 49 self.as_str() 50 } 51 } 52 impl<'a> serde::Serialize for ListPurpose<'a> { 53 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 54 where ··· 57 serializer.serialize_str(self.as_str()) 58 } 59 } 60 impl<'de, 'a> serde::Deserialize<'de> for ListPurpose<'a> 61 where 62 'de: 'a, ··· 69 Ok(Self::from(s)) 70 } 71 } 72 #[jacquard_derive::lexicon] 73 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 74 #[serde(rename_all = "camelCase")] ··· 97 #[serde(borrow)] 98 pub name: jacquard_common::CowStr<'a>, 99 #[serde(borrow)] 100 - pub purpose: jacquard_common::types::value::Data<'a>, 101 #[serde(borrow)] 102 pub uri: jacquard_common::types::string::AtUri<'a>, 103 #[serde(skip_serializing_if = "std::option::Option::is_none")] 104 #[serde(borrow)] 105 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 106 } 107 #[jacquard_derive::lexicon] 108 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 109 #[serde(rename_all = "camelCase")] ··· 123 #[serde(borrow)] 124 pub name: jacquard_common::CowStr<'a>, 125 #[serde(borrow)] 126 - pub purpose: jacquard_common::types::value::Data<'a>, 127 #[serde(borrow)] 128 pub uri: jacquard_common::types::string::AtUri<'a>, 129 #[serde(skip_serializing_if = "std::option::Option::is_none")] 130 #[serde(borrow)] 131 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 132 } 133 #[jacquard_derive::lexicon] 134 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 135 #[serde(rename_all = "camelCase")] ··· 140 #[serde(skip_serializing_if = "std::option::Option::is_none")] 141 pub muted: std::option::Option<bool>, 142 } 143 ///indicates that a handle or DID could not be resolved 144 #[jacquard_derive::lexicon] 145 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 149 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 150 pub not_found: bool, 151 } 152 ///lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) 153 #[jacquard_derive::lexicon] 154 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 156 pub struct Relationship<'a> { 157 #[serde(borrow)] 158 pub did: jacquard_common::types::string::Did<'a>, 159 #[serde(skip_serializing_if = "std::option::Option::is_none")] 160 #[serde(borrow)] 161 pub followed_by: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 162 #[serde(skip_serializing_if = "std::option::Option::is_none")] 163 #[serde(borrow)] 164 pub following: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 165 } 166 #[jacquard_derive::lexicon] 167 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 168 #[serde(rename_all = "camelCase")] ··· 184 pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>, 185 #[serde(skip_serializing_if = "std::option::Option::is_none")] 186 #[serde(borrow)] 187 - pub list: std::option::Option<jacquard_common::types::value::Data<'a>>, 188 #[serde(skip_serializing_if = "std::option::Option::is_none")] 189 #[serde(borrow)] 190 pub list_items_sample: std::option::Option< 191 - Vec<jacquard_common::types::value::Data<'a>>, 192 >, 193 #[serde(borrow)] 194 pub record: jacquard_common::types::value::Data<'a>, 195 #[serde(borrow)] 196 pub uri: jacquard_common::types::string::AtUri<'a>, 197 } 198 #[jacquard_derive::lexicon] 199 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 200 #[serde(rename_all = "camelCase")] ··· 217 pub record: jacquard_common::types::value::Data<'a>, 218 #[serde(borrow)] 219 pub uri: jacquard_common::types::string::AtUri<'a>, 220 - } 221 - pub mod block; 222 - pub mod follow; 223 - pub mod get_actor_starter_packs; 224 - pub mod get_blocks; 225 - pub mod get_followers; 226 - pub mod get_follows; 227 - pub mod get_known_followers; 228 - pub mod get_list; 229 - pub mod get_list_blocks; 230 - pub mod get_list_mutes; 231 - pub mod get_lists; 232 - pub mod get_lists_with_membership; 233 - pub mod get_mutes; 234 - pub mod get_relationships; 235 - pub mod get_starter_pack; 236 - pub mod get_starter_packs; 237 - pub mod get_starter_packs_with_membership; 238 - pub mod get_suggested_follows_by_actor; 239 - pub mod list; 240 - pub mod listblock; 241 - pub mod listitem; 242 - pub mod mute_actor; 243 - pub mod mute_actor_list; 244 - pub mod mute_thread; 245 - pub mod search_starter_packs; 246 - pub mod starterpack; 247 - pub mod unmute_actor; 248 - pub mod unmute_actor_list; 249 - pub mod unmute_thread; 250 - pub mod verification;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod block; 7 + pub mod follow; 8 + pub mod get_actor_starter_packs; 9 + pub mod get_blocks; 10 + pub mod get_followers; 11 + pub mod get_follows; 12 + pub mod get_known_followers; 13 + pub mod get_list; 14 + pub mod get_list_blocks; 15 + pub mod get_list_mutes; 16 + pub mod get_lists; 17 + pub mod get_lists_with_membership; 18 + pub mod get_mutes; 19 + pub mod get_relationships; 20 + pub mod get_starter_pack; 21 + pub mod get_starter_packs; 22 + pub mod get_starter_packs_with_membership; 23 + pub mod get_suggested_follows_by_actor; 24 + pub mod list; 25 + pub mod listblock; 26 + pub mod listitem; 27 + pub mod mute_actor; 28 + pub mod mute_actor_list; 29 + pub mod mute_thread; 30 + pub mod search_starter_packs; 31 + pub mod starterpack; 32 + pub mod unmute_actor; 33 + pub mod unmute_actor_list; 34 + pub mod unmute_thread; 35 + pub mod verification; 36 + 37 #[jacquard_derive::lexicon] 38 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 39 #[serde(rename_all = "camelCase")] ··· 43 #[serde(borrow)] 44 pub uri: jacquard_common::types::string::AtUri<'a>, 45 } 46 + 47 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 48 pub enum ListPurpose<'a> { 49 AppBskyGraphDefsModlist, ··· 51 AppBskyGraphDefsReferencelist, 52 Other(jacquard_common::CowStr<'a>), 53 } 54 + 55 impl<'a> ListPurpose<'a> { 56 pub fn as_str(&self) -> &str { 57 match self { ··· 62 } 63 } 64 } 65 + 66 impl<'a> From<&'a str> for ListPurpose<'a> { 67 fn from(s: &'a str) -> Self { 68 match s { ··· 73 } 74 } 75 } 76 + 77 impl<'a> From<String> for ListPurpose<'a> { 78 fn from(s: String) -> Self { 79 match s.as_str() { ··· 84 } 85 } 86 } 87 + 88 impl<'a> AsRef<str> for ListPurpose<'a> { 89 fn as_ref(&self) -> &str { 90 self.as_str() 91 } 92 } 93 + 94 impl<'a> serde::Serialize for ListPurpose<'a> { 95 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 96 where ··· 99 serializer.serialize_str(self.as_str()) 100 } 101 } 102 + 103 impl<'de, 'a> serde::Deserialize<'de> for ListPurpose<'a> 104 where 105 'de: 'a, ··· 112 Ok(Self::from(s)) 113 } 114 } 115 + 116 #[jacquard_derive::lexicon] 117 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 118 #[serde(rename_all = "camelCase")] ··· 141 #[serde(borrow)] 142 pub name: jacquard_common::CowStr<'a>, 143 #[serde(borrow)] 144 + pub purpose: crate::app_bsky::graph::ListPurpose<'a>, 145 #[serde(borrow)] 146 pub uri: jacquard_common::types::string::AtUri<'a>, 147 #[serde(skip_serializing_if = "std::option::Option::is_none")] 148 #[serde(borrow)] 149 + pub viewer: std::option::Option<crate::app_bsky::graph::ListViewerState<'a>>, 150 } 151 + 152 #[jacquard_derive::lexicon] 153 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 154 #[serde(rename_all = "camelCase")] ··· 168 #[serde(borrow)] 169 pub name: jacquard_common::CowStr<'a>, 170 #[serde(borrow)] 171 + pub purpose: crate::app_bsky::graph::ListPurpose<'a>, 172 #[serde(borrow)] 173 pub uri: jacquard_common::types::string::AtUri<'a>, 174 #[serde(skip_serializing_if = "std::option::Option::is_none")] 175 #[serde(borrow)] 176 + pub viewer: std::option::Option<crate::app_bsky::graph::ListViewerState<'a>>, 177 } 178 + 179 #[jacquard_derive::lexicon] 180 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 181 #[serde(rename_all = "camelCase")] ··· 186 #[serde(skip_serializing_if = "std::option::Option::is_none")] 187 pub muted: std::option::Option<bool>, 188 } 189 + 190 ///indicates that a handle or DID could not be resolved 191 #[jacquard_derive::lexicon] 192 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 196 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 197 pub not_found: bool, 198 } 199 + 200 ///lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) 201 #[jacquard_derive::lexicon] 202 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 204 pub struct Relationship<'a> { 205 #[serde(borrow)] 206 pub did: jacquard_common::types::string::Did<'a>, 207 + ///if the actor is followed by this DID, contains the AT-URI of the follow record 208 #[serde(skip_serializing_if = "std::option::Option::is_none")] 209 #[serde(borrow)] 210 pub followed_by: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 211 + ///if the actor follows this DID, this is the AT-URI of the follow record 212 #[serde(skip_serializing_if = "std::option::Option::is_none")] 213 #[serde(borrow)] 214 pub following: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 215 } 216 + 217 #[jacquard_derive::lexicon] 218 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 219 #[serde(rename_all = "camelCase")] ··· 235 pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>, 236 #[serde(skip_serializing_if = "std::option::Option::is_none")] 237 #[serde(borrow)] 238 + pub list: std::option::Option<crate::app_bsky::graph::ListViewBasic<'a>>, 239 #[serde(skip_serializing_if = "std::option::Option::is_none")] 240 #[serde(borrow)] 241 pub list_items_sample: std::option::Option< 242 + Vec<crate::app_bsky::graph::ListItemView<'a>>, 243 >, 244 #[serde(borrow)] 245 pub record: jacquard_common::types::value::Data<'a>, 246 #[serde(borrow)] 247 pub uri: jacquard_common::types::string::AtUri<'a>, 248 } 249 + 250 #[jacquard_derive::lexicon] 251 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 252 #[serde(rename_all = "camelCase")] ··· 269 pub record: jacquard_common::types::value::Data<'a>, 270 #[serde(borrow)] 271 pub uri: jacquard_common::types::string::AtUri<'a>, 272 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/block.rs
··· 1 ///Record declaring a 'block' relationship against another account. NOTE: blocks are public in Bluesky; see blog posts for details. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Block<'a> { 6 pub created_at: jacquard_common::types::string::Datetime, 7 #[serde(borrow)] 8 pub subject: jacquard_common::types::string::Did<'a>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Record declaring a 'block' relationship against another account. NOTE: blocks are public in Bluesky; see blog posts for details. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Block<'a> { 11 pub created_at: jacquard_common::types::string::Datetime, 12 + ///DID of the account to be blocked. 13 #[serde(borrow)] 14 pub subject: jacquard_common::types::string::Did<'a>, 15 + }
+6 -1
crates/jacquard-api/src/app_bsky/graph/follow.rs
··· 1 ///Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 6 pub created_at: jacquard_common::types::string::Datetime, 7 #[serde(borrow)] 8 pub subject: jacquard_common::types::string::Did<'a>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 11 pub created_at: jacquard_common::types::string::Datetime, 12 #[serde(borrow)] 13 pub subject: jacquard_common::types::string::Did<'a>, 14 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetActorStarterPacksParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 #[serde(borrow)] 20 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 21 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetActorStarterPacksParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(borrow)] 26 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 27 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_blocks.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetBlocksParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetBlocksParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_followers.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetFollowersParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 20 pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>, 21 #[serde(borrow)] 22 pub subject: crate::app_bsky::actor::ProfileView<'a>, 23 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetFollowersParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 26 pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>, 27 #[serde(borrow)] 28 pub subject: crate::app_bsky::actor::ProfileView<'a>, 29 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_follows.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetFollowsParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 20 pub follows: Vec<crate::app_bsky::actor::ProfileView<'a>>, 21 #[serde(borrow)] 22 pub subject: crate::app_bsky::actor::ProfileView<'a>, 23 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetFollowsParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 26 pub follows: Vec<crate::app_bsky::actor::ProfileView<'a>>, 27 #[serde(borrow)] 28 pub subject: crate::app_bsky::actor::ProfileView<'a>, 29 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetKnownFollowersParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 20 pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>, 21 #[serde(borrow)] 22 pub subject: crate::app_bsky::actor::ProfileView<'a>, 23 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetKnownFollowersParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 26 pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>, 27 #[serde(borrow)] 28 pub subject: crate::app_bsky::actor::ProfileView<'a>, 29 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_list.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetListParams<'a> { ··· 9 #[serde(borrow)] 10 pub list: jacquard_common::types::string::AtUri<'a>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 20 pub items: Vec<crate::app_bsky::graph::ListItemView<'a>>, 21 #[serde(borrow)] 22 pub list: crate::app_bsky::graph::ListView<'a>, 23 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetListParams<'a> { ··· 14 #[serde(borrow)] 15 pub list: jacquard_common::types::string::AtUri<'a>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 26 pub items: Vec<crate::app_bsky::graph::ListItemView<'a>>, 27 #[serde(borrow)] 28 pub list: crate::app_bsky::graph::ListView<'a>, 29 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetListBlocksParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 17 #[serde(borrow)] 18 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetListBlocksParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 #[serde(borrow)] 24 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 25 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetListMutesParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 17 #[serde(borrow)] 18 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetListMutesParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 #[serde(borrow)] 24 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 25 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_lists.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetListsParams<'a> { ··· 12 #[serde(borrow)] 13 pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 14 } 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 21 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 22 #[serde(borrow)] 23 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 24 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetListsParams<'a> { ··· 17 #[serde(borrow)] 18 pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 19 } 20 + 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] ··· 27 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 28 #[serde(borrow)] 29 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 30 + }
+8 -1
crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs
··· 1 ///A list and an optional list item indicating membership of a target user to that list. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 9 #[serde(borrow)] 10 pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>, 11 } 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] 14 pub struct GetListsWithMembershipParams<'a> { ··· 23 #[serde(borrow)] 24 pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 25 } 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] ··· 32 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 33 #[serde(borrow)] 34 pub lists_with_membership: Vec<jacquard_common::types::value::Data<'a>>, 35 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///A list and an optional list item indicating membership of a target user to that list. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 14 #[serde(borrow)] 15 pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>, 16 } 17 + 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] 20 pub struct GetListsWithMembershipParams<'a> { ··· 29 #[serde(borrow)] 30 pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 31 } 32 + 33 #[jacquard_derive::lexicon] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 #[serde(rename_all = "camelCase")] ··· 39 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 40 #[serde(borrow)] 41 pub lists_with_membership: Vec<jacquard_common::types::value::Data<'a>>, 42 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_mutes.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetMutesParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 17 #[serde(borrow)] 18 pub mutes: Vec<crate::app_bsky::actor::ProfileView<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetMutesParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 #[serde(borrow)] 24 pub mutes: Vec<crate::app_bsky::actor::ProfileView<'a>>, 25 + }
+10 -2
crates/jacquard-api/src/app_bsky/graph/get_relationships.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRelationshipsParams<'a> { ··· 9 Vec<jacquard_common::types::ident::AtIdentifier<'a>>, 10 >, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 19 #[serde(borrow)] 20 pub relationships: Vec<jacquard_common::types::value::Data<'a>>, 21 } 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 37 #[serde(rename = "ActorNotFound")] 38 ActorNotFound(std::option::Option<String>), 39 } 40 impl std::fmt::Display for GetRelationshipsError<'_> { 41 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 42 match self { ··· 47 } 48 Ok(()) 49 } 50 - Self::Unknown(_) => write!(f, "Unknown error"), 51 } 52 } 53 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRelationshipsParams<'a> { ··· 14 Vec<jacquard_common::types::ident::AtIdentifier<'a>>, 15 >, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub relationships: Vec<jacquard_common::types::value::Data<'a>>, 27 } 28 + 29 #[jacquard_derive::open_union] 30 #[derive( 31 serde::Serialize, ··· 44 #[serde(rename = "ActorNotFound")] 45 ActorNotFound(std::option::Option<String>), 46 } 47 + 48 impl std::fmt::Display for GetRelationshipsError<'_> { 49 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 50 match self { ··· 55 } 56 Ok(()) 57 } 58 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 59 } 60 } 61 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetStarterPackParams<'a> { 4 #[serde(borrow)] 5 pub starter_pack: jacquard_common::types::string::AtUri<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetStarterPackOutput<'a> { 11 #[serde(borrow)] 12 pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetStarterPackParams<'a> { 9 #[serde(borrow)] 10 pub starter_pack: jacquard_common::types::string::AtUri<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetStarterPackOutput<'a> { 17 #[serde(borrow)] 18 pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>, 19 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetStarterPacksParams<'a> { 4 #[serde(borrow)] 5 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetStarterPacksOutput<'a> { 11 #[serde(borrow)] 12 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetStarterPacksParams<'a> { 9 #[serde(borrow)] 10 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetStarterPacksOutput<'a> { 17 #[serde(borrow)] 18 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 19 + }
+8 -1
crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetStarterPacksWithMembershipParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 19 #[serde(borrow)] 20 pub starter_packs_with_membership: Vec<jacquard_common::types::value::Data<'a>>, 21 } 22 ///A starter pack and an optional list item indicating membership of a target user to that starter pack. 23 #[jacquard_derive::lexicon] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 29 pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>, 30 #[serde(borrow)] 31 pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>, 32 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetStarterPacksWithMembershipParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub starter_packs_with_membership: Vec<jacquard_common::types::value::Data<'a>>, 27 } 28 + 29 ///A starter pack and an optional list item indicating membership of a target user to that starter pack. 30 #[jacquard_derive::lexicon] 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 36 pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>, 37 #[serde(borrow)] 38 pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>, 39 + }
+9 -1
crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestedFollowsByActorParams<'a> { 4 #[serde(borrow)] 5 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetSuggestedFollowsByActorOutput<'a> { 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub is_fallback: std::option::Option<bool>, 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 pub rec_id: std::option::Option<i64>, 15 #[serde(borrow)] 16 pub suggestions: Vec<crate::app_bsky::actor::ProfileView<'a>>, 17 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestedFollowsByActorParams<'a> { 9 #[serde(borrow)] 10 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetSuggestedFollowsByActorOutput<'a> { 17 + ///If true, response has fallen-back to generic results, and is not scoped using relativeToDid 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 pub is_fallback: std::option::Option<bool>, 20 + ///Snowflake for this recommendation, use when submitting recommendation events. 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 pub rec_id: std::option::Option<i64>, 23 #[serde(borrow)] 24 pub suggestions: Vec<crate::app_bsky::actor::ProfileView<'a>>, 25 + }
+9 -1
crates/jacquard-api/src/app_bsky/graph/list.rs
··· 1 ///Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub labels: std::option::Option<ListRecordLabels<'a>>, 21 #[serde(borrow)] 22 pub name: jacquard_common::CowStr<'a>, 23 #[serde(borrow)] 24 pub purpose: crate::app_bsky::graph::ListPurpose<'a>, 25 } 26 #[jacquard_derive::open_union] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(tag = "$type")] ··· 30 pub enum ListRecordLabels<'a> { 31 #[serde(rename = "com.atproto.label.defs#selfLabels")] 32 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 33 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 #[serde(borrow)] 25 pub labels: std::option::Option<ListRecordLabels<'a>>, 26 + ///Display name for list; can not be empty. 27 #[serde(borrow)] 28 pub name: jacquard_common::CowStr<'a>, 29 + ///Defines the purpose of the list (aka, moderation-oriented or curration-oriented) 30 #[serde(borrow)] 31 pub purpose: crate::app_bsky::graph::ListPurpose<'a>, 32 } 33 + 34 #[jacquard_derive::open_union] 35 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 36 #[serde(tag = "$type")] ··· 38 pub enum ListRecordLabels<'a> { 39 #[serde(rename = "com.atproto.label.defs#selfLabels")] 40 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 41 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/listblock.rs
··· 1 ///Record representing a block relationship against an entire an entire list of accounts (actors). 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Listblock<'a> { 6 pub created_at: jacquard_common::types::string::Datetime, 7 #[serde(borrow)] 8 pub subject: jacquard_common::types::string::AtUri<'a>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Record representing a block relationship against an entire an entire list of accounts (actors). 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Listblock<'a> { 11 pub created_at: jacquard_common::types::string::Datetime, 12 + ///Reference (AT-URI) to the mod list record. 13 #[serde(borrow)] 14 pub subject: jacquard_common::types::string::AtUri<'a>, 15 + }
+8 -1
crates/jacquard-api/src/app_bsky/graph/listitem.rs
··· 1 ///Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Listitem<'a> { 6 pub created_at: jacquard_common::types::string::Datetime, 7 #[serde(borrow)] 8 pub list: jacquard_common::types::string::AtUri<'a>, 9 #[serde(borrow)] 10 pub subject: jacquard_common::types::string::Did<'a>, 11 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Listitem<'a> { 11 pub created_at: jacquard_common::types::string::Datetime, 12 + ///Reference (AT-URI) to the list record (app.bsky.graph.list). 13 #[serde(borrow)] 14 pub list: jacquard_common::types::string::AtUri<'a>, 15 + ///The account which is included on the list. 16 #[serde(borrow)] 17 pub subject: jacquard_common::types::string::Did<'a>, 18 + }
+6 -1
crates/jacquard-api/src/app_bsky/graph/mute_actor.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct MuteActorInput<'a> { 5 #[serde(borrow)] 6 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct MuteActorInput<'a> { 10 #[serde(borrow)] 11 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 12 + }
+6 -1
crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct MuteActorListInput<'a> { 5 #[serde(borrow)] 6 pub list: jacquard_common::types::string::AtUri<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct MuteActorListInput<'a> { 10 #[serde(borrow)] 11 pub list: jacquard_common::types::string::AtUri<'a>, 12 + }
+6 -1
crates/jacquard-api/src/app_bsky/graph/mute_thread.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct MuteThreadInput<'a> { 5 #[serde(borrow)] 6 pub root: jacquard_common::types::string::AtUri<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct MuteThreadInput<'a> { 10 #[serde(borrow)] 11 pub root: jacquard_common::types::string::AtUri<'a>, 12 + }
+7 -1
crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchStarterPacksParams<'a> { ··· 9 #[serde(borrow)] 10 pub q: jacquard_common::CowStr<'a>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 #[serde(borrow)] 20 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 21 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchStarterPacksParams<'a> { ··· 14 #[serde(borrow)] 15 pub q: jacquard_common::CowStr<'a>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(borrow)] 26 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 27 + }
+12 -2
crates/jacquard-api/src/app_bsky/graph/starterpack.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub uri: jacquard_common::types::string::AtUri<'a>, 7 } 8 ///Record defining a starter pack of actors and feeds for new users. 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 21 >, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 - pub feeds: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 25 #[serde(borrow)] 26 pub list: jacquard_common::types::string::AtUri<'a>, 27 #[serde(borrow)] 28 pub name: jacquard_common::CowStr<'a>, 29 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub uri: jacquard_common::types::string::AtUri<'a>, 12 } 13 + 14 ///Record defining a starter pack of actors and feeds for new users. 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 27 >, 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 + pub feeds: std::option::Option< 31 + Vec<crate::app_bsky::graph::starterpack::FeedItem<'a>>, 32 + >, 33 + ///Reference (AT-URI) to the list record. 34 #[serde(borrow)] 35 pub list: jacquard_common::types::string::AtUri<'a>, 36 + ///Display name for starter pack; can not be empty. 37 #[serde(borrow)] 38 pub name: jacquard_common::CowStr<'a>, 39 + }
+6 -1
crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UnmuteActorInput<'a> { 5 #[serde(borrow)] 6 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UnmuteActorInput<'a> { 10 #[serde(borrow)] 11 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 12 + }
+6 -1
crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UnmuteActorListInput<'a> { 5 #[serde(borrow)] 6 pub list: jacquard_common::types::string::AtUri<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UnmuteActorListInput<'a> { 10 #[serde(borrow)] 11 pub list: jacquard_common::types::string::AtUri<'a>, 12 + }
+6 -1
crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UnmuteThreadInput<'a> { 5 #[serde(borrow)] 6 pub root: jacquard_common::types::string::AtUri<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UnmuteThreadInput<'a> { 10 #[serde(borrow)] 11 pub root: jacquard_common::types::string::AtUri<'a>, 12 + }
+10 -1
crates/jacquard-api/src/app_bsky/graph/verification.rs
··· 1 ///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. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Verification<'a> { 6 pub created_at: jacquard_common::types::string::Datetime, 7 #[serde(borrow)] 8 pub display_name: jacquard_common::CowStr<'a>, 9 #[serde(borrow)] 10 pub handle: jacquard_common::types::string::Handle<'a>, 11 #[serde(borrow)] 12 pub subject: jacquard_common::types::string::Did<'a>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///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. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Verification<'a> { 11 + ///Date of when the verification was created. 12 pub created_at: jacquard_common::types::string::Datetime, 13 + ///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. 14 #[serde(borrow)] 15 pub display_name: jacquard_common::CowStr<'a>, 16 + ///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. 17 #[serde(borrow)] 18 pub handle: jacquard_common::types::string::Handle<'a>, 19 + ///DID of the subject the verification applies to. 20 #[serde(borrow)] 21 pub subject: jacquard_common::types::string::Did<'a>, 22 + }
+19 -5
crates/jacquard-api/src/app_bsky/labeler.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct LabelerPolicies<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub label_value_definitions: std::option::Option< 8 Vec<crate::com_atproto::label::LabelValueDefinition<'a>>, 9 >, 10 #[serde(borrow)] 11 pub label_values: Vec<crate::com_atproto::label::LabelValue<'a>>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 28 pub uri: jacquard_common::types::string::AtUri<'a>, 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 #[serde(borrow)] 31 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 32 } 33 #[jacquard_derive::lexicon] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 #[serde(rename_all = "camelCase")] ··· 46 pub like_count: std::option::Option<i64>, 47 #[serde(borrow)] 48 pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>, 49 #[serde(skip_serializing_if = "std::option::Option::is_none")] 50 #[serde(borrow)] 51 pub reason_types: std::option::Option< 52 Vec<crate::com_atproto::moderation::ReasonType<'a>>, 53 >, 54 #[serde(skip_serializing_if = "std::option::Option::is_none")] 55 #[serde(borrow)] 56 pub subject_collections: std::option::Option< 57 Vec<jacquard_common::types::string::Nsid<'a>>, 58 >, 59 #[serde(skip_serializing_if = "std::option::Option::is_none")] 60 #[serde(borrow)] 61 pub subject_types: std::option::Option< ··· 65 pub uri: jacquard_common::types::string::AtUri<'a>, 66 #[serde(skip_serializing_if = "std::option::Option::is_none")] 67 #[serde(borrow)] 68 - pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 69 } 70 #[jacquard_derive::lexicon] 71 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 72 #[serde(rename_all = "camelCase")] ··· 74 #[serde(skip_serializing_if = "std::option::Option::is_none")] 75 #[serde(borrow)] 76 pub like: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 77 - } 78 - pub mod get_services; 79 - pub mod service;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod get_services; 7 + pub mod service; 8 + 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct LabelerPolicies<'a> { 13 + ///Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler. 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub label_value_definitions: std::option::Option< 17 Vec<crate::com_atproto::label::LabelValueDefinition<'a>>, 18 >, 19 + ///The label values which this labeler publishes. May include global or custom labels. 20 #[serde(borrow)] 21 pub label_values: Vec<crate::com_atproto::label::LabelValue<'a>>, 22 } 23 + 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 39 pub uri: jacquard_common::types::string::AtUri<'a>, 40 #[serde(skip_serializing_if = "std::option::Option::is_none")] 41 #[serde(borrow)] 42 + pub viewer: std::option::Option<crate::app_bsky::labeler::LabelerViewerState<'a>>, 43 } 44 + 45 #[jacquard_derive::lexicon] 46 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 47 #[serde(rename_all = "camelCase")] ··· 58 pub like_count: std::option::Option<i64>, 59 #[serde(borrow)] 60 pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>, 61 + ///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. 62 #[serde(skip_serializing_if = "std::option::Option::is_none")] 63 #[serde(borrow)] 64 pub reason_types: std::option::Option< 65 Vec<crate::com_atproto::moderation::ReasonType<'a>>, 66 >, 67 + ///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. 68 #[serde(skip_serializing_if = "std::option::Option::is_none")] 69 #[serde(borrow)] 70 pub subject_collections: std::option::Option< 71 Vec<jacquard_common::types::string::Nsid<'a>>, 72 >, 73 + ///The set of subject types (account, record, etc) this service accepts reports on. 74 #[serde(skip_serializing_if = "std::option::Option::is_none")] 75 #[serde(borrow)] 76 pub subject_types: std::option::Option< ··· 80 pub uri: jacquard_common::types::string::AtUri<'a>, 81 #[serde(skip_serializing_if = "std::option::Option::is_none")] 82 #[serde(borrow)] 83 + pub viewer: std::option::Option<crate::app_bsky::labeler::LabelerViewerState<'a>>, 84 } 85 + 86 #[jacquard_derive::lexicon] 87 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 88 #[serde(rename_all = "camelCase")] ··· 90 #[serde(skip_serializing_if = "std::option::Option::is_none")] 91 #[serde(borrow)] 92 pub like: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 93 + }
+7 -1
crates/jacquard-api/src/app_bsky/labeler/get_services.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetServicesParams<'a> { ··· 6 #[serde(borrow)] 7 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct GetServicesOutput<'a> { 13 #[serde(borrow)] 14 pub views: Vec<jacquard_common::types::value::Data<'a>>, 15 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetServicesParams<'a> { ··· 11 #[serde(borrow)] 12 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] 18 pub struct GetServicesOutput<'a> { 19 #[serde(borrow)] 20 pub views: Vec<jacquard_common::types::value::Data<'a>>, 21 + }
+10 -1
crates/jacquard-api/src/app_bsky/labeler/service.rs
··· 1 ///A declaration of the existence of labeler service. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 9 pub labels: std::option::Option<ServiceRecordLabels<'a>>, 10 #[serde(borrow)] 11 pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>, 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 #[serde(borrow)] 14 pub reason_types: std::option::Option< 15 Vec<crate::com_atproto::moderation::ReasonType<'a>>, 16 >, 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub subject_collections: std::option::Option< 20 Vec<jacquard_common::types::string::Nsid<'a>>, 21 >, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub subject_types: std::option::Option< 25 Vec<crate::com_atproto::moderation::SubjectType<'a>>, 26 >, 27 } 28 #[jacquard_derive::open_union] 29 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 30 #[serde(tag = "$type")] ··· 32 pub enum ServiceRecordLabels<'a> { 33 #[serde(rename = "com.atproto.label.defs#selfLabels")] 34 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 35 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///A declaration of the existence of labeler service. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 14 pub labels: std::option::Option<ServiceRecordLabels<'a>>, 15 #[serde(borrow)] 16 pub policies: crate::app_bsky::labeler::LabelerPolicies<'a>, 17 + ///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. 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub reason_types: std::option::Option< 21 Vec<crate::com_atproto::moderation::ReasonType<'a>>, 22 >, 23 + ///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. 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub subject_collections: std::option::Option< 27 Vec<jacquard_common::types::string::Nsid<'a>>, 28 >, 29 + ///The set of subject types (account, record, etc) this service accepts reports on. 30 #[serde(skip_serializing_if = "std::option::Option::is_none")] 31 #[serde(borrow)] 32 pub subject_types: std::option::Option< 33 Vec<crate::com_atproto::moderation::SubjectType<'a>>, 34 >, 35 } 36 + 37 #[jacquard_derive::open_union] 38 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 39 #[serde(tag = "$type")] ··· 41 pub enum ServiceRecordLabels<'a> { 42 #[serde(rename = "com.atproto.label.defs#selfLabels")] 43 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 44 + }
+37 -26
crates/jacquard-api/src/app_bsky/notification.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 pub post: bool, 6 pub reply: bool, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] ··· 13 pub include: jacquard_common::CowStr<'a>, 14 pub push: bool, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 pub list: bool, 23 pub push: bool, 24 } 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] ··· 29 pub list: bool, 30 pub push: bool, 31 } 32 #[jacquard_derive::lexicon] 33 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 34 #[serde(rename_all = "camelCase")] 35 pub struct Preferences<'a> { 36 #[serde(borrow)] 37 - pub chat: jacquard_common::types::value::Data<'a>, 38 #[serde(borrow)] 39 - pub follow: jacquard_common::types::value::Data<'a>, 40 #[serde(borrow)] 41 - pub like: jacquard_common::types::value::Data<'a>, 42 #[serde(borrow)] 43 - pub like_via_repost: jacquard_common::types::value::Data<'a>, 44 #[serde(borrow)] 45 - pub mention: jacquard_common::types::value::Data<'a>, 46 #[serde(borrow)] 47 - pub quote: jacquard_common::types::value::Data<'a>, 48 #[serde(borrow)] 49 - pub reply: jacquard_common::types::value::Data<'a>, 50 #[serde(borrow)] 51 - pub repost: jacquard_common::types::value::Data<'a>, 52 #[serde(borrow)] 53 - pub repost_via_repost: jacquard_common::types::value::Data<'a>, 54 #[serde(borrow)] 55 - pub starterpack_joined: jacquard_common::types::value::Data<'a>, 56 #[serde(borrow)] 57 - pub subscribed_post: jacquard_common::types::value::Data<'a>, 58 #[serde(borrow)] 59 - pub unverified: jacquard_common::types::value::Data<'a>, 60 #[serde(borrow)] 61 - pub verified: jacquard_common::types::value::Data<'a>, 62 } 63 #[jacquard_derive::lexicon] 64 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 65 #[serde(rename_all = "camelCase")] ··· 70 #[serde(rename_all = "camelCase")] 71 pub struct SubjectActivitySubscription<'a> { 72 #[serde(borrow)] 73 - pub activity_subscription: jacquard_common::types::value::Data<'a>, 74 #[serde(borrow)] 75 pub subject: jacquard_common::types::string::Did<'a>, 76 - } 77 - pub mod declaration; 78 - pub mod get_preferences; 79 - pub mod get_unread_count; 80 - pub mod list_activity_subscriptions; 81 - pub mod list_notifications; 82 - pub mod put_activity_subscription; 83 - pub mod put_preferences; 84 - pub mod put_preferences_v2; 85 - pub mod register_push; 86 - pub mod unregister_push; 87 - pub mod update_seen;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod declaration; 7 + pub mod get_preferences; 8 + pub mod get_unread_count; 9 + pub mod list_activity_subscriptions; 10 + pub mod list_notifications; 11 + pub mod put_activity_subscription; 12 + pub mod put_preferences; 13 + pub mod put_preferences_v2; 14 + pub mod register_push; 15 + pub mod unregister_push; 16 + pub mod update_seen; 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 22 pub post: bool, 23 pub reply: bool, 24 } 25 + 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] ··· 31 pub include: jacquard_common::CowStr<'a>, 32 pub push: bool, 33 } 34 + 35 #[jacquard_derive::lexicon] 36 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 37 #[serde(rename_all = "camelCase")] ··· 41 pub list: bool, 42 pub push: bool, 43 } 44 + 45 #[jacquard_derive::lexicon] 46 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 47 #[serde(rename_all = "camelCase")] ··· 49 pub list: bool, 50 pub push: bool, 51 } 52 + 53 #[jacquard_derive::lexicon] 54 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 55 #[serde(rename_all = "camelCase")] 56 pub struct Preferences<'a> { 57 #[serde(borrow)] 58 + pub chat: crate::app_bsky::notification::ChatPreference<'a>, 59 #[serde(borrow)] 60 + pub follow: crate::app_bsky::notification::FilterablePreference<'a>, 61 #[serde(borrow)] 62 + pub like: crate::app_bsky::notification::FilterablePreference<'a>, 63 #[serde(borrow)] 64 + pub like_via_repost: crate::app_bsky::notification::FilterablePreference<'a>, 65 #[serde(borrow)] 66 + pub mention: crate::app_bsky::notification::FilterablePreference<'a>, 67 #[serde(borrow)] 68 + pub quote: crate::app_bsky::notification::FilterablePreference<'a>, 69 #[serde(borrow)] 70 + pub reply: crate::app_bsky::notification::FilterablePreference<'a>, 71 #[serde(borrow)] 72 + pub repost: crate::app_bsky::notification::FilterablePreference<'a>, 73 #[serde(borrow)] 74 + pub repost_via_repost: crate::app_bsky::notification::FilterablePreference<'a>, 75 #[serde(borrow)] 76 + pub starterpack_joined: crate::app_bsky::notification::Preference<'a>, 77 #[serde(borrow)] 78 + pub subscribed_post: crate::app_bsky::notification::Preference<'a>, 79 #[serde(borrow)] 80 + pub unverified: crate::app_bsky::notification::Preference<'a>, 81 #[serde(borrow)] 82 + pub verified: crate::app_bsky::notification::Preference<'a>, 83 } 84 + 85 #[jacquard_derive::lexicon] 86 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 87 #[serde(rename_all = "camelCase")] ··· 92 #[serde(rename_all = "camelCase")] 93 pub struct SubjectActivitySubscription<'a> { 94 #[serde(borrow)] 95 + pub activity_subscription: crate::app_bsky::notification::ActivitySubscription<'a>, 96 #[serde(borrow)] 97 pub subject: jacquard_common::types::string::Did<'a>, 98 + }
+7 -1
crates/jacquard-api/src/app_bsky/notification/declaration.rs
··· 1 ///A declaration of the user's choices related to notifications that can be produced by them. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Declaration<'a> { 6 #[serde(borrow)] 7 pub allow_subscriptions: jacquard_common::CowStr<'a>, 8 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///A declaration of the user's choices related to notifications that can be produced by them. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Declaration<'a> { 11 + ///A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'. 12 #[serde(borrow)] 13 pub allow_subscriptions: jacquard_common::CowStr<'a>, 14 + }
+6 -1
crates/jacquard-api/src/app_bsky/notification/get_preferences.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetPreferencesParams {} ··· 7 pub struct GetPreferencesOutput<'a> { 8 #[serde(borrow)] 9 pub preferences: crate::app_bsky::notification::Preferences<'a>, 10 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetPreferencesParams {} ··· 12 pub struct GetPreferencesOutput<'a> { 13 #[serde(borrow)] 14 pub preferences: crate::app_bsky::notification::Preferences<'a>, 15 + }
+7 -1
crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetUnreadCountParams { ··· 6 #[serde(skip_serializing_if = "std::option::Option::is_none")] 7 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct GetUnreadCountOutput<'a> { 13 pub count: i64, 14 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetUnreadCountParams { ··· 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] 18 pub struct GetUnreadCountOutput<'a> { 19 pub count: i64, 20 + }
+7 -1
crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListActivitySubscriptionsParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 17 #[serde(borrow)] 18 pub subscriptions: Vec<crate::app_bsky::actor::ProfileView<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListActivitySubscriptionsParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 #[serde(borrow)] 24 pub subscriptions: Vec<crate::app_bsky::actor::ProfileView<'a>>, 25 + }
+9 -1
crates/jacquard-api/src/app_bsky/notification/list_notifications.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListNotificationsParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>, 16 } 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] ··· 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>, 30 } 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(rename_all = "camelCase")] ··· 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 42 #[serde(borrow)] 43 pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>, 44 #[serde(borrow)] 45 pub reason: jacquard_common::CowStr<'a>, 46 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 50 pub record: jacquard_common::types::value::Data<'a>, 51 #[serde(borrow)] 52 pub uri: jacquard_common::types::string::AtUri<'a>, 53 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListNotificationsParams<'a> { ··· 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>, 21 } 22 + 23 #[jacquard_derive::lexicon] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 #[serde(rename_all = "camelCase")] ··· 34 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>, 36 } 37 + 38 #[jacquard_derive::lexicon] 39 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 40 #[serde(rename_all = "camelCase")] ··· 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 #[serde(borrow)] 50 pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>, 51 + ///The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. 52 #[serde(borrow)] 53 pub reason: jacquard_common::CowStr<'a>, 54 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 58 pub record: jacquard_common::types::value::Data<'a>, 59 #[serde(borrow)] 60 pub uri: jacquard_common::types::string::AtUri<'a>, 61 + }
+7 -1
crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub subject: jacquard_common::types::string::Did<'a>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 18 >, 19 #[serde(borrow)] 20 pub subject: jacquard_common::types::string::Did<'a>, 21 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub subject: jacquard_common::types::string::Did<'a>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 24 >, 25 #[serde(borrow)] 26 pub subject: jacquard_common::types::string::Did<'a>, 27 + }
+6 -1
crates/jacquard-api/src/app_bsky/notification/put_preferences.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct PutPreferencesInput<'a> { 5 pub priority: bool, 6 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct PutPreferencesInput<'a> { 10 pub priority: bool, 11 + }
+7 -1
crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 62 #[serde(borrow)] 63 pub verified: std::option::Option<crate::app_bsky::notification::Preference<'a>>, 64 } 65 #[jacquard_derive::lexicon] 66 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 67 #[serde(rename_all = "camelCase")] 68 pub struct PutPreferencesV2Output<'a> { 69 #[serde(borrow)] 70 pub preferences: crate::app_bsky::notification::Preferences<'a>, 71 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 67 #[serde(borrow)] 68 pub verified: std::option::Option<crate::app_bsky::notification::Preference<'a>>, 69 } 70 + 71 #[jacquard_derive::lexicon] 72 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 73 #[serde(rename_all = "camelCase")] 74 pub struct PutPreferencesV2Output<'a> { 75 #[serde(borrow)] 76 pub preferences: crate::app_bsky::notification::Preferences<'a>, 77 + }
+7 -1
crates/jacquard-api/src/app_bsky/notification/register_push.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RegisterPushInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 pub age_restricted: std::option::Option<bool>, 7 #[serde(borrow)] ··· 12 pub service_did: jacquard_common::types::string::Did<'a>, 13 #[serde(borrow)] 14 pub token: jacquard_common::CowStr<'a>, 15 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RegisterPushInput<'a> { 10 + ///Set to true when the actor is age restricted 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub age_restricted: std::option::Option<bool>, 13 #[serde(borrow)] ··· 18 pub service_did: jacquard_common::types::string::Did<'a>, 19 #[serde(borrow)] 20 pub token: jacquard_common::CowStr<'a>, 21 + }
+6 -1
crates/jacquard-api/src/app_bsky/notification/unregister_push.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 10 pub service_did: jacquard_common::types::string::Did<'a>, 11 #[serde(borrow)] 12 pub token: jacquard_common::CowStr<'a>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 15 pub service_did: jacquard_common::types::string::Did<'a>, 16 #[serde(borrow)] 17 pub token: jacquard_common::CowStr<'a>, 18 + }
+6 -1
crates/jacquard-api/src/app_bsky/notification/update_seen.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UpdateSeenInput<'a> { 5 pub seen_at: jacquard_common::types::string::Datetime, 6 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UpdateSeenInput<'a> { 10 pub seen_at: jacquard_common::types::string::Datetime, 11 + }
+6 -1
crates/jacquard-api/src/app_bsky/richtext.rs
··· 1 - pub mod facet;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod facet;
+11 -2
crates/jacquard-api/src/app_bsky/richtext/facet.rs
··· 1 ///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. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 6 pub byte_end: i64, 7 pub byte_start: i64, 8 } 9 ///Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 14 #[serde(borrow)] 15 pub uri: jacquard_common::types::string::Uri<'a>, 16 } 17 ///Annotation of a sub-string within rich text. 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 22 #[serde(borrow)] 23 pub features: Vec<jacquard_common::types::value::Data<'a>>, 24 #[serde(borrow)] 25 - pub index: jacquard_common::types::value::Data<'a>, 26 } 27 ///Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. 28 #[jacquard_derive::lexicon] 29 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 32 #[serde(borrow)] 33 pub did: jacquard_common::types::string::Did<'a>, 34 } 35 ///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'). 36 #[jacquard_derive::lexicon] 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 39 pub struct Tag<'a> { 40 #[serde(borrow)] 41 pub tag: jacquard_common::CowStr<'a>, 42 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///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. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 11 pub byte_end: i64, 12 pub byte_start: i64, 13 } 14 + 15 ///Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 20 #[serde(borrow)] 21 pub uri: jacquard_common::types::string::Uri<'a>, 22 } 23 + 24 ///Annotation of a sub-string within rich text. 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 29 #[serde(borrow)] 30 pub features: Vec<jacquard_common::types::value::Data<'a>>, 31 #[serde(borrow)] 32 + pub index: crate::app_bsky::richtext::facet::ByteSlice<'a>, 33 } 34 + 35 ///Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. 36 #[jacquard_derive::lexicon] 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 40 #[serde(borrow)] 41 pub did: jacquard_common::types::string::Did<'a>, 42 } 43 + 44 ///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'). 45 #[jacquard_derive::lexicon] 46 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 48 pub struct Tag<'a> { 49 #[serde(borrow)] 50 pub tag: jacquard_common::CowStr<'a>, 51 + }
+53 -23
crates/jacquard-api/src/app_bsky/unspecced.rs
··· 1 ///Object used to store age assurance data in stash. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct AgeAssuranceEvent<'a> { 6 #[serde(borrow)] 7 pub attempt_id: jacquard_common::CowStr<'a>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>, 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>, 14 pub created_at: jacquard_common::types::string::Datetime, 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 #[serde(borrow)] 17 pub email: std::option::Option<jacquard_common::CowStr<'a>>, 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>, 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 #[serde(borrow)] 23 pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>, 24 #[serde(borrow)] 25 pub status: jacquard_common::CowStr<'a>, 26 } 27 ///The computed state of the age assurance process, returned to the user in question on certain authenticated requests. 28 #[jacquard_derive::lexicon] 29 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 30 #[serde(rename_all = "camelCase")] 31 pub struct AgeAssuranceState<'a> { 32 #[serde(skip_serializing_if = "std::option::Option::is_none")] 33 pub last_initiated_at: std::option::Option<jacquard_common::types::string::Datetime>, 34 #[serde(borrow)] 35 pub status: jacquard_common::CowStr<'a>, 36 } 37 #[jacquard_derive::lexicon] 38 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 39 #[serde(rename_all = "camelCase")] ··· 41 #[serde(borrow)] 42 pub did: jacquard_common::types::string::Did<'a>, 43 } 44 #[jacquard_derive::lexicon] 45 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 46 #[serde(rename_all = "camelCase")] ··· 48 #[serde(borrow)] 49 pub uri: jacquard_common::types::string::AtUri<'a>, 50 } 51 #[jacquard_derive::lexicon] 52 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 53 #[serde(rename_all = "camelCase")] ··· 55 #[serde(borrow)] 56 pub uri: jacquard_common::types::string::AtUri<'a>, 57 } 58 #[jacquard_derive::lexicon] 59 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 60 #[serde(rename_all = "camelCase")] ··· 76 #[serde(borrow)] 77 pub topic: jacquard_common::CowStr<'a>, 78 } 79 #[jacquard_derive::lexicon] 80 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 81 #[serde(rename_all = "camelCase")] ··· 83 #[serde(borrow)] 84 pub author: crate::app_bsky::feed::BlockedAuthor<'a>, 85 } 86 #[jacquard_derive::lexicon] 87 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 88 #[serde(rename_all = "camelCase")] ··· 95 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 96 #[serde(rename_all = "camelCase")] 97 pub struct ThreadItemPost<'a> { 98 pub hidden_by_threadgate: bool, 99 pub more_parents: bool, 100 pub more_replies: i64, 101 pub muted_by_viewer: bool, 102 pub op_thread: bool, 103 #[serde(borrow)] 104 pub post: crate::app_bsky::feed::PostView<'a>, 105 } 106 #[jacquard_derive::lexicon] 107 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 108 #[serde(rename_all = "camelCase")] ··· 124 #[serde(borrow)] 125 pub topic: jacquard_common::CowStr<'a>, 126 } 127 #[jacquard_derive::lexicon] 128 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 129 #[serde(rename_all = "camelCase")] ··· 138 pub link: jacquard_common::CowStr<'a>, 139 #[serde(borrow)] 140 pub topic: jacquard_common::CowStr<'a>, 141 - } 142 - pub mod get_age_assurance_state; 143 - pub mod get_config; 144 - pub mod get_onboarding_suggested_starter_packs; 145 - pub mod get_onboarding_suggested_starter_packs_skeleton; 146 - pub mod get_popular_feed_generators; 147 - pub mod get_post_thread_other_v2; 148 - pub mod get_post_thread_v2; 149 - pub mod get_suggested_feeds; 150 - pub mod get_suggested_feeds_skeleton; 151 - pub mod get_suggested_starter_packs; 152 - pub mod get_suggested_starter_packs_skeleton; 153 - pub mod get_suggested_users; 154 - pub mod get_suggested_users_skeleton; 155 - pub mod get_suggestions_skeleton; 156 - pub mod get_tagged_suggestions; 157 - pub mod get_trending_topics; 158 - pub mod get_trends; 159 - pub mod get_trends_skeleton; 160 - pub mod init_age_assurance; 161 - pub mod search_actors_skeleton; 162 - pub mod search_posts_skeleton; 163 - pub mod search_starter_packs_skeleton;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod get_age_assurance_state; 7 + pub mod get_config; 8 + pub mod get_onboarding_suggested_starter_packs; 9 + pub mod get_onboarding_suggested_starter_packs_skeleton; 10 + pub mod get_popular_feed_generators; 11 + pub mod get_post_thread_other_v2; 12 + pub mod get_post_thread_v2; 13 + pub mod get_suggested_feeds; 14 + pub mod get_suggested_feeds_skeleton; 15 + pub mod get_suggested_starter_packs; 16 + pub mod get_suggested_starter_packs_skeleton; 17 + pub mod get_suggested_users; 18 + pub mod get_suggested_users_skeleton; 19 + pub mod get_suggestions_skeleton; 20 + pub mod get_tagged_suggestions; 21 + pub mod get_trending_topics; 22 + pub mod get_trends; 23 + pub mod get_trends_skeleton; 24 + pub mod init_age_assurance; 25 + pub mod search_actors_skeleton; 26 + pub mod search_posts_skeleton; 27 + pub mod search_starter_packs_skeleton; 28 + 29 ///Object used to store age assurance data in stash. 30 #[jacquard_derive::lexicon] 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 32 #[serde(rename_all = "camelCase")] 33 pub struct AgeAssuranceEvent<'a> { 34 + ///The unique identifier for this instance of the age assurance flow, in UUID format. 35 #[serde(borrow)] 36 pub attempt_id: jacquard_common::CowStr<'a>, 37 + ///The IP address used when completing the AA flow. 38 #[serde(skip_serializing_if = "std::option::Option::is_none")] 39 #[serde(borrow)] 40 pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>, 41 + ///The user agent used when completing the AA flow. 42 #[serde(skip_serializing_if = "std::option::Option::is_none")] 43 #[serde(borrow)] 44 pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>, 45 + ///The date and time of this write operation. 46 pub created_at: jacquard_common::types::string::Datetime, 47 + ///The email used for AA. 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 #[serde(borrow)] 50 pub email: std::option::Option<jacquard_common::CowStr<'a>>, 51 + ///The IP address used when initiating the AA flow. 52 #[serde(skip_serializing_if = "std::option::Option::is_none")] 53 #[serde(borrow)] 54 pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>, 55 + ///The user agent used when initiating the AA flow. 56 #[serde(skip_serializing_if = "std::option::Option::is_none")] 57 #[serde(borrow)] 58 pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>, 59 + ///The status of the age assurance process. 60 #[serde(borrow)] 61 pub status: jacquard_common::CowStr<'a>, 62 } 63 + 64 ///The computed state of the age assurance process, returned to the user in question on certain authenticated requests. 65 #[jacquard_derive::lexicon] 66 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 67 #[serde(rename_all = "camelCase")] 68 pub struct AgeAssuranceState<'a> { 69 + ///The timestamp when this state was last updated. 70 #[serde(skip_serializing_if = "std::option::Option::is_none")] 71 pub last_initiated_at: std::option::Option<jacquard_common::types::string::Datetime>, 72 + ///The status of the age assurance process. 73 #[serde(borrow)] 74 pub status: jacquard_common::CowStr<'a>, 75 } 76 + 77 #[jacquard_derive::lexicon] 78 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 79 #[serde(rename_all = "camelCase")] ··· 81 #[serde(borrow)] 82 pub did: jacquard_common::types::string::Did<'a>, 83 } 84 + 85 #[jacquard_derive::lexicon] 86 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 87 #[serde(rename_all = "camelCase")] ··· 89 #[serde(borrow)] 90 pub uri: jacquard_common::types::string::AtUri<'a>, 91 } 92 + 93 #[jacquard_derive::lexicon] 94 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 95 #[serde(rename_all = "camelCase")] ··· 97 #[serde(borrow)] 98 pub uri: jacquard_common::types::string::AtUri<'a>, 99 } 100 + 101 #[jacquard_derive::lexicon] 102 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 103 #[serde(rename_all = "camelCase")] ··· 119 #[serde(borrow)] 120 pub topic: jacquard_common::CowStr<'a>, 121 } 122 + 123 #[jacquard_derive::lexicon] 124 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 125 #[serde(rename_all = "camelCase")] ··· 127 #[serde(borrow)] 128 pub author: crate::app_bsky::feed::BlockedAuthor<'a>, 129 } 130 + 131 #[jacquard_derive::lexicon] 132 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 133 #[serde(rename_all = "camelCase")] ··· 140 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 141 #[serde(rename_all = "camelCase")] 142 pub struct ThreadItemPost<'a> { 143 + ///The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread. 144 pub hidden_by_threadgate: bool, 145 + ///This post has more parents that were not present in the response. This is just a boolean, without the number of parents. 146 pub more_parents: bool, 147 + ///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. 148 pub more_replies: i64, 149 + ///This is by an account muted by the viewer requesting it. 150 pub muted_by_viewer: bool, 151 + ///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. 152 pub op_thread: bool, 153 #[serde(borrow)] 154 pub post: crate::app_bsky::feed::PostView<'a>, 155 } 156 + 157 #[jacquard_derive::lexicon] 158 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 159 #[serde(rename_all = "camelCase")] ··· 175 #[serde(borrow)] 176 pub topic: jacquard_common::CowStr<'a>, 177 } 178 + 179 #[jacquard_derive::lexicon] 180 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 181 #[serde(rename_all = "camelCase")] ··· 190 pub link: jacquard_common::CowStr<'a>, 191 #[serde(borrow)] 192 pub topic: jacquard_common::CowStr<'a>, 193 + }
+6 -1
crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(flatten)] 6 #[serde(borrow)] 7 pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>, 8 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(flatten)] 11 #[serde(borrow)] 12 pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>, 13 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_config.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub domains: Vec<jacquard_common::CowStr<'a>>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub live_now: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub domains: Vec<jacquard_common::CowStr<'a>>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub live_now: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 25 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetOnboardingSuggestedStarterPacksParams { 4 #[serde(skip_serializing_if = "std::option::Option::is_none")] 5 pub limit: std::option::Option<i64>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetOnboardingSuggestedStarterPacksOutput<'a> { 11 #[serde(borrow)] 12 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetOnboardingSuggestedStarterPacksParams { 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetOnboardingSuggestedStarterPacksOutput<'a> { 17 #[serde(borrow)] 18 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetOnboardingSuggestedStarterPacksSkeletonParams<'a> { ··· 7 #[serde(borrow)] 8 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] 13 pub struct GetOnboardingSuggestedStarterPacksSkeletonOutput<'a> { 14 #[serde(borrow)] 15 pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetOnboardingSuggestedStarterPacksSkeletonParams<'a> { ··· 12 #[serde(borrow)] 13 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetOnboardingSuggestedStarterPacksSkeletonOutput<'a> { 20 #[serde(borrow)] 21 pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>, 22 + }
+11 -1
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetPostThreadOtherV2Params<'a> { ··· 6 #[serde(skip_serializing_if = "std::option::Option::is_none")] 7 pub prioritize_followed_users: std::option::Option<bool>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct GetPostThreadOtherV2Output<'a> { 13 #[serde(borrow)] 14 pub thread: Vec<jacquard_common::types::value::Data<'a>>, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ThreadItem<'a> { 20 pub depth: i64, 21 #[serde(borrow)] 22 pub uri: jacquard_common::types::string::AtUri<'a>, 23 #[serde(borrow)] 24 pub value: ThreadItemRecordValue<'a>, 25 } 26 #[jacquard_derive::open_union] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(tag = "$type")] ··· 30 pub enum ThreadItemRecordValue<'a> { 31 #[serde(rename = "app.bsky.unspecced.defs#threadItemPost")] 32 DefsThreadItemPost(Box<crate::app_bsky::unspecced::ThreadItemPost<'a>>), 33 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetPostThreadOtherV2Params<'a> { ··· 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub prioritize_followed_users: std::option::Option<bool>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] 18 pub struct GetPostThreadOtherV2Output<'a> { 19 + ///A flat list of other thread items. The depth of each item is indicated by the depth property inside the item. 20 #[serde(borrow)] 21 pub thread: Vec<jacquard_common::types::value::Data<'a>>, 22 } 23 + 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] 27 pub struct ThreadItem<'a> { 28 + ///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. 29 pub depth: i64, 30 #[serde(borrow)] 31 pub uri: jacquard_common::types::string::AtUri<'a>, 32 #[serde(borrow)] 33 pub value: ThreadItemRecordValue<'a>, 34 } 35 + 36 #[jacquard_derive::open_union] 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 38 #[serde(tag = "$type")] ··· 40 pub enum ThreadItemRecordValue<'a> { 41 #[serde(rename = "app.bsky.unspecced.defs#threadItemPost")] 42 DefsThreadItemPost(Box<crate::app_bsky::unspecced::ThreadItemPost<'a>>), 43 + }
+12 -1
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetPostThreadV2Params<'a> { ··· 15 #[serde(borrow)] 16 pub sort: std::option::Option<jacquard_common::CowStr<'a>>, 17 } 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] 21 pub struct GetPostThreadV2Output<'a> { 22 pub has_other_replies: bool, 23 #[serde(borrow)] 24 pub thread: Vec<jacquard_common::types::value::Data<'a>>, 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>, 28 } 29 #[jacquard_derive::lexicon] 30 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 31 #[serde(rename_all = "camelCase")] 32 pub struct ThreadItem<'a> { 33 pub depth: i64, 34 #[serde(borrow)] 35 pub uri: jacquard_common::types::string::AtUri<'a>, 36 #[serde(borrow)] 37 pub value: ThreadItemRecordValue<'a>, 38 } 39 #[jacquard_derive::open_union] 40 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 41 #[serde(tag = "$type")] ··· 51 DefsThreadItemNotFound(Box<crate::app_bsky::unspecced::ThreadItemNotFound<'a>>), 52 #[serde(rename = "app.bsky.unspecced.defs#threadItemBlocked")] 53 DefsThreadItemBlocked(Box<crate::app_bsky::unspecced::ThreadItemBlocked<'a>>), 54 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetPostThreadV2Params<'a> { ··· 20 #[serde(borrow)] 21 pub sort: std::option::Option<jacquard_common::CowStr<'a>>, 22 } 23 + 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] 27 pub struct GetPostThreadV2Output<'a> { 28 + ///Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them. 29 pub has_other_replies: bool, 30 + ///A flat list of thread items. The depth of each item is indicated by the depth property inside the item. 31 #[serde(borrow)] 32 pub thread: Vec<jacquard_common::types::value::Data<'a>>, 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>, 36 } 37 + 38 #[jacquard_derive::lexicon] 39 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 40 #[serde(rename_all = "camelCase")] 41 pub struct ThreadItem<'a> { 42 + ///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. 43 pub depth: i64, 44 #[serde(borrow)] 45 pub uri: jacquard_common::types::string::AtUri<'a>, 46 #[serde(borrow)] 47 pub value: ThreadItemRecordValue<'a>, 48 } 49 + 50 #[jacquard_derive::open_union] 51 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 52 #[serde(tag = "$type")] ··· 62 DefsThreadItemNotFound(Box<crate::app_bsky::unspecced::ThreadItemNotFound<'a>>), 63 #[serde(rename = "app.bsky.unspecced.defs#threadItemBlocked")] 64 DefsThreadItemBlocked(Box<crate::app_bsky::unspecced::ThreadItemBlocked<'a>>), 65 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestedFeedsParams { 4 #[serde(skip_serializing_if = "std::option::Option::is_none")] 5 pub limit: std::option::Option<i64>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetSuggestedFeedsOutput<'a> { 11 #[serde(borrow)] 12 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestedFeedsParams { 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetSuggestedFeedsOutput<'a> { 17 #[serde(borrow)] 18 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestedFeedsSkeletonParams<'a> { ··· 7 #[serde(borrow)] 8 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] 13 pub struct GetSuggestedFeedsSkeletonOutput<'a> { 14 #[serde(borrow)] 15 pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestedFeedsSkeletonParams<'a> { ··· 12 #[serde(borrow)] 13 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedFeedsSkeletonOutput<'a> { 20 #[serde(borrow)] 21 pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>, 22 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestedStarterPacksParams { 4 #[serde(skip_serializing_if = "std::option::Option::is_none")] 5 pub limit: std::option::Option<i64>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetSuggestedStarterPacksOutput<'a> { 11 #[serde(borrow)] 12 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestedStarterPacksParams { 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetSuggestedStarterPacksOutput<'a> { 17 #[serde(borrow)] 18 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestedStarterPacksSkeletonParams<'a> { ··· 7 #[serde(borrow)] 8 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] 13 pub struct GetSuggestedStarterPacksSkeletonOutput<'a> { 14 #[serde(borrow)] 15 pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestedStarterPacksSkeletonParams<'a> { ··· 12 #[serde(borrow)] 13 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedStarterPacksSkeletonOutput<'a> { 20 #[serde(borrow)] 21 pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>, 22 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestedUsersParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] 13 pub struct GetSuggestedUsersOutput<'a> { 14 #[serde(borrow)] 15 pub actors: Vec<crate::app_bsky::actor::ProfileView<'a>>, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestedUsersParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedUsersOutput<'a> { 20 #[serde(borrow)] 21 pub actors: Vec<crate::app_bsky::actor::ProfileView<'a>>, 22 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestedUsersSkeletonParams<'a> { ··· 10 #[serde(borrow)] 11 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetSuggestedUsersSkeletonOutput<'a> { 17 #[serde(borrow)] 18 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 19 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestedUsersSkeletonParams<'a> { ··· 15 #[serde(borrow)] 16 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] 22 pub struct GetSuggestedUsersSkeletonOutput<'a> { 23 #[serde(borrow)] 24 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 25 + }
+9 -1
crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSuggestionsSkeletonParams<'a> { ··· 13 #[serde(borrow)] 14 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 pub rec_id: std::option::Option<i64>, 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub relative_to_did: std::option::Option<jacquard_common::types::string::Did<'a>>, 30 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSuggestionsSkeletonParams<'a> { ··· 18 #[serde(borrow)] 19 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 20 } 21 + 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 31 + ///Snowflake for this recommendation, use when submitting recommendation events. 32 #[serde(skip_serializing_if = "std::option::Option::is_none")] 33 pub rec_id: std::option::Option<i64>, 34 + ///DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. 35 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 #[serde(borrow)] 37 pub relative_to_did: std::option::Option<jacquard_common::types::string::Did<'a>>, 38 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetTaggedSuggestionsParams {} ··· 8 #[serde(borrow)] 9 pub suggestions: Vec<jacquard_common::types::value::Data<'a>>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] ··· 18 pub subject_type: jacquard_common::CowStr<'a>, 19 #[serde(borrow)] 20 pub tag: jacquard_common::CowStr<'a>, 21 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetTaggedSuggestionsParams {} ··· 13 #[serde(borrow)] 14 pub suggestions: Vec<jacquard_common::types::value::Data<'a>>, 15 } 16 + 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] ··· 24 pub subject_type: jacquard_common::CowStr<'a>, 25 #[serde(borrow)] 26 pub tag: jacquard_common::CowStr<'a>, 27 + }
+7 -1
crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetTrendsParams { 4 #[serde(skip_serializing_if = "std::option::Option::is_none")] 5 pub limit: std::option::Option<i64>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetTrendsOutput<'a> { 11 #[serde(borrow)] 12 pub trends: Vec<crate::app_bsky::unspecced::TrendView<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetTrendsParams { 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetTrendsOutput<'a> { 17 #[serde(borrow)] 18 pub trends: Vec<crate::app_bsky::unspecced::TrendView<'a>>, 19 + }
+13 -2
crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct InitAgeAssuranceInput<'a> { 5 #[serde(borrow)] 6 pub country_code: jacquard_common::CowStr<'a>, 7 #[serde(borrow)] 8 pub email: jacquard_common::CowStr<'a>, 9 #[serde(borrow)] 10 pub language: jacquard_common::CowStr<'a>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 17 #[serde(borrow)] 18 pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>, 19 } 20 #[jacquard_derive::open_union] 21 #[derive( 22 serde::Serialize, ··· 38 #[serde(rename = "InvalidInitiation")] 39 InvalidInitiation(std::option::Option<String>), 40 } 41 impl std::fmt::Display for InitAgeAssuranceError<'_> { 42 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 43 match self { ··· 62 } 63 Ok(()) 64 } 65 - Self::Unknown(_) => write!(f, "Unknown error"), 66 } 67 } 68 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct InitAgeAssuranceInput<'a> { 10 + ///An ISO 3166-1 alpha-2 code of the user's location. 11 #[serde(borrow)] 12 pub country_code: jacquard_common::CowStr<'a>, 13 + ///The user's email address to receive assurance instructions. 14 #[serde(borrow)] 15 pub email: jacquard_common::CowStr<'a>, 16 + ///The user's preferred language for communication during the assurance process. 17 #[serde(borrow)] 18 pub language: jacquard_common::CowStr<'a>, 19 } 20 + 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] ··· 26 #[serde(borrow)] 27 pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>, 28 } 29 + 30 #[jacquard_derive::open_union] 31 #[derive( 32 serde::Serialize, ··· 48 #[serde(rename = "InvalidInitiation")] 49 InvalidInitiation(std::option::Option<String>), 50 } 51 + 52 impl std::fmt::Display for InitAgeAssuranceError<'_> { 53 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 54 match self { ··· 73 } 74 Ok(()) 75 } 76 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 77 } 78 } 79 + }
+11 -2
crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchActorsSkeletonParams<'a> { ··· 14 #[serde(borrow)] 15 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 16 } 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] ··· 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 #[serde(borrow)] 25 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 pub hits_total: std::option::Option<i64>, 28 } 29 #[jacquard_derive::open_union] 30 #[derive( 31 serde::Serialize, ··· 43 #[serde(rename = "BadQueryString")] 44 BadQueryString(std::option::Option<String>), 45 } 46 impl std::fmt::Display for SearchActorsSkeletonError<'_> { 47 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 48 match self { ··· 53 } 54 Ok(()) 55 } 56 - Self::Unknown(_) => write!(f, "Unknown error"), 57 } 58 } 59 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchActorsSkeletonParams<'a> { ··· 19 #[serde(borrow)] 20 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 21 } 22 + 23 #[jacquard_derive::lexicon] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 #[serde(rename_all = "camelCase")] ··· 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 #[serde(borrow)] 31 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 32 + ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 pub hits_total: std::option::Option<i64>, 35 } 36 + 37 #[jacquard_derive::open_union] 38 #[derive( 39 serde::Serialize, ··· 51 #[serde(rename = "BadQueryString")] 52 BadQueryString(std::option::Option<String>), 53 } 54 + 55 impl std::fmt::Display for SearchActorsSkeletonError<'_> { 56 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 57 match self { ··· 62 } 63 Ok(()) 64 } 65 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 66 } 67 } 68 + }
+11 -2
crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchPostsSkeletonParams<'a> { ··· 38 #[serde(borrow)] 39 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 40 } 41 #[jacquard_derive::lexicon] 42 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 43 #[serde(rename_all = "camelCase")] ··· 45 #[serde(skip_serializing_if = "std::option::Option::is_none")] 46 #[serde(borrow)] 47 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 pub hits_total: std::option::Option<i64>, 50 #[serde(borrow)] 51 pub posts: Vec<crate::app_bsky::unspecced::SkeletonSearchPost<'a>>, 52 } 53 #[jacquard_derive::open_union] 54 #[derive( 55 serde::Serialize, ··· 67 #[serde(rename = "BadQueryString")] 68 BadQueryString(std::option::Option<String>), 69 } 70 impl std::fmt::Display for SearchPostsSkeletonError<'_> { 71 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 72 match self { ··· 77 } 78 Ok(()) 79 } 80 - Self::Unknown(_) => write!(f, "Unknown error"), 81 } 82 } 83 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchPostsSkeletonParams<'a> { ··· 43 #[serde(borrow)] 44 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 45 } 46 + 47 #[jacquard_derive::lexicon] 48 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 49 #[serde(rename_all = "camelCase")] ··· 51 #[serde(skip_serializing_if = "std::option::Option::is_none")] 52 #[serde(borrow)] 53 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 54 + ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. 55 #[serde(skip_serializing_if = "std::option::Option::is_none")] 56 pub hits_total: std::option::Option<i64>, 57 #[serde(borrow)] 58 pub posts: Vec<crate::app_bsky::unspecced::SkeletonSearchPost<'a>>, 59 } 60 + 61 #[jacquard_derive::open_union] 62 #[derive( 63 serde::Serialize, ··· 75 #[serde(rename = "BadQueryString")] 76 BadQueryString(std::option::Option<String>), 77 } 78 + 79 impl std::fmt::Display for SearchPostsSkeletonError<'_> { 80 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 81 match self { ··· 86 } 87 Ok(()) 88 } 89 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 90 } 91 } 92 + }
+11 -2
crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchStarterPacksSkeletonParams<'a> { ··· 12 #[serde(borrow)] 13 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 } 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 pub hits_total: std::option::Option<i64>, 24 #[serde(borrow)] 25 pub starter_packs: Vec<crate::app_bsky::unspecced::SkeletonSearchStarterPack<'a>>, 26 } 27 #[jacquard_derive::open_union] 28 #[derive( 29 serde::Serialize, ··· 41 #[serde(rename = "BadQueryString")] 42 BadQueryString(std::option::Option<String>), 43 } 44 impl std::fmt::Display for SearchStarterPacksSkeletonError<'_> { 45 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 46 match self { ··· 51 } 52 Ok(()) 53 } 54 - Self::Unknown(_) => write!(f, "Unknown error"), 55 } 56 } 57 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchStarterPacksSkeletonParams<'a> { ··· 17 #[serde(borrow)] 18 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 19 } 20 + 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] ··· 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 28 + ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 pub hits_total: std::option::Option<i64>, 31 #[serde(borrow)] 32 pub starter_packs: Vec<crate::app_bsky::unspecced::SkeletonSearchStarterPack<'a>>, 33 } 34 + 35 #[jacquard_derive::open_union] 36 #[derive( 37 serde::Serialize, ··· 49 #[serde(rename = "BadQueryString")] 50 BadQueryString(std::option::Option<String>), 51 } 52 + 53 impl std::fmt::Display for SearchStarterPacksSkeletonError<'_> { 54 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 55 match self { ··· 60 } 61 Ok(()) 62 } 63 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 64 } 65 } 66 + }
+12 -4
crates/jacquard-api/src/app_bsky/video.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 #[serde(borrow)] 17 pub message: std::option::Option<jacquard_common::CowStr<'a>>, 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 pub progress: std::option::Option<i64>, 20 #[serde(borrow)] 21 pub state: jacquard_common::CowStr<'a>, 22 - } 23 - pub mod get_job_status; 24 - pub mod get_upload_limits; 25 - pub mod upload_video;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod get_job_status; 7 + pub mod get_upload_limits; 8 + pub mod upload_video; 9 + 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub message: std::option::Option<jacquard_common::CowStr<'a>>, 27 + ///Progress within the current processing state. 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 pub progress: std::option::Option<i64>, 30 + ///The state of the video processing job. All values not listed as a known value indicate that the job is in process. 31 #[serde(borrow)] 32 pub state: jacquard_common::CowStr<'a>, 33 + }
+7 -1
crates/jacquard-api/src/app_bsky/video/get_job_status.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetJobStatusParams<'a> { 4 #[serde(borrow)] 5 pub job_id: jacquard_common::CowStr<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetJobStatusOutput<'a> { 11 #[serde(borrow)] 12 pub job_status: crate::app_bsky::video::JobStatus<'a>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetJobStatusParams<'a> { 9 #[serde(borrow)] 10 pub job_id: jacquard_common::CowStr<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetJobStatusOutput<'a> { 17 #[serde(borrow)] 18 pub job_status: crate::app_bsky::video::JobStatus<'a>, 19 + }
+6 -1
crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 13 pub remaining_daily_bytes: std::option::Option<i64>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub remaining_daily_videos: std::option::Option<i64>, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 18 pub remaining_daily_bytes: std::option::Option<i64>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 pub remaining_daily_videos: std::option::Option<i64>, 21 + }
+6 -1
crates/jacquard-api/src/app_bsky/video/upload_video.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 pub struct UploadVideoOutput<'a> { 9 #[serde(borrow)] 10 pub job_status: crate::app_bsky::video::JobStatus<'a>, 11 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 13 pub struct UploadVideoOutput<'a> { 14 #[serde(borrow)] 15 pub job_status: crate::app_bsky::video::JobStatus<'a>, 16 + }
+6 -1
crates/jacquard-api/src/chat_bsky.rs
··· 1 pub mod actor; 2 pub mod convo; 3 - pub mod moderation;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod actor; 7 pub mod convo; 8 + pub mod moderation;
+11 -4
crates/jacquard-api/src/chat_bsky/actor.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>, 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub chat_disabled: std::option::Option<bool>, 13 #[serde(borrow)] ··· 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 #[serde(borrow)] 28 pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>, 29 - } 30 - pub mod declaration; 31 - pub mod delete_account; 32 - pub mod export_account_data;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod declaration; 7 + pub mod delete_account; 8 + pub mod export_account_data; 9 + 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub avatar: std::option::Option<jacquard_common::types::string::Uri<'a>>, 20 + ///Set to true when the actor cannot actively participate in conversations 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 pub chat_disabled: std::option::Option<bool>, 23 #[serde(borrow)] ··· 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 37 #[serde(borrow)] 38 pub viewer: std::option::Option<crate::app_bsky::actor::ViewerState<'a>>, 39 + }
+6 -1
crates/jacquard-api/src/chat_bsky/actor/declaration.rs
··· 1 ///A declaration of a Bluesky chat account. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 5 pub struct Declaration<'a> { 6 #[serde(borrow)] 7 pub allow_incoming: jacquard_common::CowStr<'a>, 8 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///A declaration of a Bluesky chat account. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 10 pub struct Declaration<'a> { 11 #[serde(borrow)] 12 pub allow_incoming: jacquard_common::CowStr<'a>, 13 + }
+6 -1
crates/jacquard-api/src/chat_bsky/actor/delete_account.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 - pub struct DeleteAccountOutput<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 + pub struct DeleteAccountOutput<'a> {}
+6 -1
crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 - pub struct ExportAccountDataOutput<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 + pub struct ExportAccountDataOutput<'a> {}
+55 -26
crates/jacquard-api/src/chat_bsky/convo.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 20 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 21 pub unread_count: i64, 22 } 23 #[jacquard_derive::open_union] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 #[serde(tag = "$type")] ··· 39 #[serde(borrow)] 40 pub rev: jacquard_common::CowStr<'a>, 41 #[serde(borrow)] 42 - pub sender: jacquard_common::types::value::Data<'a>, 43 pub sent_at: jacquard_common::types::string::Datetime, 44 } 45 #[jacquard_derive::lexicon] 46 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 47 #[serde(rename_all = "camelCase")] ··· 51 #[serde(borrow)] 52 pub rev: jacquard_common::CowStr<'a>, 53 } 54 #[jacquard_derive::lexicon] 55 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 56 #[serde(rename_all = "camelCase")] ··· 60 #[serde(borrow)] 61 pub message: LogAddReactionRecordMessage<'a>, 62 #[serde(borrow)] 63 - pub reaction: jacquard_common::types::value::Data<'a>, 64 #[serde(borrow)] 65 pub rev: jacquard_common::CowStr<'a>, 66 } 67 #[jacquard_derive::open_union] 68 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 69 #[serde(tag = "$type")] ··· 78 #[serde(borrow)] 79 pub rev: jacquard_common::CowStr<'a>, 80 } 81 #[jacquard_derive::lexicon] 82 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 83 #[serde(rename_all = "camelCase")] ··· 89 #[serde(borrow)] 90 pub rev: jacquard_common::CowStr<'a>, 91 } 92 #[jacquard_derive::open_union] 93 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 94 #[serde(tag = "$type")] ··· 105 #[serde(borrow)] 106 pub rev: jacquard_common::CowStr<'a>, 107 } 108 #[jacquard_derive::open_union] 109 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 110 #[serde(tag = "$type")] ··· 119 #[serde(borrow)] 120 pub rev: jacquard_common::CowStr<'a>, 121 } 122 #[jacquard_derive::lexicon] 123 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 124 #[serde(rename_all = "camelCase")] ··· 128 #[serde(borrow)] 129 pub rev: jacquard_common::CowStr<'a>, 130 } 131 #[jacquard_derive::lexicon] 132 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 133 #[serde(rename_all = "camelCase")] ··· 139 #[serde(borrow)] 140 pub rev: jacquard_common::CowStr<'a>, 141 } 142 #[jacquard_derive::open_union] 143 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 144 #[serde(tag = "$type")] ··· 153 #[serde(borrow)] 154 pub message: LogRemoveReactionRecordMessage<'a>, 155 #[serde(borrow)] 156 - pub reaction: jacquard_common::types::value::Data<'a>, 157 #[serde(borrow)] 158 pub rev: jacquard_common::CowStr<'a>, 159 } 160 #[jacquard_derive::open_union] 161 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 162 #[serde(tag = "$type")] ··· 171 #[serde(borrow)] 172 pub rev: jacquard_common::CowStr<'a>, 173 } 174 #[jacquard_derive::lexicon] 175 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 176 #[serde(rename_all = "camelCase")] 177 pub struct MessageAndReactionView<'a> { 178 #[serde(borrow)] 179 - pub message: jacquard_common::types::value::Data<'a>, 180 #[serde(borrow)] 181 - pub reaction: jacquard_common::types::value::Data<'a>, 182 } 183 #[jacquard_derive::lexicon] 184 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 185 #[serde(rename_all = "camelCase")] ··· 187 #[serde(skip_serializing_if = "std::option::Option::is_none")] 188 #[serde(borrow)] 189 pub embed: std::option::Option<MessageInputRecordEmbed<'a>>, 190 #[serde(skip_serializing_if = "std::option::Option::is_none")] 191 #[serde(borrow)] 192 pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>, 193 #[serde(borrow)] 194 pub text: jacquard_common::CowStr<'a>, 195 } 196 #[jacquard_derive::open_union] 197 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 198 #[serde(tag = "$type")] ··· 201 #[serde(rename = "app.bsky.embed.record")] 202 Record(Box<crate::app_bsky::embed::record::Record<'a>>), 203 } 204 #[jacquard_derive::lexicon] 205 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 206 #[serde(rename_all = "camelCase")] ··· 212 #[serde(borrow)] 213 pub message_id: jacquard_common::CowStr<'a>, 214 } 215 #[jacquard_derive::lexicon] 216 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 217 #[serde(rename_all = "camelCase")] ··· 219 #[serde(skip_serializing_if = "std::option::Option::is_none")] 220 #[serde(borrow)] 221 pub embed: std::option::Option<MessageViewRecordEmbed<'a>>, 222 #[serde(skip_serializing_if = "std::option::Option::is_none")] 223 #[serde(borrow)] 224 pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>, 225 #[serde(borrow)] 226 pub id: jacquard_common::CowStr<'a>, 227 #[serde(skip_serializing_if = "std::option::Option::is_none")] 228 #[serde(borrow)] 229 - pub reactions: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 230 #[serde(borrow)] 231 pub rev: jacquard_common::CowStr<'a>, 232 #[serde(borrow)] 233 - pub sender: jacquard_common::types::value::Data<'a>, 234 pub sent_at: jacquard_common::types::string::Datetime, 235 #[serde(borrow)] 236 pub text: jacquard_common::CowStr<'a>, 237 } 238 #[jacquard_derive::open_union] 239 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 240 #[serde(tag = "$type")] ··· 243 #[serde(rename = "app.bsky.embed.record#view")] 244 RecordView(Box<crate::app_bsky::embed::record::View<'a>>), 245 } 246 #[jacquard_derive::lexicon] 247 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 248 #[serde(rename_all = "camelCase")] ··· 250 #[serde(borrow)] 251 pub did: jacquard_common::types::string::Did<'a>, 252 } 253 #[jacquard_derive::lexicon] 254 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 255 #[serde(rename_all = "camelCase")] 256 pub struct ReactionView<'a> { 257 pub created_at: jacquard_common::types::string::Datetime, 258 #[serde(borrow)] 259 - pub sender: jacquard_common::types::value::Data<'a>, 260 #[serde(borrow)] 261 pub value: jacquard_common::CowStr<'a>, 262 } 263 #[jacquard_derive::lexicon] 264 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 265 #[serde(rename_all = "camelCase")] 266 pub struct ReactionViewSender<'a> { 267 #[serde(borrow)] 268 pub did: jacquard_common::types::string::Did<'a>, 269 - } 270 - pub mod accept_convo; 271 - pub mod add_reaction; 272 - pub mod delete_message_for_self; 273 - pub mod get_convo; 274 - pub mod get_convo_availability; 275 - pub mod get_convo_for_members; 276 - pub mod get_log; 277 - pub mod get_messages; 278 - pub mod leave_convo; 279 - pub mod list_convos; 280 - pub mod mute_convo; 281 - pub mod remove_reaction; 282 - pub mod send_message; 283 - pub mod send_message_batch; 284 - pub mod unmute_convo; 285 - pub mod update_all_read; 286 - pub mod update_read;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod accept_convo; 7 + pub mod add_reaction; 8 + pub mod delete_message_for_self; 9 + pub mod get_convo; 10 + pub mod get_convo_availability; 11 + pub mod get_convo_for_members; 12 + pub mod get_log; 13 + pub mod get_messages; 14 + pub mod leave_convo; 15 + pub mod list_convos; 16 + pub mod mute_convo; 17 + pub mod remove_reaction; 18 + pub mod send_message; 19 + pub mod send_message_batch; 20 + pub mod unmute_convo; 21 + pub mod update_all_read; 22 + pub mod update_read; 23 + 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 43 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 44 pub unread_count: i64, 45 } 46 + 47 #[jacquard_derive::open_union] 48 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 49 #[serde(tag = "$type")] ··· 63 #[serde(borrow)] 64 pub rev: jacquard_common::CowStr<'a>, 65 #[serde(borrow)] 66 + pub sender: crate::chat_bsky::convo::MessageViewSender<'a>, 67 pub sent_at: jacquard_common::types::string::Datetime, 68 } 69 + 70 #[jacquard_derive::lexicon] 71 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 72 #[serde(rename_all = "camelCase")] ··· 76 #[serde(borrow)] 77 pub rev: jacquard_common::CowStr<'a>, 78 } 79 + 80 #[jacquard_derive::lexicon] 81 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 82 #[serde(rename_all = "camelCase")] ··· 86 #[serde(borrow)] 87 pub message: LogAddReactionRecordMessage<'a>, 88 #[serde(borrow)] 89 + pub reaction: crate::chat_bsky::convo::ReactionView<'a>, 90 #[serde(borrow)] 91 pub rev: jacquard_common::CowStr<'a>, 92 } 93 + 94 #[jacquard_derive::open_union] 95 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 96 #[serde(tag = "$type")] ··· 105 #[serde(borrow)] 106 pub rev: jacquard_common::CowStr<'a>, 107 } 108 + 109 #[jacquard_derive::lexicon] 110 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 111 #[serde(rename_all = "camelCase")] ··· 117 #[serde(borrow)] 118 pub rev: jacquard_common::CowStr<'a>, 119 } 120 + 121 #[jacquard_derive::open_union] 122 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 123 #[serde(tag = "$type")] ··· 134 #[serde(borrow)] 135 pub rev: jacquard_common::CowStr<'a>, 136 } 137 + 138 #[jacquard_derive::open_union] 139 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 140 #[serde(tag = "$type")] ··· 149 #[serde(borrow)] 150 pub rev: jacquard_common::CowStr<'a>, 151 } 152 + 153 #[jacquard_derive::lexicon] 154 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 155 #[serde(rename_all = "camelCase")] ··· 159 #[serde(borrow)] 160 pub rev: jacquard_common::CowStr<'a>, 161 } 162 + 163 #[jacquard_derive::lexicon] 164 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 165 #[serde(rename_all = "camelCase")] ··· 171 #[serde(borrow)] 172 pub rev: jacquard_common::CowStr<'a>, 173 } 174 + 175 #[jacquard_derive::open_union] 176 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 177 #[serde(tag = "$type")] ··· 186 #[serde(borrow)] 187 pub message: LogRemoveReactionRecordMessage<'a>, 188 #[serde(borrow)] 189 + pub reaction: crate::chat_bsky::convo::ReactionView<'a>, 190 #[serde(borrow)] 191 pub rev: jacquard_common::CowStr<'a>, 192 } 193 + 194 #[jacquard_derive::open_union] 195 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 196 #[serde(tag = "$type")] ··· 205 #[serde(borrow)] 206 pub rev: jacquard_common::CowStr<'a>, 207 } 208 + 209 #[jacquard_derive::lexicon] 210 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 211 #[serde(rename_all = "camelCase")] 212 pub struct MessageAndReactionView<'a> { 213 #[serde(borrow)] 214 + pub message: crate::chat_bsky::convo::MessageView<'a>, 215 #[serde(borrow)] 216 + pub reaction: crate::chat_bsky::convo::ReactionView<'a>, 217 } 218 + 219 #[jacquard_derive::lexicon] 220 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 221 #[serde(rename_all = "camelCase")] ··· 223 #[serde(skip_serializing_if = "std::option::Option::is_none")] 224 #[serde(borrow)] 225 pub embed: std::option::Option<MessageInputRecordEmbed<'a>>, 226 + ///Annotations of text (mentions, URLs, hashtags, etc) 227 #[serde(skip_serializing_if = "std::option::Option::is_none")] 228 #[serde(borrow)] 229 pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>, 230 #[serde(borrow)] 231 pub text: jacquard_common::CowStr<'a>, 232 } 233 + 234 #[jacquard_derive::open_union] 235 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 236 #[serde(tag = "$type")] ··· 239 #[serde(rename = "app.bsky.embed.record")] 240 Record(Box<crate::app_bsky::embed::record::Record<'a>>), 241 } 242 + 243 #[jacquard_derive::lexicon] 244 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 245 #[serde(rename_all = "camelCase")] ··· 251 #[serde(borrow)] 252 pub message_id: jacquard_common::CowStr<'a>, 253 } 254 + 255 #[jacquard_derive::lexicon] 256 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 257 #[serde(rename_all = "camelCase")] ··· 259 #[serde(skip_serializing_if = "std::option::Option::is_none")] 260 #[serde(borrow)] 261 pub embed: std::option::Option<MessageViewRecordEmbed<'a>>, 262 + ///Annotations of text (mentions, URLs, hashtags, etc) 263 #[serde(skip_serializing_if = "std::option::Option::is_none")] 264 #[serde(borrow)] 265 pub facets: std::option::Option<Vec<crate::app_bsky::richtext::facet::Facet<'a>>>, 266 #[serde(borrow)] 267 pub id: jacquard_common::CowStr<'a>, 268 + ///Reactions to this message, in ascending order of creation time. 269 #[serde(skip_serializing_if = "std::option::Option::is_none")] 270 #[serde(borrow)] 271 + pub reactions: std::option::Option<Vec<crate::chat_bsky::convo::ReactionView<'a>>>, 272 #[serde(borrow)] 273 pub rev: jacquard_common::CowStr<'a>, 274 #[serde(borrow)] 275 + pub sender: crate::chat_bsky::convo::MessageViewSender<'a>, 276 pub sent_at: jacquard_common::types::string::Datetime, 277 #[serde(borrow)] 278 pub text: jacquard_common::CowStr<'a>, 279 } 280 + 281 #[jacquard_derive::open_union] 282 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 283 #[serde(tag = "$type")] ··· 286 #[serde(rename = "app.bsky.embed.record#view")] 287 RecordView(Box<crate::app_bsky::embed::record::View<'a>>), 288 } 289 + 290 #[jacquard_derive::lexicon] 291 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 292 #[serde(rename_all = "camelCase")] ··· 294 #[serde(borrow)] 295 pub did: jacquard_common::types::string::Did<'a>, 296 } 297 + 298 #[jacquard_derive::lexicon] 299 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 300 #[serde(rename_all = "camelCase")] 301 pub struct ReactionView<'a> { 302 pub created_at: jacquard_common::types::string::Datetime, 303 #[serde(borrow)] 304 + pub sender: crate::chat_bsky::convo::ReactionViewSender<'a>, 305 #[serde(borrow)] 306 pub value: jacquard_common::CowStr<'a>, 307 } 308 + 309 #[jacquard_derive::lexicon] 310 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 311 #[serde(rename_all = "camelCase")] 312 pub struct ReactionViewSender<'a> { 313 #[serde(borrow)] 314 pub did: jacquard_common::types::string::Did<'a>, 315 + }
+8 -1
crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub convo_id: jacquard_common::CowStr<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] 11 pub struct AcceptConvoOutput<'a> { 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 #[serde(borrow)] 14 pub rev: std::option::Option<jacquard_common::CowStr<'a>>, 15 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub convo_id: jacquard_common::CowStr<'a>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] 17 pub struct AcceptConvoOutput<'a> { 18 + ///Rev when the convo was accepted. If not present, the convo was already accepted. 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub rev: std::option::Option<jacquard_common::CowStr<'a>>, 22 + }
+10 -2
crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 9 #[serde(borrow)] 10 pub value: jacquard_common::CowStr<'a>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 16 #[serde(borrow)] 17 pub message: crate::chat_bsky::convo::MessageView<'a>, 18 } 19 #[jacquard_derive::open_union] 20 #[derive( 21 serde::Serialize, ··· 40 #[serde(rename = "ReactionInvalidValue")] 41 ReactionInvalidValue(std::option::Option<String>), 42 } 43 impl std::fmt::Display for AddReactionError<'_> { 44 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 45 match self { ··· 64 } 65 Ok(()) 66 } 67 - Self::Unknown(_) => write!(f, "Unknown error"), 68 } 69 } 70 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 14 #[serde(borrow)] 15 pub value: jacquard_common::CowStr<'a>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 22 #[serde(borrow)] 23 pub message: crate::chat_bsky::convo::MessageView<'a>, 24 } 25 + 26 #[jacquard_derive::open_union] 27 #[derive( 28 serde::Serialize, ··· 47 #[serde(rename = "ReactionInvalidValue")] 48 ReactionInvalidValue(std::option::Option<String>), 49 } 50 + 51 impl std::fmt::Display for AddReactionError<'_> { 52 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 53 match self { ··· 72 } 73 Ok(()) 74 } 75 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 76 } 77 } 78 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub message_id: jacquard_common::CowStr<'a>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 14 #[serde(flatten)] 15 #[serde(borrow)] 16 pub value: crate::chat_bsky::convo::DeletedMessageView<'a>, 17 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub message_id: jacquard_common::CowStr<'a>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 20 #[serde(flatten)] 21 #[serde(borrow)] 22 pub value: crate::chat_bsky::convo::DeletedMessageView<'a>, 23 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetConvoParams<'a> { 4 #[serde(borrow)] 5 pub convo_id: jacquard_common::CowStr<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetConvoOutput<'a> { 11 #[serde(borrow)] 12 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetConvoParams<'a> { 9 #[serde(borrow)] 10 pub convo_id: jacquard_common::CowStr<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetConvoOutput<'a> { 17 #[serde(borrow)] 18 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 19 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetConvoAvailabilityParams<'a> { 4 #[serde(borrow)] 5 pub members: Vec<jacquard_common::types::string::Did<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 #[serde(borrow)] 14 pub convo: std::option::Option<crate::chat_bsky::convo::ConvoView<'a>>, 15 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetConvoAvailabilityParams<'a> { 9 #[serde(borrow)] 10 pub members: Vec<jacquard_common::types::string::Did<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub convo: std::option::Option<crate::chat_bsky::convo::ConvoView<'a>>, 21 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetConvoForMembersParams<'a> { 4 #[serde(borrow)] 5 pub members: Vec<jacquard_common::types::string::Did<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetConvoForMembersOutput<'a> { 11 #[serde(borrow)] 12 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetConvoForMembersParams<'a> { 9 #[serde(borrow)] 10 pub members: Vec<jacquard_common::types::string::Did<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetConvoForMembersOutput<'a> { 17 #[serde(borrow)] 18 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 19 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_log.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetLogParams<'a> { ··· 5 #[serde(borrow)] 6 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] ··· 14 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 15 #[serde(borrow)] 16 pub logs: Vec<jacquard_common::types::value::Data<'a>>, 17 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetLogParams<'a> { ··· 10 #[serde(borrow)] 11 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] ··· 20 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 21 #[serde(borrow)] 22 pub logs: Vec<jacquard_common::types::value::Data<'a>>, 23 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/get_messages.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetMessagesParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 #[serde(borrow)] 20 pub messages: Vec<jacquard_common::types::value::Data<'a>>, 21 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetMessagesParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(borrow)] 26 pub messages: Vec<jacquard_common::types::value::Data<'a>>, 27 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub convo_id: jacquard_common::CowStr<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] ··· 13 pub convo_id: jacquard_common::CowStr<'a>, 14 #[serde(borrow)] 15 pub rev: jacquard_common::CowStr<'a>, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub convo_id: jacquard_common::CowStr<'a>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] ··· 19 pub convo_id: jacquard_common::CowStr<'a>, 20 #[serde(borrow)] 21 pub rev: jacquard_common::CowStr<'a>, 22 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/list_convos.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListConvosParams<'a> { ··· 13 #[serde(borrow)] 14 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListConvosParams<'a> { ··· 18 #[serde(borrow)] 19 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 20 } 21 + 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 31 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub convo_id: jacquard_common::CowStr<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] 11 pub struct MuteConvoOutput<'a> { 12 #[serde(borrow)] 13 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 14 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub convo_id: jacquard_common::CowStr<'a>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] 17 pub struct MuteConvoOutput<'a> { 18 #[serde(borrow)] 19 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 20 + }
+10 -2
crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 9 #[serde(borrow)] 10 pub value: jacquard_common::CowStr<'a>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 16 #[serde(borrow)] 17 pub message: crate::chat_bsky::convo::MessageView<'a>, 18 } 19 #[jacquard_derive::open_union] 20 #[derive( 21 serde::Serialize, ··· 37 #[serde(rename = "ReactionInvalidValue")] 38 ReactionInvalidValue(std::option::Option<String>), 39 } 40 impl std::fmt::Display for RemoveReactionError<'_> { 41 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 42 match self { ··· 54 } 55 Ok(()) 56 } 57 - Self::Unknown(_) => write!(f, "Unknown error"), 58 } 59 } 60 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 14 #[serde(borrow)] 15 pub value: jacquard_common::CowStr<'a>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 22 #[serde(borrow)] 23 pub message: crate::chat_bsky::convo::MessageView<'a>, 24 } 25 + 26 #[jacquard_derive::open_union] 27 #[derive( 28 serde::Serialize, ··· 44 #[serde(rename = "ReactionInvalidValue")] 45 ReactionInvalidValue(std::option::Option<String>), 46 } 47 + 48 impl std::fmt::Display for RemoveReactionError<'_> { 49 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 50 match self { ··· 62 } 63 Ok(()) 64 } 65 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 66 } 67 } 68 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/send_message.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub message: crate::chat_bsky::convo::MessageInput<'a>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 14 #[serde(flatten)] 15 #[serde(borrow)] 16 pub value: crate::chat_bsky::convo::MessageView<'a>, 17 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub message: crate::chat_bsky::convo::MessageInput<'a>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 20 #[serde(flatten)] 21 #[serde(borrow)] 22 pub value: crate::chat_bsky::convo::MessageView<'a>, 23 + }
+8 -1
crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub message: crate::chat_bsky::convo::MessageInput<'a>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 14 #[serde(borrow)] 15 pub items: Vec<jacquard_common::types::value::Data<'a>>, 16 } 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] 20 pub struct SendMessageBatchOutput<'a> { 21 #[serde(borrow)] 22 pub items: Vec<crate::chat_bsky::convo::MessageView<'a>>, 23 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub message: crate::chat_bsky::convo::MessageInput<'a>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 20 #[serde(borrow)] 21 pub items: Vec<jacquard_common::types::value::Data<'a>>, 22 } 23 + 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] 27 pub struct SendMessageBatchOutput<'a> { 28 #[serde(borrow)] 29 pub items: Vec<crate::chat_bsky::convo::MessageView<'a>>, 30 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub convo_id: jacquard_common::CowStr<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] 11 pub struct UnmuteConvoOutput<'a> { 12 #[serde(borrow)] 13 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 14 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub convo_id: jacquard_common::CowStr<'a>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] 17 pub struct UnmuteConvoOutput<'a> { 18 #[serde(borrow)] 19 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 20 + }
+8 -1
crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 #[serde(borrow)] 7 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct UpdateAllReadOutput<'a> { 13 pub updated_count: i64, 14 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 #[serde(borrow)] 12 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] 18 pub struct UpdateAllReadOutput<'a> { 19 + ///The count of updated convos. 20 pub updated_count: i64, 21 + }
+7 -1
crates/jacquard-api/src/chat_bsky/convo/update_read.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 #[serde(borrow)] 9 pub message_id: std::option::Option<jacquard_common::CowStr<'a>>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] 14 pub struct UpdateReadOutput<'a> { 15 #[serde(borrow)] 16 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 17 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 13 #[serde(borrow)] 14 pub message_id: std::option::Option<jacquard_common::CowStr<'a>>, 15 } 16 + 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] 20 pub struct UpdateReadOutput<'a> { 21 #[serde(borrow)] 22 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 23 + }
+6 -1
crates/jacquard-api/src/chat_bsky/moderation.rs
··· 1 pub mod get_actor_metadata; 2 pub mod get_message_context; 3 - pub mod update_actor_access;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod get_actor_metadata; 7 pub mod get_message_context; 8 + pub mod update_actor_access;
+8 -1
crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetActorMetadataParams<'a> { 4 #[serde(borrow)] 5 pub actor: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 15 #[serde(borrow)] 16 pub month: jacquard_common::types::value::Data<'a>, 17 } 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 23 pub convos_started: i64, 24 pub messages_received: i64, 25 pub messages_sent: i64, 26 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetActorMetadataParams<'a> { 9 #[serde(borrow)] 10 pub actor: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 21 #[serde(borrow)] 22 pub month: jacquard_common::types::value::Data<'a>, 23 } 24 + 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] ··· 30 pub convos_started: i64, 31 pub messages_received: i64, 32 pub messages_sent: i64, 33 + }
+7 -1
crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetMessageContextParams<'a> { ··· 11 #[serde(borrow)] 12 pub message_id: jacquard_common::CowStr<'a>, 13 } 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] 17 pub struct GetMessageContextOutput<'a> { 18 #[serde(borrow)] 19 pub messages: Vec<jacquard_common::types::value::Data<'a>>, 20 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetMessageContextParams<'a> { ··· 16 #[serde(borrow)] 17 pub message_id: jacquard_common::CowStr<'a>, 18 } 19 + 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] 23 pub struct GetMessageContextOutput<'a> { 24 #[serde(borrow)] 25 pub messages: Vec<jacquard_common::types::value::Data<'a>>, 26 + }
+6 -1
crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>, 11 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>, 16 + }
+6 -1
crates/jacquard-api/src/com_atproto.rs
··· 1 pub mod admin; 2 pub mod identity; 3 pub mod label; ··· 6 pub mod repo; 7 pub mod server; 8 pub mod sync; 9 - pub mod temp;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod admin; 7 pub mod identity; 8 pub mod label; ··· 11 pub mod repo; 12 pub mod server; 13 pub mod sync; 14 + pub mod temp;
+27 -17
crates/jacquard-api/src/com_atproto/admin.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 35 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 #[serde(borrow)] 37 pub threat_signatures: std::option::Option< 38 - Vec<jacquard_common::types::value::Data<'a>>, 39 >, 40 } 41 #[jacquard_derive::lexicon] 42 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 43 #[serde(rename_all = "camelCase")] ··· 50 #[serde(borrow)] 51 pub record_uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 52 } 53 #[jacquard_derive::lexicon] 54 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 55 #[serde(rename_all = "camelCase")] ··· 57 #[serde(borrow)] 58 pub did: jacquard_common::types::string::Did<'a>, 59 } 60 #[jacquard_derive::lexicon] 61 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 62 #[serde(rename_all = "camelCase")] ··· 66 #[serde(borrow)] 67 pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>, 68 } 69 #[jacquard_derive::lexicon] 70 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 71 #[serde(rename_all = "camelCase")] ··· 74 pub property: jacquard_common::CowStr<'a>, 75 #[serde(borrow)] 76 pub value: jacquard_common::CowStr<'a>, 77 - } 78 - pub mod delete_account; 79 - pub mod disable_account_invites; 80 - pub mod disable_invite_codes; 81 - pub mod enable_account_invites; 82 - pub mod get_account_info; 83 - pub mod get_account_infos; 84 - pub mod get_invite_codes; 85 - pub mod get_subject_status; 86 - pub mod search_accounts; 87 - pub mod send_email; 88 - pub mod update_account_email; 89 - pub mod update_account_handle; 90 - pub mod update_account_password; 91 - pub mod update_account_signing_key; 92 - pub mod update_subject_status;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod delete_account; 7 + pub mod disable_account_invites; 8 + pub mod disable_invite_codes; 9 + pub mod enable_account_invites; 10 + pub mod get_account_info; 11 + pub mod get_account_infos; 12 + pub mod get_invite_codes; 13 + pub mod get_subject_status; 14 + pub mod search_accounts; 15 + pub mod send_email; 16 + pub mod update_account_email; 17 + pub mod update_account_handle; 18 + pub mod update_account_password; 19 + pub mod update_account_signing_key; 20 + pub mod update_subject_status; 21 + 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 56 #[serde(skip_serializing_if = "std::option::Option::is_none")] 57 #[serde(borrow)] 58 pub threat_signatures: std::option::Option< 59 + Vec<crate::com_atproto::admin::ThreatSignature<'a>>, 60 >, 61 } 62 + 63 #[jacquard_derive::lexicon] 64 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 65 #[serde(rename_all = "camelCase")] ··· 72 #[serde(borrow)] 73 pub record_uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 74 } 75 + 76 #[jacquard_derive::lexicon] 77 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 78 #[serde(rename_all = "camelCase")] ··· 80 #[serde(borrow)] 81 pub did: jacquard_common::types::string::Did<'a>, 82 } 83 + 84 #[jacquard_derive::lexicon] 85 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 86 #[serde(rename_all = "camelCase")] ··· 90 #[serde(borrow)] 91 pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>, 92 } 93 + 94 #[jacquard_derive::lexicon] 95 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 96 #[serde(rename_all = "camelCase")] ··· 99 pub property: jacquard_common::CowStr<'a>, 100 #[serde(borrow)] 101 pub value: jacquard_common::CowStr<'a>, 102 + }
+6 -1
crates/jacquard-api/src/com_atproto/admin/delete_account.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct DeleteAccountInput<'a> { 5 #[serde(borrow)] 6 pub did: jacquard_common::types::string::Did<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct DeleteAccountInput<'a> { 10 #[serde(borrow)] 11 pub did: jacquard_common::types::string::Did<'a>, 12 + }
+7 -1
crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct DisableAccountInvitesInput<'a> { 5 #[serde(borrow)] 6 pub account: jacquard_common::types::string::Did<'a>, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 #[serde(borrow)] 9 pub note: std::option::Option<jacquard_common::CowStr<'a>>, 10 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct DisableAccountInvitesInput<'a> { 10 #[serde(borrow)] 11 pub account: jacquard_common::types::string::Did<'a>, 12 + ///Optional reason for disabled invites. 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub note: std::option::Option<jacquard_common::CowStr<'a>>, 16 + }
+6 -1
crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub codes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 11 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub codes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 16 + }
+7 -1
crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct EnableAccountInvitesInput<'a> { 5 #[serde(borrow)] 6 pub account: jacquard_common::types::string::Did<'a>, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 #[serde(borrow)] 9 pub note: std::option::Option<jacquard_common::CowStr<'a>>, 10 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct EnableAccountInvitesInput<'a> { 10 #[serde(borrow)] 11 pub account: jacquard_common::types::string::Did<'a>, 12 + ///Optional reason for enabled invites. 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub note: std::option::Option<jacquard_common::CowStr<'a>>, 16 + }
+7 -1
crates/jacquard-api/src/com_atproto/admin/get_account_info.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetAccountInfoParams<'a> { 4 #[serde(borrow)] 5 pub did: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 11 #[serde(flatten)] 12 #[serde(borrow)] 13 pub value: crate::com_atproto::admin::AccountView<'a>, 14 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetAccountInfoParams<'a> { 9 #[serde(borrow)] 10 pub did: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 17 #[serde(flatten)] 18 #[serde(borrow)] 19 pub value: crate::com_atproto::admin::AccountView<'a>, 20 + }
+7 -1
crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetAccountInfosParams<'a> { 4 #[serde(borrow)] 5 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetAccountInfosOutput<'a> { 11 #[serde(borrow)] 12 pub infos: Vec<crate::com_atproto::admin::AccountView<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetAccountInfosParams<'a> { 9 #[serde(borrow)] 10 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetAccountInfosOutput<'a> { 17 #[serde(borrow)] 18 pub infos: Vec<crate::com_atproto::admin::AccountView<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetInviteCodesParams<'a> { ··· 10 #[serde(borrow)] 11 pub sort: std::option::Option<jacquard_common::CowStr<'a>>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 22 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetInviteCodesParams<'a> { ··· 15 #[serde(borrow)] 16 pub sort: std::option::Option<jacquard_common::CowStr<'a>>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 28 + }
+8 -1
crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSubjectStatusParams<'a> { ··· 11 #[serde(borrow)] 12 pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 13 } 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] ··· 24 #[serde(borrow)] 25 pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>, 26 } 27 #[jacquard_derive::open_union] 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 29 #[serde(tag = "$type")] ··· 35 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 36 #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] 37 DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>), 38 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSubjectStatusParams<'a> { ··· 16 #[serde(borrow)] 17 pub uri: std::option::Option<jacquard_common::types::string::AtUri<'a>>, 18 } 19 + 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] ··· 30 #[serde(borrow)] 31 pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>, 32 } 33 + 34 #[jacquard_derive::open_union] 35 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 36 #[serde(tag = "$type")] ··· 42 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 43 #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] 44 DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>), 45 + }
+7 -1
crates/jacquard-api/src/com_atproto/admin/search_accounts.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchAccountsParams<'a> { ··· 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 pub limit: std::option::Option<i64>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 22 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchAccountsParams<'a> { ··· 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 pub limit: std::option::Option<i64>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 28 + }
+8 -1
crates/jacquard-api/src/com_atproto/admin/send_email.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct SendEmailInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, ··· 15 #[serde(borrow)] 16 pub subject: std::option::Option<jacquard_common::CowStr<'a>>, 17 } 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] 21 pub struct SendEmailOutput<'a> { 22 pub sent: bool, 23 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct SendEmailInput<'a> { 10 + ///Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, ··· 21 #[serde(borrow)] 22 pub subject: std::option::Option<jacquard_common::CowStr<'a>>, 23 } 24 + 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] 28 pub struct SendEmailOutput<'a> { 29 pub sent: bool, 30 + }
+7 -1
crates/jacquard-api/src/com_atproto/admin/update_account_email.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UpdateAccountEmailInput<'a> { 5 #[serde(borrow)] 6 pub account: jacquard_common::types::ident::AtIdentifier<'a>, 7 #[serde(borrow)] 8 pub email: jacquard_common::CowStr<'a>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UpdateAccountEmailInput<'a> { 10 + ///The handle or DID of the repo. 11 #[serde(borrow)] 12 pub account: jacquard_common::types::ident::AtIdentifier<'a>, 13 #[serde(borrow)] 14 pub email: jacquard_common::CowStr<'a>, 15 + }
+6 -1
crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 pub did: jacquard_common::types::string::Did<'a>, 7 #[serde(borrow)] 8 pub handle: jacquard_common::types::string::Handle<'a>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 pub did: jacquard_common::types::string::Did<'a>, 12 #[serde(borrow)] 13 pub handle: jacquard_common::types::string::Handle<'a>, 14 + }
+6 -1
crates/jacquard-api/src/com_atproto/admin/update_account_password.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 pub did: jacquard_common::types::string::Did<'a>, 7 #[serde(borrow)] 8 pub password: jacquard_common::CowStr<'a>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 pub did: jacquard_common::types::string::Did<'a>, 12 #[serde(borrow)] 13 pub password: jacquard_common::CowStr<'a>, 14 + }
+7 -1
crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UpdateAccountSigningKeyInput<'a> { 5 #[serde(borrow)] 6 pub did: jacquard_common::types::string::Did<'a>, 7 #[serde(borrow)] 8 pub signing_key: jacquard_common::types::string::Did<'a>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UpdateAccountSigningKeyInput<'a> { 10 #[serde(borrow)] 11 pub did: jacquard_common::types::string::Did<'a>, 12 + ///Did-key formatted public key 13 #[serde(borrow)] 14 pub signing_key: jacquard_common::types::string::Did<'a>, 15 + }
+9 -1
crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 11 #[serde(borrow)] 12 pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>, 13 } 14 #[jacquard_derive::open_union] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(tag = "$type")] ··· 23 #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] 24 DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>), 25 } 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] ··· 33 #[serde(borrow)] 34 pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>, 35 } 36 #[jacquard_derive::open_union] 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 38 #[serde(tag = "$type")] ··· 44 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 45 #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] 46 DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>), 47 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 16 #[serde(borrow)] 17 pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>, 18 } 19 + 20 #[jacquard_derive::open_union] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(tag = "$type")] ··· 29 #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] 30 DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>), 31 } 32 + 33 #[jacquard_derive::lexicon] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 #[serde(rename_all = "camelCase")] ··· 40 #[serde(borrow)] 41 pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>, 42 } 43 + 44 #[jacquard_derive::open_union] 45 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 46 #[serde(tag = "$type")] ··· 52 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 53 #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] 54 DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>), 55 + }
+18 -10
crates/jacquard-api/src/com_atproto/identity.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct IdentityInfo<'a> { 5 #[serde(borrow)] 6 pub did: jacquard_common::types::string::Did<'a>, 7 #[serde(borrow)] 8 pub did_doc: jacquard_common::types::value::Data<'a>, 9 #[serde(borrow)] 10 pub handle: jacquard_common::types::string::Handle<'a>, 11 - } 12 - pub mod get_recommended_did_credentials; 13 - pub mod refresh_identity; 14 - pub mod request_plc_operation_signature; 15 - pub mod resolve_did; 16 - pub mod resolve_handle; 17 - pub mod resolve_identity; 18 - pub mod sign_plc_operation; 19 - pub mod submit_plc_operation; 20 - pub mod update_handle;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod get_recommended_did_credentials; 7 + pub mod refresh_identity; 8 + pub mod request_plc_operation_signature; 9 + pub mod resolve_did; 10 + pub mod resolve_handle; 11 + pub mod resolve_identity; 12 + pub mod sign_plc_operation; 13 + pub mod submit_plc_operation; 14 + pub mod update_handle; 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct IdentityInfo<'a> { 20 #[serde(borrow)] 21 pub did: jacquard_common::types::string::Did<'a>, 22 + ///The complete DID document for the identity. 23 #[serde(borrow)] 24 pub did_doc: jacquard_common::types::value::Data<'a>, 25 + ///The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. 26 #[serde(borrow)] 27 pub handle: jacquard_common::types::string::Handle<'a>, 28 + }
+10 -2
crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub identifier: jacquard_common::types::ident::AtIdentifier<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] ··· 13 #[serde(borrow)] 14 pub value: crate::com_atproto::identity::IdentityInfo<'a>, 15 } 16 #[jacquard_derive::open_union] 17 #[derive( 18 serde::Serialize, ··· 37 #[serde(rename = "DidDeactivated")] 38 DidDeactivated(std::option::Option<String>), 39 } 40 impl std::fmt::Display for RefreshIdentityError<'_> { 41 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 42 match self { ··· 61 } 62 Ok(()) 63 } 64 - Self::Unknown(_) => write!(f, "Unknown error"), 65 } 66 } 67 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub identifier: jacquard_common::types::ident::AtIdentifier<'a>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] ··· 19 #[serde(borrow)] 20 pub value: crate::com_atproto::identity::IdentityInfo<'a>, 21 } 22 + 23 #[jacquard_derive::open_union] 24 #[derive( 25 serde::Serialize, ··· 44 #[serde(rename = "DidDeactivated")] 45 DidDeactivated(std::option::Option<String>), 46 } 47 + 48 impl std::fmt::Display for RefreshIdentityError<'_> { 49 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 50 match self { ··· 69 } 70 Ok(()) 71 } 72 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 73 } 74 } 75 + }
+5
crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs
···
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 +
+11 -2
crates/jacquard-api/src/com_atproto/identity/resolve_did.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ResolveDidParams<'a> { 4 #[serde(borrow)] 5 pub did: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct ResolveDidOutput<'a> { 11 #[serde(borrow)] 12 pub did_doc: jacquard_common::types::value::Data<'a>, 13 } 14 #[jacquard_derive::open_union] 15 #[derive( 16 serde::Serialize, ··· 32 #[serde(rename = "DidDeactivated")] 33 DidDeactivated(std::option::Option<String>), 34 } 35 impl std::fmt::Display for ResolveDidError<'_> { 36 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 37 match self { ··· 49 } 50 Ok(()) 51 } 52 - Self::Unknown(_) => write!(f, "Unknown error"), 53 } 54 } 55 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ResolveDidParams<'a> { 9 #[serde(borrow)] 10 pub did: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct ResolveDidOutput<'a> { 17 + ///The complete DID document for the identity. 18 #[serde(borrow)] 19 pub did_doc: jacquard_common::types::value::Data<'a>, 20 } 21 + 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 40 #[serde(rename = "DidDeactivated")] 41 DidDeactivated(std::option::Option<String>), 42 } 43 + 44 impl std::fmt::Display for ResolveDidError<'_> { 45 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 46 match self { ··· 58 } 59 Ok(()) 60 } 61 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 62 } 63 } 64 + }
+10 -2
crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ResolveHandleParams<'a> { 4 #[serde(borrow)] 5 pub handle: jacquard_common::types::string::Handle<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 11 #[serde(borrow)] 12 pub did: jacquard_common::types::string::Did<'a>, 13 } 14 #[jacquard_derive::open_union] 15 #[derive( 16 serde::Serialize, ··· 29 #[serde(rename = "HandleNotFound")] 30 HandleNotFound(std::option::Option<String>), 31 } 32 impl std::fmt::Display for ResolveHandleError<'_> { 33 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 34 match self { ··· 39 } 40 Ok(()) 41 } 42 - Self::Unknown(_) => write!(f, "Unknown error"), 43 } 44 } 45 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ResolveHandleParams<'a> { 9 #[serde(borrow)] 10 pub handle: jacquard_common::types::string::Handle<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 17 #[serde(borrow)] 18 pub did: jacquard_common::types::string::Did<'a>, 19 } 20 + 21 #[jacquard_derive::open_union] 22 #[derive( 23 serde::Serialize, ··· 36 #[serde(rename = "HandleNotFound")] 37 HandleNotFound(std::option::Option<String>), 38 } 39 + 40 impl std::fmt::Display for ResolveHandleError<'_> { 41 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 42 match self { ··· 47 } 48 Ok(()) 49 } 50 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 51 } 52 } 53 + }
+10 -2
crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ResolveIdentityParams<'a> { 4 #[serde(borrow)] 5 pub identifier: jacquard_common::types::ident::AtIdentifier<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub value: crate::com_atproto::identity::IdentityInfo<'a>, 14 } 15 #[jacquard_derive::open_union] 16 #[derive( 17 serde::Serialize, ··· 36 #[serde(rename = "DidDeactivated")] 37 DidDeactivated(std::option::Option<String>), 38 } 39 impl std::fmt::Display for ResolveIdentityError<'_> { 40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 41 match self { ··· 60 } 61 Ok(()) 62 } 63 - Self::Unknown(_) => write!(f, "Unknown error"), 64 } 65 } 66 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ResolveIdentityParams<'a> { 9 #[serde(borrow)] 10 pub identifier: jacquard_common::types::ident::AtIdentifier<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 18 #[serde(borrow)] 19 pub value: crate::com_atproto::identity::IdentityInfo<'a>, 20 } 21 + 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 43 #[serde(rename = "DidDeactivated")] 44 DidDeactivated(std::option::Option<String>), 45 } 46 + 47 impl std::fmt::Display for ResolveIdentityError<'_> { 48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 49 match self { ··· 68 } 69 Ok(()) 70 } 71 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 72 } 73 } 74 + }
+9 -1
crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub services: std::option::Option<jacquard_common::types::value::Data<'a>>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub token: std::option::Option<jacquard_common::CowStr<'a>>, ··· 20 jacquard_common::types::value::Data<'a>, 21 >, 22 } 23 #[jacquard_derive::lexicon] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 #[serde(rename_all = "camelCase")] 26 pub struct SignPlcOperationOutput<'a> { 27 #[serde(borrow)] 28 pub operation: jacquard_common::types::value::Data<'a>, 29 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub services: std::option::Option<jacquard_common::types::value::Data<'a>>, 19 + ///A token received through com.atproto.identity.requestPlcOperationSignature 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 21 #[serde(borrow)] 22 pub token: std::option::Option<jacquard_common::CowStr<'a>>, ··· 26 jacquard_common::types::value::Data<'a>, 27 >, 28 } 29 + 30 #[jacquard_derive::lexicon] 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 32 #[serde(rename_all = "camelCase")] 33 pub struct SignPlcOperationOutput<'a> { 34 + ///A signed DID PLC operation. 35 #[serde(borrow)] 36 pub operation: jacquard_common::types::value::Data<'a>, 37 + }
+6 -1
crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct SubmitPlcOperationInput<'a> { 5 #[serde(borrow)] 6 pub operation: jacquard_common::types::value::Data<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct SubmitPlcOperationInput<'a> { 10 #[serde(borrow)] 11 pub operation: jacquard_common::types::value::Data<'a>, 12 + }
+7 -1
crates/jacquard-api/src/com_atproto/identity/update_handle.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UpdateHandleInput<'a> { 5 #[serde(borrow)] 6 pub handle: jacquard_common::types::string::Handle<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UpdateHandleInput<'a> { 10 + ///The new handle. 11 #[serde(borrow)] 12 pub handle: jacquard_common::types::string::Handle<'a>, 13 + }
+40 -5
crates/jacquard-api/src/com_atproto/label.rs
··· 1 ///Metadata tag on an atproto resource (eg, repo or record). 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Label<'a> { 6 #[serde(skip_serializing_if = "std::option::Option::is_none")] 7 #[serde(borrow)] 8 pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>, 9 pub cts: jacquard_common::types::string::Datetime, 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 pub exp: std::option::Option<jacquard_common::types::string::Datetime>, 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub neg: std::option::Option<bool>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub sig: std::option::Option<bytes::Bytes>, 16 #[serde(borrow)] 17 pub src: jacquard_common::types::string::Did<'a>, 18 #[serde(borrow)] 19 pub uri: jacquard_common::types::string::Uri<'a>, 20 #[serde(borrow)] 21 pub val: jacquard_common::CowStr<'a>, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 pub ver: std::option::Option<i64>, 24 } 25 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 26 pub enum LabelValue<'a> { 27 Hide, ··· 37 Gore, 38 Other(jacquard_common::CowStr<'a>), 39 } 40 impl<'a> LabelValue<'a> { 41 pub fn as_str(&self) -> &str { 42 match self { ··· 55 } 56 } 57 } 58 impl<'a> From<&'a str> for LabelValue<'a> { 59 fn from(s: &'a str) -> Self { 60 match s { ··· 73 } 74 } 75 } 76 impl<'a> From<String> for LabelValue<'a> { 77 fn from(s: String) -> Self { 78 match s.as_str() { ··· 91 } 92 } 93 } 94 impl<'a> AsRef<str> for LabelValue<'a> { 95 fn as_ref(&self) -> &str { 96 self.as_str() 97 } 98 } 99 impl<'a> serde::Serialize for LabelValue<'a> { 100 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 101 where ··· 104 serializer.serialize_str(self.as_str()) 105 } 106 } 107 impl<'de, 'a> serde::Deserialize<'de> for LabelValue<'a> 108 where 109 'de: 'a, ··· 116 Ok(Self::from(s)) 117 } 118 } 119 ///Declares a label value and its expected interpretations and behaviors. 120 #[jacquard_derive::lexicon] 121 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 122 #[serde(rename_all = "camelCase")] 123 pub struct LabelValueDefinition<'a> { 124 #[serde(skip_serializing_if = "std::option::Option::is_none")] 125 pub adult_only: std::option::Option<bool>, 126 #[serde(borrow)] 127 pub blurs: jacquard_common::CowStr<'a>, 128 #[serde(skip_serializing_if = "std::option::Option::is_none")] 129 #[serde(borrow)] 130 pub default_setting: std::option::Option<jacquard_common::CowStr<'a>>, 131 #[serde(borrow)] 132 pub identifier: jacquard_common::CowStr<'a>, 133 #[serde(borrow)] 134 - pub locales: Vec<jacquard_common::types::value::Data<'a>>, 135 #[serde(borrow)] 136 pub severity: jacquard_common::CowStr<'a>, 137 } 138 ///Strings which describe the label in the UI, localized into a specific language. 139 #[jacquard_derive::lexicon] 140 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 141 #[serde(rename_all = "camelCase")] 142 pub struct LabelValueDefinitionStrings<'a> { 143 #[serde(borrow)] 144 pub description: jacquard_common::CowStr<'a>, 145 pub lang: jacquard_common::types::string::Language, 146 #[serde(borrow)] 147 pub name: jacquard_common::CowStr<'a>, 148 } 149 ///Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. 150 #[jacquard_derive::lexicon] 151 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 152 #[serde(rename_all = "camelCase")] 153 pub struct SelfLabel<'a> { 154 #[serde(borrow)] 155 pub val: jacquard_common::CowStr<'a>, 156 } 157 ///Metadata tags on an atproto record, published by the author within the record. 158 #[jacquard_derive::lexicon] 159 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 160 #[serde(rename_all = "camelCase")] 161 pub struct SelfLabels<'a> { 162 #[serde(borrow)] 163 - pub values: Vec<jacquard_common::types::value::Data<'a>>, 164 - } 165 - pub mod query_labels; 166 - pub mod subscribe_labels;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod query_labels; 7 + pub mod subscribe_labels; 8 + 9 ///Metadata tag on an atproto resource (eg, repo or record). 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] 13 pub struct Label<'a> { 14 + ///Optionally, CID specifying the specific version of 'uri' resource this label applies to. 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 #[serde(borrow)] 17 pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>, 18 + ///Timestamp when this label was created. 19 pub cts: jacquard_common::types::string::Datetime, 20 + ///Timestamp at which this label expires (no longer applies). 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 pub exp: std::option::Option<jacquard_common::types::string::Datetime>, 23 + ///If true, this is a negation label, overwriting a previous label. 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 pub neg: std::option::Option<bool>, 26 + ///Signature of dag-cbor encoded label. 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 pub sig: std::option::Option<bytes::Bytes>, 29 + ///DID of the actor who created this label. 30 #[serde(borrow)] 31 pub src: jacquard_common::types::string::Did<'a>, 32 + ///AT URI of the record, repository (account), or other resource that this label applies to. 33 #[serde(borrow)] 34 pub uri: jacquard_common::types::string::Uri<'a>, 35 + ///The short string name of the value or type of this label. 36 #[serde(borrow)] 37 pub val: jacquard_common::CowStr<'a>, 38 + ///The AT Protocol version of the label object. 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] 40 pub ver: std::option::Option<i64>, 41 } 42 + 43 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 44 pub enum LabelValue<'a> { 45 Hide, ··· 55 Gore, 56 Other(jacquard_common::CowStr<'a>), 57 } 58 + 59 impl<'a> LabelValue<'a> { 60 pub fn as_str(&self) -> &str { 61 match self { ··· 74 } 75 } 76 } 77 + 78 impl<'a> From<&'a str> for LabelValue<'a> { 79 fn from(s: &'a str) -> Self { 80 match s { ··· 93 } 94 } 95 } 96 + 97 impl<'a> From<String> for LabelValue<'a> { 98 fn from(s: String) -> Self { 99 match s.as_str() { ··· 112 } 113 } 114 } 115 + 116 impl<'a> AsRef<str> for LabelValue<'a> { 117 fn as_ref(&self) -> &str { 118 self.as_str() 119 } 120 } 121 + 122 impl<'a> serde::Serialize for LabelValue<'a> { 123 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 124 where ··· 127 serializer.serialize_str(self.as_str()) 128 } 129 } 130 + 131 impl<'de, 'a> serde::Deserialize<'de> for LabelValue<'a> 132 where 133 'de: 'a, ··· 140 Ok(Self::from(s)) 141 } 142 } 143 + 144 ///Declares a label value and its expected interpretations and behaviors. 145 #[jacquard_derive::lexicon] 146 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 147 #[serde(rename_all = "camelCase")] 148 pub struct LabelValueDefinition<'a> { 149 + ///Does the user need to have adult content enabled in order to configure this label? 150 #[serde(skip_serializing_if = "std::option::Option::is_none")] 151 pub adult_only: std::option::Option<bool>, 152 + ///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. 153 #[serde(borrow)] 154 pub blurs: jacquard_common::CowStr<'a>, 155 + ///The default setting for this label. 156 #[serde(skip_serializing_if = "std::option::Option::is_none")] 157 #[serde(borrow)] 158 pub default_setting: std::option::Option<jacquard_common::CowStr<'a>>, 159 + ///The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). 160 #[serde(borrow)] 161 pub identifier: jacquard_common::CowStr<'a>, 162 #[serde(borrow)] 163 + pub locales: Vec<crate::com_atproto::label::LabelValueDefinitionStrings<'a>>, 164 + ///How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. 165 #[serde(borrow)] 166 pub severity: jacquard_common::CowStr<'a>, 167 } 168 + 169 ///Strings which describe the label in the UI, localized into a specific language. 170 #[jacquard_derive::lexicon] 171 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 172 #[serde(rename_all = "camelCase")] 173 pub struct LabelValueDefinitionStrings<'a> { 174 + ///A longer description of what the label means and why it might be applied. 175 #[serde(borrow)] 176 pub description: jacquard_common::CowStr<'a>, 177 + ///The code of the language these strings are written in. 178 pub lang: jacquard_common::types::string::Language, 179 + ///A short human-readable name for the label. 180 #[serde(borrow)] 181 pub name: jacquard_common::CowStr<'a>, 182 } 183 + 184 ///Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. 185 #[jacquard_derive::lexicon] 186 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 187 #[serde(rename_all = "camelCase")] 188 pub struct SelfLabel<'a> { 189 + ///The short string name of the value or type of this label. 190 #[serde(borrow)] 191 pub val: jacquard_common::CowStr<'a>, 192 } 193 + 194 ///Metadata tags on an atproto record, published by the author within the record. 195 #[jacquard_derive::lexicon] 196 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 197 #[serde(rename_all = "camelCase")] 198 pub struct SelfLabels<'a> { 199 #[serde(borrow)] 200 + pub values: Vec<crate::com_atproto::label::SelfLabel<'a>>, 201 + }
+7 -1
crates/jacquard-api/src/com_atproto/label/query_labels.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct QueryLabelsParams<'a> { ··· 12 #[serde(borrow)] 13 pub uri_patterns: Vec<jacquard_common::CowStr<'a>>, 14 } 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 21 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 22 #[serde(borrow)] 23 pub labels: Vec<crate::com_atproto::label::Label<'a>>, 24 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct QueryLabelsParams<'a> { ··· 17 #[serde(borrow)] 18 pub uri_patterns: Vec<jacquard_common::CowStr<'a>>, 19 } 20 + 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] ··· 27 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 28 #[serde(borrow)] 29 pub labels: Vec<crate::com_atproto::label::Label<'a>>, 30 + }
+12 -2
crates/jacquard-api/src/com_atproto/label/subscribe_labels.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 #[serde(borrow)] 9 pub name: jacquard_common::CowStr<'a>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] ··· 16 pub labels: Vec<crate::com_atproto::label::Label<'a>>, 17 pub seq: i64, 18 } 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] 21 pub struct SubscribeLabelsParams { 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 pub cursor: std::option::Option<i64>, 24 } 25 #[jacquard_derive::open_union] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(tag = "$type")] ··· 32 #[serde(rename = "#info")] 33 Info(Box<jacquard_common::types::value::Data<'a>>), 34 } 35 #[jacquard_derive::open_union] 36 #[derive( 37 serde::Serialize, ··· 49 #[serde(rename = "FutureCursor")] 50 FutureCursor(std::option::Option<String>), 51 } 52 impl std::fmt::Display for SubscribeLabelsError<'_> { 53 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 54 match self { ··· 59 } 60 Ok(()) 61 } 62 - Self::Unknown(_) => write!(f, "Unknown error"), 63 } 64 } 65 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 13 #[serde(borrow)] 14 pub name: jacquard_common::CowStr<'a>, 15 } 16 + 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] ··· 22 pub labels: Vec<crate::com_atproto::label::Label<'a>>, 23 pub seq: i64, 24 } 25 + 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] 28 pub struct SubscribeLabelsParams { 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 pub cursor: std::option::Option<i64>, 31 } 32 + 33 #[jacquard_derive::open_union] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 #[serde(tag = "$type")] ··· 40 #[serde(rename = "#info")] 41 Info(Box<jacquard_common::types::value::Data<'a>>), 42 } 43 + 44 #[jacquard_derive::open_union] 45 #[derive( 46 serde::Serialize, ··· 58 #[serde(rename = "FutureCursor")] 59 FutureCursor(std::option::Option<String>), 60 } 61 + 62 impl std::fmt::Display for SubscribeLabelsError<'_> { 63 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 64 match self { ··· 69 } 70 Ok(()) 71 } 72 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 73 } 74 } 75 + }
+6 -1
crates/jacquard-api/src/com_atproto/lexicon.rs
··· 1 - pub mod schema;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod schema;
+7 -1
crates/jacquard-api/src/com_atproto/lexicon/schema.rs
··· 1 ///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). 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Schema<'a> { 6 pub lexicon: i64, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///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). 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Schema<'a> { 11 + ///Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. 12 pub lexicon: i64, 13 + }
+21 -2
crates/jacquard-api/src/com_atproto/moderation.rs
··· 1 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 2 pub enum ReasonType<'a> { 3 ComAtprotoModerationDefsReasonSpam, ··· 54 ToolsOzoneReportDefsReasonCivicImpersonation, 55 Other(jacquard_common::CowStr<'a>), 56 } 57 impl<'a> ReasonType<'a> { 58 pub fn as_str(&self) -> &str { 59 match self { ··· 217 } 218 } 219 } 220 impl<'a> From<&'a str> for ReasonType<'a> { 221 fn from(s: &'a str) -> Self { 222 match s { ··· 380 } 381 } 382 } 383 impl<'a> From<String> for ReasonType<'a> { 384 fn from(s: String) -> Self { 385 match s.as_str() { ··· 543 } 544 } 545 } 546 impl<'a> AsRef<str> for ReasonType<'a> { 547 fn as_ref(&self) -> &str { 548 self.as_str() 549 } 550 } 551 impl<'a> serde::Serialize for ReasonType<'a> { 552 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 553 where ··· 556 serializer.serialize_str(self.as_str()) 557 } 558 } 559 impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a> 560 where 561 'de: 'a, ··· 568 Ok(Self::from(s)) 569 } 570 } 571 ///Tag describing a type of subject that might be reported. 572 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 573 pub enum SubjectType<'a> { ··· 576 Chat, 577 Other(jacquard_common::CowStr<'a>), 578 } 579 impl<'a> SubjectType<'a> { 580 pub fn as_str(&self) -> &str { 581 match self { ··· 586 } 587 } 588 } 589 impl<'a> From<&'a str> for SubjectType<'a> { 590 fn from(s: &'a str) -> Self { 591 match s { ··· 596 } 597 } 598 } 599 impl<'a> From<String> for SubjectType<'a> { 600 fn from(s: String) -> Self { 601 match s.as_str() { ··· 606 } 607 } 608 } 609 impl<'a> AsRef<str> for SubjectType<'a> { 610 fn as_ref(&self) -> &str { 611 self.as_str() 612 } 613 } 614 impl<'a> serde::Serialize for SubjectType<'a> { 615 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 616 where ··· 619 serializer.serialize_str(self.as_str()) 620 } 621 } 622 impl<'de, 'a> serde::Deserialize<'de> for SubjectType<'a> 623 where 624 'de: 'a, ··· 630 let s = <&'de str>::deserialize(deserializer)?; 631 Ok(Self::from(s)) 632 } 633 - } 634 - pub mod create_report;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod create_report; 7 + 8 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 9 pub enum ReasonType<'a> { 10 ComAtprotoModerationDefsReasonSpam, ··· 61 ToolsOzoneReportDefsReasonCivicImpersonation, 62 Other(jacquard_common::CowStr<'a>), 63 } 64 + 65 impl<'a> ReasonType<'a> { 66 pub fn as_str(&self) -> &str { 67 match self { ··· 225 } 226 } 227 } 228 + 229 impl<'a> From<&'a str> for ReasonType<'a> { 230 fn from(s: &'a str) -> Self { 231 match s { ··· 389 } 390 } 391 } 392 + 393 impl<'a> From<String> for ReasonType<'a> { 394 fn from(s: String) -> Self { 395 match s.as_str() { ··· 553 } 554 } 555 } 556 + 557 impl<'a> AsRef<str> for ReasonType<'a> { 558 fn as_ref(&self) -> &str { 559 self.as_str() 560 } 561 } 562 + 563 impl<'a> serde::Serialize for ReasonType<'a> { 564 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 565 where ··· 568 serializer.serialize_str(self.as_str()) 569 } 570 } 571 + 572 impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a> 573 where 574 'de: 'a, ··· 581 Ok(Self::from(s)) 582 } 583 } 584 + 585 ///Tag describing a type of subject that might be reported. 586 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 587 pub enum SubjectType<'a> { ··· 590 Chat, 591 Other(jacquard_common::CowStr<'a>), 592 } 593 + 594 impl<'a> SubjectType<'a> { 595 pub fn as_str(&self) -> &str { 596 match self { ··· 601 } 602 } 603 } 604 + 605 impl<'a> From<&'a str> for SubjectType<'a> { 606 fn from(s: &'a str) -> Self { 607 match s { ··· 612 } 613 } 614 } 615 + 616 impl<'a> From<String> for SubjectType<'a> { 617 fn from(s: String) -> Self { 618 match s.as_str() { ··· 623 } 624 } 625 } 626 + 627 impl<'a> AsRef<str> for SubjectType<'a> { 628 fn as_ref(&self) -> &str { 629 self.as_str() 630 } 631 } 632 + 633 impl<'a> serde::Serialize for SubjectType<'a> { 634 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 635 where ··· 638 serializer.serialize_str(self.as_str()) 639 } 640 } 641 + 642 impl<'de, 'a> serde::Deserialize<'de> for SubjectType<'a> 643 where 644 'de: 'a, ··· 650 let s = <&'de str>::deserialize(deserializer)?; 651 Ok(Self::from(s)) 652 } 653 + }
+14 -1
crates/jacquard-api/src/com_atproto/moderation/create_report.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub reason: std::option::Option<jacquard_common::CowStr<'a>>, 11 #[serde(borrow)] 12 pub reason_type: crate::com_atproto::moderation::ReasonType<'a>, 13 #[serde(borrow)] 14 pub subject: CreateReportInputRecordSubject<'a>, 15 } 16 #[jacquard_derive::open_union] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(tag = "$type")] ··· 23 #[serde(rename = "com.atproto.repo.strongRef")] 24 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 25 } 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] ··· 39 #[serde(borrow)] 40 pub subject: CreateReportOutputRecordSubject<'a>, 41 } 42 #[jacquard_derive::open_union] 43 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 44 #[serde(tag = "$type")] ··· 49 #[serde(rename = "com.atproto.repo.strongRef")] 50 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 51 } 52 ///Moderation tool information for tracing the source of the action 53 #[jacquard_derive::lexicon] 54 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 55 #[serde(rename_all = "camelCase")] 56 pub struct ModTool<'a> { 57 #[serde(skip_serializing_if = "std::option::Option::is_none")] 58 #[serde(borrow)] 59 pub meta: std::option::Option<jacquard_common::types::value::Data<'a>>, 60 #[serde(borrow)] 61 pub name: jacquard_common::CowStr<'a>, 62 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 #[serde(borrow)] 12 pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>, 13 + ///Additional context about the content and violation. 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub reason: std::option::Option<jacquard_common::CowStr<'a>>, 17 + ///Indicates the broad category of violation the report is for. 18 #[serde(borrow)] 19 pub reason_type: crate::com_atproto::moderation::ReasonType<'a>, 20 #[serde(borrow)] 21 pub subject: CreateReportInputRecordSubject<'a>, 22 } 23 + 24 #[jacquard_derive::open_union] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(tag = "$type")] ··· 31 #[serde(rename = "com.atproto.repo.strongRef")] 32 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 33 } 34 + 35 #[jacquard_derive::lexicon] 36 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 37 #[serde(rename_all = "camelCase")] ··· 48 #[serde(borrow)] 49 pub subject: CreateReportOutputRecordSubject<'a>, 50 } 51 + 52 #[jacquard_derive::open_union] 53 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 54 #[serde(tag = "$type")] ··· 59 #[serde(rename = "com.atproto.repo.strongRef")] 60 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 61 } 62 + 63 ///Moderation tool information for tracing the source of the action 64 #[jacquard_derive::lexicon] 65 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 66 #[serde(rename_all = "camelCase")] 67 pub struct ModTool<'a> { 68 + ///Additional arbitrary metadata about the source 69 #[serde(skip_serializing_if = "std::option::Option::is_none")] 70 #[serde(borrow)] 71 pub meta: std::option::Option<jacquard_common::types::value::Data<'a>>, 72 + ///Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome') 73 #[serde(borrow)] 74 pub name: jacquard_common::CowStr<'a>, 75 + }
+14 -8
crates/jacquard-api/src/com_atproto/repo.rs
··· 1 - #[jacquard_derive::lexicon] 2 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 - #[serde(rename_all = "camelCase")] 4 - pub struct CommitMeta<'a> { 5 - #[serde(borrow)] 6 - pub cid: jacquard_common::types::string::Cid<'a>, 7 - pub rev: jacquard_common::types::string::Tid, 8 - } 9 pub mod apply_writes; 10 pub mod create_record; 11 pub mod delete_record; ··· 17 pub mod put_record; 18 pub mod strong_ref; 19 pub mod upload_blob;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod apply_writes; 7 pub mod create_record; 8 pub mod delete_record; ··· 14 pub mod put_record; 15 pub mod strong_ref; 16 pub mod upload_blob; 17 + 18 + #[jacquard_derive::lexicon] 19 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 + #[serde(rename_all = "camelCase")] 21 + pub struct CommitMeta<'a> { 22 + #[serde(borrow)] 23 + pub cid: jacquard_common::types::string::Cid<'a>, 24 + pub rev: jacquard_common::types::string::Tid, 25 + }
+19 -2
crates/jacquard-api/src/com_atproto/repo/apply_writes.rs
··· 1 ///Operation which creates a new record. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 5 pub struct Create<'a> { 6 #[serde(borrow)] 7 pub collection: jacquard_common::types::string::Nsid<'a>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub rkey: std::option::Option< ··· 15 #[serde(borrow)] 16 pub value: jacquard_common::types::value::Data<'a>, 17 } 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 27 #[serde(borrow)] 28 pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>, 29 } 30 ///Operation which deletes an existing record. 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 39 jacquard_common::types::string::Rkey<'a>, 40 >, 41 } 42 #[jacquard_derive::lexicon] 43 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 44 #[serde(rename_all = "camelCase")] ··· 47 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 48 #[serde(rename_all = "camelCase")] 49 pub struct ApplyWritesInput<'a> { 50 #[serde(borrow)] 51 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 52 #[serde(skip_serializing_if = "std::option::Option::is_none")] 53 #[serde(borrow)] 54 pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>, 55 #[serde(skip_serializing_if = "std::option::Option::is_none")] 56 pub validate: std::option::Option<bool>, 57 #[serde(borrow)] 58 pub writes: Vec<jacquard_common::types::value::Data<'a>>, 59 } 60 #[jacquard_derive::lexicon] 61 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 62 #[serde(rename_all = "camelCase")] ··· 68 #[serde(borrow)] 69 pub results: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 70 } 71 #[jacquard_derive::open_union] 72 #[derive( 73 serde::Serialize, ··· 86 #[serde(rename = "InvalidSwap")] 87 InvalidSwap(std::option::Option<String>), 88 } 89 impl std::fmt::Display for ApplyWritesError<'_> { 90 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 91 match self { ··· 96 } 97 Ok(()) 98 } 99 - Self::Unknown(_) => write!(f, "Unknown error"), 100 } 101 } 102 } 103 ///Operation which updates an existing record. 104 #[jacquard_derive::lexicon] 105 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 114 #[serde(borrow)] 115 pub value: jacquard_common::types::value::Data<'a>, 116 } 117 #[jacquard_derive::lexicon] 118 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 119 #[serde(rename_all = "camelCase")] ··· 125 #[serde(skip_serializing_if = "std::option::Option::is_none")] 126 #[serde(borrow)] 127 pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>, 128 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Operation which creates a new record. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 10 pub struct Create<'a> { 11 #[serde(borrow)] 12 pub collection: jacquard_common::types::string::Nsid<'a>, 13 + ///NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub rkey: std::option::Option< ··· 21 #[serde(borrow)] 22 pub value: jacquard_common::types::value::Data<'a>, 23 } 24 + 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] ··· 34 #[serde(borrow)] 35 pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>, 36 } 37 + 38 ///Operation which deletes an existing record. 39 #[jacquard_derive::lexicon] 40 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 47 jacquard_common::types::string::Rkey<'a>, 48 >, 49 } 50 + 51 #[jacquard_derive::lexicon] 52 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 53 #[serde(rename_all = "camelCase")] ··· 56 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 57 #[serde(rename_all = "camelCase")] 58 pub struct ApplyWritesInput<'a> { 59 + ///The handle or DID of the repo (aka, current account). 60 #[serde(borrow)] 61 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 62 + ///If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. 63 #[serde(skip_serializing_if = "std::option::Option::is_none")] 64 #[serde(borrow)] 65 pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>, 66 + ///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. 67 #[serde(skip_serializing_if = "std::option::Option::is_none")] 68 pub validate: std::option::Option<bool>, 69 #[serde(borrow)] 70 pub writes: Vec<jacquard_common::types::value::Data<'a>>, 71 } 72 + 73 #[jacquard_derive::lexicon] 74 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 75 #[serde(rename_all = "camelCase")] ··· 81 #[serde(borrow)] 82 pub results: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 83 } 84 + 85 #[jacquard_derive::open_union] 86 #[derive( 87 serde::Serialize, ··· 100 #[serde(rename = "InvalidSwap")] 101 InvalidSwap(std::option::Option<String>), 102 } 103 + 104 impl std::fmt::Display for ApplyWritesError<'_> { 105 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 106 match self { ··· 111 } 112 Ok(()) 113 } 114 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 115 } 116 } 117 } 118 + 119 ///Operation which updates an existing record. 120 #[jacquard_derive::lexicon] 121 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 130 #[serde(borrow)] 131 pub value: jacquard_common::types::value::Data<'a>, 132 } 133 + 134 #[jacquard_derive::lexicon] 135 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 136 #[serde(rename_all = "camelCase")] ··· 142 #[serde(skip_serializing_if = "std::option::Option::is_none")] 143 #[serde(borrow)] 144 pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>, 145 + }
+16 -2
crates/jacquard-api/src/com_atproto/repo/create_record.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct CreateRecordInput<'a> { 5 #[serde(borrow)] 6 pub collection: jacquard_common::types::string::Nsid<'a>, 7 #[serde(borrow)] 8 pub record: jacquard_common::types::value::Data<'a>, 9 #[serde(borrow)] 10 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub rkey: std::option::Option< ··· 15 jacquard_common::types::string::Rkey<'a>, 16 >, 17 >, 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>, 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 pub validate: std::option::Option<bool>, 23 } 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 36 #[serde(borrow)] 37 pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>, 38 } 39 #[jacquard_derive::open_union] 40 #[derive( 41 serde::Serialize, ··· 54 #[serde(rename = "InvalidSwap")] 55 InvalidSwap(std::option::Option<String>), 56 } 57 impl std::fmt::Display for CreateRecordError<'_> { 58 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 59 match self { ··· 64 } 65 Ok(()) 66 } 67 - Self::Unknown(_) => write!(f, "Unknown error"), 68 } 69 } 70 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct CreateRecordInput<'a> { 10 + ///The NSID of the record collection. 11 #[serde(borrow)] 12 pub collection: jacquard_common::types::string::Nsid<'a>, 13 + ///The record itself. Must contain a $type field. 14 #[serde(borrow)] 15 pub record: jacquard_common::types::value::Data<'a>, 16 + ///The handle or DID of the repo (aka, current account). 17 #[serde(borrow)] 18 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 19 + ///The Record Key. 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 21 #[serde(borrow)] 22 pub rkey: std::option::Option< ··· 24 jacquard_common::types::string::Rkey<'a>, 25 >, 26 >, 27 + ///Compare and swap with the previous commit by CID. 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>, 31 + ///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. 32 #[serde(skip_serializing_if = "std::option::Option::is_none")] 33 pub validate: std::option::Option<bool>, 34 } 35 + 36 #[jacquard_derive::lexicon] 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 38 #[serde(rename_all = "camelCase")] ··· 48 #[serde(borrow)] 49 pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>, 50 } 51 + 52 #[jacquard_derive::open_union] 53 #[derive( 54 serde::Serialize, ··· 67 #[serde(rename = "InvalidSwap")] 68 InvalidSwap(std::option::Option<String>), 69 } 70 + 71 impl std::fmt::Display for CreateRecordError<'_> { 72 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 73 match self { ··· 78 } 79 Ok(()) 80 } 81 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 82 } 83 } 84 + }
+15 -2
crates/jacquard-api/src/com_atproto/repo/delete_record.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct DeleteRecordInput<'a> { 5 #[serde(borrow)] 6 pub collection: jacquard_common::types::string::Nsid<'a>, 7 #[serde(borrow)] 8 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 9 #[serde(borrow)] 10 pub rkey: jacquard_common::types::string::RecordKey< 11 jacquard_common::types::string::Rkey<'a>, 12 >, 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>, 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub swap_record: std::option::Option<jacquard_common::types::string::Cid<'a>>, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub commit: std::option::Option<crate::com_atproto::repo::CommitMeta<'a>>, 27 } 28 #[jacquard_derive::open_union] 29 #[derive( 30 serde::Serialize, ··· 42 #[serde(rename = "InvalidSwap")] 43 InvalidSwap(std::option::Option<String>), 44 } 45 impl std::fmt::Display for DeleteRecordError<'_> { 46 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 47 match self { ··· 52 } 53 Ok(()) 54 } 55 - Self::Unknown(_) => write!(f, "Unknown error"), 56 } 57 } 58 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct DeleteRecordInput<'a> { 10 + ///The NSID of the record collection. 11 #[serde(borrow)] 12 pub collection: jacquard_common::types::string::Nsid<'a>, 13 + ///The handle or DID of the repo (aka, current account). 14 #[serde(borrow)] 15 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 16 + ///The Record Key. 17 #[serde(borrow)] 18 pub rkey: jacquard_common::types::string::RecordKey< 19 jacquard_common::types::string::Rkey<'a>, 20 >, 21 + ///Compare and swap with the previous commit by CID. 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>, 25 + ///Compare and swap with the previous record by CID. 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 #[serde(borrow)] 28 pub swap_record: std::option::Option<jacquard_common::types::string::Cid<'a>>, 29 } 30 + 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(rename_all = "camelCase")] ··· 36 #[serde(borrow)] 37 pub commit: std::option::Option<crate::com_atproto::repo::CommitMeta<'a>>, 38 } 39 + 40 #[jacquard_derive::open_union] 41 #[derive( 42 serde::Serialize, ··· 54 #[serde(rename = "InvalidSwap")] 55 InvalidSwap(std::option::Option<String>), 56 } 57 + 58 impl std::fmt::Display for DeleteRecordError<'_> { 59 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 60 match self { ··· 65 } 66 Ok(()) 67 } 68 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 69 } 70 } 71 + }
+10 -1
crates/jacquard-api/src/com_atproto/repo/describe_repo.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct DescribeRepoParams<'a> { 4 #[serde(borrow)] 5 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct DescribeRepoOutput<'a> { 11 #[serde(borrow)] 12 pub collections: Vec<jacquard_common::types::string::Nsid<'a>>, 13 #[serde(borrow)] 14 pub did: jacquard_common::types::string::Did<'a>, 15 #[serde(borrow)] 16 pub did_doc: jacquard_common::types::value::Data<'a>, 17 #[serde(borrow)] 18 pub handle: jacquard_common::types::string::Handle<'a>, 19 pub handle_is_correct: bool, 20 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct DescribeRepoParams<'a> { 9 #[serde(borrow)] 10 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct DescribeRepoOutput<'a> { 17 + ///List of all the collections (NSIDs) for which this repo contains at least one record. 18 #[serde(borrow)] 19 pub collections: Vec<jacquard_common::types::string::Nsid<'a>>, 20 #[serde(borrow)] 21 pub did: jacquard_common::types::string::Did<'a>, 22 + ///The complete DID document for this account. 23 #[serde(borrow)] 24 pub did_doc: jacquard_common::types::value::Data<'a>, 25 #[serde(borrow)] 26 pub handle: jacquard_common::types::string::Handle<'a>, 27 + ///Indicates if handle is currently valid (resolves bi-directionally) 28 pub handle_is_correct: bool, 29 + }
+10 -2
crates/jacquard-api/src/com_atproto/repo/get_record.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRecordParams<'a> { ··· 13 jacquard_common::types::string::Rkey<'a>, 14 >, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub value: jacquard_common::types::value::Data<'a>, 27 } 28 #[jacquard_derive::open_union] 29 #[derive( 30 serde::Serialize, ··· 42 #[serde(rename = "RecordNotFound")] 43 RecordNotFound(std::option::Option<String>), 44 } 45 impl std::fmt::Display for GetRecordError<'_> { 46 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 47 match self { ··· 52 } 53 Ok(()) 54 } 55 - Self::Unknown(_) => write!(f, "Unknown error"), 56 } 57 } 58 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRecordParams<'a> { ··· 18 jacquard_common::types::string::Rkey<'a>, 19 >, 20 } 21 + 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 31 #[serde(borrow)] 32 pub value: jacquard_common::types::value::Data<'a>, 33 } 34 + 35 #[jacquard_derive::open_union] 36 #[derive( 37 serde::Serialize, ··· 49 #[serde(rename = "RecordNotFound")] 50 RecordNotFound(std::option::Option<String>), 51 } 52 + 53 impl std::fmt::Display for GetRecordError<'_> { 54 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 55 match self { ··· 60 } 61 Ok(()) 62 } 63 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 64 } 65 } 66 + }
+6 -1
crates/jacquard-api/src/com_atproto/repo/import_repo.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 - pub struct ImportRepoInput<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 + pub struct ImportRepoInput<'a> {}
+8 -1
crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListMissingBlobsParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 17 #[serde(borrow)] 18 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] ··· 25 pub cid: jacquard_common::types::string::Cid<'a>, 26 #[serde(borrow)] 27 pub record_uri: jacquard_common::types::string::AtUri<'a>, 28 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListMissingBlobsParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 23 #[serde(borrow)] 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 } 26 + 27 #[jacquard_derive::lexicon] 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 29 #[serde(rename_all = "camelCase")] ··· 32 pub cid: jacquard_common::types::string::Cid<'a>, 33 #[serde(borrow)] 34 pub record_uri: jacquard_common::types::string::AtUri<'a>, 35 + }
+8 -1
crates/jacquard-api/src/com_atproto/repo/list_records.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListRecordsParams<'a> { ··· 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 pub reverse: std::option::Option<bool>, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 23 #[serde(borrow)] 24 pub records: Vec<jacquard_common::types::value::Data<'a>>, 25 } 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] ··· 33 pub uri: jacquard_common::types::string::AtUri<'a>, 34 #[serde(borrow)] 35 pub value: jacquard_common::types::value::Data<'a>, 36 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListRecordsParams<'a> { ··· 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 pub reverse: std::option::Option<bool>, 20 } 21 + 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 29 #[serde(borrow)] 30 pub records: Vec<jacquard_common::types::value::Data<'a>>, 31 } 32 + 33 #[jacquard_derive::lexicon] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 #[serde(rename_all = "camelCase")] ··· 40 pub uri: jacquard_common::types::string::AtUri<'a>, 41 #[serde(borrow)] 42 pub value: jacquard_common::types::value::Data<'a>, 43 + }
+17 -2
crates/jacquard-api/src/com_atproto/repo/put_record.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct PutRecordInput<'a> { 5 #[serde(borrow)] 6 pub collection: jacquard_common::types::string::Nsid<'a>, 7 #[serde(borrow)] 8 pub record: jacquard_common::types::value::Data<'a>, 9 #[serde(borrow)] 10 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 11 #[serde(borrow)] 12 pub rkey: jacquard_common::types::string::RecordKey< 13 jacquard_common::types::string::Rkey<'a>, 14 >, 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 #[serde(borrow)] 17 pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>, 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub swap_record: std::option::Option<jacquard_common::types::string::Cid<'a>>, 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 pub validate: std::option::Option<bool>, 23 } 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 36 #[serde(borrow)] 37 pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>, 38 } 39 #[jacquard_derive::open_union] 40 #[derive( 41 serde::Serialize, ··· 53 #[serde(rename = "InvalidSwap")] 54 InvalidSwap(std::option::Option<String>), 55 } 56 impl std::fmt::Display for PutRecordError<'_> { 57 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 58 match self { ··· 63 } 64 Ok(()) 65 } 66 - Self::Unknown(_) => write!(f, "Unknown error"), 67 } 68 } 69 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct PutRecordInput<'a> { 10 + ///The NSID of the record collection. 11 #[serde(borrow)] 12 pub collection: jacquard_common::types::string::Nsid<'a>, 13 + ///The record to write. 14 #[serde(borrow)] 15 pub record: jacquard_common::types::value::Data<'a>, 16 + ///The handle or DID of the repo (aka, current account). 17 #[serde(borrow)] 18 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 19 + ///The Record Key. 20 #[serde(borrow)] 21 pub rkey: jacquard_common::types::string::RecordKey< 22 jacquard_common::types::string::Rkey<'a>, 23 >, 24 + ///Compare and swap with the previous commit by CID. 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub swap_commit: std::option::Option<jacquard_common::types::string::Cid<'a>>, 28 + ///Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 #[serde(borrow)] 31 pub swap_record: std::option::Option<jacquard_common::types::string::Cid<'a>>, 32 + ///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. 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 pub validate: std::option::Option<bool>, 35 } 36 + 37 #[jacquard_derive::lexicon] 38 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 39 #[serde(rename_all = "camelCase")] ··· 49 #[serde(borrow)] 50 pub validation_status: std::option::Option<jacquard_common::CowStr<'a>>, 51 } 52 + 53 #[jacquard_derive::open_union] 54 #[derive( 55 serde::Serialize, ··· 67 #[serde(rename = "InvalidSwap")] 68 InvalidSwap(std::option::Option<String>), 69 } 70 + 71 impl std::fmt::Display for PutRecordError<'_> { 72 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 73 match self { ··· 78 } 79 Ok(()) 80 } 81 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 82 } 83 } 84 + }
+6 -1
crates/jacquard-api/src/com_atproto/repo/strong_ref.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 pub cid: jacquard_common::types::string::Cid<'a>, 7 #[serde(borrow)] 8 pub uri: jacquard_common::types::string::AtUri<'a>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 pub cid: jacquard_common::types::string::Cid<'a>, 12 #[serde(borrow)] 13 pub uri: jacquard_common::types::string::AtUri<'a>, 14 + }
+6 -1
crates/jacquard-api/src/com_atproto/repo/upload_blob.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 pub struct UploadBlobOutput<'a> { 9 #[serde(borrow)] 10 pub blob: jacquard_common::types::blob::Blob<'a>, 11 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 13 pub struct UploadBlobOutput<'a> { 14 #[serde(borrow)] 15 pub blob: jacquard_common::types::blob::Blob<'a>, 16 + }
+31 -24
crates/jacquard-api/src/com_atproto/server.rs
··· 1 - #[jacquard_derive::lexicon] 2 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 - #[serde(rename_all = "camelCase")] 4 - pub struct InviteCode<'a> { 5 - pub available: i64, 6 - #[serde(borrow)] 7 - pub code: jacquard_common::CowStr<'a>, 8 - pub created_at: jacquard_common::types::string::Datetime, 9 - #[serde(borrow)] 10 - pub created_by: jacquard_common::CowStr<'a>, 11 - pub disabled: bool, 12 - #[serde(borrow)] 13 - pub for_account: jacquard_common::CowStr<'a>, 14 - #[serde(borrow)] 15 - pub uses: Vec<jacquard_common::types::value::Data<'a>>, 16 - } 17 - #[jacquard_derive::lexicon] 18 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 - #[serde(rename_all = "camelCase")] 20 - pub struct InviteCodeUse<'a> { 21 - pub used_at: jacquard_common::types::string::Datetime, 22 - #[serde(borrow)] 23 - pub used_by: jacquard_common::types::string::Did<'a>, 24 - } 25 pub mod activate_account; 26 pub mod check_account_status; 27 pub mod confirm_email; ··· 47 pub mod reset_password; 48 pub mod revoke_app_password; 49 pub mod update_email;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod activate_account; 7 pub mod check_account_status; 8 pub mod confirm_email; ··· 28 pub mod reset_password; 29 pub mod revoke_app_password; 30 pub mod update_email; 31 + 32 + #[jacquard_derive::lexicon] 33 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 34 + #[serde(rename_all = "camelCase")] 35 + pub struct InviteCode<'a> { 36 + pub available: i64, 37 + #[serde(borrow)] 38 + pub code: jacquard_common::CowStr<'a>, 39 + pub created_at: jacquard_common::types::string::Datetime, 40 + #[serde(borrow)] 41 + pub created_by: jacquard_common::CowStr<'a>, 42 + pub disabled: bool, 43 + #[serde(borrow)] 44 + pub for_account: jacquard_common::CowStr<'a>, 45 + #[serde(borrow)] 46 + pub uses: Vec<crate::com_atproto::server::InviteCodeUse<'a>>, 47 + } 48 + 49 + #[jacquard_derive::lexicon] 50 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 51 + #[serde(rename_all = "camelCase")] 52 + pub struct InviteCodeUse<'a> { 53 + pub used_at: jacquard_common::types::string::Datetime, 54 + #[serde(borrow)] 55 + pub used_by: jacquard_common::types::string::Did<'a>, 56 + }
+5
crates/jacquard-api/src/com_atproto/server/activate_account.rs
···
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 +
+6 -1
crates/jacquard-api/src/com_atproto/server/check_account_status.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 13 #[serde(borrow)] 14 pub repo_rev: jacquard_common::CowStr<'a>, 15 pub valid_did: bool, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 18 #[serde(borrow)] 19 pub repo_rev: jacquard_common::CowStr<'a>, 20 pub valid_did: bool, 21 + }
+9 -2
crates/jacquard-api/src/com_atproto/server/confirm_email.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub token: jacquard_common::CowStr<'a>, 9 } 10 #[jacquard_derive::open_union] 11 #[derive( 12 serde::Serialize, ··· 30 #[serde(rename = "InvalidEmail")] 31 InvalidEmail(std::option::Option<String>), 32 } 33 impl std::fmt::Display for ConfirmEmailError<'_> { 34 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 35 match self { ··· 61 } 62 Ok(()) 63 } 64 - Self::Unknown(_) => write!(f, "Unknown error"), 65 } 66 } 67 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub token: jacquard_common::CowStr<'a>, 14 } 15 + 16 #[jacquard_derive::open_union] 17 #[derive( 18 serde::Serialize, ··· 36 #[serde(rename = "InvalidEmail")] 37 InvalidEmail(std::option::Option<String>), 38 } 39 + 40 impl std::fmt::Display for ConfirmEmailError<'_> { 41 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 42 match self { ··· 68 } 69 Ok(()) 70 } 71 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 72 } 73 } 74 + }
+17 -2
crates/jacquard-api/src/com_atproto/server/create_account.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct CreateAccountInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub did: std::option::Option<jacquard_common::types::string::Did<'a>>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub email: std::option::Option<jacquard_common::CowStr<'a>>, 11 #[serde(borrow)] 12 pub handle: jacquard_common::types::string::Handle<'a>, 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub invite_code: std::option::Option<jacquard_common::CowStr<'a>>, 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub password: std::option::Option<jacquard_common::CowStr<'a>>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub plc_op: std::option::Option<jacquard_common::types::value::Data<'a>>, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub recovery_key: std::option::Option<jacquard_common::CowStr<'a>>, ··· 29 #[serde(borrow)] 30 pub verification_phone: std::option::Option<jacquard_common::CowStr<'a>>, 31 } 32 #[jacquard_derive::lexicon] 33 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 34 #[serde(rename_all = "camelCase")] 35 pub struct CreateAccountOutput<'a> { 36 #[serde(borrow)] 37 pub access_jwt: jacquard_common::CowStr<'a>, 38 #[serde(borrow)] 39 pub did: jacquard_common::types::string::Did<'a>, 40 #[serde(skip_serializing_if = "std::option::Option::is_none")] 41 #[serde(borrow)] 42 pub did_doc: std::option::Option<jacquard_common::types::value::Data<'a>>, ··· 45 #[serde(borrow)] 46 pub refresh_jwt: jacquard_common::CowStr<'a>, 47 } 48 #[jacquard_derive::open_union] 49 #[derive( 50 serde::Serialize, ··· 74 #[serde(rename = "IncompatibleDidDoc")] 75 IncompatibleDidDoc(std::option::Option<String>), 76 } 77 impl std::fmt::Display for CreateAccountError<'_> { 78 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 79 match self { ··· 126 } 127 Ok(()) 128 } 129 - Self::Unknown(_) => write!(f, "Unknown error"), 130 } 131 } 132 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct CreateAccountInput<'a> { 10 + ///Pre-existing atproto DID, being imported to a new account. 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub did: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub email: std::option::Option<jacquard_common::CowStr<'a>>, 17 + ///Requested handle for the account. 18 #[serde(borrow)] 19 pub handle: jacquard_common::types::string::Handle<'a>, 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 21 #[serde(borrow)] 22 pub invite_code: std::option::Option<jacquard_common::CowStr<'a>>, 23 + ///Initial account password. May need to meet instance-specific password strength requirements. 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub password: std::option::Option<jacquard_common::CowStr<'a>>, 27 + ///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. 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub plc_op: std::option::Option<jacquard_common::types::value::Data<'a>>, 31 + ///DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. 32 #[serde(skip_serializing_if = "std::option::Option::is_none")] 33 #[serde(borrow)] 34 pub recovery_key: std::option::Option<jacquard_common::CowStr<'a>>, ··· 39 #[serde(borrow)] 40 pub verification_phone: std::option::Option<jacquard_common::CowStr<'a>>, 41 } 42 + 43 #[jacquard_derive::lexicon] 44 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 45 #[serde(rename_all = "camelCase")] 46 pub struct CreateAccountOutput<'a> { 47 #[serde(borrow)] 48 pub access_jwt: jacquard_common::CowStr<'a>, 49 + ///The DID of the new account. 50 #[serde(borrow)] 51 pub did: jacquard_common::types::string::Did<'a>, 52 + ///Complete DID document. 53 #[serde(skip_serializing_if = "std::option::Option::is_none")] 54 #[serde(borrow)] 55 pub did_doc: std::option::Option<jacquard_common::types::value::Data<'a>>, ··· 58 #[serde(borrow)] 59 pub refresh_jwt: jacquard_common::CowStr<'a>, 60 } 61 + 62 #[jacquard_derive::open_union] 63 #[derive( 64 serde::Serialize, ··· 88 #[serde(rename = "IncompatibleDidDoc")] 89 IncompatibleDidDoc(std::option::Option<String>), 90 } 91 + 92 impl std::fmt::Display for CreateAccountError<'_> { 93 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 94 match self { ··· 141 } 142 Ok(()) 143 } 144 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 145 } 146 } 147 + }
+13 -2
crates/jacquard-api/src/com_atproto/server/create_app_password.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 pub privileged: std::option::Option<bool>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct CreateAppPasswordInput<'a> { 17 #[serde(borrow)] 18 pub name: jacquard_common::CowStr<'a>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 pub privileged: std::option::Option<bool>, 21 } 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 27 #[serde(borrow)] 28 pub value: jacquard_common::types::value::Data<'a>, 29 } 30 #[jacquard_derive::open_union] 31 #[derive( 32 serde::Serialize, ··· 44 #[serde(rename = "AccountTakedown")] 45 AccountTakedown(std::option::Option<String>), 46 } 47 impl std::fmt::Display for CreateAppPasswordError<'_> { 48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 49 match self { ··· 54 } 55 Ok(()) 56 } 57 - Self::Unknown(_) => write!(f, "Unknown error"), 58 } 59 } 60 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 pub privileged: std::option::Option<bool>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] 22 pub struct CreateAppPasswordInput<'a> { 23 + ///A short name for the App Password, to help distinguish them. 24 #[serde(borrow)] 25 pub name: jacquard_common::CowStr<'a>, 26 + ///If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients. 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 pub privileged: std::option::Option<bool>, 29 } 30 + 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(rename_all = "camelCase")] ··· 36 #[serde(borrow)] 37 pub value: jacquard_common::types::value::Data<'a>, 38 } 39 + 40 #[jacquard_derive::open_union] 41 #[derive( 42 serde::Serialize, ··· 54 #[serde(rename = "AccountTakedown")] 55 AccountTakedown(std::option::Option<String>), 56 } 57 + 58 impl std::fmt::Display for CreateAppPasswordError<'_> { 59 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 60 match self { ··· 65 } 66 Ok(()) 67 } 68 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 69 } 70 } 71 + }
+7 -1
crates/jacquard-api/src/com_atproto/server/create_invite_code.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 pub for_account: std::option::Option<jacquard_common::types::string::Did<'a>>, 8 pub use_count: i64, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] 13 pub struct CreateInviteCodeOutput<'a> { 14 #[serde(borrow)] 15 pub code: jacquard_common::CowStr<'a>, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 pub for_account: std::option::Option<jacquard_common::types::string::Did<'a>>, 13 pub use_count: i64, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct CreateInviteCodeOutput<'a> { 20 #[serde(borrow)] 21 pub code: jacquard_common::CowStr<'a>, 22 + }
+8 -1
crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub codes: Vec<jacquard_common::CowStr<'a>>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 17 pub for_accounts: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>, 18 pub use_count: i64, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] 23 pub struct CreateInviteCodesOutput<'a> { 24 #[serde(borrow)] 25 pub codes: Vec<jacquard_common::types::value::Data<'a>>, 26 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub codes: Vec<jacquard_common::CowStr<'a>>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 23 pub for_accounts: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>, 24 pub use_count: i64, 25 } 26 + 27 #[jacquard_derive::lexicon] 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 29 #[serde(rename_all = "camelCase")] 30 pub struct CreateInviteCodesOutput<'a> { 31 #[serde(borrow)] 32 pub codes: Vec<jacquard_common::types::value::Data<'a>>, 33 + }
+13 -2
crates/jacquard-api/src/com_atproto/server/create_session.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct CreateSessionInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 pub allow_takendown: std::option::Option<bool>, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 #[serde(borrow)] 9 pub auth_factor_token: std::option::Option<jacquard_common::CowStr<'a>>, 10 #[serde(borrow)] 11 pub identifier: jacquard_common::CowStr<'a>, 12 #[serde(borrow)] 13 pub password: jacquard_common::CowStr<'a>, 14 } 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 36 pub handle: jacquard_common::types::string::Handle<'a>, 37 #[serde(borrow)] 38 pub refresh_jwt: jacquard_common::CowStr<'a>, 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] 40 #[serde(borrow)] 41 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 42 } 43 #[jacquard_derive::open_union] 44 #[derive( 45 serde::Serialize, ··· 59 #[serde(rename = "AuthFactorTokenRequired")] 60 AuthFactorTokenRequired(std::option::Option<String>), 61 } 62 impl std::fmt::Display for CreateSessionError<'_> { 63 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 64 match self { ··· 76 } 77 Ok(()) 78 } 79 - Self::Unknown(_) => write!(f, "Unknown error"), 80 } 81 } 82 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct CreateSessionInput<'a> { 10 + ///When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub allow_takendown: std::option::Option<bool>, 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub auth_factor_token: std::option::Option<jacquard_common::CowStr<'a>>, 16 + ///Handle or other identifier supported by the server for the authenticating user. 17 #[serde(borrow)] 18 pub identifier: jacquard_common::CowStr<'a>, 19 #[serde(borrow)] 20 pub password: jacquard_common::CowStr<'a>, 21 } 22 + 23 #[jacquard_derive::lexicon] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 #[serde(rename_all = "camelCase")] ··· 44 pub handle: jacquard_common::types::string::Handle<'a>, 45 #[serde(borrow)] 46 pub refresh_jwt: jacquard_common::CowStr<'a>, 47 + ///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. 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 #[serde(borrow)] 50 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 51 } 52 + 53 #[jacquard_derive::open_union] 54 #[derive( 55 serde::Serialize, ··· 69 #[serde(rename = "AuthFactorTokenRequired")] 70 AuthFactorTokenRequired(std::option::Option<String>), 71 } 72 + 73 impl std::fmt::Display for CreateSessionError<'_> { 74 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 75 match self { ··· 87 } 88 Ok(()) 89 } 90 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 91 } 92 } 93 + }
+7 -1
crates/jacquard-api/src/com_atproto/server/deactivate_account.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct DeactivateAccountInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 pub delete_after: std::option::Option<jacquard_common::types::string::Datetime>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct DeactivateAccountInput<'a> { 10 + ///A recommendation to server as to how long they should hold onto the deactivated account before deleting. 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub delete_after: std::option::Option<jacquard_common::types::string::Datetime>, 13 + }
+9 -2
crates/jacquard-api/src/com_atproto/server/delete_account.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 9 #[serde(borrow)] 10 pub token: jacquard_common::CowStr<'a>, 11 } 12 #[jacquard_derive::open_union] 13 #[derive( 14 serde::Serialize, ··· 28 #[serde(rename = "InvalidToken")] 29 InvalidToken(std::option::Option<String>), 30 } 31 impl std::fmt::Display for DeleteAccountError<'_> { 32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 33 match self { ··· 45 } 46 Ok(()) 47 } 48 - Self::Unknown(_) => write!(f, "Unknown error"), 49 } 50 } 51 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 14 #[serde(borrow)] 15 pub token: jacquard_common::CowStr<'a>, 16 } 17 + 18 #[jacquard_derive::open_union] 19 #[derive( 20 serde::Serialize, ··· 34 #[serde(rename = "InvalidToken")] 35 InvalidToken(std::option::Option<String>), 36 } 37 + 38 impl std::fmt::Display for DeleteAccountError<'_> { 39 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 40 match self { ··· 52 } 53 Ok(()) 54 } 55 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 56 } 57 } 58 + }
+5
crates/jacquard-api/src/com_atproto/server/delete_session.rs
···
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 +
+13 -1
crates/jacquard-api/src/com_atproto/server/describe_server.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 #[serde(borrow)] 7 pub email: std::option::Option<jacquard_common::CowStr<'a>>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] ··· 17 #[serde(borrow)] 18 pub terms_of_service: std::option::Option<jacquard_common::types::string::Uri<'a>>, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] 23 pub struct DescribeServerOutput<'a> { 24 #[serde(borrow)] 25 pub available_user_domains: Vec<jacquard_common::CowStr<'a>>, 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 #[serde(borrow)] 28 pub contact: std::option::Option<jacquard_common::types::value::Data<'a>>, 29 #[serde(borrow)] 30 pub did: jacquard_common::types::string::Did<'a>, 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 pub invite_code_required: std::option::Option<bool>, 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 pub links: std::option::Option<jacquard_common::types::value::Data<'a>>, 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 37 pub phone_verification_required: std::option::Option<bool>, 38 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 #[serde(borrow)] 12 pub email: std::option::Option<jacquard_common::CowStr<'a>>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 23 #[serde(borrow)] 24 pub terms_of_service: std::option::Option<jacquard_common::types::string::Uri<'a>>, 25 } 26 + 27 #[jacquard_derive::lexicon] 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 29 #[serde(rename_all = "camelCase")] 30 pub struct DescribeServerOutput<'a> { 31 + ///List of domain suffixes that can be used in account handles. 32 #[serde(borrow)] 33 pub available_user_domains: Vec<jacquard_common::CowStr<'a>>, 34 + ///Contact information 35 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 #[serde(borrow)] 37 pub contact: std::option::Option<jacquard_common::types::value::Data<'a>>, 38 #[serde(borrow)] 39 pub did: jacquard_common::types::string::Did<'a>, 40 + ///If true, an invite code must be supplied to create an account on this instance. 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 42 pub invite_code_required: std::option::Option<bool>, 43 + ///URLs of service policy documents. 44 #[serde(skip_serializing_if = "std::option::Option::is_none")] 45 #[serde(borrow)] 46 pub links: std::option::Option<jacquard_common::types::value::Data<'a>>, 47 + ///If true, a phone verification token must be supplied to create an account on this instance. 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 pub phone_verification_required: std::option::Option<bool>, 50 + }
+10 -2
crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetAccountInviteCodesParams { ··· 6 #[serde(skip_serializing_if = "std::option::Option::is_none")] 7 pub include_used: std::option::Option<bool>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] ··· 13 #[serde(borrow)] 14 pub codes: Vec<crate::com_atproto::server::InviteCode<'a>>, 15 } 16 #[jacquard_derive::open_union] 17 #[derive( 18 serde::Serialize, ··· 30 #[serde(rename = "DuplicateCreate")] 31 DuplicateCreate(std::option::Option<String>), 32 } 33 impl std::fmt::Display for GetAccountInviteCodesError<'_> { 34 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 35 match self { ··· 40 } 41 Ok(()) 42 } 43 - Self::Unknown(_) => write!(f, "Unknown error"), 44 } 45 } 46 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetAccountInviteCodesParams { ··· 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub include_used: std::option::Option<bool>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 19 #[serde(borrow)] 20 pub codes: Vec<crate::com_atproto::server::InviteCode<'a>>, 21 } 22 + 23 #[jacquard_derive::open_union] 24 #[derive( 25 serde::Serialize, ··· 37 #[serde(rename = "DuplicateCreate")] 38 DuplicateCreate(std::option::Option<String>), 39 } 40 + 41 impl std::fmt::Display for GetAccountInviteCodesError<'_> { 42 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 43 match self { ··· 48 } 49 Ok(()) 50 } 51 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 52 } 53 } 54 + }
+10 -2
crates/jacquard-api/src/com_atproto/server/get_service_auth.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetServiceAuthParams<'a> { ··· 9 #[serde(borrow)] 10 pub lxm: std::option::Option<jacquard_common::types::string::Nsid<'a>>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 16 #[serde(borrow)] 17 pub token: jacquard_common::CowStr<'a>, 18 } 19 #[jacquard_derive::open_union] 20 #[derive( 21 serde::Serialize, ··· 34 #[serde(rename = "BadExpiration")] 35 BadExpiration(std::option::Option<String>), 36 } 37 impl std::fmt::Display for GetServiceAuthError<'_> { 38 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 39 match self { ··· 44 } 45 Ok(()) 46 } 47 - Self::Unknown(_) => write!(f, "Unknown error"), 48 } 49 } 50 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetServiceAuthParams<'a> { ··· 14 #[serde(borrow)] 15 pub lxm: std::option::Option<jacquard_common::types::string::Nsid<'a>>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 22 #[serde(borrow)] 23 pub token: jacquard_common::CowStr<'a>, 24 } 25 + 26 #[jacquard_derive::open_union] 27 #[derive( 28 serde::Serialize, ··· 41 #[serde(rename = "BadExpiration")] 42 BadExpiration(std::option::Option<String>), 43 } 44 + 45 impl std::fmt::Display for GetServiceAuthError<'_> { 46 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 47 match self { ··· 52 } 53 Ok(()) 54 } 55 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 56 } 57 } 58 + }
+7 -1
crates/jacquard-api/src/com_atproto/server/get_session.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 18 pub email_confirmed: std::option::Option<bool>, 19 #[serde(borrow)] 20 pub handle: jacquard_common::types::string::Handle<'a>, 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 #[serde(borrow)] 23 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 24 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 23 pub email_confirmed: std::option::Option<bool>, 24 #[serde(borrow)] 25 pub handle: jacquard_common::types::string::Handle<'a>, 26 + ///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. 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 30 + }
+10 -2
crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 pub privileged: std::option::Option<bool>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] ··· 15 #[serde(borrow)] 16 pub passwords: Vec<jacquard_common::types::value::Data<'a>>, 17 } 18 #[jacquard_derive::open_union] 19 #[derive( 20 serde::Serialize, ··· 32 #[serde(rename = "AccountTakedown")] 33 AccountTakedown(std::option::Option<String>), 34 } 35 impl std::fmt::Display for ListAppPasswordsError<'_> { 36 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 37 match self { ··· 42 } 43 Ok(()) 44 } 45 - Self::Unknown(_) => write!(f, "Unknown error"), 46 } 47 } 48 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 pub privileged: std::option::Option<bool>, 15 } 16 + 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] ··· 21 #[serde(borrow)] 22 pub passwords: Vec<jacquard_common::types::value::Data<'a>>, 23 } 24 + 25 #[jacquard_derive::open_union] 26 #[derive( 27 serde::Serialize, ··· 39 #[serde(rename = "AccountTakedown")] 40 AccountTakedown(std::option::Option<String>), 41 } 42 + 43 impl std::fmt::Display for ListAppPasswordsError<'_> { 44 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 45 match self { ··· 50 } 51 Ok(()) 52 } 53 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 54 } 55 } 56 + }
+10 -2
crates/jacquard-api/src/com_atproto/server/refresh_session.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 15 pub handle: jacquard_common::types::string::Handle<'a>, 16 #[serde(borrow)] 17 pub refresh_jwt: jacquard_common::CowStr<'a>, 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 21 } 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 36 #[serde(rename = "AccountTakedown")] 37 AccountTakedown(std::option::Option<String>), 38 } 39 impl std::fmt::Display for RefreshSessionError<'_> { 40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 41 match self { ··· 46 } 47 Ok(()) 48 } 49 - Self::Unknown(_) => write!(f, "Unknown error"), 50 } 51 } 52 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 20 pub handle: jacquard_common::types::string::Handle<'a>, 21 #[serde(borrow)] 22 pub refresh_jwt: jacquard_common::CowStr<'a>, 23 + ///Hosting status of the account. If not specified, then assume 'active'. 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 27 } 28 + 29 #[jacquard_derive::open_union] 30 #[derive( 31 serde::Serialize, ··· 43 #[serde(rename = "AccountTakedown")] 44 AccountTakedown(std::option::Option<String>), 45 } 46 + 47 impl std::fmt::Display for RefreshSessionError<'_> { 48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 49 match self { ··· 54 } 55 Ok(()) 56 } 57 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 } 59 } 60 + }
+5
crates/jacquard-api/src/com_atproto/server/request_account_delete.rs
···
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 +
+5
crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs
···
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 +
+6 -1
crates/jacquard-api/src/com_atproto/server/request_email_update.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RequestEmailUpdateOutput<'a> { 5 pub token_required: bool, 6 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RequestEmailUpdateOutput<'a> { 10 pub token_required: bool, 11 + }
+6 -1
crates/jacquard-api/src/com_atproto/server/request_password_reset.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RequestPasswordResetInput<'a> { 5 #[serde(borrow)] 6 pub email: jacquard_common::CowStr<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RequestPasswordResetInput<'a> { 10 #[serde(borrow)] 11 pub email: jacquard_common::CowStr<'a>, 12 + }
+9 -1
crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct ReserveSigningKeyInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub did: std::option::Option<jacquard_common::types::string::Did<'a>>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct ReserveSigningKeyOutput<'a> { 13 #[serde(borrow)] 14 pub signing_key: jacquard_common::CowStr<'a>, 15 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct ReserveSigningKeyInput<'a> { 10 + ///The DID to reserve a key for. 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub did: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ReserveSigningKeyOutput<'a> { 20 + ///The public key for the reserved signing key, in did:key serialization. 21 #[serde(borrow)] 22 pub signing_key: jacquard_common::CowStr<'a>, 23 + }
+9 -2
crates/jacquard-api/src/com_atproto/server/reset_password.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub token: jacquard_common::CowStr<'a>, 9 } 10 #[jacquard_derive::open_union] 11 #[derive( 12 serde::Serialize, ··· 26 #[serde(rename = "InvalidToken")] 27 InvalidToken(std::option::Option<String>), 28 } 29 impl std::fmt::Display for ResetPasswordError<'_> { 30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 31 match self { ··· 43 } 44 Ok(()) 45 } 46 - Self::Unknown(_) => write!(f, "Unknown error"), 47 } 48 } 49 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub token: jacquard_common::CowStr<'a>, 14 } 15 + 16 #[jacquard_derive::open_union] 17 #[derive( 18 serde::Serialize, ··· 32 #[serde(rename = "InvalidToken")] 33 InvalidToken(std::option::Option<String>), 34 } 35 + 36 impl std::fmt::Display for ResetPasswordError<'_> { 37 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 38 match self { ··· 50 } 51 Ok(()) 52 } 53 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 54 } 55 } 56 + }
+6 -1
crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RevokeAppPasswordInput<'a> { 5 #[serde(borrow)] 6 pub name: jacquard_common::CowStr<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RevokeAppPasswordInput<'a> { 10 #[serde(borrow)] 11 pub name: jacquard_common::CowStr<'a>, 12 + }
+10 -2
crates/jacquard-api/src/com_atproto/server/update_email.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 pub email: jacquard_common::CowStr<'a>, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub email_auth_factor: std::option::Option<bool>, 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 #[serde(borrow)] 11 pub token: std::option::Option<jacquard_common::CowStr<'a>>, 12 } 13 #[jacquard_derive::open_union] 14 #[derive( 15 serde::Serialize, ··· 31 #[serde(rename = "TokenRequired")] 32 TokenRequired(std::option::Option<String>), 33 } 34 impl std::fmt::Display for UpdateEmailError<'_> { 35 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 36 match self { ··· 55 } 56 Ok(()) 57 } 58 - Self::Unknown(_) => write!(f, "Unknown error"), 59 } 60 } 61 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 pub email: jacquard_common::CowStr<'a>, 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub email_auth_factor: std::option::Option<bool>, 14 + ///Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 #[serde(borrow)] 17 pub token: std::option::Option<jacquard_common::CowStr<'a>>, 18 } 19 + 20 #[jacquard_derive::open_union] 21 #[derive( 22 serde::Serialize, ··· 38 #[serde(rename = "TokenRequired")] 39 TokenRequired(std::option::Option<String>), 40 } 41 + 42 impl std::fmt::Display for UpdateEmailError<'_> { 43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 44 match self { ··· 63 } 64 Ok(()) 65 } 66 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 67 } 68 } 69 + }
+29 -17
crates/jacquard-api/src/com_atproto/sync.rs
··· 1 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 2 pub enum HostStatus<'a> { 3 Active, ··· 7 Banned, 8 Other(jacquard_common::CowStr<'a>), 9 } 10 impl<'a> HostStatus<'a> { 11 pub fn as_str(&self) -> &str { 12 match self { ··· 19 } 20 } 21 } 22 impl<'a> From<&'a str> for HostStatus<'a> { 23 fn from(s: &'a str) -> Self { 24 match s { ··· 31 } 32 } 33 } 34 impl<'a> From<String> for HostStatus<'a> { 35 fn from(s: String) -> Self { 36 match s.as_str() { ··· 43 } 44 } 45 } 46 impl<'a> AsRef<str> for HostStatus<'a> { 47 fn as_ref(&self) -> &str { 48 self.as_str() 49 } 50 } 51 impl<'a> serde::Serialize for HostStatus<'a> { 52 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 53 where ··· 56 serializer.serialize_str(self.as_str()) 57 } 58 } 59 impl<'de, 'a> serde::Deserialize<'de> for HostStatus<'a> 60 where 61 'de: 'a, ··· 67 let s = <&'de str>::deserialize(deserializer)?; 68 Ok(Self::from(s)) 69 } 70 - } 71 - pub mod get_blob; 72 - pub mod get_blocks; 73 - pub mod get_checkout; 74 - pub mod get_head; 75 - pub mod get_host_status; 76 - pub mod get_latest_commit; 77 - pub mod get_record; 78 - pub mod get_repo; 79 - pub mod get_repo_status; 80 - pub mod list_blobs; 81 - pub mod list_hosts; 82 - pub mod list_repos; 83 - pub mod list_repos_by_collection; 84 - pub mod notify_of_update; 85 - pub mod request_crawl; 86 - pub mod subscribe_repos;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod get_blob; 7 + pub mod get_blocks; 8 + pub mod get_checkout; 9 + pub mod get_head; 10 + pub mod get_host_status; 11 + pub mod get_latest_commit; 12 + pub mod get_record; 13 + pub mod get_repo; 14 + pub mod get_repo_status; 15 + pub mod list_blobs; 16 + pub mod list_hosts; 17 + pub mod list_repos; 18 + pub mod list_repos_by_collection; 19 + pub mod notify_of_update; 20 + pub mod request_crawl; 21 + pub mod subscribe_repos; 22 + 23 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 24 pub enum HostStatus<'a> { 25 Active, ··· 29 Banned, 30 Other(jacquard_common::CowStr<'a>), 31 } 32 + 33 impl<'a> HostStatus<'a> { 34 pub fn as_str(&self) -> &str { 35 match self { ··· 42 } 43 } 44 } 45 + 46 impl<'a> From<&'a str> for HostStatus<'a> { 47 fn from(s: &'a str) -> Self { 48 match s { ··· 55 } 56 } 57 } 58 + 59 impl<'a> From<String> for HostStatus<'a> { 60 fn from(s: String) -> Self { 61 match s.as_str() { ··· 68 } 69 } 70 } 71 + 72 impl<'a> AsRef<str> for HostStatus<'a> { 73 fn as_ref(&self) -> &str { 74 self.as_str() 75 } 76 } 77 + 78 impl<'a> serde::Serialize for HostStatus<'a> { 79 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 80 where ··· 83 serializer.serialize_str(self.as_str()) 84 } 85 } 86 + 87 impl<'de, 'a> serde::Deserialize<'de> for HostStatus<'a> 88 where 89 'de: 'a, ··· 95 let s = <&'de str>::deserialize(deserializer)?; 96 Ok(Self::from(s)) 97 } 98 + }
+9 -2
crates/jacquard-api/src/com_atproto/sync/get_blob.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetBlobParams<'a> { ··· 6 #[serde(borrow)] 7 pub did: jacquard_common::types::string::Did<'a>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] ··· 35 #[serde(rename = "RepoDeactivated")] 36 RepoDeactivated(std::option::Option<String>), 37 } 38 impl std::fmt::Display for GetBlobError<'_> { 39 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 40 match self { ··· 73 } 74 Ok(()) 75 } 76 - Self::Unknown(_) => write!(f, "Unknown error"), 77 } 78 } 79 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetBlobParams<'a> { ··· 11 #[serde(borrow)] 12 pub did: jacquard_common::types::string::Did<'a>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 41 #[serde(rename = "RepoDeactivated")] 42 RepoDeactivated(std::option::Option<String>), 43 } 44 + 45 impl std::fmt::Display for GetBlobError<'_> { 46 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 47 match self { ··· 80 } 81 Ok(()) 82 } 83 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 84 } 85 } 86 + }
+9 -2
crates/jacquard-api/src/com_atproto/sync/get_blocks.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetBlocksParams<'a> { ··· 6 #[serde(borrow)] 7 pub did: jacquard_common::types::string::Did<'a>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] ··· 35 #[serde(rename = "RepoDeactivated")] 36 RepoDeactivated(std::option::Option<String>), 37 } 38 impl std::fmt::Display for GetBlocksError<'_> { 39 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 40 match self { ··· 73 } 74 Ok(()) 75 } 76 - Self::Unknown(_) => write!(f, "Unknown error"), 77 } 78 } 79 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetBlocksParams<'a> { ··· 11 #[serde(borrow)] 12 pub did: jacquard_common::types::string::Did<'a>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 41 #[serde(rename = "RepoDeactivated")] 42 RepoDeactivated(std::option::Option<String>), 43 } 44 + 45 impl std::fmt::Display for GetBlocksError<'_> { 46 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 47 match self { ··· 80 } 81 Ok(()) 82 } 83 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 84 } 85 } 86 + }
+7 -1
crates/jacquard-api/src/com_atproto/sync/get_checkout.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetCheckoutParams<'a> { 4 #[serde(borrow)] 5 pub did: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 - pub struct GetCheckoutOutput<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetCheckoutParams<'a> { 9 #[serde(borrow)] 10 pub did: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 + pub struct GetCheckoutOutput<'a> {}
+10 -2
crates/jacquard-api/src/com_atproto/sync/get_head.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetHeadParams<'a> { 4 #[serde(borrow)] 5 pub did: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 11 #[serde(borrow)] 12 pub root: jacquard_common::types::string::Cid<'a>, 13 } 14 #[jacquard_derive::open_union] 15 #[derive( 16 serde::Serialize, ··· 28 #[serde(rename = "HeadNotFound")] 29 HeadNotFound(std::option::Option<String>), 30 } 31 impl std::fmt::Display for GetHeadError<'_> { 32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 33 match self { ··· 38 } 39 Ok(()) 40 } 41 - Self::Unknown(_) => write!(f, "Unknown error"), 42 } 43 } 44 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetHeadParams<'a> { 9 #[serde(borrow)] 10 pub did: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 17 #[serde(borrow)] 18 pub root: jacquard_common::types::string::Cid<'a>, 19 } 20 + 21 #[jacquard_derive::open_union] 22 #[derive( 23 serde::Serialize, ··· 35 #[serde(rename = "HeadNotFound")] 36 HeadNotFound(std::option::Option<String>), 37 } 38 + 39 impl std::fmt::Display for GetHeadError<'_> { 40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 41 match self { ··· 46 } 47 Ok(()) 48 } 49 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 50 } 51 } 52 + }
+12 -2
crates/jacquard-api/src/com_atproto/sync/get_host_status.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetHostStatusParams<'a> { 4 #[serde(borrow)] 5 pub hostname: jacquard_common::CowStr<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetHostStatusOutput<'a> { 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub account_count: std::option::Option<i64>, 13 #[serde(borrow)] 14 pub hostname: jacquard_common::CowStr<'a>, 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 pub seq: std::option::Option<i64>, 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>, 20 } 21 #[jacquard_derive::open_union] 22 #[derive( 23 serde::Serialize, ··· 35 #[serde(rename = "HostNotFound")] 36 HostNotFound(std::option::Option<String>), 37 } 38 impl std::fmt::Display for GetHostStatusError<'_> { 39 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 40 match self { ··· 45 } 46 Ok(()) 47 } 48 - Self::Unknown(_) => write!(f, "Unknown error"), 49 } 50 } 51 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetHostStatusParams<'a> { 9 #[serde(borrow)] 10 pub hostname: jacquard_common::CowStr<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetHostStatusOutput<'a> { 17 + ///Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts. 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 pub account_count: std::option::Option<i64>, 20 #[serde(borrow)] 21 pub hostname: jacquard_common::CowStr<'a>, 22 + ///Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 pub seq: std::option::Option<i64>, 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>, 28 } 29 + 30 #[jacquard_derive::open_union] 31 #[derive( 32 serde::Serialize, ··· 44 #[serde(rename = "HostNotFound")] 45 HostNotFound(std::option::Option<String>), 46 } 47 + 48 impl std::fmt::Display for GetHostStatusError<'_> { 49 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 50 match self { ··· 55 } 56 Ok(()) 57 } 58 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 59 } 60 } 61 + }
+10 -2
crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetLatestCommitParams<'a> { 4 #[serde(borrow)] 5 pub did: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 12 pub cid: jacquard_common::types::string::Cid<'a>, 13 pub rev: jacquard_common::types::string::Tid, 14 } 15 #[jacquard_derive::open_union] 16 #[derive( 17 serde::Serialize, ··· 35 #[serde(rename = "RepoDeactivated")] 36 RepoDeactivated(std::option::Option<String>), 37 } 38 impl std::fmt::Display for GetLatestCommitError<'_> { 39 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 40 match self { ··· 66 } 67 Ok(()) 68 } 69 - Self::Unknown(_) => write!(f, "Unknown error"), 70 } 71 } 72 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetLatestCommitParams<'a> { 9 #[serde(borrow)] 10 pub did: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 18 pub cid: jacquard_common::types::string::Cid<'a>, 19 pub rev: jacquard_common::types::string::Tid, 20 } 21 + 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 42 #[serde(rename = "RepoDeactivated")] 43 RepoDeactivated(std::option::Option<String>), 44 } 45 + 46 impl std::fmt::Display for GetLatestCommitError<'_> { 47 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 48 match self { ··· 74 } 75 Ok(()) 76 } 77 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 78 } 79 } 80 + }
+9 -2
crates/jacquard-api/src/com_atproto/sync/get_record.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRecordParams<'a> { ··· 10 jacquard_common::types::string::Rkey<'a>, 11 >, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 39 #[serde(rename = "RepoDeactivated")] 40 RepoDeactivated(std::option::Option<String>), 41 } 42 impl std::fmt::Display for GetRecordError<'_> { 43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 44 match self { ··· 77 } 78 Ok(()) 79 } 80 - Self::Unknown(_) => write!(f, "Unknown error"), 81 } 82 } 83 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRecordParams<'a> { ··· 15 jacquard_common::types::string::Rkey<'a>, 16 >, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 45 #[serde(rename = "RepoDeactivated")] 46 RepoDeactivated(std::option::Option<String>), 47 } 48 + 49 impl std::fmt::Display for GetRecordError<'_> { 50 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 51 match self { ··· 84 } 85 Ok(()) 86 } 87 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 88 } 89 } 90 + }
+9 -2
crates/jacquard-api/src/com_atproto/sync/get_repo.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRepoParams<'a> { ··· 6 #[serde(skip_serializing_if = "std::option::Option::is_none")] 7 pub since: std::option::Option<jacquard_common::types::string::Tid>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] ··· 19 PartialEq, 20 Eq, 21 thiserror::Error, 22 - miette::Diagnostic, 23 )] 24 #[serde(tag = "error", content = "message")] 25 #[serde(bound(deserialize = "'de: 'a"))] ··· 33 #[serde(rename = "RepoDeactivated")] 34 RepoDeactivated(std::option::Option<String>), 35 } 36 impl std::fmt::Display for GetRepoError<'_> { 37 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 38 match self { ··· 67 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 68 } 69 } 70 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRepoParams<'a> { ··· 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub since: std::option::Option<jacquard_common::types::string::Tid>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 25 PartialEq, 26 Eq, 27 thiserror::Error, 28 + miette::Diagnostic 29 )] 30 #[serde(tag = "error", content = "message")] 31 #[serde(bound(deserialize = "'de: 'a"))] ··· 39 #[serde(rename = "RepoDeactivated")] 40 RepoDeactivated(std::option::Option<String>), 41 } 42 + 43 impl std::fmt::Display for GetRepoError<'_> { 44 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 45 match self { ··· 74 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 75 } 76 } 77 + }
+12 -2
crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRepoStatusParams<'a> { 4 #[serde(borrow)] 5 pub did: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 11 pub active: bool, 12 #[serde(borrow)] 13 pub did: jacquard_common::types::string::Did<'a>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub rev: std::option::Option<jacquard_common::types::string::Tid>, 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 19 } 20 #[jacquard_derive::open_union] 21 #[derive( 22 serde::Serialize, ··· 34 #[serde(rename = "RepoNotFound")] 35 RepoNotFound(std::option::Option<String>), 36 } 37 impl std::fmt::Display for GetRepoStatusError<'_> { 38 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 39 match self { ··· 44 } 45 Ok(()) 46 } 47 - Self::Unknown(_) => write!(f, "Unknown error"), 48 } 49 } 50 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRepoStatusParams<'a> { 9 #[serde(borrow)] 10 pub did: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 17 pub active: bool, 18 #[serde(borrow)] 19 pub did: jacquard_common::types::string::Did<'a>, 20 + ///Optional field, the current rev of the repo, if active=true 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 pub rev: std::option::Option<jacquard_common::types::string::Tid>, 23 + ///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. 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 27 } 28 + 29 #[jacquard_derive::open_union] 30 #[derive( 31 serde::Serialize, ··· 43 #[serde(rename = "RepoNotFound")] 44 RepoNotFound(std::option::Option<String>), 45 } 46 + 47 impl std::fmt::Display for GetRepoStatusError<'_> { 48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 49 match self { ··· 54 } 55 Ok(()) 56 } 57 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 } 59 } 60 + }
+10 -2
crates/jacquard-api/src/com_atproto/sync/list_blobs.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListBlobsParams<'a> { ··· 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub since: std::option::Option<jacquard_common::types::string::Tid>, 13 } 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] ··· 21 #[serde(borrow)] 22 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 } 24 #[jacquard_derive::open_union] 25 #[derive( 26 serde::Serialize, ··· 44 #[serde(rename = "RepoDeactivated")] 45 RepoDeactivated(std::option::Option<String>), 46 } 47 impl std::fmt::Display for ListBlobsError<'_> { 48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 49 match self { ··· 75 } 76 Ok(()) 77 } 78 - Self::Unknown(_) => write!(f, "Unknown error"), 79 } 80 } 81 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListBlobsParams<'a> { ··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 pub since: std::option::Option<jacquard_common::types::string::Tid>, 18 } 19 + 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] ··· 27 #[serde(borrow)] 28 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 29 } 30 + 31 #[jacquard_derive::open_union] 32 #[derive( 33 serde::Serialize, ··· 51 #[serde(rename = "RepoDeactivated")] 52 RepoDeactivated(std::option::Option<String>), 53 } 54 + 55 impl std::fmt::Display for ListBlobsError<'_> { 56 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 57 match self { ··· 83 } 84 Ok(()) 85 } 86 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 87 } 88 } 89 + }
+11 -1
crates/jacquard-api/src/com_atproto/sync/list_hosts.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct Host<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 pub account_count: std::option::Option<i64>, 7 #[serde(borrow)] 8 pub hostname: jacquard_common::CowStr<'a>, 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub seq: std::option::Option<i64>, 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>, 14 } 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] 17 pub struct ListHostsParams<'a> { ··· 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 pub limit: std::option::Option<i64>, 23 } 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 #[serde(borrow)] 30 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 31 #[serde(borrow)] 32 pub hosts: Vec<jacquard_common::types::value::Data<'a>>, 33 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct Host<'a> { 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 pub account_count: std::option::Option<i64>, 12 + ///hostname of server; not a URL (no scheme) 13 #[serde(borrow)] 14 pub hostname: jacquard_common::CowStr<'a>, 15 + ///Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 pub seq: std::option::Option<i64>, 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>, 21 } 22 + 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] 25 pub struct ListHostsParams<'a> { ··· 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 pub limit: std::option::Option<i64>, 31 } 32 + 33 #[jacquard_derive::lexicon] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 #[serde(rename_all = "camelCase")] ··· 37 #[serde(skip_serializing_if = "std::option::Option::is_none")] 38 #[serde(borrow)] 39 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 40 + ///Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first. 41 #[serde(borrow)] 42 pub hosts: Vec<jacquard_common::types::value::Data<'a>>, 43 + }
+10 -1
crates/jacquard-api/src/com_atproto/sync/list_repos.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListReposParams<'a> { ··· 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 pub limit: std::option::Option<i64>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 17 #[serde(borrow)] 18 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] ··· 25 pub active: std::option::Option<bool>, 26 #[serde(borrow)] 27 pub did: jacquard_common::types::string::Did<'a>, 28 #[serde(borrow)] 29 pub head: jacquard_common::types::string::Cid<'a>, 30 pub rev: jacquard_common::types::string::Tid, 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 #[serde(borrow)] 33 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 34 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListReposParams<'a> { ··· 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub limit: std::option::Option<i64>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 23 #[serde(borrow)] 24 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 25 } 26 + 27 #[jacquard_derive::lexicon] 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 29 #[serde(rename_all = "camelCase")] ··· 32 pub active: std::option::Option<bool>, 33 #[serde(borrow)] 34 pub did: jacquard_common::types::string::Did<'a>, 35 + ///Current repo commit CID 36 #[serde(borrow)] 37 pub head: jacquard_common::types::string::Cid<'a>, 38 pub rev: jacquard_common::types::string::Tid, 39 + ///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. 40 #[serde(skip_serializing_if = "std::option::Option::is_none")] 41 #[serde(borrow)] 42 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 43 + }
+8 -1
crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListReposByCollectionParams<'a> { ··· 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 pub limit: std::option::Option<i64>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 19 #[serde(borrow)] 20 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 21 } 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] 25 pub struct Repo<'a> { 26 #[serde(borrow)] 27 pub did: jacquard_common::types::string::Did<'a>, 28 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListReposByCollectionParams<'a> { ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 27 } 28 + 29 #[jacquard_derive::lexicon] 30 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 31 #[serde(rename_all = "camelCase")] 32 pub struct Repo<'a> { 33 #[serde(borrow)] 34 pub did: jacquard_common::types::string::Did<'a>, 35 + }
+7 -1
crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct NotifyOfUpdateInput<'a> { 5 #[serde(borrow)] 6 pub hostname: jacquard_common::CowStr<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct NotifyOfUpdateInput<'a> { 10 + ///Hostname of the current service (usually a PDS) that is notifying of update. 11 #[serde(borrow)] 12 pub hostname: jacquard_common::CowStr<'a>, 13 + }
+10 -2
crates/jacquard-api/src/com_atproto/sync/request_crawl.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RequestCrawlInput<'a> { 5 #[serde(borrow)] 6 pub hostname: jacquard_common::CowStr<'a>, 7 } 8 #[jacquard_derive::open_union] 9 #[derive( 10 serde::Serialize, ··· 22 #[serde(rename = "HostBanned")] 23 HostBanned(std::option::Option<String>), 24 } 25 impl std::fmt::Display for RequestCrawlError<'_> { 26 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 27 match self { ··· 32 } 33 Ok(()) 34 } 35 - Self::Unknown(_) => write!(f, "Unknown error"), 36 } 37 } 38 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RequestCrawlInput<'a> { 10 + ///Hostname of the current service (eg, PDS) that is requesting to be crawled. 11 #[serde(borrow)] 12 pub hostname: jacquard_common::CowStr<'a>, 13 } 14 + 15 #[jacquard_derive::open_union] 16 #[derive( 17 serde::Serialize, ··· 29 #[serde(rename = "HostBanned")] 30 HostBanned(std::option::Option<String>), 31 } 32 + 33 impl std::fmt::Display for RequestCrawlError<'_> { 34 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 35 match self { ··· 40 } 41 Ok(()) 42 } 43 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 44 } 45 } 46 + }
+37 -3
crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs
··· 1 ///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. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct Account<'a> { 6 pub active: bool, 7 #[serde(borrow)] 8 pub did: jacquard_common::types::string::Did<'a>, 9 pub seq: i64, 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 #[serde(borrow)] 12 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 13 pub time: jacquard_common::types::string::Datetime, 14 } 15 ///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. 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 19 pub struct Commit<'a> { 20 #[serde(borrow)] 21 pub blobs: Vec<jacquard_common::types::cid::CidLink<'a>>, 22 pub blocks: bytes::Bytes, 23 #[serde(borrow)] 24 pub commit: jacquard_common::types::cid::CidLink<'a>, 25 #[serde(borrow)] 26 - pub ops: Vec<jacquard_common::types::value::Data<'a>>, 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub prev_data: std::option::Option<jacquard_common::types::cid::CidLink<'a>>, 30 pub rebase: bool, 31 #[serde(borrow)] 32 pub repo: jacquard_common::types::string::Did<'a>, 33 pub rev: jacquard_common::types::string::Tid, 34 pub seq: i64, 35 pub since: jacquard_common::types::string::Tid, 36 pub time: jacquard_common::types::string::Datetime, 37 pub too_big: bool, 38 } 39 ///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. 40 #[jacquard_derive::lexicon] 41 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 43 pub struct Identity<'a> { 44 #[serde(borrow)] 45 pub did: jacquard_common::types::string::Did<'a>, 46 #[serde(skip_serializing_if = "std::option::Option::is_none")] 47 #[serde(borrow)] 48 pub handle: std::option::Option<jacquard_common::types::string::Handle<'a>>, 49 pub seq: i64, 50 pub time: jacquard_common::types::string::Datetime, 51 } 52 #[jacquard_derive::lexicon] 53 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 54 #[serde(rename_all = "camelCase")] ··· 59 #[serde(borrow)] 60 pub name: jacquard_common::CowStr<'a>, 61 } 62 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 63 #[serde(rename_all = "camelCase")] 64 pub struct SubscribeReposParams { 65 #[serde(skip_serializing_if = "std::option::Option::is_none")] 66 pub cursor: std::option::Option<i64>, 67 } 68 #[jacquard_derive::open_union] 69 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 70 #[serde(tag = "$type")] ··· 81 #[serde(rename = "#info")] 82 Info(Box<jacquard_common::types::value::Data<'a>>), 83 } 84 #[jacquard_derive::open_union] 85 #[derive( 86 serde::Serialize, ··· 101 #[serde(rename = "ConsumerTooSlow")] 102 ConsumerTooSlow(std::option::Option<String>), 103 } 104 impl std::fmt::Display for SubscribeReposError<'_> { 105 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 106 match self { ··· 118 } 119 Ok(()) 120 } 121 - Self::Unknown(_) => write!(f, "Unknown error"), 122 } 123 } 124 } 125 ///A repo operation, ie a mutation of a single record. 126 #[jacquard_derive::lexicon] 127 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 129 pub struct RepoOp<'a> { 130 #[serde(borrow)] 131 pub action: jacquard_common::CowStr<'a>, 132 #[serde(borrow)] 133 pub cid: jacquard_common::types::cid::CidLink<'a>, 134 #[serde(borrow)] 135 pub path: jacquard_common::CowStr<'a>, 136 #[serde(skip_serializing_if = "std::option::Option::is_none")] 137 #[serde(borrow)] 138 pub prev: std::option::Option<jacquard_common::types::cid::CidLink<'a>>, 139 } 140 ///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. 141 #[jacquard_derive::lexicon] 142 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 143 #[serde(rename_all = "camelCase")] 144 pub struct Sync<'a> { 145 pub blocks: bytes::Bytes, 146 #[serde(borrow)] 147 pub did: jacquard_common::types::string::Did<'a>, 148 #[serde(borrow)] 149 pub rev: jacquard_common::CowStr<'a>, 150 pub seq: i64, 151 pub time: jacquard_common::types::string::Datetime, 152 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///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. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct Account<'a> { 11 + ///Indicates that the account has a repository which can be fetched from the host that emitted this event. 12 pub active: bool, 13 #[serde(borrow)] 14 pub did: jacquard_common::types::string::Did<'a>, 15 pub seq: i64, 16 + ///If active=false, this optional field indicates a reason for why the account is not active. 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 20 pub time: jacquard_common::types::string::Datetime, 21 } 22 + 23 ///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. 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 27 pub struct Commit<'a> { 28 #[serde(borrow)] 29 pub blobs: Vec<jacquard_common::types::cid::CidLink<'a>>, 30 + ///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. 31 pub blocks: bytes::Bytes, 32 + ///Repo commit object CID. 33 #[serde(borrow)] 34 pub commit: jacquard_common::types::cid::CidLink<'a>, 35 #[serde(borrow)] 36 + pub ops: Vec<crate::com_atproto::sync::subscribe_repos::RepoOp<'a>>, 37 + ///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. 38 #[serde(skip_serializing_if = "std::option::Option::is_none")] 39 #[serde(borrow)] 40 pub prev_data: std::option::Option<jacquard_common::types::cid::CidLink<'a>>, 41 + ///DEPRECATED -- unused 42 pub rebase: bool, 43 + ///The repo this event comes from. Note that all other message types name this field 'did'. 44 #[serde(borrow)] 45 pub repo: jacquard_common::types::string::Did<'a>, 46 + ///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. 47 pub rev: jacquard_common::types::string::Tid, 48 + ///The stream sequence number of this message. 49 pub seq: i64, 50 + ///The rev of the last emitted commit from this repo (if any). 51 pub since: jacquard_common::types::string::Tid, 52 + ///Timestamp of when this message was originally broadcast. 53 pub time: jacquard_common::types::string::Datetime, 54 + ///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. 55 pub too_big: bool, 56 } 57 + 58 ///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. 59 #[jacquard_derive::lexicon] 60 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 62 pub struct Identity<'a> { 63 #[serde(borrow)] 64 pub did: jacquard_common::types::string::Did<'a>, 65 + ///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. 66 #[serde(skip_serializing_if = "std::option::Option::is_none")] 67 #[serde(borrow)] 68 pub handle: std::option::Option<jacquard_common::types::string::Handle<'a>>, 69 pub seq: i64, 70 pub time: jacquard_common::types::string::Datetime, 71 } 72 + 73 #[jacquard_derive::lexicon] 74 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 75 #[serde(rename_all = "camelCase")] ··· 80 #[serde(borrow)] 81 pub name: jacquard_common::CowStr<'a>, 82 } 83 + 84 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 85 #[serde(rename_all = "camelCase")] 86 pub struct SubscribeReposParams { 87 #[serde(skip_serializing_if = "std::option::Option::is_none")] 88 pub cursor: std::option::Option<i64>, 89 } 90 + 91 #[jacquard_derive::open_union] 92 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 93 #[serde(tag = "$type")] ··· 104 #[serde(rename = "#info")] 105 Info(Box<jacquard_common::types::value::Data<'a>>), 106 } 107 + 108 #[jacquard_derive::open_union] 109 #[derive( 110 serde::Serialize, ··· 125 #[serde(rename = "ConsumerTooSlow")] 126 ConsumerTooSlow(std::option::Option<String>), 127 } 128 + 129 impl std::fmt::Display for SubscribeReposError<'_> { 130 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 131 match self { ··· 143 } 144 Ok(()) 145 } 146 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 147 } 148 } 149 } 150 + 151 ///A repo operation, ie a mutation of a single record. 152 #[jacquard_derive::lexicon] 153 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 155 pub struct RepoOp<'a> { 156 #[serde(borrow)] 157 pub action: jacquard_common::CowStr<'a>, 158 + ///For creates and updates, the new record CID. For deletions, null. 159 #[serde(borrow)] 160 pub cid: jacquard_common::types::cid::CidLink<'a>, 161 #[serde(borrow)] 162 pub path: jacquard_common::CowStr<'a>, 163 + ///For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. 164 #[serde(skip_serializing_if = "std::option::Option::is_none")] 165 #[serde(borrow)] 166 pub prev: std::option::Option<jacquard_common::types::cid::CidLink<'a>>, 167 } 168 + 169 ///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. 170 #[jacquard_derive::lexicon] 171 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 172 #[serde(rename_all = "camelCase")] 173 pub struct Sync<'a> { 174 + ///CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. 175 pub blocks: bytes::Bytes, 176 + ///The account this repo event corresponds to. Must match that in the commit object. 177 #[serde(borrow)] 178 pub did: jacquard_common::types::string::Did<'a>, 179 + ///The rev of the commit. This value must match that in the commit object. 180 #[serde(borrow)] 181 pub rev: jacquard_common::CowStr<'a>, 182 + ///The stream sequence number of this message. 183 pub seq: i64, 184 + ///Timestamp of when this message was originally broadcast. 185 pub time: jacquard_common::types::string::Datetime, 186 + }
+6 -1
crates/jacquard-api/src/com_atproto/temp.rs
··· 1 pub mod add_reserved_handle; 2 pub mod check_handle_availability; 3 pub mod check_signup_queue; 4 pub mod dereference_scope; 5 pub mod fetch_labels; 6 pub mod request_phone_verification; 7 - pub mod revoke_account_credentials;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod add_reserved_handle; 7 pub mod check_handle_availability; 8 pub mod check_signup_queue; 9 pub mod dereference_scope; 10 pub mod fetch_labels; 11 pub mod request_phone_verification; 12 + pub mod revoke_account_credentials;
+7 -1
crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub handle: jacquard_common::CowStr<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] 11 - pub struct AddReservedHandleOutput<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub handle: jacquard_common::CowStr<'a>, 12 } 13 + 14 #[jacquard_derive::lexicon] 15 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 #[serde(rename_all = "camelCase")] 17 + pub struct AddReservedHandleOutput<'a> {}
+18 -3
crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct CheckHandleAvailabilityParams<'a> { ··· 9 #[serde(borrow)] 10 pub handle: jacquard_common::types::string::Handle<'a>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] 15 pub struct CheckHandleAvailabilityOutput<'a> { 16 #[serde(borrow)] 17 pub handle: jacquard_common::types::string::Handle<'a>, 18 #[serde(borrow)] 19 pub result: CheckHandleAvailabilityOutputRecordResult<'a>, 20 } 21 #[jacquard_derive::open_union] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(tag = "$type")] ··· 41 #[serde(rename = "InvalidEmail")] 42 InvalidEmail(std::option::Option<String>), 43 } 44 impl std::fmt::Display for CheckHandleAvailabilityError<'_> { 45 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 46 match self { ··· 51 } 52 Ok(()) 53 } 54 - Self::Unknown(_) => write!(f, "Unknown error"), 55 } 56 } 57 } 58 ///Indicates the provided handle is available. 59 #[jacquard_derive::lexicon] 60 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 65 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 66 #[serde(rename_all = "camelCase")] 67 pub struct ResultUnavailable<'a> { 68 #[serde(borrow)] 69 - pub suggestions: Vec<jacquard_common::types::value::Data<'a>>, 70 } 71 #[jacquard_derive::lexicon] 72 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 73 #[serde(rename_all = "camelCase")] 74 pub struct Suggestion<'a> { 75 #[serde(borrow)] 76 pub handle: jacquard_common::types::string::Handle<'a>, 77 #[serde(borrow)] 78 pub method: jacquard_common::CowStr<'a>, 79 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct CheckHandleAvailabilityParams<'a> { ··· 14 #[serde(borrow)] 15 pub handle: jacquard_common::types::string::Handle<'a>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] 21 pub struct CheckHandleAvailabilityOutput<'a> { 22 + ///Echo of the input handle. 23 #[serde(borrow)] 24 pub handle: jacquard_common::types::string::Handle<'a>, 25 #[serde(borrow)] 26 pub result: CheckHandleAvailabilityOutputRecordResult<'a>, 27 } 28 + 29 #[jacquard_derive::open_union] 30 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 31 #[serde(tag = "$type")] ··· 49 #[serde(rename = "InvalidEmail")] 50 InvalidEmail(std::option::Option<String>), 51 } 52 + 53 impl std::fmt::Display for CheckHandleAvailabilityError<'_> { 54 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 55 match self { ··· 60 } 61 Ok(()) 62 } 63 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 64 } 65 } 66 } 67 + 68 ///Indicates the provided handle is available. 69 #[jacquard_derive::lexicon] 70 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 75 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 76 #[serde(rename_all = "camelCase")] 77 pub struct ResultUnavailable<'a> { 78 + ///List of suggested handles based on the provided inputs. 79 #[serde(borrow)] 80 + pub suggestions: Vec< 81 + crate::com_atproto::temp::check_handle_availability::Suggestion<'a>, 82 + >, 83 } 84 + 85 #[jacquard_derive::lexicon] 86 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 87 #[serde(rename_all = "camelCase")] 88 pub struct Suggestion<'a> { 89 #[serde(borrow)] 90 pub handle: jacquard_common::types::string::Handle<'a>, 91 + ///Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics. 92 #[serde(borrow)] 93 pub method: jacquard_common::CowStr<'a>, 94 + }
+6 -1
crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 pub estimated_time_ms: std::option::Option<i64>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 pub place_in_queue: std::option::Option<i64>, 10 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 pub estimated_time_ms: std::option::Option<i64>, 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 pub place_in_queue: std::option::Option<i64>, 15 + }
+11 -2
crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct DereferenceScopeParams<'a> { 4 #[serde(borrow)] 5 pub scope: jacquard_common::CowStr<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct DereferenceScopeOutput<'a> { 11 #[serde(borrow)] 12 pub scope: jacquard_common::CowStr<'a>, 13 } 14 #[jacquard_derive::open_union] 15 #[derive( 16 serde::Serialize, ··· 29 #[serde(rename = "InvalidScopeReference")] 30 InvalidScopeReference(std::option::Option<String>), 31 } 32 impl std::fmt::Display for DereferenceScopeError<'_> { 33 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 34 match self { ··· 39 } 40 Ok(()) 41 } 42 - Self::Unknown(_) => write!(f, "Unknown error"), 43 } 44 } 45 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct DereferenceScopeParams<'a> { 9 #[serde(borrow)] 10 pub scope: jacquard_common::CowStr<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct DereferenceScopeOutput<'a> { 17 + ///The full oauth permission scope 18 #[serde(borrow)] 19 pub scope: jacquard_common::CowStr<'a>, 20 } 21 + 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 37 #[serde(rename = "InvalidScopeReference")] 38 InvalidScopeReference(std::option::Option<String>), 39 } 40 + 41 impl std::fmt::Display for DereferenceScopeError<'_> { 42 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 43 match self { ··· 48 } 49 Ok(()) 50 } 51 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 52 } 53 } 54 + }
+7 -1
crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct FetchLabelsParams { ··· 6 #[serde(skip_serializing_if = "std::option::Option::is_none")] 7 pub since: std::option::Option<i64>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] 12 pub struct FetchLabelsOutput<'a> { 13 #[serde(borrow)] 14 pub labels: Vec<crate::com_atproto::label::Label<'a>>, 15 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct FetchLabelsParams { ··· 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub since: std::option::Option<i64>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] 18 pub struct FetchLabelsOutput<'a> { 19 #[serde(borrow)] 20 pub labels: Vec<crate::com_atproto::label::Label<'a>>, 21 + }
+6 -1
crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RequestPhoneVerificationInput<'a> { 5 #[serde(borrow)] 6 pub phone_number: jacquard_common::CowStr<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RequestPhoneVerificationInput<'a> { 10 #[serde(borrow)] 11 pub phone_number: jacquard_common::CowStr<'a>, 12 + }
+6 -1
crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RevokeAccountCredentialsInput<'a> { 5 #[serde(borrow)] 6 pub account: jacquard_common::types::ident::AtIdentifier<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RevokeAccountCredentialsInput<'a> { 10 #[serde(borrow)] 11 pub account: jacquard_common::types::ident::AtIdentifier<'a>, 12 + }
+6 -1
crates/jacquard-api/src/lib.rs
··· 1 pub mod app_bsky; 2 pub mod chat_bsky; 3 pub mod com_atproto; 4 - pub mod tools_ozone;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod app_bsky; 7 pub mod chat_bsky; 8 pub mod com_atproto; 9 + pub mod tools_ozone;
+6 -1
crates/jacquard-api/src/tools_ozone.rs
··· 1 pub mod communication; 2 pub mod hosting; 3 pub mod moderation; ··· 8 pub mod setting; 9 pub mod signature; 10 pub mod team; 11 - pub mod verification;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 pub mod communication; 7 pub mod hosting; 8 pub mod moderation; ··· 13 pub mod setting; 14 pub mod signature; 15 pub mod team; 16 + pub mod verification;
+16 -5
crates/jacquard-api/src/tools_ozone/communication.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct TemplateView<'a> { 5 #[serde(borrow)] 6 pub content_markdown: jacquard_common::CowStr<'a>, 7 pub created_at: jacquard_common::types::string::Datetime, 8 pub disabled: bool, 9 #[serde(borrow)] 10 pub id: jacquard_common::CowStr<'a>, 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 pub lang: std::option::Option<jacquard_common::types::string::Language>, 13 #[serde(borrow)] 14 pub last_updated_by: jacquard_common::types::string::Did<'a>, 15 #[serde(borrow)] 16 pub name: jacquard_common::CowStr<'a>, 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub subject: std::option::Option<jacquard_common::CowStr<'a>>, 20 pub updated_at: jacquard_common::types::string::Datetime, 21 - } 22 - pub mod create_template; 23 - pub mod delete_template; 24 - pub mod list_templates; 25 - pub mod update_template;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod create_template; 7 + pub mod delete_template; 8 + pub mod list_templates; 9 + pub mod update_template; 10 + 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] 14 pub struct TemplateView<'a> { 15 + ///Subject of the message, used in emails. 16 #[serde(borrow)] 17 pub content_markdown: jacquard_common::CowStr<'a>, 18 pub created_at: jacquard_common::types::string::Datetime, 19 pub disabled: bool, 20 #[serde(borrow)] 21 pub id: jacquard_common::CowStr<'a>, 22 + ///Message language. 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 pub lang: std::option::Option<jacquard_common::types::string::Language>, 25 + ///DID of the user who last updated the template. 26 #[serde(borrow)] 27 pub last_updated_by: jacquard_common::types::string::Did<'a>, 28 + ///Name of the template. 29 #[serde(borrow)] 30 pub name: jacquard_common::CowStr<'a>, 31 + ///Content of the template, can contain markdown and variable placeholders. 32 #[serde(skip_serializing_if = "std::option::Option::is_none")] 33 #[serde(borrow)] 34 pub subject: std::option::Option<jacquard_common::CowStr<'a>>, 35 pub updated_at: jacquard_common::types::string::Datetime, 36 + }
+15 -2
crates/jacquard-api/src/tools_ozone/communication/create_template.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct CreateTemplateInput<'a> { 5 #[serde(borrow)] 6 pub content_markdown: jacquard_common::CowStr<'a>, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 #[serde(borrow)] 9 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 pub lang: std::option::Option<jacquard_common::types::string::Language>, 12 #[serde(borrow)] 13 pub name: jacquard_common::CowStr<'a>, 14 #[serde(borrow)] 15 pub subject: jacquard_common::CowStr<'a>, 16 } 17 #[jacquard_derive::lexicon] 18 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 19 #[serde(rename_all = "camelCase")] ··· 22 #[serde(borrow)] 23 pub value: crate::tools_ozone::communication::TemplateView<'a>, 24 } 25 #[jacquard_derive::open_union] 26 #[derive( 27 serde::Serialize, ··· 39 #[serde(rename = "DuplicateTemplateName")] 40 DuplicateTemplateName(std::option::Option<String>), 41 } 42 impl std::fmt::Display for CreateTemplateError<'_> { 43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 44 match self { ··· 49 } 50 Ok(()) 51 } 52 - Self::Unknown(_) => write!(f, "Unknown error"), 53 } 54 } 55 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct CreateTemplateInput<'a> { 10 + ///Content of the template, markdown supported, can contain variable placeholders. 11 #[serde(borrow)] 12 pub content_markdown: jacquard_common::CowStr<'a>, 13 + ///DID of the user who is creating the template. 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 17 + ///Message language. 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 pub lang: std::option::Option<jacquard_common::types::string::Language>, 20 + ///Name of the template. 21 #[serde(borrow)] 22 pub name: jacquard_common::CowStr<'a>, 23 + ///Subject of the message, used in emails. 24 #[serde(borrow)] 25 pub subject: jacquard_common::CowStr<'a>, 26 } 27 + 28 #[jacquard_derive::lexicon] 29 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 30 #[serde(rename_all = "camelCase")] ··· 33 #[serde(borrow)] 34 pub value: crate::tools_ozone::communication::TemplateView<'a>, 35 } 36 + 37 #[jacquard_derive::open_union] 38 #[derive( 39 serde::Serialize, ··· 51 #[serde(rename = "DuplicateTemplateName")] 52 DuplicateTemplateName(std::option::Option<String>), 53 } 54 + 55 impl std::fmt::Display for CreateTemplateError<'_> { 56 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 57 match self { ··· 62 } 63 Ok(()) 64 } 65 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 66 } 67 } 68 + }
+6 -1
crates/jacquard-api/src/tools_ozone/communication/delete_template.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct DeleteTemplateInput<'a> { 5 #[serde(borrow)] 6 pub id: jacquard_common::CowStr<'a>, 7 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct DeleteTemplateInput<'a> { 10 #[serde(borrow)] 11 pub id: jacquard_common::CowStr<'a>, 12 + }
+6 -1
crates/jacquard-api/src/tools_ozone/communication/list_templates.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 pub communication_templates: Vec< 7 crate::tools_ozone::communication::TemplateView<'a>, 8 >, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 pub communication_templates: Vec< 12 crate::tools_ozone::communication::TemplateView<'a>, 13 >, 14 + }
+16 -2
crates/jacquard-api/src/tools_ozone/communication/update_template.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UpdateTemplateInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub content_markdown: std::option::Option<jacquard_common::CowStr<'a>>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 pub disabled: std::option::Option<bool>, 10 #[serde(borrow)] 11 pub id: jacquard_common::CowStr<'a>, 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 13 pub lang: std::option::Option<jacquard_common::types::string::Language>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub name: std::option::Option<jacquard_common::CowStr<'a>>, 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub subject: std::option::Option<jacquard_common::CowStr<'a>>, 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 21 #[serde(borrow)] 22 pub updated_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 23 } 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 29 #[serde(borrow)] 30 pub value: crate::tools_ozone::communication::TemplateView<'a>, 31 } 32 #[jacquard_derive::open_union] 33 #[derive( 34 serde::Serialize, ··· 46 #[serde(rename = "DuplicateTemplateName")] 47 DuplicateTemplateName(std::option::Option<String>), 48 } 49 impl std::fmt::Display for UpdateTemplateError<'_> { 50 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 51 match self { ··· 56 } 57 Ok(()) 58 } 59 - Self::Unknown(_) => write!(f, "Unknown error"), 60 } 61 } 62 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UpdateTemplateInput<'a> { 10 + ///Content of the template, markdown supported, can contain variable placeholders. 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub content_markdown: std::option::Option<jacquard_common::CowStr<'a>>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub disabled: std::option::Option<bool>, 16 + ///ID of the template to be updated. 17 #[serde(borrow)] 18 pub id: jacquard_common::CowStr<'a>, 19 + ///Message language. 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 21 pub lang: std::option::Option<jacquard_common::types::string::Language>, 22 + ///Name of the template. 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 #[serde(borrow)] 25 pub name: std::option::Option<jacquard_common::CowStr<'a>>, 26 + ///Subject of the message, used in emails. 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub subject: std::option::Option<jacquard_common::CowStr<'a>>, 30 + ///DID of the user who is updating the template. 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 #[serde(borrow)] 33 pub updated_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 34 } 35 + 36 #[jacquard_derive::lexicon] 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 38 #[serde(rename_all = "camelCase")] ··· 41 #[serde(borrow)] 42 pub value: crate::tools_ozone::communication::TemplateView<'a>, 43 } 44 + 45 #[jacquard_derive::open_union] 46 #[derive( 47 serde::Serialize, ··· 59 #[serde(rename = "DuplicateTemplateName")] 60 DuplicateTemplateName(std::option::Option<String>), 61 } 62 + 63 impl std::fmt::Display for UpdateTemplateError<'_> { 64 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 65 match self { ··· 70 } 71 Ok(()) 72 } 73 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 74 } 75 } 76 + }
+6 -1
crates/jacquard-api/src/tools_ozone/hosting.rs
··· 1 - pub mod get_account_history;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod get_account_history;
+13 -1
crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 9 #[serde(borrow)] 10 pub handle: std::option::Option<jacquard_common::types::string::Handle<'a>>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 16 #[serde(borrow)] 17 pub email: jacquard_common::CowStr<'a>, 18 } 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 23 #[serde(borrow)] 24 pub email: jacquard_common::CowStr<'a>, 25 } 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] ··· 33 #[serde(borrow)] 34 pub details: EventRecordDetails<'a>, 35 } 36 #[jacquard_derive::open_union] 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 38 #[serde(tag = "$type")] ··· 45 #[serde(borrow)] 46 pub handle: jacquard_common::types::string::Handle<'a>, 47 } 48 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 49 #[serde(rename_all = "camelCase")] 50 pub struct GetAccountHistoryParams<'a> { ··· 59 #[serde(skip_serializing_if = "std::option::Option::is_none")] 60 pub limit: std::option::Option<i64>, 61 } 62 #[jacquard_derive::lexicon] 63 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 64 #[serde(rename_all = "camelCase")] ··· 69 #[serde(borrow)] 70 pub events: Vec<jacquard_common::types::value::Data<'a>>, 71 } 72 #[jacquard_derive::lexicon] 73 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 74 #[serde(rename_all = "camelCase")] 75 - pub struct PasswordUpdated<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 14 #[serde(borrow)] 15 pub handle: std::option::Option<jacquard_common::types::string::Handle<'a>>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 22 #[serde(borrow)] 23 pub email: jacquard_common::CowStr<'a>, 24 } 25 + 26 #[jacquard_derive::lexicon] 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 28 #[serde(rename_all = "camelCase")] ··· 30 #[serde(borrow)] 31 pub email: jacquard_common::CowStr<'a>, 32 } 33 + 34 #[jacquard_derive::lexicon] 35 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 36 #[serde(rename_all = "camelCase")] ··· 41 #[serde(borrow)] 42 pub details: EventRecordDetails<'a>, 43 } 44 + 45 #[jacquard_derive::open_union] 46 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 47 #[serde(tag = "$type")] ··· 54 #[serde(borrow)] 55 pub handle: jacquard_common::types::string::Handle<'a>, 56 } 57 + 58 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 59 #[serde(rename_all = "camelCase")] 60 pub struct GetAccountHistoryParams<'a> { ··· 69 #[serde(skip_serializing_if = "std::option::Option::is_none")] 70 pub limit: std::option::Option<i64>, 71 } 72 + 73 #[jacquard_derive::lexicon] 74 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 75 #[serde(rename_all = "camelCase")] ··· 80 #[serde(borrow)] 81 pub events: Vec<jacquard_common::types::value::Data<'a>>, 82 } 83 + 84 #[jacquard_derive::lexicon] 85 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 86 #[serde(rename_all = "camelCase")] 87 + pub struct PasswordUpdated<'a> {}
+164 -32
crates/jacquard-api/src/tools_ozone/moderation.rs
··· 1 ///Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct AccountEvent<'a> { 6 pub active: bool, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 #[serde(borrow)] ··· 12 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 13 pub timestamp: jacquard_common::types::string::Datetime, 14 } 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>, 31 } 32 ///Statistics about a particular account subject 33 #[jacquard_derive::lexicon] 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 #[serde(rename_all = "camelCase")] 36 pub struct AccountStats<'a> { 37 #[serde(skip_serializing_if = "std::option::Option::is_none")] 38 pub appeal_count: std::option::Option<i64>, 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] 40 pub escalate_count: std::option::Option<i64>, 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 42 pub report_count: std::option::Option<i64>, 43 #[serde(skip_serializing_if = "std::option::Option::is_none")] 44 pub suspend_count: std::option::Option<i64>, 45 #[serde(skip_serializing_if = "std::option::Option::is_none")] 46 pub takedown_count: std::option::Option<i64>, 47 } 48 ///Age assurance info coming directly from users. Only works on DID subjects. 49 #[jacquard_derive::lexicon] 50 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 51 #[serde(rename_all = "camelCase")] 52 pub struct AgeAssuranceEvent<'a> { 53 #[serde(borrow)] 54 pub attempt_id: jacquard_common::CowStr<'a>, 55 #[serde(skip_serializing_if = "std::option::Option::is_none")] 56 #[serde(borrow)] 57 pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>, 58 #[serde(skip_serializing_if = "std::option::Option::is_none")] 59 #[serde(borrow)] 60 pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>, 61 pub created_at: jacquard_common::types::string::Datetime, 62 #[serde(skip_serializing_if = "std::option::Option::is_none")] 63 #[serde(borrow)] 64 pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>, 65 #[serde(skip_serializing_if = "std::option::Option::is_none")] 66 #[serde(borrow)] 67 pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>, 68 #[serde(borrow)] 69 pub status: jacquard_common::CowStr<'a>, 70 } 71 ///Age assurance status override by moderators. Only works on DID subjects. 72 #[jacquard_derive::lexicon] 73 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 74 #[serde(rename_all = "camelCase")] 75 pub struct AgeAssuranceOverrideEvent<'a> { 76 #[serde(borrow)] 77 pub comment: jacquard_common::CowStr<'a>, 78 #[serde(borrow)] 79 pub status: jacquard_common::CowStr<'a>, 80 } 81 #[jacquard_derive::lexicon] 82 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 83 #[serde(rename_all = "camelCase")] ··· 92 pub mime_type: jacquard_common::CowStr<'a>, 93 #[serde(skip_serializing_if = "std::option::Option::is_none")] 94 #[serde(borrow)] 95 - pub moderation: std::option::Option<jacquard_common::types::value::Data<'a>>, 96 pub size: i64, 97 } 98 #[jacquard_derive::open_union] 99 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 100 #[serde(tag = "$type")] ··· 118 #[serde(skip_serializing_if = "std::option::Option::is_none")] 119 pub tombstone: std::option::Option<bool>, 120 } 121 #[jacquard_derive::lexicon] 122 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 123 #[serde(rename_all = "camelCase")] ··· 125 pub height: i64, 126 pub width: i64, 127 } 128 #[jacquard_derive::lexicon] 129 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 130 #[serde(rename_all = "camelCase")] 131 pub struct ModEventAcknowledge<'a> { 132 #[serde(skip_serializing_if = "std::option::Option::is_none")] 133 pub acknowledge_account_subjects: std::option::Option<bool>, 134 #[serde(skip_serializing_if = "std::option::Option::is_none")] 135 #[serde(borrow)] 136 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 137 } 138 ///Add a comment to a subject. An empty comment will clear any previously set sticky comment. 139 #[jacquard_derive::lexicon] 140 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 143 #[serde(skip_serializing_if = "std::option::Option::is_none")] 144 #[serde(borrow)] 145 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 146 #[serde(skip_serializing_if = "std::option::Option::is_none")] 147 pub sticky: std::option::Option<bool>, 148 } 149 ///Divert a record's blobs to a 3rd party service for further scanning/tagging 150 #[jacquard_derive::lexicon] 151 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 155 #[serde(borrow)] 156 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 157 } 158 ///Keep a log of outgoing email to a user 159 #[jacquard_derive::lexicon] 160 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 161 #[serde(rename_all = "camelCase")] 162 pub struct ModEventEmail<'a> { 163 #[serde(skip_serializing_if = "std::option::Option::is_none")] 164 #[serde(borrow)] 165 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 166 #[serde(skip_serializing_if = "std::option::Option::is_none")] 167 #[serde(borrow)] 168 pub content: std::option::Option<jacquard_common::CowStr<'a>>, 169 #[serde(borrow)] 170 pub subject_line: jacquard_common::CowStr<'a>, 171 } 172 #[jacquard_derive::lexicon] 173 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 174 #[serde(rename_all = "camelCase")] ··· 177 #[serde(borrow)] 178 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 179 } 180 ///Apply/Negate labels on a subject 181 #[jacquard_derive::lexicon] 182 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 187 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 188 #[serde(borrow)] 189 pub create_label_vals: Vec<jacquard_common::CowStr<'a>>, 190 #[serde(skip_serializing_if = "std::option::Option::is_none")] 191 pub duration_in_hours: std::option::Option<i64>, 192 #[serde(borrow)] 193 pub negate_label_vals: Vec<jacquard_common::CowStr<'a>>, 194 } 195 ///Mute incoming reports on a subject 196 #[jacquard_derive::lexicon] 197 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 200 #[serde(skip_serializing_if = "std::option::Option::is_none")] 201 #[serde(borrow)] 202 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 203 pub duration_in_hours: i64, 204 } 205 ///Mute incoming reports from an account 206 #[jacquard_derive::lexicon] 207 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 210 #[serde(skip_serializing_if = "std::option::Option::is_none")] 211 #[serde(borrow)] 212 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 213 #[serde(skip_serializing_if = "std::option::Option::is_none")] 214 pub duration_in_hours: std::option::Option<i64>, 215 } 216 ///Set priority score of the subject. Higher score means higher priority. 217 #[jacquard_derive::lexicon] 218 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 223 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 224 pub score: i64, 225 } 226 ///Report a subject 227 #[jacquard_derive::lexicon] 228 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 231 #[serde(skip_serializing_if = "std::option::Option::is_none")] 232 #[serde(borrow)] 233 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 234 #[serde(skip_serializing_if = "std::option::Option::is_none")] 235 pub is_reporter_muted: std::option::Option<bool>, 236 #[serde(borrow)] 237 pub report_type: crate::com_atproto::moderation::ReasonType<'a>, 238 } 239 ///Resolve appeal on a subject 240 #[jacquard_derive::lexicon] 241 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 242 #[serde(rename_all = "camelCase")] 243 pub struct ModEventResolveAppeal<'a> { 244 #[serde(skip_serializing_if = "std::option::Option::is_none")] 245 #[serde(borrow)] 246 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 247 } 248 ///Revert take down action on a subject 249 #[jacquard_derive::lexicon] 250 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 251 #[serde(rename_all = "camelCase")] 252 pub struct ModEventReverseTakedown<'a> { 253 #[serde(skip_serializing_if = "std::option::Option::is_none")] 254 #[serde(borrow)] 255 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 256 } 257 ///Add/Remove a tag on a subject 258 #[jacquard_derive::lexicon] 259 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 260 #[serde(rename_all = "camelCase")] 261 pub struct ModEventTag<'a> { 262 #[serde(borrow)] 263 pub add: Vec<jacquard_common::CowStr<'a>>, 264 #[serde(skip_serializing_if = "std::option::Option::is_none")] 265 #[serde(borrow)] 266 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 267 #[serde(borrow)] 268 pub remove: Vec<jacquard_common::CowStr<'a>>, 269 } 270 ///Take down a subject permanently or temporarily 271 #[jacquard_derive::lexicon] 272 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 273 #[serde(rename_all = "camelCase")] 274 pub struct ModEventTakedown<'a> { 275 #[serde(skip_serializing_if = "std::option::Option::is_none")] 276 pub acknowledge_account_subjects: std::option::Option<bool>, 277 #[serde(skip_serializing_if = "std::option::Option::is_none")] 278 #[serde(borrow)] 279 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 280 #[serde(skip_serializing_if = "std::option::Option::is_none")] 281 pub duration_in_hours: std::option::Option<i64>, 282 #[serde(skip_serializing_if = "std::option::Option::is_none")] 283 #[serde(borrow)] 284 pub policies: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 285 } 286 ///Unmute action on a subject 287 #[jacquard_derive::lexicon] 288 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 289 #[serde(rename_all = "camelCase")] 290 pub struct ModEventUnmute<'a> { 291 #[serde(skip_serializing_if = "std::option::Option::is_none")] 292 #[serde(borrow)] 293 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 294 } 295 ///Unmute incoming reports from an account 296 #[jacquard_derive::lexicon] 297 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 298 #[serde(rename_all = "camelCase")] 299 pub struct ModEventUnmuteReporter<'a> { 300 #[serde(skip_serializing_if = "std::option::Option::is_none")] 301 #[serde(borrow)] 302 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 303 } 304 #[jacquard_derive::lexicon] 305 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 306 #[serde(rename_all = "camelCase")] ··· 316 pub id: i64, 317 #[serde(skip_serializing_if = "std::option::Option::is_none")] 318 #[serde(borrow)] 319 - pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>, 320 #[serde(borrow)] 321 pub subject: ModEventViewRecordSubject<'a>, 322 #[serde(borrow)] ··· 325 #[serde(borrow)] 326 pub subject_handle: std::option::Option<jacquard_common::CowStr<'a>>, 327 } 328 #[jacquard_derive::open_union] 329 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 330 #[serde(tag = "$type")] ··· 342 #[serde(rename = "chat.bsky.convo.defs#messageRef")] 343 DefsMessageRef(Box<crate::chat_bsky::convo::MessageRef<'a>>), 344 } 345 #[jacquard_derive::lexicon] 346 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 347 #[serde(rename_all = "camelCase")] ··· 354 pub id: i64, 355 #[serde(skip_serializing_if = "std::option::Option::is_none")] 356 #[serde(borrow)] 357 - pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>, 358 #[serde(borrow)] 359 pub subject: ModEventViewDetailRecordSubject<'a>, 360 #[serde(borrow)] 361 - pub subject_blobs: Vec<jacquard_common::types::value::Data<'a>>, 362 } 363 #[jacquard_derive::open_union] 364 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 365 #[serde(tag = "$type")] ··· 375 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 376 #[serde(rename_all = "camelCase")] 377 pub struct ModTool<'a> { 378 #[serde(skip_serializing_if = "std::option::Option::is_none")] 379 #[serde(borrow)] 380 pub meta: std::option::Option<jacquard_common::types::value::Data<'a>>, 381 #[serde(borrow)] 382 pub name: jacquard_common::CowStr<'a>, 383 } 384 #[jacquard_derive::lexicon] 385 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 386 #[serde(rename_all = "camelCase")] 387 pub struct Moderation<'a> { 388 #[serde(skip_serializing_if = "std::option::Option::is_none")] 389 #[serde(borrow)] 390 - pub subject_status: std::option::Option<jacquard_common::types::value::Data<'a>>, 391 } 392 #[jacquard_derive::lexicon] 393 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 394 #[serde(rename_all = "camelCase")] 395 pub struct ModerationDetail<'a> { 396 #[serde(skip_serializing_if = "std::option::Option::is_none")] 397 #[serde(borrow)] 398 - pub subject_status: std::option::Option<jacquard_common::types::value::Data<'a>>, 399 } 400 ///Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. 401 #[jacquard_derive::lexicon] 402 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 412 pub op: jacquard_common::CowStr<'a>, 413 pub timestamp: jacquard_common::types::string::Datetime, 414 } 415 #[jacquard_derive::lexicon] 416 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 417 #[serde(rename_all = "camelCase")] ··· 425 #[serde(skip_serializing_if = "std::option::Option::is_none")] 426 pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>, 427 } 428 #[jacquard_derive::lexicon] 429 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 430 #[serde(rename_all = "camelCase")] ··· 435 pub cid: jacquard_common::types::string::Cid<'a>, 436 pub indexed_at: jacquard_common::types::string::Datetime, 437 #[serde(borrow)] 438 - pub moderation: jacquard_common::types::value::Data<'a>, 439 #[serde(borrow)] 440 - pub repo: jacquard_common::types::value::Data<'a>, 441 #[serde(borrow)] 442 pub uri: jacquard_common::types::string::AtUri<'a>, 443 #[serde(borrow)] 444 pub value: jacquard_common::types::value::Data<'a>, 445 } 446 #[jacquard_derive::lexicon] 447 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 448 #[serde(rename_all = "camelCase")] 449 pub struct RecordViewDetail<'a> { 450 #[serde(borrow)] 451 - pub blobs: Vec<jacquard_common::types::value::Data<'a>>, 452 #[serde(borrow)] 453 pub cid: jacquard_common::types::string::Cid<'a>, 454 pub indexed_at: jacquard_common::types::string::Datetime, ··· 456 #[serde(borrow)] 457 pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>, 458 #[serde(borrow)] 459 - pub moderation: jacquard_common::types::value::Data<'a>, 460 #[serde(borrow)] 461 - pub repo: jacquard_common::types::value::Data<'a>, 462 #[serde(borrow)] 463 pub uri: jacquard_common::types::string::AtUri<'a>, 464 #[serde(borrow)] 465 pub value: jacquard_common::types::value::Data<'a>, 466 } 467 #[jacquard_derive::lexicon] 468 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 469 #[serde(rename_all = "camelCase")] ··· 471 #[serde(borrow)] 472 pub uri: jacquard_common::types::string::AtUri<'a>, 473 } 474 ///Statistics about a set of record subject items 475 #[jacquard_derive::lexicon] 476 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 477 #[serde(rename_all = "camelCase")] 478 pub struct RecordsStats<'a> { 479 #[serde(skip_serializing_if = "std::option::Option::is_none")] 480 pub appealed_count: std::option::Option<i64>, 481 #[serde(skip_serializing_if = "std::option::Option::is_none")] 482 pub escalated_count: std::option::Option<i64>, 483 #[serde(skip_serializing_if = "std::option::Option::is_none")] 484 pub pending_count: std::option::Option<i64>, 485 #[serde(skip_serializing_if = "std::option::Option::is_none")] 486 pub processed_count: std::option::Option<i64>, 487 #[serde(skip_serializing_if = "std::option::Option::is_none")] 488 pub reported_count: std::option::Option<i64>, 489 #[serde(skip_serializing_if = "std::option::Option::is_none")] 490 pub subject_count: std::option::Option<i64>, 491 #[serde(skip_serializing_if = "std::option::Option::is_none")] 492 pub takendown_count: std::option::Option<i64>, 493 #[serde(skip_serializing_if = "std::option::Option::is_none")] 494 pub total_reports: std::option::Option<i64>, 495 } 496 #[jacquard_derive::lexicon] 497 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 498 #[serde(rename_all = "camelCase")] ··· 516 #[serde(skip_serializing_if = "std::option::Option::is_none")] 517 pub invites_disabled: std::option::Option<bool>, 518 #[serde(borrow)] 519 - pub moderation: jacquard_common::types::value::Data<'a>, 520 #[serde(borrow)] 521 pub related_records: Vec<jacquard_common::types::value::Data<'a>>, 522 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 525 Vec<crate::com_atproto::admin::ThreatSignature<'a>>, 526 >, 527 } 528 #[jacquard_derive::lexicon] 529 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 530 #[serde(rename_all = "camelCase")] ··· 558 #[serde(borrow)] 559 pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>, 560 #[serde(borrow)] 561 - pub moderation: jacquard_common::types::value::Data<'a>, 562 #[serde(borrow)] 563 pub related_records: Vec<jacquard_common::types::value::Data<'a>>, 564 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 567 Vec<crate::com_atproto::admin::ThreatSignature<'a>>, 568 >, 569 } 570 #[jacquard_derive::lexicon] 571 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 572 #[serde(rename_all = "camelCase")] ··· 574 #[serde(borrow)] 575 pub did: jacquard_common::types::string::Did<'a>, 576 } 577 #[jacquard_derive::lexicon] 578 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 579 #[serde(rename_all = "camelCase")] 580 pub struct ReporterStats<'a> { 581 pub account_report_count: i64, 582 #[serde(borrow)] 583 pub did: jacquard_common::types::string::Did<'a>, 584 pub labeled_account_count: i64, 585 pub labeled_record_count: i64, 586 pub record_report_count: i64, 587 pub reported_account_count: i64, 588 pub reported_record_count: i64, 589 pub takendown_account_count: i64, 590 pub takendown_record_count: i64, 591 } 592 ///Account credentials revocation by moderators. Only works on DID subjects. 593 #[jacquard_derive::lexicon] 594 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 595 #[serde(rename_all = "camelCase")] 596 pub struct RevokeAccountCredentialsEvent<'a> { 597 #[serde(borrow)] 598 pub comment: jacquard_common::CowStr<'a>, 599 } 600 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 601 pub enum SubjectReviewState<'a> { 602 ReviewOpen, ··· 605 ReviewNone, 606 Other(jacquard_common::CowStr<'a>), 607 } 608 impl<'a> SubjectReviewState<'a> { 609 pub fn as_str(&self) -> &str { 610 match self { ··· 616 } 617 } 618 } 619 impl<'a> From<&'a str> for SubjectReviewState<'a> { 620 fn from(s: &'a str) -> Self { 621 match s { ··· 627 } 628 } 629 } 630 impl<'a> From<String> for SubjectReviewState<'a> { 631 fn from(s: String) -> Self { 632 match s.as_str() { ··· 638 } 639 } 640 } 641 impl<'a> AsRef<str> for SubjectReviewState<'a> { 642 fn as_ref(&self) -> &str { 643 self.as_str() 644 } 645 } 646 impl<'a> serde::Serialize for SubjectReviewState<'a> { 647 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 648 where ··· 651 serializer.serialize_str(self.as_str()) 652 } 653 } 654 impl<'de, 'a> serde::Deserialize<'de> for SubjectReviewState<'a> 655 where 656 'de: 'a, ··· 663 Ok(Self::from(s)) 664 } 665 } 666 #[jacquard_derive::lexicon] 667 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 668 #[serde(rename_all = "camelCase")] 669 pub struct SubjectStatusView<'a> { 670 #[serde(skip_serializing_if = "std::option::Option::is_none")] 671 #[serde(borrow)] 672 - pub account_stats: std::option::Option<jacquard_common::types::value::Data<'a>>, 673 #[serde(skip_serializing_if = "std::option::Option::is_none")] 674 #[serde(borrow)] 675 pub age_assurance_state: std::option::Option<jacquard_common::CowStr<'a>>, 676 #[serde(skip_serializing_if = "std::option::Option::is_none")] 677 #[serde(borrow)] 678 pub age_assurance_updated_by: std::option::Option<jacquard_common::CowStr<'a>>, 679 #[serde(skip_serializing_if = "std::option::Option::is_none")] 680 pub appealed: std::option::Option<bool>, 681 #[serde(skip_serializing_if = "std::option::Option::is_none")] 682 #[serde(borrow)] 683 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 684 pub created_at: jacquard_common::types::string::Datetime, 685 #[serde(skip_serializing_if = "std::option::Option::is_none")] 686 #[serde(borrow)] 687 pub hosting: std::option::Option<SubjectStatusViewRecordHosting<'a>>, 688 pub id: i64, 689 #[serde(skip_serializing_if = "std::option::Option::is_none")] 690 pub last_appealed_at: std::option::Option<jacquard_common::types::string::Datetime>, 691 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 701 >, 702 #[serde(skip_serializing_if = "std::option::Option::is_none")] 703 pub mute_until: std::option::Option<jacquard_common::types::string::Datetime>, 704 #[serde(skip_serializing_if = "std::option::Option::is_none")] 705 pub priority_score: std::option::Option<i64>, 706 #[serde(skip_serializing_if = "std::option::Option::is_none")] 707 #[serde(borrow)] 708 - pub records_stats: std::option::Option<jacquard_common::types::value::Data<'a>>, 709 #[serde(borrow)] 710 - pub review_state: jacquard_common::types::value::Data<'a>, 711 #[serde(borrow)] 712 pub subject: SubjectStatusViewRecordSubject<'a>, 713 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 725 pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 726 #[serde(skip_serializing_if = "std::option::Option::is_none")] 727 pub takendown: std::option::Option<bool>, 728 pub updated_at: jacquard_common::types::string::Datetime, 729 } 730 #[jacquard_derive::open_union] 731 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 732 #[serde(tag = "$type")] ··· 744 #[serde(rename = "chat.bsky.convo.defs#messageRef")] 745 DefsMessageRef(Box<crate::chat_bsky::convo::MessageRef<'a>>), 746 } 747 ///Detailed view of a subject. For record subjects, the author's repo and profile will be returned. 748 #[jacquard_derive::lexicon] 749 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 754 pub profile: std::option::Option<SubjectViewRecordProfile<'a>>, 755 #[serde(skip_serializing_if = "std::option::Option::is_none")] 756 #[serde(borrow)] 757 - pub record: std::option::Option<jacquard_common::types::value::Data<'a>>, 758 #[serde(skip_serializing_if = "std::option::Option::is_none")] 759 #[serde(borrow)] 760 - pub repo: std::option::Option<jacquard_common::types::value::Data<'a>>, 761 #[serde(skip_serializing_if = "std::option::Option::is_none")] 762 #[serde(borrow)] 763 - pub status: std::option::Option<jacquard_common::types::value::Data<'a>>, 764 #[serde(borrow)] 765 pub subject: jacquard_common::CowStr<'a>, 766 #[serde(borrow)] 767 pub r#type: crate::com_atproto::moderation::SubjectType<'a>, 768 } 769 #[jacquard_derive::open_union] 770 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 771 #[serde(tag = "$type")] ··· 778 pub height: i64, 779 pub length: i64, 780 pub width: i64, 781 - } 782 - pub mod emit_event; 783 - pub mod get_account_timeline; 784 - pub mod get_event; 785 - pub mod get_record; 786 - pub mod get_records; 787 - pub mod get_repo; 788 - pub mod get_reporter_stats; 789 - pub mod get_repos; 790 - pub mod get_subjects; 791 - pub mod query_events; 792 - pub mod query_statuses; 793 - pub mod search_repos;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod emit_event; 7 + pub mod get_account_timeline; 8 + pub mod get_event; 9 + pub mod get_record; 10 + pub mod get_records; 11 + pub mod get_repo; 12 + pub mod get_reporter_stats; 13 + pub mod get_repos; 14 + pub mod get_subjects; 15 + pub mod query_events; 16 + pub mod query_statuses; 17 + pub mod search_repos; 18 + 19 ///Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] 23 pub struct AccountEvent<'a> { 24 + ///Indicates that the account has a repository which can be fetched from the host that emitted this event. 25 pub active: bool, 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 #[serde(borrow)] ··· 31 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 32 pub timestamp: jacquard_common::types::string::Datetime, 33 } 34 + 35 #[jacquard_derive::lexicon] 36 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 37 #[serde(rename_all = "camelCase")] ··· 49 #[serde(skip_serializing_if = "std::option::Option::is_none")] 50 pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>, 51 } 52 + 53 ///Statistics about a particular account subject 54 #[jacquard_derive::lexicon] 55 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 56 #[serde(rename_all = "camelCase")] 57 pub struct AccountStats<'a> { 58 + ///Total number of appeals against a moderation action on the account 59 #[serde(skip_serializing_if = "std::option::Option::is_none")] 60 pub appeal_count: std::option::Option<i64>, 61 + ///Number of times the account was escalated 62 #[serde(skip_serializing_if = "std::option::Option::is_none")] 63 pub escalate_count: std::option::Option<i64>, 64 + ///Total number of reports on the account 65 #[serde(skip_serializing_if = "std::option::Option::is_none")] 66 pub report_count: std::option::Option<i64>, 67 + ///Number of times the account was suspended 68 #[serde(skip_serializing_if = "std::option::Option::is_none")] 69 pub suspend_count: std::option::Option<i64>, 70 + ///Number of times the account was taken down 71 #[serde(skip_serializing_if = "std::option::Option::is_none")] 72 pub takedown_count: std::option::Option<i64>, 73 } 74 + 75 ///Age assurance info coming directly from users. Only works on DID subjects. 76 #[jacquard_derive::lexicon] 77 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 78 #[serde(rename_all = "camelCase")] 79 pub struct AgeAssuranceEvent<'a> { 80 + ///The unique identifier for this instance of the age assurance flow, in UUID format. 81 #[serde(borrow)] 82 pub attempt_id: jacquard_common::CowStr<'a>, 83 + ///The IP address used when completing the AA flow. 84 #[serde(skip_serializing_if = "std::option::Option::is_none")] 85 #[serde(borrow)] 86 pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>, 87 + ///The user agent used when completing the AA flow. 88 #[serde(skip_serializing_if = "std::option::Option::is_none")] 89 #[serde(borrow)] 90 pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>, 91 + ///The date and time of this write operation. 92 pub created_at: jacquard_common::types::string::Datetime, 93 + ///The IP address used when initiating the AA flow. 94 #[serde(skip_serializing_if = "std::option::Option::is_none")] 95 #[serde(borrow)] 96 pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>, 97 + ///The user agent used when initiating the AA flow. 98 #[serde(skip_serializing_if = "std::option::Option::is_none")] 99 #[serde(borrow)] 100 pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>, 101 + ///The status of the age assurance process. 102 #[serde(borrow)] 103 pub status: jacquard_common::CowStr<'a>, 104 } 105 + 106 ///Age assurance status override by moderators. Only works on DID subjects. 107 #[jacquard_derive::lexicon] 108 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 109 #[serde(rename_all = "camelCase")] 110 pub struct AgeAssuranceOverrideEvent<'a> { 111 + ///Comment describing the reason for the override. 112 #[serde(borrow)] 113 pub comment: jacquard_common::CowStr<'a>, 114 + ///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. 115 #[serde(borrow)] 116 pub status: jacquard_common::CowStr<'a>, 117 } 118 + 119 #[jacquard_derive::lexicon] 120 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 121 #[serde(rename_all = "camelCase")] ··· 130 pub mime_type: jacquard_common::CowStr<'a>, 131 #[serde(skip_serializing_if = "std::option::Option::is_none")] 132 #[serde(borrow)] 133 + pub moderation: std::option::Option<crate::tools_ozone::moderation::Moderation<'a>>, 134 pub size: i64, 135 } 136 + 137 #[jacquard_derive::open_union] 138 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 139 #[serde(tag = "$type")] ··· 157 #[serde(skip_serializing_if = "std::option::Option::is_none")] 158 pub tombstone: std::option::Option<bool>, 159 } 160 + 161 #[jacquard_derive::lexicon] 162 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 163 #[serde(rename_all = "camelCase")] ··· 165 pub height: i64, 166 pub width: i64, 167 } 168 + 169 #[jacquard_derive::lexicon] 170 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 171 #[serde(rename_all = "camelCase")] 172 pub struct ModEventAcknowledge<'a> { 173 + ///If true, all other reports on content authored by this account will be resolved (acknowledged). 174 #[serde(skip_serializing_if = "std::option::Option::is_none")] 175 pub acknowledge_account_subjects: std::option::Option<bool>, 176 #[serde(skip_serializing_if = "std::option::Option::is_none")] 177 #[serde(borrow)] 178 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 179 } 180 + 181 ///Add a comment to a subject. An empty comment will clear any previously set sticky comment. 182 #[jacquard_derive::lexicon] 183 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 186 #[serde(skip_serializing_if = "std::option::Option::is_none")] 187 #[serde(borrow)] 188 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 189 + ///Make the comment persistent on the subject 190 #[serde(skip_serializing_if = "std::option::Option::is_none")] 191 pub sticky: std::option::Option<bool>, 192 } 193 + 194 ///Divert a record's blobs to a 3rd party service for further scanning/tagging 195 #[jacquard_derive::lexicon] 196 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 200 #[serde(borrow)] 201 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 202 } 203 + 204 ///Keep a log of outgoing email to a user 205 #[jacquard_derive::lexicon] 206 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 207 #[serde(rename_all = "camelCase")] 208 pub struct ModEventEmail<'a> { 209 + ///Additional comment about the outgoing comm. 210 #[serde(skip_serializing_if = "std::option::Option::is_none")] 211 #[serde(borrow)] 212 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 213 + ///The content of the email sent to the user. 214 #[serde(skip_serializing_if = "std::option::Option::is_none")] 215 #[serde(borrow)] 216 pub content: std::option::Option<jacquard_common::CowStr<'a>>, 217 + ///The subject line of the email sent to the user. 218 #[serde(borrow)] 219 pub subject_line: jacquard_common::CowStr<'a>, 220 } 221 + 222 #[jacquard_derive::lexicon] 223 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 224 #[serde(rename_all = "camelCase")] ··· 227 #[serde(borrow)] 228 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 229 } 230 + 231 ///Apply/Negate labels on a subject 232 #[jacquard_derive::lexicon] 233 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 238 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 239 #[serde(borrow)] 240 pub create_label_vals: Vec<jacquard_common::CowStr<'a>>, 241 + ///Indicates how long the label will remain on the subject. Only applies on labels that are being added. 242 #[serde(skip_serializing_if = "std::option::Option::is_none")] 243 pub duration_in_hours: std::option::Option<i64>, 244 #[serde(borrow)] 245 pub negate_label_vals: Vec<jacquard_common::CowStr<'a>>, 246 } 247 + 248 ///Mute incoming reports on a subject 249 #[jacquard_derive::lexicon] 250 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 253 #[serde(skip_serializing_if = "std::option::Option::is_none")] 254 #[serde(borrow)] 255 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 256 + ///Indicates how long the subject should remain muted. 257 pub duration_in_hours: i64, 258 } 259 + 260 ///Mute incoming reports from an account 261 #[jacquard_derive::lexicon] 262 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 265 #[serde(skip_serializing_if = "std::option::Option::is_none")] 266 #[serde(borrow)] 267 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 268 + ///Indicates how long the account should remain muted. Falsy value here means a permanent mute. 269 #[serde(skip_serializing_if = "std::option::Option::is_none")] 270 pub duration_in_hours: std::option::Option<i64>, 271 } 272 + 273 ///Set priority score of the subject. Higher score means higher priority. 274 #[jacquard_derive::lexicon] 275 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 280 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 281 pub score: i64, 282 } 283 + 284 ///Report a subject 285 #[jacquard_derive::lexicon] 286 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 289 #[serde(skip_serializing_if = "std::option::Option::is_none")] 290 #[serde(borrow)] 291 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 292 + ///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. 293 #[serde(skip_serializing_if = "std::option::Option::is_none")] 294 pub is_reporter_muted: std::option::Option<bool>, 295 #[serde(borrow)] 296 pub report_type: crate::com_atproto::moderation::ReasonType<'a>, 297 } 298 + 299 ///Resolve appeal on a subject 300 #[jacquard_derive::lexicon] 301 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 302 #[serde(rename_all = "camelCase")] 303 pub struct ModEventResolveAppeal<'a> { 304 + ///Describe resolution. 305 #[serde(skip_serializing_if = "std::option::Option::is_none")] 306 #[serde(borrow)] 307 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 308 } 309 + 310 ///Revert take down action on a subject 311 #[jacquard_derive::lexicon] 312 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 313 #[serde(rename_all = "camelCase")] 314 pub struct ModEventReverseTakedown<'a> { 315 + ///Describe reasoning behind the reversal. 316 #[serde(skip_serializing_if = "std::option::Option::is_none")] 317 #[serde(borrow)] 318 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 319 } 320 + 321 ///Add/Remove a tag on a subject 322 #[jacquard_derive::lexicon] 323 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 324 #[serde(rename_all = "camelCase")] 325 pub struct ModEventTag<'a> { 326 + ///Tags to be added to the subject. If already exists, won't be duplicated. 327 #[serde(borrow)] 328 pub add: Vec<jacquard_common::CowStr<'a>>, 329 + ///Additional comment about added/removed tags. 330 #[serde(skip_serializing_if = "std::option::Option::is_none")] 331 #[serde(borrow)] 332 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 333 + ///Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. 334 #[serde(borrow)] 335 pub remove: Vec<jacquard_common::CowStr<'a>>, 336 } 337 + 338 ///Take down a subject permanently or temporarily 339 #[jacquard_derive::lexicon] 340 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 341 #[serde(rename_all = "camelCase")] 342 pub struct ModEventTakedown<'a> { 343 + ///If true, all other reports on content authored by this account will be resolved (acknowledged). 344 #[serde(skip_serializing_if = "std::option::Option::is_none")] 345 pub acknowledge_account_subjects: std::option::Option<bool>, 346 #[serde(skip_serializing_if = "std::option::Option::is_none")] 347 #[serde(borrow)] 348 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 349 + ///Indicates how long the takedown should be in effect before automatically expiring. 350 #[serde(skip_serializing_if = "std::option::Option::is_none")] 351 pub duration_in_hours: std::option::Option<i64>, 352 + ///Names/Keywords of the policies that drove the decision. 353 #[serde(skip_serializing_if = "std::option::Option::is_none")] 354 #[serde(borrow)] 355 pub policies: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 356 } 357 + 358 ///Unmute action on a subject 359 #[jacquard_derive::lexicon] 360 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 361 #[serde(rename_all = "camelCase")] 362 pub struct ModEventUnmute<'a> { 363 + ///Describe reasoning behind the reversal. 364 #[serde(skip_serializing_if = "std::option::Option::is_none")] 365 #[serde(borrow)] 366 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 367 } 368 + 369 ///Unmute incoming reports from an account 370 #[jacquard_derive::lexicon] 371 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 372 #[serde(rename_all = "camelCase")] 373 pub struct ModEventUnmuteReporter<'a> { 374 + ///Describe reasoning behind the reversal. 375 #[serde(skip_serializing_if = "std::option::Option::is_none")] 376 #[serde(borrow)] 377 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 378 } 379 + 380 #[jacquard_derive::lexicon] 381 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 382 #[serde(rename_all = "camelCase")] ··· 392 pub id: i64, 393 #[serde(skip_serializing_if = "std::option::Option::is_none")] 394 #[serde(borrow)] 395 + pub mod_tool: std::option::Option<crate::tools_ozone::moderation::ModTool<'a>>, 396 #[serde(borrow)] 397 pub subject: ModEventViewRecordSubject<'a>, 398 #[serde(borrow)] ··· 401 #[serde(borrow)] 402 pub subject_handle: std::option::Option<jacquard_common::CowStr<'a>>, 403 } 404 + 405 #[jacquard_derive::open_union] 406 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 407 #[serde(tag = "$type")] ··· 419 #[serde(rename = "chat.bsky.convo.defs#messageRef")] 420 DefsMessageRef(Box<crate::chat_bsky::convo::MessageRef<'a>>), 421 } 422 + 423 #[jacquard_derive::lexicon] 424 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 425 #[serde(rename_all = "camelCase")] ··· 432 pub id: i64, 433 #[serde(skip_serializing_if = "std::option::Option::is_none")] 434 #[serde(borrow)] 435 + pub mod_tool: std::option::Option<crate::tools_ozone::moderation::ModTool<'a>>, 436 #[serde(borrow)] 437 pub subject: ModEventViewDetailRecordSubject<'a>, 438 #[serde(borrow)] 439 + pub subject_blobs: Vec<crate::tools_ozone::moderation::BlobView<'a>>, 440 } 441 + 442 #[jacquard_derive::open_union] 443 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 444 #[serde(tag = "$type")] ··· 454 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 455 #[serde(rename_all = "camelCase")] 456 pub struct ModTool<'a> { 457 + ///Additional arbitrary metadata about the source 458 #[serde(skip_serializing_if = "std::option::Option::is_none")] 459 #[serde(borrow)] 460 pub meta: std::option::Option<jacquard_common::types::value::Data<'a>>, 461 + ///Name/identifier of the source (e.g., 'automod', 'ozone/workspace') 462 #[serde(borrow)] 463 pub name: jacquard_common::CowStr<'a>, 464 } 465 + 466 #[jacquard_derive::lexicon] 467 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 468 #[serde(rename_all = "camelCase")] 469 pub struct Moderation<'a> { 470 #[serde(skip_serializing_if = "std::option::Option::is_none")] 471 #[serde(borrow)] 472 + pub subject_status: std::option::Option< 473 + crate::tools_ozone::moderation::SubjectStatusView<'a>, 474 + >, 475 } 476 + 477 #[jacquard_derive::lexicon] 478 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 479 #[serde(rename_all = "camelCase")] 480 pub struct ModerationDetail<'a> { 481 #[serde(skip_serializing_if = "std::option::Option::is_none")] 482 #[serde(borrow)] 483 + pub subject_status: std::option::Option< 484 + crate::tools_ozone::moderation::SubjectStatusView<'a>, 485 + >, 486 } 487 + 488 ///Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. 489 #[jacquard_derive::lexicon] 490 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 500 pub op: jacquard_common::CowStr<'a>, 501 pub timestamp: jacquard_common::types::string::Datetime, 502 } 503 + 504 #[jacquard_derive::lexicon] 505 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 506 #[serde(rename_all = "camelCase")] ··· 514 #[serde(skip_serializing_if = "std::option::Option::is_none")] 515 pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>, 516 } 517 + 518 #[jacquard_derive::lexicon] 519 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 520 #[serde(rename_all = "camelCase")] ··· 525 pub cid: jacquard_common::types::string::Cid<'a>, 526 pub indexed_at: jacquard_common::types::string::Datetime, 527 #[serde(borrow)] 528 + pub moderation: crate::tools_ozone::moderation::Moderation<'a>, 529 #[serde(borrow)] 530 + pub repo: crate::tools_ozone::moderation::RepoView<'a>, 531 #[serde(borrow)] 532 pub uri: jacquard_common::types::string::AtUri<'a>, 533 #[serde(borrow)] 534 pub value: jacquard_common::types::value::Data<'a>, 535 } 536 + 537 #[jacquard_derive::lexicon] 538 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 539 #[serde(rename_all = "camelCase")] 540 pub struct RecordViewDetail<'a> { 541 #[serde(borrow)] 542 + pub blobs: Vec<crate::tools_ozone::moderation::BlobView<'a>>, 543 #[serde(borrow)] 544 pub cid: jacquard_common::types::string::Cid<'a>, 545 pub indexed_at: jacquard_common::types::string::Datetime, ··· 547 #[serde(borrow)] 548 pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>, 549 #[serde(borrow)] 550 + pub moderation: crate::tools_ozone::moderation::ModerationDetail<'a>, 551 #[serde(borrow)] 552 + pub repo: crate::tools_ozone::moderation::RepoView<'a>, 553 #[serde(borrow)] 554 pub uri: jacquard_common::types::string::AtUri<'a>, 555 #[serde(borrow)] 556 pub value: jacquard_common::types::value::Data<'a>, 557 } 558 + 559 #[jacquard_derive::lexicon] 560 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 561 #[serde(rename_all = "camelCase")] ··· 563 #[serde(borrow)] 564 pub uri: jacquard_common::types::string::AtUri<'a>, 565 } 566 + 567 ///Statistics about a set of record subject items 568 #[jacquard_derive::lexicon] 569 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 570 #[serde(rename_all = "camelCase")] 571 pub struct RecordsStats<'a> { 572 + ///Number of items that were appealed at least once 573 #[serde(skip_serializing_if = "std::option::Option::is_none")] 574 pub appealed_count: std::option::Option<i64>, 575 + ///Number of items that were escalated at least once 576 #[serde(skip_serializing_if = "std::option::Option::is_none")] 577 pub escalated_count: std::option::Option<i64>, 578 + ///Number of item currently in "reviewOpen" or "reviewEscalated" state 579 #[serde(skip_serializing_if = "std::option::Option::is_none")] 580 pub pending_count: std::option::Option<i64>, 581 + ///Number of item currently in "reviewNone" or "reviewClosed" state 582 #[serde(skip_serializing_if = "std::option::Option::is_none")] 583 pub processed_count: std::option::Option<i64>, 584 + ///Number of items that were reported at least once 585 #[serde(skip_serializing_if = "std::option::Option::is_none")] 586 pub reported_count: std::option::Option<i64>, 587 + ///Total number of item in the set 588 #[serde(skip_serializing_if = "std::option::Option::is_none")] 589 pub subject_count: std::option::Option<i64>, 590 + ///Number of item currently taken down 591 #[serde(skip_serializing_if = "std::option::Option::is_none")] 592 pub takendown_count: std::option::Option<i64>, 593 + ///Cumulative sum of the number of reports on the items in the set 594 #[serde(skip_serializing_if = "std::option::Option::is_none")] 595 pub total_reports: std::option::Option<i64>, 596 } 597 + 598 #[jacquard_derive::lexicon] 599 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 600 #[serde(rename_all = "camelCase")] ··· 618 #[serde(skip_serializing_if = "std::option::Option::is_none")] 619 pub invites_disabled: std::option::Option<bool>, 620 #[serde(borrow)] 621 + pub moderation: crate::tools_ozone::moderation::Moderation<'a>, 622 #[serde(borrow)] 623 pub related_records: Vec<jacquard_common::types::value::Data<'a>>, 624 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 627 Vec<crate::com_atproto::admin::ThreatSignature<'a>>, 628 >, 629 } 630 + 631 #[jacquard_derive::lexicon] 632 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 633 #[serde(rename_all = "camelCase")] ··· 661 #[serde(borrow)] 662 pub labels: std::option::Option<Vec<crate::com_atproto::label::Label<'a>>>, 663 #[serde(borrow)] 664 + pub moderation: crate::tools_ozone::moderation::ModerationDetail<'a>, 665 #[serde(borrow)] 666 pub related_records: Vec<jacquard_common::types::value::Data<'a>>, 667 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 670 Vec<crate::com_atproto::admin::ThreatSignature<'a>>, 671 >, 672 } 673 + 674 #[jacquard_derive::lexicon] 675 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 676 #[serde(rename_all = "camelCase")] ··· 678 #[serde(borrow)] 679 pub did: jacquard_common::types::string::Did<'a>, 680 } 681 + 682 #[jacquard_derive::lexicon] 683 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 684 #[serde(rename_all = "camelCase")] 685 pub struct ReporterStats<'a> { 686 + ///The total number of reports made by the user on accounts. 687 pub account_report_count: i64, 688 #[serde(borrow)] 689 pub did: jacquard_common::types::string::Did<'a>, 690 + ///The total number of accounts labeled as a result of the user's reports. 691 pub labeled_account_count: i64, 692 + ///The total number of records labeled as a result of the user's reports. 693 pub labeled_record_count: i64, 694 + ///The total number of reports made by the user on records. 695 pub record_report_count: i64, 696 + ///The total number of accounts reported by the user. 697 pub reported_account_count: i64, 698 + ///The total number of records reported by the user. 699 pub reported_record_count: i64, 700 + ///The total number of accounts taken down as a result of the user's reports. 701 pub takendown_account_count: i64, 702 + ///The total number of records taken down as a result of the user's reports. 703 pub takendown_record_count: i64, 704 } 705 + 706 ///Account credentials revocation by moderators. Only works on DID subjects. 707 #[jacquard_derive::lexicon] 708 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 709 #[serde(rename_all = "camelCase")] 710 pub struct RevokeAccountCredentialsEvent<'a> { 711 + ///Comment describing the reason for the revocation. 712 #[serde(borrow)] 713 pub comment: jacquard_common::CowStr<'a>, 714 } 715 + 716 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 717 pub enum SubjectReviewState<'a> { 718 ReviewOpen, ··· 721 ReviewNone, 722 Other(jacquard_common::CowStr<'a>), 723 } 724 + 725 impl<'a> SubjectReviewState<'a> { 726 pub fn as_str(&self) -> &str { 727 match self { ··· 733 } 734 } 735 } 736 + 737 impl<'a> From<&'a str> for SubjectReviewState<'a> { 738 fn from(s: &'a str) -> Self { 739 match s { ··· 745 } 746 } 747 } 748 + 749 impl<'a> From<String> for SubjectReviewState<'a> { 750 fn from(s: String) -> Self { 751 match s.as_str() { ··· 757 } 758 } 759 } 760 + 761 impl<'a> AsRef<str> for SubjectReviewState<'a> { 762 fn as_ref(&self) -> &str { 763 self.as_str() 764 } 765 } 766 + 767 impl<'a> serde::Serialize for SubjectReviewState<'a> { 768 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 769 where ··· 772 serializer.serialize_str(self.as_str()) 773 } 774 } 775 + 776 impl<'de, 'a> serde::Deserialize<'de> for SubjectReviewState<'a> 777 where 778 'de: 'a, ··· 785 Ok(Self::from(s)) 786 } 787 } 788 + 789 #[jacquard_derive::lexicon] 790 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 791 #[serde(rename_all = "camelCase")] 792 pub struct SubjectStatusView<'a> { 793 + ///Statistics related to the account subject 794 #[serde(skip_serializing_if = "std::option::Option::is_none")] 795 #[serde(borrow)] 796 + pub account_stats: std::option::Option< 797 + crate::tools_ozone::moderation::AccountStats<'a>, 798 + >, 799 + ///Current age assurance state of the subject. 800 #[serde(skip_serializing_if = "std::option::Option::is_none")] 801 #[serde(borrow)] 802 pub age_assurance_state: std::option::Option<jacquard_common::CowStr<'a>>, 803 + ///Whether or not the last successful update to age assurance was made by the user or admin. 804 #[serde(skip_serializing_if = "std::option::Option::is_none")] 805 #[serde(borrow)] 806 pub age_assurance_updated_by: std::option::Option<jacquard_common::CowStr<'a>>, 807 + ///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. 808 #[serde(skip_serializing_if = "std::option::Option::is_none")] 809 pub appealed: std::option::Option<bool>, 810 + ///Sticky comment on the subject. 811 #[serde(skip_serializing_if = "std::option::Option::is_none")] 812 #[serde(borrow)] 813 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 814 + ///Timestamp referencing the first moderation status impacting event was emitted on the subject 815 pub created_at: jacquard_common::types::string::Datetime, 816 #[serde(skip_serializing_if = "std::option::Option::is_none")] 817 #[serde(borrow)] 818 pub hosting: std::option::Option<SubjectStatusViewRecordHosting<'a>>, 819 pub id: i64, 820 + ///Timestamp referencing when the author of the subject appealed a moderation action 821 #[serde(skip_serializing_if = "std::option::Option::is_none")] 822 pub last_appealed_at: std::option::Option<jacquard_common::types::string::Datetime>, 823 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 833 >, 834 #[serde(skip_serializing_if = "std::option::Option::is_none")] 835 pub mute_until: std::option::Option<jacquard_common::types::string::Datetime>, 836 + ///Numeric value representing the level of priority. Higher score means higher priority. 837 #[serde(skip_serializing_if = "std::option::Option::is_none")] 838 pub priority_score: std::option::Option<i64>, 839 + ///Statistics related to the record subjects authored by the subject's account 840 #[serde(skip_serializing_if = "std::option::Option::is_none")] 841 #[serde(borrow)] 842 + pub records_stats: std::option::Option< 843 + crate::tools_ozone::moderation::RecordsStats<'a>, 844 + >, 845 #[serde(borrow)] 846 + pub review_state: crate::tools_ozone::moderation::SubjectReviewState<'a>, 847 #[serde(borrow)] 848 pub subject: SubjectStatusViewRecordSubject<'a>, 849 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 861 pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 862 #[serde(skip_serializing_if = "std::option::Option::is_none")] 863 pub takendown: std::option::Option<bool>, 864 + ///Timestamp referencing when the last update was made to the moderation status of the subject 865 pub updated_at: jacquard_common::types::string::Datetime, 866 } 867 + 868 #[jacquard_derive::open_union] 869 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 870 #[serde(tag = "$type")] ··· 882 #[serde(rename = "chat.bsky.convo.defs#messageRef")] 883 DefsMessageRef(Box<crate::chat_bsky::convo::MessageRef<'a>>), 884 } 885 + 886 ///Detailed view of a subject. For record subjects, the author's repo and profile will be returned. 887 #[jacquard_derive::lexicon] 888 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 893 pub profile: std::option::Option<SubjectViewRecordProfile<'a>>, 894 #[serde(skip_serializing_if = "std::option::Option::is_none")] 895 #[serde(borrow)] 896 + pub record: std::option::Option< 897 + crate::tools_ozone::moderation::RecordViewDetail<'a>, 898 + >, 899 #[serde(skip_serializing_if = "std::option::Option::is_none")] 900 #[serde(borrow)] 901 + pub repo: std::option::Option<crate::tools_ozone::moderation::RepoViewDetail<'a>>, 902 #[serde(skip_serializing_if = "std::option::Option::is_none")] 903 #[serde(borrow)] 904 + pub status: std::option::Option< 905 + crate::tools_ozone::moderation::SubjectStatusView<'a>, 906 + >, 907 #[serde(borrow)] 908 pub subject: jacquard_common::CowStr<'a>, 909 #[serde(borrow)] 910 pub r#type: crate::com_atproto::moderation::SubjectType<'a>, 911 } 912 + 913 #[jacquard_derive::open_union] 914 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 915 #[serde(tag = "$type")] ··· 922 pub height: i64, 923 pub length: i64, 924 pub width: i64, 925 + }
+13 -2
crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 pub created_by: jacquard_common::types::string::Did<'a>, 7 #[serde(borrow)] 8 pub event: EmitEventInputRecordEvent<'a>, 9 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 #[serde(borrow)] 11 pub external_id: std::option::Option<jacquard_common::CowStr<'a>>, ··· 20 Vec<jacquard_common::types::string::Cid<'a>>, 21 >, 22 } 23 #[jacquard_derive::open_union] 24 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 #[serde(tag = "$type")] ··· 86 Box<crate::tools_ozone::moderation::RevokeAccountCredentialsEvent<'a>>, 87 ), 88 } 89 #[jacquard_derive::open_union] 90 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 91 #[serde(tag = "$type")] ··· 96 #[serde(rename = "com.atproto.repo.strongRef")] 97 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 98 } 99 #[jacquard_derive::lexicon] 100 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 101 #[serde(rename_all = "camelCase")] ··· 104 #[serde(borrow)] 105 pub value: crate::tools_ozone::moderation::ModEventView<'a>, 106 } 107 #[jacquard_derive::open_union] 108 #[derive( 109 serde::Serialize, ··· 124 #[serde(rename = "DuplicateExternalId")] 125 DuplicateExternalId(std::option::Option<String>), 126 } 127 impl std::fmt::Display for EmitEventError<'_> { 128 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 129 match self { ··· 141 } 142 Ok(()) 143 } 144 - Self::Unknown(_) => write!(f, "Unknown error"), 145 } 146 } 147 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 pub created_by: jacquard_common::types::string::Did<'a>, 12 #[serde(borrow)] 13 pub event: EmitEventInputRecordEvent<'a>, 14 + ///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. 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 #[serde(borrow)] 17 pub external_id: std::option::Option<jacquard_common::CowStr<'a>>, ··· 26 Vec<jacquard_common::types::string::Cid<'a>>, 27 >, 28 } 29 + 30 #[jacquard_derive::open_union] 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 32 #[serde(tag = "$type")] ··· 93 Box<crate::tools_ozone::moderation::RevokeAccountCredentialsEvent<'a>>, 94 ), 95 } 96 + 97 #[jacquard_derive::open_union] 98 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 99 #[serde(tag = "$type")] ··· 104 #[serde(rename = "com.atproto.repo.strongRef")] 105 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 106 } 107 + 108 #[jacquard_derive::lexicon] 109 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 110 #[serde(rename_all = "camelCase")] ··· 113 #[serde(borrow)] 114 pub value: crate::tools_ozone::moderation::ModEventView<'a>, 115 } 116 + 117 #[jacquard_derive::open_union] 118 #[derive( 119 serde::Serialize, ··· 134 #[serde(rename = "DuplicateExternalId")] 135 DuplicateExternalId(std::option::Option<String>), 136 } 137 + 138 impl std::fmt::Display for EmitEventError<'_> { 139 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 140 match self { ··· 152 } 153 Ok(()) 154 } 155 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 156 } 157 } 158 + }
+15 -3
crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetAccountTimelineParams<'a> { 4 #[serde(borrow)] 5 pub did: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 11 #[serde(borrow)] 12 pub timeline: Vec<jacquard_common::types::value::Data<'a>>, 13 } 14 #[jacquard_derive::open_union] 15 #[derive( 16 serde::Serialize, ··· 28 #[serde(rename = "RepoNotFound")] 29 RepoNotFound(std::option::Option<String>), 30 } 31 impl std::fmt::Display for GetAccountTimelineError<'_> { 32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 33 match self { ··· 38 } 39 Ok(()) 40 } 41 - Self::Unknown(_) => write!(f, "Unknown error"), 42 } 43 } 44 } 45 #[jacquard_derive::lexicon] 46 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 47 #[serde(rename_all = "camelCase")] ··· 49 #[serde(borrow)] 50 pub day: jacquard_common::CowStr<'a>, 51 #[serde(borrow)] 52 - pub summary: Vec<jacquard_common::types::value::Data<'a>>, 53 } 54 #[jacquard_derive::lexicon] 55 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 56 #[serde(rename_all = "camelCase")] ··· 60 pub event_subject_type: jacquard_common::CowStr<'a>, 61 #[serde(borrow)] 62 pub event_type: jacquard_common::CowStr<'a>, 63 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetAccountTimelineParams<'a> { 9 #[serde(borrow)] 10 pub did: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 17 #[serde(borrow)] 18 pub timeline: Vec<jacquard_common::types::value::Data<'a>>, 19 } 20 + 21 #[jacquard_derive::open_union] 22 #[derive( 23 serde::Serialize, ··· 35 #[serde(rename = "RepoNotFound")] 36 RepoNotFound(std::option::Option<String>), 37 } 38 + 39 impl std::fmt::Display for GetAccountTimelineError<'_> { 40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 41 match self { ··· 46 } 47 Ok(()) 48 } 49 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 50 } 51 } 52 } 53 + 54 #[jacquard_derive::lexicon] 55 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 56 #[serde(rename_all = "camelCase")] ··· 58 #[serde(borrow)] 59 pub day: jacquard_common::CowStr<'a>, 60 #[serde(borrow)] 61 + pub summary: Vec< 62 + crate::tools_ozone::moderation::get_account_timeline::TimelineItemSummary<'a>, 63 + >, 64 } 65 + 66 #[jacquard_derive::lexicon] 67 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 68 #[serde(rename_all = "camelCase")] ··· 72 pub event_subject_type: jacquard_common::CowStr<'a>, 73 #[serde(borrow)] 74 pub event_type: jacquard_common::CowStr<'a>, 75 + }
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_event.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetEventParams { 4 pub id: i64, 5 } 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(flatten)] 11 #[serde(borrow)] 12 pub value: crate::tools_ozone::moderation::ModEventViewDetail<'a>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetEventParams { 9 pub id: i64, 10 } 11 + 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 16 #[serde(flatten)] 17 #[serde(borrow)] 18 pub value: crate::tools_ozone::moderation::ModEventViewDetail<'a>, 19 + }
+10 -2
crates/jacquard-api/src/tools_ozone/moderation/get_record.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRecordParams<'a> { ··· 7 #[serde(borrow)] 8 pub uri: jacquard_common::types::string::AtUri<'a>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 15 #[serde(borrow)] 16 pub value: crate::tools_ozone::moderation::RecordViewDetail<'a>, 17 } 18 #[jacquard_derive::open_union] 19 #[derive( 20 serde::Serialize, ··· 32 #[serde(rename = "RecordNotFound")] 33 RecordNotFound(std::option::Option<String>), 34 } 35 impl std::fmt::Display for GetRecordError<'_> { 36 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 37 match self { ··· 42 } 43 Ok(()) 44 } 45 - Self::Unknown(_) => write!(f, "Unknown error"), 46 } 47 } 48 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRecordParams<'a> { ··· 12 #[serde(borrow)] 13 pub uri: jacquard_common::types::string::AtUri<'a>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 21 #[serde(borrow)] 22 pub value: crate::tools_ozone::moderation::RecordViewDetail<'a>, 23 } 24 + 25 #[jacquard_derive::open_union] 26 #[derive( 27 serde::Serialize, ··· 39 #[serde(rename = "RecordNotFound")] 40 RecordNotFound(std::option::Option<String>), 41 } 42 + 43 impl std::fmt::Display for GetRecordError<'_> { 44 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 45 match self { ··· 50 } 51 Ok(()) 52 } 53 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 54 } 55 } 56 + }
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_records.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRecordsParams<'a> { 4 #[serde(borrow)] 5 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetRecordsOutput<'a> { 11 #[serde(borrow)] 12 pub records: Vec<jacquard_common::types::value::Data<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRecordsParams<'a> { 9 #[serde(borrow)] 10 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetRecordsOutput<'a> { 17 #[serde(borrow)] 18 pub records: Vec<jacquard_common::types::value::Data<'a>>, 19 + }
+10 -2
crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetRepoParams<'a> { 4 #[serde(borrow)] 5 pub did: jacquard_common::types::string::Did<'a>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub value: crate::tools_ozone::moderation::RepoViewDetail<'a>, 14 } 15 #[jacquard_derive::open_union] 16 #[derive( 17 serde::Serialize, ··· 29 #[serde(rename = "RepoNotFound")] 30 RepoNotFound(std::option::Option<String>), 31 } 32 impl std::fmt::Display for GetRepoError<'_> { 33 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 34 match self { ··· 39 } 40 Ok(()) 41 } 42 - Self::Unknown(_) => write!(f, "Unknown error"), 43 } 44 } 45 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetRepoParams<'a> { 9 #[serde(borrow)] 10 pub did: jacquard_common::types::string::Did<'a>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 18 #[serde(borrow)] 19 pub value: crate::tools_ozone::moderation::RepoViewDetail<'a>, 20 } 21 + 22 #[jacquard_derive::open_union] 23 #[derive( 24 serde::Serialize, ··· 36 #[serde(rename = "RepoNotFound")] 37 RepoNotFound(std::option::Option<String>), 38 } 39 + 40 impl std::fmt::Display for GetRepoError<'_> { 41 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 42 match self { ··· 47 } 48 Ok(()) 49 } 50 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 51 } 52 } 53 + }
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetReporterStatsParams<'a> { 4 #[serde(borrow)] 5 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetReporterStatsOutput<'a> { 11 #[serde(borrow)] 12 pub stats: Vec<crate::tools_ozone::moderation::ReporterStats<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetReporterStatsParams<'a> { 9 #[serde(borrow)] 10 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetReporterStatsOutput<'a> { 17 #[serde(borrow)] 18 pub stats: Vec<crate::tools_ozone::moderation::ReporterStats<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetReposParams<'a> { 4 #[serde(borrow)] 5 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetReposOutput<'a> { 11 #[serde(borrow)] 12 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetReposParams<'a> { 9 #[serde(borrow)] 10 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetReposOutput<'a> { 17 #[serde(borrow)] 18 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetSubjectsParams<'a> { 4 #[serde(borrow)] 5 pub subjects: Vec<jacquard_common::CowStr<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GetSubjectsOutput<'a> { 11 #[serde(borrow)] 12 pub subjects: Vec<crate::tools_ozone::moderation::SubjectView<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetSubjectsParams<'a> { 9 #[serde(borrow)] 10 pub subjects: Vec<jacquard_common::CowStr<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct GetSubjectsOutput<'a> { 17 #[serde(borrow)] 18 pub subjects: Vec<crate::tools_ozone::moderation::SubjectView<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/query_events.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct QueryEventsParams<'a> { ··· 63 #[serde(borrow)] 64 pub types: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 65 } 66 #[jacquard_derive::lexicon] 67 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 68 #[serde(rename_all = "camelCase")] ··· 72 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 73 #[serde(borrow)] 74 pub events: Vec<crate::tools_ozone::moderation::ModEventView<'a>>, 75 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct QueryEventsParams<'a> { ··· 68 #[serde(borrow)] 69 pub types: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 70 } 71 + 72 #[jacquard_derive::lexicon] 73 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 74 #[serde(rename_all = "camelCase")] ··· 78 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 79 #[serde(borrow)] 80 pub events: Vec<crate::tools_ozone::moderation::ModEventView<'a>>, 81 + }
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct QueryStatusesParams<'a> { ··· 97 #[serde(skip_serializing_if = "std::option::Option::is_none")] 98 pub takendown: std::option::Option<bool>, 99 } 100 #[jacquard_derive::lexicon] 101 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 102 #[serde(rename_all = "camelCase")] ··· 106 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 107 #[serde(borrow)] 108 pub subject_statuses: Vec<crate::tools_ozone::moderation::SubjectStatusView<'a>>, 109 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct QueryStatusesParams<'a> { ··· 102 #[serde(skip_serializing_if = "std::option::Option::is_none")] 103 pub takendown: std::option::Option<bool>, 104 } 105 + 106 #[jacquard_derive::lexicon] 107 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 108 #[serde(rename_all = "camelCase")] ··· 112 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 113 #[serde(borrow)] 114 pub subject_statuses: Vec<crate::tools_ozone::moderation::SubjectStatusView<'a>>, 115 + }
+7 -1
crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchReposParams<'a> { ··· 13 #[serde(borrow)] 14 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 22 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 #[serde(borrow)] 24 pub repos: Vec<crate::tools_ozone::moderation::RepoView<'a>>, 25 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchReposParams<'a> { ··· 18 #[serde(borrow)] 19 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 20 } 21 + 22 #[jacquard_derive::lexicon] 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 #[serde(rename_all = "camelCase")] ··· 28 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 29 #[serde(borrow)] 30 pub repos: Vec<crate::tools_ozone::moderation::RepoView<'a>>, 31 + }
+12 -1
crates/jacquard-api/src/tools_ozone/report.rs
··· 1 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 2 pub enum ReasonType<'a> { 3 ToolsOzoneReportDefsReasonAppeal, ··· 47 ToolsOzoneReportDefsReasonCivicImpersonation, 48 Other(jacquard_common::CowStr<'a>), 49 } 50 impl<'a> ReasonType<'a> { 51 pub fn as_str(&self) -> &str { 52 match self { ··· 189 } 190 } 191 } 192 impl<'a> From<&'a str> for ReasonType<'a> { 193 fn from(s: &'a str) -> Self { 194 match s { ··· 331 } 332 } 333 } 334 impl<'a> From<String> for ReasonType<'a> { 335 fn from(s: String) -> Self { 336 match s.as_str() { ··· 473 } 474 } 475 } 476 impl<'a> AsRef<str> for ReasonType<'a> { 477 fn as_ref(&self) -> &str { 478 self.as_str() 479 } 480 } 481 impl<'a> serde::Serialize for ReasonType<'a> { 482 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 483 where ··· 486 serializer.serialize_str(self.as_str()) 487 } 488 } 489 impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a> 490 where 491 'de: 'a, ··· 497 let s = <&'de str>::deserialize(deserializer)?; 498 Ok(Self::from(s)) 499 } 500 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 7 pub enum ReasonType<'a> { 8 ToolsOzoneReportDefsReasonAppeal, ··· 52 ToolsOzoneReportDefsReasonCivicImpersonation, 53 Other(jacquard_common::CowStr<'a>), 54 } 55 + 56 impl<'a> ReasonType<'a> { 57 pub fn as_str(&self) -> &str { 58 match self { ··· 195 } 196 } 197 } 198 + 199 impl<'a> From<&'a str> for ReasonType<'a> { 200 fn from(s: &'a str) -> Self { 201 match s { ··· 338 } 339 } 340 } 341 + 342 impl<'a> From<String> for ReasonType<'a> { 343 fn from(s: String) -> Self { 344 match s.as_str() { ··· 481 } 482 } 483 } 484 + 485 impl<'a> AsRef<str> for ReasonType<'a> { 486 fn as_ref(&self) -> &str { 487 self.as_str() 488 } 489 } 490 + 491 impl<'a> serde::Serialize for ReasonType<'a> { 492 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 493 where ··· 496 serializer.serialize_str(self.as_str()) 497 } 498 } 499 + 500 impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a> 501 where 502 'de: 'a, ··· 508 let s = <&'de str>::deserialize(deserializer)?; 509 Ok(Self::from(s)) 510 } 511 + }
+57 -13
crates/jacquard-api/src/tools_ozone/safelink.rs
··· 1 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 2 pub enum ActionType<'a> { 3 Block, ··· 5 Whitelist, 6 Other(jacquard_common::CowStr<'a>), 7 } 8 impl<'a> ActionType<'a> { 9 pub fn as_str(&self) -> &str { 10 match self { ··· 15 } 16 } 17 } 18 impl<'a> From<&'a str> for ActionType<'a> { 19 fn from(s: &'a str) -> Self { 20 match s { ··· 25 } 26 } 27 } 28 impl<'a> From<String> for ActionType<'a> { 29 fn from(s: String) -> Self { 30 match s.as_str() { ··· 35 } 36 } 37 } 38 impl<'a> AsRef<str> for ActionType<'a> { 39 fn as_ref(&self) -> &str { 40 self.as_str() 41 } 42 } 43 impl<'a> serde::Serialize for ActionType<'a> { 44 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 45 where ··· 48 serializer.serialize_str(self.as_str()) 49 } 50 } 51 impl<'de, 'a> serde::Deserialize<'de> for ActionType<'a> 52 where 53 'de: 'a, ··· 60 Ok(Self::from(s)) 61 } 62 } 63 ///An event for URL safety decisions 64 #[jacquard_derive::lexicon] 65 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 66 #[serde(rename_all = "camelCase")] 67 pub struct Event<'a> { 68 #[serde(borrow)] 69 - pub action: jacquard_common::types::value::Data<'a>, 70 #[serde(skip_serializing_if = "std::option::Option::is_none")] 71 #[serde(borrow)] 72 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 73 pub created_at: jacquard_common::types::string::Datetime, 74 #[serde(borrow)] 75 pub created_by: jacquard_common::types::string::Did<'a>, 76 #[serde(borrow)] 77 - pub event_type: jacquard_common::types::value::Data<'a>, 78 pub id: i64, 79 #[serde(borrow)] 80 - pub pattern: jacquard_common::types::value::Data<'a>, 81 #[serde(borrow)] 82 - pub reason: jacquard_common::types::value::Data<'a>, 83 #[serde(borrow)] 84 pub url: jacquard_common::CowStr<'a>, 85 } 86 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 87 pub enum EventType<'a> { 88 AddRule, ··· 90 RemoveRule, 91 Other(jacquard_common::CowStr<'a>), 92 } 93 impl<'a> EventType<'a> { 94 pub fn as_str(&self) -> &str { 95 match self { ··· 100 } 101 } 102 } 103 impl<'a> From<&'a str> for EventType<'a> { 104 fn from(s: &'a str) -> Self { 105 match s { ··· 110 } 111 } 112 } 113 impl<'a> From<String> for EventType<'a> { 114 fn from(s: String) -> Self { 115 match s.as_str() { ··· 120 } 121 } 122 } 123 impl<'a> AsRef<str> for EventType<'a> { 124 fn as_ref(&self) -> &str { 125 self.as_str() 126 } 127 } 128 impl<'a> serde::Serialize for EventType<'a> { 129 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 130 where ··· 133 serializer.serialize_str(self.as_str()) 134 } 135 } 136 impl<'de, 'a> serde::Deserialize<'de> for EventType<'a> 137 where 138 'de: 'a, ··· 145 Ok(Self::from(s)) 146 } 147 } 148 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 149 pub enum PatternType<'a> { 150 Domain, 151 Url, 152 Other(jacquard_common::CowStr<'a>), 153 } 154 impl<'a> PatternType<'a> { 155 pub fn as_str(&self) -> &str { 156 match self { ··· 160 } 161 } 162 } 163 impl<'a> From<&'a str> for PatternType<'a> { 164 fn from(s: &'a str) -> Self { 165 match s { ··· 169 } 170 } 171 } 172 impl<'a> From<String> for PatternType<'a> { 173 fn from(s: String) -> Self { 174 match s.as_str() { ··· 178 } 179 } 180 } 181 impl<'a> AsRef<str> for PatternType<'a> { 182 fn as_ref(&self) -> &str { 183 self.as_str() 184 } 185 } 186 impl<'a> serde::Serialize for PatternType<'a> { 187 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 188 where ··· 191 serializer.serialize_str(self.as_str()) 192 } 193 } 194 impl<'de, 'a> serde::Deserialize<'de> for PatternType<'a> 195 where 196 'de: 'a, ··· 203 Ok(Self::from(s)) 204 } 205 } 206 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 207 pub enum ReasonType<'a> { 208 Csam, ··· 211 None, 212 Other(jacquard_common::CowStr<'a>), 213 } 214 impl<'a> ReasonType<'a> { 215 pub fn as_str(&self) -> &str { 216 match self { ··· 222 } 223 } 224 } 225 impl<'a> From<&'a str> for ReasonType<'a> { 226 fn from(s: &'a str) -> Self { 227 match s { ··· 233 } 234 } 235 } 236 impl<'a> From<String> for ReasonType<'a> { 237 fn from(s: String) -> Self { 238 match s.as_str() { ··· 244 } 245 } 246 } 247 impl<'a> AsRef<str> for ReasonType<'a> { 248 fn as_ref(&self) -> &str { 249 self.as_str() 250 } 251 } 252 impl<'a> serde::Serialize for ReasonType<'a> { 253 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 254 where ··· 257 serializer.serialize_str(self.as_str()) 258 } 259 } 260 impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a> 261 where 262 'de: 'a, ··· 269 Ok(Self::from(s)) 270 } 271 } 272 ///Input for creating a URL safety rule 273 #[jacquard_derive::lexicon] 274 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 275 #[serde(rename_all = "camelCase")] 276 pub struct UrlRule<'a> { 277 #[serde(borrow)] 278 - pub action: jacquard_common::types::value::Data<'a>, 279 #[serde(skip_serializing_if = "std::option::Option::is_none")] 280 #[serde(borrow)] 281 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 282 pub created_at: jacquard_common::types::string::Datetime, 283 #[serde(borrow)] 284 pub created_by: jacquard_common::types::string::Did<'a>, 285 #[serde(borrow)] 286 - pub pattern: jacquard_common::types::value::Data<'a>, 287 #[serde(borrow)] 288 - pub reason: jacquard_common::types::value::Data<'a>, 289 pub updated_at: jacquard_common::types::string::Datetime, 290 #[serde(borrow)] 291 pub url: jacquard_common::CowStr<'a>, 292 - } 293 - pub mod add_rule; 294 - pub mod query_events; 295 - pub mod query_rules; 296 - pub mod remove_rule; 297 - pub mod update_rule;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod add_rule; 7 + pub mod query_events; 8 + pub mod query_rules; 9 + pub mod remove_rule; 10 + pub mod update_rule; 11 + 12 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 13 pub enum ActionType<'a> { 14 Block, ··· 16 Whitelist, 17 Other(jacquard_common::CowStr<'a>), 18 } 19 + 20 impl<'a> ActionType<'a> { 21 pub fn as_str(&self) -> &str { 22 match self { ··· 27 } 28 } 29 } 30 + 31 impl<'a> From<&'a str> for ActionType<'a> { 32 fn from(s: &'a str) -> Self { 33 match s { ··· 38 } 39 } 40 } 41 + 42 impl<'a> From<String> for ActionType<'a> { 43 fn from(s: String) -> Self { 44 match s.as_str() { ··· 49 } 50 } 51 } 52 + 53 impl<'a> AsRef<str> for ActionType<'a> { 54 fn as_ref(&self) -> &str { 55 self.as_str() 56 } 57 } 58 + 59 impl<'a> serde::Serialize for ActionType<'a> { 60 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 61 where ··· 64 serializer.serialize_str(self.as_str()) 65 } 66 } 67 + 68 impl<'de, 'a> serde::Deserialize<'de> for ActionType<'a> 69 where 70 'de: 'a, ··· 77 Ok(Self::from(s)) 78 } 79 } 80 + 81 ///An event for URL safety decisions 82 #[jacquard_derive::lexicon] 83 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 84 #[serde(rename_all = "camelCase")] 85 pub struct Event<'a> { 86 #[serde(borrow)] 87 + pub action: crate::tools_ozone::safelink::ActionType<'a>, 88 + ///Optional comment about the decision 89 #[serde(skip_serializing_if = "std::option::Option::is_none")] 90 #[serde(borrow)] 91 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 92 pub created_at: jacquard_common::types::string::Datetime, 93 + ///DID of the user who created this rule 94 #[serde(borrow)] 95 pub created_by: jacquard_common::types::string::Did<'a>, 96 #[serde(borrow)] 97 + pub event_type: crate::tools_ozone::safelink::EventType<'a>, 98 + ///Auto-incrementing row ID 99 pub id: i64, 100 #[serde(borrow)] 101 + pub pattern: crate::tools_ozone::safelink::PatternType<'a>, 102 #[serde(borrow)] 103 + pub reason: crate::tools_ozone::safelink::ReasonType<'a>, 104 + ///The URL that this rule applies to 105 #[serde(borrow)] 106 pub url: jacquard_common::CowStr<'a>, 107 } 108 + 109 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 110 pub enum EventType<'a> { 111 AddRule, ··· 113 RemoveRule, 114 Other(jacquard_common::CowStr<'a>), 115 } 116 + 117 impl<'a> EventType<'a> { 118 pub fn as_str(&self) -> &str { 119 match self { ··· 124 } 125 } 126 } 127 + 128 impl<'a> From<&'a str> for EventType<'a> { 129 fn from(s: &'a str) -> Self { 130 match s { ··· 135 } 136 } 137 } 138 + 139 impl<'a> From<String> for EventType<'a> { 140 fn from(s: String) -> Self { 141 match s.as_str() { ··· 146 } 147 } 148 } 149 + 150 impl<'a> AsRef<str> for EventType<'a> { 151 fn as_ref(&self) -> &str { 152 self.as_str() 153 } 154 } 155 + 156 impl<'a> serde::Serialize for EventType<'a> { 157 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 158 where ··· 161 serializer.serialize_str(self.as_str()) 162 } 163 } 164 + 165 impl<'de, 'a> serde::Deserialize<'de> for EventType<'a> 166 where 167 'de: 'a, ··· 174 Ok(Self::from(s)) 175 } 176 } 177 + 178 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 179 pub enum PatternType<'a> { 180 Domain, 181 Url, 182 Other(jacquard_common::CowStr<'a>), 183 } 184 + 185 impl<'a> PatternType<'a> { 186 pub fn as_str(&self) -> &str { 187 match self { ··· 191 } 192 } 193 } 194 + 195 impl<'a> From<&'a str> for PatternType<'a> { 196 fn from(s: &'a str) -> Self { 197 match s { ··· 201 } 202 } 203 } 204 + 205 impl<'a> From<String> for PatternType<'a> { 206 fn from(s: String) -> Self { 207 match s.as_str() { ··· 211 } 212 } 213 } 214 + 215 impl<'a> AsRef<str> for PatternType<'a> { 216 fn as_ref(&self) -> &str { 217 self.as_str() 218 } 219 } 220 + 221 impl<'a> serde::Serialize for PatternType<'a> { 222 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 223 where ··· 226 serializer.serialize_str(self.as_str()) 227 } 228 } 229 + 230 impl<'de, 'a> serde::Deserialize<'de> for PatternType<'a> 231 where 232 'de: 'a, ··· 239 Ok(Self::from(s)) 240 } 241 } 242 + 243 #[derive(Debug, Clone, PartialEq, Eq, Hash)] 244 pub enum ReasonType<'a> { 245 Csam, ··· 248 None, 249 Other(jacquard_common::CowStr<'a>), 250 } 251 + 252 impl<'a> ReasonType<'a> { 253 pub fn as_str(&self) -> &str { 254 match self { ··· 260 } 261 } 262 } 263 + 264 impl<'a> From<&'a str> for ReasonType<'a> { 265 fn from(s: &'a str) -> Self { 266 match s { ··· 272 } 273 } 274 } 275 + 276 impl<'a> From<String> for ReasonType<'a> { 277 fn from(s: String) -> Self { 278 match s.as_str() { ··· 284 } 285 } 286 } 287 + 288 impl<'a> AsRef<str> for ReasonType<'a> { 289 fn as_ref(&self) -> &str { 290 self.as_str() 291 } 292 } 293 + 294 impl<'a> serde::Serialize for ReasonType<'a> { 295 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 296 where ··· 299 serializer.serialize_str(self.as_str()) 300 } 301 } 302 + 303 impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a> 304 where 305 'de: 'a, ··· 312 Ok(Self::from(s)) 313 } 314 } 315 + 316 ///Input for creating a URL safety rule 317 #[jacquard_derive::lexicon] 318 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 319 #[serde(rename_all = "camelCase")] 320 pub struct UrlRule<'a> { 321 #[serde(borrow)] 322 + pub action: crate::tools_ozone::safelink::ActionType<'a>, 323 + ///Optional comment about the decision 324 #[serde(skip_serializing_if = "std::option::Option::is_none")] 325 #[serde(borrow)] 326 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 327 + ///Timestamp when the rule was created 328 pub created_at: jacquard_common::types::string::Datetime, 329 + ///DID of the user added the rule. 330 #[serde(borrow)] 331 pub created_by: jacquard_common::types::string::Did<'a>, 332 #[serde(borrow)] 333 + pub pattern: crate::tools_ozone::safelink::PatternType<'a>, 334 #[serde(borrow)] 335 + pub reason: crate::tools_ozone::safelink::ReasonType<'a>, 336 + ///Timestamp when the rule was last updated 337 pub updated_at: jacquard_common::types::string::Datetime, 338 + ///The URL or domain to apply the rule to 339 #[serde(borrow)] 340 pub url: jacquard_common::CowStr<'a>, 341 + }
+13 -2
crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct AddRuleInput<'a> { 5 #[serde(borrow)] 6 pub action: crate::tools_ozone::safelink::ActionType<'a>, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 #[serde(borrow)] 9 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 #[serde(borrow)] 12 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, ··· 14 pub pattern: crate::tools_ozone::safelink::PatternType<'a>, 15 #[serde(borrow)] 16 pub reason: crate::tools_ozone::safelink::ReasonType<'a>, 17 #[serde(borrow)] 18 pub url: jacquard_common::CowStr<'a>, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub value: crate::tools_ozone::safelink::Event<'a>, 27 } 28 #[jacquard_derive::open_union] 29 #[derive( 30 serde::Serialize, ··· 46 #[serde(rename = "RuleAlreadyExists")] 47 RuleAlreadyExists(std::option::Option<String>), 48 } 49 impl std::fmt::Display for AddRuleError<'_> { 50 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 51 match self { ··· 63 } 64 Ok(()) 65 } 66 - Self::Unknown(_) => write!(f, "Unknown error"), 67 } 68 } 69 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct AddRuleInput<'a> { 10 #[serde(borrow)] 11 pub action: crate::tools_ozone::safelink::ActionType<'a>, 12 + ///Optional comment about the decision 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 16 + ///Author DID. Only respected when using admin auth 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, ··· 21 pub pattern: crate::tools_ozone::safelink::PatternType<'a>, 22 #[serde(borrow)] 23 pub reason: crate::tools_ozone::safelink::ReasonType<'a>, 24 + ///The URL or domain to apply the rule to 25 #[serde(borrow)] 26 pub url: jacquard_common::CowStr<'a>, 27 } 28 + 29 #[jacquard_derive::lexicon] 30 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 31 #[serde(rename_all = "camelCase")] ··· 34 #[serde(borrow)] 35 pub value: crate::tools_ozone::safelink::Event<'a>, 36 } 37 + 38 #[jacquard_derive::open_union] 39 #[derive( 40 serde::Serialize, ··· 56 #[serde(rename = "RuleAlreadyExists")] 57 RuleAlreadyExists(std::option::Option<String>), 58 } 59 + 60 impl std::fmt::Display for AddRuleError<'_> { 61 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 62 match self { ··· 74 } 75 Ok(()) 76 } 77 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 78 } 79 } 80 + }
+13 -1
crates/jacquard-api/src/tools_ozone/safelink/query_events.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct QueryEventsInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 pub limit: std::option::Option<i64>, 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 #[serde(borrow)] 12 pub pattern_type: std::option::Option<jacquard_common::CowStr<'a>>, 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>, 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub urls: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] 23 pub struct QueryEventsOutput<'a> { 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 27 #[serde(borrow)] 28 pub events: Vec<crate::tools_ozone::safelink::Event<'a>>, 29 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct QueryEventsInput<'a> { 10 + ///Cursor for pagination 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 14 + ///Maximum number of results to return 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 pub limit: std::option::Option<i64>, 17 + ///Filter by pattern type 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub pattern_type: std::option::Option<jacquard_common::CowStr<'a>>, 21 + ///Sort direction 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>, 25 + ///Filter by specific URLs or domains 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 #[serde(borrow)] 28 pub urls: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 29 } 30 + 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(rename_all = "camelCase")] 34 pub struct QueryEventsOutput<'a> { 35 + ///Next cursor for pagination. Only present if there are more results. 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 37 #[serde(borrow)] 38 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 39 #[serde(borrow)] 40 pub events: Vec<crate::tools_ozone::safelink::Event<'a>>, 41 + }
+16 -1
crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct QueryRulesInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub actions: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 pub limit: std::option::Option<i64>, 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub pattern_type: std::option::Option<jacquard_common::CowStr<'a>>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub reason: std::option::Option<jacquard_common::CowStr<'a>>, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 #[serde(borrow)] 27 pub urls: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 28 } 29 #[jacquard_derive::lexicon] 30 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 31 #[serde(rename_all = "camelCase")] 32 pub struct QueryRulesOutput<'a> { 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 36 #[serde(borrow)] 37 pub rules: Vec<crate::tools_ozone::safelink::UrlRule<'a>>, 38 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct QueryRulesInput<'a> { 10 + ///Filter by action types 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub actions: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 14 + ///Filter by rule creator 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 #[serde(borrow)] 17 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 18 + ///Cursor for pagination 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 22 + ///Maximum number of results to return 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 pub limit: std::option::Option<i64>, 25 + ///Filter by pattern type 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 #[serde(borrow)] 28 pub pattern_type: std::option::Option<jacquard_common::CowStr<'a>>, 29 + ///Filter by reason type 30 #[serde(skip_serializing_if = "std::option::Option::is_none")] 31 #[serde(borrow)] 32 pub reason: std::option::Option<jacquard_common::CowStr<'a>>, 33 + ///Sort direction 34 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 #[serde(borrow)] 36 pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>, 37 + ///Filter by specific URLs or domains 38 #[serde(skip_serializing_if = "std::option::Option::is_none")] 39 #[serde(borrow)] 40 pub urls: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 41 } 42 + 43 #[jacquard_derive::lexicon] 44 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 45 #[serde(rename_all = "camelCase")] 46 pub struct QueryRulesOutput<'a> { 47 + ///Next cursor for pagination. Only present if there are more results. 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 #[serde(borrow)] 50 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 51 #[serde(borrow)] 52 pub rules: Vec<crate::tools_ozone::safelink::UrlRule<'a>>, 53 + }
+13 -2
crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RemoveRuleInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 8 #[serde(skip_serializing_if = "std::option::Option::is_none")] 9 #[serde(borrow)] 10 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 11 #[serde(borrow)] 12 pub pattern: crate::tools_ozone::safelink::PatternType<'a>, 13 #[serde(borrow)] 14 pub url: jacquard_common::CowStr<'a>, 15 } 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 21 #[serde(borrow)] 22 pub value: crate::tools_ozone::safelink::Event<'a>, 23 } 24 #[jacquard_derive::open_union] 25 #[derive( 26 serde::Serialize, ··· 39 #[serde(rename = "RuleNotFound")] 40 RuleNotFound(std::option::Option<String>), 41 } 42 impl std::fmt::Display for RemoveRuleError<'_> { 43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 44 match self { ··· 49 } 50 Ok(()) 51 } 52 - Self::Unknown(_) => write!(f, "Unknown error"), 53 } 54 } 55 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RemoveRuleInput<'a> { 10 + ///Optional comment about why the rule is being removed 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 14 + ///Optional DID of the user. Only respected when using admin auth. 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 #[serde(borrow)] 17 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 18 #[serde(borrow)] 19 pub pattern: crate::tools_ozone::safelink::PatternType<'a>, 20 + ///The URL or domain to remove the rule for 21 #[serde(borrow)] 22 pub url: jacquard_common::CowStr<'a>, 23 } 24 + 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] ··· 30 #[serde(borrow)] 31 pub value: crate::tools_ozone::safelink::Event<'a>, 32 } 33 + 34 #[jacquard_derive::open_union] 35 #[derive( 36 serde::Serialize, ··· 49 #[serde(rename = "RuleNotFound")] 50 RuleNotFound(std::option::Option<String>), 51 } 52 + 53 impl std::fmt::Display for RemoveRuleError<'_> { 54 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 55 match self { ··· 60 } 61 Ok(()) 62 } 63 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 64 } 65 } 66 + }
+13 -2
crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct UpdateRuleInput<'a> { 5 #[serde(borrow)] 6 pub action: crate::tools_ozone::safelink::ActionType<'a>, 7 #[serde(skip_serializing_if = "std::option::Option::is_none")] 8 #[serde(borrow)] 9 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 10 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 #[serde(borrow)] 12 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, ··· 14 pub pattern: crate::tools_ozone::safelink::PatternType<'a>, 15 #[serde(borrow)] 16 pub reason: crate::tools_ozone::safelink::ReasonType<'a>, 17 #[serde(borrow)] 18 pub url: jacquard_common::CowStr<'a>, 19 } 20 #[jacquard_derive::lexicon] 21 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 #[serde(rename_all = "camelCase")] ··· 25 #[serde(borrow)] 26 pub value: crate::tools_ozone::safelink::Event<'a>, 27 } 28 #[jacquard_derive::open_union] 29 #[derive( 30 serde::Serialize, ··· 43 #[serde(rename = "RuleNotFound")] 44 RuleNotFound(std::option::Option<String>), 45 } 46 impl std::fmt::Display for UpdateRuleError<'_> { 47 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 48 match self { ··· 53 } 54 Ok(()) 55 } 56 - Self::Unknown(_) => write!(f, "Unknown error"), 57 } 58 } 59 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct UpdateRuleInput<'a> { 10 #[serde(borrow)] 11 pub action: crate::tools_ozone::safelink::ActionType<'a>, 12 + ///Optional comment about the update 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 #[serde(borrow)] 15 pub comment: std::option::Option<jacquard_common::CowStr<'a>>, 16 + ///Optional DID to credit as the creator. Only respected for admin_token authentication. 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub created_by: std::option::Option<jacquard_common::types::string::Did<'a>>, ··· 21 pub pattern: crate::tools_ozone::safelink::PatternType<'a>, 22 #[serde(borrow)] 23 pub reason: crate::tools_ozone::safelink::ReasonType<'a>, 24 + ///The URL or domain to update the rule for 25 #[serde(borrow)] 26 pub url: jacquard_common::CowStr<'a>, 27 } 28 + 29 #[jacquard_derive::lexicon] 30 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 31 #[serde(rename_all = "camelCase")] ··· 34 #[serde(borrow)] 35 pub value: crate::tools_ozone::safelink::Event<'a>, 36 } 37 + 38 #[jacquard_derive::open_union] 39 #[derive( 40 serde::Serialize, ··· 53 #[serde(rename = "RuleNotFound")] 54 RuleNotFound(std::option::Option<String>), 55 } 56 + 57 impl std::fmt::Display for UpdateRuleError<'_> { 58 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 59 match self { ··· 64 } 65 Ok(()) 66 } 67 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 68 } 69 } 70 + }
+6 -1
crates/jacquard-api/src/tools_ozone/server.rs
··· 1 - pub mod get_config;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod get_config;
+9 -1
crates/jacquard-api/src/tools_ozone/server/get_config.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 pub pds: std::option::Option<jacquard_common::types::value::Data<'a>>, 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 18 #[serde(borrow)] 19 pub verifier_did: std::option::Option<jacquard_common::types::string::Did<'a>>, ··· 21 #[serde(borrow)] 22 pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 23 } 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 29 #[serde(borrow)] 30 pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>, 31 } 32 #[jacquard_derive::lexicon] 33 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 34 #[serde(rename_all = "camelCase")] ··· 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 37 #[serde(borrow)] 38 pub role: std::option::Option<jacquard_common::CowStr<'a>>, 39 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub pds: std::option::Option<jacquard_common::types::value::Data<'a>>, 22 + ///The did of the verifier used for verification. 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 #[serde(borrow)] 25 pub verifier_did: std::option::Option<jacquard_common::types::string::Did<'a>>, ··· 27 #[serde(borrow)] 28 pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 29 } 30 + 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(rename_all = "camelCase")] ··· 36 #[serde(borrow)] 37 pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>, 38 } 39 + 40 #[jacquard_derive::lexicon] 41 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 42 #[serde(rename_all = "camelCase")] ··· 44 #[serde(skip_serializing_if = "std::option::Option::is_none")] 45 #[serde(borrow)] 46 pub role: std::option::Option<jacquard_common::CowStr<'a>>, 47 + }
+14 -7
crates/jacquard-api/src/tools_ozone/set.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 8 #[serde(borrow)] 9 pub name: jacquard_common::CowStr<'a>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] ··· 20 pub name: jacquard_common::CowStr<'a>, 21 pub set_size: i64, 22 pub updated_at: jacquard_common::types::string::Datetime, 23 - } 24 - pub mod add_values; 25 - pub mod delete_set; 26 - pub mod delete_values; 27 - pub mod get_values; 28 - pub mod query_sets; 29 - pub mod upsert_set;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod add_values; 7 + pub mod delete_set; 8 + pub mod delete_values; 9 + pub mod get_values; 10 + pub mod query_sets; 11 + pub mod upsert_set; 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 20 #[serde(borrow)] 21 pub name: jacquard_common::CowStr<'a>, 22 } 23 + 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 33 pub name: jacquard_common::CowStr<'a>, 34 pub set_size: i64, 35 pub updated_at: jacquard_common::types::string::Datetime, 36 + }
+8 -1
crates/jacquard-api/src/tools_ozone/set/add_values.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct AddValuesInput<'a> { 5 #[serde(borrow)] 6 pub name: jacquard_common::CowStr<'a>, 7 #[serde(borrow)] 8 pub values: Vec<jacquard_common::CowStr<'a>>, 9 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct AddValuesInput<'a> { 10 + ///Name of the set to add values to 11 #[serde(borrow)] 12 pub name: jacquard_common::CowStr<'a>, 13 + ///Array of string values to add to the set 14 #[serde(borrow)] 15 pub values: Vec<jacquard_common::CowStr<'a>>, 16 + }
+10 -2
crates/jacquard-api/src/tools_ozone/set/delete_set.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct DeleteSetInput<'a> { 5 #[serde(borrow)] 6 pub name: jacquard_common::CowStr<'a>, 7 } 8 #[jacquard_derive::lexicon] 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 10 #[serde(rename_all = "camelCase")] ··· 27 #[serde(rename = "SetNotFound")] 28 SetNotFound(std::option::Option<String>), 29 } 30 impl std::fmt::Display for DeleteSetError<'_> { 31 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 32 match self { ··· 37 } 38 Ok(()) 39 } 40 - Self::Unknown(_) => write!(f, "Unknown error"), 41 } 42 } 43 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct DeleteSetInput<'a> { 10 + ///Name of the set to delete 11 #[serde(borrow)] 12 pub name: jacquard_common::CowStr<'a>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 34 #[serde(rename = "SetNotFound")] 35 SetNotFound(std::option::Option<String>), 36 } 37 + 38 impl std::fmt::Display for DeleteSetError<'_> { 39 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 40 match self { ··· 45 } 46 Ok(()) 47 } 48 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 49 } 50 } 51 + }
+11 -2
crates/jacquard-api/src/tools_ozone/set/delete_values.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct DeleteValuesInput<'a> { 5 #[serde(borrow)] 6 pub name: jacquard_common::CowStr<'a>, 7 #[serde(borrow)] 8 pub values: Vec<jacquard_common::CowStr<'a>>, 9 } 10 #[jacquard_derive::open_union] 11 #[derive( 12 serde::Serialize, ··· 25 #[serde(rename = "SetNotFound")] 26 SetNotFound(std::option::Option<String>), 27 } 28 impl std::fmt::Display for DeleteValuesError<'_> { 29 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 30 match self { ··· 35 } 36 Ok(()) 37 } 38 - Self::Unknown(_) => write!(f, "Unknown error"), 39 } 40 } 41 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct DeleteValuesInput<'a> { 10 + ///Name of the set to delete values from 11 #[serde(borrow)] 12 pub name: jacquard_common::CowStr<'a>, 13 + ///Array of string values to delete from the set 14 #[serde(borrow)] 15 pub values: Vec<jacquard_common::CowStr<'a>>, 16 } 17 + 18 #[jacquard_derive::open_union] 19 #[derive( 20 serde::Serialize, ··· 33 #[serde(rename = "SetNotFound")] 34 SetNotFound(std::option::Option<String>), 35 } 36 + 37 impl std::fmt::Display for DeleteValuesError<'_> { 38 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 39 match self { ··· 44 } 45 Ok(()) 46 } 47 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 48 } 49 } 50 + }
+10 -2
crates/jacquard-api/src/tools_ozone/set/get_values.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct GetValuesParams<'a> { ··· 9 #[serde(borrow)] 10 pub name: jacquard_common::CowStr<'a>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 21 #[serde(borrow)] 22 pub values: Vec<jacquard_common::CowStr<'a>>, 23 } 24 #[jacquard_derive::open_union] 25 #[derive( 26 serde::Serialize, ··· 39 #[serde(rename = "SetNotFound")] 40 SetNotFound(std::option::Option<String>), 41 } 42 impl std::fmt::Display for GetValuesError<'_> { 43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 44 match self { ··· 49 } 50 Ok(()) 51 } 52 - Self::Unknown(_) => write!(f, "Unknown error"), 53 } 54 } 55 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct GetValuesParams<'a> { ··· 14 #[serde(borrow)] 15 pub name: jacquard_common::CowStr<'a>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 27 #[serde(borrow)] 28 pub values: Vec<jacquard_common::CowStr<'a>>, 29 } 30 + 31 #[jacquard_derive::open_union] 32 #[derive( 33 serde::Serialize, ··· 46 #[serde(rename = "SetNotFound")] 47 SetNotFound(std::option::Option<String>), 48 } 49 + 50 impl std::fmt::Display for GetValuesError<'_> { 51 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 52 match self { ··· 57 } 58 Ok(()) 59 } 60 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 61 } 62 } 63 + }
+7 -1
crates/jacquard-api/src/tools_ozone/set/query_sets.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct QuerySetsParams<'a> { ··· 16 #[serde(borrow)] 17 pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>, 18 } 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 25 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 26 #[serde(borrow)] 27 pub sets: Vec<crate::tools_ozone::set::SetView<'a>>, 28 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct QuerySetsParams<'a> { ··· 21 #[serde(borrow)] 22 pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>, 23 } 24 + 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] ··· 31 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 32 #[serde(borrow)] 33 pub sets: Vec<crate::tools_ozone::set::SetView<'a>>, 34 + }
+7 -1
crates/jacquard-api/src/tools_ozone/set/upsert_set.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 #[serde(borrow)] 7 pub value: crate::tools_ozone::set::Set<'a>, 8 } 9 #[jacquard_derive::lexicon] 10 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 #[serde(rename_all = "camelCase")] ··· 13 #[serde(flatten)] 14 #[serde(borrow)] 15 pub value: crate::tools_ozone::set::SetView<'a>, 16 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 11 #[serde(borrow)] 12 pub value: crate::tools_ozone::set::Set<'a>, 13 } 14 + 15 #[jacquard_derive::lexicon] 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 #[serde(rename_all = "camelCase")] ··· 19 #[serde(flatten)] 20 #[serde(borrow)] 21 pub value: crate::tools_ozone::set::SetView<'a>, 22 + }
+10 -4
crates/jacquard-api/src/tools_ozone/setting.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 24 pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>, 25 #[serde(borrow)] 26 pub value: jacquard_common::types::value::Data<'a>, 27 - } 28 - pub mod list_options; 29 - pub mod remove_options; 30 - pub mod upsert_option;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod list_options; 7 + pub mod remove_options; 8 + pub mod upsert_option; 9 + 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 33 pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>, 34 #[serde(borrow)] 35 pub value: jacquard_common::types::value::Data<'a>, 36 + }
+7 -1
crates/jacquard-api/src/tools_ozone/setting/list_options.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListOptionsParams<'a> { ··· 16 #[serde(borrow)] 17 pub scope: std::option::Option<jacquard_common::CowStr<'a>>, 18 } 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 25 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 26 #[serde(borrow)] 27 pub options: Vec<crate::tools_ozone::setting::Option<'a>>, 28 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListOptionsParams<'a> { ··· 21 #[serde(borrow)] 22 pub scope: std::option::Option<jacquard_common::CowStr<'a>>, 23 } 24 + 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] ··· 31 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 32 #[serde(borrow)] 33 pub options: Vec<crate::tools_ozone::setting::Option<'a>>, 34 + }
+7 -1
crates/jacquard-api/src/tools_ozone/setting/remove_options.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub scope: jacquard_common::CowStr<'a>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] 13 - pub struct RemoveOptionsOutput<'a> {}
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub scope: jacquard_common::CowStr<'a>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] 19 + pub struct RemoveOptionsOutput<'a> {}
+7 -1
crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 15 #[serde(borrow)] 16 pub value: jacquard_common::types::value::Data<'a>, 17 } 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] 21 pub struct UpsertOptionOutput<'a> { 22 #[serde(borrow)] 23 pub option: crate::tools_ozone::setting::Option<'a>, 24 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 20 #[serde(borrow)] 21 pub value: jacquard_common::types::value::Data<'a>, 22 } 23 + 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] 27 pub struct UpsertOptionOutput<'a> { 28 #[serde(borrow)] 29 pub option: crate::tools_ozone::setting::Option<'a>, 30 + }
+10 -4
crates/jacquard-api/src/tools_ozone/signature.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 6 pub property: jacquard_common::CowStr<'a>, 7 #[serde(borrow)] 8 pub value: jacquard_common::CowStr<'a>, 9 - } 10 - pub mod find_correlation; 11 - pub mod find_related_accounts; 12 - pub mod search_accounts;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod find_correlation; 7 + pub mod find_related_accounts; 8 + pub mod search_accounts; 9 + 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 15 pub property: jacquard_common::CowStr<'a>, 16 #[serde(borrow)] 17 pub value: jacquard_common::CowStr<'a>, 18 + }
+7 -1
crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct FindCorrelationParams<'a> { 4 #[serde(borrow)] 5 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 6 } 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct FindCorrelationOutput<'a> { 11 #[serde(borrow)] 12 pub details: Vec<crate::tools_ozone::signature::SigDetail<'a>>, 13 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct FindCorrelationParams<'a> { 9 #[serde(borrow)] 10 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 11 } 12 + 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] 16 pub struct FindCorrelationOutput<'a> { 17 #[serde(borrow)] 18 pub details: Vec<crate::tools_ozone::signature::SigDetail<'a>>, 19 + }
+7 -1
crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct SearchAccountsParams<'a> { ··· 9 #[serde(borrow)] 10 pub values: Vec<jacquard_common::CowStr<'a>>, 11 } 12 #[jacquard_derive::lexicon] 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 14 #[serde(rename_all = "camelCase")] ··· 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 #[serde(borrow)] 20 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 21 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct SearchAccountsParams<'a> { ··· 14 #[serde(borrow)] 15 pub values: Vec<jacquard_common::CowStr<'a>>, 16 } 17 + 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 27 + }
+11 -5
crates/jacquard-api/src/tools_ozone/team.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 18 pub role: jacquard_common::CowStr<'a>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>, 21 - } 22 - pub mod add_member; 23 - pub mod delete_member; 24 - pub mod list_members; 25 - pub mod update_member;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod add_member; 7 + pub mod delete_member; 8 + pub mod list_members; 9 + pub mod update_member; 10 + 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] ··· 28 pub role: jacquard_common::CowStr<'a>, 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>, 31 + }
+10 -2
crates/jacquard-api/src/tools_ozone/team/add_member.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 7 #[serde(borrow)] 8 pub role: jacquard_common::CowStr<'a>, 9 } 10 #[jacquard_derive::lexicon] 11 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 #[serde(rename_all = "camelCase")] ··· 15 #[serde(borrow)] 16 pub value: crate::tools_ozone::team::Member<'a>, 17 } 18 #[jacquard_derive::open_union] 19 #[derive( 20 serde::Serialize, ··· 33 #[serde(rename = "MemberAlreadyExists")] 34 MemberAlreadyExists(std::option::Option<String>), 35 } 36 impl std::fmt::Display for AddMemberError<'_> { 37 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 38 match self { ··· 43 } 44 Ok(()) 45 } 46 - Self::Unknown(_) => write!(f, "Unknown error"), 47 } 48 } 49 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 12 #[serde(borrow)] 13 pub role: jacquard_common::CowStr<'a>, 14 } 15 + 16 #[jacquard_derive::lexicon] 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 #[serde(rename_all = "camelCase")] ··· 21 #[serde(borrow)] 22 pub value: crate::tools_ozone::team::Member<'a>, 23 } 24 + 25 #[jacquard_derive::open_union] 26 #[derive( 27 serde::Serialize, ··· 40 #[serde(rename = "MemberAlreadyExists")] 41 MemberAlreadyExists(std::option::Option<String>), 42 } 43 + 44 impl std::fmt::Display for AddMemberError<'_> { 45 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 46 match self { ··· 51 } 52 Ok(()) 53 } 54 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 55 } 56 } 57 + }
+9 -2
crates/jacquard-api/src/tools_ozone/team/delete_member.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 5 #[serde(borrow)] 6 pub did: jacquard_common::types::string::Did<'a>, 7 } 8 #[jacquard_derive::open_union] 9 #[derive( 10 serde::Serialize, ··· 26 #[serde(rename = "CannotDeleteSelf")] 27 CannotDeleteSelf(std::option::Option<String>), 28 } 29 impl std::fmt::Display for DeleteMemberError<'_> { 30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 31 match self { ··· 43 } 44 Ok(()) 45 } 46 - Self::Unknown(_) => write!(f, "Unknown error"), 47 } 48 } 49 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub did: jacquard_common::types::string::Did<'a>, 12 } 13 + 14 #[jacquard_derive::open_union] 15 #[derive( 16 serde::Serialize, ··· 32 #[serde(rename = "CannotDeleteSelf")] 33 CannotDeleteSelf(std::option::Option<String>), 34 } 35 + 36 impl std::fmt::Display for DeleteMemberError<'_> { 37 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 38 match self { ··· 50 } 51 Ok(()) 52 } 53 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 54 } 55 } 56 + }
+7 -1
crates/jacquard-api/src/tools_ozone/team/list_members.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListMembersParams<'a> { ··· 15 #[serde(borrow)] 16 pub roles: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 17 } 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 24 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 #[serde(borrow)] 26 pub members: Vec<crate::tools_ozone::team::Member<'a>>, 27 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListMembersParams<'a> { ··· 20 #[serde(borrow)] 21 pub roles: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 22 } 23 + 24 #[jacquard_derive::lexicon] 25 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 #[serde(rename_all = "camelCase")] ··· 30 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 31 #[serde(borrow)] 32 pub members: Vec<crate::tools_ozone::team::Member<'a>>, 33 + }
+10 -2
crates/jacquard-api/src/tools_ozone/team/update_member.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] ··· 10 #[serde(borrow)] 11 pub role: std::option::Option<jacquard_common::CowStr<'a>>, 12 } 13 #[jacquard_derive::lexicon] 14 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 #[serde(rename_all = "camelCase")] ··· 18 #[serde(borrow)] 19 pub value: crate::tools_ozone::team::Member<'a>, 20 } 21 #[jacquard_derive::open_union] 22 #[derive( 23 serde::Serialize, ··· 36 #[serde(rename = "MemberNotFound")] 37 MemberNotFound(std::option::Option<String>), 38 } 39 impl std::fmt::Display for UpdateMemberError<'_> { 40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 41 match self { ··· 46 } 47 Ok(()) 48 } 49 - Self::Unknown(_) => write!(f, "Unknown error"), 50 } 51 } 52 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] ··· 15 #[serde(borrow)] 16 pub role: std::option::Option<jacquard_common::CowStr<'a>>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] ··· 24 #[serde(borrow)] 25 pub value: crate::tools_ozone::team::Member<'a>, 26 } 27 + 28 #[jacquard_derive::open_union] 29 #[derive( 30 serde::Serialize, ··· 43 #[serde(rename = "MemberNotFound")] 44 MemberNotFound(std::option::Option<String>), 45 } 46 + 47 impl std::fmt::Display for UpdateMemberError<'_> { 48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 49 match self { ··· 54 } 55 Ok(()) 56 } 57 + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 } 59 } 60 + }
+21 -4
crates/jacquard-api/src/tools_ozone/verification.rs
··· 1 ///Verification data for the associated subject. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct VerificationView<'a> { 6 pub created_at: jacquard_common::types::string::Datetime, 7 #[serde(borrow)] 8 pub display_name: jacquard_common::CowStr<'a>, 9 #[serde(borrow)] 10 pub handle: jacquard_common::types::string::Handle<'a>, 11 #[serde(borrow)] 12 pub issuer: jacquard_common::types::string::Did<'a>, 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub issuer_repo: std::option::Option<VerificationViewRecordIssuerRepo<'a>>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 pub revoke_reason: std::option::Option<jacquard_common::CowStr<'a>>, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 pub revoked_at: std::option::Option<jacquard_common::types::string::Datetime>, 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 pub revoked_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 27 #[serde(borrow)] 28 pub subject: jacquard_common::types::string::Did<'a>, 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 32 #[serde(skip_serializing_if = "std::option::Option::is_none")] 33 #[serde(borrow)] 34 pub subject_repo: std::option::Option<VerificationViewRecordSubjectRepo<'a>>, 35 #[serde(borrow)] 36 pub uri: jacquard_common::types::string::AtUri<'a>, 37 } 38 #[jacquard_derive::open_union] 39 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 40 #[serde(tag = "$type")] ··· 50 #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] 51 DefsRepoViewNotFound(Box<crate::tools_ozone::moderation::RepoViewNotFound<'a>>), 52 } 53 #[jacquard_derive::open_union] 54 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 55 #[serde(tag = "$type")] ··· 64 DefsRepoViewDetail(Box<crate::tools_ozone::moderation::RepoViewDetail<'a>>), 65 #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] 66 DefsRepoViewNotFound(Box<crate::tools_ozone::moderation::RepoViewNotFound<'a>>), 67 - } 68 - pub mod grant_verifications; 69 - pub mod list_verifications; 70 - pub mod revoke_verifications;
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 + pub mod grant_verifications; 7 + pub mod list_verifications; 8 + pub mod revoke_verifications; 9 + 10 ///Verification data for the associated subject. 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] 14 pub struct VerificationView<'a> { 15 + ///Timestamp when the verification was created. 16 pub created_at: jacquard_common::types::string::Datetime, 17 + ///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. 18 #[serde(borrow)] 19 pub display_name: jacquard_common::CowStr<'a>, 20 + ///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. 21 #[serde(borrow)] 22 pub handle: jacquard_common::types::string::Handle<'a>, 23 + ///The user who issued this verification. 24 #[serde(borrow)] 25 pub issuer: jacquard_common::types::string::Did<'a>, 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 #[serde(borrow)] 31 pub issuer_repo: std::option::Option<VerificationViewRecordIssuerRepo<'a>>, 32 + ///Describes the reason for revocation, also indicating that the verification is no longer valid. 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] 35 pub revoke_reason: std::option::Option<jacquard_common::CowStr<'a>>, 36 + ///Timestamp when the verification was revoked. 37 #[serde(skip_serializing_if = "std::option::Option::is_none")] 38 pub revoked_at: std::option::Option<jacquard_common::types::string::Datetime>, 39 + ///The user who revoked this verification. 40 #[serde(skip_serializing_if = "std::option::Option::is_none")] 41 #[serde(borrow)] 42 pub revoked_by: std::option::Option<jacquard_common::types::string::Did<'a>>, 43 + ///The subject of the verification. 44 #[serde(borrow)] 45 pub subject: jacquard_common::types::string::Did<'a>, 46 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 49 #[serde(skip_serializing_if = "std::option::Option::is_none")] 50 #[serde(borrow)] 51 pub subject_repo: std::option::Option<VerificationViewRecordSubjectRepo<'a>>, 52 + ///The AT-URI of the verification record. 53 #[serde(borrow)] 54 pub uri: jacquard_common::types::string::AtUri<'a>, 55 } 56 + 57 #[jacquard_derive::open_union] 58 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 59 #[serde(tag = "$type")] ··· 69 #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] 70 DefsRepoViewNotFound(Box<crate::tools_ozone::moderation::RepoViewNotFound<'a>>), 71 } 72 + 73 #[jacquard_derive::open_union] 74 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 75 #[serde(tag = "$type")] ··· 84 DefsRepoViewDetail(Box<crate::tools_ozone::moderation::RepoViewDetail<'a>>), 85 #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] 86 DefsRepoViewNotFound(Box<crate::tools_ozone::moderation::RepoViewNotFound<'a>>), 87 + }
+16 -1
crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs
··· 1 ///Error object for failed verifications. 2 #[jacquard_derive::lexicon] 3 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 4 #[serde(rename_all = "camelCase")] 5 pub struct GrantError<'a> { 6 #[serde(borrow)] 7 pub error: jacquard_common::CowStr<'a>, 8 #[serde(borrow)] 9 pub subject: jacquard_common::types::string::Did<'a>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] 14 pub struct GrantVerificationsInput<'a> { 15 #[serde(borrow)] 16 pub verifications: Vec<jacquard_common::types::value::Data<'a>>, 17 } 18 #[jacquard_derive::lexicon] 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 #[serde(rename_all = "camelCase")] ··· 24 #[serde(borrow)] 25 pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>, 26 } 27 #[jacquard_derive::lexicon] 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 29 #[serde(rename_all = "camelCase")] 30 pub struct VerificationInput<'a> { 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 pub created_at: std::option::Option<jacquard_common::types::string::Datetime>, 33 #[serde(borrow)] 34 pub display_name: jacquard_common::CowStr<'a>, 35 #[serde(borrow)] 36 pub handle: jacquard_common::types::string::Handle<'a>, 37 #[serde(borrow)] 38 pub subject: jacquard_common::types::string::Did<'a>, 39 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 ///Error object for failed verifications. 7 #[jacquard_derive::lexicon] 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 9 #[serde(rename_all = "camelCase")] 10 pub struct GrantError<'a> { 11 + ///Error message describing the reason for failure. 12 #[serde(borrow)] 13 pub error: jacquard_common::CowStr<'a>, 14 + ///The did of the subject being verified 15 #[serde(borrow)] 16 pub subject: jacquard_common::types::string::Did<'a>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] 22 pub struct GrantVerificationsInput<'a> { 23 + ///Array of verification requests to process 24 #[serde(borrow)] 25 pub verifications: Vec<jacquard_common::types::value::Data<'a>>, 26 } 27 + 28 #[jacquard_derive::lexicon] 29 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 30 #[serde(rename_all = "camelCase")] ··· 34 #[serde(borrow)] 35 pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>, 36 } 37 + 38 #[jacquard_derive::lexicon] 39 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 40 #[serde(rename_all = "camelCase")] 41 pub struct VerificationInput<'a> { 42 + ///Timestamp for verification record. Defaults to current time when not specified. 43 #[serde(skip_serializing_if = "std::option::Option::is_none")] 44 pub created_at: std::option::Option<jacquard_common::types::string::Datetime>, 45 + ///Display name of the subject the verification applies to at the moment of verifying. 46 #[serde(borrow)] 47 pub display_name: jacquard_common::CowStr<'a>, 48 + ///Handle of the subject the verification applies to at the moment of verifying. 49 #[serde(borrow)] 50 pub handle: jacquard_common::types::string::Handle<'a>, 51 + ///The did of the subject being verified 52 #[serde(borrow)] 53 pub subject: jacquard_common::types::string::Did<'a>, 54 + }
+7 -1
crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs
··· 1 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 2 #[serde(rename_all = "camelCase")] 3 pub struct ListVerificationsParams<'a> { ··· 22 #[serde(borrow)] 23 pub subjects: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>, 24 } 25 #[jacquard_derive::lexicon] 26 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 #[serde(rename_all = "camelCase")] ··· 31 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 32 #[serde(borrow)] 33 pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>, 34 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 #[serde(rename_all = "camelCase")] 8 pub struct ListVerificationsParams<'a> { ··· 27 #[serde(borrow)] 28 pub subjects: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>, 29 } 30 + 31 #[jacquard_derive::lexicon] 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 #[serde(rename_all = "camelCase")] ··· 37 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 38 #[serde(borrow)] 39 pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>, 40 + }
+14 -1
crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs
··· 1 #[jacquard_derive::lexicon] 2 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 3 #[serde(rename_all = "camelCase")] 4 pub struct RevokeVerificationsInput<'a> { 5 #[serde(skip_serializing_if = "std::option::Option::is_none")] 6 #[serde(borrow)] 7 pub revoke_reason: std::option::Option<jacquard_common::CowStr<'a>>, 8 #[serde(borrow)] 9 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 10 } 11 #[jacquard_derive::lexicon] 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 13 #[serde(rename_all = "camelCase")] 14 pub struct RevokeVerificationsOutput<'a> { 15 #[serde(borrow)] 16 pub failed_revocations: Vec<jacquard_common::types::value::Data<'a>>, 17 #[serde(borrow)] 18 pub revoked_verifications: Vec<jacquard_common::types::string::AtUri<'a>>, 19 } 20 ///Error object for failed revocations 21 #[jacquard_derive::lexicon] 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 #[serde(rename_all = "camelCase")] 24 pub struct RevokeError<'a> { 25 #[serde(borrow)] 26 pub error: jacquard_common::CowStr<'a>, 27 #[serde(borrow)] 28 pub uri: jacquard_common::types::string::AtUri<'a>, 29 - }
··· 1 + // @generated by jacquard-lexicon. DO NOT EDIT. 2 + // 3 + // This file was automatically generated from Lexicon schemas. 4 + // Any manual changes will be overwritten on the next regeneration. 5 + 6 #[jacquard_derive::lexicon] 7 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 #[serde(rename_all = "camelCase")] 9 pub struct RevokeVerificationsInput<'a> { 10 + ///Reason for revoking the verification. This is optional and can be omitted if not needed. 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 #[serde(borrow)] 13 pub revoke_reason: std::option::Option<jacquard_common::CowStr<'a>>, 14 + ///Array of verification record uris to revoke 15 #[serde(borrow)] 16 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 17 } 18 + 19 #[jacquard_derive::lexicon] 20 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 #[serde(rename_all = "camelCase")] 22 pub struct RevokeVerificationsOutput<'a> { 23 + ///List of verification uris that couldn't be revoked, including failure reasons 24 #[serde(borrow)] 25 pub failed_revocations: Vec<jacquard_common::types::value::Data<'a>>, 26 + ///List of verification uris successfully revoked 27 #[serde(borrow)] 28 pub revoked_verifications: Vec<jacquard_common::types::string::AtUri<'a>>, 29 } 30 + 31 ///Error object for failed revocations 32 #[jacquard_derive::lexicon] 33 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 34 #[serde(rename_all = "camelCase")] 35 pub struct RevokeError<'a> { 36 + ///Description of the error that occurred during revocation. 37 #[serde(borrow)] 38 pub error: jacquard_common::CowStr<'a>, 39 + ///The AT-URI of the verification record that failed to revoke. 40 #[serde(borrow)] 41 pub uri: jacquard_common::types::string::AtUri<'a>, 42 + }
+5
crates/jacquard-lexicon/Cargo.toml
··· 11 exclude.workspace = true 12 description.workspace = true 13 14 [dependencies] 15 heck = "0.5.0" 16 itertools = "0.14.0" 17 jacquard-common = { version = "0.1.0", path = "../jacquard-common" }
··· 11 exclude.workspace = true 12 description.workspace = true 13 14 + [[bin]] 15 + name = "jacquard-codegen" 16 + path = "src/bin/codegen.rs" 17 + 18 [dependencies] 19 + clap = { workspace = true } 20 heck = "0.5.0" 21 itertools = "0.14.0" 22 jacquard-common = { version = "0.1.0", path = "../jacquard-common" }
+40
crates/jacquard-lexicon/src/bin/codegen.rs
···
··· 1 + use clap::Parser; 2 + use jacquard_lexicon::codegen::CodeGenerator; 3 + use jacquard_lexicon::corpus::LexiconCorpus; 4 + use std::path::PathBuf; 5 + 6 + #[derive(Parser, Debug)] 7 + #[command(author, version, about = "Generate Rust code from Lexicon schemas")] 8 + struct Args { 9 + /// Directory containing Lexicon JSON files 10 + #[arg(short = 'i', long)] 11 + input: PathBuf, 12 + 13 + /// Output directory for generated Rust code 14 + #[arg(short = 'o', long)] 15 + output: PathBuf, 16 + 17 + /// Root module name (default: "crate") 18 + #[arg(short = 'r', long, default_value = "crate")] 19 + root_module: String, 20 + } 21 + 22 + fn main() -> miette::Result<()> { 23 + let args = Args::parse(); 24 + 25 + println!("Loading lexicons from {:?}...", args.input); 26 + let corpus = LexiconCorpus::load_from_dir(&args.input)?; 27 + 28 + println!( 29 + "Loaded {} lexicon documents", 30 + corpus.iter().count() 31 + ); 32 + 33 + println!("Generating code..."); 34 + let codegen = CodeGenerator::new(&corpus, args.root_module); 35 + codegen.write_to_disk(&args.output)?; 36 + 37 + println!("✨ Generated code to {:?}", args.output); 38 + 39 + Ok(()) 40 + }
+92 -18
crates/jacquard-lexicon/src/codegen.rs
··· 1 use crate::corpus::LexiconCorpus; 2 use crate::error::{CodegenError, Result}; 3 use crate::lexicon::{ 4 - LexArrayItem, LexBlob, LexBoolean, LexBytes, LexCidLink, LexInteger, LexObject, 5 - LexObjectProperty, LexRecord, LexRef, LexRefUnion, LexString, LexStringFormat, LexUnknown, 6 - LexUserType, LexXrpcBody, LexXrpcBodySchema, LexXrpcError, LexXrpcParameters, LexXrpcProcedure, 7 - LexXrpcQuery, LexXrpcSubscription, LexXrpcSubscriptionMessageSchema, 8 }; 9 use heck::{ToPascalCase, ToSnakeCase}; 10 use proc_macro2::TokenStream; ··· 273 quote! { std::option::Option<#rust_type> } 274 }; 275 276 let mut attrs = Vec::new(); 277 278 if !is_required { ··· 285 } 286 287 Ok(quote! { 288 #(#attrs)* 289 pub #field_ident: #rust_type, 290 }) ··· 418 let item_type = self.array_item_to_rust_type(nsid, &array.items)?; 419 Ok(quote! { Vec<#item_type> }) 420 } 421 - LexObjectProperty::Ref(ref_type) => self.ref_to_rust_type(&ref_type.r#ref), 422 LexObjectProperty::Union(_union) => { 423 // Generate unique union type name: StatusView + embed -> StatusViewRecordEmbed 424 let union_name = ··· 430 } 431 432 /// Convert array item to Rust type 433 - fn array_item_to_rust_type(&self, _nsid: &str, item: &LexArrayItem) -> Result<TokenStream> { 434 match item { 435 LexArrayItem::Boolean(_) => Ok(quote! { bool }), 436 LexArrayItem::Integer(_) => Ok(quote! { i64 }), ··· 439 LexArrayItem::CidLink(_) => Ok(quote! { jacquard_common::types::cid::CidLink<'a> }), 440 LexArrayItem::Blob(_) => Ok(quote! { jacquard_common::types::blob::Blob<'a> }), 441 LexArrayItem::Unknown(_) => Ok(quote! { jacquard_common::types::value::Data<'a> }), 442 - LexArrayItem::Ref(ref_type) => self.ref_to_rust_type(&ref_type.r#ref), 443 LexArrayItem::Union(_) => { 444 // For now, use Data 445 Ok(quote! { jacquard_common::types::value::Data<'a> }) ··· 835 } 836 837 /// Generate all code for the corpus, organized by file 838 pub fn generate_all( 839 &self, 840 - ) -> Result<std::collections::BTreeMap<std::path::PathBuf, TokenStream>> { 841 use std::collections::BTreeMap; 842 843 let mut file_contents: BTreeMap<std::path::PathBuf, Vec<TokenStream>> = BTreeMap::new(); 844 845 // Generate code for all lexicons 846 for (nsid, doc) in self.corpus.iter() { 847 let file_path = self.nsid_to_file_path(nsid.as_ref()); 848 849 for (def_name, def) in &doc.defs { 850 let tokens = self.generate_def(nsid.as_ref(), def_name.as_ref(), def)?; 851 file_contents ··· 858 // Combine all tokens for each file 859 let mut result = BTreeMap::new(); 860 for (path, tokens_vec) in file_contents { 861 - result.insert(path, quote! { #(#tokens_vec)* }); 862 } 863 864 Ok(result) ··· 867 /// Generate parent module files with pub mod declarations 868 pub fn generate_module_tree( 869 &self, 870 - file_map: &std::collections::BTreeMap<std::path::PathBuf, TokenStream>, 871 - defs_only: &std::collections::BTreeMap<std::path::PathBuf, TokenStream>, 872 - ) -> std::collections::BTreeMap<std::path::PathBuf, TokenStream> { 873 use std::collections::{BTreeMap, BTreeSet}; 874 875 // Track what modules each directory needs to declare ··· 929 930 // If this file already exists in defs_only (e.g., from defs), merge the content 931 let module_tokens = quote! { #(#mods)* }; 932 - if let Some(existing) = defs_only.get(&mod_file_path) { 933 - // Combine existing defs content with module declarations 934 - result.insert(mod_file_path, quote! { #existing #module_tokens }); 935 } else { 936 - result.insert(mod_file_path, module_tokens); 937 } 938 } 939 ··· 963 } 964 965 // Write to disk 966 - for (path, tokens) in all_files { 967 let full_path = output_dir.join(&path); 968 969 // Create parent directories ··· 982 ), 983 source: None, 984 })?; 985 - let formatted = prettyplease::unparse(&file); 986 987 // Write file 988 std::fs::write(&full_path, formatted).map_err(|e| CodegenError::Other {
··· 1 use crate::corpus::LexiconCorpus; 2 use crate::error::{CodegenError, Result}; 3 use crate::lexicon::{ 4 + LexArrayItem, LexInteger, LexObject, LexObjectProperty, LexRecord, LexString, LexStringFormat, 5 + LexUserType, LexXrpcBody, LexXrpcBodySchema, LexXrpcError, LexXrpcProcedure, LexXrpcQuery, 6 + LexXrpcSubscription, LexXrpcSubscriptionMessageSchema, 7 }; 8 use heck::{ToPascalCase, ToSnakeCase}; 9 use proc_macro2::TokenStream; ··· 272 quote! { std::option::Option<#rust_type> } 273 }; 274 275 + // Extract description from field type 276 + let description = match field_type { 277 + LexObjectProperty::Ref(r) => r.description.as_ref(), 278 + LexObjectProperty::Union(u) => u.description.as_ref(), 279 + LexObjectProperty::Bytes(b) => b.description.as_ref(), 280 + LexObjectProperty::CidLink(c) => c.description.as_ref(), 281 + LexObjectProperty::Array(a) => a.description.as_ref(), 282 + LexObjectProperty::Blob(b) => b.description.as_ref(), 283 + LexObjectProperty::Boolean(b) => b.description.as_ref(), 284 + LexObjectProperty::Integer(i) => i.description.as_ref(), 285 + LexObjectProperty::String(s) => s.description.as_ref(), 286 + LexObjectProperty::Unknown(u) => u.description.as_ref(), 287 + }; 288 + let doc = self.generate_doc_comment(description); 289 + 290 let mut attrs = Vec::new(); 291 292 if !is_required { ··· 299 } 300 301 Ok(quote! { 302 + #doc 303 #(#attrs)* 304 pub #field_ident: #rust_type, 305 }) ··· 433 let item_type = self.array_item_to_rust_type(nsid, &array.items)?; 434 Ok(quote! { Vec<#item_type> }) 435 } 436 + LexObjectProperty::Ref(ref_type) => { 437 + // Handle local refs (starting with #) by prepending the current NSID 438 + let ref_str = if ref_type.r#ref.starts_with('#') { 439 + format!("{}{}", nsid, ref_type.r#ref) 440 + } else { 441 + ref_type.r#ref.to_string() 442 + }; 443 + self.ref_to_rust_type(&ref_str) 444 + } 445 LexObjectProperty::Union(_union) => { 446 // Generate unique union type name: StatusView + embed -> StatusViewRecordEmbed 447 let union_name = ··· 453 } 454 455 /// Convert array item to Rust type 456 + fn array_item_to_rust_type(&self, nsid: &str, item: &LexArrayItem) -> Result<TokenStream> { 457 match item { 458 LexArrayItem::Boolean(_) => Ok(quote! { bool }), 459 LexArrayItem::Integer(_) => Ok(quote! { i64 }), ··· 462 LexArrayItem::CidLink(_) => Ok(quote! { jacquard_common::types::cid::CidLink<'a> }), 463 LexArrayItem::Blob(_) => Ok(quote! { jacquard_common::types::blob::Blob<'a> }), 464 LexArrayItem::Unknown(_) => Ok(quote! { jacquard_common::types::value::Data<'a> }), 465 + LexArrayItem::Ref(ref_type) => { 466 + // Handle local refs (starting with #) by prepending the current NSID 467 + let ref_str = if ref_type.r#ref.starts_with('#') { 468 + format!("{}{}", nsid, ref_type.r#ref) 469 + } else { 470 + ref_type.r#ref.to_string() 471 + }; 472 + self.ref_to_rust_type(&ref_str) 473 + } 474 LexArrayItem::Union(_) => { 475 // For now, use Data 476 Ok(quote! { jacquard_common::types::value::Data<'a> }) ··· 866 } 867 868 /// Generate all code for the corpus, organized by file 869 + /// Returns a map of file paths to (tokens, optional NSID) 870 pub fn generate_all( 871 &self, 872 + ) -> Result<std::collections::BTreeMap<std::path::PathBuf, (TokenStream, Option<String>)>> { 873 use std::collections::BTreeMap; 874 875 let mut file_contents: BTreeMap<std::path::PathBuf, Vec<TokenStream>> = BTreeMap::new(); 876 + let mut file_nsids: BTreeMap<std::path::PathBuf, String> = BTreeMap::new(); 877 878 // Generate code for all lexicons 879 for (nsid, doc) in self.corpus.iter() { 880 let file_path = self.nsid_to_file_path(nsid.as_ref()); 881 882 + // Track which NSID this file is for 883 + file_nsids.insert(file_path.clone(), nsid.to_string()); 884 + 885 for (def_name, def) in &doc.defs { 886 let tokens = self.generate_def(nsid.as_ref(), def_name.as_ref(), def)?; 887 file_contents ··· 894 // Combine all tokens for each file 895 let mut result = BTreeMap::new(); 896 for (path, tokens_vec) in file_contents { 897 + let nsid = file_nsids.get(&path).cloned(); 898 + result.insert(path, (quote! { #(#tokens_vec)* }, nsid)); 899 } 900 901 Ok(result) ··· 904 /// Generate parent module files with pub mod declarations 905 pub fn generate_module_tree( 906 &self, 907 + file_map: &std::collections::BTreeMap<std::path::PathBuf, (TokenStream, Option<String>)>, 908 + defs_only: &std::collections::BTreeMap<std::path::PathBuf, (TokenStream, Option<String>)>, 909 + ) -> std::collections::BTreeMap<std::path::PathBuf, (TokenStream, Option<String>)> { 910 use std::collections::{BTreeMap, BTreeSet}; 911 912 // Track what modules each directory needs to declare ··· 966 967 // If this file already exists in defs_only (e.g., from defs), merge the content 968 let module_tokens = quote! { #(#mods)* }; 969 + if let Some((existing_tokens, nsid)) = defs_only.get(&mod_file_path) { 970 + // Put module declarations FIRST, then existing defs content 971 + result.insert( 972 + mod_file_path, 973 + (quote! { #module_tokens #existing_tokens }, nsid.clone()), 974 + ); 975 } else { 976 + result.insert(mod_file_path, (module_tokens, None)); 977 } 978 } 979 ··· 1003 } 1004 1005 // Write to disk 1006 + for (path, (tokens, nsid)) in all_files { 1007 let full_path = output_dir.join(&path); 1008 1009 // Create parent directories ··· 1022 ), 1023 source: None, 1024 })?; 1025 + let mut formatted = prettyplease::unparse(&file); 1026 + 1027 + // Add blank lines between top-level items for better readability 1028 + let lines: Vec<&str> = formatted.lines().collect(); 1029 + let mut result_lines = Vec::new(); 1030 + 1031 + for (i, line) in lines.iter().enumerate() { 1032 + result_lines.push(*line); 1033 + 1034 + // Add blank line after closing braces that are at column 0 (top-level items) 1035 + if *line == "}" && i + 1 < lines.len() && !lines[i + 1].is_empty() { 1036 + result_lines.push(""); 1037 + } 1038 + 1039 + // Add blank line after last pub mod declaration before structs/enums 1040 + if line.starts_with("pub mod ") && i + 1 < lines.len() { 1041 + let next_line = lines[i + 1]; 1042 + if !next_line.starts_with("pub mod ") && !next_line.is_empty() { 1043 + result_lines.push(""); 1044 + } 1045 + } 1046 + } 1047 + 1048 + formatted = result_lines.join("\n"); 1049 + 1050 + // Add header comment 1051 + let header = if let Some(nsid) = nsid { 1052 + format!( 1053 + "// @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", 1054 + nsid 1055 + ) 1056 + } else { 1057 + "// @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() 1058 + }; 1059 + formatted = format!("{}{}", header, formatted); 1060 1061 // Write file 1062 std::fs::write(&full_path, formatted).map_err(|e| CodegenError::Other {
-6
crates/jacquard-lexicon/src/fs.rs
··· 28 })?; 29 Ok(results) 30 } 31 - 32 - pub(crate) fn find_dirs(path: &Path) -> Result<Vec<impl AsRef<Path>>> { 33 - let mut results = Vec::new(); 34 - walk(path, &mut results, &mut |path| path.is_dir())?; 35 - Ok(results) 36 - }
··· 28 })?; 29 Ok(results) 30 }