A better Rust ATProto crate

fleshed out axum extractor helper, part-way to figuring out better deser/parse in xrpc client

Orual 46854a05 8674a053

Changed files
+3702 -3959
crates
jacquard
jacquard-api
src
app_bsky
actor
bookmark
feed
graph
labeler
notification
unspecced
video
chat_bsky
com_atproto
admin
identity
label
moderation
repo
server
sync
temp
tools_ozone
jacquard-axum
jacquard-common
jacquard-identity
src
jacquard-lexicon
jacquard-oauth
src
+1
Cargo.lock
··· 1790 "jacquard-common", 1791 "miette", 1792 "serde", 1793 "serde_ipld_dagcbor", 1794 "serde_json", 1795 "thiserror 2.0.17",
··· 1790 "jacquard-common", 1791 "miette", 1792 "serde", 1793 + "serde_html_form", 1794 "serde_ipld_dagcbor", 1795 "serde_json", 1796 "thiserror 2.0.17",
+14 -14
crates/jacquard-api/src/app_bsky/actor/get_preferences.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetPreferences {} ··· 42 } 43 } 44 45 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPreferences { 46 - const NSID: &'static str = "app.bsky.actor.getPreferences"; 47 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = GetPreferencesOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetPreferences {} ··· 34 } 35 } 36 37 + ///Response type for 38 + ///app.bsky.actor.getPreferences 39 + pub struct GetPreferencesResponse; 40 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPreferencesResponse { 41 + const ENCODING: &'static str = "application/json"; 42 type Output = GetPreferencesOutput<'de>; 43 type Err = jacquard_common::types::xrpc::GenericError<'de>; 44 + } 45 + 46 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPreferences { 47 + const NSID: &'static str = "app.bsky.actor.getPreferences"; 48 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 49 + jacquard_common::types::xrpc::XrpcMethod::Query; 50 + type Response<'de1> = GetPreferencesResponse; 51 + }
+14 -14
crates/jacquard-api/src/app_bsky/actor/get_profile.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetProfile<'a> { ··· 49 } 50 } 51 52 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetProfile<'de> { 53 - const NSID: &'static str = "app.bsky.actor.getProfile"; 54 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 55 - const OUTPUT_ENCODING: &'static str = "application/json"; 56 type Output = GetProfileOutput<'de>; 57 type Err = jacquard_common::types::xrpc::GenericError<'de>; 58 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetProfile<'a> { ··· 41 } 42 } 43 44 + ///Response type for 45 + ///app.bsky.actor.getProfile 46 + pub struct GetProfileResponse; 47 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetProfileResponse { 48 + const ENCODING: &'static str = "application/json"; 49 type Output = GetProfileOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 + } 52 + 53 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetProfile<'de> { 54 + const NSID: &'static str = "app.bsky.actor.getProfile"; 55 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 56 + jacquard_common::types::xrpc::XrpcMethod::Query; 57 + type Response<'de1> = GetProfileResponse; 58 + }
+14 -14
crates/jacquard-api/src/app_bsky/actor/get_profiles.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetProfiles<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetProfiles<'de> { 52 - const NSID: &'static str = "app.bsky.actor.getProfiles"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetProfilesOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetProfiles<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///app.bsky.actor.getProfiles 45 + pub struct GetProfilesResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetProfilesResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetProfilesOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetProfiles<'de> { 53 + const NSID: &'static str = "app.bsky.actor.getProfiles"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetProfilesResponse; 57 + }
+14 -14
crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestions<'a> { ··· 62 } 63 } 64 65 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestions<'de> { 66 - const NSID: &'static str = "app.bsky.actor.getSuggestions"; 67 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 68 - const OUTPUT_ENCODING: &'static str = "application/json"; 69 type Output = GetSuggestionsOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestions<'a> { ··· 54 } 55 } 56 57 + ///Response type for 58 + ///app.bsky.actor.getSuggestions 59 + pub struct GetSuggestionsResponse; 60 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestionsResponse { 61 + const ENCODING: &'static str = "application/json"; 62 type Output = GetSuggestionsOutput<'de>; 63 type Err = jacquard_common::types::xrpc::GenericError<'de>; 64 + } 65 + 66 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestions<'de> { 67 + const NSID: &'static str = "app.bsky.actor.getSuggestions"; 68 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 69 + jacquard_common::types::xrpc::XrpcMethod::Query; 70 + type Response<'de1> = GetSuggestionsResponse; 71 + }
+14 -16
crates/jacquard-api/src/app_bsky/actor/put_preferences.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct PutPreferences<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferences<'de> { 43 - const NSID: &'static str = "app.bsky.actor.putPreferences"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct PutPreferences<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///app.bsky.actor.putPreferences 36 + pub struct PutPreferencesResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutPreferencesResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferences<'de> { 44 + const NSID: &'static str = "app.bsky.actor.putPreferences"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = PutPreferencesResponse; 48 + }
+14 -14
crates/jacquard-api/src/app_bsky/actor/search_actors.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchActors<'a> { ··· 68 } 69 } 70 71 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActors<'de> { 72 - const NSID: &'static str = "app.bsky.actor.searchActors"; 73 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 74 - const OUTPUT_ENCODING: &'static str = "application/json"; 75 type Output = SearchActorsOutput<'de>; 76 type Err = jacquard_common::types::xrpc::GenericError<'de>; 77 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchActors<'a> { ··· 60 } 61 } 62 63 + ///Response type for 64 + ///app.bsky.actor.searchActors 65 + pub struct SearchActorsResponse; 66 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchActorsResponse { 67 + const ENCODING: &'static str = "application/json"; 68 type Output = SearchActorsOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 + } 71 + 72 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActors<'de> { 73 + const NSID: &'static str = "app.bsky.actor.searchActors"; 74 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 75 + jacquard_common::types::xrpc::XrpcMethod::Query; 76 + type Response<'de1> = SearchActorsResponse; 77 + }
+14 -14
crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchActorsTypeahead<'a> { ··· 59 } 60 } 61 62 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActorsTypeahead<'de> { 63 - const NSID: &'static str = "app.bsky.actor.searchActorsTypeahead"; 64 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 65 - const OUTPUT_ENCODING: &'static str = "application/json"; 66 type Output = SearchActorsTypeaheadOutput<'de>; 67 type Err = jacquard_common::types::xrpc::GenericError<'de>; 68 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchActorsTypeahead<'a> { ··· 51 } 52 } 53 54 + ///Response type for 55 + ///app.bsky.actor.searchActorsTypeahead 56 + pub struct SearchActorsTypeaheadResponse; 57 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchActorsTypeaheadResponse { 58 + const ENCODING: &'static str = "application/json"; 59 type Output = SearchActorsTypeaheadOutput<'de>; 60 type Err = jacquard_common::types::xrpc::GenericError<'de>; 61 + } 62 + 63 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActorsTypeahead<'de> { 64 + const NSID: &'static str = "app.bsky.actor.searchActorsTypeahead"; 65 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 66 + jacquard_common::types::xrpc::XrpcMethod::Query; 67 + type Response<'de1> = SearchActorsTypeaheadResponse; 68 + }
+16 -20
crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct CreateBookmark<'a> { ··· 51 PartialEq, 52 Eq, 53 thiserror::Error, 54 - miette::Diagnostic 55 )] 56 #[serde(tag = "error", content = "message")] 57 #[serde(bound(deserialize = "'de: 'a"))] ··· 83 CreateBookmarkError::UnsupportedCollection(v) => { 84 CreateBookmarkError::UnsupportedCollection(v.into_static()) 85 } 86 - CreateBookmarkError::Unknown(v) => { 87 - CreateBookmarkError::Unknown(v.into_static()) 88 - } 89 } 90 } 91 } 92 93 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateBookmark<'de> { 94 - const NSID: &'static str = "app.bsky.bookmark.createBookmark"; 95 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 96 - "application/json", 97 - ); 98 - const OUTPUT_ENCODING: &'static str = "application/json"; 99 type Output = (); 100 type Err = CreateBookmarkError<'de>; 101 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct CreateBookmark<'a> { ··· 43 PartialEq, 44 Eq, 45 thiserror::Error, 46 + miette::Diagnostic, 47 )] 48 #[serde(tag = "error", content = "message")] 49 #[serde(bound(deserialize = "'de: 'a"))] ··· 75 CreateBookmarkError::UnsupportedCollection(v) => { 76 CreateBookmarkError::UnsupportedCollection(v.into_static()) 77 } 78 + CreateBookmarkError::Unknown(v) => CreateBookmarkError::Unknown(v.into_static()), 79 } 80 } 81 } 82 83 + ///Response type for 84 + ///app.bsky.bookmark.createBookmark 85 + pub struct CreateBookmarkResponse; 86 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateBookmarkResponse { 87 + const ENCODING: &'static str = "application/json"; 88 type Output = (); 89 type Err = CreateBookmarkError<'de>; 90 + } 91 + 92 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateBookmark<'de> { 93 + const NSID: &'static str = "app.bsky.bookmark.createBookmark"; 94 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 95 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 96 + type Response<'de1> = CreateBookmarkResponse; 97 + }
+16 -20
crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteBookmark<'a> { ··· 48 PartialEq, 49 Eq, 50 thiserror::Error, 51 - miette::Diagnostic 52 )] 53 #[serde(tag = "error", content = "message")] 54 #[serde(bound(deserialize = "'de: 'a"))] ··· 80 DeleteBookmarkError::UnsupportedCollection(v) => { 81 DeleteBookmarkError::UnsupportedCollection(v.into_static()) 82 } 83 - DeleteBookmarkError::Unknown(v) => { 84 - DeleteBookmarkError::Unknown(v.into_static()) 85 - } 86 } 87 } 88 } 89 90 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteBookmark<'de> { 91 - const NSID: &'static str = "app.bsky.bookmark.deleteBookmark"; 92 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 93 - "application/json", 94 - ); 95 - const OUTPUT_ENCODING: &'static str = "application/json"; 96 type Output = (); 97 type Err = DeleteBookmarkError<'de>; 98 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteBookmark<'a> { ··· 40 PartialEq, 41 Eq, 42 thiserror::Error, 43 + miette::Diagnostic, 44 )] 45 #[serde(tag = "error", content = "message")] 46 #[serde(bound(deserialize = "'de: 'a"))] ··· 72 DeleteBookmarkError::UnsupportedCollection(v) => { 73 DeleteBookmarkError::UnsupportedCollection(v.into_static()) 74 } 75 + DeleteBookmarkError::Unknown(v) => DeleteBookmarkError::Unknown(v.into_static()), 76 } 77 } 78 } 79 80 + ///Response type for 81 + ///app.bsky.bookmark.deleteBookmark 82 + pub struct DeleteBookmarkResponse; 83 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteBookmarkResponse { 84 + const ENCODING: &'static str = "application/json"; 85 type Output = (); 86 type Err = DeleteBookmarkError<'de>; 87 + } 88 + 89 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteBookmark<'de> { 90 + const NSID: &'static str = "app.bsky.bookmark.deleteBookmark"; 91 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 92 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 93 + type Response<'de1> = DeleteBookmarkResponse; 94 + }
+14 -14
crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetBookmarks<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBookmarks<'de> { 62 - const NSID: &'static str = "app.bsky.bookmark.getBookmarks"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = GetBookmarksOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetBookmarks<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///app.bsky.bookmark.getBookmarks 55 + pub struct GetBookmarksResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetBookmarksResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = GetBookmarksOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBookmarks<'de> { 63 + const NSID: &'static str = "app.bsky.bookmark.getBookmarks"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = GetBookmarksResponse; 67 + }
+13 -5
crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs
··· 74 /// XRPC request marker type 75 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 76 pub struct DescribeFeedGenerator; 77 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeFeedGenerator { 78 - const NSID: &'static str = "app.bsky.feed.describeFeedGenerator"; 79 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 80 - const OUTPUT_ENCODING: &'static str = "application/json"; 81 type Output = DescribeFeedGeneratorOutput<'de>; 82 type Err = jacquard_common::types::xrpc::GenericError<'de>; 83 - }
··· 74 /// XRPC request marker type 75 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 76 pub struct DescribeFeedGenerator; 77 + ///Response type for 78 + ///app.bsky.feed.describeFeedGenerator 79 + pub struct DescribeFeedGeneratorResponse; 80 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DescribeFeedGeneratorResponse { 81 + const ENCODING: &'static str = "application/json"; 82 type Output = DescribeFeedGeneratorOutput<'de>; 83 type Err = jacquard_common::types::xrpc::GenericError<'de>; 84 + } 85 + 86 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeFeedGenerator { 87 + const NSID: &'static str = "app.bsky.feed.describeFeedGenerator"; 88 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 89 + jacquard_common::types::xrpc::XrpcMethod::Query; 90 + type Response<'de1> = DescribeFeedGeneratorResponse; 91 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetActorFeeds<'a> { ··· 61 } 62 } 63 64 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorFeeds<'de> { 65 - const NSID: &'static str = "app.bsky.feed.getActorFeeds"; 66 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 67 - const OUTPUT_ENCODING: &'static str = "application/json"; 68 type Output = GetActorFeedsOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetActorFeeds<'a> { ··· 53 } 54 } 55 56 + ///Response type for 57 + ///app.bsky.feed.getActorFeeds 58 + pub struct GetActorFeedsResponse; 59 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetActorFeedsResponse { 60 + const ENCODING: &'static str = "application/json"; 61 type Output = GetActorFeedsOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 + } 64 + 65 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorFeeds<'de> { 66 + const NSID: &'static str = "app.bsky.feed.getActorFeeds"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 68 + jacquard_common::types::xrpc::XrpcMethod::Query; 69 + type Response<'de1> = GetActorFeedsResponse; 70 + }
+16 -18
crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetActorLikes<'a> { ··· 70 PartialEq, 71 Eq, 72 thiserror::Error, 73 - miette::Diagnostic 74 )] 75 #[serde(tag = "error", content = "message")] 76 #[serde(bound(deserialize = "'de: 'a"))] ··· 113 GetActorLikesError::BlockedByActor(v) => { 114 GetActorLikesError::BlockedByActor(v.into_static()) 115 } 116 - GetActorLikesError::Unknown(v) => { 117 - GetActorLikesError::Unknown(v.into_static()) 118 - } 119 } 120 } 121 } 122 123 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorLikes<'de> { 124 - const NSID: &'static str = "app.bsky.feed.getActorLikes"; 125 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 126 - const OUTPUT_ENCODING: &'static str = "application/json"; 127 type Output = GetActorLikesOutput<'de>; 128 type Err = GetActorLikesError<'de>; 129 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetActorLikes<'a> { ··· 62 PartialEq, 63 Eq, 64 thiserror::Error, 65 + miette::Diagnostic, 66 )] 67 #[serde(tag = "error", content = "message")] 68 #[serde(bound(deserialize = "'de: 'a"))] ··· 105 GetActorLikesError::BlockedByActor(v) => { 106 GetActorLikesError::BlockedByActor(v.into_static()) 107 } 108 + GetActorLikesError::Unknown(v) => GetActorLikesError::Unknown(v.into_static()), 109 } 110 } 111 } 112 113 + ///Response type for 114 + ///app.bsky.feed.getActorLikes 115 + pub struct GetActorLikesResponse; 116 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetActorLikesResponse { 117 + const ENCODING: &'static str = "application/json"; 118 type Output = GetActorLikesOutput<'de>; 119 type Err = GetActorLikesError<'de>; 120 + } 121 + 122 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorLikes<'de> { 123 + const NSID: &'static str = "app.bsky.feed.getActorLikes"; 124 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 125 + jacquard_common::types::xrpc::XrpcMethod::Query; 126 + type Response<'de1> = GetActorLikesResponse; 127 + }
+16 -18
crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetAuthorFeed<'a> { ··· 80 PartialEq, 81 Eq, 82 thiserror::Error, 83 - miette::Diagnostic 84 )] 85 #[serde(tag = "error", content = "message")] 86 #[serde(bound(deserialize = "'de: 'a"))] ··· 123 GetAuthorFeedError::BlockedByActor(v) => { 124 GetAuthorFeedError::BlockedByActor(v.into_static()) 125 } 126 - GetAuthorFeedError::Unknown(v) => { 127 - GetAuthorFeedError::Unknown(v.into_static()) 128 - } 129 } 130 } 131 } 132 133 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAuthorFeed<'de> { 134 - const NSID: &'static str = "app.bsky.feed.getAuthorFeed"; 135 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 136 - const OUTPUT_ENCODING: &'static str = "application/json"; 137 type Output = GetAuthorFeedOutput<'de>; 138 type Err = GetAuthorFeedError<'de>; 139 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetAuthorFeed<'a> { ··· 72 PartialEq, 73 Eq, 74 thiserror::Error, 75 + miette::Diagnostic, 76 )] 77 #[serde(tag = "error", content = "message")] 78 #[serde(bound(deserialize = "'de: 'a"))] ··· 115 GetAuthorFeedError::BlockedByActor(v) => { 116 GetAuthorFeedError::BlockedByActor(v.into_static()) 117 } 118 + GetAuthorFeedError::Unknown(v) => GetAuthorFeedError::Unknown(v.into_static()), 119 } 120 } 121 } 122 123 + ///Response type for 124 + ///app.bsky.feed.getAuthorFeed 125 + pub struct GetAuthorFeedResponse; 126 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAuthorFeedResponse { 127 + const ENCODING: &'static str = "application/json"; 128 type Output = GetAuthorFeedOutput<'de>; 129 type Err = GetAuthorFeedError<'de>; 130 + } 131 + 132 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAuthorFeed<'de> { 133 + const NSID: &'static str = "app.bsky.feed.getAuthorFeed"; 134 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 135 + jacquard_common::types::xrpc::XrpcMethod::Query; 136 + type Response<'de1> = GetAuthorFeedResponse; 137 + }
+15 -15
crates/jacquard-api/src/app_bsky/feed/get_feed.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetFeed<'a> { ··· 70 PartialEq, 71 Eq, 72 thiserror::Error, 73 - miette::Diagnostic 74 )] 75 #[serde(tag = "error", content = "message")] 76 #[serde(bound(deserialize = "'de: 'a"))] ··· 104 } 105 } 106 107 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeed<'de> { 108 - const NSID: &'static str = "app.bsky.feed.getFeed"; 109 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 110 - const OUTPUT_ENCODING: &'static str = "application/json"; 111 type Output = GetFeedOutput<'de>; 112 type Err = GetFeedError<'de>; 113 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetFeed<'a> { ··· 62 PartialEq, 63 Eq, 64 thiserror::Error, 65 + miette::Diagnostic, 66 )] 67 #[serde(tag = "error", content = "message")] 68 #[serde(bound(deserialize = "'de: 'a"))] ··· 96 } 97 } 98 99 + ///Response type for 100 + ///app.bsky.feed.getFeed 101 + pub struct GetFeedResponse; 102 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFeedResponse { 103 + const ENCODING: &'static str = "application/json"; 104 type Output = GetFeedOutput<'de>; 105 type Err = GetFeedError<'de>; 106 + } 107 + 108 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeed<'de> { 109 + const NSID: &'static str = "app.bsky.feed.getFeed"; 110 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 111 + jacquard_common::types::xrpc::XrpcMethod::Query; 112 + type Response<'de1> = GetFeedResponse; 113 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetFeedGenerator<'a> { ··· 54 } 55 } 56 57 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedGenerator<'de> { 58 - const NSID: &'static str = "app.bsky.feed.getFeedGenerator"; 59 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 - const OUTPUT_ENCODING: &'static str = "application/json"; 61 type Output = GetFeedGeneratorOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetFeedGenerator<'a> { ··· 46 } 47 } 48 49 + ///Response type for 50 + ///app.bsky.feed.getFeedGenerator 51 + pub struct GetFeedGeneratorResponse; 52 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFeedGeneratorResponse { 53 + const ENCODING: &'static str = "application/json"; 54 type Output = GetFeedGeneratorOutput<'de>; 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 + } 57 + 58 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedGenerator<'de> { 59 + const NSID: &'static str = "app.bsky.feed.getFeedGenerator"; 60 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 61 + jacquard_common::types::xrpc::XrpcMethod::Query; 62 + type Response<'de1> = GetFeedGeneratorResponse; 63 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetFeedGenerators<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedGenerators<'de> { 52 - const NSID: &'static str = "app.bsky.feed.getFeedGenerators"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetFeedGeneratorsOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetFeedGenerators<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///app.bsky.feed.getFeedGenerators 45 + pub struct GetFeedGeneratorsResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFeedGeneratorsResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetFeedGeneratorsOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedGenerators<'de> { 53 + const NSID: &'static str = "app.bsky.feed.getFeedGenerators"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetFeedGeneratorsResponse; 57 + }
+16 -18
crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetFeedSkeleton<'a> { ··· 75 PartialEq, 76 Eq, 77 thiserror::Error, 78 - miette::Diagnostic 79 )] 80 #[serde(tag = "error", content = "message")] 81 #[serde(bound(deserialize = "'de: 'a"))] ··· 106 GetFeedSkeletonError::UnknownFeed(v) => { 107 GetFeedSkeletonError::UnknownFeed(v.into_static()) 108 } 109 - GetFeedSkeletonError::Unknown(v) => { 110 - GetFeedSkeletonError::Unknown(v.into_static()) 111 - } 112 } 113 } 114 } 115 116 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedSkeleton<'de> { 117 - const NSID: &'static str = "app.bsky.feed.getFeedSkeleton"; 118 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 119 - const OUTPUT_ENCODING: &'static str = "application/json"; 120 type Output = GetFeedSkeletonOutput<'de>; 121 type Err = GetFeedSkeletonError<'de>; 122 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetFeedSkeleton<'a> { ··· 67 PartialEq, 68 Eq, 69 thiserror::Error, 70 + miette::Diagnostic, 71 )] 72 #[serde(tag = "error", content = "message")] 73 #[serde(bound(deserialize = "'de: 'a"))] ··· 98 GetFeedSkeletonError::UnknownFeed(v) => { 99 GetFeedSkeletonError::UnknownFeed(v.into_static()) 100 } 101 + GetFeedSkeletonError::Unknown(v) => GetFeedSkeletonError::Unknown(v.into_static()), 102 } 103 } 104 } 105 106 + ///Response type for 107 + ///app.bsky.feed.getFeedSkeleton 108 + pub struct GetFeedSkeletonResponse; 109 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFeedSkeletonResponse { 110 + const ENCODING: &'static str = "application/json"; 111 type Output = GetFeedSkeletonOutput<'de>; 112 type Err = GetFeedSkeletonError<'de>; 113 + } 114 + 115 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedSkeleton<'de> { 116 + const NSID: &'static str = "app.bsky.feed.getFeedSkeleton"; 117 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 118 + jacquard_common::types::xrpc::XrpcMethod::Query; 119 + type Response<'de1> = GetFeedSkeletonResponse; 120 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_likes.rs
··· 27 } 28 } 29 30 - #[derive( 31 - serde::Serialize, 32 - serde::Deserialize, 33 - Debug, 34 - Clone, 35 - PartialEq, 36 - Eq, 37 - bon::Builder 38 - )] 39 #[builder(start_fn = new)] 40 #[serde(rename_all = "camelCase")] 41 pub struct GetLikes<'a> { ··· 94 } 95 } 96 97 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLikes<'de> { 98 - const NSID: &'static str = "app.bsky.feed.getLikes"; 99 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 100 - const OUTPUT_ENCODING: &'static str = "application/json"; 101 type Output = GetLikesOutput<'de>; 102 type Err = jacquard_common::types::xrpc::GenericError<'de>; 103 - }
··· 27 } 28 } 29 30 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 31 #[builder(start_fn = new)] 32 #[serde(rename_all = "camelCase")] 33 pub struct GetLikes<'a> { ··· 86 } 87 } 88 89 + ///Response type for 90 + ///app.bsky.feed.getLikes 91 + pub struct GetLikesResponse; 92 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetLikesResponse { 93 + const ENCODING: &'static str = "application/json"; 94 type Output = GetLikesOutput<'de>; 95 type Err = jacquard_common::types::xrpc::GenericError<'de>; 96 + } 97 + 98 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLikes<'de> { 99 + const NSID: &'static str = "app.bsky.feed.getLikes"; 100 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 101 + jacquard_common::types::xrpc::XrpcMethod::Query; 102 + type Response<'de1> = GetLikesResponse; 103 + }
+16 -18
crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetListFeed<'a> { ··· 70 PartialEq, 71 Eq, 72 thiserror::Error, 73 - miette::Diagnostic 74 )] 75 #[serde(tag = "error", content = "message")] 76 #[serde(bound(deserialize = "'de: 'a"))] ··· 98 type Output = GetListFeedError<'static>; 99 fn into_static(self) -> Self::Output { 100 match self { 101 - GetListFeedError::UnknownList(v) => { 102 - GetListFeedError::UnknownList(v.into_static()) 103 - } 104 GetListFeedError::Unknown(v) => GetListFeedError::Unknown(v.into_static()), 105 } 106 } 107 } 108 109 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListFeed<'de> { 110 - const NSID: &'static str = "app.bsky.feed.getListFeed"; 111 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 112 - const OUTPUT_ENCODING: &'static str = "application/json"; 113 type Output = GetListFeedOutput<'de>; 114 type Err = GetListFeedError<'de>; 115 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetListFeed<'a> { ··· 62 PartialEq, 63 Eq, 64 thiserror::Error, 65 + miette::Diagnostic, 66 )] 67 #[serde(tag = "error", content = "message")] 68 #[serde(bound(deserialize = "'de: 'a"))] ··· 90 type Output = GetListFeedError<'static>; 91 fn into_static(self) -> Self::Output { 92 match self { 93 + GetListFeedError::UnknownList(v) => GetListFeedError::UnknownList(v.into_static()), 94 GetListFeedError::Unknown(v) => GetListFeedError::Unknown(v.into_static()), 95 } 96 } 97 } 98 99 + ///Response type for 100 + ///app.bsky.feed.getListFeed 101 + pub struct GetListFeedResponse; 102 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListFeedResponse { 103 + const ENCODING: &'static str = "application/json"; 104 type Output = GetListFeedOutput<'de>; 105 type Err = GetListFeedError<'de>; 106 + } 107 + 108 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListFeed<'de> { 109 + const NSID: &'static str = "app.bsky.feed.getListFeed"; 110 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 111 + jacquard_common::types::xrpc::XrpcMethod::Query; 112 + type Response<'de1> = GetListFeedResponse; 113 + }
+17 -21
crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetPostThread<'a> { ··· 102 PartialEq, 103 Eq, 104 thiserror::Error, 105 - miette::Diagnostic 106 )] 107 #[serde(tag = "error", content = "message")] 108 #[serde(bound(deserialize = "'de: 'a"))] ··· 130 type Output = GetPostThreadError<'static>; 131 fn into_static(self) -> Self::Output { 132 match self { 133 - GetPostThreadError::NotFound(v) => { 134 - GetPostThreadError::NotFound(v.into_static()) 135 - } 136 - GetPostThreadError::Unknown(v) => { 137 - GetPostThreadError::Unknown(v.into_static()) 138 - } 139 } 140 } 141 } 142 143 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThread<'de> { 144 - const NSID: &'static str = "app.bsky.feed.getPostThread"; 145 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 146 - const OUTPUT_ENCODING: &'static str = "application/json"; 147 type Output = GetPostThreadOutput<'de>; 148 type Err = GetPostThreadError<'de>; 149 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetPostThread<'a> { ··· 94 PartialEq, 95 Eq, 96 thiserror::Error, 97 + miette::Diagnostic, 98 )] 99 #[serde(tag = "error", content = "message")] 100 #[serde(bound(deserialize = "'de: 'a"))] ··· 122 type Output = GetPostThreadError<'static>; 123 fn into_static(self) -> Self::Output { 124 match self { 125 + GetPostThreadError::NotFound(v) => GetPostThreadError::NotFound(v.into_static()), 126 + GetPostThreadError::Unknown(v) => GetPostThreadError::Unknown(v.into_static()), 127 } 128 } 129 } 130 131 + ///Response type for 132 + ///app.bsky.feed.getPostThread 133 + pub struct GetPostThreadResponse; 134 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPostThreadResponse { 135 + const ENCODING: &'static str = "application/json"; 136 type Output = GetPostThreadOutput<'de>; 137 type Err = GetPostThreadError<'de>; 138 + } 139 + 140 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThread<'de> { 141 + const NSID: &'static str = "app.bsky.feed.getPostThread"; 142 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 143 + jacquard_common::types::xrpc::XrpcMethod::Query; 144 + type Response<'de1> = GetPostThreadResponse; 145 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_posts.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetPosts<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPosts<'de> { 52 - const NSID: &'static str = "app.bsky.feed.getPosts"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetPostsOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetPosts<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///app.bsky.feed.getPosts 45 + pub struct GetPostsResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPostsResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetPostsOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPosts<'de> { 53 + const NSID: &'static str = "app.bsky.feed.getPosts"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetPostsResponse; 57 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_quotes.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetQuotes<'a> { ··· 72 } 73 } 74 75 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetQuotes<'de> { 76 - const NSID: &'static str = "app.bsky.feed.getQuotes"; 77 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 78 - const OUTPUT_ENCODING: &'static str = "application/json"; 79 type Output = GetQuotesOutput<'de>; 80 type Err = jacquard_common::types::xrpc::GenericError<'de>; 81 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetQuotes<'a> { ··· 64 } 65 } 66 67 + ///Response type for 68 + ///app.bsky.feed.getQuotes 69 + pub struct GetQuotesResponse; 70 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetQuotesResponse { 71 + const ENCODING: &'static str = "application/json"; 72 type Output = GetQuotesOutput<'de>; 73 type Err = jacquard_common::types::xrpc::GenericError<'de>; 74 + } 75 + 76 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetQuotes<'de> { 77 + const NSID: &'static str = "app.bsky.feed.getQuotes"; 78 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 79 + jacquard_common::types::xrpc::XrpcMethod::Query; 80 + type Response<'de1> = GetQuotesResponse; 81 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRepostedBy<'a> { ··· 72 } 73 } 74 75 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepostedBy<'de> { 76 - const NSID: &'static str = "app.bsky.feed.getRepostedBy"; 77 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 78 - const OUTPUT_ENCODING: &'static str = "application/json"; 79 type Output = GetRepostedByOutput<'de>; 80 type Err = jacquard_common::types::xrpc::GenericError<'de>; 81 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRepostedBy<'a> { ··· 64 } 65 } 66 67 + ///Response type for 68 + ///app.bsky.feed.getRepostedBy 69 + pub struct GetRepostedByResponse; 70 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRepostedByResponse { 71 + const ENCODING: &'static str = "application/json"; 72 type Output = GetRepostedByOutput<'de>; 73 type Err = jacquard_common::types::xrpc::GenericError<'de>; 74 + } 75 + 76 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepostedBy<'de> { 77 + const NSID: &'static str = "app.bsky.feed.getRepostedBy"; 78 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 79 + jacquard_common::types::xrpc::XrpcMethod::Query; 80 + type Response<'de1> = GetRepostedByResponse; 81 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedFeeds<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeeds<'de> { 62 - const NSID: &'static str = "app.bsky.feed.getSuggestedFeeds"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = GetSuggestedFeedsOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestedFeeds<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///app.bsky.feed.getSuggestedFeeds 55 + pub struct GetSuggestedFeedsResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedFeedsResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = GetSuggestedFeedsOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeeds<'de> { 63 + const NSID: &'static str = "app.bsky.feed.getSuggestedFeeds"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = GetSuggestedFeedsResponse; 67 + }
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_timeline.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetTimeline<'a> { ··· 63 } 64 } 65 66 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTimeline<'de> { 67 - const NSID: &'static str = "app.bsky.feed.getTimeline"; 68 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 69 - const OUTPUT_ENCODING: &'static str = "application/json"; 70 type Output = GetTimelineOutput<'de>; 71 type Err = jacquard_common::types::xrpc::GenericError<'de>; 72 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetTimeline<'a> { ··· 55 } 56 } 57 58 + ///Response type for 59 + ///app.bsky.feed.getTimeline 60 + pub struct GetTimelineResponse; 61 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetTimelineResponse { 62 + const ENCODING: &'static str = "application/json"; 63 type Output = GetTimelineOutput<'de>; 64 type Err = jacquard_common::types::xrpc::GenericError<'de>; 65 + } 66 + 67 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTimeline<'de> { 68 + const NSID: &'static str = "app.bsky.feed.getTimeline"; 69 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 70 + jacquard_common::types::xrpc::XrpcMethod::Query; 71 + type Response<'de1> = GetTimelineResponse; 72 + }
+15 -15
crates/jacquard-api/src/app_bsky/feed/search_posts.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchPosts<'a> { ··· 115 PartialEq, 116 Eq, 117 thiserror::Error, 118 - miette::Diagnostic 119 )] 120 #[serde(tag = "error", content = "message")] 121 #[serde(bound(deserialize = "'de: 'a"))] ··· 151 } 152 } 153 154 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchPosts<'de> { 155 - const NSID: &'static str = "app.bsky.feed.searchPosts"; 156 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 157 - const OUTPUT_ENCODING: &'static str = "application/json"; 158 type Output = SearchPostsOutput<'de>; 159 type Err = SearchPostsError<'de>; 160 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchPosts<'a> { ··· 107 PartialEq, 108 Eq, 109 thiserror::Error, 110 + miette::Diagnostic, 111 )] 112 #[serde(tag = "error", content = "message")] 113 #[serde(bound(deserialize = "'de: 'a"))] ··· 143 } 144 } 145 146 + ///Response type for 147 + ///app.bsky.feed.searchPosts 148 + pub struct SearchPostsResponse; 149 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchPostsResponse { 150 + const ENCODING: &'static str = "application/json"; 151 type Output = SearchPostsOutput<'de>; 152 type Err = SearchPostsError<'de>; 153 + } 154 + 155 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchPosts<'de> { 156 + const NSID: &'static str = "app.bsky.feed.searchPosts"; 157 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 158 + jacquard_common::types::xrpc::XrpcMethod::Query; 159 + type Response<'de1> = SearchPostsResponse; 160 + }
+14 -16
crates/jacquard-api/src/app_bsky/feed/send_interactions.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct SendInteractions<'a> { ··· 52 } 53 } 54 55 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendInteractions<'de> { 56 - const NSID: &'static str = "app.bsky.feed.sendInteractions"; 57 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 58 - "application/json", 59 - ); 60 - const OUTPUT_ENCODING: &'static str = "application/json"; 61 type Output = SendInteractionsOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct SendInteractions<'a> { ··· 44 } 45 } 46 47 + ///Response type for 48 + ///app.bsky.feed.sendInteractions 49 + pub struct SendInteractionsResponse; 50 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SendInteractionsResponse { 51 + const ENCODING: &'static str = "application/json"; 52 type Output = SendInteractionsOutput<'de>; 53 type Err = jacquard_common::types::xrpc::GenericError<'de>; 54 + } 55 + 56 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendInteractions<'de> { 57 + const NSID: &'static str = "app.bsky.feed.sendInteractions"; 58 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 59 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 60 + type Response<'de1> = SendInteractionsResponse; 61 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetActorStarterPacks<'a> { ··· 61 } 62 } 63 64 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorStarterPacks<'de> { 65 - const NSID: &'static str = "app.bsky.graph.getActorStarterPacks"; 66 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 67 - const OUTPUT_ENCODING: &'static str = "application/json"; 68 type Output = GetActorStarterPacksOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetActorStarterPacks<'a> { ··· 53 } 54 } 55 56 + ///Response type for 57 + ///app.bsky.graph.getActorStarterPacks 58 + pub struct GetActorStarterPacksResponse; 59 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetActorStarterPacksResponse { 60 + const ENCODING: &'static str = "application/json"; 61 type Output = GetActorStarterPacksOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 + } 64 + 65 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorStarterPacks<'de> { 66 + const NSID: &'static str = "app.bsky.graph.getActorStarterPacks"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 68 + jacquard_common::types::xrpc::XrpcMethod::Query; 69 + type Response<'de1> = GetActorStarterPacksResponse; 70 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_blocks.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetBlocks<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlocks<'de> { 62 - const NSID: &'static str = "app.bsky.graph.getBlocks"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = GetBlocksOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetBlocks<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///app.bsky.graph.getBlocks 55 + pub struct GetBlocksResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetBlocksResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = GetBlocksOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlocks<'de> { 63 + const NSID: &'static str = "app.bsky.graph.getBlocks"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = GetBlocksResponse; 67 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_followers.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetFollowers<'a> { ··· 64 } 65 } 66 67 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFollowers<'de> { 68 - const NSID: &'static str = "app.bsky.graph.getFollowers"; 69 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 70 - const OUTPUT_ENCODING: &'static str = "application/json"; 71 type Output = GetFollowersOutput<'de>; 72 type Err = jacquard_common::types::xrpc::GenericError<'de>; 73 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetFollowers<'a> { ··· 56 } 57 } 58 59 + ///Response type for 60 + ///app.bsky.graph.getFollowers 61 + pub struct GetFollowersResponse; 62 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFollowersResponse { 63 + const ENCODING: &'static str = "application/json"; 64 type Output = GetFollowersOutput<'de>; 65 type Err = jacquard_common::types::xrpc::GenericError<'de>; 66 + } 67 + 68 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFollowers<'de> { 69 + const NSID: &'static str = "app.bsky.graph.getFollowers"; 70 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 71 + jacquard_common::types::xrpc::XrpcMethod::Query; 72 + type Response<'de1> = GetFollowersResponse; 73 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_follows.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetFollows<'a> { ··· 64 } 65 } 66 67 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFollows<'de> { 68 - const NSID: &'static str = "app.bsky.graph.getFollows"; 69 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 70 - const OUTPUT_ENCODING: &'static str = "application/json"; 71 type Output = GetFollowsOutput<'de>; 72 type Err = jacquard_common::types::xrpc::GenericError<'de>; 73 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetFollows<'a> { ··· 56 } 57 } 58 59 + ///Response type for 60 + ///app.bsky.graph.getFollows 61 + pub struct GetFollowsResponse; 62 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFollowsResponse { 63 + const ENCODING: &'static str = "application/json"; 64 type Output = GetFollowsOutput<'de>; 65 type Err = jacquard_common::types::xrpc::GenericError<'de>; 66 + } 67 + 68 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFollows<'de> { 69 + const NSID: &'static str = "app.bsky.graph.getFollows"; 70 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 71 + jacquard_common::types::xrpc::XrpcMethod::Query; 72 + type Response<'de1> = GetFollowsResponse; 73 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetKnownFollowers<'a> { ··· 64 } 65 } 66 67 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetKnownFollowers<'de> { 68 - const NSID: &'static str = "app.bsky.graph.getKnownFollowers"; 69 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 70 - const OUTPUT_ENCODING: &'static str = "application/json"; 71 type Output = GetKnownFollowersOutput<'de>; 72 type Err = jacquard_common::types::xrpc::GenericError<'de>; 73 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetKnownFollowers<'a> { ··· 56 } 57 } 58 59 + ///Response type for 60 + ///app.bsky.graph.getKnownFollowers 61 + pub struct GetKnownFollowersResponse; 62 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetKnownFollowersResponse { 63 + const ENCODING: &'static str = "application/json"; 64 type Output = GetKnownFollowersOutput<'de>; 65 type Err = jacquard_common::types::xrpc::GenericError<'de>; 66 + } 67 + 68 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetKnownFollowers<'de> { 69 + const NSID: &'static str = "app.bsky.graph.getKnownFollowers"; 70 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 71 + jacquard_common::types::xrpc::XrpcMethod::Query; 72 + type Response<'de1> = GetKnownFollowersResponse; 73 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_list.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetList<'a> { ··· 64 } 65 } 66 67 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetList<'de> { 68 - const NSID: &'static str = "app.bsky.graph.getList"; 69 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 70 - const OUTPUT_ENCODING: &'static str = "application/json"; 71 type Output = GetListOutput<'de>; 72 type Err = jacquard_common::types::xrpc::GenericError<'de>; 73 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetList<'a> { ··· 56 } 57 } 58 59 + ///Response type for 60 + ///app.bsky.graph.getList 61 + pub struct GetListResponse; 62 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListResponse { 63 + const ENCODING: &'static str = "application/json"; 64 type Output = GetListOutput<'de>; 65 type Err = jacquard_common::types::xrpc::GenericError<'de>; 66 + } 67 + 68 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetList<'de> { 69 + const NSID: &'static str = "app.bsky.graph.getList"; 70 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 71 + jacquard_common::types::xrpc::XrpcMethod::Query; 72 + type Response<'de1> = GetListResponse; 73 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetListBlocks<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListBlocks<'de> { 62 - const NSID: &'static str = "app.bsky.graph.getListBlocks"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = GetListBlocksOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetListBlocks<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///app.bsky.graph.getListBlocks 55 + pub struct GetListBlocksResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListBlocksResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = GetListBlocksOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListBlocks<'de> { 63 + const NSID: &'static str = "app.bsky.graph.getListBlocks"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = GetListBlocksResponse; 67 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetListMutes<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListMutes<'de> { 62 - const NSID: &'static str = "app.bsky.graph.getListMutes"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = GetListMutesOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetListMutes<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///app.bsky.graph.getListMutes 55 + pub struct GetListMutesResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListMutesResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = GetListMutesOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListMutes<'de> { 63 + const NSID: &'static str = "app.bsky.graph.getListMutes"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = GetListMutesResponse; 67 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_lists.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetLists<'a> { ··· 65 } 66 } 67 68 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLists<'de> { 69 - const NSID: &'static str = "app.bsky.graph.getLists"; 70 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 71 - const OUTPUT_ENCODING: &'static str = "application/json"; 72 type Output = GetListsOutput<'de>; 73 type Err = jacquard_common::types::xrpc::GenericError<'de>; 74 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetLists<'a> { ··· 57 } 58 } 59 60 + ///Response type for 61 + ///app.bsky.graph.getLists 62 + pub struct GetListsResponse; 63 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListsResponse { 64 + const ENCODING: &'static str = "application/json"; 65 type Output = GetListsOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 + } 68 + 69 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLists<'de> { 70 + const NSID: &'static str = "app.bsky.graph.getLists"; 71 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 72 + jacquard_common::types::xrpc::XrpcMethod::Query; 73 + type Response<'de1> = GetListsResponse; 74 + }
+14 -15
crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs
··· 28 } 29 } 30 31 - #[derive( 32 - serde::Serialize, 33 - serde::Deserialize, 34 - Debug, 35 - Clone, 36 - PartialEq, 37 - Eq, 38 - bon::Builder 39 - )] 40 #[builder(start_fn = new)] 41 #[serde(rename_all = "camelCase")] 42 pub struct GetListsWithMembership<'a> { ··· 88 } 89 } 90 91 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 92 - for GetListsWithMembership<'de> { 93 - const NSID: &'static str = "app.bsky.graph.getListsWithMembership"; 94 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 95 - const OUTPUT_ENCODING: &'static str = "application/json"; 96 type Output = GetListsWithMembershipOutput<'de>; 97 type Err = jacquard_common::types::xrpc::GenericError<'de>; 98 - }
··· 28 } 29 } 30 31 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 32 #[builder(start_fn = new)] 33 #[serde(rename_all = "camelCase")] 34 pub struct GetListsWithMembership<'a> { ··· 80 } 81 } 82 83 + ///Response type for 84 + ///app.bsky.graph.getListsWithMembership 85 + pub struct GetListsWithMembershipResponse; 86 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListsWithMembershipResponse { 87 + const ENCODING: &'static str = "application/json"; 88 type Output = GetListsWithMembershipOutput<'de>; 89 type Err = jacquard_common::types::xrpc::GenericError<'de>; 90 + } 91 + 92 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListsWithMembership<'de> { 93 + const NSID: &'static str = "app.bsky.graph.getListsWithMembership"; 94 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 95 + jacquard_common::types::xrpc::XrpcMethod::Query; 96 + type Response<'de1> = GetListsWithMembershipResponse; 97 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_mutes.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetMutes<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMutes<'de> { 62 - const NSID: &'static str = "app.bsky.graph.getMutes"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = GetMutesOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetMutes<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///app.bsky.graph.getMutes 55 + pub struct GetMutesResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetMutesResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = GetMutesOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMutes<'de> { 63 + const NSID: &'static str = "app.bsky.graph.getMutes"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = GetMutesResponse; 67 + }
+17 -21
crates/jacquard-api/src/app_bsky/graph/get_relationships.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRelationships<'a> { ··· 21 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 - pub others: std::option::Option< 25 - Vec<jacquard_common::types::ident::AtIdentifier<'a>>, 26 - >, 27 } 28 29 impl jacquard_common::IntoStatic for GetRelationships<'_> { ··· 67 PartialEq, 68 Eq, 69 thiserror::Error, 70 - miette::Diagnostic 71 )] 72 #[serde(tag = "error", content = "message")] 73 #[serde(bound(deserialize = "'de: 'a"))] ··· 99 GetRelationshipsError::ActorNotFound(v) => { 100 GetRelationshipsError::ActorNotFound(v.into_static()) 101 } 102 - GetRelationshipsError::Unknown(v) => { 103 - GetRelationshipsError::Unknown(v.into_static()) 104 - } 105 } 106 } 107 } 108 109 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRelationships<'de> { 110 const NSID: &'static str = "app.bsky.graph.getRelationships"; 111 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 112 - const OUTPUT_ENCODING: &'static str = "application/json"; 113 - type Output = GetRelationshipsOutput<'de>; 114 - type Err = GetRelationshipsError<'de>; 115 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRelationships<'a> { ··· 13 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 #[serde(borrow)] 16 + pub others: std::option::Option<Vec<jacquard_common::types::ident::AtIdentifier<'a>>>, 17 } 18 19 impl jacquard_common::IntoStatic for GetRelationships<'_> { ··· 57 PartialEq, 58 Eq, 59 thiserror::Error, 60 + miette::Diagnostic, 61 )] 62 #[serde(tag = "error", content = "message")] 63 #[serde(bound(deserialize = "'de: 'a"))] ··· 89 GetRelationshipsError::ActorNotFound(v) => { 90 GetRelationshipsError::ActorNotFound(v.into_static()) 91 } 92 + GetRelationshipsError::Unknown(v) => GetRelationshipsError::Unknown(v.into_static()), 93 } 94 } 95 + } 96 + 97 + ///Response type for 98 + ///app.bsky.graph.getRelationships 99 + pub struct GetRelationshipsResponse; 100 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRelationshipsResponse { 101 + const ENCODING: &'static str = "application/json"; 102 + type Output = GetRelationshipsOutput<'de>; 103 + type Err = GetRelationshipsError<'de>; 104 } 105 106 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRelationships<'de> { 107 const NSID: &'static str = "app.bsky.graph.getRelationships"; 108 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 109 + jacquard_common::types::xrpc::XrpcMethod::Query; 110 + type Response<'de1> = GetRelationshipsResponse; 111 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetStarterPack<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPack<'de> { 52 - const NSID: &'static str = "app.bsky.graph.getStarterPack"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetStarterPackOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetStarterPack<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///app.bsky.graph.getStarterPack 45 + pub struct GetStarterPackResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetStarterPackResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetStarterPackOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPack<'de> { 53 + const NSID: &'static str = "app.bsky.graph.getStarterPack"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetStarterPackResponse; 57 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetStarterPacks<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPacks<'de> { 52 - const NSID: &'static str = "app.bsky.graph.getStarterPacks"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetStarterPacksOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetStarterPacks<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///app.bsky.graph.getStarterPacks 45 + pub struct GetStarterPacksResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetStarterPacksResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetStarterPacksOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPacks<'de> { 53 + const NSID: &'static str = "app.bsky.graph.getStarterPacks"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetStarterPacksResponse; 57 + }
+15 -18
crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetStarterPacksWithMembership<'a> { ··· 55 fn into_static(self) -> Self::Output { 56 GetStarterPacksWithMembershipOutput { 57 cursor: self.cursor.into_static(), 58 - starter_packs_with_membership: self 59 - .starter_packs_with_membership 60 - .into_static(), 61 extra_data: self.extra_data.into_static(), 62 } 63 } 64 } 65 66 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 67 - for GetStarterPacksWithMembership<'de> { 68 - const NSID: &'static str = "app.bsky.graph.getStarterPacksWithMembership"; 69 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 70 - const OUTPUT_ENCODING: &'static str = "application/json"; 71 type Output = GetStarterPacksWithMembershipOutput<'de>; 72 type Err = jacquard_common::types::xrpc::GenericError<'de>; 73 } 74 75 ///A starter pack and an optional list item indicating membership of a target user to that starter pack. ··· 93 extra_data: self.extra_data.into_static(), 94 } 95 } 96 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetStarterPacksWithMembership<'a> { ··· 47 fn into_static(self) -> Self::Output { 48 GetStarterPacksWithMembershipOutput { 49 cursor: self.cursor.into_static(), 50 + starter_packs_with_membership: self.starter_packs_with_membership.into_static(), 51 extra_data: self.extra_data.into_static(), 52 } 53 } 54 } 55 56 + ///Response type for 57 + ///app.bsky.graph.getStarterPacksWithMembership 58 + pub struct GetStarterPacksWithMembershipResponse; 59 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetStarterPacksWithMembershipResponse { 60 + const ENCODING: &'static str = "application/json"; 61 type Output = GetStarterPacksWithMembershipOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 + } 64 + 65 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPacksWithMembership<'de> { 66 + const NSID: &'static str = "app.bsky.graph.getStarterPacksWithMembership"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 68 + jacquard_common::types::xrpc::XrpcMethod::Query; 69 + type Response<'de1> = GetStarterPacksWithMembershipResponse; 70 } 71 72 ///A starter pack and an optional list item indicating membership of a target user to that starter pack. ··· 90 extra_data: self.extra_data.into_static(), 91 } 92 } 93 + }
+14 -15
crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedFollowsByActor<'a> { ··· 56 } 57 } 58 59 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 60 - for GetSuggestedFollowsByActor<'de> { 61 - const NSID: &'static str = "app.bsky.graph.getSuggestedFollowsByActor"; 62 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 63 - const OUTPUT_ENCODING: &'static str = "application/json"; 64 type Output = GetSuggestedFollowsByActorOutput<'de>; 65 type Err = jacquard_common::types::xrpc::GenericError<'de>; 66 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestedFollowsByActor<'a> { ··· 48 } 49 } 50 51 + ///Response type for 52 + ///app.bsky.graph.getSuggestedFollowsByActor 53 + pub struct GetSuggestedFollowsByActorResponse; 54 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedFollowsByActorResponse { 55 + const ENCODING: &'static str = "application/json"; 56 type Output = GetSuggestedFollowsByActorOutput<'de>; 57 type Err = jacquard_common::types::xrpc::GenericError<'de>; 58 + } 59 + 60 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFollowsByActor<'de> { 61 + const NSID: &'static str = "app.bsky.graph.getSuggestedFollowsByActor"; 62 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 63 + jacquard_common::types::xrpc::XrpcMethod::Query; 64 + type Response<'de1> = GetSuggestedFollowsByActorResponse; 65 + }
+14 -16
crates/jacquard-api/src/app_bsky/graph/mute_actor.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct MuteActor<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteActor<'de> { 43 - const NSID: &'static str = "app.bsky.graph.muteActor"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct MuteActor<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///app.bsky.graph.muteActor 36 + pub struct MuteActorResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for MuteActorResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteActor<'de> { 44 + const NSID: &'static str = "app.bsky.graph.muteActor"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = MuteActorResponse; 48 + }
+14 -16
crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct MuteActorList<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteActorList<'de> { 43 - const NSID: &'static str = "app.bsky.graph.muteActorList"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct MuteActorList<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///app.bsky.graph.muteActorList 36 + pub struct MuteActorListResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for MuteActorListResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteActorList<'de> { 44 + const NSID: &'static str = "app.bsky.graph.muteActorList"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = MuteActorListResponse; 48 + }
+14 -16
crates/jacquard-api/src/app_bsky/graph/mute_thread.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct MuteThread<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteThread<'de> { 43 - const NSID: &'static str = "app.bsky.graph.muteThread"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct MuteThread<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///app.bsky.graph.muteThread 36 + pub struct MuteThreadResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for MuteThreadResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteThread<'de> { 44 + const NSID: &'static str = "app.bsky.graph.muteThread"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = MuteThreadResponse; 48 + }
+14 -14
crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchStarterPacks<'a> { ··· 62 } 63 } 64 65 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchStarterPacks<'de> { 66 - const NSID: &'static str = "app.bsky.graph.searchStarterPacks"; 67 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 68 - const OUTPUT_ENCODING: &'static str = "application/json"; 69 type Output = SearchStarterPacksOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchStarterPacks<'a> { ··· 54 } 55 } 56 57 + ///Response type for 58 + ///app.bsky.graph.searchStarterPacks 59 + pub struct SearchStarterPacksResponse; 60 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchStarterPacksResponse { 61 + const ENCODING: &'static str = "application/json"; 62 type Output = SearchStarterPacksOutput<'de>; 63 type Err = jacquard_common::types::xrpc::GenericError<'de>; 64 + } 65 + 66 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchStarterPacks<'de> { 67 + const NSID: &'static str = "app.bsky.graph.searchStarterPacks"; 68 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 69 + jacquard_common::types::xrpc::XrpcMethod::Query; 70 + type Response<'de1> = SearchStarterPacksResponse; 71 + }
+14 -16
crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UnmuteActor<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteActor<'de> { 43 - const NSID: &'static str = "app.bsky.graph.unmuteActor"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UnmuteActor<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///app.bsky.graph.unmuteActor 36 + pub struct UnmuteActorResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnmuteActorResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteActor<'de> { 44 + const NSID: &'static str = "app.bsky.graph.unmuteActor"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = UnmuteActorResponse; 48 + }
+14 -16
crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UnmuteActorList<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteActorList<'de> { 43 - const NSID: &'static str = "app.bsky.graph.unmuteActorList"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UnmuteActorList<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///app.bsky.graph.unmuteActorList 36 + pub struct UnmuteActorListResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnmuteActorListResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteActorList<'de> { 44 + const NSID: &'static str = "app.bsky.graph.unmuteActorList"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = UnmuteActorListResponse; 48 + }
+14 -16
crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UnmuteThread<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteThread<'de> { 43 - const NSID: &'static str = "app.bsky.graph.unmuteThread"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UnmuteThread<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///app.bsky.graph.unmuteThread 36 + pub struct UnmuteThreadResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnmuteThreadResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteThread<'de> { 44 + const NSID: &'static str = "app.bsky.graph.unmuteThread"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = UnmuteThreadResponse; 48 + }
+14 -14
crates/jacquard-api/src/app_bsky/labeler/get_services.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetServices<'a> { ··· 52 } 53 } 54 55 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetServices<'de> { 56 - const NSID: &'static str = "app.bsky.labeler.getServices"; 57 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 58 - const OUTPUT_ENCODING: &'static str = "application/json"; 59 type Output = GetServicesOutput<'de>; 60 type Err = jacquard_common::types::xrpc::GenericError<'de>; 61 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetServices<'a> { ··· 44 } 45 } 46 47 + ///Response type for 48 + ///app.bsky.labeler.getServices 49 + pub struct GetServicesResponse; 50 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetServicesResponse { 51 + const ENCODING: &'static str = "application/json"; 52 type Output = GetServicesOutput<'de>; 53 type Err = jacquard_common::types::xrpc::GenericError<'de>; 54 + } 55 + 56 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetServices<'de> { 57 + const NSID: &'static str = "app.bsky.labeler.getServices"; 58 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 59 + jacquard_common::types::xrpc::XrpcMethod::Query; 60 + type Response<'de1> = GetServicesResponse; 61 + }
+14 -14
crates/jacquard-api/src/app_bsky/notification/get_preferences.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetPreferences {} ··· 42 } 43 } 44 45 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPreferences { 46 - const NSID: &'static str = "app.bsky.notification.getPreferences"; 47 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = GetPreferencesOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetPreferences {} ··· 34 } 35 } 36 37 + ///Response type for 38 + ///app.bsky.notification.getPreferences 39 + pub struct GetPreferencesResponse; 40 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPreferencesResponse { 41 + const ENCODING: &'static str = "application/json"; 42 type Output = GetPreferencesOutput<'de>; 43 type Err = jacquard_common::types::xrpc::GenericError<'de>; 44 + } 45 + 46 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPreferences { 47 + const NSID: &'static str = "app.bsky.notification.getPreferences"; 48 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 49 + jacquard_common::types::xrpc::XrpcMethod::Query; 50 + type Response<'de1> = GetPreferencesResponse; 51 + }
+14 -14
crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetUnreadCount { ··· 47 } 48 } 49 50 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetUnreadCount { 51 - const NSID: &'static str = "app.bsky.notification.getUnreadCount"; 52 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 - const OUTPUT_ENCODING: &'static str = "application/json"; 54 type Output = GetUnreadCountOutput<'de>; 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetUnreadCount { ··· 39 } 40 } 41 42 + ///Response type for 43 + ///app.bsky.notification.getUnreadCount 44 + pub struct GetUnreadCountResponse; 45 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetUnreadCountResponse { 46 + const ENCODING: &'static str = "application/json"; 47 type Output = GetUnreadCountOutput<'de>; 48 type Err = jacquard_common::types::xrpc::GenericError<'de>; 49 + } 50 + 51 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetUnreadCount { 52 + const NSID: &'static str = "app.bsky.notification.getUnreadCount"; 53 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 54 + jacquard_common::types::xrpc::XrpcMethod::Query; 55 + type Response<'de1> = GetUnreadCountResponse; 56 + }
+14 -15
crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListActivitySubscriptions<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 62 - for ListActivitySubscriptions<'de> { 63 - const NSID: &'static str = "app.bsky.notification.listActivitySubscriptions"; 64 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 65 - const OUTPUT_ENCODING: &'static str = "application/json"; 66 type Output = ListActivitySubscriptionsOutput<'de>; 67 type Err = jacquard_common::types::xrpc::GenericError<'de>; 68 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListActivitySubscriptions<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///app.bsky.notification.listActivitySubscriptions 55 + pub struct ListActivitySubscriptionsResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListActivitySubscriptionsResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = ListActivitySubscriptionsOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListActivitySubscriptions<'de> { 63 + const NSID: &'static str = "app.bsky.notification.listActivitySubscriptions"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = ListActivitySubscriptionsResponse; 67 + }
+14 -14
crates/jacquard-api/src/app_bsky/notification/list_notifications.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListNotifications<'a> { ··· 74 } 75 } 76 77 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListNotifications<'de> { 78 - const NSID: &'static str = "app.bsky.notification.listNotifications"; 79 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 80 - const OUTPUT_ENCODING: &'static str = "application/json"; 81 type Output = ListNotificationsOutput<'de>; 82 type Err = jacquard_common::types::xrpc::GenericError<'de>; 83 } 84 85 #[jacquard_derive::lexicon] ··· 123 extra_data: self.extra_data.into_static(), 124 } 125 } 126 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListNotifications<'a> { ··· 66 } 67 } 68 69 + ///Response type for 70 + ///app.bsky.notification.listNotifications 71 + pub struct ListNotificationsResponse; 72 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListNotificationsResponse { 73 + const ENCODING: &'static str = "application/json"; 74 type Output = ListNotificationsOutput<'de>; 75 type Err = jacquard_common::types::xrpc::GenericError<'de>; 76 + } 77 + 78 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListNotifications<'de> { 79 + const NSID: &'static str = "app.bsky.notification.listNotifications"; 80 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 81 + jacquard_common::types::xrpc::XrpcMethod::Query; 82 + type Response<'de1> = ListNotificationsResponse; 83 } 84 85 #[jacquard_derive::lexicon] ··· 123 extra_data: self.extra_data.into_static(), 124 } 125 } 126 + }
+16 -20
crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct PutActivitySubscription<'a> { ··· 48 pub struct PutActivitySubscriptionOutput<'a> { 49 #[serde(skip_serializing_if = "std::option::Option::is_none")] 50 #[serde(borrow)] 51 - pub activity_subscription: std::option::Option< 52 - crate::app_bsky::notification::ActivitySubscription<'a>, 53 - >, 54 #[serde(borrow)] 55 pub subject: jacquard_common::types::string::Did<'a>, 56 } ··· 66 } 67 } 68 69 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 70 - for PutActivitySubscription<'de> { 71 - const NSID: &'static str = "app.bsky.notification.putActivitySubscription"; 72 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 73 - "application/json", 74 - ); 75 - const OUTPUT_ENCODING: &'static str = "application/json"; 76 type Output = PutActivitySubscriptionOutput<'de>; 77 type Err = jacquard_common::types::xrpc::GenericError<'de>; 78 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct PutActivitySubscription<'a> { ··· 40 pub struct PutActivitySubscriptionOutput<'a> { 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 42 #[serde(borrow)] 43 + pub activity_subscription: 44 + std::option::Option<crate::app_bsky::notification::ActivitySubscription<'a>>, 45 #[serde(borrow)] 46 pub subject: jacquard_common::types::string::Did<'a>, 47 } ··· 57 } 58 } 59 60 + ///Response type for 61 + ///app.bsky.notification.putActivitySubscription 62 + pub struct PutActivitySubscriptionResponse; 63 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutActivitySubscriptionResponse { 64 + const ENCODING: &'static str = "application/json"; 65 type Output = PutActivitySubscriptionOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 + } 68 + 69 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutActivitySubscription<'de> { 70 + const NSID: &'static str = "app.bsky.notification.putActivitySubscription"; 71 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 72 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 73 + type Response<'de1> = PutActivitySubscriptionResponse; 74 + }
+14 -16
crates/jacquard-api/src/app_bsky/notification/put_preferences.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct PutPreferences<'a> { ··· 38 } 39 } 40 41 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferences<'de> { 42 - const NSID: &'static str = "app.bsky.notification.putPreferences"; 43 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 44 - "application/json", 45 - ); 46 - const OUTPUT_ENCODING: &'static str = "application/json"; 47 type Output = (); 48 type Err = jacquard_common::types::xrpc::GenericError<'de>; 49 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct PutPreferences<'a> { ··· 30 } 31 } 32 33 + ///Response type for 34 + ///app.bsky.notification.putPreferences 35 + pub struct PutPreferencesResponse; 36 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutPreferencesResponse { 37 + const ENCODING: &'static str = "application/json"; 38 type Output = (); 39 type Err = jacquard_common::types::xrpc::GenericError<'de>; 40 + } 41 + 42 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferences<'de> { 43 + const NSID: &'static str = "app.bsky.notification.putPreferences"; 44 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 45 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 46 + type Response<'de1> = PutPreferencesResponse; 47 + }
+26 -46
crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct PutPreferencesV2<'a> { ··· 23 pub chat: std::option::Option<crate::app_bsky::notification::ChatPreference<'a>>, 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 #[serde(borrow)] 26 - pub follow: std::option::Option< 27 - crate::app_bsky::notification::FilterablePreference<'a>, 28 - >, 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 #[serde(borrow)] 31 - pub like: std::option::Option< 32 - crate::app_bsky::notification::FilterablePreference<'a>, 33 - >, 34 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 #[serde(borrow)] 36 - pub like_via_repost: std::option::Option< 37 - crate::app_bsky::notification::FilterablePreference<'a>, 38 - >, 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] 40 #[serde(borrow)] 41 - pub mention: std::option::Option< 42 - crate::app_bsky::notification::FilterablePreference<'a>, 43 - >, 44 #[serde(skip_serializing_if = "std::option::Option::is_none")] 45 #[serde(borrow)] 46 - pub quote: std::option::Option< 47 - crate::app_bsky::notification::FilterablePreference<'a>, 48 - >, 49 #[serde(skip_serializing_if = "std::option::Option::is_none")] 50 #[serde(borrow)] 51 - pub reply: std::option::Option< 52 - crate::app_bsky::notification::FilterablePreference<'a>, 53 - >, 54 #[serde(skip_serializing_if = "std::option::Option::is_none")] 55 #[serde(borrow)] 56 - pub repost: std::option::Option< 57 - crate::app_bsky::notification::FilterablePreference<'a>, 58 - >, 59 #[serde(skip_serializing_if = "std::option::Option::is_none")] 60 #[serde(borrow)] 61 - pub repost_via_repost: std::option::Option< 62 - crate::app_bsky::notification::FilterablePreference<'a>, 63 - >, 64 #[serde(skip_serializing_if = "std::option::Option::is_none")] 65 #[serde(borrow)] 66 - pub starterpack_joined: std::option::Option< 67 - crate::app_bsky::notification::Preference<'a>, 68 - >, 69 #[serde(skip_serializing_if = "std::option::Option::is_none")] 70 #[serde(borrow)] 71 - pub subscribed_post: std::option::Option< 72 - crate::app_bsky::notification::Preference<'a>, 73 - >, 74 #[serde(skip_serializing_if = "std::option::Option::is_none")] 75 #[serde(borrow)] 76 pub unverified: std::option::Option<crate::app_bsky::notification::Preference<'a>>, ··· 126 } 127 } 128 129 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferencesV2<'de> { 130 - const NSID: &'static str = "app.bsky.notification.putPreferencesV2"; 131 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 132 - "application/json", 133 - ); 134 - const OUTPUT_ENCODING: &'static str = "application/json"; 135 type Output = PutPreferencesV2Output<'de>; 136 type Err = jacquard_common::types::xrpc::GenericError<'de>; 137 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct PutPreferencesV2<'a> { ··· 15 pub chat: std::option::Option<crate::app_bsky::notification::ChatPreference<'a>>, 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 + pub follow: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>, 19 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 #[serde(borrow)] 21 + pub like: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>, 22 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 #[serde(borrow)] 24 + pub like_via_repost: 25 + std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>, 26 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 #[serde(borrow)] 28 + pub mention: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>, 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 #[serde(borrow)] 31 + pub quote: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>, 32 #[serde(skip_serializing_if = "std::option::Option::is_none")] 33 #[serde(borrow)] 34 + pub reply: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>, 35 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 #[serde(borrow)] 37 + pub repost: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>, 38 #[serde(skip_serializing_if = "std::option::Option::is_none")] 39 #[serde(borrow)] 40 + pub repost_via_repost: 41 + std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>, 42 #[serde(skip_serializing_if = "std::option::Option::is_none")] 43 #[serde(borrow)] 44 + pub starterpack_joined: std::option::Option<crate::app_bsky::notification::Preference<'a>>, 45 #[serde(skip_serializing_if = "std::option::Option::is_none")] 46 #[serde(borrow)] 47 + pub subscribed_post: std::option::Option<crate::app_bsky::notification::Preference<'a>>, 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 #[serde(borrow)] 50 pub unverified: std::option::Option<crate::app_bsky::notification::Preference<'a>>, ··· 100 } 101 } 102 103 + ///Response type for 104 + ///app.bsky.notification.putPreferencesV2 105 + pub struct PutPreferencesV2Response; 106 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutPreferencesV2Response { 107 + const ENCODING: &'static str = "application/json"; 108 type Output = PutPreferencesV2Output<'de>; 109 type Err = jacquard_common::types::xrpc::GenericError<'de>; 110 + } 111 + 112 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferencesV2<'de> { 113 + const NSID: &'static str = "app.bsky.notification.putPreferencesV2"; 114 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 115 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 116 + type Response<'de1> = PutPreferencesV2Response; 117 + }
+14 -16
crates/jacquard-api/src/app_bsky/notification/register_push.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RegisterPush<'a> { ··· 55 } 56 } 57 58 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RegisterPush<'de> { 59 - const NSID: &'static str = "app.bsky.notification.registerPush"; 60 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 61 - "application/json", 62 - ); 63 - const OUTPUT_ENCODING: &'static str = "application/json"; 64 type Output = (); 65 type Err = jacquard_common::types::xrpc::GenericError<'de>; 66 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RegisterPush<'a> { ··· 47 } 48 } 49 50 + ///Response type for 51 + ///app.bsky.notification.registerPush 52 + pub struct RegisterPushResponse; 53 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RegisterPushResponse { 54 + const ENCODING: &'static str = "application/json"; 55 type Output = (); 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 + } 58 + 59 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RegisterPush<'de> { 60 + const NSID: &'static str = "app.bsky.notification.registerPush"; 61 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 62 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 63 + type Response<'de1> = RegisterPushResponse; 64 + }
+14 -16
crates/jacquard-api/src/app_bsky/notification/unregister_push.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UnregisterPush<'a> { ··· 51 } 52 } 53 54 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnregisterPush<'de> { 55 - const NSID: &'static str = "app.bsky.notification.unregisterPush"; 56 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 57 - "application/json", 58 - ); 59 - const OUTPUT_ENCODING: &'static str = "application/json"; 60 type Output = (); 61 type Err = jacquard_common::types::xrpc::GenericError<'de>; 62 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UnregisterPush<'a> { ··· 43 } 44 } 45 46 + ///Response type for 47 + ///app.bsky.notification.unregisterPush 48 + pub struct UnregisterPushResponse; 49 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnregisterPushResponse { 50 + const ENCODING: &'static str = "application/json"; 51 type Output = (); 52 type Err = jacquard_common::types::xrpc::GenericError<'de>; 53 + } 54 + 55 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnregisterPush<'de> { 56 + const NSID: &'static str = "app.bsky.notification.unregisterPush"; 57 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 58 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 59 + type Response<'de1> = UnregisterPushResponse; 60 + }
+14 -16
crates/jacquard-api/src/app_bsky/notification/update_seen.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateSeen<'a> { ··· 38 } 39 } 40 41 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateSeen<'de> { 42 - const NSID: &'static str = "app.bsky.notification.updateSeen"; 43 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 44 - "application/json", 45 - ); 46 - const OUTPUT_ENCODING: &'static str = "application/json"; 47 type Output = (); 48 type Err = jacquard_common::types::xrpc::GenericError<'de>; 49 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateSeen<'a> { ··· 30 } 31 } 32 33 + ///Response type for 34 + ///app.bsky.notification.updateSeen 35 + pub struct UpdateSeenResponse; 36 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateSeenResponse { 37 + const ENCODING: &'static str = "application/json"; 38 type Output = (); 39 type Err = jacquard_common::types::xrpc::GenericError<'de>; 40 + } 41 + 42 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateSeen<'de> { 43 + const NSID: &'static str = "app.bsky.notification.updateSeen"; 44 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 45 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 46 + type Response<'de1> = UpdateSeenResponse; 47 + }
+13 -5
crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs
··· 27 /// XRPC request marker type 28 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 29 pub struct GetAgeAssuranceState; 30 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAgeAssuranceState { 31 - const NSID: &'static str = "app.bsky.unspecced.getAgeAssuranceState"; 32 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 33 - const OUTPUT_ENCODING: &'static str = "application/json"; 34 type Output = GetAgeAssuranceStateOutput<'de>; 35 type Err = jacquard_common::types::xrpc::GenericError<'de>; 36 - }
··· 27 /// XRPC request marker type 28 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 29 pub struct GetAgeAssuranceState; 30 + ///Response type for 31 + ///app.bsky.unspecced.getAgeAssuranceState 32 + pub struct GetAgeAssuranceStateResponse; 33 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAgeAssuranceStateResponse { 34 + const ENCODING: &'static str = "application/json"; 35 type Output = GetAgeAssuranceStateOutput<'de>; 36 type Err = jacquard_common::types::xrpc::GenericError<'de>; 37 + } 38 + 39 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAgeAssuranceState { 40 + const NSID: &'static str = "app.bsky.unspecced.getAgeAssuranceState"; 41 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 42 + jacquard_common::types::xrpc::XrpcMethod::Query; 43 + type Response<'de1> = GetAgeAssuranceStateResponse; 44 + }
+13 -5
crates/jacquard-api/src/app_bsky/unspecced/get_config.rs
··· 51 /// XRPC request marker type 52 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 53 pub struct GetConfig; 54 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConfig { 55 - const NSID: &'static str = "app.bsky.unspecced.getConfig"; 56 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 57 - const OUTPUT_ENCODING: &'static str = "application/json"; 58 type Output = GetConfigOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 - }
··· 51 /// XRPC request marker type 52 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 53 pub struct GetConfig; 54 + ///Response type for 55 + ///app.bsky.unspecced.getConfig 56 + pub struct GetConfigResponse; 57 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConfigResponse { 58 + const ENCODING: &'static str = "application/json"; 59 type Output = GetConfigOutput<'de>; 60 type Err = jacquard_common::types::xrpc::GenericError<'de>; 61 + } 62 + 63 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConfig { 64 + const NSID: &'static str = "app.bsky.unspecced.getConfig"; 65 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 66 + jacquard_common::types::xrpc::XrpcMethod::Query; 67 + type Response<'de1> = GetConfigResponse; 68 + }
+16 -15
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetOnboardingSuggestedStarterPacks { ··· 47 } 48 } 49 50 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 51 - for GetOnboardingSuggestedStarterPacks { 52 - const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacks"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetOnboardingSuggestedStarterPacksOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetOnboardingSuggestedStarterPacks { ··· 39 } 40 } 41 42 + ///Response type for 43 + ///app.bsky.unspecced.getOnboardingSuggestedStarterPacks 44 + pub struct GetOnboardingSuggestedStarterPacksResponse; 45 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> 46 + for GetOnboardingSuggestedStarterPacksResponse 47 + { 48 + const ENCODING: &'static str = "application/json"; 49 type Output = GetOnboardingSuggestedStarterPacksOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 + } 52 + 53 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetOnboardingSuggestedStarterPacks { 54 + const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacks"; 55 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 56 + jacquard_common::types::xrpc::XrpcMethod::Query; 57 + type Response<'de1> = GetOnboardingSuggestedStarterPacksResponse; 58 + }
+19 -17
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetOnboardingSuggestedStarterPacksSkeleton<'a> { ··· 43 pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>, 44 } 45 46 - impl jacquard_common::IntoStatic 47 - for GetOnboardingSuggestedStarterPacksSkeletonOutput<'_> { 48 type Output = GetOnboardingSuggestedStarterPacksSkeletonOutput<'static>; 49 fn into_static(self) -> Self::Output { 50 GetOnboardingSuggestedStarterPacksSkeletonOutput { ··· 54 } 55 } 56 57 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 58 - for GetOnboardingSuggestedStarterPacksSkeleton<'de> { 59 - const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton"; 60 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 61 - const OUTPUT_ENCODING: &'static str = "application/json"; 62 type Output = GetOnboardingSuggestedStarterPacksSkeletonOutput<'de>; 63 type Err = jacquard_common::types::xrpc::GenericError<'de>; 64 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetOnboardingSuggestedStarterPacksSkeleton<'a> { ··· 35 pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>, 36 } 37 38 + impl jacquard_common::IntoStatic for GetOnboardingSuggestedStarterPacksSkeletonOutput<'_> { 39 type Output = GetOnboardingSuggestedStarterPacksSkeletonOutput<'static>; 40 fn into_static(self) -> Self::Output { 41 GetOnboardingSuggestedStarterPacksSkeletonOutput { ··· 45 } 46 } 47 48 + ///Response type for 49 + ///app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton 50 + pub struct GetOnboardingSuggestedStarterPacksSkeletonResponse; 51 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> 52 + for GetOnboardingSuggestedStarterPacksSkeletonResponse 53 + { 54 + const ENCODING: &'static str = "application/json"; 55 type Output = GetOnboardingSuggestedStarterPacksSkeletonOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 + } 58 + 59 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 60 + for GetOnboardingSuggestedStarterPacksSkeleton<'de> 61 + { 62 + const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton"; 63 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 64 + jacquard_common::types::xrpc::XrpcMethod::Query; 65 + type Response<'de1> = GetOnboardingSuggestedStarterPacksSkeletonResponse; 66 + }
+15 -17
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetPostThreadOtherV2<'a> { ··· 53 } 54 } 55 56 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThreadOtherV2<'de> { 57 - const NSID: &'static str = "app.bsky.unspecced.getPostThreadOtherV2"; 58 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 59 - const OUTPUT_ENCODING: &'static str = "application/json"; 60 type Output = GetPostThreadOtherV2Output<'de>; 61 type Err = jacquard_common::types::xrpc::GenericError<'de>; 62 } 63 64 #[jacquard_derive::lexicon] ··· 89 ThreadItemRecordValue::DefsThreadItemPost(v) => { 90 ThreadItemRecordValue::DefsThreadItemPost(v.into_static()) 91 } 92 - ThreadItemRecordValue::Unknown(v) => { 93 - ThreadItemRecordValue::Unknown(v.into_static()) 94 - } 95 } 96 } 97 } ··· 106 extra_data: self.extra_data.into_static(), 107 } 108 } 109 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetPostThreadOtherV2<'a> { ··· 45 } 46 } 47 48 + ///Response type for 49 + ///app.bsky.unspecced.getPostThreadOtherV2 50 + pub struct GetPostThreadOtherV2Response; 51 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPostThreadOtherV2Response { 52 + const ENCODING: &'static str = "application/json"; 53 type Output = GetPostThreadOtherV2Output<'de>; 54 type Err = jacquard_common::types::xrpc::GenericError<'de>; 55 + } 56 + 57 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThreadOtherV2<'de> { 58 + const NSID: &'static str = "app.bsky.unspecced.getPostThreadOtherV2"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 60 + jacquard_common::types::xrpc::XrpcMethod::Query; 61 + type Response<'de1> = GetPostThreadOtherV2Response; 62 } 63 64 #[jacquard_derive::lexicon] ··· 89 ThreadItemRecordValue::DefsThreadItemPost(v) => { 90 ThreadItemRecordValue::DefsThreadItemPost(v.into_static()) 91 } 92 + ThreadItemRecordValue::Unknown(v) => ThreadItemRecordValue::Unknown(v.into_static()), 93 } 94 } 95 } ··· 104 extra_data: self.extra_data.into_static(), 105 } 106 } 107 + }
+15 -17
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetPostThreadV2<'a> { ··· 78 } 79 } 80 81 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThreadV2<'de> { 82 - const NSID: &'static str = "app.bsky.unspecced.getPostThreadV2"; 83 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 84 - const OUTPUT_ENCODING: &'static str = "application/json"; 85 type Output = GetPostThreadV2Output<'de>; 86 type Err = jacquard_common::types::xrpc::GenericError<'de>; 87 } 88 89 #[jacquard_derive::lexicon] ··· 131 ThreadItemRecordValue::DefsThreadItemBlocked(v) => { 132 ThreadItemRecordValue::DefsThreadItemBlocked(v.into_static()) 133 } 134 - ThreadItemRecordValue::Unknown(v) => { 135 - ThreadItemRecordValue::Unknown(v.into_static()) 136 - } 137 } 138 } 139 } ··· 148 extra_data: self.extra_data.into_static(), 149 } 150 } 151 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetPostThreadV2<'a> { ··· 70 } 71 } 72 73 + ///Response type for 74 + ///app.bsky.unspecced.getPostThreadV2 75 + pub struct GetPostThreadV2Response; 76 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPostThreadV2Response { 77 + const ENCODING: &'static str = "application/json"; 78 type Output = GetPostThreadV2Output<'de>; 79 type Err = jacquard_common::types::xrpc::GenericError<'de>; 80 + } 81 + 82 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThreadV2<'de> { 83 + const NSID: &'static str = "app.bsky.unspecced.getPostThreadV2"; 84 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 85 + jacquard_common::types::xrpc::XrpcMethod::Query; 86 + type Response<'de1> = GetPostThreadV2Response; 87 } 88 89 #[jacquard_derive::lexicon] ··· 131 ThreadItemRecordValue::DefsThreadItemBlocked(v) => { 132 ThreadItemRecordValue::DefsThreadItemBlocked(v.into_static()) 133 } 134 + ThreadItemRecordValue::Unknown(v) => ThreadItemRecordValue::Unknown(v.into_static()), 135 } 136 } 137 } ··· 146 extra_data: self.extra_data.into_static(), 147 } 148 } 149 + }
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedFeeds { ··· 47 } 48 } 49 50 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeeds { 51 - const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeeds"; 52 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 - const OUTPUT_ENCODING: &'static str = "application/json"; 54 type Output = GetSuggestedFeedsOutput<'de>; 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestedFeeds { ··· 39 } 40 } 41 42 + ///Response type for 43 + ///app.bsky.unspecced.getSuggestedFeeds 44 + pub struct GetSuggestedFeedsResponse; 45 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedFeedsResponse { 46 + const ENCODING: &'static str = "application/json"; 47 type Output = GetSuggestedFeedsOutput<'de>; 48 type Err = jacquard_common::types::xrpc::GenericError<'de>; 49 + } 50 + 51 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeeds { 52 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeeds"; 53 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 54 + jacquard_common::types::xrpc::XrpcMethod::Query; 55 + type Response<'de1> = GetSuggestedFeedsResponse; 56 + }
+14 -15
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedFeedsSkeleton<'a> { ··· 53 } 54 } 55 56 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 57 - for GetSuggestedFeedsSkeleton<'de> { 58 - const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeedsSkeleton"; 59 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 - const OUTPUT_ENCODING: &'static str = "application/json"; 61 type Output = GetSuggestedFeedsSkeletonOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestedFeedsSkeleton<'a> { ··· 45 } 46 } 47 48 + ///Response type for 49 + ///app.bsky.unspecced.getSuggestedFeedsSkeleton 50 + pub struct GetSuggestedFeedsSkeletonResponse; 51 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedFeedsSkeletonResponse { 52 + const ENCODING: &'static str = "application/json"; 53 type Output = GetSuggestedFeedsSkeletonOutput<'de>; 54 type Err = jacquard_common::types::xrpc::GenericError<'de>; 55 + } 56 + 57 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeedsSkeleton<'de> { 58 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeedsSkeleton"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 60 + jacquard_common::types::xrpc::XrpcMethod::Query; 61 + type Response<'de1> = GetSuggestedFeedsSkeletonResponse; 62 + }
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedStarterPacks { ··· 47 } 48 } 49 50 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedStarterPacks { 51 - const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacks"; 52 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 - const OUTPUT_ENCODING: &'static str = "application/json"; 54 type Output = GetSuggestedStarterPacksOutput<'de>; 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestedStarterPacks { ··· 39 } 40 } 41 42 + ///Response type for 43 + ///app.bsky.unspecced.getSuggestedStarterPacks 44 + pub struct GetSuggestedStarterPacksResponse; 45 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedStarterPacksResponse { 46 + const ENCODING: &'static str = "application/json"; 47 type Output = GetSuggestedStarterPacksOutput<'de>; 48 type Err = jacquard_common::types::xrpc::GenericError<'de>; 49 + } 50 + 51 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedStarterPacks { 52 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacks"; 53 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 54 + jacquard_common::types::xrpc::XrpcMethod::Query; 55 + type Response<'de1> = GetSuggestedStarterPacksResponse; 56 + }
+14 -15
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedStarterPacksSkeleton<'a> { ··· 53 } 54 } 55 56 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 57 - for GetSuggestedStarterPacksSkeleton<'de> { 58 - const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacksSkeleton"; 59 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 - const OUTPUT_ENCODING: &'static str = "application/json"; 61 type Output = GetSuggestedStarterPacksSkeletonOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestedStarterPacksSkeleton<'a> { ··· 45 } 46 } 47 48 + ///Response type for 49 + ///app.bsky.unspecced.getSuggestedStarterPacksSkeleton 50 + pub struct GetSuggestedStarterPacksSkeletonResponse; 51 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedStarterPacksSkeletonResponse { 52 + const ENCODING: &'static str = "application/json"; 53 type Output = GetSuggestedStarterPacksSkeletonOutput<'de>; 54 type Err = jacquard_common::types::xrpc::GenericError<'de>; 55 + } 56 + 57 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedStarterPacksSkeleton<'de> { 58 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacksSkeleton"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 60 + jacquard_common::types::xrpc::XrpcMethod::Query; 61 + type Response<'de1> = GetSuggestedStarterPacksSkeletonResponse; 62 + }
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedUsers<'a> { ··· 54 } 55 } 56 57 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedUsers<'de> { 58 - const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsers"; 59 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 - const OUTPUT_ENCODING: &'static str = "application/json"; 61 type Output = GetSuggestedUsersOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestedUsers<'a> { ··· 46 } 47 } 48 49 + ///Response type for 50 + ///app.bsky.unspecced.getSuggestedUsers 51 + pub struct GetSuggestedUsersResponse; 52 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedUsersResponse { 53 + const ENCODING: &'static str = "application/json"; 54 type Output = GetSuggestedUsersOutput<'de>; 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 + } 57 + 58 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedUsers<'de> { 59 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsers"; 60 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 61 + jacquard_common::types::xrpc::XrpcMethod::Query; 62 + type Response<'de1> = GetSuggestedUsersResponse; 63 + }
+14 -15
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestedUsersSkeleton<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 62 - for GetSuggestedUsersSkeleton<'de> { 63 - const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsersSkeleton"; 64 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 65 - const OUTPUT_ENCODING: &'static str = "application/json"; 66 type Output = GetSuggestedUsersSkeletonOutput<'de>; 67 type Err = jacquard_common::types::xrpc::GenericError<'de>; 68 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestedUsersSkeleton<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///app.bsky.unspecced.getSuggestedUsersSkeleton 55 + pub struct GetSuggestedUsersSkeletonResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedUsersSkeletonResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = GetSuggestedUsersSkeletonOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedUsersSkeleton<'de> { 63 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsersSkeleton"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = GetSuggestedUsersSkeletonResponse; 67 + }
+14 -15
crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSuggestionsSkeleton<'a> { ··· 75 } 76 } 77 78 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 79 - for GetSuggestionsSkeleton<'de> { 80 - const NSID: &'static str = "app.bsky.unspecced.getSuggestionsSkeleton"; 81 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 82 - const OUTPUT_ENCODING: &'static str = "application/json"; 83 type Output = GetSuggestionsSkeletonOutput<'de>; 84 type Err = jacquard_common::types::xrpc::GenericError<'de>; 85 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSuggestionsSkeleton<'a> { ··· 67 } 68 } 69 70 + ///Response type for 71 + ///app.bsky.unspecced.getSuggestionsSkeleton 72 + pub struct GetSuggestionsSkeletonResponse; 73 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestionsSkeletonResponse { 74 + const ENCODING: &'static str = "application/json"; 75 type Output = GetSuggestionsSkeletonOutput<'de>; 76 type Err = jacquard_common::types::xrpc::GenericError<'de>; 77 + } 78 + 79 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestionsSkeleton<'de> { 80 + const NSID: &'static str = "app.bsky.unspecced.getSuggestionsSkeleton"; 81 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 82 + jacquard_common::types::xrpc::XrpcMethod::Query; 83 + type Response<'de1> = GetSuggestionsSkeletonResponse; 84 + }
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetTaggedSuggestions {} ··· 42 } 43 } 44 45 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTaggedSuggestions { 46 - const NSID: &'static str = "app.bsky.unspecced.getTaggedSuggestions"; 47 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = GetTaggedSuggestionsOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 } 52 53 #[jacquard_derive::lexicon] ··· 72 extra_data: self.extra_data.into_static(), 73 } 74 } 75 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetTaggedSuggestions {} ··· 34 } 35 } 36 37 + ///Response type for 38 + ///app.bsky.unspecced.getTaggedSuggestions 39 + pub struct GetTaggedSuggestionsResponse; 40 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetTaggedSuggestionsResponse { 41 + const ENCODING: &'static str = "application/json"; 42 type Output = GetTaggedSuggestionsOutput<'de>; 43 type Err = jacquard_common::types::xrpc::GenericError<'de>; 44 + } 45 + 46 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTaggedSuggestions { 47 + const NSID: &'static str = "app.bsky.unspecced.getTaggedSuggestions"; 48 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 49 + jacquard_common::types::xrpc::XrpcMethod::Query; 50 + type Response<'de1> = GetTaggedSuggestionsResponse; 51 } 52 53 #[jacquard_derive::lexicon] ··· 72 extra_data: self.extra_data.into_static(), 73 } 74 } 75 + }
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetTrends { ··· 47 } 48 } 49 50 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTrends { 51 - const NSID: &'static str = "app.bsky.unspecced.getTrends"; 52 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 - const OUTPUT_ENCODING: &'static str = "application/json"; 54 type Output = GetTrendsOutput<'de>; 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetTrends { ··· 39 } 40 } 41 42 + ///Response type for 43 + ///app.bsky.unspecced.getTrends 44 + pub struct GetTrendsResponse; 45 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetTrendsResponse { 46 + const ENCODING: &'static str = "application/json"; 47 type Output = GetTrendsOutput<'de>; 48 type Err = jacquard_common::types::xrpc::GenericError<'de>; 49 + } 50 + 51 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTrends { 52 + const NSID: &'static str = "app.bsky.unspecced.getTrends"; 53 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 54 + jacquard_common::types::xrpc::XrpcMethod::Query; 55 + type Response<'de1> = GetTrendsResponse; 56 + }
+16 -20
crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct InitAgeAssurance<'a> { ··· 79 PartialEq, 80 Eq, 81 thiserror::Error, 82 - miette::Diagnostic 83 )] 84 #[serde(tag = "error", content = "message")] 85 #[serde(bound(deserialize = "'de: 'a"))] ··· 134 InitAgeAssuranceError::InvalidInitiation(v) => { 135 InitAgeAssuranceError::InvalidInitiation(v.into_static()) 136 } 137 - InitAgeAssuranceError::Unknown(v) => { 138 - InitAgeAssuranceError::Unknown(v.into_static()) 139 - } 140 } 141 } 142 } 143 144 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for InitAgeAssurance<'de> { 145 - const NSID: &'static str = "app.bsky.unspecced.initAgeAssurance"; 146 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 147 - "application/json", 148 - ); 149 - const OUTPUT_ENCODING: &'static str = "application/json"; 150 type Output = InitAgeAssuranceOutput<'de>; 151 type Err = InitAgeAssuranceError<'de>; 152 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct InitAgeAssurance<'a> { ··· 71 PartialEq, 72 Eq, 73 thiserror::Error, 74 + miette::Diagnostic, 75 )] 76 #[serde(tag = "error", content = "message")] 77 #[serde(bound(deserialize = "'de: 'a"))] ··· 126 InitAgeAssuranceError::InvalidInitiation(v) => { 127 InitAgeAssuranceError::InvalidInitiation(v.into_static()) 128 } 129 + InitAgeAssuranceError::Unknown(v) => InitAgeAssuranceError::Unknown(v.into_static()), 130 } 131 } 132 } 133 134 + ///Response type for 135 + ///app.bsky.unspecced.initAgeAssurance 136 + pub struct InitAgeAssuranceResponse; 137 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for InitAgeAssuranceResponse { 138 + const ENCODING: &'static str = "application/json"; 139 type Output = InitAgeAssuranceOutput<'de>; 140 type Err = InitAgeAssuranceError<'de>; 141 + } 142 + 143 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for InitAgeAssurance<'de> { 144 + const NSID: &'static str = "app.bsky.unspecced.initAgeAssurance"; 145 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 146 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 147 + type Response<'de1> = InitAgeAssuranceResponse; 148 + }
+15 -15
crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchActorsSkeleton<'a> { ··· 82 PartialEq, 83 Eq, 84 thiserror::Error, 85 - miette::Diagnostic 86 )] 87 #[serde(tag = "error", content = "message")] 88 #[serde(bound(deserialize = "'de: 'a"))] ··· 120 } 121 } 122 123 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActorsSkeleton<'de> { 124 - const NSID: &'static str = "app.bsky.unspecced.searchActorsSkeleton"; 125 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 126 - const OUTPUT_ENCODING: &'static str = "application/json"; 127 type Output = SearchActorsSkeletonOutput<'de>; 128 type Err = SearchActorsSkeletonError<'de>; 129 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchActorsSkeleton<'a> { ··· 74 PartialEq, 75 Eq, 76 thiserror::Error, 77 + miette::Diagnostic, 78 )] 79 #[serde(tag = "error", content = "message")] 80 #[serde(bound(deserialize = "'de: 'a"))] ··· 112 } 113 } 114 115 + ///Response type for 116 + ///app.bsky.unspecced.searchActorsSkeleton 117 + pub struct SearchActorsSkeletonResponse; 118 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchActorsSkeletonResponse { 119 + const ENCODING: &'static str = "application/json"; 120 type Output = SearchActorsSkeletonOutput<'de>; 121 type Err = SearchActorsSkeletonError<'de>; 122 + } 123 + 124 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActorsSkeleton<'de> { 125 + const NSID: &'static str = "app.bsky.unspecced.searchActorsSkeleton"; 126 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 127 + jacquard_common::types::xrpc::XrpcMethod::Query; 128 + type Response<'de1> = SearchActorsSkeletonResponse; 129 + }
+15 -15
crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchPostsSkeleton<'a> { ··· 119 PartialEq, 120 Eq, 121 thiserror::Error, 122 - miette::Diagnostic 123 )] 124 #[serde(tag = "error", content = "message")] 125 #[serde(bound(deserialize = "'de: 'a"))] ··· 157 } 158 } 159 160 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchPostsSkeleton<'de> { 161 - const NSID: &'static str = "app.bsky.unspecced.searchPostsSkeleton"; 162 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 163 - const OUTPUT_ENCODING: &'static str = "application/json"; 164 type Output = SearchPostsSkeletonOutput<'de>; 165 type Err = SearchPostsSkeletonError<'de>; 166 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchPostsSkeleton<'a> { ··· 111 PartialEq, 112 Eq, 113 thiserror::Error, 114 + miette::Diagnostic, 115 )] 116 #[serde(tag = "error", content = "message")] 117 #[serde(bound(deserialize = "'de: 'a"))] ··· 149 } 150 } 151 152 + ///Response type for 153 + ///app.bsky.unspecced.searchPostsSkeleton 154 + pub struct SearchPostsSkeletonResponse; 155 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchPostsSkeletonResponse { 156 + const ENCODING: &'static str = "application/json"; 157 type Output = SearchPostsSkeletonOutput<'de>; 158 type Err = SearchPostsSkeletonError<'de>; 159 + } 160 + 161 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchPostsSkeleton<'de> { 162 + const NSID: &'static str = "app.bsky.unspecced.searchPostsSkeleton"; 163 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 164 + jacquard_common::types::xrpc::XrpcMethod::Query; 165 + type Response<'de1> = SearchPostsSkeletonResponse; 166 + }
+15 -16
crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchStarterPacksSkeleton<'a> { ··· 79 PartialEq, 80 Eq, 81 thiserror::Error, 82 - miette::Diagnostic 83 )] 84 #[serde(tag = "error", content = "message")] 85 #[serde(bound(deserialize = "'de: 'a"))] ··· 117 } 118 } 119 120 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 121 - for SearchStarterPacksSkeleton<'de> { 122 - const NSID: &'static str = "app.bsky.unspecced.searchStarterPacksSkeleton"; 123 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 124 - const OUTPUT_ENCODING: &'static str = "application/json"; 125 type Output = SearchStarterPacksSkeletonOutput<'de>; 126 type Err = SearchStarterPacksSkeletonError<'de>; 127 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchStarterPacksSkeleton<'a> { ··· 71 PartialEq, 72 Eq, 73 thiserror::Error, 74 + miette::Diagnostic, 75 )] 76 #[serde(tag = "error", content = "message")] 77 #[serde(bound(deserialize = "'de: 'a"))] ··· 109 } 110 } 111 112 + ///Response type for 113 + ///app.bsky.unspecced.searchStarterPacksSkeleton 114 + pub struct SearchStarterPacksSkeletonResponse; 115 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchStarterPacksSkeletonResponse { 116 + const ENCODING: &'static str = "application/json"; 117 type Output = SearchStarterPacksSkeletonOutput<'de>; 118 type Err = SearchStarterPacksSkeletonError<'de>; 119 + } 120 + 121 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchStarterPacksSkeleton<'de> { 122 + const NSID: &'static str = "app.bsky.unspecced.searchStarterPacksSkeleton"; 123 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 124 + jacquard_common::types::xrpc::XrpcMethod::Query; 125 + type Response<'de1> = SearchStarterPacksSkeletonResponse; 126 + }
+14 -14
crates/jacquard-api/src/app_bsky/video/get_job_status.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetJobStatus<'a> { ··· 49 } 50 } 51 52 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetJobStatus<'de> { 53 - const NSID: &'static str = "app.bsky.video.getJobStatus"; 54 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 55 - const OUTPUT_ENCODING: &'static str = "application/json"; 56 type Output = GetJobStatusOutput<'de>; 57 type Err = jacquard_common::types::xrpc::GenericError<'de>; 58 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetJobStatus<'a> { ··· 41 } 42 } 43 44 + ///Response type for 45 + ///app.bsky.video.getJobStatus 46 + pub struct GetJobStatusResponse; 47 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetJobStatusResponse { 48 + const ENCODING: &'static str = "application/json"; 49 type Output = GetJobStatusOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 + } 52 + 53 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetJobStatus<'de> { 54 + const NSID: &'static str = "app.bsky.video.getJobStatus"; 55 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 56 + jacquard_common::types::xrpc::XrpcMethod::Query; 57 + type Response<'de1> = GetJobStatusResponse; 58 + }
+13 -5
crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs
··· 39 /// XRPC request marker type 40 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 41 pub struct GetUploadLimits; 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetUploadLimits { 43 - const NSID: &'static str = "app.bsky.video.getUploadLimits"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 45 - const OUTPUT_ENCODING: &'static str = "application/json"; 46 type Output = GetUploadLimitsOutput<'de>; 47 type Err = jacquard_common::types::xrpc::GenericError<'de>; 48 - }
··· 39 /// XRPC request marker type 40 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 41 pub struct GetUploadLimits; 42 + ///Response type for 43 + ///app.bsky.video.getUploadLimits 44 + pub struct GetUploadLimitsResponse; 45 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetUploadLimitsResponse { 46 + const ENCODING: &'static str = "application/json"; 47 type Output = GetUploadLimitsOutput<'de>; 48 type Err = jacquard_common::types::xrpc::GenericError<'de>; 49 + } 50 + 51 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetUploadLimits { 52 + const NSID: &'static str = "app.bsky.video.getUploadLimits"; 53 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 54 + jacquard_common::types::xrpc::XrpcMethod::Query; 55 + type Response<'de1> = GetUploadLimitsResponse; 56 + }
+18 -25
crates/jacquard-api/src/app_bsky/video/upload_video.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct UploadVideo { ··· 45 } 46 } 47 48 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UploadVideo { 49 const NSID: &'static str = "app.bsky.video.uploadVideo"; 50 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 51 - "video/mp4", 52 - ); 53 - const OUTPUT_ENCODING: &'static str = "application/json"; 54 - type Output = UploadVideoOutput<'de>; 55 - type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> { 57 Ok(self.body.to_vec()) 58 } 59 - fn decode_body( 60 - &self, 61 - body: &'de [u8], 62 - ) -> Result<Box<Self>, jacquard_common::error::DecodeError> { 63 - Ok( 64 - Box::new(Self { 65 - body: bytes::Bytes::copy_from_slice(body), 66 - }), 67 - ) 68 } 69 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct UploadVideo { ··· 37 } 38 } 39 40 + ///Response type for 41 + ///app.bsky.video.uploadVideo 42 + pub struct UploadVideoResponse; 43 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UploadVideoResponse { 44 + const ENCODING: &'static str = "application/json"; 45 + type Output = UploadVideoOutput<'de>; 46 + type Err = jacquard_common::types::xrpc::GenericError<'de>; 47 + } 48 + 49 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UploadVideo { 50 const NSID: &'static str = "app.bsky.video.uploadVideo"; 51 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 52 + jacquard_common::types::xrpc::XrpcMethod::Procedure("video/mp4"); 53 + type Response<'de1> = UploadVideoResponse; 54 fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> { 55 Ok(self.body.to_vec()) 56 } 57 + fn decode_body(body: &'de [u8]) -> Result<Box<Self>, jacquard_common::error::DecodeError> { 58 + Ok(Box::new(Self { 59 + body: bytes::Bytes::copy_from_slice(body), 60 + })) 61 } 62 + }
+13 -7
crates/jacquard-api/src/chat_bsky/actor/delete_account.rs
··· 21 /// XRPC request marker type 22 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 23 pub struct DeleteAccount; 24 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount { 25 - const NSID: &'static str = "chat.bsky.actor.deleteAccount"; 26 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 27 - "application/json", 28 - ); 29 - const OUTPUT_ENCODING: &'static str = "application/json"; 30 type Output = DeleteAccountOutput<'de>; 31 type Err = jacquard_common::types::xrpc::GenericError<'de>; 32 - }
··· 21 /// XRPC request marker type 22 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 23 pub struct DeleteAccount; 24 + ///Response type for 25 + ///chat.bsky.actor.deleteAccount 26 + pub struct DeleteAccountResponse; 27 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteAccountResponse { 28 + const ENCODING: &'static str = "application/json"; 29 type Output = DeleteAccountOutput<'de>; 30 type Err = jacquard_common::types::xrpc::GenericError<'de>; 31 + } 32 + 33 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount { 34 + const NSID: &'static str = "chat.bsky.actor.deleteAccount"; 35 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 36 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 37 + type Response<'de1> = DeleteAccountResponse; 38 + }
+13 -5
crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs
··· 21 /// XRPC request marker type 22 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 23 pub struct ExportAccountData; 24 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ExportAccountData { 25 - const NSID: &'static str = "chat.bsky.actor.exportAccountData"; 26 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 27 - const OUTPUT_ENCODING: &'static str = "application/jsonl"; 28 type Output = ExportAccountDataOutput<'de>; 29 type Err = jacquard_common::types::xrpc::GenericError<'de>; 30 - }
··· 21 /// XRPC request marker type 22 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 23 pub struct ExportAccountData; 24 + ///Response type for 25 + ///chat.bsky.actor.exportAccountData 26 + pub struct ExportAccountDataResponse; 27 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ExportAccountDataResponse { 28 + const ENCODING: &'static str = "application/jsonl"; 29 type Output = ExportAccountDataOutput<'de>; 30 type Err = jacquard_common::types::xrpc::GenericError<'de>; 31 + } 32 + 33 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ExportAccountData { 34 + const NSID: &'static str = "chat.bsky.actor.exportAccountData"; 35 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 36 + jacquard_common::types::xrpc::XrpcMethod::Query; 37 + type Response<'de1> = ExportAccountDataResponse; 38 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct AcceptConvo<'a> { ··· 60 } 61 } 62 63 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AcceptConvo<'de> { 64 - const NSID: &'static str = "chat.bsky.convo.acceptConvo"; 65 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 66 - "application/json", 67 - ); 68 - const OUTPUT_ENCODING: &'static str = "application/json"; 69 type Output = AcceptConvoOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct AcceptConvo<'a> { ··· 52 } 53 } 54 55 + ///Response type for 56 + ///chat.bsky.convo.acceptConvo 57 + pub struct AcceptConvoResponse; 58 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AcceptConvoResponse { 59 + const ENCODING: &'static str = "application/json"; 60 type Output = AcceptConvoOutput<'de>; 61 type Err = jacquard_common::types::xrpc::GenericError<'de>; 62 + } 63 + 64 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AcceptConvo<'de> { 65 + const NSID: &'static str = "chat.bsky.convo.acceptConvo"; 66 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 67 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 68 + type Response<'de1> = AcceptConvoResponse; 69 + }
+15 -17
crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct AddReaction<'a> { ··· 75 PartialEq, 76 Eq, 77 thiserror::Error, 78 - miette::Diagnostic 79 )] 80 #[serde(tag = "error", content = "message")] 81 #[serde(bound(deserialize = "'de: 'a"))] ··· 138 } 139 } 140 141 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddReaction<'de> { 142 - const NSID: &'static str = "chat.bsky.convo.addReaction"; 143 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 144 - "application/json", 145 - ); 146 - const OUTPUT_ENCODING: &'static str = "application/json"; 147 type Output = AddReactionOutput<'de>; 148 type Err = AddReactionError<'de>; 149 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct AddReaction<'a> { ··· 67 PartialEq, 68 Eq, 69 thiserror::Error, 70 + miette::Diagnostic, 71 )] 72 #[serde(tag = "error", content = "message")] 73 #[serde(bound(deserialize = "'de: 'a"))] ··· 130 } 131 } 132 133 + ///Response type for 134 + ///chat.bsky.convo.addReaction 135 + pub struct AddReactionResponse; 136 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddReactionResponse { 137 + const ENCODING: &'static str = "application/json"; 138 type Output = AddReactionOutput<'de>; 139 type Err = AddReactionError<'de>; 140 + } 141 + 142 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddReaction<'de> { 143 + const NSID: &'static str = "chat.bsky.convo.addReaction"; 144 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 145 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 146 + type Response<'de1> = AddReactionResponse; 147 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteMessageForSelf<'a> { ··· 63 } 64 } 65 66 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteMessageForSelf<'de> { 67 - const NSID: &'static str = "chat.bsky.convo.deleteMessageForSelf"; 68 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 69 - "application/json", 70 - ); 71 - const OUTPUT_ENCODING: &'static str = "application/json"; 72 type Output = DeleteMessageForSelfOutput<'de>; 73 type Err = jacquard_common::types::xrpc::GenericError<'de>; 74 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteMessageForSelf<'a> { ··· 55 } 56 } 57 58 + ///Response type for 59 + ///chat.bsky.convo.deleteMessageForSelf 60 + pub struct DeleteMessageForSelfResponse; 61 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteMessageForSelfResponse { 62 + const ENCODING: &'static str = "application/json"; 63 type Output = DeleteMessageForSelfOutput<'de>; 64 type Err = jacquard_common::types::xrpc::GenericError<'de>; 65 + } 66 + 67 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteMessageForSelf<'de> { 68 + const NSID: &'static str = "chat.bsky.convo.deleteMessageForSelf"; 69 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 70 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 71 + type Response<'de1> = DeleteMessageForSelfResponse; 72 + }
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_convo.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetConvo<'a> { ··· 49 } 50 } 51 52 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvo<'de> { 53 - const NSID: &'static str = "chat.bsky.convo.getConvo"; 54 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 55 - const OUTPUT_ENCODING: &'static str = "application/json"; 56 type Output = GetConvoOutput<'de>; 57 type Err = jacquard_common::types::xrpc::GenericError<'de>; 58 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetConvo<'a> { ··· 41 } 42 } 43 44 + ///Response type for 45 + ///chat.bsky.convo.getConvo 46 + pub struct GetConvoResponse; 47 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConvoResponse { 48 + const ENCODING: &'static str = "application/json"; 49 type Output = GetConvoOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 + } 52 + 53 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvo<'de> { 54 + const NSID: &'static str = "chat.bsky.convo.getConvo"; 55 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 56 + jacquard_common::types::xrpc::XrpcMethod::Query; 57 + type Response<'de1> = GetConvoResponse; 58 + }
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetConvoAvailability<'a> { ··· 51 } 52 } 53 54 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvoAvailability<'de> { 55 - const NSID: &'static str = "chat.bsky.convo.getConvoAvailability"; 56 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 57 - const OUTPUT_ENCODING: &'static str = "application/json"; 58 type Output = GetConvoAvailabilityOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetConvoAvailability<'a> { ··· 43 } 44 } 45 46 + ///Response type for 47 + ///chat.bsky.convo.getConvoAvailability 48 + pub struct GetConvoAvailabilityResponse; 49 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConvoAvailabilityResponse { 50 + const ENCODING: &'static str = "application/json"; 51 type Output = GetConvoAvailabilityOutput<'de>; 52 type Err = jacquard_common::types::xrpc::GenericError<'de>; 53 + } 54 + 55 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvoAvailability<'de> { 56 + const NSID: &'static str = "chat.bsky.convo.getConvoAvailability"; 57 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 58 + jacquard_common::types::xrpc::XrpcMethod::Query; 59 + type Response<'de1> = GetConvoAvailabilityResponse; 60 + }
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetConvoForMembers<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvoForMembers<'de> { 52 - const NSID: &'static str = "chat.bsky.convo.getConvoForMembers"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetConvoForMembersOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetConvoForMembers<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///chat.bsky.convo.getConvoForMembers 45 + pub struct GetConvoForMembersResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConvoForMembersResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetConvoForMembersOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvoForMembers<'de> { 53 + const NSID: &'static str = "chat.bsky.convo.getConvoForMembers"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetConvoForMembersResponse; 57 + }
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_log.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetLog<'a> { ··· 54 } 55 } 56 57 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLog<'de> { 58 - const NSID: &'static str = "chat.bsky.convo.getLog"; 59 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 - const OUTPUT_ENCODING: &'static str = "application/json"; 61 type Output = GetLogOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetLog<'a> { ··· 46 } 47 } 48 49 + ///Response type for 50 + ///chat.bsky.convo.getLog 51 + pub struct GetLogResponse; 52 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetLogResponse { 53 + const ENCODING: &'static str = "application/json"; 54 type Output = GetLogOutput<'de>; 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 + } 57 + 58 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLog<'de> { 59 + const NSID: &'static str = "chat.bsky.convo.getLog"; 60 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 61 + jacquard_common::types::xrpc::XrpcMethod::Query; 62 + type Response<'de1> = GetLogResponse; 63 + }
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_messages.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetMessages<'a> { ··· 62 } 63 } 64 65 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMessages<'de> { 66 - const NSID: &'static str = "chat.bsky.convo.getMessages"; 67 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 68 - const OUTPUT_ENCODING: &'static str = "application/json"; 69 type Output = GetMessagesOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetMessages<'a> { ··· 54 } 55 } 56 57 + ///Response type for 58 + ///chat.bsky.convo.getMessages 59 + pub struct GetMessagesResponse; 60 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetMessagesResponse { 61 + const ENCODING: &'static str = "application/json"; 62 type Output = GetMessagesOutput<'de>; 63 type Err = jacquard_common::types::xrpc::GenericError<'de>; 64 + } 65 + 66 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMessages<'de> { 67 + const NSID: &'static str = "chat.bsky.convo.getMessages"; 68 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 69 + jacquard_common::types::xrpc::XrpcMethod::Query; 70 + type Response<'de1> = GetMessagesResponse; 71 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct LeaveConvo<'a> { ··· 61 } 62 } 63 64 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for LeaveConvo<'de> { 65 - const NSID: &'static str = "chat.bsky.convo.leaveConvo"; 66 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 67 - "application/json", 68 - ); 69 - const OUTPUT_ENCODING: &'static str = "application/json"; 70 type Output = LeaveConvoOutput<'de>; 71 type Err = jacquard_common::types::xrpc::GenericError<'de>; 72 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct LeaveConvo<'a> { ··· 53 } 54 } 55 56 + ///Response type for 57 + ///chat.bsky.convo.leaveConvo 58 + pub struct LeaveConvoResponse; 59 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for LeaveConvoResponse { 60 + const ENCODING: &'static str = "application/json"; 61 type Output = LeaveConvoOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 + } 64 + 65 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for LeaveConvo<'de> { 66 + const NSID: &'static str = "chat.bsky.convo.leaveConvo"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 68 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 69 + type Response<'de1> = LeaveConvoResponse; 70 + }
+14 -14
crates/jacquard-api/src/chat_bsky/convo/list_convos.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListConvos<'a> { ··· 68 } 69 } 70 71 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListConvos<'de> { 72 - const NSID: &'static str = "chat.bsky.convo.listConvos"; 73 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 74 - const OUTPUT_ENCODING: &'static str = "application/json"; 75 type Output = ListConvosOutput<'de>; 76 type Err = jacquard_common::types::xrpc::GenericError<'de>; 77 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListConvos<'a> { ··· 60 } 61 } 62 63 + ///Response type for 64 + ///chat.bsky.convo.listConvos 65 + pub struct ListConvosResponse; 66 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListConvosResponse { 67 + const ENCODING: &'static str = "application/json"; 68 type Output = ListConvosOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 + } 71 + 72 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListConvos<'de> { 73 + const NSID: &'static str = "chat.bsky.convo.listConvos"; 74 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 75 + jacquard_common::types::xrpc::XrpcMethod::Query; 76 + type Response<'de1> = ListConvosResponse; 77 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct MuteConvo<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteConvo<'de> { 62 - const NSID: &'static str = "chat.bsky.convo.muteConvo"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 64 - "application/json", 65 - ); 66 - const OUTPUT_ENCODING: &'static str = "application/json"; 67 type Output = MuteConvoOutput<'de>; 68 type Err = jacquard_common::types::xrpc::GenericError<'de>; 69 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct MuteConvo<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///chat.bsky.convo.muteConvo 55 + pub struct MuteConvoResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for MuteConvoResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = MuteConvoOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteConvo<'de> { 63 + const NSID: &'static str = "chat.bsky.convo.muteConvo"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 66 + type Response<'de1> = MuteConvoResponse; 67 + }
+16 -20
crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RemoveReaction<'a> { ··· 75 PartialEq, 76 Eq, 77 thiserror::Error, 78 - miette::Diagnostic 79 )] 80 #[serde(tag = "error", content = "message")] 81 #[serde(bound(deserialize = "'de: 'a"))] ··· 120 RemoveReactionError::ReactionInvalidValue(v) => { 121 RemoveReactionError::ReactionInvalidValue(v.into_static()) 122 } 123 - RemoveReactionError::Unknown(v) => { 124 - RemoveReactionError::Unknown(v.into_static()) 125 - } 126 } 127 } 128 } 129 130 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveReaction<'de> { 131 - const NSID: &'static str = "chat.bsky.convo.removeReaction"; 132 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 133 - "application/json", 134 - ); 135 - const OUTPUT_ENCODING: &'static str = "application/json"; 136 type Output = RemoveReactionOutput<'de>; 137 type Err = RemoveReactionError<'de>; 138 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RemoveReaction<'a> { ··· 67 PartialEq, 68 Eq, 69 thiserror::Error, 70 + miette::Diagnostic, 71 )] 72 #[serde(tag = "error", content = "message")] 73 #[serde(bound(deserialize = "'de: 'a"))] ··· 112 RemoveReactionError::ReactionInvalidValue(v) => { 113 RemoveReactionError::ReactionInvalidValue(v.into_static()) 114 } 115 + RemoveReactionError::Unknown(v) => RemoveReactionError::Unknown(v.into_static()), 116 } 117 } 118 } 119 120 + ///Response type for 121 + ///chat.bsky.convo.removeReaction 122 + pub struct RemoveReactionResponse; 123 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RemoveReactionResponse { 124 + const ENCODING: &'static str = "application/json"; 125 type Output = RemoveReactionOutput<'de>; 126 type Err = RemoveReactionError<'de>; 127 + } 128 + 129 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveReaction<'de> { 130 + const NSID: &'static str = "chat.bsky.convo.removeReaction"; 131 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 132 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 133 + type Response<'de1> = RemoveReactionResponse; 134 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/send_message.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct SendMessage<'a> { ··· 62 } 63 } 64 65 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendMessage<'de> { 66 - const NSID: &'static str = "chat.bsky.convo.sendMessage"; 67 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 68 - "application/json", 69 - ); 70 - const OUTPUT_ENCODING: &'static str = "application/json"; 71 type Output = SendMessageOutput<'de>; 72 type Err = jacquard_common::types::xrpc::GenericError<'de>; 73 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct SendMessage<'a> { ··· 54 } 55 } 56 57 + ///Response type for 58 + ///chat.bsky.convo.sendMessage 59 + pub struct SendMessageResponse; 60 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SendMessageResponse { 61 + const ENCODING: &'static str = "application/json"; 62 type Output = SendMessageOutput<'de>; 63 type Err = jacquard_common::types::xrpc::GenericError<'de>; 64 + } 65 + 66 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendMessage<'de> { 67 + const NSID: &'static str = "chat.bsky.convo.sendMessage"; 68 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 69 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 70 + type Response<'de1> = SendMessageResponse; 71 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs
··· 27 } 28 29 #[jacquard_derive::lexicon] 30 - #[derive( 31 - serde::Serialize, 32 - serde::Deserialize, 33 - Debug, 34 - Clone, 35 - PartialEq, 36 - Eq, 37 - bon::Builder 38 - )] 39 #[serde(rename_all = "camelCase")] 40 #[builder(start_fn = new)] 41 pub struct SendMessageBatch<'a> { ··· 78 } 79 } 80 81 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendMessageBatch<'de> { 82 - const NSID: &'static str = "chat.bsky.convo.sendMessageBatch"; 83 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 84 - "application/json", 85 - ); 86 - const OUTPUT_ENCODING: &'static str = "application/json"; 87 type Output = SendMessageBatchOutput<'de>; 88 type Err = jacquard_common::types::xrpc::GenericError<'de>; 89 - }
··· 27 } 28 29 #[jacquard_derive::lexicon] 30 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 31 #[serde(rename_all = "camelCase")] 32 #[builder(start_fn = new)] 33 pub struct SendMessageBatch<'a> { ··· 70 } 71 } 72 73 + ///Response type for 74 + ///chat.bsky.convo.sendMessageBatch 75 + pub struct SendMessageBatchResponse; 76 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SendMessageBatchResponse { 77 + const ENCODING: &'static str = "application/json"; 78 type Output = SendMessageBatchOutput<'de>; 79 type Err = jacquard_common::types::xrpc::GenericError<'de>; 80 + } 81 + 82 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendMessageBatch<'de> { 83 + const NSID: &'static str = "chat.bsky.convo.sendMessageBatch"; 84 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 85 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 86 + type Response<'de1> = SendMessageBatchResponse; 87 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UnmuteConvo<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteConvo<'de> { 62 - const NSID: &'static str = "chat.bsky.convo.unmuteConvo"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 64 - "application/json", 65 - ); 66 - const OUTPUT_ENCODING: &'static str = "application/json"; 67 type Output = UnmuteConvoOutput<'de>; 68 type Err = jacquard_common::types::xrpc::GenericError<'de>; 69 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UnmuteConvo<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///chat.bsky.convo.unmuteConvo 55 + pub struct UnmuteConvoResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnmuteConvoResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = UnmuteConvoOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteConvo<'de> { 63 + const NSID: &'static str = "chat.bsky.convo.unmuteConvo"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 66 + type Response<'de1> = UnmuteConvoResponse; 67 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateAllRead<'a> { ··· 59 } 60 } 61 62 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAllRead<'de> { 63 - const NSID: &'static str = "chat.bsky.convo.updateAllRead"; 64 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 65 - "application/json", 66 - ); 67 - const OUTPUT_ENCODING: &'static str = "application/json"; 68 type Output = UpdateAllReadOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateAllRead<'a> { ··· 51 } 52 } 53 54 + ///Response type for 55 + ///chat.bsky.convo.updateAllRead 56 + pub struct UpdateAllReadResponse; 57 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAllReadResponse { 58 + const ENCODING: &'static str = "application/json"; 59 type Output = UpdateAllReadOutput<'de>; 60 type Err = jacquard_common::types::xrpc::GenericError<'de>; 61 + } 62 + 63 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAllRead<'de> { 64 + const NSID: &'static str = "chat.bsky.convo.updateAllRead"; 65 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 66 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 67 + type Response<'de1> = UpdateAllReadResponse; 68 + }
+14 -16
crates/jacquard-api/src/chat_bsky/convo/update_read.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateRead<'a> { ··· 63 } 64 } 65 66 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateRead<'de> { 67 - const NSID: &'static str = "chat.bsky.convo.updateRead"; 68 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 69 - "application/json", 70 - ); 71 - const OUTPUT_ENCODING: &'static str = "application/json"; 72 type Output = UpdateReadOutput<'de>; 73 type Err = jacquard_common::types::xrpc::GenericError<'de>; 74 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateRead<'a> { ··· 55 } 56 } 57 58 + ///Response type for 59 + ///chat.bsky.convo.updateRead 60 + pub struct UpdateReadResponse; 61 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateReadResponse { 62 + const ENCODING: &'static str = "application/json"; 63 type Output = UpdateReadOutput<'de>; 64 type Err = jacquard_common::types::xrpc::GenericError<'de>; 65 + } 66 + 67 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateRead<'de> { 68 + const NSID: &'static str = "chat.bsky.convo.updateRead"; 69 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 70 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 71 + type Response<'de1> = UpdateReadResponse; 72 + }
+14 -14
crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetActorMetadata<'a> { ··· 54 } 55 } 56 57 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorMetadata<'de> { 58 - const NSID: &'static str = "chat.bsky.moderation.getActorMetadata"; 59 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 - const OUTPUT_ENCODING: &'static str = "application/json"; 61 type Output = GetActorMetadataOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 } 64 65 #[jacquard_derive::lexicon] ··· 83 extra_data: self.extra_data.into_static(), 84 } 85 } 86 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetActorMetadata<'a> { ··· 46 } 47 } 48 49 + ///Response type for 50 + ///chat.bsky.moderation.getActorMetadata 51 + pub struct GetActorMetadataResponse; 52 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetActorMetadataResponse { 53 + const ENCODING: &'static str = "application/json"; 54 type Output = GetActorMetadataOutput<'de>; 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 + } 57 + 58 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorMetadata<'de> { 59 + const NSID: &'static str = "chat.bsky.moderation.getActorMetadata"; 60 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 61 + jacquard_common::types::xrpc::XrpcMethod::Query; 62 + type Response<'de1> = GetActorMetadataResponse; 63 } 64 65 #[jacquard_derive::lexicon] ··· 83 extra_data: self.extra_data.into_static(), 84 } 85 } 86 + }
+14 -14
crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetMessageContext<'a> { ··· 62 } 63 } 64 65 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMessageContext<'de> { 66 - const NSID: &'static str = "chat.bsky.moderation.getMessageContext"; 67 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 68 - const OUTPUT_ENCODING: &'static str = "application/json"; 69 type Output = GetMessageContextOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetMessageContext<'a> { ··· 54 } 55 } 56 57 + ///Response type for 58 + ///chat.bsky.moderation.getMessageContext 59 + pub struct GetMessageContextResponse; 60 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetMessageContextResponse { 61 + const ENCODING: &'static str = "application/json"; 62 type Output = GetMessageContextOutput<'de>; 63 type Err = jacquard_common::types::xrpc::GenericError<'de>; 64 + } 65 + 66 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMessageContext<'de> { 67 + const NSID: &'static str = "chat.bsky.moderation.getMessageContext"; 68 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 69 + jacquard_common::types::xrpc::XrpcMethod::Query; 70 + type Response<'de1> = GetMessageContextResponse; 71 + }
+14 -16
crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateActorAccess<'a> { ··· 46 } 47 } 48 49 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateActorAccess<'de> { 50 - const NSID: &'static str = "chat.bsky.moderation.updateActorAccess"; 51 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 52 - "application/json", 53 - ); 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = (); 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateActorAccess<'a> { ··· 38 } 39 } 40 41 + ///Response type for 42 + ///chat.bsky.moderation.updateActorAccess 43 + pub struct UpdateActorAccessResponse; 44 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateActorAccessResponse { 45 + const ENCODING: &'static str = "application/json"; 46 type Output = (); 47 type Err = jacquard_common::types::xrpc::GenericError<'de>; 48 + } 49 + 50 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateActorAccess<'de> { 51 + const NSID: &'static str = "chat.bsky.moderation.updateActorAccess"; 52 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 53 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 54 + type Response<'de1> = UpdateActorAccessResponse; 55 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/delete_account.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteAccount<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount<'de> { 43 - const NSID: &'static str = "com.atproto.admin.deleteAccount"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteAccount<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///com.atproto.admin.deleteAccount 36 + pub struct DeleteAccountResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteAccountResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount<'de> { 44 + const NSID: &'static str = "com.atproto.admin.deleteAccount"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = DeleteAccountResponse; 48 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DisableAccountInvites<'a> { ··· 45 } 46 } 47 48 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DisableAccountInvites<'de> { 49 - const NSID: &'static str = "com.atproto.admin.disableAccountInvites"; 50 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 51 - "application/json", 52 - ); 53 - const OUTPUT_ENCODING: &'static str = "application/json"; 54 type Output = (); 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DisableAccountInvites<'a> { ··· 37 } 38 } 39 40 + ///Response type for 41 + ///com.atproto.admin.disableAccountInvites 42 + pub struct DisableAccountInvitesResponse; 43 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DisableAccountInvitesResponse { 44 + const ENCODING: &'static str = "application/json"; 45 type Output = (); 46 type Err = jacquard_common::types::xrpc::GenericError<'de>; 47 + } 48 + 49 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DisableAccountInvites<'de> { 50 + const NSID: &'static str = "com.atproto.admin.disableAccountInvites"; 51 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 52 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 53 + type Response<'de1> = DisableAccountInvitesResponse; 54 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DisableInviteCodes<'a> { ··· 44 } 45 } 46 47 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DisableInviteCodes<'de> { 48 - const NSID: &'static str = "com.atproto.admin.disableInviteCodes"; 49 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 50 - "application/json", 51 - ); 52 - const OUTPUT_ENCODING: &'static str = "application/json"; 53 type Output = (); 54 type Err = jacquard_common::types::xrpc::GenericError<'de>; 55 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DisableInviteCodes<'a> { ··· 36 } 37 } 38 39 + ///Response type for 40 + ///com.atproto.admin.disableInviteCodes 41 + pub struct DisableInviteCodesResponse; 42 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DisableInviteCodesResponse { 43 + const ENCODING: &'static str = "application/json"; 44 type Output = (); 45 type Err = jacquard_common::types::xrpc::GenericError<'de>; 46 + } 47 + 48 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DisableInviteCodes<'de> { 49 + const NSID: &'static str = "com.atproto.admin.disableInviteCodes"; 50 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 51 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 52 + type Response<'de1> = DisableInviteCodesResponse; 53 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct EnableAccountInvites<'a> { ··· 45 } 46 } 47 48 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for EnableAccountInvites<'de> { 49 - const NSID: &'static str = "com.atproto.admin.enableAccountInvites"; 50 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 51 - "application/json", 52 - ); 53 - const OUTPUT_ENCODING: &'static str = "application/json"; 54 type Output = (); 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct EnableAccountInvites<'a> { ··· 37 } 38 } 39 40 + ///Response type for 41 + ///com.atproto.admin.enableAccountInvites 42 + pub struct EnableAccountInvitesResponse; 43 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for EnableAccountInvitesResponse { 44 + const ENCODING: &'static str = "application/json"; 45 type Output = (); 46 type Err = jacquard_common::types::xrpc::GenericError<'de>; 47 + } 48 + 49 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for EnableAccountInvites<'de> { 50 + const NSID: &'static str = "com.atproto.admin.enableAccountInvites"; 51 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 52 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 53 + type Response<'de1> = EnableAccountInvitesResponse; 54 + }
+14 -14
crates/jacquard-api/src/com_atproto/admin/get_account_info.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetAccountInfo<'a> { ··· 49 } 50 } 51 52 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInfo<'de> { 53 - const NSID: &'static str = "com.atproto.admin.getAccountInfo"; 54 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 55 - const OUTPUT_ENCODING: &'static str = "application/json"; 56 type Output = GetAccountInfoOutput<'de>; 57 type Err = jacquard_common::types::xrpc::GenericError<'de>; 58 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetAccountInfo<'a> { ··· 41 } 42 } 43 44 + ///Response type for 45 + ///com.atproto.admin.getAccountInfo 46 + pub struct GetAccountInfoResponse; 47 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountInfoResponse { 48 + const ENCODING: &'static str = "application/json"; 49 type Output = GetAccountInfoOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 + } 52 + 53 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInfo<'de> { 54 + const NSID: &'static str = "com.atproto.admin.getAccountInfo"; 55 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 56 + jacquard_common::types::xrpc::XrpcMethod::Query; 57 + type Response<'de1> = GetAccountInfoResponse; 58 + }
+14 -14
crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetAccountInfos<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInfos<'de> { 52 - const NSID: &'static str = "com.atproto.admin.getAccountInfos"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetAccountInfosOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetAccountInfos<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///com.atproto.admin.getAccountInfos 45 + pub struct GetAccountInfosResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountInfosResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetAccountInfosOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInfos<'de> { 53 + const NSID: &'static str = "com.atproto.admin.getAccountInfos"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetAccountInfosResponse; 57 + }
+14 -14
crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetInviteCodes<'a> { ··· 64 } 65 } 66 67 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetInviteCodes<'de> { 68 - const NSID: &'static str = "com.atproto.admin.getInviteCodes"; 69 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 70 - const OUTPUT_ENCODING: &'static str = "application/json"; 71 type Output = GetInviteCodesOutput<'de>; 72 type Err = jacquard_common::types::xrpc::GenericError<'de>; 73 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetInviteCodes<'a> { ··· 56 } 57 } 58 59 + ///Response type for 60 + ///com.atproto.admin.getInviteCodes 61 + pub struct GetInviteCodesResponse; 62 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetInviteCodesResponse { 63 + const ENCODING: &'static str = "application/json"; 64 type Output = GetInviteCodesOutput<'de>; 65 type Err = jacquard_common::types::xrpc::GenericError<'de>; 66 + } 67 + 68 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetInviteCodes<'de> { 69 + const NSID: &'static str = "com.atproto.admin.getInviteCodes"; 70 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 71 + jacquard_common::types::xrpc::XrpcMethod::Query; 72 + type Response<'de1> = GetInviteCodesResponse; 73 + }
+14 -14
crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSubjectStatus<'a> { ··· 98 } 99 } 100 101 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSubjectStatus<'de> { 102 - const NSID: &'static str = "com.atproto.admin.getSubjectStatus"; 103 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 104 - const OUTPUT_ENCODING: &'static str = "application/json"; 105 type Output = GetSubjectStatusOutput<'de>; 106 type Err = jacquard_common::types::xrpc::GenericError<'de>; 107 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSubjectStatus<'a> { ··· 90 } 91 } 92 93 + ///Response type for 94 + ///com.atproto.admin.getSubjectStatus 95 + pub struct GetSubjectStatusResponse; 96 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSubjectStatusResponse { 97 + const ENCODING: &'static str = "application/json"; 98 type Output = GetSubjectStatusOutput<'de>; 99 type Err = jacquard_common::types::xrpc::GenericError<'de>; 100 + } 101 + 102 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSubjectStatus<'de> { 103 + const NSID: &'static str = "com.atproto.admin.getSubjectStatus"; 104 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 105 + jacquard_common::types::xrpc::XrpcMethod::Query; 106 + type Response<'de1> = GetSubjectStatusResponse; 107 + }
+14 -14
crates/jacquard-api/src/com_atproto/admin/search_accounts.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchAccounts<'a> { ··· 63 } 64 } 65 66 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchAccounts<'de> { 67 - const NSID: &'static str = "com.atproto.admin.searchAccounts"; 68 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 69 - const OUTPUT_ENCODING: &'static str = "application/json"; 70 type Output = SearchAccountsOutput<'de>; 71 type Err = jacquard_common::types::xrpc::GenericError<'de>; 72 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchAccounts<'a> { ··· 55 } 56 } 57 58 + ///Response type for 59 + ///com.atproto.admin.searchAccounts 60 + pub struct SearchAccountsResponse; 61 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchAccountsResponse { 62 + const ENCODING: &'static str = "application/json"; 63 type Output = SearchAccountsOutput<'de>; 64 type Err = jacquard_common::types::xrpc::GenericError<'de>; 65 + } 66 + 67 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchAccounts<'de> { 68 + const NSID: &'static str = "com.atproto.admin.searchAccounts"; 69 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 70 + jacquard_common::types::xrpc::XrpcMethod::Query; 71 + type Response<'de1> = SearchAccountsResponse; 72 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/send_email.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct SendEmail<'a> { ··· 74 } 75 } 76 77 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendEmail<'de> { 78 - const NSID: &'static str = "com.atproto.admin.sendEmail"; 79 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 80 - "application/json", 81 - ); 82 - const OUTPUT_ENCODING: &'static str = "application/json"; 83 type Output = SendEmailOutput<'de>; 84 type Err = jacquard_common::types::xrpc::GenericError<'de>; 85 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct SendEmail<'a> { ··· 66 } 67 } 68 69 + ///Response type for 70 + ///com.atproto.admin.sendEmail 71 + pub struct SendEmailResponse; 72 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SendEmailResponse { 73 + const ENCODING: &'static str = "application/json"; 74 type Output = SendEmailOutput<'de>; 75 type Err = jacquard_common::types::xrpc::GenericError<'de>; 76 + } 77 + 78 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendEmail<'de> { 79 + const NSID: &'static str = "com.atproto.admin.sendEmail"; 80 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 81 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 82 + type Response<'de1> = SendEmailResponse; 83 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/update_account_email.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateAccountEmail<'a> { ··· 44 } 45 } 46 47 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountEmail<'de> { 48 - const NSID: &'static str = "com.atproto.admin.updateAccountEmail"; 49 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 50 - "application/json", 51 - ); 52 - const OUTPUT_ENCODING: &'static str = "application/json"; 53 type Output = (); 54 type Err = jacquard_common::types::xrpc::GenericError<'de>; 55 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateAccountEmail<'a> { ··· 36 } 37 } 38 39 + ///Response type for 40 + ///com.atproto.admin.updateAccountEmail 41 + pub struct UpdateAccountEmailResponse; 42 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAccountEmailResponse { 43 + const ENCODING: &'static str = "application/json"; 44 type Output = (); 45 type Err = jacquard_common::types::xrpc::GenericError<'de>; 46 + } 47 + 48 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountEmail<'de> { 49 + const NSID: &'static str = "com.atproto.admin.updateAccountEmail"; 50 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 51 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 52 + type Response<'de1> = UpdateAccountEmailResponse; 53 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateAccountHandle<'a> { ··· 42 } 43 } 44 45 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountHandle<'de> { 46 - const NSID: &'static str = "com.atproto.admin.updateAccountHandle"; 47 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 48 - "application/json", 49 - ); 50 - const OUTPUT_ENCODING: &'static str = "application/json"; 51 type Output = (); 52 type Err = jacquard_common::types::xrpc::GenericError<'de>; 53 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateAccountHandle<'a> { ··· 34 } 35 } 36 37 + ///Response type for 38 + ///com.atproto.admin.updateAccountHandle 39 + pub struct UpdateAccountHandleResponse; 40 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAccountHandleResponse { 41 + const ENCODING: &'static str = "application/json"; 42 type Output = (); 43 type Err = jacquard_common::types::xrpc::GenericError<'de>; 44 + } 45 + 46 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountHandle<'de> { 47 + const NSID: &'static str = "com.atproto.admin.updateAccountHandle"; 48 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 49 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 50 + type Response<'de1> = UpdateAccountHandleResponse; 51 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/update_account_password.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateAccountPassword<'a> { ··· 43 } 44 } 45 46 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountPassword<'de> { 47 - const NSID: &'static str = "com.atproto.admin.updateAccountPassword"; 48 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 49 - "application/json", 50 - ); 51 - const OUTPUT_ENCODING: &'static str = "application/json"; 52 type Output = (); 53 type Err = jacquard_common::types::xrpc::GenericError<'de>; 54 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateAccountPassword<'a> { ··· 35 } 36 } 37 38 + ///Response type for 39 + ///com.atproto.admin.updateAccountPassword 40 + pub struct UpdateAccountPasswordResponse; 41 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAccountPasswordResponse { 42 + const ENCODING: &'static str = "application/json"; 43 type Output = (); 44 type Err = jacquard_common::types::xrpc::GenericError<'de>; 45 + } 46 + 47 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountPassword<'de> { 48 + const NSID: &'static str = "com.atproto.admin.updateAccountPassword"; 49 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 50 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 51 + type Response<'de1> = UpdateAccountPasswordResponse; 52 + }
+14 -17
crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateAccountSigningKey<'a> { ··· 43 } 44 } 45 46 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 47 - for UpdateAccountSigningKey<'de> { 48 - const NSID: &'static str = "com.atproto.admin.updateAccountSigningKey"; 49 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 50 - "application/json", 51 - ); 52 - const OUTPUT_ENCODING: &'static str = "application/json"; 53 type Output = (); 54 type Err = jacquard_common::types::xrpc::GenericError<'de>; 55 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateAccountSigningKey<'a> { ··· 35 } 36 } 37 38 + ///Response type for 39 + ///com.atproto.admin.updateAccountSigningKey 40 + pub struct UpdateAccountSigningKeyResponse; 41 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAccountSigningKeyResponse { 42 + const ENCODING: &'static str = "application/json"; 43 type Output = (); 44 type Err = jacquard_common::types::xrpc::GenericError<'de>; 45 + } 46 + 47 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountSigningKey<'de> { 48 + const NSID: &'static str = "com.atproto.admin.updateAccountSigningKey"; 49 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 50 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 51 + type Response<'de1> = UpdateAccountSigningKeyResponse; 52 + }
+14 -16
crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateSubjectStatus<'a> { ··· 135 } 136 } 137 138 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateSubjectStatus<'de> { 139 - const NSID: &'static str = "com.atproto.admin.updateSubjectStatus"; 140 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 141 - "application/json", 142 - ); 143 - const OUTPUT_ENCODING: &'static str = "application/json"; 144 type Output = UpdateSubjectStatusOutput<'de>; 145 type Err = jacquard_common::types::xrpc::GenericError<'de>; 146 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateSubjectStatus<'a> { ··· 127 } 128 } 129 130 + ///Response type for 131 + ///com.atproto.admin.updateSubjectStatus 132 + pub struct UpdateSubjectStatusResponse; 133 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateSubjectStatusResponse { 134 + const ENCODING: &'static str = "application/json"; 135 type Output = UpdateSubjectStatusOutput<'de>; 136 type Err = jacquard_common::types::xrpc::GenericError<'de>; 137 + } 138 + 139 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateSubjectStatus<'de> { 140 + const NSID: &'static str = "com.atproto.admin.updateSubjectStatus"; 141 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 142 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 143 + type Response<'de1> = UpdateSubjectStatusResponse; 144 + }
+16 -20
crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RefreshIdentity<'a> { ··· 67 PartialEq, 68 Eq, 69 thiserror::Error, 70 - miette::Diagnostic 71 )] 72 #[serde(tag = "error", content = "message")] 73 #[serde(bound(deserialize = "'de: 'a"))] ··· 125 RefreshIdentityError::DidDeactivated(v) => { 126 RefreshIdentityError::DidDeactivated(v.into_static()) 127 } 128 - RefreshIdentityError::Unknown(v) => { 129 - RefreshIdentityError::Unknown(v.into_static()) 130 - } 131 } 132 } 133 } 134 135 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RefreshIdentity<'de> { 136 - const NSID: &'static str = "com.atproto.identity.refreshIdentity"; 137 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 138 - "application/json", 139 - ); 140 - const OUTPUT_ENCODING: &'static str = "application/json"; 141 type Output = RefreshIdentityOutput<'de>; 142 type Err = RefreshIdentityError<'de>; 143 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RefreshIdentity<'a> { ··· 59 PartialEq, 60 Eq, 61 thiserror::Error, 62 + miette::Diagnostic, 63 )] 64 #[serde(tag = "error", content = "message")] 65 #[serde(bound(deserialize = "'de: 'a"))] ··· 117 RefreshIdentityError::DidDeactivated(v) => { 118 RefreshIdentityError::DidDeactivated(v.into_static()) 119 } 120 + RefreshIdentityError::Unknown(v) => RefreshIdentityError::Unknown(v.into_static()), 121 } 122 } 123 } 124 125 + ///Response type for 126 + ///com.atproto.identity.refreshIdentity 127 + pub struct RefreshIdentityResponse; 128 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RefreshIdentityResponse { 129 + const ENCODING: &'static str = "application/json"; 130 type Output = RefreshIdentityOutput<'de>; 131 type Err = RefreshIdentityError<'de>; 132 + } 133 + 134 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RefreshIdentity<'de> { 135 + const NSID: &'static str = "com.atproto.identity.refreshIdentity"; 136 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 137 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 138 + type Response<'de1> = RefreshIdentityResponse; 139 + }
+13 -8
crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct RequestPlcOperationSignature; 11 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 12 - for RequestPlcOperationSignature { 13 - const NSID: &'static str = "com.atproto.identity.requestPlcOperationSignature"; 14 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 15 - "application/json", 16 - ); 17 - const OUTPUT_ENCODING: &'static str = "application/json"; 18 type Output = (); 19 type Err = jacquard_common::types::xrpc::GenericError<'de>; 20 - }
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct RequestPlcOperationSignature; 11 + ///Response type for 12 + ///com.atproto.identity.requestPlcOperationSignature 13 + pub struct RequestPlcOperationSignatureResponse; 14 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestPlcOperationSignatureResponse { 15 + const ENCODING: &'static str = "application/json"; 16 type Output = (); 17 type Err = jacquard_common::types::xrpc::GenericError<'de>; 18 + } 19 + 20 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestPlcOperationSignature { 21 + const NSID: &'static str = "com.atproto.identity.requestPlcOperationSignature"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 23 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 24 + type Response<'de1> = RequestPlcOperationSignatureResponse; 25 + }
+17 -21
crates/jacquard-api/src/com_atproto/identity/resolve_did.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ResolveDid<'a> { ··· 58 PartialEq, 59 Eq, 60 thiserror::Error, 61 - miette::Diagnostic 62 )] 63 #[serde(tag = "error", content = "message")] 64 #[serde(bound(deserialize = "'de: 'a"))] ··· 97 type Output = ResolveDidError<'static>; 98 fn into_static(self) -> Self::Output { 99 match self { 100 - ResolveDidError::DidNotFound(v) => { 101 - ResolveDidError::DidNotFound(v.into_static()) 102 - } 103 - ResolveDidError::DidDeactivated(v) => { 104 - ResolveDidError::DidDeactivated(v.into_static()) 105 - } 106 ResolveDidError::Unknown(v) => ResolveDidError::Unknown(v.into_static()), 107 } 108 } 109 } 110 111 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveDid<'de> { 112 const NSID: &'static str = "com.atproto.identity.resolveDid"; 113 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 114 - const OUTPUT_ENCODING: &'static str = "application/json"; 115 - type Output = ResolveDidOutput<'de>; 116 - type Err = ResolveDidError<'de>; 117 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ResolveDid<'a> { ··· 50 PartialEq, 51 Eq, 52 thiserror::Error, 53 + miette::Diagnostic, 54 )] 55 #[serde(tag = "error", content = "message")] 56 #[serde(bound(deserialize = "'de: 'a"))] ··· 89 type Output = ResolveDidError<'static>; 90 fn into_static(self) -> Self::Output { 91 match self { 92 + ResolveDidError::DidNotFound(v) => ResolveDidError::DidNotFound(v.into_static()), 93 + ResolveDidError::DidDeactivated(v) => ResolveDidError::DidDeactivated(v.into_static()), 94 ResolveDidError::Unknown(v) => ResolveDidError::Unknown(v.into_static()), 95 } 96 } 97 + } 98 + 99 + ///Response type for 100 + ///com.atproto.identity.resolveDid 101 + pub struct ResolveDidResponse; 102 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ResolveDidResponse { 103 + const ENCODING: &'static str = "application/json"; 104 + type Output = ResolveDidOutput<'de>; 105 + type Err = ResolveDidError<'de>; 106 } 107 108 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveDid<'de> { 109 const NSID: &'static str = "com.atproto.identity.resolveDid"; 110 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 111 + jacquard_common::types::xrpc::XrpcMethod::Query; 112 + type Response<'de1> = ResolveDidResponse; 113 + }
+16 -18
crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ResolveHandle<'a> { ··· 57 PartialEq, 58 Eq, 59 thiserror::Error, 60 - miette::Diagnostic 61 )] 62 #[serde(tag = "error", content = "message")] 63 #[serde(bound(deserialize = "'de: 'a"))] ··· 89 ResolveHandleError::HandleNotFound(v) => { 90 ResolveHandleError::HandleNotFound(v.into_static()) 91 } 92 - ResolveHandleError::Unknown(v) => { 93 - ResolveHandleError::Unknown(v.into_static()) 94 - } 95 } 96 } 97 } 98 99 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveHandle<'de> { 100 - const NSID: &'static str = "com.atproto.identity.resolveHandle"; 101 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 102 - const OUTPUT_ENCODING: &'static str = "application/json"; 103 type Output = ResolveHandleOutput<'de>; 104 type Err = ResolveHandleError<'de>; 105 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ResolveHandle<'a> { ··· 49 PartialEq, 50 Eq, 51 thiserror::Error, 52 + miette::Diagnostic, 53 )] 54 #[serde(tag = "error", content = "message")] 55 #[serde(bound(deserialize = "'de: 'a"))] ··· 81 ResolveHandleError::HandleNotFound(v) => { 82 ResolveHandleError::HandleNotFound(v.into_static()) 83 } 84 + ResolveHandleError::Unknown(v) => ResolveHandleError::Unknown(v.into_static()), 85 } 86 } 87 } 88 89 + ///Response type for 90 + ///com.atproto.identity.resolveHandle 91 + pub struct ResolveHandleResponse; 92 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ResolveHandleResponse { 93 + const ENCODING: &'static str = "application/json"; 94 type Output = ResolveHandleOutput<'de>; 95 type Err = ResolveHandleError<'de>; 96 + } 97 + 98 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveHandle<'de> { 99 + const NSID: &'static str = "com.atproto.identity.resolveHandle"; 100 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 101 + jacquard_common::types::xrpc::XrpcMethod::Query; 102 + type Response<'de1> = ResolveHandleResponse; 103 + }
+16 -18
crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ResolveIdentity<'a> { ··· 58 PartialEq, 59 Eq, 60 thiserror::Error, 61 - miette::Diagnostic 62 )] 63 #[serde(tag = "error", content = "message")] 64 #[serde(bound(deserialize = "'de: 'a"))] ··· 116 ResolveIdentityError::DidDeactivated(v) => { 117 ResolveIdentityError::DidDeactivated(v.into_static()) 118 } 119 - ResolveIdentityError::Unknown(v) => { 120 - ResolveIdentityError::Unknown(v.into_static()) 121 - } 122 } 123 } 124 } 125 126 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveIdentity<'de> { 127 - const NSID: &'static str = "com.atproto.identity.resolveIdentity"; 128 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 129 - const OUTPUT_ENCODING: &'static str = "application/json"; 130 type Output = ResolveIdentityOutput<'de>; 131 type Err = ResolveIdentityError<'de>; 132 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ResolveIdentity<'a> { ··· 50 PartialEq, 51 Eq, 52 thiserror::Error, 53 + miette::Diagnostic, 54 )] 55 #[serde(tag = "error", content = "message")] 56 #[serde(bound(deserialize = "'de: 'a"))] ··· 108 ResolveIdentityError::DidDeactivated(v) => { 109 ResolveIdentityError::DidDeactivated(v.into_static()) 110 } 111 + ResolveIdentityError::Unknown(v) => ResolveIdentityError::Unknown(v.into_static()), 112 } 113 } 114 } 115 116 + ///Response type for 117 + ///com.atproto.identity.resolveIdentity 118 + pub struct ResolveIdentityResponse; 119 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ResolveIdentityResponse { 120 + const ENCODING: &'static str = "application/json"; 121 type Output = ResolveIdentityOutput<'de>; 122 type Err = ResolveIdentityError<'de>; 123 + } 124 + 125 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveIdentity<'de> { 126 + const NSID: &'static str = "com.atproto.identity.resolveIdentity"; 127 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 128 + jacquard_common::types::xrpc::XrpcMethod::Query; 129 + type Response<'de1> = ResolveIdentityResponse; 130 + }
+15 -19
crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct SignPlcOperation<'a> { ··· 34 pub token: std::option::Option<jacquard_common::CowStr<'a>>, 35 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 #[serde(borrow)] 37 - pub verification_methods: std::option::Option< 38 - jacquard_common::types::value::Data<'a>, 39 - >, 40 #[serde(flatten)] 41 #[serde(borrow)] 42 #[builder(default)] ··· 79 } 80 } 81 82 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SignPlcOperation<'de> { 83 - const NSID: &'static str = "com.atproto.identity.signPlcOperation"; 84 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 85 - "application/json", 86 - ); 87 - const OUTPUT_ENCODING: &'static str = "application/json"; 88 type Output = SignPlcOperationOutput<'de>; 89 type Err = jacquard_common::types::xrpc::GenericError<'de>; 90 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct SignPlcOperation<'a> { ··· 26 pub token: std::option::Option<jacquard_common::CowStr<'a>>, 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 + pub verification_methods: std::option::Option<jacquard_common::types::value::Data<'a>>, 30 #[serde(flatten)] 31 #[serde(borrow)] 32 #[builder(default)] ··· 69 } 70 } 71 72 + ///Response type for 73 + ///com.atproto.identity.signPlcOperation 74 + pub struct SignPlcOperationResponse; 75 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SignPlcOperationResponse { 76 + const ENCODING: &'static str = "application/json"; 77 type Output = SignPlcOperationOutput<'de>; 78 type Err = jacquard_common::types::xrpc::GenericError<'de>; 79 + } 80 + 81 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SignPlcOperation<'de> { 82 + const NSID: &'static str = "com.atproto.identity.signPlcOperation"; 83 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 84 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 85 + type Response<'de1> = SignPlcOperationResponse; 86 + }
+14 -16
crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct SubmitPlcOperation<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SubmitPlcOperation<'de> { 43 - const NSID: &'static str = "com.atproto.identity.submitPlcOperation"; 44 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 45 - "application/json", 46 - ); 47 - const OUTPUT_ENCODING: &'static str = "application/json"; 48 type Output = (); 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct SubmitPlcOperation<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///com.atproto.identity.submitPlcOperation 36 + pub struct SubmitPlcOperationResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SubmitPlcOperationResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SubmitPlcOperation<'de> { 44 + const NSID: &'static str = "com.atproto.identity.submitPlcOperation"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = SubmitPlcOperationResponse; 48 + }
+14 -16
crates/jacquard-api/src/com_atproto/identity/update_handle.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateHandle<'a> { ··· 40 } 41 } 42 43 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateHandle<'de> { 44 - const NSID: &'static str = "com.atproto.identity.updateHandle"; 45 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 46 - "application/json", 47 - ); 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = (); 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateHandle<'a> { ··· 32 } 33 } 34 35 + ///Response type for 36 + ///com.atproto.identity.updateHandle 37 + pub struct UpdateHandleResponse; 38 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateHandleResponse { 39 + const ENCODING: &'static str = "application/json"; 40 type Output = (); 41 type Err = jacquard_common::types::xrpc::GenericError<'de>; 42 + } 43 + 44 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateHandle<'de> { 45 + const NSID: &'static str = "com.atproto.identity.updateHandle"; 46 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 47 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 48 + type Response<'de1> = UpdateHandleResponse; 49 + }
+14 -14
crates/jacquard-api/src/com_atproto/label/query_labels.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct QueryLabels<'a> { ··· 65 } 66 } 67 68 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryLabels<'de> { 69 - const NSID: &'static str = "com.atproto.label.queryLabels"; 70 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 71 - const OUTPUT_ENCODING: &'static str = "application/json"; 72 type Output = QueryLabelsOutput<'de>; 73 type Err = jacquard_common::types::xrpc::GenericError<'de>; 74 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct QueryLabels<'a> { ··· 57 } 58 } 59 60 + ///Response type for 61 + ///com.atproto.label.queryLabels 62 + pub struct QueryLabelsResponse; 63 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryLabelsResponse { 64 + const ENCODING: &'static str = "application/json"; 65 type Output = QueryLabelsOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 + } 68 + 69 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryLabels<'de> { 70 + const NSID: &'static str = "com.atproto.label.queryLabels"; 71 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 72 + jacquard_common::types::xrpc::XrpcMethod::Query; 73 + type Response<'de1> = QueryLabelsResponse; 74 + }
+14 -16
crates/jacquard-api/src/com_atproto/moderation/create_report.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct CreateReport<'a> { ··· 141 } 142 } 143 144 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateReport<'de> { 145 - const NSID: &'static str = "com.atproto.moderation.createReport"; 146 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 147 - "application/json", 148 - ); 149 - const OUTPUT_ENCODING: &'static str = "application/json"; 150 type Output = CreateReportOutput<'de>; 151 type Err = jacquard_common::types::xrpc::GenericError<'de>; 152 } 153 154 ///Moderation tool information for tracing the source of the action ··· 174 extra_data: self.extra_data.into_static(), 175 } 176 } 177 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct CreateReport<'a> { ··· 133 } 134 } 135 136 + ///Response type for 137 + ///com.atproto.moderation.createReport 138 + pub struct CreateReportResponse; 139 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateReportResponse { 140 + const ENCODING: &'static str = "application/json"; 141 type Output = CreateReportOutput<'de>; 142 type Err = jacquard_common::types::xrpc::GenericError<'de>; 143 + } 144 + 145 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateReport<'de> { 146 + const NSID: &'static str = "com.atproto.moderation.createReport"; 147 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 148 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 149 + type Response<'de1> = CreateReportResponse; 150 } 151 152 ///Moderation tool information for tracing the source of the action ··· 172 extra_data: self.extra_data.into_static(), 173 } 174 } 175 + }
+19 -29
crates/jacquard-api/src/com_atproto/repo/apply_writes.rs
··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub rkey: std::option::Option< 19 - jacquard_common::types::string::RecordKey< 20 - jacquard_common::types::string::Rkey<'a>, 21 - >, 22 >, 23 #[serde(borrow)] 24 pub value: jacquard_common::types::value::Data<'a>, ··· 69 #[serde(borrow)] 70 pub collection: jacquard_common::types::string::Nsid<'a>, 71 #[serde(borrow)] 72 - pub rkey: jacquard_common::types::string::RecordKey< 73 - jacquard_common::types::string::Rkey<'a>, 74 - >, 75 } 76 77 impl jacquard_common::IntoStatic for Delete<'_> { ··· 99 } 100 101 #[jacquard_derive::lexicon] 102 - #[derive( 103 - serde::Serialize, 104 - serde::Deserialize, 105 - Debug, 106 - Clone, 107 - PartialEq, 108 - Eq, 109 - bon::Builder 110 - )] 111 #[serde(rename_all = "camelCase")] 112 #[builder(start_fn = new)] 113 pub struct ApplyWrites<'a> { ··· 177 PartialEq, 178 Eq, 179 thiserror::Error, 180 - miette::Diagnostic 181 )] 182 #[serde(tag = "error", content = "message")] 183 #[serde(bound(deserialize = "'de: 'a"))] ··· 206 type Output = ApplyWritesError<'static>; 207 fn into_static(self) -> Self::Output { 208 match self { 209 - ApplyWritesError::InvalidSwap(v) => { 210 - ApplyWritesError::InvalidSwap(v.into_static()) 211 - } 212 ApplyWritesError::Unknown(v) => ApplyWritesError::Unknown(v.into_static()), 213 } 214 } 215 } 216 217 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ApplyWrites<'de> { 218 - const NSID: &'static str = "com.atproto.repo.applyWrites"; 219 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 220 - "application/json", 221 - ); 222 - const OUTPUT_ENCODING: &'static str = "application/json"; 223 type Output = ApplyWritesOutput<'de>; 224 type Err = ApplyWritesError<'de>; 225 } 226 227 ///Operation which updates an existing record. 228 #[jacquard_derive::lexicon] 229 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 232 #[serde(borrow)] 233 pub collection: jacquard_common::types::string::Nsid<'a>, 234 #[serde(borrow)] 235 - pub rkey: jacquard_common::types::string::RecordKey< 236 - jacquard_common::types::string::Rkey<'a>, 237 - >, 238 #[serde(borrow)] 239 pub value: jacquard_common::types::value::Data<'a>, 240 } ··· 274 extra_data: self.extra_data.into_static(), 275 } 276 } 277 - }
··· 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub rkey: std::option::Option< 19 + jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>, 20 >, 21 #[serde(borrow)] 22 pub value: jacquard_common::types::value::Data<'a>, ··· 67 #[serde(borrow)] 68 pub collection: jacquard_common::types::string::Nsid<'a>, 69 #[serde(borrow)] 70 + pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>, 71 } 72 73 impl jacquard_common::IntoStatic for Delete<'_> { ··· 95 } 96 97 #[jacquard_derive::lexicon] 98 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 99 #[serde(rename_all = "camelCase")] 100 #[builder(start_fn = new)] 101 pub struct ApplyWrites<'a> { ··· 165 PartialEq, 166 Eq, 167 thiserror::Error, 168 + miette::Diagnostic, 169 )] 170 #[serde(tag = "error", content = "message")] 171 #[serde(bound(deserialize = "'de: 'a"))] ··· 194 type Output = ApplyWritesError<'static>; 195 fn into_static(self) -> Self::Output { 196 match self { 197 + ApplyWritesError::InvalidSwap(v) => ApplyWritesError::InvalidSwap(v.into_static()), 198 ApplyWritesError::Unknown(v) => ApplyWritesError::Unknown(v.into_static()), 199 } 200 } 201 } 202 203 + ///Response type for 204 + ///com.atproto.repo.applyWrites 205 + pub struct ApplyWritesResponse; 206 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ApplyWritesResponse { 207 + const ENCODING: &'static str = "application/json"; 208 type Output = ApplyWritesOutput<'de>; 209 type Err = ApplyWritesError<'de>; 210 } 211 212 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ApplyWrites<'de> { 213 + const NSID: &'static str = "com.atproto.repo.applyWrites"; 214 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 215 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 216 + type Response<'de1> = ApplyWritesResponse; 217 + } 218 + 219 ///Operation which updates an existing record. 220 #[jacquard_derive::lexicon] 221 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 224 #[serde(borrow)] 225 pub collection: jacquard_common::types::string::Nsid<'a>, 226 #[serde(borrow)] 227 + pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>, 228 #[serde(borrow)] 229 pub value: jacquard_common::types::value::Data<'a>, 230 } ··· 264 extra_data: self.extra_data.into_static(), 265 } 266 } 267 + }
+17 -23
crates/jacquard-api/src/com_atproto/repo/create_record.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct CreateRecord<'a> { ··· 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 32 #[serde(borrow)] 33 pub rkey: std::option::Option< 34 - jacquard_common::types::string::RecordKey< 35 - jacquard_common::types::string::Rkey<'a>, 36 - >, 37 >, 38 ///Compare and swap with the previous commit by CID. 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 104 PartialEq, 105 Eq, 106 thiserror::Error, 107 - miette::Diagnostic 108 )] 109 #[serde(tag = "error", content = "message")] 110 #[serde(bound(deserialize = "'de: 'a"))] ··· 133 type Output = CreateRecordError<'static>; 134 fn into_static(self) -> Self::Output { 135 match self { 136 - CreateRecordError::InvalidSwap(v) => { 137 - CreateRecordError::InvalidSwap(v.into_static()) 138 - } 139 CreateRecordError::Unknown(v) => CreateRecordError::Unknown(v.into_static()), 140 } 141 } 142 } 143 144 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateRecord<'de> { 145 - const NSID: &'static str = "com.atproto.repo.createRecord"; 146 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 147 - "application/json", 148 - ); 149 - const OUTPUT_ENCODING: &'static str = "application/json"; 150 type Output = CreateRecordOutput<'de>; 151 type Err = CreateRecordError<'de>; 152 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct CreateRecord<'a> { ··· 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 #[serde(borrow)] 25 pub rkey: std::option::Option< 26 + jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>, 27 >, 28 ///Compare and swap with the previous commit by CID. 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 94 PartialEq, 95 Eq, 96 thiserror::Error, 97 + miette::Diagnostic, 98 )] 99 #[serde(tag = "error", content = "message")] 100 #[serde(bound(deserialize = "'de: 'a"))] ··· 123 type Output = CreateRecordError<'static>; 124 fn into_static(self) -> Self::Output { 125 match self { 126 + CreateRecordError::InvalidSwap(v) => CreateRecordError::InvalidSwap(v.into_static()), 127 CreateRecordError::Unknown(v) => CreateRecordError::Unknown(v.into_static()), 128 } 129 } 130 } 131 132 + ///Response type for 133 + ///com.atproto.repo.createRecord 134 + pub struct CreateRecordResponse; 135 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateRecordResponse { 136 + const ENCODING: &'static str = "application/json"; 137 type Output = CreateRecordOutput<'de>; 138 type Err = CreateRecordError<'de>; 139 + } 140 + 141 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateRecord<'de> { 142 + const NSID: &'static str = "com.atproto.repo.createRecord"; 143 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 144 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 145 + type Response<'de1> = CreateRecordResponse; 146 + }
+17 -23
crates/jacquard-api/src/com_atproto/repo/delete_record.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteRecord<'a> { ··· 26 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 27 ///The Record Key. 28 #[serde(borrow)] 29 - pub rkey: jacquard_common::types::string::RecordKey< 30 - jacquard_common::types::string::Rkey<'a>, 31 - >, 32 ///Compare and swap with the previous commit by CID. 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 #[serde(borrow)] ··· 88 PartialEq, 89 Eq, 90 thiserror::Error, 91 - miette::Diagnostic 92 )] 93 #[serde(tag = "error", content = "message")] 94 #[serde(bound(deserialize = "'de: 'a"))] ··· 116 type Output = DeleteRecordError<'static>; 117 fn into_static(self) -> Self::Output { 118 match self { 119 - DeleteRecordError::InvalidSwap(v) => { 120 - DeleteRecordError::InvalidSwap(v.into_static()) 121 - } 122 DeleteRecordError::Unknown(v) => DeleteRecordError::Unknown(v.into_static()), 123 } 124 } 125 } 126 127 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteRecord<'de> { 128 - const NSID: &'static str = "com.atproto.repo.deleteRecord"; 129 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 130 - "application/json", 131 - ); 132 - const OUTPUT_ENCODING: &'static str = "application/json"; 133 type Output = DeleteRecordOutput<'de>; 134 type Err = DeleteRecordError<'de>; 135 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteRecord<'a> { ··· 18 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 19 ///The Record Key. 20 #[serde(borrow)] 21 + pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>, 22 ///Compare and swap with the previous commit by CID. 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 #[serde(borrow)] ··· 78 PartialEq, 79 Eq, 80 thiserror::Error, 81 + miette::Diagnostic, 82 )] 83 #[serde(tag = "error", content = "message")] 84 #[serde(bound(deserialize = "'de: 'a"))] ··· 106 type Output = DeleteRecordError<'static>; 107 fn into_static(self) -> Self::Output { 108 match self { 109 + DeleteRecordError::InvalidSwap(v) => DeleteRecordError::InvalidSwap(v.into_static()), 110 DeleteRecordError::Unknown(v) => DeleteRecordError::Unknown(v.into_static()), 111 } 112 } 113 } 114 115 + ///Response type for 116 + ///com.atproto.repo.deleteRecord 117 + pub struct DeleteRecordResponse; 118 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteRecordResponse { 119 + const ENCODING: &'static str = "application/json"; 120 type Output = DeleteRecordOutput<'de>; 121 type Err = DeleteRecordError<'de>; 122 + } 123 + 124 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteRecord<'de> { 125 + const NSID: &'static str = "com.atproto.repo.deleteRecord"; 126 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 127 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 128 + type Response<'de1> = DeleteRecordResponse; 129 + }
+14 -14
crates/jacquard-api/src/com_atproto/repo/describe_repo.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct DescribeRepo<'a> { ··· 62 } 63 } 64 65 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeRepo<'de> { 66 - const NSID: &'static str = "com.atproto.repo.describeRepo"; 67 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 68 - const OUTPUT_ENCODING: &'static str = "application/json"; 69 type Output = DescribeRepoOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct DescribeRepo<'a> { ··· 54 } 55 } 56 57 + ///Response type for 58 + ///com.atproto.repo.describeRepo 59 + pub struct DescribeRepoResponse; 60 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DescribeRepoResponse { 61 + const ENCODING: &'static str = "application/json"; 62 type Output = DescribeRepoOutput<'de>; 63 type Err = jacquard_common::types::xrpc::GenericError<'de>; 64 + } 65 + 66 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeRepo<'de> { 67 + const NSID: &'static str = "com.atproto.repo.describeRepo"; 68 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 69 + jacquard_common::types::xrpc::XrpcMethod::Query; 70 + type Response<'de1> = DescribeRepoResponse; 71 + }
+17 -21
crates/jacquard-api/src/com_atproto/repo/get_record.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRecord<'a> { ··· 25 #[serde(borrow)] 26 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 27 #[serde(borrow)] 28 - pub rkey: jacquard_common::types::string::RecordKey< 29 - jacquard_common::types::string::Rkey<'a>, 30 - >, 31 } 32 33 impl jacquard_common::IntoStatic for GetRecord<'_> { ··· 76 PartialEq, 77 Eq, 78 thiserror::Error, 79 - miette::Diagnostic 80 )] 81 #[serde(tag = "error", content = "message")] 82 #[serde(bound(deserialize = "'de: 'a"))] ··· 104 type Output = GetRecordError<'static>; 105 fn into_static(self) -> Self::Output { 106 match self { 107 - GetRecordError::RecordNotFound(v) => { 108 - GetRecordError::RecordNotFound(v.into_static()) 109 - } 110 GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()), 111 } 112 } 113 } 114 115 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> { 116 const NSID: &'static str = "com.atproto.repo.getRecord"; 117 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 118 - const OUTPUT_ENCODING: &'static str = "application/json"; 119 - type Output = GetRecordOutput<'de>; 120 - type Err = GetRecordError<'de>; 121 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRecord<'a> { ··· 17 #[serde(borrow)] 18 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 19 #[serde(borrow)] 20 + pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>, 21 } 22 23 impl jacquard_common::IntoStatic for GetRecord<'_> { ··· 66 PartialEq, 67 Eq, 68 thiserror::Error, 69 + miette::Diagnostic, 70 )] 71 #[serde(tag = "error", content = "message")] 72 #[serde(bound(deserialize = "'de: 'a"))] ··· 94 type Output = GetRecordError<'static>; 95 fn into_static(self) -> Self::Output { 96 match self { 97 + GetRecordError::RecordNotFound(v) => GetRecordError::RecordNotFound(v.into_static()), 98 GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()), 99 } 100 } 101 + } 102 + 103 + ///Response type for 104 + ///com.atproto.repo.getRecord 105 + pub struct GetRecordResponse; 106 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRecordResponse { 107 + const ENCODING: &'static str = "application/json"; 108 + type Output = GetRecordOutput<'de>; 109 + type Err = GetRecordError<'de>; 110 } 111 112 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> { 113 const NSID: &'static str = "com.atproto.repo.getRecord"; 114 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 115 + jacquard_common::types::xrpc::XrpcMethod::Query; 116 + type Response<'de1> = GetRecordResponse; 117 + }
+18 -25
crates/jacquard-api/src/com_atproto/repo/import_repo.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ImportRepo { ··· 27 } 28 } 29 30 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ImportRepo { 31 const NSID: &'static str = "com.atproto.repo.importRepo"; 32 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 33 - "application/vnd.ipld.car", 34 - ); 35 - const OUTPUT_ENCODING: &'static str = "application/json"; 36 - type Output = (); 37 - type Err = jacquard_common::types::xrpc::GenericError<'de>; 38 fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> { 39 Ok(self.body.to_vec()) 40 } 41 - fn decode_body( 42 - &self, 43 - body: &'de [u8], 44 - ) -> Result<Box<Self>, jacquard_common::error::DecodeError> { 45 - Ok( 46 - Box::new(Self { 47 - body: bytes::Bytes::copy_from_slice(body), 48 - }), 49 - ) 50 } 51 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ImportRepo { ··· 19 } 20 } 21 22 + ///Response type for 23 + ///com.atproto.repo.importRepo 24 + pub struct ImportRepoResponse; 25 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ImportRepoResponse { 26 + const ENCODING: &'static str = "application/json"; 27 + type Output = (); 28 + type Err = jacquard_common::types::xrpc::GenericError<'de>; 29 + } 30 + 31 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ImportRepo { 32 const NSID: &'static str = "com.atproto.repo.importRepo"; 33 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 34 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/vnd.ipld.car"); 35 + type Response<'de1> = ImportRepoResponse; 36 fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> { 37 Ok(self.body.to_vec()) 38 } 39 + fn decode_body(body: &'de [u8]) -> Result<Box<Self>, jacquard_common::error::DecodeError> { 40 + Ok(Box::new(Self { 41 + body: bytes::Bytes::copy_from_slice(body), 42 + })) 43 } 44 + }
+14 -14
crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListMissingBlobs<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListMissingBlobs<'de> { 62 - const NSID: &'static str = "com.atproto.repo.listMissingBlobs"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = ListMissingBlobsOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 } 68 69 #[jacquard_derive::lexicon] ··· 85 extra_data: self.extra_data.into_static(), 86 } 87 } 88 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListMissingBlobs<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///com.atproto.repo.listMissingBlobs 55 + pub struct ListMissingBlobsResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListMissingBlobsResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = ListMissingBlobsOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListMissingBlobs<'de> { 63 + const NSID: &'static str = "com.atproto.repo.listMissingBlobs"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = ListMissingBlobsResponse; 67 } 68 69 #[jacquard_derive::lexicon] ··· 85 extra_data: self.extra_data.into_static(), 86 } 87 } 88 + }
+14 -14
crates/jacquard-api/src/com_atproto/repo/list_records.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListRecords<'a> { ··· 67 } 68 } 69 70 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListRecords<'de> { 71 - const NSID: &'static str = "com.atproto.repo.listRecords"; 72 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 73 - const OUTPUT_ENCODING: &'static str = "application/json"; 74 type Output = ListRecordsOutput<'de>; 75 type Err = jacquard_common::types::xrpc::GenericError<'de>; 76 } 77 78 #[jacquard_derive::lexicon] ··· 97 extra_data: self.extra_data.into_static(), 98 } 99 } 100 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListRecords<'a> { ··· 59 } 60 } 61 62 + ///Response type for 63 + ///com.atproto.repo.listRecords 64 + pub struct ListRecordsResponse; 65 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListRecordsResponse { 66 + const ENCODING: &'static str = "application/json"; 67 type Output = ListRecordsOutput<'de>; 68 type Err = jacquard_common::types::xrpc::GenericError<'de>; 69 + } 70 + 71 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListRecords<'de> { 72 + const NSID: &'static str = "com.atproto.repo.listRecords"; 73 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 74 + jacquard_common::types::xrpc::XrpcMethod::Query; 75 + type Response<'de1> = ListRecordsResponse; 76 } 77 78 #[jacquard_derive::lexicon] ··· 97 extra_data: self.extra_data.into_static(), 98 } 99 } 100 + }
+10 -3
crates/jacquard-api/src/com_atproto/repo/put_record.rs
··· 130 } 131 } 132 133 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutRecord<'de> { 134 const NSID: &'static str = "com.atproto.repo.putRecord"; 135 const METHOD: jacquard_common::types::xrpc::XrpcMethod = 136 jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 137 - const OUTPUT_ENCODING: &'static str = "application/json"; 138 - type Output = PutRecordOutput<'de>; 139 - type Err = PutRecordError<'de>; 140 }
··· 130 } 131 } 132 133 + ///Response type for 134 + ///com.atproto.repo.putRecord 135 + pub struct PutRecordResponse; 136 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutRecordResponse { 137 + const ENCODING: &'static str = "application/json"; 138 + type Output = PutRecordOutput<'de>; 139 + type Err = PutRecordError<'de>; 140 + } 141 + 142 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutRecord<'de> { 143 const NSID: &'static str = "com.atproto.repo.putRecord"; 144 const METHOD: jacquard_common::types::xrpc::XrpcMethod = 145 jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 146 + type Response<'de1> = PutRecordResponse; 147 }
+11 -7
crates/jacquard-api/src/com_atproto/repo/upload_blob.rs
··· 37 } 38 } 39 40 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UploadBlob { 41 const NSID: &'static str = "com.atproto.repo.uploadBlob"; 42 const METHOD: jacquard_common::types::xrpc::XrpcMethod = 43 jacquard_common::types::xrpc::XrpcMethod::Procedure("*/*"); 44 - const OUTPUT_ENCODING: &'static str = "application/json"; 45 - type Output = UploadBlobOutput<'de>; 46 - type Err = jacquard_common::types::xrpc::GenericError<'de>; 47 fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> { 48 Ok(self.body.to_vec()) 49 } 50 - fn decode_body( 51 - &self, 52 - body: &'de [u8], 53 - ) -> Result<Box<Self>, jacquard_common::error::DecodeError> { 54 Ok(Box::new(Self { 55 body: bytes::Bytes::copy_from_slice(body), 56 }))
··· 37 } 38 } 39 40 + ///Response type for 41 + ///com.atproto.repo.uploadBlob 42 + pub struct UploadBlobResponse; 43 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UploadBlobResponse { 44 + const ENCODING: &'static str = "application/json"; 45 + type Output = UploadBlobOutput<'de>; 46 + type Err = jacquard_common::types::xrpc::GenericError<'de>; 47 + } 48 + 49 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UploadBlob { 50 const NSID: &'static str = "com.atproto.repo.uploadBlob"; 51 const METHOD: jacquard_common::types::xrpc::XrpcMethod = 52 jacquard_common::types::xrpc::XrpcMethod::Procedure("*/*"); 53 + type Response<'de1> = UploadBlobResponse; 54 fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> { 55 Ok(self.body.to_vec()) 56 } 57 + fn decode_body(body: &'de [u8]) -> Result<Box<Self>, jacquard_common::error::DecodeError> { 58 Ok(Box::new(Self { 59 body: bytes::Bytes::copy_from_slice(body), 60 }))
+13 -7
crates/jacquard-api/src/com_atproto/server/activate_account.rs
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct ActivateAccount; 11 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ActivateAccount { 12 - const NSID: &'static str = "com.atproto.server.activateAccount"; 13 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 - "application/json", 15 - ); 16 - const OUTPUT_ENCODING: &'static str = "application/json"; 17 type Output = (); 18 type Err = jacquard_common::types::xrpc::GenericError<'de>; 19 - }
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct ActivateAccount; 11 + ///Response type for 12 + ///com.atproto.server.activateAccount 13 + pub struct ActivateAccountResponse; 14 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ActivateAccountResponse { 15 + const ENCODING: &'static str = "application/json"; 16 type Output = (); 17 type Err = jacquard_common::types::xrpc::GenericError<'de>; 18 + } 19 + 20 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ActivateAccount { 21 + const NSID: &'static str = "com.atproto.server.activateAccount"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 23 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 24 + type Response<'de1> = ActivateAccountResponse; 25 + }
+13 -5
crates/jacquard-api/src/com_atproto/server/check_account_status.rs
··· 43 /// XRPC request marker type 44 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 45 pub struct CheckAccountStatus; 46 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckAccountStatus { 47 - const NSID: &'static str = "com.atproto.server.checkAccountStatus"; 48 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 49 - const OUTPUT_ENCODING: &'static str = "application/json"; 50 type Output = CheckAccountStatusOutput<'de>; 51 type Err = jacquard_common::types::xrpc::GenericError<'de>; 52 - }
··· 43 /// XRPC request marker type 44 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 45 pub struct CheckAccountStatus; 46 + ///Response type for 47 + ///com.atproto.server.checkAccountStatus 48 + pub struct CheckAccountStatusResponse; 49 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CheckAccountStatusResponse { 50 + const ENCODING: &'static str = "application/json"; 51 type Output = CheckAccountStatusOutput<'de>; 52 type Err = jacquard_common::types::xrpc::GenericError<'de>; 53 + } 54 + 55 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckAccountStatus { 56 + const NSID: &'static str = "com.atproto.server.checkAccountStatus"; 57 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 58 + jacquard_common::types::xrpc::XrpcMethod::Query; 59 + type Response<'de1> = CheckAccountStatusResponse; 60 + }
+18 -26
crates/jacquard-api/src/com_atproto/server/confirm_email.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct ConfirmEmail<'a> { ··· 53 PartialEq, 54 Eq, 55 thiserror::Error, 56 - miette::Diagnostic 57 )] 58 #[serde(tag = "error", content = "message")] 59 #[serde(bound(deserialize = "'de: 'a"))] ··· 111 ConfirmEmailError::AccountNotFound(v) => { 112 ConfirmEmailError::AccountNotFound(v.into_static()) 113 } 114 - ConfirmEmailError::ExpiredToken(v) => { 115 - ConfirmEmailError::ExpiredToken(v.into_static()) 116 - } 117 - ConfirmEmailError::InvalidToken(v) => { 118 - ConfirmEmailError::InvalidToken(v.into_static()) 119 - } 120 - ConfirmEmailError::InvalidEmail(v) => { 121 - ConfirmEmailError::InvalidEmail(v.into_static()) 122 - } 123 ConfirmEmailError::Unknown(v) => ConfirmEmailError::Unknown(v.into_static()), 124 } 125 } 126 } 127 128 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ConfirmEmail<'de> { 129 - const NSID: &'static str = "com.atproto.server.confirmEmail"; 130 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 131 - "application/json", 132 - ); 133 - const OUTPUT_ENCODING: &'static str = "application/json"; 134 type Output = (); 135 type Err = ConfirmEmailError<'de>; 136 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct ConfirmEmail<'a> { ··· 45 PartialEq, 46 Eq, 47 thiserror::Error, 48 + miette::Diagnostic, 49 )] 50 #[serde(tag = "error", content = "message")] 51 #[serde(bound(deserialize = "'de: 'a"))] ··· 103 ConfirmEmailError::AccountNotFound(v) => { 104 ConfirmEmailError::AccountNotFound(v.into_static()) 105 } 106 + ConfirmEmailError::ExpiredToken(v) => ConfirmEmailError::ExpiredToken(v.into_static()), 107 + ConfirmEmailError::InvalidToken(v) => ConfirmEmailError::InvalidToken(v.into_static()), 108 + ConfirmEmailError::InvalidEmail(v) => ConfirmEmailError::InvalidEmail(v.into_static()), 109 ConfirmEmailError::Unknown(v) => ConfirmEmailError::Unknown(v.into_static()), 110 } 111 } 112 } 113 114 + ///Response type for 115 + ///com.atproto.server.confirmEmail 116 + pub struct ConfirmEmailResponse; 117 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ConfirmEmailResponse { 118 + const ENCODING: &'static str = "application/json"; 119 type Output = (); 120 type Err = ConfirmEmailError<'de>; 121 + } 122 + 123 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ConfirmEmail<'de> { 124 + const NSID: &'static str = "com.atproto.server.confirmEmail"; 125 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 126 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 127 + type Response<'de1> = ConfirmEmailResponse; 128 + }
+16 -20
crates/jacquard-api/src/com_atproto/server/create_account.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct CreateAccount<'a> { ··· 124 PartialEq, 125 Eq, 126 thiserror::Error, 127 - miette::Diagnostic 128 )] 129 #[serde(tag = "error", content = "message")] 130 #[serde(bound(deserialize = "'de: 'a"))] ··· 227 CreateAccountError::IncompatibleDidDoc(v) => { 228 CreateAccountError::IncompatibleDidDoc(v.into_static()) 229 } 230 - CreateAccountError::Unknown(v) => { 231 - CreateAccountError::Unknown(v.into_static()) 232 - } 233 } 234 } 235 } 236 237 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateAccount<'de> { 238 - const NSID: &'static str = "com.atproto.server.createAccount"; 239 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 240 - "application/json", 241 - ); 242 - const OUTPUT_ENCODING: &'static str = "application/json"; 243 type Output = CreateAccountOutput<'de>; 244 type Err = CreateAccountError<'de>; 245 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct CreateAccount<'a> { ··· 116 PartialEq, 117 Eq, 118 thiserror::Error, 119 + miette::Diagnostic, 120 )] 121 #[serde(tag = "error", content = "message")] 122 #[serde(bound(deserialize = "'de: 'a"))] ··· 219 CreateAccountError::IncompatibleDidDoc(v) => { 220 CreateAccountError::IncompatibleDidDoc(v.into_static()) 221 } 222 + CreateAccountError::Unknown(v) => CreateAccountError::Unknown(v.into_static()), 223 } 224 } 225 } 226 227 + ///Response type for 228 + ///com.atproto.server.createAccount 229 + pub struct CreateAccountResponse; 230 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateAccountResponse { 231 + const ENCODING: &'static str = "application/json"; 232 type Output = CreateAccountOutput<'de>; 233 type Err = CreateAccountError<'de>; 234 + } 235 + 236 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateAccount<'de> { 237 + const NSID: &'static str = "com.atproto.server.createAccount"; 238 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 239 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 240 + type Response<'de1> = CreateAccountResponse; 241 + }
+16 -20
crates/jacquard-api/src/com_atproto/server/create_app_password.rs
··· 32 } 33 34 #[jacquard_derive::lexicon] 35 - #[derive( 36 - serde::Serialize, 37 - serde::Deserialize, 38 - Debug, 39 - Clone, 40 - PartialEq, 41 - Eq, 42 - bon::Builder 43 - )] 44 #[serde(rename_all = "camelCase")] 45 #[builder(start_fn = new)] 46 pub struct CreateAppPassword<'a> { ··· 99 PartialEq, 100 Eq, 101 thiserror::Error, 102 - miette::Diagnostic 103 )] 104 #[serde(tag = "error", content = "message")] 105 #[serde(bound(deserialize = "'de: 'a"))] ··· 130 CreateAppPasswordError::AccountTakedown(v) => { 131 CreateAppPasswordError::AccountTakedown(v.into_static()) 132 } 133 - CreateAppPasswordError::Unknown(v) => { 134 - CreateAppPasswordError::Unknown(v.into_static()) 135 - } 136 } 137 } 138 } 139 140 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateAppPassword<'de> { 141 - const NSID: &'static str = "com.atproto.server.createAppPassword"; 142 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 143 - "application/json", 144 - ); 145 - const OUTPUT_ENCODING: &'static str = "application/json"; 146 type Output = CreateAppPasswordOutput<'de>; 147 type Err = CreateAppPasswordError<'de>; 148 - }
··· 32 } 33 34 #[jacquard_derive::lexicon] 35 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 36 #[serde(rename_all = "camelCase")] 37 #[builder(start_fn = new)] 38 pub struct CreateAppPassword<'a> { ··· 91 PartialEq, 92 Eq, 93 thiserror::Error, 94 + miette::Diagnostic, 95 )] 96 #[serde(tag = "error", content = "message")] 97 #[serde(bound(deserialize = "'de: 'a"))] ··· 122 CreateAppPasswordError::AccountTakedown(v) => { 123 CreateAppPasswordError::AccountTakedown(v.into_static()) 124 } 125 + CreateAppPasswordError::Unknown(v) => CreateAppPasswordError::Unknown(v.into_static()), 126 } 127 } 128 } 129 130 + ///Response type for 131 + ///com.atproto.server.createAppPassword 132 + pub struct CreateAppPasswordResponse; 133 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateAppPasswordResponse { 134 + const ENCODING: &'static str = "application/json"; 135 type Output = CreateAppPasswordOutput<'de>; 136 type Err = CreateAppPasswordError<'de>; 137 + } 138 + 139 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateAppPassword<'de> { 140 + const NSID: &'static str = "com.atproto.server.createAppPassword"; 141 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 142 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 143 + type Response<'de1> = CreateAppPasswordResponse; 144 + }
+14 -16
crates/jacquard-api/src/com_atproto/server/create_invite_code.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct CreateInviteCode<'a> { ··· 60 } 61 } 62 63 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateInviteCode<'de> { 64 - const NSID: &'static str = "com.atproto.server.createInviteCode"; 65 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 66 - "application/json", 67 - ); 68 - const OUTPUT_ENCODING: &'static str = "application/json"; 69 type Output = CreateInviteCodeOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct CreateInviteCode<'a> { ··· 52 } 53 } 54 55 + ///Response type for 56 + ///com.atproto.server.createInviteCode 57 + pub struct CreateInviteCodeResponse; 58 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateInviteCodeResponse { 59 + const ENCODING: &'static str = "application/json"; 60 type Output = CreateInviteCodeOutput<'de>; 61 type Err = jacquard_common::types::xrpc::GenericError<'de>; 62 + } 63 + 64 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateInviteCode<'de> { 65 + const NSID: &'static str = "com.atproto.server.createInviteCode"; 66 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 67 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 68 + type Response<'de1> = CreateInviteCodeResponse; 69 + }
+14 -16
crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs
··· 27 } 28 29 #[jacquard_derive::lexicon] 30 - #[derive( 31 - serde::Serialize, 32 - serde::Deserialize, 33 - Debug, 34 - Clone, 35 - PartialEq, 36 - Eq, 37 - bon::Builder 38 - )] 39 #[serde(rename_all = "camelCase")] 40 #[builder(start_fn = new)] 41 pub struct CreateInviteCodes<'a> { ··· 83 } 84 } 85 86 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateInviteCodes<'de> { 87 - const NSID: &'static str = "com.atproto.server.createInviteCodes"; 88 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 89 - "application/json", 90 - ); 91 - const OUTPUT_ENCODING: &'static str = "application/json"; 92 type Output = CreateInviteCodesOutput<'de>; 93 type Err = jacquard_common::types::xrpc::GenericError<'de>; 94 - }
··· 27 } 28 29 #[jacquard_derive::lexicon] 30 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 31 #[serde(rename_all = "camelCase")] 32 #[builder(start_fn = new)] 33 pub struct CreateInviteCodes<'a> { ··· 75 } 76 } 77 78 + ///Response type for 79 + ///com.atproto.server.createInviteCodes 80 + pub struct CreateInviteCodesResponse; 81 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateInviteCodesResponse { 82 + const ENCODING: &'static str = "application/json"; 83 type Output = CreateInviteCodesOutput<'de>; 84 type Err = jacquard_common::types::xrpc::GenericError<'de>; 85 + } 86 + 87 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateInviteCodes<'de> { 88 + const NSID: &'static str = "com.atproto.server.createInviteCodes"; 89 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 90 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 91 + type Response<'de1> = CreateInviteCodesResponse; 92 + }
+16 -20
crates/jacquard-api/src/com_atproto/server/create_session.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct CreateSession<'a> { ··· 112 PartialEq, 113 Eq, 114 thiserror::Error, 115 - miette::Diagnostic 116 )] 117 #[serde(tag = "error", content = "message")] 118 #[serde(bound(deserialize = "'de: 'a"))] ··· 155 CreateSessionError::AuthFactorTokenRequired(v) => { 156 CreateSessionError::AuthFactorTokenRequired(v.into_static()) 157 } 158 - CreateSessionError::Unknown(v) => { 159 - CreateSessionError::Unknown(v.into_static()) 160 - } 161 } 162 } 163 } 164 165 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateSession<'de> { 166 - const NSID: &'static str = "com.atproto.server.createSession"; 167 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 168 - "application/json", 169 - ); 170 - const OUTPUT_ENCODING: &'static str = "application/json"; 171 type Output = CreateSessionOutput<'de>; 172 type Err = CreateSessionError<'de>; 173 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct CreateSession<'a> { ··· 104 PartialEq, 105 Eq, 106 thiserror::Error, 107 + miette::Diagnostic, 108 )] 109 #[serde(tag = "error", content = "message")] 110 #[serde(bound(deserialize = "'de: 'a"))] ··· 147 CreateSessionError::AuthFactorTokenRequired(v) => { 148 CreateSessionError::AuthFactorTokenRequired(v.into_static()) 149 } 150 + CreateSessionError::Unknown(v) => CreateSessionError::Unknown(v.into_static()), 151 } 152 } 153 } 154 155 + ///Response type for 156 + ///com.atproto.server.createSession 157 + pub struct CreateSessionResponse; 158 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateSessionResponse { 159 + const ENCODING: &'static str = "application/json"; 160 type Output = CreateSessionOutput<'de>; 161 type Err = CreateSessionError<'de>; 162 + } 163 + 164 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateSession<'de> { 165 + const NSID: &'static str = "com.atproto.server.createSession"; 166 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 167 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 168 + type Response<'de1> = CreateSessionResponse; 169 + }
+14 -16
crates/jacquard-api/src/com_atproto/server/deactivate_account.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeactivateAccount<'a> { ··· 40 } 41 } 42 43 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeactivateAccount<'de> { 44 - const NSID: &'static str = "com.atproto.server.deactivateAccount"; 45 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 46 - "application/json", 47 - ); 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = (); 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeactivateAccount<'a> { ··· 32 } 33 } 34 35 + ///Response type for 36 + ///com.atproto.server.deactivateAccount 37 + pub struct DeactivateAccountResponse; 38 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeactivateAccountResponse { 39 + const ENCODING: &'static str = "application/json"; 40 type Output = (); 41 type Err = jacquard_common::types::xrpc::GenericError<'de>; 42 + } 43 + 44 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeactivateAccount<'de> { 45 + const NSID: &'static str = "com.atproto.server.deactivateAccount"; 46 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 47 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 48 + type Response<'de1> = DeactivateAccountResponse; 49 + }
+16 -20
crates/jacquard-api/src/com_atproto/server/delete_account.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteAccount<'a> { ··· 56 PartialEq, 57 Eq, 58 thiserror::Error, 59 - miette::Diagnostic 60 )] 61 #[serde(tag = "error", content = "message")] 62 #[serde(bound(deserialize = "'de: 'a"))] ··· 99 DeleteAccountError::InvalidToken(v) => { 100 DeleteAccountError::InvalidToken(v.into_static()) 101 } 102 - DeleteAccountError::Unknown(v) => { 103 - DeleteAccountError::Unknown(v.into_static()) 104 - } 105 } 106 } 107 } 108 109 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount<'de> { 110 - const NSID: &'static str = "com.atproto.server.deleteAccount"; 111 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 112 - "application/json", 113 - ); 114 - const OUTPUT_ENCODING: &'static str = "application/json"; 115 type Output = (); 116 type Err = DeleteAccountError<'de>; 117 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteAccount<'a> { ··· 48 PartialEq, 49 Eq, 50 thiserror::Error, 51 + miette::Diagnostic, 52 )] 53 #[serde(tag = "error", content = "message")] 54 #[serde(bound(deserialize = "'de: 'a"))] ··· 91 DeleteAccountError::InvalidToken(v) => { 92 DeleteAccountError::InvalidToken(v.into_static()) 93 } 94 + DeleteAccountError::Unknown(v) => DeleteAccountError::Unknown(v.into_static()), 95 } 96 } 97 } 98 99 + ///Response type for 100 + ///com.atproto.server.deleteAccount 101 + pub struct DeleteAccountResponse; 102 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteAccountResponse { 103 + const ENCODING: &'static str = "application/json"; 104 type Output = (); 105 type Err = DeleteAccountError<'de>; 106 + } 107 + 108 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount<'de> { 109 + const NSID: &'static str = "com.atproto.server.deleteAccount"; 110 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 111 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 112 + type Response<'de1> = DeleteAccountResponse; 113 + }
+13 -7
crates/jacquard-api/src/com_atproto/server/delete_session.rs
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct DeleteSession; 11 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteSession { 12 - const NSID: &'static str = "com.atproto.server.deleteSession"; 13 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 - "application/json", 15 - ); 16 - const OUTPUT_ENCODING: &'static str = "application/json"; 17 type Output = (); 18 type Err = jacquard_common::types::xrpc::GenericError<'de>; 19 - }
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct DeleteSession; 11 + ///Response type for 12 + ///com.atproto.server.deleteSession 13 + pub struct DeleteSessionResponse; 14 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteSessionResponse { 15 + const ENCODING: &'static str = "application/json"; 16 type Output = (); 17 type Err = jacquard_common::types::xrpc::GenericError<'de>; 18 + } 19 + 20 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteSession { 21 + const NSID: &'static str = "com.atproto.server.deleteSession"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 23 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 24 + type Response<'de1> = DeleteSessionResponse; 25 + }
+13 -5
crates/jacquard-api/src/com_atproto/server/describe_server.rs
··· 90 /// XRPC request marker type 91 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 92 pub struct DescribeServer; 93 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeServer { 94 - const NSID: &'static str = "com.atproto.server.describeServer"; 95 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 96 - const OUTPUT_ENCODING: &'static str = "application/json"; 97 type Output = DescribeServerOutput<'de>; 98 type Err = jacquard_common::types::xrpc::GenericError<'de>; 99 - }
··· 90 /// XRPC request marker type 91 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 92 pub struct DescribeServer; 93 + ///Response type for 94 + ///com.atproto.server.describeServer 95 + pub struct DescribeServerResponse; 96 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DescribeServerResponse { 97 + const ENCODING: &'static str = "application/json"; 98 type Output = DescribeServerOutput<'de>; 99 type Err = jacquard_common::types::xrpc::GenericError<'de>; 100 + } 101 + 102 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeServer { 103 + const NSID: &'static str = "com.atproto.server.describeServer"; 104 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 105 + jacquard_common::types::xrpc::XrpcMethod::Query; 106 + type Response<'de1> = DescribeServerResponse; 107 + }
+15 -15
crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetAccountInviteCodes { ··· 59 PartialEq, 60 Eq, 61 thiserror::Error, 62 - miette::Diagnostic 63 )] 64 #[serde(tag = "error", content = "message")] 65 #[serde(bound(deserialize = "'de: 'a"))] ··· 97 } 98 } 99 100 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInviteCodes { 101 - const NSID: &'static str = "com.atproto.server.getAccountInviteCodes"; 102 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 103 - const OUTPUT_ENCODING: &'static str = "application/json"; 104 type Output = GetAccountInviteCodesOutput<'de>; 105 type Err = GetAccountInviteCodesError<'de>; 106 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetAccountInviteCodes { ··· 51 PartialEq, 52 Eq, 53 thiserror::Error, 54 + miette::Diagnostic, 55 )] 56 #[serde(tag = "error", content = "message")] 57 #[serde(bound(deserialize = "'de: 'a"))] ··· 89 } 90 } 91 92 + ///Response type for 93 + ///com.atproto.server.getAccountInviteCodes 94 + pub struct GetAccountInviteCodesResponse; 95 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountInviteCodesResponse { 96 + const ENCODING: &'static str = "application/json"; 97 type Output = GetAccountInviteCodesOutput<'de>; 98 type Err = GetAccountInviteCodesError<'de>; 99 + } 100 + 101 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInviteCodes { 102 + const NSID: &'static str = "com.atproto.server.getAccountInviteCodes"; 103 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 104 + jacquard_common::types::xrpc::XrpcMethod::Query; 105 + type Response<'de1> = GetAccountInviteCodesResponse; 106 + }
+16 -18
crates/jacquard-api/src/com_atproto/server/get_service_auth.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetServiceAuth<'a> { ··· 64 PartialEq, 65 Eq, 66 thiserror::Error, 67 - miette::Diagnostic 68 )] 69 #[serde(tag = "error", content = "message")] 70 #[serde(bound(deserialize = "'de: 'a"))] ··· 96 GetServiceAuthError::BadExpiration(v) => { 97 GetServiceAuthError::BadExpiration(v.into_static()) 98 } 99 - GetServiceAuthError::Unknown(v) => { 100 - GetServiceAuthError::Unknown(v.into_static()) 101 - } 102 } 103 } 104 } 105 106 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetServiceAuth<'de> { 107 - const NSID: &'static str = "com.atproto.server.getServiceAuth"; 108 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 109 - const OUTPUT_ENCODING: &'static str = "application/json"; 110 type Output = GetServiceAuthOutput<'de>; 111 type Err = GetServiceAuthError<'de>; 112 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetServiceAuth<'a> { ··· 56 PartialEq, 57 Eq, 58 thiserror::Error, 59 + miette::Diagnostic, 60 )] 61 #[serde(tag = "error", content = "message")] 62 #[serde(bound(deserialize = "'de: 'a"))] ··· 88 GetServiceAuthError::BadExpiration(v) => { 89 GetServiceAuthError::BadExpiration(v.into_static()) 90 } 91 + GetServiceAuthError::Unknown(v) => GetServiceAuthError::Unknown(v.into_static()), 92 } 93 } 94 } 95 96 + ///Response type for 97 + ///com.atproto.server.getServiceAuth 98 + pub struct GetServiceAuthResponse; 99 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetServiceAuthResponse { 100 + const ENCODING: &'static str = "application/json"; 101 type Output = GetServiceAuthOutput<'de>; 102 type Err = GetServiceAuthError<'de>; 103 + } 104 + 105 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetServiceAuth<'de> { 106 + const NSID: &'static str = "com.atproto.server.getServiceAuth"; 107 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 108 + jacquard_common::types::xrpc::XrpcMethod::Query; 109 + type Response<'de1> = GetServiceAuthResponse; 110 + }
+13 -5
crates/jacquard-api/src/com_atproto/server/get_session.rs
··· 51 /// XRPC request marker type 52 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 53 pub struct GetSession; 54 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSession { 55 - const NSID: &'static str = "com.atproto.server.getSession"; 56 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 57 - const OUTPUT_ENCODING: &'static str = "application/json"; 58 type Output = GetSessionOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 - }
··· 51 /// XRPC request marker type 52 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 53 pub struct GetSession; 54 + ///Response type for 55 + ///com.atproto.server.getSession 56 + pub struct GetSessionResponse; 57 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSessionResponse { 58 + const ENCODING: &'static str = "application/json"; 59 type Output = GetSessionOutput<'de>; 60 type Err = jacquard_common::types::xrpc::GenericError<'de>; 61 + } 62 + 63 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSession { 64 + const NSID: &'static str = "com.atproto.server.getSession"; 65 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 66 + jacquard_common::types::xrpc::XrpcMethod::Query; 67 + type Response<'de1> = GetSessionResponse; 68 + }
+15 -9
crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs
··· 55 PartialEq, 56 Eq, 57 thiserror::Error, 58 - miette::Diagnostic 59 )] 60 #[serde(tag = "error", content = "message")] 61 #[serde(bound(deserialize = "'de: 'a"))] ··· 86 ListAppPasswordsError::AccountTakedown(v) => { 87 ListAppPasswordsError::AccountTakedown(v.into_static()) 88 } 89 - ListAppPasswordsError::Unknown(v) => { 90 - ListAppPasswordsError::Unknown(v.into_static()) 91 - } 92 } 93 } 94 } ··· 96 /// XRPC request marker type 97 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 98 pub struct ListAppPasswords; 99 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListAppPasswords { 100 - const NSID: &'static str = "com.atproto.server.listAppPasswords"; 101 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 102 - const OUTPUT_ENCODING: &'static str = "application/json"; 103 type Output = ListAppPasswordsOutput<'de>; 104 type Err = ListAppPasswordsError<'de>; 105 - }
··· 55 PartialEq, 56 Eq, 57 thiserror::Error, 58 + miette::Diagnostic, 59 )] 60 #[serde(tag = "error", content = "message")] 61 #[serde(bound(deserialize = "'de: 'a"))] ··· 86 ListAppPasswordsError::AccountTakedown(v) => { 87 ListAppPasswordsError::AccountTakedown(v.into_static()) 88 } 89 + ListAppPasswordsError::Unknown(v) => ListAppPasswordsError::Unknown(v.into_static()), 90 } 91 } 92 } ··· 94 /// XRPC request marker type 95 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 96 pub struct ListAppPasswords; 97 + ///Response type for 98 + ///com.atproto.server.listAppPasswords 99 + pub struct ListAppPasswordsResponse; 100 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListAppPasswordsResponse { 101 + const ENCODING: &'static str = "application/json"; 102 type Output = ListAppPasswordsOutput<'de>; 103 type Err = ListAppPasswordsError<'de>; 104 + } 105 + 106 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListAppPasswords { 107 + const NSID: &'static str = "com.atproto.server.listAppPasswords"; 108 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 109 + jacquard_common::types::xrpc::XrpcMethod::Query; 110 + type Response<'de1> = ListAppPasswordsResponse; 111 + }
+15 -11
crates/jacquard-api/src/com_atproto/server/refresh_session.rs
··· 53 PartialEq, 54 Eq, 55 thiserror::Error, 56 - miette::Diagnostic 57 )] 58 #[serde(tag = "error", content = "message")] 59 #[serde(bound(deserialize = "'de: 'a"))] ··· 84 RefreshSessionError::AccountTakedown(v) => { 85 RefreshSessionError::AccountTakedown(v.into_static()) 86 } 87 - RefreshSessionError::Unknown(v) => { 88 - RefreshSessionError::Unknown(v.into_static()) 89 - } 90 } 91 } 92 } ··· 94 /// XRPC request marker type 95 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 96 pub struct RefreshSession; 97 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RefreshSession { 98 - const NSID: &'static str = "com.atproto.server.refreshSession"; 99 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 100 - "application/json", 101 - ); 102 - const OUTPUT_ENCODING: &'static str = "application/json"; 103 type Output = RefreshSessionOutput<'de>; 104 type Err = RefreshSessionError<'de>; 105 - }
··· 53 PartialEq, 54 Eq, 55 thiserror::Error, 56 + miette::Diagnostic, 57 )] 58 #[serde(tag = "error", content = "message")] 59 #[serde(bound(deserialize = "'de: 'a"))] ··· 84 RefreshSessionError::AccountTakedown(v) => { 85 RefreshSessionError::AccountTakedown(v.into_static()) 86 } 87 + RefreshSessionError::Unknown(v) => RefreshSessionError::Unknown(v.into_static()), 88 } 89 } 90 } ··· 92 /// XRPC request marker type 93 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 94 pub struct RefreshSession; 95 + ///Response type for 96 + ///com.atproto.server.refreshSession 97 + pub struct RefreshSessionResponse; 98 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RefreshSessionResponse { 99 + const ENCODING: &'static str = "application/json"; 100 type Output = RefreshSessionOutput<'de>; 101 type Err = RefreshSessionError<'de>; 102 + } 103 + 104 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RefreshSession { 105 + const NSID: &'static str = "com.atproto.server.refreshSession"; 106 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 107 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 108 + type Response<'de1> = RefreshSessionResponse; 109 + }
+13 -7
crates/jacquard-api/src/com_atproto/server/request_account_delete.rs
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct RequestAccountDelete; 11 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestAccountDelete { 12 - const NSID: &'static str = "com.atproto.server.requestAccountDelete"; 13 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 - "application/json", 15 - ); 16 - const OUTPUT_ENCODING: &'static str = "application/json"; 17 type Output = (); 18 type Err = jacquard_common::types::xrpc::GenericError<'de>; 19 - }
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct RequestAccountDelete; 11 + ///Response type for 12 + ///com.atproto.server.requestAccountDelete 13 + pub struct RequestAccountDeleteResponse; 14 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestAccountDeleteResponse { 15 + const ENCODING: &'static str = "application/json"; 16 type Output = (); 17 type Err = jacquard_common::types::xrpc::GenericError<'de>; 18 + } 19 + 20 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestAccountDelete { 21 + const NSID: &'static str = "com.atproto.server.requestAccountDelete"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 23 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 24 + type Response<'de1> = RequestAccountDeleteResponse; 25 + }
+13 -7
crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct RequestEmailConfirmation; 11 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestEmailConfirmation { 12 - const NSID: &'static str = "com.atproto.server.requestEmailConfirmation"; 13 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 - "application/json", 15 - ); 16 - const OUTPUT_ENCODING: &'static str = "application/json"; 17 type Output = (); 18 type Err = jacquard_common::types::xrpc::GenericError<'de>; 19 - }
··· 8 /// XRPC request marker type 9 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 10 pub struct RequestEmailConfirmation; 11 + ///Response type for 12 + ///com.atproto.server.requestEmailConfirmation 13 + pub struct RequestEmailConfirmationResponse; 14 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestEmailConfirmationResponse { 15 + const ENCODING: &'static str = "application/json"; 16 type Output = (); 17 type Err = jacquard_common::types::xrpc::GenericError<'de>; 18 + } 19 + 20 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestEmailConfirmation { 21 + const NSID: &'static str = "com.atproto.server.requestEmailConfirmation"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 23 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 24 + type Response<'de1> = RequestEmailConfirmationResponse; 25 + }
+13 -7
crates/jacquard-api/src/com_atproto/server/request_email_update.rs
··· 25 /// XRPC request marker type 26 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 27 pub struct RequestEmailUpdate; 28 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestEmailUpdate { 29 - const NSID: &'static str = "com.atproto.server.requestEmailUpdate"; 30 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 31 - "application/json", 32 - ); 33 - const OUTPUT_ENCODING: &'static str = "application/json"; 34 type Output = RequestEmailUpdateOutput<'de>; 35 type Err = jacquard_common::types::xrpc::GenericError<'de>; 36 - }
··· 25 /// XRPC request marker type 26 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 27 pub struct RequestEmailUpdate; 28 + ///Response type for 29 + ///com.atproto.server.requestEmailUpdate 30 + pub struct RequestEmailUpdateResponse; 31 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestEmailUpdateResponse { 32 + const ENCODING: &'static str = "application/json"; 33 type Output = RequestEmailUpdateOutput<'de>; 34 type Err = jacquard_common::types::xrpc::GenericError<'de>; 35 + } 36 + 37 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestEmailUpdate { 38 + const NSID: &'static str = "com.atproto.server.requestEmailUpdate"; 39 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 40 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 41 + type Response<'de1> = RequestEmailUpdateResponse; 42 + }
+14 -16
crates/jacquard-api/src/com_atproto/server/request_password_reset.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RequestPasswordReset<'a> { ··· 40 } 41 } 42 43 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestPasswordReset<'de> { 44 - const NSID: &'static str = "com.atproto.server.requestPasswordReset"; 45 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 46 - "application/json", 47 - ); 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = (); 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RequestPasswordReset<'a> { ··· 32 } 33 } 34 35 + ///Response type for 36 + ///com.atproto.server.requestPasswordReset 37 + pub struct RequestPasswordResetResponse; 38 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestPasswordResetResponse { 39 + const ENCODING: &'static str = "application/json"; 40 type Output = (); 41 type Err = jacquard_common::types::xrpc::GenericError<'de>; 42 + } 43 + 44 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestPasswordReset<'de> { 45 + const NSID: &'static str = "com.atproto.server.requestPasswordReset"; 46 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 47 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 48 + type Response<'de1> = RequestPasswordResetResponse; 49 + }
+14 -16
crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct ReserveSigningKey<'a> { ··· 60 } 61 } 62 63 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ReserveSigningKey<'de> { 64 - const NSID: &'static str = "com.atproto.server.reserveSigningKey"; 65 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 66 - "application/json", 67 - ); 68 - const OUTPUT_ENCODING: &'static str = "application/json"; 69 type Output = ReserveSigningKeyOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct ReserveSigningKey<'a> { ··· 52 } 53 } 54 55 + ///Response type for 56 + ///com.atproto.server.reserveSigningKey 57 + pub struct ReserveSigningKeyResponse; 58 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ReserveSigningKeyResponse { 59 + const ENCODING: &'static str = "application/json"; 60 type Output = ReserveSigningKeyOutput<'de>; 61 type Err = jacquard_common::types::xrpc::GenericError<'de>; 62 + } 63 + 64 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ReserveSigningKey<'de> { 65 + const NSID: &'static str = "com.atproto.server.reserveSigningKey"; 66 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 67 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 68 + type Response<'de1> = ReserveSigningKeyResponse; 69 + }
+16 -20
crates/jacquard-api/src/com_atproto/server/reset_password.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct ResetPassword<'a> { ··· 53 PartialEq, 54 Eq, 55 thiserror::Error, 56 - miette::Diagnostic 57 )] 58 #[serde(tag = "error", content = "message")] 59 #[serde(bound(deserialize = "'de: 'a"))] ··· 96 ResetPasswordError::InvalidToken(v) => { 97 ResetPasswordError::InvalidToken(v.into_static()) 98 } 99 - ResetPasswordError::Unknown(v) => { 100 - ResetPasswordError::Unknown(v.into_static()) 101 - } 102 } 103 } 104 } 105 106 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResetPassword<'de> { 107 - const NSID: &'static str = "com.atproto.server.resetPassword"; 108 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 109 - "application/json", 110 - ); 111 - const OUTPUT_ENCODING: &'static str = "application/json"; 112 type Output = (); 113 type Err = ResetPasswordError<'de>; 114 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct ResetPassword<'a> { ··· 45 PartialEq, 46 Eq, 47 thiserror::Error, 48 + miette::Diagnostic, 49 )] 50 #[serde(tag = "error", content = "message")] 51 #[serde(bound(deserialize = "'de: 'a"))] ··· 88 ResetPasswordError::InvalidToken(v) => { 89 ResetPasswordError::InvalidToken(v.into_static()) 90 } 91 + ResetPasswordError::Unknown(v) => ResetPasswordError::Unknown(v.into_static()), 92 } 93 } 94 } 95 96 + ///Response type for 97 + ///com.atproto.server.resetPassword 98 + pub struct ResetPasswordResponse; 99 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ResetPasswordResponse { 100 + const ENCODING: &'static str = "application/json"; 101 type Output = (); 102 type Err = ResetPasswordError<'de>; 103 + } 104 + 105 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResetPassword<'de> { 106 + const NSID: &'static str = "com.atproto.server.resetPassword"; 107 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 108 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 109 + type Response<'de1> = ResetPasswordResponse; 110 + }
+14 -16
crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RevokeAppPassword<'a> { ··· 40 } 41 } 42 43 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeAppPassword<'de> { 44 - const NSID: &'static str = "com.atproto.server.revokeAppPassword"; 45 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 46 - "application/json", 47 - ); 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = (); 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RevokeAppPassword<'a> { ··· 32 } 33 } 34 35 + ///Response type for 36 + ///com.atproto.server.revokeAppPassword 37 + pub struct RevokeAppPasswordResponse; 38 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RevokeAppPasswordResponse { 39 + const ENCODING: &'static str = "application/json"; 40 type Output = (); 41 type Err = jacquard_common::types::xrpc::GenericError<'de>; 42 + } 43 + 44 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeAppPassword<'de> { 45 + const NSID: &'static str = "com.atproto.server.revokeAppPassword"; 46 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 47 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 48 + type Response<'de1> = RevokeAppPasswordResponse; 49 + }
+18 -26
crates/jacquard-api/src/com_atproto/server/update_email.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateEmail<'a> { ··· 58 PartialEq, 59 Eq, 60 thiserror::Error, 61 - miette::Diagnostic 62 )] 63 #[serde(tag = "error", content = "message")] 64 #[serde(bound(deserialize = "'de: 'a"))] ··· 104 type Output = UpdateEmailError<'static>; 105 fn into_static(self) -> Self::Output { 106 match self { 107 - UpdateEmailError::ExpiredToken(v) => { 108 - UpdateEmailError::ExpiredToken(v.into_static()) 109 - } 110 - UpdateEmailError::InvalidToken(v) => { 111 - UpdateEmailError::InvalidToken(v.into_static()) 112 - } 113 - UpdateEmailError::TokenRequired(v) => { 114 - UpdateEmailError::TokenRequired(v.into_static()) 115 - } 116 UpdateEmailError::Unknown(v) => UpdateEmailError::Unknown(v.into_static()), 117 } 118 } 119 } 120 121 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateEmail<'de> { 122 - const NSID: &'static str = "com.atproto.server.updateEmail"; 123 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 124 - "application/json", 125 - ); 126 - const OUTPUT_ENCODING: &'static str = "application/json"; 127 type Output = (); 128 type Err = UpdateEmailError<'de>; 129 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateEmail<'a> { ··· 50 PartialEq, 51 Eq, 52 thiserror::Error, 53 + miette::Diagnostic, 54 )] 55 #[serde(tag = "error", content = "message")] 56 #[serde(bound(deserialize = "'de: 'a"))] ··· 96 type Output = UpdateEmailError<'static>; 97 fn into_static(self) -> Self::Output { 98 match self { 99 + UpdateEmailError::ExpiredToken(v) => UpdateEmailError::ExpiredToken(v.into_static()), 100 + UpdateEmailError::InvalidToken(v) => UpdateEmailError::InvalidToken(v.into_static()), 101 + UpdateEmailError::TokenRequired(v) => UpdateEmailError::TokenRequired(v.into_static()), 102 UpdateEmailError::Unknown(v) => UpdateEmailError::Unknown(v.into_static()), 103 } 104 } 105 } 106 107 + ///Response type for 108 + ///com.atproto.server.updateEmail 109 + pub struct UpdateEmailResponse; 110 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateEmailResponse { 111 + const ENCODING: &'static str = "application/json"; 112 type Output = (); 113 type Err = UpdateEmailError<'de>; 114 + } 115 + 116 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateEmail<'de> { 117 + const NSID: &'static str = "com.atproto.server.updateEmail"; 118 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 119 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 120 + type Response<'de1> = UpdateEmailResponse; 121 + }
+18 -24
crates/jacquard-api/src/com_atproto/sync/get_blob.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetBlob<'a> { ··· 55 PartialEq, 56 Eq, 57 thiserror::Error, 58 - miette::Diagnostic 59 )] 60 #[serde(tag = "error", content = "message")] 61 #[serde(bound(deserialize = "'de: 'a"))] ··· 121 match self { 122 GetBlobError::BlobNotFound(v) => GetBlobError::BlobNotFound(v.into_static()), 123 GetBlobError::RepoNotFound(v) => GetBlobError::RepoNotFound(v.into_static()), 124 - GetBlobError::RepoTakendown(v) => { 125 - GetBlobError::RepoTakendown(v.into_static()) 126 - } 127 - GetBlobError::RepoSuspended(v) => { 128 - GetBlobError::RepoSuspended(v.into_static()) 129 - } 130 - GetBlobError::RepoDeactivated(v) => { 131 - GetBlobError::RepoDeactivated(v.into_static()) 132 - } 133 GetBlobError::Unknown(v) => GetBlobError::Unknown(v.into_static()), 134 } 135 } 136 } 137 138 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlob<'de> { 139 const NSID: &'static str = "com.atproto.sync.getBlob"; 140 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 141 - const OUTPUT_ENCODING: &'static str = "*/*"; 142 - type Output = GetBlobOutput<'de>; 143 - type Err = GetBlobError<'de>; 144 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetBlob<'a> { ··· 47 PartialEq, 48 Eq, 49 thiserror::Error, 50 + miette::Diagnostic, 51 )] 52 #[serde(tag = "error", content = "message")] 53 #[serde(bound(deserialize = "'de: 'a"))] ··· 113 match self { 114 GetBlobError::BlobNotFound(v) => GetBlobError::BlobNotFound(v.into_static()), 115 GetBlobError::RepoNotFound(v) => GetBlobError::RepoNotFound(v.into_static()), 116 + GetBlobError::RepoTakendown(v) => GetBlobError::RepoTakendown(v.into_static()), 117 + GetBlobError::RepoSuspended(v) => GetBlobError::RepoSuspended(v.into_static()), 118 + GetBlobError::RepoDeactivated(v) => GetBlobError::RepoDeactivated(v.into_static()), 119 GetBlobError::Unknown(v) => GetBlobError::Unknown(v.into_static()), 120 } 121 } 122 } 123 124 + ///Response type for 125 + ///com.atproto.sync.getBlob 126 + pub struct GetBlobResponse; 127 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetBlobResponse { 128 + const ENCODING: &'static str = "*/*"; 129 + type Output = GetBlobOutput<'de>; 130 + type Err = GetBlobError<'de>; 131 + } 132 + 133 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlob<'de> { 134 const NSID: &'static str = "com.atproto.sync.getBlob"; 135 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 136 + jacquard_common::types::xrpc::XrpcMethod::Query; 137 + type Response<'de1> = GetBlobResponse; 138 + }
+20 -30
crates/jacquard-api/src/com_atproto/sync/get_blocks.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetBlocks<'a> { ··· 55 PartialEq, 56 Eq, 57 thiserror::Error, 58 - miette::Diagnostic 59 )] 60 #[serde(tag = "error", content = "message")] 61 #[serde(bound(deserialize = "'de: 'a"))] ··· 119 type Output = GetBlocksError<'static>; 120 fn into_static(self) -> Self::Output { 121 match self { 122 - GetBlocksError::BlockNotFound(v) => { 123 - GetBlocksError::BlockNotFound(v.into_static()) 124 - } 125 - GetBlocksError::RepoNotFound(v) => { 126 - GetBlocksError::RepoNotFound(v.into_static()) 127 - } 128 - GetBlocksError::RepoTakendown(v) => { 129 - GetBlocksError::RepoTakendown(v.into_static()) 130 - } 131 - GetBlocksError::RepoSuspended(v) => { 132 - GetBlocksError::RepoSuspended(v.into_static()) 133 - } 134 - GetBlocksError::RepoDeactivated(v) => { 135 - GetBlocksError::RepoDeactivated(v.into_static()) 136 - } 137 GetBlocksError::Unknown(v) => GetBlocksError::Unknown(v.into_static()), 138 } 139 } 140 } 141 142 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlocks<'de> { 143 const NSID: &'static str = "com.atproto.sync.getBlocks"; 144 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 145 - const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car"; 146 - type Output = GetBlocksOutput<'de>; 147 - type Err = GetBlocksError<'de>; 148 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetBlocks<'a> { ··· 47 PartialEq, 48 Eq, 49 thiserror::Error, 50 + miette::Diagnostic, 51 )] 52 #[serde(tag = "error", content = "message")] 53 #[serde(bound(deserialize = "'de: 'a"))] ··· 111 type Output = GetBlocksError<'static>; 112 fn into_static(self) -> Self::Output { 113 match self { 114 + GetBlocksError::BlockNotFound(v) => GetBlocksError::BlockNotFound(v.into_static()), 115 + GetBlocksError::RepoNotFound(v) => GetBlocksError::RepoNotFound(v.into_static()), 116 + GetBlocksError::RepoTakendown(v) => GetBlocksError::RepoTakendown(v.into_static()), 117 + GetBlocksError::RepoSuspended(v) => GetBlocksError::RepoSuspended(v.into_static()), 118 + GetBlocksError::RepoDeactivated(v) => GetBlocksError::RepoDeactivated(v.into_static()), 119 GetBlocksError::Unknown(v) => GetBlocksError::Unknown(v.into_static()), 120 } 121 } 122 } 123 124 + ///Response type for 125 + ///com.atproto.sync.getBlocks 126 + pub struct GetBlocksResponse; 127 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetBlocksResponse { 128 + const ENCODING: &'static str = "application/vnd.ipld.car"; 129 + type Output = GetBlocksOutput<'de>; 130 + type Err = GetBlocksError<'de>; 131 + } 132 + 133 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlocks<'de> { 134 const NSID: &'static str = "com.atproto.sync.getBlocks"; 135 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 136 + jacquard_common::types::xrpc::XrpcMethod::Query; 137 + type Response<'de1> = GetBlocksResponse; 138 + }
+14 -14
crates/jacquard-api/src/com_atproto/sync/get_checkout.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetCheckout<'a> { ··· 43 } 44 } 45 46 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetCheckout<'de> { 47 - const NSID: &'static str = "com.atproto.sync.getCheckout"; 48 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 49 - const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car"; 50 type Output = GetCheckoutOutput<'de>; 51 type Err = jacquard_common::types::xrpc::GenericError<'de>; 52 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetCheckout<'a> { ··· 35 } 36 } 37 38 + ///Response type for 39 + ///com.atproto.sync.getCheckout 40 + pub struct GetCheckoutResponse; 41 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetCheckoutResponse { 42 + const ENCODING: &'static str = "application/vnd.ipld.car"; 43 type Output = GetCheckoutOutput<'de>; 44 type Err = jacquard_common::types::xrpc::GenericError<'de>; 45 + } 46 + 47 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetCheckout<'de> { 48 + const NSID: &'static str = "com.atproto.sync.getCheckout"; 49 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 50 + jacquard_common::types::xrpc::XrpcMethod::Query; 51 + type Response<'de1> = GetCheckoutResponse; 52 + }
+15 -15
crates/jacquard-api/src/com_atproto/sync/get_head.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetHead<'a> { ··· 57 PartialEq, 58 Eq, 59 thiserror::Error, 60 - miette::Diagnostic 61 )] 62 #[serde(tag = "error", content = "message")] 63 #[serde(bound(deserialize = "'de: 'a"))] ··· 91 } 92 } 93 94 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetHead<'de> { 95 - const NSID: &'static str = "com.atproto.sync.getHead"; 96 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 97 - const OUTPUT_ENCODING: &'static str = "application/json"; 98 type Output = GetHeadOutput<'de>; 99 type Err = GetHeadError<'de>; 100 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetHead<'a> { ··· 49 PartialEq, 50 Eq, 51 thiserror::Error, 52 + miette::Diagnostic, 53 )] 54 #[serde(tag = "error", content = "message")] 55 #[serde(bound(deserialize = "'de: 'a"))] ··· 83 } 84 } 85 86 + ///Response type for 87 + ///com.atproto.sync.getHead 88 + pub struct GetHeadResponse; 89 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetHeadResponse { 90 + const ENCODING: &'static str = "application/json"; 91 type Output = GetHeadOutput<'de>; 92 type Err = GetHeadError<'de>; 93 + } 94 + 95 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetHead<'de> { 96 + const NSID: &'static str = "com.atproto.sync.getHead"; 97 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 98 + jacquard_common::types::xrpc::XrpcMethod::Query; 99 + type Response<'de1> = GetHeadResponse; 100 + }
+16 -18
crates/jacquard-api/src/com_atproto/sync/get_host_status.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetHostStatus<'a> { ··· 70 PartialEq, 71 Eq, 72 thiserror::Error, 73 - miette::Diagnostic 74 )] 75 #[serde(tag = "error", content = "message")] 76 #[serde(bound(deserialize = "'de: 'a"))] ··· 101 GetHostStatusError::HostNotFound(v) => { 102 GetHostStatusError::HostNotFound(v.into_static()) 103 } 104 - GetHostStatusError::Unknown(v) => { 105 - GetHostStatusError::Unknown(v.into_static()) 106 - } 107 } 108 } 109 } 110 111 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetHostStatus<'de> { 112 - const NSID: &'static str = "com.atproto.sync.getHostStatus"; 113 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 114 - const OUTPUT_ENCODING: &'static str = "application/json"; 115 type Output = GetHostStatusOutput<'de>; 116 type Err = GetHostStatusError<'de>; 117 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetHostStatus<'a> { ··· 62 PartialEq, 63 Eq, 64 thiserror::Error, 65 + miette::Diagnostic, 66 )] 67 #[serde(tag = "error", content = "message")] 68 #[serde(bound(deserialize = "'de: 'a"))] ··· 93 GetHostStatusError::HostNotFound(v) => { 94 GetHostStatusError::HostNotFound(v.into_static()) 95 } 96 + GetHostStatusError::Unknown(v) => GetHostStatusError::Unknown(v.into_static()), 97 } 98 } 99 } 100 101 + ///Response type for 102 + ///com.atproto.sync.getHostStatus 103 + pub struct GetHostStatusResponse; 104 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetHostStatusResponse { 105 + const ENCODING: &'static str = "application/json"; 106 type Output = GetHostStatusOutput<'de>; 107 type Err = GetHostStatusError<'de>; 108 + } 109 + 110 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetHostStatus<'de> { 111 + const NSID: &'static str = "com.atproto.sync.getHostStatus"; 112 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 113 + jacquard_common::types::xrpc::XrpcMethod::Query; 114 + type Response<'de1> = GetHostStatusResponse; 115 + }
+16 -18
crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetLatestCommit<'a> { ··· 59 PartialEq, 60 Eq, 61 thiserror::Error, 62 - miette::Diagnostic 63 )] 64 #[serde(tag = "error", content = "message")] 65 #[serde(bound(deserialize = "'de: 'a"))] ··· 126 GetLatestCommitError::RepoDeactivated(v) => { 127 GetLatestCommitError::RepoDeactivated(v.into_static()) 128 } 129 - GetLatestCommitError::Unknown(v) => { 130 - GetLatestCommitError::Unknown(v.into_static()) 131 - } 132 } 133 } 134 } 135 136 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLatestCommit<'de> { 137 - const NSID: &'static str = "com.atproto.sync.getLatestCommit"; 138 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 139 - const OUTPUT_ENCODING: &'static str = "application/json"; 140 type Output = GetLatestCommitOutput<'de>; 141 type Err = GetLatestCommitError<'de>; 142 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetLatestCommit<'a> { ··· 51 PartialEq, 52 Eq, 53 thiserror::Error, 54 + miette::Diagnostic, 55 )] 56 #[serde(tag = "error", content = "message")] 57 #[serde(bound(deserialize = "'de: 'a"))] ··· 118 GetLatestCommitError::RepoDeactivated(v) => { 119 GetLatestCommitError::RepoDeactivated(v.into_static()) 120 } 121 + GetLatestCommitError::Unknown(v) => GetLatestCommitError::Unknown(v.into_static()), 122 } 123 } 124 } 125 126 + ///Response type for 127 + ///com.atproto.sync.getLatestCommit 128 + pub struct GetLatestCommitResponse; 129 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetLatestCommitResponse { 130 + const ENCODING: &'static str = "application/json"; 131 type Output = GetLatestCommitOutput<'de>; 132 type Err = GetLatestCommitError<'de>; 133 + } 134 + 135 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLatestCommit<'de> { 136 + const NSID: &'static str = "com.atproto.sync.getLatestCommit"; 137 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 138 + jacquard_common::types::xrpc::XrpcMethod::Query; 139 + type Response<'de1> = GetLatestCommitResponse; 140 + }
+21 -33
crates/jacquard-api/src/com_atproto/sync/get_record.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRecord<'a> { ··· 22 #[serde(borrow)] 23 pub did: jacquard_common::types::string::Did<'a>, 24 #[serde(borrow)] 25 - pub rkey: jacquard_common::types::string::RecordKey< 26 - jacquard_common::types::string::Rkey<'a>, 27 - >, 28 } 29 30 impl jacquard_common::IntoStatic for GetRecord<'_> { ··· 60 PartialEq, 61 Eq, 62 thiserror::Error, 63 - miette::Diagnostic 64 )] 65 #[serde(tag = "error", content = "message")] 66 #[serde(bound(deserialize = "'de: 'a"))] ··· 124 type Output = GetRecordError<'static>; 125 fn into_static(self) -> Self::Output { 126 match self { 127 - GetRecordError::RecordNotFound(v) => { 128 - GetRecordError::RecordNotFound(v.into_static()) 129 - } 130 - GetRecordError::RepoNotFound(v) => { 131 - GetRecordError::RepoNotFound(v.into_static()) 132 - } 133 - GetRecordError::RepoTakendown(v) => { 134 - GetRecordError::RepoTakendown(v.into_static()) 135 - } 136 - GetRecordError::RepoSuspended(v) => { 137 - GetRecordError::RepoSuspended(v.into_static()) 138 - } 139 - GetRecordError::RepoDeactivated(v) => { 140 - GetRecordError::RepoDeactivated(v.into_static()) 141 - } 142 GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()), 143 } 144 } 145 } 146 147 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> { 148 const NSID: &'static str = "com.atproto.sync.getRecord"; 149 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 150 - const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car"; 151 - type Output = GetRecordOutput<'de>; 152 - type Err = GetRecordError<'de>; 153 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRecord<'a> { ··· 14 #[serde(borrow)] 15 pub did: jacquard_common::types::string::Did<'a>, 16 #[serde(borrow)] 17 + pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>, 18 } 19 20 impl jacquard_common::IntoStatic for GetRecord<'_> { ··· 50 PartialEq, 51 Eq, 52 thiserror::Error, 53 + miette::Diagnostic, 54 )] 55 #[serde(tag = "error", content = "message")] 56 #[serde(bound(deserialize = "'de: 'a"))] ··· 114 type Output = GetRecordError<'static>; 115 fn into_static(self) -> Self::Output { 116 match self { 117 + GetRecordError::RecordNotFound(v) => GetRecordError::RecordNotFound(v.into_static()), 118 + GetRecordError::RepoNotFound(v) => GetRecordError::RepoNotFound(v.into_static()), 119 + GetRecordError::RepoTakendown(v) => GetRecordError::RepoTakendown(v.into_static()), 120 + GetRecordError::RepoSuspended(v) => GetRecordError::RepoSuspended(v.into_static()), 121 + GetRecordError::RepoDeactivated(v) => GetRecordError::RepoDeactivated(v.into_static()), 122 GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()), 123 } 124 } 125 } 126 127 + ///Response type for 128 + ///com.atproto.sync.getRecord 129 + pub struct GetRecordResponse; 130 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRecordResponse { 131 + const ENCODING: &'static str = "application/vnd.ipld.car"; 132 + type Output = GetRecordOutput<'de>; 133 + type Err = GetRecordError<'de>; 134 + } 135 + 136 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> { 137 const NSID: &'static str = "com.atproto.sync.getRecord"; 138 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 139 + jacquard_common::types::xrpc::XrpcMethod::Query; 140 + type Response<'de1> = GetRecordResponse; 141 + }
+18 -24
crates/jacquard-api/src/com_atproto/sync/get_repo.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRepo<'a> { ··· 55 PartialEq, 56 Eq, 57 thiserror::Error, 58 - miette::Diagnostic 59 )] 60 #[serde(tag = "error", content = "message")] 61 #[serde(bound(deserialize = "'de: 'a"))] ··· 111 fn into_static(self) -> Self::Output { 112 match self { 113 GetRepoError::RepoNotFound(v) => GetRepoError::RepoNotFound(v.into_static()), 114 - GetRepoError::RepoTakendown(v) => { 115 - GetRepoError::RepoTakendown(v.into_static()) 116 - } 117 - GetRepoError::RepoSuspended(v) => { 118 - GetRepoError::RepoSuspended(v.into_static()) 119 - } 120 - GetRepoError::RepoDeactivated(v) => { 121 - GetRepoError::RepoDeactivated(v.into_static()) 122 - } 123 GetRepoError::Unknown(v) => GetRepoError::Unknown(v.into_static()), 124 } 125 } 126 } 127 128 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepo<'de> { 129 const NSID: &'static str = "com.atproto.sync.getRepo"; 130 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 131 - const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car"; 132 - type Output = GetRepoOutput<'de>; 133 - type Err = GetRepoError<'de>; 134 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRepo<'a> { ··· 47 PartialEq, 48 Eq, 49 thiserror::Error, 50 + miette::Diagnostic, 51 )] 52 #[serde(tag = "error", content = "message")] 53 #[serde(bound(deserialize = "'de: 'a"))] ··· 103 fn into_static(self) -> Self::Output { 104 match self { 105 GetRepoError::RepoNotFound(v) => GetRepoError::RepoNotFound(v.into_static()), 106 + GetRepoError::RepoTakendown(v) => GetRepoError::RepoTakendown(v.into_static()), 107 + GetRepoError::RepoSuspended(v) => GetRepoError::RepoSuspended(v.into_static()), 108 + GetRepoError::RepoDeactivated(v) => GetRepoError::RepoDeactivated(v.into_static()), 109 GetRepoError::Unknown(v) => GetRepoError::Unknown(v.into_static()), 110 } 111 } 112 } 113 114 + ///Response type for 115 + ///com.atproto.sync.getRepo 116 + pub struct GetRepoResponse; 117 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRepoResponse { 118 + const ENCODING: &'static str = "application/vnd.ipld.car"; 119 + type Output = GetRepoOutput<'de>; 120 + type Err = GetRepoError<'de>; 121 + } 122 + 123 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepo<'de> { 124 const NSID: &'static str = "com.atproto.sync.getRepo"; 125 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 126 + jacquard_common::types::xrpc::XrpcMethod::Query; 127 + type Response<'de1> = GetRepoResponse; 128 + }
+16 -18
crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRepoStatus<'a> { ··· 68 PartialEq, 69 Eq, 70 thiserror::Error, 71 - miette::Diagnostic 72 )] 73 #[serde(tag = "error", content = "message")] 74 #[serde(bound(deserialize = "'de: 'a"))] ··· 99 GetRepoStatusError::RepoNotFound(v) => { 100 GetRepoStatusError::RepoNotFound(v.into_static()) 101 } 102 - GetRepoStatusError::Unknown(v) => { 103 - GetRepoStatusError::Unknown(v.into_static()) 104 - } 105 } 106 } 107 } 108 109 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepoStatus<'de> { 110 - const NSID: &'static str = "com.atproto.sync.getRepoStatus"; 111 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 112 - const OUTPUT_ENCODING: &'static str = "application/json"; 113 type Output = GetRepoStatusOutput<'de>; 114 type Err = GetRepoStatusError<'de>; 115 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRepoStatus<'a> { ··· 60 PartialEq, 61 Eq, 62 thiserror::Error, 63 + miette::Diagnostic, 64 )] 65 #[serde(tag = "error", content = "message")] 66 #[serde(bound(deserialize = "'de: 'a"))] ··· 91 GetRepoStatusError::RepoNotFound(v) => { 92 GetRepoStatusError::RepoNotFound(v.into_static()) 93 } 94 + GetRepoStatusError::Unknown(v) => GetRepoStatusError::Unknown(v.into_static()), 95 } 96 } 97 } 98 99 + ///Response type for 100 + ///com.atproto.sync.getRepoStatus 101 + pub struct GetRepoStatusResponse; 102 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRepoStatusResponse { 103 + const ENCODING: &'static str = "application/json"; 104 type Output = GetRepoStatusOutput<'de>; 105 type Err = GetRepoStatusError<'de>; 106 + } 107 + 108 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepoStatus<'de> { 109 + const NSID: &'static str = "com.atproto.sync.getRepoStatus"; 110 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 111 + jacquard_common::types::xrpc::XrpcMethod::Query; 112 + type Response<'de1> = GetRepoStatusResponse; 113 + }
+19 -27
crates/jacquard-api/src/com_atproto/sync/list_blobs.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListBlobs<'a> { ··· 73 PartialEq, 74 Eq, 75 thiserror::Error, 76 - miette::Diagnostic 77 )] 78 #[serde(tag = "error", content = "message")] 79 #[serde(bound(deserialize = "'de: 'a"))] ··· 128 type Output = ListBlobsError<'static>; 129 fn into_static(self) -> Self::Output { 130 match self { 131 - ListBlobsError::RepoNotFound(v) => { 132 - ListBlobsError::RepoNotFound(v.into_static()) 133 - } 134 - ListBlobsError::RepoTakendown(v) => { 135 - ListBlobsError::RepoTakendown(v.into_static()) 136 - } 137 - ListBlobsError::RepoSuspended(v) => { 138 - ListBlobsError::RepoSuspended(v.into_static()) 139 - } 140 - ListBlobsError::RepoDeactivated(v) => { 141 - ListBlobsError::RepoDeactivated(v.into_static()) 142 - } 143 ListBlobsError::Unknown(v) => ListBlobsError::Unknown(v.into_static()), 144 } 145 } 146 } 147 148 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListBlobs<'de> { 149 const NSID: &'static str = "com.atproto.sync.listBlobs"; 150 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 151 - const OUTPUT_ENCODING: &'static str = "application/json"; 152 - type Output = ListBlobsOutput<'de>; 153 - type Err = ListBlobsError<'de>; 154 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListBlobs<'a> { ··· 65 PartialEq, 66 Eq, 67 thiserror::Error, 68 + miette::Diagnostic, 69 )] 70 #[serde(tag = "error", content = "message")] 71 #[serde(bound(deserialize = "'de: 'a"))] ··· 120 type Output = ListBlobsError<'static>; 121 fn into_static(self) -> Self::Output { 122 match self { 123 + ListBlobsError::RepoNotFound(v) => ListBlobsError::RepoNotFound(v.into_static()), 124 + ListBlobsError::RepoTakendown(v) => ListBlobsError::RepoTakendown(v.into_static()), 125 + ListBlobsError::RepoSuspended(v) => ListBlobsError::RepoSuspended(v.into_static()), 126 + ListBlobsError::RepoDeactivated(v) => ListBlobsError::RepoDeactivated(v.into_static()), 127 ListBlobsError::Unknown(v) => ListBlobsError::Unknown(v.into_static()), 128 } 129 } 130 } 131 132 + ///Response type for 133 + ///com.atproto.sync.listBlobs 134 + pub struct ListBlobsResponse; 135 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListBlobsResponse { 136 + const ENCODING: &'static str = "application/json"; 137 + type Output = ListBlobsOutput<'de>; 138 + type Err = ListBlobsError<'de>; 139 + } 140 + 141 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListBlobs<'de> { 142 const NSID: &'static str = "com.atproto.sync.listBlobs"; 143 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 144 + jacquard_common::types::xrpc::XrpcMethod::Query; 145 + type Response<'de1> = ListBlobsResponse; 146 + }
+14 -14
crates/jacquard-api/src/com_atproto/sync/list_hosts.rs
··· 35 } 36 } 37 38 - #[derive( 39 - serde::Serialize, 40 - serde::Deserialize, 41 - Debug, 42 - Clone, 43 - PartialEq, 44 - Eq, 45 - bon::Builder 46 - )] 47 #[builder(start_fn = new)] 48 #[serde(rename_all = "camelCase")] 49 pub struct ListHosts<'a> { ··· 89 } 90 } 91 92 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListHosts<'de> { 93 - const NSID: &'static str = "com.atproto.sync.listHosts"; 94 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 95 - const OUTPUT_ENCODING: &'static str = "application/json"; 96 type Output = ListHostsOutput<'de>; 97 type Err = jacquard_common::types::xrpc::GenericError<'de>; 98 - }
··· 35 } 36 } 37 38 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 39 #[builder(start_fn = new)] 40 #[serde(rename_all = "camelCase")] 41 pub struct ListHosts<'a> { ··· 81 } 82 } 83 84 + ///Response type for 85 + ///com.atproto.sync.listHosts 86 + pub struct ListHostsResponse; 87 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListHostsResponse { 88 + const ENCODING: &'static str = "application/json"; 89 type Output = ListHostsOutput<'de>; 90 type Err = jacquard_common::types::xrpc::GenericError<'de>; 91 + } 92 + 93 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListHosts<'de> { 94 + const NSID: &'static str = "com.atproto.sync.listHosts"; 95 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 96 + jacquard_common::types::xrpc::XrpcMethod::Query; 97 + type Response<'de1> = ListHostsResponse; 98 + }
+14 -14
crates/jacquard-api/src/com_atproto/sync/list_repos.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListRepos<'a> { ··· 58 } 59 } 60 61 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListRepos<'de> { 62 - const NSID: &'static str = "com.atproto.sync.listRepos"; 63 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = ListReposOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 } 68 69 #[jacquard_derive::lexicon] ··· 96 extra_data: self.extra_data.into_static(), 97 } 98 } 99 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListRepos<'a> { ··· 50 } 51 } 52 53 + ///Response type for 54 + ///com.atproto.sync.listRepos 55 + pub struct ListReposResponse; 56 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListReposResponse { 57 + const ENCODING: &'static str = "application/json"; 58 type Output = ListReposOutput<'de>; 59 type Err = jacquard_common::types::xrpc::GenericError<'de>; 60 + } 61 + 62 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListRepos<'de> { 63 + const NSID: &'static str = "com.atproto.sync.listRepos"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 65 + jacquard_common::types::xrpc::XrpcMethod::Query; 66 + type Response<'de1> = ListReposResponse; 67 } 68 69 #[jacquard_derive::lexicon] ··· 96 extra_data: self.extra_data.into_static(), 97 } 98 } 99 + }
+14 -14
crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListReposByCollection<'a> { ··· 61 } 62 } 63 64 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListReposByCollection<'de> { 65 - const NSID: &'static str = "com.atproto.sync.listReposByCollection"; 66 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 67 - const OUTPUT_ENCODING: &'static str = "application/json"; 68 type Output = ListReposByCollectionOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 } 71 72 #[jacquard_derive::lexicon] ··· 85 extra_data: self.extra_data.into_static(), 86 } 87 } 88 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListReposByCollection<'a> { ··· 53 } 54 } 55 56 + ///Response type for 57 + ///com.atproto.sync.listReposByCollection 58 + pub struct ListReposByCollectionResponse; 59 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListReposByCollectionResponse { 60 + const ENCODING: &'static str = "application/json"; 61 type Output = ListReposByCollectionOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 + } 64 + 65 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListReposByCollection<'de> { 66 + const NSID: &'static str = "com.atproto.sync.listReposByCollection"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 68 + jacquard_common::types::xrpc::XrpcMethod::Query; 69 + type Response<'de1> = ListReposByCollectionResponse; 70 } 71 72 #[jacquard_derive::lexicon] ··· 85 extra_data: self.extra_data.into_static(), 86 } 87 } 88 + }
+14 -16
crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct NotifyOfUpdate<'a> { ··· 41 } 42 } 43 44 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for NotifyOfUpdate<'de> { 45 - const NSID: &'static str = "com.atproto.sync.notifyOfUpdate"; 46 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 47 - "application/json", 48 - ); 49 - const OUTPUT_ENCODING: &'static str = "application/json"; 50 type Output = (); 51 type Err = jacquard_common::types::xrpc::GenericError<'de>; 52 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct NotifyOfUpdate<'a> { ··· 33 } 34 } 35 36 + ///Response type for 37 + ///com.atproto.sync.notifyOfUpdate 38 + pub struct NotifyOfUpdateResponse; 39 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for NotifyOfUpdateResponse { 40 + const ENCODING: &'static str = "application/json"; 41 type Output = (); 42 type Err = jacquard_common::types::xrpc::GenericError<'de>; 43 + } 44 + 45 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for NotifyOfUpdate<'de> { 46 + const NSID: &'static str = "com.atproto.sync.notifyOfUpdate"; 47 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 48 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 49 + type Response<'de1> = NotifyOfUpdateResponse; 50 + }
+16 -20
crates/jacquard-api/src/com_atproto/sync/request_crawl.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RequestCrawl<'a> { ··· 50 PartialEq, 51 Eq, 52 thiserror::Error, 53 - miette::Diagnostic 54 )] 55 #[serde(tag = "error", content = "message")] 56 #[serde(bound(deserialize = "'de: 'a"))] ··· 78 type Output = RequestCrawlError<'static>; 79 fn into_static(self) -> Self::Output { 80 match self { 81 - RequestCrawlError::HostBanned(v) => { 82 - RequestCrawlError::HostBanned(v.into_static()) 83 - } 84 RequestCrawlError::Unknown(v) => RequestCrawlError::Unknown(v.into_static()), 85 } 86 } 87 } 88 89 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestCrawl<'de> { 90 - const NSID: &'static str = "com.atproto.sync.requestCrawl"; 91 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 92 - "application/json", 93 - ); 94 - const OUTPUT_ENCODING: &'static str = "application/json"; 95 type Output = (); 96 type Err = RequestCrawlError<'de>; 97 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RequestCrawl<'a> { ··· 42 PartialEq, 43 Eq, 44 thiserror::Error, 45 + miette::Diagnostic, 46 )] 47 #[serde(tag = "error", content = "message")] 48 #[serde(bound(deserialize = "'de: 'a"))] ··· 70 type Output = RequestCrawlError<'static>; 71 fn into_static(self) -> Self::Output { 72 match self { 73 + RequestCrawlError::HostBanned(v) => RequestCrawlError::HostBanned(v.into_static()), 74 RequestCrawlError::Unknown(v) => RequestCrawlError::Unknown(v.into_static()), 75 } 76 } 77 } 78 79 + ///Response type for 80 + ///com.atproto.sync.requestCrawl 81 + pub struct RequestCrawlResponse; 82 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestCrawlResponse { 83 + const ENCODING: &'static str = "application/json"; 84 type Output = (); 85 type Err = RequestCrawlError<'de>; 86 + } 87 + 88 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestCrawl<'de> { 89 + const NSID: &'static str = "com.atproto.sync.requestCrawl"; 90 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 91 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 92 + type Response<'de1> = RequestCrawlResponse; 93 + }
+14 -16
crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct AddReservedHandle<'a> { ··· 53 } 54 } 55 56 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddReservedHandle<'de> { 57 - const NSID: &'static str = "com.atproto.temp.addReservedHandle"; 58 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 59 - "application/json", 60 - ); 61 - const OUTPUT_ENCODING: &'static str = "application/json"; 62 type Output = AddReservedHandleOutput<'de>; 63 type Err = jacquard_common::types::xrpc::GenericError<'de>; 64 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct AddReservedHandle<'a> { ··· 45 } 46 } 47 48 + ///Response type for 49 + ///com.atproto.temp.addReservedHandle 50 + pub struct AddReservedHandleResponse; 51 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddReservedHandleResponse { 52 + const ENCODING: &'static str = "application/json"; 53 type Output = AddReservedHandleOutput<'de>; 54 type Err = jacquard_common::types::xrpc::GenericError<'de>; 55 + } 56 + 57 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddReservedHandle<'de> { 58 + const NSID: &'static str = "com.atproto.temp.addReservedHandle"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 60 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 61 + type Response<'de1> = AddReservedHandleResponse; 62 + }
+16 -19
crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct CheckHandleAvailability<'a> { ··· 85 PartialEq, 86 Eq, 87 thiserror::Error, 88 - miette::Diagnostic 89 )] 90 #[serde(tag = "error", content = "message")] 91 #[serde(bound(deserialize = "'de: 'a"))] ··· 124 } 125 } 126 127 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 128 - for CheckHandleAvailability<'de> { 129 - const NSID: &'static str = "com.atproto.temp.checkHandleAvailability"; 130 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 131 - const OUTPUT_ENCODING: &'static str = "application/json"; 132 type Output = CheckHandleAvailabilityOutput<'de>; 133 type Err = CheckHandleAvailabilityError<'de>; 134 } 135 136 ///Indicates the provided handle is available. 137 #[jacquard_derive::lexicon] 138 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 154 pub struct ResultUnavailable<'a> { 155 ///List of suggested handles based on the provided inputs. 156 #[serde(borrow)] 157 - pub suggestions: Vec< 158 - crate::com_atproto::temp::check_handle_availability::Suggestion<'a>, 159 - >, 160 } 161 162 impl jacquard_common::IntoStatic for ResultUnavailable<'_> { ··· 189 extra_data: self.extra_data.into_static(), 190 } 191 } 192 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct CheckHandleAvailability<'a> { ··· 77 PartialEq, 78 Eq, 79 thiserror::Error, 80 + miette::Diagnostic, 81 )] 82 #[serde(tag = "error", content = "message")] 83 #[serde(bound(deserialize = "'de: 'a"))] ··· 116 } 117 } 118 119 + ///Response type for 120 + ///com.atproto.temp.checkHandleAvailability 121 + pub struct CheckHandleAvailabilityResponse; 122 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CheckHandleAvailabilityResponse { 123 + const ENCODING: &'static str = "application/json"; 124 type Output = CheckHandleAvailabilityOutput<'de>; 125 type Err = CheckHandleAvailabilityError<'de>; 126 } 127 128 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckHandleAvailability<'de> { 129 + const NSID: &'static str = "com.atproto.temp.checkHandleAvailability"; 130 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 131 + jacquard_common::types::xrpc::XrpcMethod::Query; 132 + type Response<'de1> = CheckHandleAvailabilityResponse; 133 + } 134 + 135 ///Indicates the provided handle is available. 136 #[jacquard_derive::lexicon] 137 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] ··· 153 pub struct ResultUnavailable<'a> { 154 ///List of suggested handles based on the provided inputs. 155 #[serde(borrow)] 156 + pub suggestions: Vec<crate::com_atproto::temp::check_handle_availability::Suggestion<'a>>, 157 } 158 159 impl jacquard_common::IntoStatic for ResultUnavailable<'_> { ··· 186 extra_data: self.extra_data.into_static(), 187 } 188 } 189 + }
+13 -5
crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs
··· 31 /// XRPC request marker type 32 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 33 pub struct CheckSignupQueue; 34 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckSignupQueue { 35 - const NSID: &'static str = "com.atproto.temp.checkSignupQueue"; 36 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 37 - const OUTPUT_ENCODING: &'static str = "application/json"; 38 type Output = CheckSignupQueueOutput<'de>; 39 type Err = jacquard_common::types::xrpc::GenericError<'de>; 40 - }
··· 31 /// XRPC request marker type 32 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 33 pub struct CheckSignupQueue; 34 + ///Response type for 35 + ///com.atproto.temp.checkSignupQueue 36 + pub struct CheckSignupQueueResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CheckSignupQueueResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = CheckSignupQueueOutput<'de>; 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckSignupQueue { 44 + const NSID: &'static str = "com.atproto.temp.checkSignupQueue"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Query; 47 + type Response<'de1> = CheckSignupQueueResponse; 48 + }
+16 -18
crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct DereferenceScope<'a> { ··· 59 PartialEq, 60 Eq, 61 thiserror::Error, 62 - miette::Diagnostic 63 )] 64 #[serde(tag = "error", content = "message")] 65 #[serde(bound(deserialize = "'de: 'a"))] ··· 91 DereferenceScopeError::InvalidScopeReference(v) => { 92 DereferenceScopeError::InvalidScopeReference(v.into_static()) 93 } 94 - DereferenceScopeError::Unknown(v) => { 95 - DereferenceScopeError::Unknown(v.into_static()) 96 - } 97 } 98 } 99 } 100 101 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DereferenceScope<'de> { 102 - const NSID: &'static str = "com.atproto.temp.dereferenceScope"; 103 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 104 - const OUTPUT_ENCODING: &'static str = "application/json"; 105 type Output = DereferenceScopeOutput<'de>; 106 type Err = DereferenceScopeError<'de>; 107 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct DereferenceScope<'a> { ··· 51 PartialEq, 52 Eq, 53 thiserror::Error, 54 + miette::Diagnostic, 55 )] 56 #[serde(tag = "error", content = "message")] 57 #[serde(bound(deserialize = "'de: 'a"))] ··· 83 DereferenceScopeError::InvalidScopeReference(v) => { 84 DereferenceScopeError::InvalidScopeReference(v.into_static()) 85 } 86 + DereferenceScopeError::Unknown(v) => DereferenceScopeError::Unknown(v.into_static()), 87 } 88 } 89 } 90 91 + ///Response type for 92 + ///com.atproto.temp.dereferenceScope 93 + pub struct DereferenceScopeResponse; 94 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DereferenceScopeResponse { 95 + const ENCODING: &'static str = "application/json"; 96 type Output = DereferenceScopeOutput<'de>; 97 type Err = DereferenceScopeError<'de>; 98 + } 99 + 100 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DereferenceScope<'de> { 101 + const NSID: &'static str = "com.atproto.temp.dereferenceScope"; 102 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 103 + jacquard_common::types::xrpc::XrpcMethod::Query; 104 + type Response<'de1> = DereferenceScopeResponse; 105 + }
+14 -14
crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct FetchLabels { ··· 49 } 50 } 51 52 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for FetchLabels { 53 - const NSID: &'static str = "com.atproto.temp.fetchLabels"; 54 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 55 - const OUTPUT_ENCODING: &'static str = "application/json"; 56 type Output = FetchLabelsOutput<'de>; 57 type Err = jacquard_common::types::xrpc::GenericError<'de>; 58 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct FetchLabels { ··· 41 } 42 } 43 44 + ///Response type for 45 + ///com.atproto.temp.fetchLabels 46 + pub struct FetchLabelsResponse; 47 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for FetchLabelsResponse { 48 + const ENCODING: &'static str = "application/json"; 49 type Output = FetchLabelsOutput<'de>; 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 + } 52 + 53 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for FetchLabels { 54 + const NSID: &'static str = "com.atproto.temp.fetchLabels"; 55 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 56 + jacquard_common::types::xrpc::XrpcMethod::Query; 57 + type Response<'de1> = FetchLabelsResponse; 58 + }
+14 -17
crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RequestPhoneVerification<'a> { ··· 40 } 41 } 42 43 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 44 - for RequestPhoneVerification<'de> { 45 - const NSID: &'static str = "com.atproto.temp.requestPhoneVerification"; 46 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 47 - "application/json", 48 - ); 49 - const OUTPUT_ENCODING: &'static str = "application/json"; 50 type Output = (); 51 type Err = jacquard_common::types::xrpc::GenericError<'de>; 52 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RequestPhoneVerification<'a> { ··· 32 } 33 } 34 35 + ///Response type for 36 + ///com.atproto.temp.requestPhoneVerification 37 + pub struct RequestPhoneVerificationResponse; 38 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestPhoneVerificationResponse { 39 + const ENCODING: &'static str = "application/json"; 40 type Output = (); 41 type Err = jacquard_common::types::xrpc::GenericError<'de>; 42 + } 43 + 44 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestPhoneVerification<'de> { 45 + const NSID: &'static str = "com.atproto.temp.requestPhoneVerification"; 46 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 47 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 48 + type Response<'de1> = RequestPhoneVerificationResponse; 49 + }
+14 -17
crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RevokeAccountCredentials<'a> { ··· 39 } 40 } 41 42 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> 43 - for RevokeAccountCredentials<'de> { 44 - const NSID: &'static str = "com.atproto.temp.revokeAccountCredentials"; 45 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 46 - "application/json", 47 - ); 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = (); 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RevokeAccountCredentials<'a> { ··· 31 } 32 } 33 34 + ///Response type for 35 + ///com.atproto.temp.revokeAccountCredentials 36 + pub struct RevokeAccountCredentialsResponse; 37 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RevokeAccountCredentialsResponse { 38 + const ENCODING: &'static str = "application/json"; 39 type Output = (); 40 type Err = jacquard_common::types::xrpc::GenericError<'de>; 41 + } 42 + 43 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeAccountCredentials<'de> { 44 + const NSID: &'static str = "com.atproto.temp.revokeAccountCredentials"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 46 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 47 + type Response<'de1> = RevokeAccountCredentialsResponse; 48 + }
+16 -20
crates/jacquard-api/src/tools_ozone/communication/create_template.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct CreateTemplate<'a> { ··· 88 PartialEq, 89 Eq, 90 thiserror::Error, 91 - miette::Diagnostic 92 )] 93 #[serde(tag = "error", content = "message")] 94 #[serde(bound(deserialize = "'de: 'a"))] ··· 119 CreateTemplateError::DuplicateTemplateName(v) => { 120 CreateTemplateError::DuplicateTemplateName(v.into_static()) 121 } 122 - CreateTemplateError::Unknown(v) => { 123 - CreateTemplateError::Unknown(v.into_static()) 124 - } 125 } 126 } 127 } 128 129 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateTemplate<'de> { 130 - const NSID: &'static str = "tools.ozone.communication.createTemplate"; 131 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 132 - "application/json", 133 - ); 134 - const OUTPUT_ENCODING: &'static str = "application/json"; 135 type Output = CreateTemplateOutput<'de>; 136 type Err = CreateTemplateError<'de>; 137 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct CreateTemplate<'a> { ··· 80 PartialEq, 81 Eq, 82 thiserror::Error, 83 + miette::Diagnostic, 84 )] 85 #[serde(tag = "error", content = "message")] 86 #[serde(bound(deserialize = "'de: 'a"))] ··· 111 CreateTemplateError::DuplicateTemplateName(v) => { 112 CreateTemplateError::DuplicateTemplateName(v.into_static()) 113 } 114 + CreateTemplateError::Unknown(v) => CreateTemplateError::Unknown(v.into_static()), 115 } 116 } 117 } 118 119 + ///Response type for 120 + ///tools.ozone.communication.createTemplate 121 + pub struct CreateTemplateResponse; 122 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateTemplateResponse { 123 + const ENCODING: &'static str = "application/json"; 124 type Output = CreateTemplateOutput<'de>; 125 type Err = CreateTemplateError<'de>; 126 + } 127 + 128 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateTemplate<'de> { 129 + const NSID: &'static str = "tools.ozone.communication.createTemplate"; 130 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 131 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 132 + type Response<'de1> = CreateTemplateResponse; 133 + }
+14 -16
crates/jacquard-api/src/tools_ozone/communication/delete_template.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteTemplate<'a> { ··· 40 } 41 } 42 43 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteTemplate<'de> { 44 - const NSID: &'static str = "tools.ozone.communication.deleteTemplate"; 45 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 46 - "application/json", 47 - ); 48 - const OUTPUT_ENCODING: &'static str = "application/json"; 49 type Output = (); 50 type Err = jacquard_common::types::xrpc::GenericError<'de>; 51 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteTemplate<'a> { ··· 32 } 33 } 34 35 + ///Response type for 36 + ///tools.ozone.communication.deleteTemplate 37 + pub struct DeleteTemplateResponse; 38 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteTemplateResponse { 39 + const ENCODING: &'static str = "application/json"; 40 type Output = (); 41 type Err = jacquard_common::types::xrpc::GenericError<'de>; 42 + } 43 + 44 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteTemplate<'de> { 45 + const NSID: &'static str = "tools.ozone.communication.deleteTemplate"; 46 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 47 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 48 + type Response<'de1> = DeleteTemplateResponse; 49 + }
+14 -8
crates/jacquard-api/src/tools_ozone/communication/list_templates.rs
··· 10 #[serde(rename_all = "camelCase")] 11 pub struct ListTemplatesOutput<'a> { 12 #[serde(borrow)] 13 - pub communication_templates: Vec< 14 - crate::tools_ozone::communication::TemplateView<'a>, 15 - >, 16 } 17 18 impl jacquard_common::IntoStatic for ListTemplatesOutput<'_> { ··· 28 /// XRPC request marker type 29 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 30 pub struct ListTemplates; 31 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListTemplates { 32 - const NSID: &'static str = "tools.ozone.communication.listTemplates"; 33 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 34 - const OUTPUT_ENCODING: &'static str = "application/json"; 35 type Output = ListTemplatesOutput<'de>; 36 type Err = jacquard_common::types::xrpc::GenericError<'de>; 37 - }
··· 10 #[serde(rename_all = "camelCase")] 11 pub struct ListTemplatesOutput<'a> { 12 #[serde(borrow)] 13 + pub communication_templates: Vec<crate::tools_ozone::communication::TemplateView<'a>>, 14 } 15 16 impl jacquard_common::IntoStatic for ListTemplatesOutput<'_> { ··· 26 /// XRPC request marker type 27 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 28 pub struct ListTemplates; 29 + ///Response type for 30 + ///tools.ozone.communication.listTemplates 31 + pub struct ListTemplatesResponse; 32 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListTemplatesResponse { 33 + const ENCODING: &'static str = "application/json"; 34 type Output = ListTemplatesOutput<'de>; 35 type Err = jacquard_common::types::xrpc::GenericError<'de>; 36 + } 37 + 38 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListTemplates { 39 + const NSID: &'static str = "tools.ozone.communication.listTemplates"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 41 + jacquard_common::types::xrpc::XrpcMethod::Query; 42 + type Response<'de1> = ListTemplatesResponse; 43 + }
+16 -20
crates/jacquard-api/src/tools_ozone/communication/update_template.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateTemplate<'a> { ··· 99 PartialEq, 100 Eq, 101 thiserror::Error, 102 - miette::Diagnostic 103 )] 104 #[serde(tag = "error", content = "message")] 105 #[serde(bound(deserialize = "'de: 'a"))] ··· 130 UpdateTemplateError::DuplicateTemplateName(v) => { 131 UpdateTemplateError::DuplicateTemplateName(v.into_static()) 132 } 133 - UpdateTemplateError::Unknown(v) => { 134 - UpdateTemplateError::Unknown(v.into_static()) 135 - } 136 } 137 } 138 } 139 140 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateTemplate<'de> { 141 - const NSID: &'static str = "tools.ozone.communication.updateTemplate"; 142 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 143 - "application/json", 144 - ); 145 - const OUTPUT_ENCODING: &'static str = "application/json"; 146 type Output = UpdateTemplateOutput<'de>; 147 type Err = UpdateTemplateError<'de>; 148 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateTemplate<'a> { ··· 91 PartialEq, 92 Eq, 93 thiserror::Error, 94 + miette::Diagnostic, 95 )] 96 #[serde(tag = "error", content = "message")] 97 #[serde(bound(deserialize = "'de: 'a"))] ··· 122 UpdateTemplateError::DuplicateTemplateName(v) => { 123 UpdateTemplateError::DuplicateTemplateName(v.into_static()) 124 } 125 + UpdateTemplateError::Unknown(v) => UpdateTemplateError::Unknown(v.into_static()), 126 } 127 } 128 } 129 130 + ///Response type for 131 + ///tools.ozone.communication.updateTemplate 132 + pub struct UpdateTemplateResponse; 133 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateTemplateResponse { 134 + const ENCODING: &'static str = "application/json"; 135 type Output = UpdateTemplateOutput<'de>; 136 type Err = UpdateTemplateError<'de>; 137 + } 138 + 139 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateTemplate<'de> { 140 + const NSID: &'static str = "tools.ozone.communication.updateTemplate"; 141 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 142 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 143 + type Response<'de1> = UpdateTemplateResponse; 144 + }
+15 -17
crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs
··· 84 type Output = EventRecordDetails<'static>; 85 fn into_static(self) -> Self::Output { 86 match self { 87 - EventRecordDetails::Unknown(v) => { 88 - EventRecordDetails::Unknown(v.into_static()) 89 - } 90 } 91 } 92 } ··· 121 } 122 } 123 124 - #[derive( 125 - serde::Serialize, 126 - serde::Deserialize, 127 - Debug, 128 - Clone, 129 - PartialEq, 130 - Eq, 131 - bon::Builder 132 - )] 133 #[builder(start_fn = new)] 134 #[serde(rename_all = "camelCase")] 135 pub struct GetAccountHistory<'a> { ··· 181 } 182 } 183 184 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountHistory<'de> { 185 - const NSID: &'static str = "tools.ozone.hosting.getAccountHistory"; 186 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 187 - const OUTPUT_ENCODING: &'static str = "application/json"; 188 type Output = GetAccountHistoryOutput<'de>; 189 type Err = jacquard_common::types::xrpc::GenericError<'de>; 190 } 191 192 #[jacquard_derive::lexicon] 193 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 194 #[serde(rename_all = "camelCase")] ··· 200 extra_data: self.extra_data.into_static(), 201 } 202 } 203 - }
··· 84 type Output = EventRecordDetails<'static>; 85 fn into_static(self) -> Self::Output { 86 match self { 87 + EventRecordDetails::Unknown(v) => EventRecordDetails::Unknown(v.into_static()), 88 } 89 } 90 } ··· 119 } 120 } 121 122 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 123 #[builder(start_fn = new)] 124 #[serde(rename_all = "camelCase")] 125 pub struct GetAccountHistory<'a> { ··· 171 } 172 } 173 174 + ///Response type for 175 + ///tools.ozone.hosting.getAccountHistory 176 + pub struct GetAccountHistoryResponse; 177 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountHistoryResponse { 178 + const ENCODING: &'static str = "application/json"; 179 type Output = GetAccountHistoryOutput<'de>; 180 type Err = jacquard_common::types::xrpc::GenericError<'de>; 181 } 182 183 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountHistory<'de> { 184 + const NSID: &'static str = "tools.ozone.hosting.getAccountHistory"; 185 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 186 + jacquard_common::types::xrpc::XrpcMethod::Query; 187 + type Response<'de1> = GetAccountHistoryResponse; 188 + } 189 + 190 #[jacquard_derive::lexicon] 191 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 192 #[serde(rename_all = "camelCase")] ··· 198 extra_data: self.extra_data.into_static(), 199 } 200 } 201 + }
+24 -44
crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct EmitEvent<'a> { ··· 34 pub subject: EmitEventRecordSubject<'a>, 35 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 #[serde(borrow)] 37 - pub subject_blob_cids: std::option::Option< 38 - Vec<jacquard_common::types::string::Cid<'a>>, 39 - >, 40 #[serde(flatten)] 41 #[serde(borrow)] 42 #[builder(default)] ··· 54 #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] 55 DefsModEventTakedown(Box<crate::tools_ozone::moderation::ModEventTakedown<'a>>), 56 #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] 57 - DefsModEventAcknowledge( 58 - Box<crate::tools_ozone::moderation::ModEventAcknowledge<'a>>, 59 - ), 60 #[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")] 61 DefsModEventEscalate(Box<crate::tools_ozone::moderation::ModEventEscalate<'a>>), 62 #[serde(rename = "tools.ozone.moderation.defs#modEventComment")] ··· 70 #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] 71 DefsModEventUnmute(Box<crate::tools_ozone::moderation::ModEventUnmute<'a>>), 72 #[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")] 73 - DefsModEventMuteReporter( 74 - Box<crate::tools_ozone::moderation::ModEventMuteReporter<'a>>, 75 - ), 76 #[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")] 77 - DefsModEventUnmuteReporter( 78 - Box<crate::tools_ozone::moderation::ModEventUnmuteReporter<'a>>, 79 - ), 80 #[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")] 81 - DefsModEventReverseTakedown( 82 - Box<crate::tools_ozone::moderation::ModEventReverseTakedown<'a>>, 83 - ), 84 #[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")] 85 - DefsModEventResolveAppeal( 86 - Box<crate::tools_ozone::moderation::ModEventResolveAppeal<'a>>, 87 - ), 88 #[serde(rename = "tools.ozone.moderation.defs#modEventEmail")] 89 DefsModEventEmail(Box<crate::tools_ozone::moderation::ModEventEmail<'a>>), 90 #[serde(rename = "tools.ozone.moderation.defs#modEventDivert")] ··· 98 #[serde(rename = "tools.ozone.moderation.defs#recordEvent")] 99 DefsRecordEvent(Box<crate::tools_ozone::moderation::RecordEvent<'a>>), 100 #[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")] 101 - DefsModEventPriorityScore( 102 - Box<crate::tools_ozone::moderation::ModEventPriorityScore<'a>>, 103 - ), 104 #[serde(rename = "tools.ozone.moderation.defs#ageAssuranceEvent")] 105 DefsAgeAssuranceEvent(Box<crate::tools_ozone::moderation::AgeAssuranceEvent<'a>>), 106 #[serde(rename = "tools.ozone.moderation.defs#ageAssuranceOverrideEvent")] ··· 183 EmitEventRecordEvent::DefsRevokeAccountCredentialsEvent(v) => { 184 EmitEventRecordEvent::DefsRevokeAccountCredentialsEvent(v.into_static()) 185 } 186 - EmitEventRecordEvent::Unknown(v) => { 187 - EmitEventRecordEvent::Unknown(v.into_static()) 188 - } 189 } 190 } 191 } ··· 211 EmitEventRecordSubject::StrongRef(v) => { 212 EmitEventRecordSubject::StrongRef(v.into_static()) 213 } 214 - EmitEventRecordSubject::Unknown(v) => { 215 - EmitEventRecordSubject::Unknown(v.into_static()) 216 - } 217 } 218 } 219 } ··· 261 PartialEq, 262 Eq, 263 thiserror::Error, 264 - miette::Diagnostic 265 )] 266 #[serde(tag = "error", content = "message")] 267 #[serde(bound(deserialize = "'de: 'a"))] ··· 310 } 311 } 312 313 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for EmitEvent<'de> { 314 - const NSID: &'static str = "tools.ozone.moderation.emitEvent"; 315 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 316 - "application/json", 317 - ); 318 - const OUTPUT_ENCODING: &'static str = "application/json"; 319 type Output = EmitEventOutput<'de>; 320 type Err = EmitEventError<'de>; 321 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct EmitEvent<'a> { ··· 26 pub subject: EmitEventRecordSubject<'a>, 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 + pub subject_blob_cids: std::option::Option<Vec<jacquard_common::types::string::Cid<'a>>>, 30 #[serde(flatten)] 31 #[serde(borrow)] 32 #[builder(default)] ··· 44 #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] 45 DefsModEventTakedown(Box<crate::tools_ozone::moderation::ModEventTakedown<'a>>), 46 #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] 47 + DefsModEventAcknowledge(Box<crate::tools_ozone::moderation::ModEventAcknowledge<'a>>), 48 #[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")] 49 DefsModEventEscalate(Box<crate::tools_ozone::moderation::ModEventEscalate<'a>>), 50 #[serde(rename = "tools.ozone.moderation.defs#modEventComment")] ··· 58 #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] 59 DefsModEventUnmute(Box<crate::tools_ozone::moderation::ModEventUnmute<'a>>), 60 #[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")] 61 + DefsModEventMuteReporter(Box<crate::tools_ozone::moderation::ModEventMuteReporter<'a>>), 62 #[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")] 63 + DefsModEventUnmuteReporter(Box<crate::tools_ozone::moderation::ModEventUnmuteReporter<'a>>), 64 #[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")] 65 + DefsModEventReverseTakedown(Box<crate::tools_ozone::moderation::ModEventReverseTakedown<'a>>), 66 #[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")] 67 + DefsModEventResolveAppeal(Box<crate::tools_ozone::moderation::ModEventResolveAppeal<'a>>), 68 #[serde(rename = "tools.ozone.moderation.defs#modEventEmail")] 69 DefsModEventEmail(Box<crate::tools_ozone::moderation::ModEventEmail<'a>>), 70 #[serde(rename = "tools.ozone.moderation.defs#modEventDivert")] ··· 78 #[serde(rename = "tools.ozone.moderation.defs#recordEvent")] 79 DefsRecordEvent(Box<crate::tools_ozone::moderation::RecordEvent<'a>>), 80 #[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")] 81 + DefsModEventPriorityScore(Box<crate::tools_ozone::moderation::ModEventPriorityScore<'a>>), 82 #[serde(rename = "tools.ozone.moderation.defs#ageAssuranceEvent")] 83 DefsAgeAssuranceEvent(Box<crate::tools_ozone::moderation::AgeAssuranceEvent<'a>>), 84 #[serde(rename = "tools.ozone.moderation.defs#ageAssuranceOverrideEvent")] ··· 161 EmitEventRecordEvent::DefsRevokeAccountCredentialsEvent(v) => { 162 EmitEventRecordEvent::DefsRevokeAccountCredentialsEvent(v.into_static()) 163 } 164 + EmitEventRecordEvent::Unknown(v) => EmitEventRecordEvent::Unknown(v.into_static()), 165 } 166 } 167 } ··· 187 EmitEventRecordSubject::StrongRef(v) => { 188 EmitEventRecordSubject::StrongRef(v.into_static()) 189 } 190 + EmitEventRecordSubject::Unknown(v) => EmitEventRecordSubject::Unknown(v.into_static()), 191 } 192 } 193 } ··· 235 PartialEq, 236 Eq, 237 thiserror::Error, 238 + miette::Diagnostic, 239 )] 240 #[serde(tag = "error", content = "message")] 241 #[serde(bound(deserialize = "'de: 'a"))] ··· 284 } 285 } 286 287 + ///Response type for 288 + ///tools.ozone.moderation.emitEvent 289 + pub struct EmitEventResponse; 290 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for EmitEventResponse { 291 + const ENCODING: &'static str = "application/json"; 292 type Output = EmitEventOutput<'de>; 293 type Err = EmitEventError<'de>; 294 + } 295 + 296 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for EmitEvent<'de> { 297 + const NSID: &'static str = "tools.ozone.moderation.emitEvent"; 298 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 299 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 300 + type Response<'de1> = EmitEventResponse; 301 + }
+16 -18
crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetAccountTimeline<'a> { ··· 57 PartialEq, 58 Eq, 59 thiserror::Error, 60 - miette::Diagnostic 61 )] 62 #[serde(tag = "error", content = "message")] 63 #[serde(bound(deserialize = "'de: 'a"))] ··· 95 } 96 } 97 98 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountTimeline<'de> { 99 - const NSID: &'static str = "tools.ozone.moderation.getAccountTimeline"; 100 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 101 - const OUTPUT_ENCODING: &'static str = "application/json"; 102 type Output = GetAccountTimelineOutput<'de>; 103 type Err = GetAccountTimelineError<'de>; 104 } 105 106 #[jacquard_derive::lexicon] 107 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 108 #[serde(rename_all = "camelCase")] ··· 110 #[serde(borrow)] 111 pub day: jacquard_common::CowStr<'a>, 112 #[serde(borrow)] 113 - pub summary: Vec< 114 - crate::tools_ozone::moderation::get_account_timeline::TimelineItemSummary<'a>, 115 - >, 116 } 117 118 impl jacquard_common::IntoStatic for TimelineItem<'_> { ··· 147 extra_data: self.extra_data.into_static(), 148 } 149 } 150 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetAccountTimeline<'a> { ··· 49 PartialEq, 50 Eq, 51 thiserror::Error, 52 + miette::Diagnostic, 53 )] 54 #[serde(tag = "error", content = "message")] 55 #[serde(bound(deserialize = "'de: 'a"))] ··· 87 } 88 } 89 90 + ///Response type for 91 + ///tools.ozone.moderation.getAccountTimeline 92 + pub struct GetAccountTimelineResponse; 93 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountTimelineResponse { 94 + const ENCODING: &'static str = "application/json"; 95 type Output = GetAccountTimelineOutput<'de>; 96 type Err = GetAccountTimelineError<'de>; 97 } 98 99 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountTimeline<'de> { 100 + const NSID: &'static str = "tools.ozone.moderation.getAccountTimeline"; 101 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 102 + jacquard_common::types::xrpc::XrpcMethod::Query; 103 + type Response<'de1> = GetAccountTimelineResponse; 104 + } 105 + 106 #[jacquard_derive::lexicon] 107 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 108 #[serde(rename_all = "camelCase")] ··· 110 #[serde(borrow)] 111 pub day: jacquard_common::CowStr<'a>, 112 #[serde(borrow)] 113 + pub summary: Vec<crate::tools_ozone::moderation::get_account_timeline::TimelineItemSummary<'a>>, 114 } 115 116 impl jacquard_common::IntoStatic for TimelineItem<'_> { ··· 145 extra_data: self.extra_data.into_static(), 146 } 147 } 148 + }
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_event.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetEvent { ··· 46 } 47 } 48 49 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetEvent { 50 - const NSID: &'static str = "tools.ozone.moderation.getEvent"; 51 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 52 - const OUTPUT_ENCODING: &'static str = "application/json"; 53 type Output = GetEventOutput<'de>; 54 type Err = jacquard_common::types::xrpc::GenericError<'de>; 55 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetEvent { ··· 38 } 39 } 40 41 + ///Response type for 42 + ///tools.ozone.moderation.getEvent 43 + pub struct GetEventResponse; 44 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetEventResponse { 45 + const ENCODING: &'static str = "application/json"; 46 type Output = GetEventOutput<'de>; 47 type Err = jacquard_common::types::xrpc::GenericError<'de>; 48 + } 49 + 50 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetEvent { 51 + const NSID: &'static str = "tools.ozone.moderation.getEvent"; 52 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 53 + jacquard_common::types::xrpc::XrpcMethod::Query; 54 + type Response<'de1> = GetEventResponse; 55 + }
+16 -18
crates/jacquard-api/src/tools_ozone/moderation/get_record.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRecord<'a> { ··· 62 PartialEq, 63 Eq, 64 thiserror::Error, 65 - miette::Diagnostic 66 )] 67 #[serde(tag = "error", content = "message")] 68 #[serde(bound(deserialize = "'de: 'a"))] ··· 90 type Output = GetRecordError<'static>; 91 fn into_static(self) -> Self::Output { 92 match self { 93 - GetRecordError::RecordNotFound(v) => { 94 - GetRecordError::RecordNotFound(v.into_static()) 95 - } 96 GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()), 97 } 98 } 99 } 100 101 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> { 102 - const NSID: &'static str = "tools.ozone.moderation.getRecord"; 103 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 104 - const OUTPUT_ENCODING: &'static str = "application/json"; 105 type Output = GetRecordOutput<'de>; 106 type Err = GetRecordError<'de>; 107 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRecord<'a> { ··· 54 PartialEq, 55 Eq, 56 thiserror::Error, 57 + miette::Diagnostic, 58 )] 59 #[serde(tag = "error", content = "message")] 60 #[serde(bound(deserialize = "'de: 'a"))] ··· 82 type Output = GetRecordError<'static>; 83 fn into_static(self) -> Self::Output { 84 match self { 85 + GetRecordError::RecordNotFound(v) => GetRecordError::RecordNotFound(v.into_static()), 86 GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()), 87 } 88 } 89 } 90 91 + ///Response type for 92 + ///tools.ozone.moderation.getRecord 93 + pub struct GetRecordResponse; 94 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRecordResponse { 95 + const ENCODING: &'static str = "application/json"; 96 type Output = GetRecordOutput<'de>; 97 type Err = GetRecordError<'de>; 98 + } 99 + 100 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> { 101 + const NSID: &'static str = "tools.ozone.moderation.getRecord"; 102 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 103 + jacquard_common::types::xrpc::XrpcMethod::Query; 104 + type Response<'de1> = GetRecordResponse; 105 + }
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_records.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRecords<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecords<'de> { 52 - const NSID: &'static str = "tools.ozone.moderation.getRecords"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetRecordsOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRecords<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///tools.ozone.moderation.getRecords 45 + pub struct GetRecordsResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRecordsResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetRecordsOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecords<'de> { 53 + const NSID: &'static str = "tools.ozone.moderation.getRecords"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetRecordsResponse; 57 + }
+15 -15
crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRepo<'a> { ··· 58 PartialEq, 59 Eq, 60 thiserror::Error, 61 - miette::Diagnostic 62 )] 63 #[serde(tag = "error", content = "message")] 64 #[serde(bound(deserialize = "'de: 'a"))] ··· 92 } 93 } 94 95 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepo<'de> { 96 - const NSID: &'static str = "tools.ozone.moderation.getRepo"; 97 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 98 - const OUTPUT_ENCODING: &'static str = "application/json"; 99 type Output = GetRepoOutput<'de>; 100 type Err = GetRepoError<'de>; 101 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRepo<'a> { ··· 50 PartialEq, 51 Eq, 52 thiserror::Error, 53 + miette::Diagnostic, 54 )] 55 #[serde(tag = "error", content = "message")] 56 #[serde(bound(deserialize = "'de: 'a"))] ··· 84 } 85 } 86 87 + ///Response type for 88 + ///tools.ozone.moderation.getRepo 89 + pub struct GetRepoResponse; 90 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRepoResponse { 91 + const ENCODING: &'static str = "application/json"; 92 type Output = GetRepoOutput<'de>; 93 type Err = GetRepoError<'de>; 94 + } 95 + 96 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepo<'de> { 97 + const NSID: &'static str = "tools.ozone.moderation.getRepo"; 98 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 99 + jacquard_common::types::xrpc::XrpcMethod::Query; 100 + type Response<'de1> = GetRepoResponse; 101 + }
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetReporterStats<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetReporterStats<'de> { 52 - const NSID: &'static str = "tools.ozone.moderation.getReporterStats"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetReporterStatsOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetReporterStats<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///tools.ozone.moderation.getReporterStats 45 + pub struct GetReporterStatsResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetReporterStatsResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetReporterStatsOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetReporterStats<'de> { 53 + const NSID: &'static str = "tools.ozone.moderation.getReporterStats"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetReporterStatsResponse; 57 + }
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetRepos<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepos<'de> { 52 - const NSID: &'static str = "tools.ozone.moderation.getRepos"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetReposOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetRepos<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///tools.ozone.moderation.getRepos 45 + pub struct GetReposResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetReposResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetReposOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepos<'de> { 53 + const NSID: &'static str = "tools.ozone.moderation.getRepos"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetReposResponse; 57 + }
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetSubjects<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSubjects<'de> { 52 - const NSID: &'static str = "tools.ozone.moderation.getSubjects"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetSubjectsOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetSubjects<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///tools.ozone.moderation.getSubjects 45 + pub struct GetSubjectsResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSubjectsResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = GetSubjectsOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSubjects<'de> { 53 + const NSID: &'static str = "tools.ozone.moderation.getSubjects"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = GetSubjectsResponse; 57 + }
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/query_events.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct QueryEvents<'a> { ··· 141 } 142 } 143 144 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryEvents<'de> { 145 - const NSID: &'static str = "tools.ozone.moderation.queryEvents"; 146 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 147 - const OUTPUT_ENCODING: &'static str = "application/json"; 148 type Output = QueryEventsOutput<'de>; 149 type Err = jacquard_common::types::xrpc::GenericError<'de>; 150 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct QueryEvents<'a> { ··· 133 } 134 } 135 136 + ///Response type for 137 + ///tools.ozone.moderation.queryEvents 138 + pub struct QueryEventsResponse; 139 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryEventsResponse { 140 + const ENCODING: &'static str = "application/json"; 141 type Output = QueryEventsOutput<'de>; 142 type Err = jacquard_common::types::xrpc::GenericError<'de>; 143 + } 144 + 145 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryEvents<'de> { 146 + const NSID: &'static str = "tools.ozone.moderation.queryEvents"; 147 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 148 + jacquard_common::types::xrpc::XrpcMethod::Query; 149 + type Response<'de1> = QueryEventsResponse; 150 + }
+19 -29
crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct QueryStatuses<'a> { ··· 38 #[serde(borrow)] 39 pub exclude_tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 40 #[serde(skip_serializing_if = "std::option::Option::is_none")] 41 - pub hosting_deleted_after: std::option::Option< 42 - jacquard_common::types::string::Datetime, 43 - >, 44 #[serde(skip_serializing_if = "std::option::Option::is_none")] 45 - pub hosting_deleted_before: std::option::Option< 46 - jacquard_common::types::string::Datetime, 47 - >, 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 #[serde(borrow)] 50 pub hosting_statuses: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 51 #[serde(skip_serializing_if = "std::option::Option::is_none")] 52 - pub hosting_updated_after: std::option::Option< 53 - jacquard_common::types::string::Datetime, 54 - >, 55 #[serde(skip_serializing_if = "std::option::Option::is_none")] 56 - pub hosting_updated_before: std::option::Option< 57 - jacquard_common::types::string::Datetime, 58 - >, 59 #[serde(skip_serializing_if = "std::option::Option::is_none")] 60 #[serde(borrow)] 61 - pub ignore_subjects: std::option::Option< 62 - Vec<jacquard_common::types::string::Uri<'a>>, 63 - >, 64 #[serde(skip_serializing_if = "std::option::Option::is_none")] 65 pub include_all_user_records: std::option::Option<bool>, 66 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 191 } 192 } 193 194 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryStatuses<'de> { 195 - const NSID: &'static str = "tools.ozone.moderation.queryStatuses"; 196 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 197 - const OUTPUT_ENCODING: &'static str = "application/json"; 198 type Output = QueryStatusesOutput<'de>; 199 type Err = jacquard_common::types::xrpc::GenericError<'de>; 200 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct QueryStatuses<'a> { ··· 30 #[serde(borrow)] 31 pub exclude_tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 32 #[serde(skip_serializing_if = "std::option::Option::is_none")] 33 + pub hosting_deleted_after: std::option::Option<jacquard_common::types::string::Datetime>, 34 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 + pub hosting_deleted_before: std::option::Option<jacquard_common::types::string::Datetime>, 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 37 #[serde(borrow)] 38 pub hosting_statuses: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 39 #[serde(skip_serializing_if = "std::option::Option::is_none")] 40 + pub hosting_updated_after: std::option::Option<jacquard_common::types::string::Datetime>, 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 42 + pub hosting_updated_before: std::option::Option<jacquard_common::types::string::Datetime>, 43 #[serde(skip_serializing_if = "std::option::Option::is_none")] 44 #[serde(borrow)] 45 + pub ignore_subjects: std::option::Option<Vec<jacquard_common::types::string::Uri<'a>>>, 46 #[serde(skip_serializing_if = "std::option::Option::is_none")] 47 pub include_all_user_records: std::option::Option<bool>, 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 173 } 174 } 175 176 + ///Response type for 177 + ///tools.ozone.moderation.queryStatuses 178 + pub struct QueryStatusesResponse; 179 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryStatusesResponse { 180 + const ENCODING: &'static str = "application/json"; 181 type Output = QueryStatusesOutput<'de>; 182 type Err = jacquard_common::types::xrpc::GenericError<'de>; 183 + } 184 + 185 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryStatuses<'de> { 186 + const NSID: &'static str = "tools.ozone.moderation.queryStatuses"; 187 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 188 + jacquard_common::types::xrpc::XrpcMethod::Query; 189 + type Response<'de1> = QueryStatusesResponse; 190 + }
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchRepos<'a> { ··· 68 } 69 } 70 71 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchRepos<'de> { 72 - const NSID: &'static str = "tools.ozone.moderation.searchRepos"; 73 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 74 - const OUTPUT_ENCODING: &'static str = "application/json"; 75 type Output = SearchReposOutput<'de>; 76 type Err = jacquard_common::types::xrpc::GenericError<'de>; 77 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchRepos<'a> { ··· 60 } 61 } 62 63 + ///Response type for 64 + ///tools.ozone.moderation.searchRepos 65 + pub struct SearchReposResponse; 66 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchReposResponse { 67 + const ENCODING: &'static str = "application/json"; 68 type Output = SearchReposOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 + } 71 + 72 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchRepos<'de> { 73 + const NSID: &'static str = "tools.ozone.moderation.searchRepos"; 74 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 75 + jacquard_common::types::xrpc::XrpcMethod::Query; 76 + type Response<'de1> = SearchReposResponse; 77 + }
+16 -20
crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct AddRule<'a> { ··· 89 PartialEq, 90 Eq, 91 thiserror::Error, 92 - miette::Diagnostic 93 )] 94 #[serde(tag = "error", content = "message")] 95 #[serde(bound(deserialize = "'de: 'a"))] ··· 129 fn into_static(self) -> Self::Output { 130 match self { 131 AddRuleError::InvalidUrl(v) => AddRuleError::InvalidUrl(v.into_static()), 132 - AddRuleError::RuleAlreadyExists(v) => { 133 - AddRuleError::RuleAlreadyExists(v.into_static()) 134 - } 135 AddRuleError::Unknown(v) => AddRuleError::Unknown(v.into_static()), 136 } 137 } 138 } 139 140 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddRule<'de> { 141 - const NSID: &'static str = "tools.ozone.safelink.addRule"; 142 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 143 - "application/json", 144 - ); 145 - const OUTPUT_ENCODING: &'static str = "application/json"; 146 type Output = AddRuleOutput<'de>; 147 type Err = AddRuleError<'de>; 148 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct AddRule<'a> { ··· 81 PartialEq, 82 Eq, 83 thiserror::Error, 84 + miette::Diagnostic, 85 )] 86 #[serde(tag = "error", content = "message")] 87 #[serde(bound(deserialize = "'de: 'a"))] ··· 121 fn into_static(self) -> Self::Output { 122 match self { 123 AddRuleError::InvalidUrl(v) => AddRuleError::InvalidUrl(v.into_static()), 124 + AddRuleError::RuleAlreadyExists(v) => AddRuleError::RuleAlreadyExists(v.into_static()), 125 AddRuleError::Unknown(v) => AddRuleError::Unknown(v.into_static()), 126 } 127 } 128 } 129 130 + ///Response type for 131 + ///tools.ozone.safelink.addRule 132 + pub struct AddRuleResponse; 133 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddRuleResponse { 134 + const ENCODING: &'static str = "application/json"; 135 type Output = AddRuleOutput<'de>; 136 type Err = AddRuleError<'de>; 137 + } 138 + 139 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddRule<'de> { 140 + const NSID: &'static str = "tools.ozone.safelink.addRule"; 141 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 142 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 143 + type Response<'de1> = AddRuleResponse; 144 + }
+14 -16
crates/jacquard-api/src/tools_ozone/safelink/query_events.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct QueryEvents<'a> { ··· 86 } 87 } 88 89 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryEvents<'de> { 90 - const NSID: &'static str = "tools.ozone.safelink.queryEvents"; 91 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 92 - "application/json", 93 - ); 94 - const OUTPUT_ENCODING: &'static str = "application/json"; 95 type Output = QueryEventsOutput<'de>; 96 type Err = jacquard_common::types::xrpc::GenericError<'de>; 97 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct QueryEvents<'a> { ··· 78 } 79 } 80 81 + ///Response type for 82 + ///tools.ozone.safelink.queryEvents 83 + pub struct QueryEventsResponse; 84 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryEventsResponse { 85 + const ENCODING: &'static str = "application/json"; 86 type Output = QueryEventsOutput<'de>; 87 type Err = jacquard_common::types::xrpc::GenericError<'de>; 88 + } 89 + 90 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryEvents<'de> { 91 + const NSID: &'static str = "tools.ozone.safelink.queryEvents"; 92 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 93 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 94 + type Response<'de1> = QueryEventsResponse; 95 + }
+14 -16
crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct QueryRules<'a> { ··· 102 } 103 } 104 105 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryRules<'de> { 106 - const NSID: &'static str = "tools.ozone.safelink.queryRules"; 107 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 108 - "application/json", 109 - ); 110 - const OUTPUT_ENCODING: &'static str = "application/json"; 111 type Output = QueryRulesOutput<'de>; 112 type Err = jacquard_common::types::xrpc::GenericError<'de>; 113 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct QueryRules<'a> { ··· 94 } 95 } 96 97 + ///Response type for 98 + ///tools.ozone.safelink.queryRules 99 + pub struct QueryRulesResponse; 100 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryRulesResponse { 101 + const ENCODING: &'static str = "application/json"; 102 type Output = QueryRulesOutput<'de>; 103 type Err = jacquard_common::types::xrpc::GenericError<'de>; 104 + } 105 + 106 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryRules<'de> { 107 + const NSID: &'static str = "tools.ozone.safelink.queryRules"; 108 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 109 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 110 + type Response<'de1> = QueryRulesResponse; 111 + }
+16 -20
crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RemoveRule<'a> { ··· 83 PartialEq, 84 Eq, 85 thiserror::Error, 86 - miette::Diagnostic 87 )] 88 #[serde(tag = "error", content = "message")] 89 #[serde(bound(deserialize = "'de: 'a"))] ··· 112 type Output = RemoveRuleError<'static>; 113 fn into_static(self) -> Self::Output { 114 match self { 115 - RemoveRuleError::RuleNotFound(v) => { 116 - RemoveRuleError::RuleNotFound(v.into_static()) 117 - } 118 RemoveRuleError::Unknown(v) => RemoveRuleError::Unknown(v.into_static()), 119 } 120 } 121 } 122 123 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveRule<'de> { 124 - const NSID: &'static str = "tools.ozone.safelink.removeRule"; 125 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 126 - "application/json", 127 - ); 128 - const OUTPUT_ENCODING: &'static str = "application/json"; 129 type Output = RemoveRuleOutput<'de>; 130 type Err = RemoveRuleError<'de>; 131 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RemoveRule<'a> { ··· 75 PartialEq, 76 Eq, 77 thiserror::Error, 78 + miette::Diagnostic, 79 )] 80 #[serde(tag = "error", content = "message")] 81 #[serde(bound(deserialize = "'de: 'a"))] ··· 104 type Output = RemoveRuleError<'static>; 105 fn into_static(self) -> Self::Output { 106 match self { 107 + RemoveRuleError::RuleNotFound(v) => RemoveRuleError::RuleNotFound(v.into_static()), 108 RemoveRuleError::Unknown(v) => RemoveRuleError::Unknown(v.into_static()), 109 } 110 } 111 } 112 113 + ///Response type for 114 + ///tools.ozone.safelink.removeRule 115 + pub struct RemoveRuleResponse; 116 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RemoveRuleResponse { 117 + const ENCODING: &'static str = "application/json"; 118 type Output = RemoveRuleOutput<'de>; 119 type Err = RemoveRuleError<'de>; 120 + } 121 + 122 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveRule<'de> { 123 + const NSID: &'static str = "tools.ozone.safelink.removeRule"; 124 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 125 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 126 + type Response<'de1> = RemoveRuleResponse; 127 + }
+16 -20
crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateRule<'a> { ··· 89 PartialEq, 90 Eq, 91 thiserror::Error, 92 - miette::Diagnostic 93 )] 94 #[serde(tag = "error", content = "message")] 95 #[serde(bound(deserialize = "'de: 'a"))] ··· 118 type Output = UpdateRuleError<'static>; 119 fn into_static(self) -> Self::Output { 120 match self { 121 - UpdateRuleError::RuleNotFound(v) => { 122 - UpdateRuleError::RuleNotFound(v.into_static()) 123 - } 124 UpdateRuleError::Unknown(v) => UpdateRuleError::Unknown(v.into_static()), 125 } 126 } 127 } 128 129 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateRule<'de> { 130 - const NSID: &'static str = "tools.ozone.safelink.updateRule"; 131 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 132 - "application/json", 133 - ); 134 - const OUTPUT_ENCODING: &'static str = "application/json"; 135 type Output = UpdateRuleOutput<'de>; 136 type Err = UpdateRuleError<'de>; 137 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateRule<'a> { ··· 81 PartialEq, 82 Eq, 83 thiserror::Error, 84 + miette::Diagnostic, 85 )] 86 #[serde(tag = "error", content = "message")] 87 #[serde(bound(deserialize = "'de: 'a"))] ··· 110 type Output = UpdateRuleError<'static>; 111 fn into_static(self) -> Self::Output { 112 match self { 113 + UpdateRuleError::RuleNotFound(v) => UpdateRuleError::RuleNotFound(v.into_static()), 114 UpdateRuleError::Unknown(v) => UpdateRuleError::Unknown(v.into_static()), 115 } 116 } 117 } 118 119 + ///Response type for 120 + ///tools.ozone.safelink.updateRule 121 + pub struct UpdateRuleResponse; 122 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateRuleResponse { 123 + const ENCODING: &'static str = "application/json"; 124 type Output = UpdateRuleOutput<'de>; 125 type Err = UpdateRuleError<'de>; 126 + } 127 + 128 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateRule<'de> { 129 + const NSID: &'static str = "tools.ozone.safelink.updateRule"; 130 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 131 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 132 + type Response<'de1> = UpdateRuleResponse; 133 + }
+13 -5
crates/jacquard-api/src/tools_ozone/server/get_config.rs
··· 48 /// XRPC request marker type 49 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 50 pub struct GetConfig; 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConfig { 52 - const NSID: &'static str = "tools.ozone.server.getConfig"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = GetConfigOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 } 58 59 #[jacquard_derive::lexicon] ··· 92 extra_data: self.extra_data.into_static(), 93 } 94 } 95 - }
··· 48 /// XRPC request marker type 49 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 50 pub struct GetConfig; 51 + ///Response type for 52 + ///tools.ozone.server.getConfig 53 + pub struct GetConfigResponse; 54 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConfigResponse { 55 + const ENCODING: &'static str = "application/json"; 56 type Output = GetConfigOutput<'de>; 57 type Err = jacquard_common::types::xrpc::GenericError<'de>; 58 + } 59 + 60 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConfig { 61 + const NSID: &'static str = "tools.ozone.server.getConfig"; 62 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 63 + jacquard_common::types::xrpc::XrpcMethod::Query; 64 + type Response<'de1> = GetConfigResponse; 65 } 66 67 #[jacquard_derive::lexicon] ··· 100 extra_data: self.extra_data.into_static(), 101 } 102 } 103 + }
+14 -16
crates/jacquard-api/src/tools_ozone/set/add_values.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct AddValues<'a> { ··· 45 } 46 } 47 48 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddValues<'de> { 49 - const NSID: &'static str = "tools.ozone.set.addValues"; 50 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 51 - "application/json", 52 - ); 53 - const OUTPUT_ENCODING: &'static str = "application/json"; 54 type Output = (); 55 type Err = jacquard_common::types::xrpc::GenericError<'de>; 56 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct AddValues<'a> { ··· 37 } 38 } 39 40 + ///Response type for 41 + ///tools.ozone.set.addValues 42 + pub struct AddValuesResponse; 43 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddValuesResponse { 44 + const ENCODING: &'static str = "application/json"; 45 type Output = (); 46 type Err = jacquard_common::types::xrpc::GenericError<'de>; 47 + } 48 + 49 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddValues<'de> { 50 + const NSID: &'static str = "tools.ozone.set.addValues"; 51 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 52 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 53 + type Response<'de1> = AddValuesResponse; 54 + }
+16 -20
crates/jacquard-api/src/tools_ozone/set/delete_set.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteSet<'a> { ··· 63 PartialEq, 64 Eq, 65 thiserror::Error, 66 - miette::Diagnostic 67 )] 68 #[serde(tag = "error", content = "message")] 69 #[serde(bound(deserialize = "'de: 'a"))] ··· 92 type Output = DeleteSetError<'static>; 93 fn into_static(self) -> Self::Output { 94 match self { 95 - DeleteSetError::SetNotFound(v) => { 96 - DeleteSetError::SetNotFound(v.into_static()) 97 - } 98 DeleteSetError::Unknown(v) => DeleteSetError::Unknown(v.into_static()), 99 } 100 } 101 } 102 103 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteSet<'de> { 104 - const NSID: &'static str = "tools.ozone.set.deleteSet"; 105 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 106 - "application/json", 107 - ); 108 - const OUTPUT_ENCODING: &'static str = "application/json"; 109 type Output = DeleteSetOutput<'de>; 110 type Err = DeleteSetError<'de>; 111 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteSet<'a> { ··· 55 PartialEq, 56 Eq, 57 thiserror::Error, 58 + miette::Diagnostic, 59 )] 60 #[serde(tag = "error", content = "message")] 61 #[serde(bound(deserialize = "'de: 'a"))] ··· 84 type Output = DeleteSetError<'static>; 85 fn into_static(self) -> Self::Output { 86 match self { 87 + DeleteSetError::SetNotFound(v) => DeleteSetError::SetNotFound(v.into_static()), 88 DeleteSetError::Unknown(v) => DeleteSetError::Unknown(v.into_static()), 89 } 90 } 91 } 92 93 + ///Response type for 94 + ///tools.ozone.set.deleteSet 95 + pub struct DeleteSetResponse; 96 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteSetResponse { 97 + const ENCODING: &'static str = "application/json"; 98 type Output = DeleteSetOutput<'de>; 99 type Err = DeleteSetError<'de>; 100 + } 101 + 102 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteSet<'de> { 103 + const NSID: &'static str = "tools.ozone.set.deleteSet"; 104 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 105 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 106 + type Response<'de1> = DeleteSetResponse; 107 + }
+16 -20
crates/jacquard-api/src/tools_ozone/set/delete_values.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteValues<'a> { ··· 54 PartialEq, 55 Eq, 56 thiserror::Error, 57 - miette::Diagnostic 58 )] 59 #[serde(tag = "error", content = "message")] 60 #[serde(bound(deserialize = "'de: 'a"))] ··· 83 type Output = DeleteValuesError<'static>; 84 fn into_static(self) -> Self::Output { 85 match self { 86 - DeleteValuesError::SetNotFound(v) => { 87 - DeleteValuesError::SetNotFound(v.into_static()) 88 - } 89 DeleteValuesError::Unknown(v) => DeleteValuesError::Unknown(v.into_static()), 90 } 91 } 92 } 93 94 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteValues<'de> { 95 - const NSID: &'static str = "tools.ozone.set.deleteValues"; 96 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 97 - "application/json", 98 - ); 99 - const OUTPUT_ENCODING: &'static str = "application/json"; 100 type Output = (); 101 type Err = DeleteValuesError<'de>; 102 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteValues<'a> { ··· 46 PartialEq, 47 Eq, 48 thiserror::Error, 49 + miette::Diagnostic, 50 )] 51 #[serde(tag = "error", content = "message")] 52 #[serde(bound(deserialize = "'de: 'a"))] ··· 75 type Output = DeleteValuesError<'static>; 76 fn into_static(self) -> Self::Output { 77 match self { 78 + DeleteValuesError::SetNotFound(v) => DeleteValuesError::SetNotFound(v.into_static()), 79 DeleteValuesError::Unknown(v) => DeleteValuesError::Unknown(v.into_static()), 80 } 81 } 82 } 83 84 + ///Response type for 85 + ///tools.ozone.set.deleteValues 86 + pub struct DeleteValuesResponse; 87 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteValuesResponse { 88 + const ENCODING: &'static str = "application/json"; 89 type Output = (); 90 type Err = DeleteValuesError<'de>; 91 + } 92 + 93 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteValues<'de> { 94 + const NSID: &'static str = "tools.ozone.set.deleteValues"; 95 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 96 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 97 + type Response<'de1> = DeleteValuesResponse; 98 + }
+16 -18
crates/jacquard-api/src/tools_ozone/set/get_values.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct GetValues<'a> { ··· 74 PartialEq, 75 Eq, 76 thiserror::Error, 77 - miette::Diagnostic 78 )] 79 #[serde(tag = "error", content = "message")] 80 #[serde(bound(deserialize = "'de: 'a"))] ··· 103 type Output = GetValuesError<'static>; 104 fn into_static(self) -> Self::Output { 105 match self { 106 - GetValuesError::SetNotFound(v) => { 107 - GetValuesError::SetNotFound(v.into_static()) 108 - } 109 GetValuesError::Unknown(v) => GetValuesError::Unknown(v.into_static()), 110 } 111 } 112 } 113 114 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetValues<'de> { 115 - const NSID: &'static str = "tools.ozone.set.getValues"; 116 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 117 - const OUTPUT_ENCODING: &'static str = "application/json"; 118 type Output = GetValuesOutput<'de>; 119 type Err = GetValuesError<'de>; 120 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct GetValues<'a> { ··· 66 PartialEq, 67 Eq, 68 thiserror::Error, 69 + miette::Diagnostic, 70 )] 71 #[serde(tag = "error", content = "message")] 72 #[serde(bound(deserialize = "'de: 'a"))] ··· 95 type Output = GetValuesError<'static>; 96 fn into_static(self) -> Self::Output { 97 match self { 98 + GetValuesError::SetNotFound(v) => GetValuesError::SetNotFound(v.into_static()), 99 GetValuesError::Unknown(v) => GetValuesError::Unknown(v.into_static()), 100 } 101 } 102 } 103 104 + ///Response type for 105 + ///tools.ozone.set.getValues 106 + pub struct GetValuesResponse; 107 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetValuesResponse { 108 + const ENCODING: &'static str = "application/json"; 109 type Output = GetValuesOutput<'de>; 110 type Err = GetValuesError<'de>; 111 + } 112 + 113 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetValues<'de> { 114 + const NSID: &'static str = "tools.ozone.set.getValues"; 115 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 116 + jacquard_common::types::xrpc::XrpcMethod::Query; 117 + type Response<'de1> = GetValuesResponse; 118 + }
+14 -14
crates/jacquard-api/src/tools_ozone/set/query_sets.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct QuerySets<'a> { ··· 75 } 76 } 77 78 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QuerySets<'de> { 79 - const NSID: &'static str = "tools.ozone.set.querySets"; 80 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 81 - const OUTPUT_ENCODING: &'static str = "application/json"; 82 type Output = QuerySetsOutput<'de>; 83 type Err = jacquard_common::types::xrpc::GenericError<'de>; 84 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct QuerySets<'a> { ··· 67 } 68 } 69 70 + ///Response type for 71 + ///tools.ozone.set.querySets 72 + pub struct QuerySetsResponse; 73 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QuerySetsResponse { 74 + const ENCODING: &'static str = "application/json"; 75 type Output = QuerySetsOutput<'de>; 76 type Err = jacquard_common::types::xrpc::GenericError<'de>; 77 + } 78 + 79 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QuerySets<'de> { 80 + const NSID: &'static str = "tools.ozone.set.querySets"; 81 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 82 + jacquard_common::types::xrpc::XrpcMethod::Query; 83 + type Response<'de1> = QuerySetsResponse; 84 + }
+14 -16
crates/jacquard-api/src/tools_ozone/set/upsert_set.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpsertSet<'a> { ··· 59 } 60 } 61 62 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpsertSet<'de> { 63 - const NSID: &'static str = "tools.ozone.set.upsertSet"; 64 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 65 - "application/json", 66 - ); 67 - const OUTPUT_ENCODING: &'static str = "application/json"; 68 type Output = UpsertSetOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpsertSet<'a> { ··· 51 } 52 } 53 54 + ///Response type for 55 + ///tools.ozone.set.upsertSet 56 + pub struct UpsertSetResponse; 57 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpsertSetResponse { 58 + const ENCODING: &'static str = "application/json"; 59 type Output = UpsertSetOutput<'de>; 60 type Err = jacquard_common::types::xrpc::GenericError<'de>; 61 + } 62 + 63 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpsertSet<'de> { 64 + const NSID: &'static str = "tools.ozone.set.upsertSet"; 65 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 66 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 67 + type Response<'de1> = UpsertSetResponse; 68 + }
+14 -14
crates/jacquard-api/src/tools_ozone/setting/list_options.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListOptions<'a> { ··· 73 } 74 } 75 76 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListOptions<'de> { 77 - const NSID: &'static str = "tools.ozone.setting.listOptions"; 78 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 79 - const OUTPUT_ENCODING: &'static str = "application/json"; 80 type Output = ListOptionsOutput<'de>; 81 type Err = jacquard_common::types::xrpc::GenericError<'de>; 82 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListOptions<'a> { ··· 65 } 66 } 67 68 + ///Response type for 69 + ///tools.ozone.setting.listOptions 70 + pub struct ListOptionsResponse; 71 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListOptionsResponse { 72 + const ENCODING: &'static str = "application/json"; 73 type Output = ListOptionsOutput<'de>; 74 type Err = jacquard_common::types::xrpc::GenericError<'de>; 75 + } 76 + 77 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListOptions<'de> { 78 + const NSID: &'static str = "tools.ozone.setting.listOptions"; 79 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 80 + jacquard_common::types::xrpc::XrpcMethod::Query; 81 + type Response<'de1> = ListOptionsResponse; 82 + }
+14 -16
crates/jacquard-api/src/tools_ozone/setting/remove_options.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RemoveOptions<'a> { ··· 56 } 57 } 58 59 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveOptions<'de> { 60 - const NSID: &'static str = "tools.ozone.setting.removeOptions"; 61 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 62 - "application/json", 63 - ); 64 - const OUTPUT_ENCODING: &'static str = "application/json"; 65 type Output = RemoveOptionsOutput<'de>; 66 type Err = jacquard_common::types::xrpc::GenericError<'de>; 67 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RemoveOptions<'a> { ··· 48 } 49 } 50 51 + ///Response type for 52 + ///tools.ozone.setting.removeOptions 53 + pub struct RemoveOptionsResponse; 54 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RemoveOptionsResponse { 55 + const ENCODING: &'static str = "application/json"; 56 type Output = RemoveOptionsOutput<'de>; 57 type Err = jacquard_common::types::xrpc::GenericError<'de>; 58 + } 59 + 60 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveOptions<'de> { 61 + const NSID: &'static str = "tools.ozone.setting.removeOptions"; 62 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 63 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 64 + type Response<'de1> = RemoveOptionsResponse; 65 + }
+14 -16
crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpsertOption<'a> { ··· 74 } 75 } 76 77 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpsertOption<'de> { 78 - const NSID: &'static str = "tools.ozone.setting.upsertOption"; 79 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 80 - "application/json", 81 - ); 82 - const OUTPUT_ENCODING: &'static str = "application/json"; 83 type Output = UpsertOptionOutput<'de>; 84 type Err = jacquard_common::types::xrpc::GenericError<'de>; 85 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpsertOption<'a> { ··· 66 } 67 } 68 69 + ///Response type for 70 + ///tools.ozone.setting.upsertOption 71 + pub struct UpsertOptionResponse; 72 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpsertOptionResponse { 73 + const ENCODING: &'static str = "application/json"; 74 type Output = UpsertOptionOutput<'de>; 75 type Err = jacquard_common::types::xrpc::GenericError<'de>; 76 + } 77 + 78 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpsertOption<'de> { 79 + const NSID: &'static str = "tools.ozone.setting.upsertOption"; 80 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 81 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 82 + type Response<'de1> = UpsertOptionResponse; 83 + }
+14 -14
crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct FindCorrelation<'a> { ··· 48 } 49 } 50 51 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for FindCorrelation<'de> { 52 - const NSID: &'static str = "tools.ozone.signature.findCorrelation"; 53 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 54 - const OUTPUT_ENCODING: &'static str = "application/json"; 55 type Output = FindCorrelationOutput<'de>; 56 type Err = jacquard_common::types::xrpc::GenericError<'de>; 57 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct FindCorrelation<'a> { ··· 40 } 41 } 42 43 + ///Response type for 44 + ///tools.ozone.signature.findCorrelation 45 + pub struct FindCorrelationResponse; 46 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for FindCorrelationResponse { 47 + const ENCODING: &'static str = "application/json"; 48 type Output = FindCorrelationOutput<'de>; 49 type Err = jacquard_common::types::xrpc::GenericError<'de>; 50 + } 51 + 52 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for FindCorrelation<'de> { 53 + const NSID: &'static str = "tools.ozone.signature.findCorrelation"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 55 + jacquard_common::types::xrpc::XrpcMethod::Query; 56 + type Response<'de1> = FindCorrelationResponse; 57 + }
+14 -14
crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct SearchAccounts<'a> { ··· 61 } 62 } 63 64 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchAccounts<'de> { 65 - const NSID: &'static str = "tools.ozone.signature.searchAccounts"; 66 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 67 - const OUTPUT_ENCODING: &'static str = "application/json"; 68 type Output = SearchAccountsOutput<'de>; 69 type Err = jacquard_common::types::xrpc::GenericError<'de>; 70 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct SearchAccounts<'a> { ··· 53 } 54 } 55 56 + ///Response type for 57 + ///tools.ozone.signature.searchAccounts 58 + pub struct SearchAccountsResponse; 59 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchAccountsResponse { 60 + const ENCODING: &'static str = "application/json"; 61 type Output = SearchAccountsOutput<'de>; 62 type Err = jacquard_common::types::xrpc::GenericError<'de>; 63 + } 64 + 65 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchAccounts<'de> { 66 + const NSID: &'static str = "tools.ozone.signature.searchAccounts"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 68 + jacquard_common::types::xrpc::XrpcMethod::Query; 69 + type Response<'de1> = SearchAccountsResponse; 70 + }
+15 -17
crates/jacquard-api/src/tools_ozone/team/add_member.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct AddMember<'a> { ··· 71 PartialEq, 72 Eq, 73 thiserror::Error, 74 - miette::Diagnostic 75 )] 76 #[serde(tag = "error", content = "message")] 77 #[serde(bound(deserialize = "'de: 'a"))] ··· 108 } 109 } 110 111 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddMember<'de> { 112 - const NSID: &'static str = "tools.ozone.team.addMember"; 113 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 114 - "application/json", 115 - ); 116 - const OUTPUT_ENCODING: &'static str = "application/json"; 117 type Output = AddMemberOutput<'de>; 118 type Err = AddMemberError<'de>; 119 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct AddMember<'a> { ··· 63 PartialEq, 64 Eq, 65 thiserror::Error, 66 + miette::Diagnostic, 67 )] 68 #[serde(tag = "error", content = "message")] 69 #[serde(bound(deserialize = "'de: 'a"))] ··· 100 } 101 } 102 103 + ///Response type for 104 + ///tools.ozone.team.addMember 105 + pub struct AddMemberResponse; 106 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddMemberResponse { 107 + const ENCODING: &'static str = "application/json"; 108 type Output = AddMemberOutput<'de>; 109 type Err = AddMemberError<'de>; 110 + } 111 + 112 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddMember<'de> { 113 + const NSID: &'static str = "tools.ozone.team.addMember"; 114 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 115 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 116 + type Response<'de1> = AddMemberResponse; 117 + }
+15 -17
crates/jacquard-api/src/tools_ozone/team/delete_member.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct DeleteMember<'a> { ··· 48 PartialEq, 49 Eq, 50 thiserror::Error, 51 - miette::Diagnostic 52 )] 53 #[serde(tag = "error", content = "message")] 54 #[serde(bound(deserialize = "'de: 'a"))] ··· 98 } 99 } 100 101 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteMember<'de> { 102 - const NSID: &'static str = "tools.ozone.team.deleteMember"; 103 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 104 - "application/json", 105 - ); 106 - const OUTPUT_ENCODING: &'static str = "application/json"; 107 type Output = (); 108 type Err = DeleteMemberError<'de>; 109 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct DeleteMember<'a> { ··· 40 PartialEq, 41 Eq, 42 thiserror::Error, 43 + miette::Diagnostic, 44 )] 45 #[serde(tag = "error", content = "message")] 46 #[serde(bound(deserialize = "'de: 'a"))] ··· 90 } 91 } 92 93 + ///Response type for 94 + ///tools.ozone.team.deleteMember 95 + pub struct DeleteMemberResponse; 96 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteMemberResponse { 97 + const ENCODING: &'static str = "application/json"; 98 type Output = (); 99 type Err = DeleteMemberError<'de>; 100 + } 101 + 102 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteMember<'de> { 103 + const NSID: &'static str = "tools.ozone.team.deleteMember"; 104 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 105 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 106 + type Response<'de1> = DeleteMemberResponse; 107 + }
+14 -14
crates/jacquard-api/src/tools_ozone/team/list_members.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListMembers<'a> { ··· 70 } 71 } 72 73 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListMembers<'de> { 74 - const NSID: &'static str = "tools.ozone.team.listMembers"; 75 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 76 - const OUTPUT_ENCODING: &'static str = "application/json"; 77 type Output = ListMembersOutput<'de>; 78 type Err = jacquard_common::types::xrpc::GenericError<'de>; 79 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListMembers<'a> { ··· 62 } 63 } 64 65 + ///Response type for 66 + ///tools.ozone.team.listMembers 67 + pub struct ListMembersResponse; 68 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListMembersResponse { 69 + const ENCODING: &'static str = "application/json"; 70 type Output = ListMembersOutput<'de>; 71 type Err = jacquard_common::types::xrpc::GenericError<'de>; 72 + } 73 + 74 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListMembers<'de> { 75 + const NSID: &'static str = "tools.ozone.team.listMembers"; 76 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 77 + jacquard_common::types::xrpc::XrpcMethod::Query; 78 + type Response<'de1> = ListMembersResponse; 79 + }
+15 -17
crates/jacquard-api/src/tools_ozone/team/update_member.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct UpdateMember<'a> { ··· 75 PartialEq, 76 Eq, 77 thiserror::Error, 78 - miette::Diagnostic 79 )] 80 #[serde(tag = "error", content = "message")] 81 #[serde(bound(deserialize = "'de: 'a"))] ··· 112 } 113 } 114 115 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateMember<'de> { 116 - const NSID: &'static str = "tools.ozone.team.updateMember"; 117 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 118 - "application/json", 119 - ); 120 - const OUTPUT_ENCODING: &'static str = "application/json"; 121 type Output = UpdateMemberOutput<'de>; 122 type Err = UpdateMemberError<'de>; 123 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct UpdateMember<'a> { ··· 67 PartialEq, 68 Eq, 69 thiserror::Error, 70 + miette::Diagnostic, 71 )] 72 #[serde(tag = "error", content = "message")] 73 #[serde(bound(deserialize = "'de: 'a"))] ··· 104 } 105 } 106 107 + ///Response type for 108 + ///tools.ozone.team.updateMember 109 + pub struct UpdateMemberResponse; 110 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateMemberResponse { 111 + const ENCODING: &'static str = "application/json"; 112 type Output = UpdateMemberOutput<'de>; 113 type Err = UpdateMemberError<'de>; 114 + } 115 + 116 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateMember<'de> { 117 + const NSID: &'static str = "tools.ozone.team.updateMember"; 118 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 119 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 120 + type Response<'de1> = UpdateMemberResponse; 121 + }
+14 -16
crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs
··· 30 } 31 32 #[jacquard_derive::lexicon] 33 - #[derive( 34 - serde::Serialize, 35 - serde::Deserialize, 36 - Debug, 37 - Clone, 38 - PartialEq, 39 - Eq, 40 - bon::Builder 41 - )] 42 #[serde(rename_all = "camelCase")] 43 #[builder(start_fn = new)] 44 pub struct GrantVerifications<'a> { ··· 85 } 86 } 87 88 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GrantVerifications<'de> { 89 - const NSID: &'static str = "tools.ozone.verification.grantVerifications"; 90 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 91 - "application/json", 92 - ); 93 - const OUTPUT_ENCODING: &'static str = "application/json"; 94 type Output = GrantVerificationsOutput<'de>; 95 type Err = jacquard_common::types::xrpc::GenericError<'de>; 96 } 97 98 #[jacquard_derive::lexicon] ··· 124 extra_data: self.extra_data.into_static(), 125 } 126 } 127 - }
··· 30 } 31 32 #[jacquard_derive::lexicon] 33 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 34 #[serde(rename_all = "camelCase")] 35 #[builder(start_fn = new)] 36 pub struct GrantVerifications<'a> { ··· 77 } 78 } 79 80 + ///Response type for 81 + ///tools.ozone.verification.grantVerifications 82 + pub struct GrantVerificationsResponse; 83 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GrantVerificationsResponse { 84 + const ENCODING: &'static str = "application/json"; 85 type Output = GrantVerificationsOutput<'de>; 86 type Err = jacquard_common::types::xrpc::GenericError<'de>; 87 + } 88 + 89 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GrantVerifications<'de> { 90 + const NSID: &'static str = "tools.ozone.verification.grantVerifications"; 91 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 92 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 93 + type Response<'de1> = GrantVerificationsResponse; 94 } 95 96 #[jacquard_derive::lexicon] ··· 122 extra_data: self.extra_data.into_static(), 123 } 124 } 125 + }
+14 -14
crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 - #[derive( 9 - serde::Serialize, 10 - serde::Deserialize, 11 - Debug, 12 - Clone, 13 - PartialEq, 14 - Eq, 15 - bon::Builder 16 - )] 17 #[builder(start_fn = new)] 18 #[serde(rename_all = "camelCase")] 19 pub struct ListVerifications<'a> { ··· 81 } 82 } 83 84 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListVerifications<'de> { 85 - const NSID: &'static str = "tools.ozone.verification.listVerifications"; 86 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 87 - const OUTPUT_ENCODING: &'static str = "application/json"; 88 type Output = ListVerificationsOutput<'de>; 89 type Err = jacquard_common::types::xrpc::GenericError<'de>; 90 - }
··· 5 // This file was automatically generated from Lexicon schemas. 6 // Any manual changes will be overwritten on the next regeneration. 7 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 9 #[builder(start_fn = new)] 10 #[serde(rename_all = "camelCase")] 11 pub struct ListVerifications<'a> { ··· 73 } 74 } 75 76 + ///Response type for 77 + ///tools.ozone.verification.listVerifications 78 + pub struct ListVerificationsResponse; 79 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListVerificationsResponse { 80 + const ENCODING: &'static str = "application/json"; 81 type Output = ListVerificationsOutput<'de>; 82 type Err = jacquard_common::types::xrpc::GenericError<'de>; 83 + } 84 + 85 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListVerifications<'de> { 86 + const NSID: &'static str = "tools.ozone.verification.listVerifications"; 87 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 88 + jacquard_common::types::xrpc::XrpcMethod::Query; 89 + type Response<'de1> = ListVerificationsResponse; 90 + }
+14 -16
crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 - #[derive( 10 - serde::Serialize, 11 - serde::Deserialize, 12 - Debug, 13 - Clone, 14 - PartialEq, 15 - Eq, 16 - bon::Builder 17 - )] 18 #[serde(rename_all = "camelCase")] 19 #[builder(start_fn = new)] 20 pub struct RevokeVerifications<'a> { ··· 69 } 70 } 71 72 - impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeVerifications<'de> { 73 - const NSID: &'static str = "tools.ozone.verification.revokeVerifications"; 74 - const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 75 - "application/json", 76 - ); 77 - const OUTPUT_ENCODING: &'static str = "application/json"; 78 type Output = RevokeVerificationsOutput<'de>; 79 type Err = jacquard_common::types::xrpc::GenericError<'de>; 80 } 81 82 ///Error object for failed revocations ··· 101 extra_data: self.extra_data.into_static(), 102 } 103 } 104 - }
··· 6 // Any manual changes will be overwritten on the next regeneration. 7 8 #[jacquard_derive::lexicon] 9 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] 10 #[serde(rename_all = "camelCase")] 11 #[builder(start_fn = new)] 12 pub struct RevokeVerifications<'a> { ··· 61 } 62 } 63 64 + ///Response type for 65 + ///tools.ozone.verification.revokeVerifications 66 + pub struct RevokeVerificationsResponse; 67 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RevokeVerificationsResponse { 68 + const ENCODING: &'static str = "application/json"; 69 type Output = RevokeVerificationsOutput<'de>; 70 type Err = jacquard_common::types::xrpc::GenericError<'de>; 71 + } 72 + 73 + impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeVerifications<'de> { 74 + const NSID: &'static str = "tools.ozone.verification.revokeVerifications"; 75 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = 76 + jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json"); 77 + type Response<'de1> = RevokeVerificationsResponse; 78 } 79 80 ///Error object for failed revocations ··· 99 extra_data: self.extra_data.into_static(), 100 } 101 } 102 + }
+1
crates/jacquard-axum/Cargo.toml
··· 19 jacquard-common = { version = "0.3.0", path = "../jacquard-common", features = ["reqwest-client"] } 20 miette.workspace = true 21 serde.workspace = true 22 serde_ipld_dagcbor.workspace = true 23 serde_json.workspace = true 24 thiserror.workspace = true
··· 19 jacquard-common = { version = "0.3.0", path = "../jacquard-common", features = ["reqwest-client"] } 20 miette.workspace = true 21 serde.workspace = true 22 + serde_html_form.workspace = true 23 serde_ipld_dagcbor.workspace = true 24 serde_json.workspace = true 25 thiserror.workspace = true
+51 -10
crates/jacquard-axum/src/lib.rs
··· 14 use serde::Serialize; 15 use serde_json::json; 16 17 - pub struct ExtractXrpc<R: XrpcRequest<'static>>(R); 18 19 impl<S, R> FromRequest<S> for ExtractXrpc<R> 20 where ··· 43 ) 44 .into_response() 45 })?; 46 - Ok(ExtractXrpc(value)) 47 } 48 "*/*" => { 49 - // 50 - todo!() 51 } 52 - _ => todo!(), 53 } 54 } 55 XrpcMethod::Query => { 56 if let Some(path_query) = req.uri().path_and_query() { 57 let path = path_query.path(); 58 - let query = path_query.query(); 59 if path.ends_with(R::NSID) { 60 - // success 61 } else { 62 - // wrong endpoint 63 } 64 } 65 - 66 - todo!() 67 } 68 } 69 }
··· 14 use serde::Serialize; 15 use serde_json::json; 16 17 + pub struct ExtractXrpc<R: XrpcRequest<'static>>(Option<R>); 18 19 impl<S, R> FromRequest<S> for ExtractXrpc<R> 20 where ··· 43 ) 44 .into_response() 45 })?; 46 + Ok(ExtractXrpc(Some(value))) 47 } 48 "*/*" => { 49 + let decoded = R::decode_body(&body); 50 + match decoded { 51 + Ok(value) => Ok(ExtractXrpc(Some(*value))), 52 + Err(err) => Err(( 53 + StatusCode::BAD_REQUEST, 54 + serde_json::to_string(&json!({ 55 + "error": "InvalidRequest", 56 + "message": format!("failed to decode request: {}", err) 57 + })) 58 + .expect("Failed to serialize error response"), 59 + ) 60 + .into_response()), 61 + } 62 } 63 + _ => todo!("handle other encodings"), 64 } 65 } 66 XrpcMethod::Query => { 67 if let Some(path_query) = req.uri().path_and_query() { 68 let path = path_query.path(); 69 if path.ends_with(R::NSID) { 70 + if let Some(query) = path_query.query() { 71 + let value: R = serde_html_form::from_str(query).map_err(|e| { 72 + ( 73 + StatusCode::BAD_REQUEST, 74 + serde_json::to_string(&json!({ 75 + "error": "InvalidRequest", 76 + "message": format!("failed to decode request: {}", e) 77 + })) 78 + .expect("Failed to serialize error response"), 79 + ) 80 + .into_response() 81 + })?; 82 + Ok(ExtractXrpc(Some(value))) 83 + } else { 84 + Ok(ExtractXrpc(None)) 85 + } 86 } else { 87 + Err(( 88 + StatusCode::BAD_REQUEST, 89 + serde_json::to_string(&json!({ 90 + "error": "InvalidRequest", 91 + "message": "wrong nsid for wherever this ended up" 92 + })) 93 + .expect("Failed to serialize error response"), 94 + ) 95 + .into_response()) 96 } 97 + } else { 98 + Err(( 99 + StatusCode::BAD_REQUEST, 100 + serde_json::to_string(&json!({ 101 + "error": "InvalidRequest", 102 + "message": "wrong nsid for wherever this ended up" 103 + })) 104 + .expect("Failed to serialize error response"), 105 + ) 106 + .into_response()) 107 } 108 } 109 } 110 }
+2 -39
crates/jacquard-common/src/cowstr.rs
··· 1 use serde::{Deserialize, Serialize}; 2 use smol_str::SmolStr; 3 use std::{ 4 - borrow::Cow, 5 fmt, 6 hash::{Hash, Hasher}, 7 ops::Deref, ··· 283 } 284 } 285 286 - // impl<'de> Deserialize<'de> for CowStr<'_> { 287 - // #[inline] 288 - // fn deserialize<D>(deserializer: D) -> Result<CowStr<'static>, D::Error> 289 - // where 290 - // D: serde::Deserializer<'de>, 291 - // { 292 - // struct CowStrVisitor; 293 - 294 - // impl<'de> serde::de::Visitor<'de> for CowStrVisitor { 295 - // type Value = CowStr<'static>; 296 - 297 - // #[inline] 298 - // fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { 299 - // write!(formatter, "a string") 300 - // } 301 - 302 - // #[inline] 303 - // fn visit_str<E>(self, v: &str) -> Result<Self::Value, E> 304 - // where 305 - // E: serde::de::Error, 306 - // { 307 - // Ok(CowStr::copy_from_str(v)) 308 - // } 309 - 310 - // #[inline] 311 - // fn visit_string<E>(self, v: String) -> Result<Self::Value, E> 312 - // where 313 - // E: serde::de::Error, 314 - // { 315 - // Ok(v.into()) 316 - // } 317 - // } 318 - 319 - // deserializer.deserialize_str(CowStrVisitor) 320 - // } 321 - // } 322 - 323 - impl<'de, 'a, 'b> Deserialize<'de> for CowStr<'a> 324 where 325 'de: 'a, 326 {
··· 1 use serde::{Deserialize, Serialize}; 2 use smol_str::SmolStr; 3 use std::{ 4 + borrow::{Borrow, Cow}, 5 fmt, 6 hash::{Hash, Hasher}, 7 ops::Deref, ··· 283 } 284 } 285 286 + impl<'de, 'a> Deserialize<'de> for CowStr<'a> 287 where 288 'de: 'a, 289 {
+1 -3
crates/jacquard-common/src/error.rs
··· 1 //! Error types for XRPC client operations 2 3 - use bytes::Bytes; 4 - use serde::{Deserialize, Serialize}; 5 - 6 use crate::types::xrpc::EncodeError; 7 8 /// Client error type wrapping all possible error conditions 9 #[derive(Debug, thiserror::Error, miette::Diagnostic)]
··· 1 //! Error types for XRPC client operations 2 3 use crate::types::xrpc::EncodeError; 4 + use bytes::Bytes; 5 6 /// Client error type wrapping all possible error conditions 7 #[derive(Debug, thiserror::Error, miette::Diagnostic)]
+147 -166
crates/jacquard-common/src/types/xrpc.rs
··· 17 }; 18 use serde::{Deserialize, Serialize}; 19 use smol_str::SmolStr; 20 - use std::fmt::{self, Debug, Display}; 21 use std::{error::Error, marker::PhantomData}; 22 use url::Url; 23 ··· 90 /// XRPC method (query/GET or procedure/POST) 91 const METHOD: XrpcMethod; 92 93 - /// Output encoding (MIME type) 94 - const OUTPUT_ENCODING: &'static str; 95 - 96 - /// Response output type 97 - type Output: Deserialize<'de> + IntoStatic; 98 - 99 - /// Error type for this request 100 - type Err: Error + Deserialize<'de> + IntoStatic; 101 102 /// Encode the request body for procedures. 103 /// ··· 109 /// Decode the request body for procedures. 110 /// 111 /// Default implementation deserializes from JSON. Override for non-JSON encodings. 112 - fn decode_body(&self, body: &'de [u8]) -> Result<Box<Self>, DecodeError> { 113 let body: Self = serde_json::from_slice(body).map_err(|e| DecodeError::Json(e))?; 114 115 Ok(Box::new(body)) 116 } 117 } 118 119 /// Error type for XRPC endpoints that don't define any errors 120 #[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)] 121 pub struct GenericError<'a>(#[serde(borrow)] Data<'a>); ··· 206 207 impl<T: HttpClient> XrpcExt for T {} 208 209 /// Stateless XRPC call builder. 210 /// 211 /// Example (per-request overrides) ··· 278 /// inspect the header for `error="invalid_token"` or `error="use_dpop_nonce"` and react 279 /// (refresh/retry). If the header is absent, the 401 body flows through to `Response` and 280 /// can be parsed/mapped to `AuthError` as appropriate. 281 - pub async fn send<'de, R>(self, request: &'de R) -> XrpcResult<Response<'de, R>> 282 where 283 - R: XrpcRequest<'de> + Send, 284 { 285 let http_request = build_http_request(&self.base, request, &self.opts) 286 .map_err(crate::error::TransportError::from)?; ··· 293 294 process_response(http_response) 295 } 296 - 297 - /// Send the given typed XRPC request and return an owned response wrapper. 298 - /// 299 - /// Note on 401 handling: 300 - /// - When the server returns 401 with a `WWW-Authenticate` header, this surfaces as 301 - /// `ClientError::Auth(AuthError::Other(header))` so higher layers (e.g., OAuth/DPoP) can 302 - /// inspect the header for `error="invalid_token"` or `error="use_dpop_nonce"` and react 303 - /// (refresh/retry). If the header is absent, the 401 body flows through to `Response` and 304 - /// can be parsed/mapped to `AuthError` as appropriate. 305 - pub async fn send_owned<'de, R, S>(self, request: R) -> XrpcResult<OwnedResponse<S>> 306 - where 307 - R: XrpcRequest<'de> + Send + 'de, 308 - S: XrpcRequest<'static>, 309 - { 310 - let http_request = build_http_request(&self.base, &request, &self.opts) 311 - .map_err(crate::error::TransportError::from)?; 312 - 313 - let http_response = self 314 - .client 315 - .send_http(http_request) 316 - .await 317 - .map_err(|e| crate::error::TransportError::Other(Box::new(e)))?; 318 - 319 - let resp: XrpcResult<Response<'de, R>> = process_response(http_response); 320 - match resp { 321 - Ok(response) => Ok(response.owned()), 322 - Err(err) => Err(err), 323 - } 324 - } 325 } 326 327 /// Process the HTTP response from the server into a proper xrpc response statelessly. 328 /// 329 /// Exposed to make things more easily pluggable 330 #[inline] 331 - pub fn process_response<'de, R: XrpcRequest<'de> + Send>( 332 - http_response: http::Response<Vec<u8>>, 333 - ) -> XrpcResult<Response<'de, R>> { 334 let status = http_response.status(); 335 // If the server returned 401 with a WWW-Authenticate header, expose it so higher layers 336 // (e.g., DPoP handling) can detect `error="invalid_token"` and trigger refresh. ··· 380 } 381 382 /// Build an HTTP request for an XRPC call given base URL and options 383 - pub fn build_http_request<'de, R: XrpcRequest<'de>>( 384 base: &Url, 385 req: &R, 386 opts: &CallOptions<'_>, 387 - ) -> core::result::Result<Request<Vec<u8>>, crate::error::TransportError> { 388 let mut url = base.clone(); 389 let mut path = url.path().trim_end_matches('/').to_owned(); 390 path.push_str("/xrpc/"); 391 - path.push_str(R::NSID); 392 url.set_path(&path); 393 394 - if let XrpcMethod::Query = R::METHOD { 395 let qs = serde_html_form::to_string(&req) 396 .map_err(|e| crate::error::TransportError::InvalidRequest(e.to_string()))?; 397 if !qs.is_empty() { ··· 401 } 402 } 403 404 - let method = match R::METHOD { 405 XrpcMethod::Query => http::Method::GET, 406 XrpcMethod::Procedure(_) => http::Method::POST, 407 }; 408 409 let mut builder = Request::builder().method(method).uri(url.as_str()); 410 411 - if let XrpcMethod::Procedure(encoding) = R::METHOD { 412 builder = builder.header(Header::ContentType, encoding); 413 } 414 - builder = builder.header(http::header::ACCEPT, R::OUTPUT_ENCODING); 415 416 if let Some(token) = &opts.auth { 417 let hv = match token { ··· 458 /// XRPC response wrapper that owns the response buffer 459 /// 460 /// Allows borrowing from the buffer when parsing to avoid unnecessary allocations. 461 - pub struct Response<'de, R: XrpcRequest<'de>> { 462 - buffer: Bytes, 463 - status: StatusCode, 464 - _marker: PhantomData<&'de R>, 465 - } 466 - 467 - /// Owned response wrapper which allows taking ownership of the resulting response type 468 - pub struct OwnedResponse<R: XrpcRequest<'static>> { 469 buffer: Bytes, 470 status: StatusCode, 471 - _marker: PhantomData<R>, 472 } 473 474 - impl<'de, R: XrpcRequest<'de>> Response<'de, R> { 475 /// Create a new response from a buffer and status code 476 pub fn new(buffer: Bytes, status: StatusCode) -> Self { 477 Self { ··· 486 self.status 487 } 488 489 /// Parse the response, borrowing from the internal buffer 490 - pub fn parse(&'de self) -> Result<R::Output, XrpcError<R::Err>> { 491 - // Use a helper to make lifetime inference work 492 - fn parse_output<'b, R: XrpcRequest<'b>>( 493 - buffer: &'b [u8], 494 - ) -> Result<R::Output, serde_json::Error> { 495 - serde_json::from_slice(buffer) 496 - } 497 - 498 - fn parse_error<'b, R: XrpcRequest<'b>>( 499 - buffer: &'b [u8], 500 - ) -> Result<R::Err, serde_json::Error> { 501 - serde_json::from_slice(buffer) 502 - } 503 504 // 200: parse as output 505 if self.status.is_success() { 506 - match parse_output::<'de, R>(&self.buffer) { 507 Ok(output) => Ok(output), 508 Err(e) => Err(XrpcError::Decode(e)), 509 } 510 // 400: try typed XRPC error, fallback to generic error 511 } else if self.status.as_u16() == 400 { 512 - match parse_error::<'de, R>(&self.buffer) { 513 Ok(error) => Err(XrpcError::Xrpc(error)), 514 Err(_) => { 515 // Fallback to generic error (InvalidRequest, ExpiredToken, etc.) 516 match serde_json::from_slice::<GenericXrpcError>(&self.buffer) { 517 Ok(mut generic) => { 518 - generic.nsid = R::NSID; 519 - generic.method = R::METHOD.as_str(); 520 generic.http_status = self.status; 521 // Map auth-related errors to AuthError 522 match generic.error.as_str() { 523 - "ExpiredToken" => { 524 - Err(XrpcError::<R::Err>::Auth(AuthError::TokenExpired)) 525 - } 526 - "InvalidToken" => { 527 - Err(XrpcError::<R::Err>::Auth(AuthError::InvalidToken)) 528 - } 529 _ => Err(XrpcError::Generic(generic)), 530 } 531 } ··· 537 } else { 538 match serde_json::from_slice::<GenericXrpcError>(&self.buffer) { 539 Ok(mut generic) => { 540 - generic.nsid = R::NSID; 541 - generic.method = R::METHOD.as_str(); 542 generic.http_status = self.status; 543 match generic.error.as_str() { 544 - "ExpiredToken" => Err(XrpcError::<R::Err>::Auth(AuthError::TokenExpired)), 545 - "InvalidToken" => Err(XrpcError::<R::Err>::Auth(AuthError::InvalidToken)), 546 - _ => Err(XrpcError::<R::Err>::Auth(AuthError::NotAuthenticated)), 547 } 548 } 549 Err(e) => Err(XrpcError::Decode(e)), 550 } 551 } 552 } 553 - 554 - /// Get the raw buffer 555 - pub fn buffer(&self) -> &Bytes { 556 - &self.buffer 557 - } 558 - 559 - /// Take ownership of the response so the original can be dropped 560 - pub fn owned<S>(&self) -> OwnedResponse<S> 561 - where 562 - S: XrpcRequest<'static>, 563 - { 564 - OwnedResponse { 565 - buffer: self.buffer.clone(), 566 - status: self.status, 567 - _marker: std::marker::PhantomData, 568 - } 569 - } 570 } 571 572 - impl<R: XrpcRequest<'static>> OwnedResponse<R> { 573 /// Parse the response into an owned output 574 - pub fn output(self) -> Result<R::Output, XrpcError<R::Err>> 575 where 576 - for<'a> R::Output: IntoStatic<Output = R::Output>, 577 - for<'a> R::Err: IntoStatic<Output = R::Err>, 578 { 579 // Use a helper to make lifetime inference work 580 fn parse_output<'b, R: XrpcRequest<'b>>( 581 - buffer: Box<[u8]>, 582 - ) -> Result<R::Output, serde_json::Error> { 583 - let buf: &'static [u8] = Box::leak(buffer); 584 - serde_json::from_slice(buf) 585 } 586 587 fn parse_error<'b, R: XrpcRequest<'b>>( 588 - buffer: Box<[u8]>, 589 - ) -> Result<R::Err, serde_json::Error> { 590 - let buf: &'static [u8] = Box::leak(buffer); 591 - serde_json::from_slice(buf) 592 } 593 594 // 200: parse as output 595 if self.status.is_success() { 596 - match parse_output::<'static, R>(Box::from(self.buffer.as_ref())) { 597 - Ok(output) => Ok(output.into_static()), 598 - Err(e) => Err(XrpcError::<R::Err>::Decode(e).into_static()), 599 } 600 // 400: try typed XRPC error, fallback to generic error 601 } else if self.status.as_u16() == 400 { 602 - let result = match parse_error::<'static, R>(Box::from(self.buffer.as_ref())) { 603 Ok(error) => XrpcError::Xrpc(error), 604 Err(_) => { 605 // Fallback to generic error (InvalidRequest, ExpiredToken, etc.) ··· 610 generic.http_status = self.status; 611 // Map auth-related errors to AuthError 612 match generic.error.as_ref() { 613 - "ExpiredToken" => { 614 - XrpcError::<R::Err>::Auth(AuthError::TokenExpired) 615 - } 616 - "InvalidToken" => { 617 - XrpcError::<R::Err>::Auth(AuthError::InvalidToken) 618 - } 619 _ => XrpcError::Generic(generic), 620 } 621 } ··· 623 } 624 } 625 }; 626 - Err(result.into_static()) 627 // 401: always auth error 628 } else { 629 - let result = match serde_json::from_slice::<GenericXrpcError>(&self.buffer) { 630 - Ok(mut generic) => { 631 - let status = self.status; 632 - generic.nsid = R::NSID; 633 - generic.method = R::METHOD.as_str(); 634 - generic.http_status = status; 635 - match generic.error.as_ref() { 636 - "ExpiredToken" => XrpcError::<R::Err>::Auth(AuthError::TokenExpired), 637 - "InvalidToken" => XrpcError::<R::Err>::Auth(AuthError::InvalidToken), 638 - _ => XrpcError::<R::Err>::Auth(AuthError::NotAuthenticated), 639 } 640 - } 641 - Err(e) => XrpcError::Decode(e), 642 - }; 643 - Err(result.into_static()) 644 } 645 } 646 } ··· 698 /// Represents errors returned in the response body 699 /// Type parameter `E` is the endpoint's specific error enum type. 700 #[derive(Debug, thiserror::Error, miette::Diagnostic)] 701 - pub enum XrpcError<E: Debug + Display + IntoStatic> { 702 /// Typed XRPC error from the endpoint's specific error enum 703 #[error("XRPC error: {0}")] 704 #[diagnostic(code(jacquard_common::xrpc::typed))] ··· 720 Decode(#[from] serde_json::Error), 721 } 722 723 - impl<E: std::error::Error + IntoStatic> IntoStatic for XrpcError<E> 724 where 725 - <E as crate::into_static::IntoStatic>::Output: IntoStatic, 726 - <E as crate::into_static::IntoStatic>::Output: Debug + Display, 727 { 728 type Output = XrpcError<E::Output>; 729 fn into_static(self) -> Self::Output { ··· 755 } 756 } 757 758 impl<'de> XrpcRequest<'de> for DummyReq { 759 const NSID: &'static str = "test.dummy"; 760 const METHOD: XrpcMethod = XrpcMethod::Procedure("application/json"); 761 - const OUTPUT_ENCODING: &'static str = "application/json"; 762 - type Output = (); 763 - type Err = DummyErr<'de>; 764 } 765 766 #[test] ··· 834 } 835 } 836 } 837 - 838 - /// Stateful XRPC call trait 839 - pub trait XrpcClient: HttpClient { 840 - /// Get the base URI for the client. 841 - fn base_uri(&self) -> Url; 842 - 843 - /// Get the call options for the client. 844 - fn opts(&self) -> impl Future<Output = CallOptions<'_>> { 845 - async { CallOptions::default() } 846 - } 847 - /// Send an XRPC request and parse the response 848 - fn send<'de, R: XrpcRequest<'de> + Send>( 849 - &self, 850 - request: &'de R, 851 - ) -> impl Future<Output = XrpcResult<Response<'de, R>>>; 852 - }
··· 17 }; 18 use serde::{Deserialize, Serialize}; 19 use smol_str::SmolStr; 20 + use std::{ 21 + borrow::Borrow, 22 + fmt::{self, Debug, Display}, 23 + }; 24 use std::{error::Error, marker::PhantomData}; 25 use url::Url; 26 ··· 93 /// XRPC method (query/GET or procedure/POST) 94 const METHOD: XrpcMethod; 95 96 + type Response<'de1>: XrpcResp<'de1>; 97 98 /// Encode the request body for procedures. 99 /// ··· 105 /// Decode the request body for procedures. 106 /// 107 /// Default implementation deserializes from JSON. Override for non-JSON encodings. 108 + fn decode_body(body: &'de [u8]) -> Result<Box<Self>, DecodeError> { 109 let body: Self = serde_json::from_slice(body).map_err(|e| DecodeError::Json(e))?; 110 111 Ok(Box::new(body)) 112 } 113 } 114 115 + pub trait XrpcResp<'de> { 116 + /// Output encoding (MIME type) 117 + const ENCODING: &'static str; 118 + 119 + /// Response output type 120 + type Output: Deserialize<'de> + IntoStatic; 121 + 122 + /// Error type for this request 123 + type Err: Error + Deserialize<'de> + IntoStatic; 124 + } 125 + 126 /// Error type for XRPC endpoints that don't define any errors 127 #[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)] 128 pub struct GenericError<'a>(#[serde(borrow)] Data<'a>); ··· 213 214 impl<T: HttpClient> XrpcExt for T {} 215 216 + /// Stateful XRPC call trait 217 + pub trait XrpcClient: HttpClient { 218 + /// Get the base URI for the client. 219 + fn base_uri(&self) -> Url; 220 + 221 + /// Get the call options for the client. 222 + fn opts(&self) -> impl Future<Output = CallOptions<'_>> { 223 + async { CallOptions::default() } 224 + } 225 + /// Send an XRPC request and parse the response 226 + fn send<R>(&self, request: &R) -> impl Future<Output = XrpcResult<Response<R>>> 227 + where 228 + R: for<'any> XrpcRequest<'any> + Serialize + Send + Sync; 229 + } 230 + 231 /// Stateless XRPC call builder. 232 /// 233 /// Example (per-request overrides) ··· 300 /// inspect the header for `error="invalid_token"` or `error="use_dpop_nonce"` and react 301 /// (refresh/retry). If the header is absent, the 401 body flows through to `Response` and 302 /// can be parsed/mapped to `AuthError` as appropriate. 303 + pub async fn send<R>(self, request: &R) -> XrpcResult<Response<R>> 304 where 305 + R: for<'any> XrpcRequest<'any> + Serialize + Send + Sync, 306 { 307 let http_request = build_http_request(&self.base, request, &self.opts) 308 .map_err(crate::error::TransportError::from)?; ··· 315 316 process_response(http_response) 317 } 318 } 319 320 /// Process the HTTP response from the server into a proper xrpc response statelessly. 321 /// 322 /// Exposed to make things more easily pluggable 323 #[inline] 324 + pub fn process_response<R>(http_response: http::Response<Vec<u8>>) -> XrpcResult<Response<R>> 325 + where 326 + R: for<'any> XrpcRequest<'any>, 327 + { 328 let status = http_response.status(); 329 // If the server returned 401 with a WWW-Authenticate header, expose it so higher layers 330 // (e.g., DPoP handling) can detect `error="invalid_token"` and trigger refresh. ··· 374 } 375 376 /// Build an HTTP request for an XRPC call given base URL and options 377 + pub fn build_http_request<R>( 378 base: &Url, 379 req: &R, 380 opts: &CallOptions<'_>, 381 + ) -> core::result::Result<Request<Vec<u8>>, crate::error::TransportError> 382 + where 383 + R: for<'any> XrpcRequest<'any> + Serialize, 384 + { 385 let mut url = base.clone(); 386 let mut path = url.path().trim_end_matches('/').to_owned(); 387 path.push_str("/xrpc/"); 388 + path.push_str(<R as XrpcRequest<'_>>::NSID); 389 url.set_path(&path); 390 391 + if let XrpcMethod::Query = <R as XrpcRequest<'_>>::METHOD { 392 let qs = serde_html_form::to_string(&req) 393 .map_err(|e| crate::error::TransportError::InvalidRequest(e.to_string()))?; 394 if !qs.is_empty() { ··· 398 } 399 } 400 401 + let method = match <R as XrpcRequest<'_>>::METHOD { 402 XrpcMethod::Query => http::Method::GET, 403 XrpcMethod::Procedure(_) => http::Method::POST, 404 }; 405 406 let mut builder = Request::builder().method(method).uri(url.as_str()); 407 408 + if let XrpcMethod::Procedure(encoding) = <R as XrpcRequest<'_>>::METHOD { 409 builder = builder.header(Header::ContentType, encoding); 410 } 411 + let output_encoding = <R::Response<'static> as XrpcResp<'static>>::ENCODING; 412 + builder = builder.header(http::header::ACCEPT, output_encoding); 413 414 if let Some(token) = &opts.auth { 415 let hv = match token { ··· 456 /// XRPC response wrapper that owns the response buffer 457 /// 458 /// Allows borrowing from the buffer when parsing to avoid unnecessary allocations. 459 + pub struct Response<R> 460 + where 461 + R: for<'any> XrpcRequest<'any>, // HRTB: R works with any lifetime 462 + { 463 + _marker: PhantomData<R>, 464 buffer: Bytes, 465 status: StatusCode, 466 } 467 468 + impl<R> Response<R> 469 + where 470 + R: for<'any> XrpcRequest<'any>, 471 + { 472 /// Create a new response from a buffer and status code 473 pub fn new(buffer: Bytes, status: StatusCode) -> Self { 474 Self { ··· 483 self.status 484 } 485 486 + /// Get the raw buffer 487 + pub fn buffer(&self) -> &Bytes { 488 + &self.buffer 489 + } 490 + 491 /// Parse the response, borrowing from the internal buffer 492 + pub fn parse<'s>( 493 + &'s self, 494 + ) -> Result< 495 + <<R as XrpcRequest<'s>>::Response<'s> as XrpcResp<'s>>::Output, 496 + XrpcError<<<R as XrpcRequest<'s>>::Response<'s> as XrpcResp<'s>>::Err>, 497 + > { 498 + type Output<'a, R> = <<R as XrpcRequest<'a>>::Response<'a> as XrpcResp<'a>>::Output; 499 + type Err<'a, R> = <<R as XrpcRequest<'a>>::Response<'a> as XrpcResp<'a>>::Err; 500 501 // 200: parse as output 502 if self.status.is_success() { 503 + match serde_json::from_slice::<Output<'s, R>>(&self.buffer) { 504 Ok(output) => Ok(output), 505 Err(e) => Err(XrpcError::Decode(e)), 506 } 507 // 400: try typed XRPC error, fallback to generic error 508 } else if self.status.as_u16() == 400 { 509 + match serde_json::from_slice::<Err<'s, R>>(&self.buffer) { 510 Ok(error) => Err(XrpcError::Xrpc(error)), 511 Err(_) => { 512 // Fallback to generic error (InvalidRequest, ExpiredToken, etc.) 513 match serde_json::from_slice::<GenericXrpcError>(&self.buffer) { 514 Ok(mut generic) => { 515 + generic.nsid = <R as XrpcRequest<'s>>::NSID; 516 + generic.method = <R as XrpcRequest<'s>>::METHOD.as_str(); 517 generic.http_status = self.status; 518 // Map auth-related errors to AuthError 519 match generic.error.as_str() { 520 + "ExpiredToken" => Err(XrpcError::Auth(AuthError::TokenExpired)), 521 + "InvalidToken" => Err(XrpcError::Auth(AuthError::InvalidToken)), 522 _ => Err(XrpcError::Generic(generic)), 523 } 524 } ··· 530 } else { 531 match serde_json::from_slice::<GenericXrpcError>(&self.buffer) { 532 Ok(mut generic) => { 533 + generic.nsid = <R as XrpcRequest<'s>>::NSID; 534 + generic.method = <R as XrpcRequest<'s>>::METHOD.as_str(); 535 generic.http_status = self.status; 536 match generic.error.as_str() { 537 + "ExpiredToken" => Err(XrpcError::Auth(AuthError::TokenExpired)), 538 + "InvalidToken" => Err(XrpcError::Auth(AuthError::InvalidToken)), 539 + _ => Err(XrpcError::Auth(AuthError::NotAuthenticated)), 540 } 541 } 542 Err(e) => Err(XrpcError::Decode(e)), 543 } 544 } 545 } 546 } 547 548 + impl<R> Response<R> 549 + where 550 + for<'any> R: XrpcRequest<'any>, 551 + { 552 /// Parse the response into an owned output 553 + pub fn into_output( 554 + self, 555 + ) -> Result< 556 + <<R as XrpcRequest<'static>>::Response<'static> as XrpcResp<'static>>::Output, 557 + XrpcError<<<R as XrpcRequest<'static>>::Response<'static> as XrpcResp<'static>>::Err>, 558 + // <<R as XrpcRequest<'c>>::Response<'static>>::Output, 559 + // XrpcError<<<R as XrpcRequest<'c>>::Response<'static>>::Err>, 560 + > 561 where 562 + for<'a> <<R as XrpcRequest<'a>>::Response<'a> as XrpcResp<'a>>::Output: IntoStatic< 563 + Output = <<R as XrpcRequest<'static>>::Response<'static> as XrpcResp<'static>>::Output, 564 + >, 565 + for<'a> <<R as XrpcRequest<'a>>::Response<'a> as XrpcResp<'a>>::Err: IntoStatic< 566 + Output = <<R as XrpcRequest<'static>>::Response<'static> as XrpcResp<'static>>::Err, 567 + > + 'static, 568 { 569 + type Output<'d, R> = <<R as XrpcRequest<'d>>::Response<'d> as XrpcResp<'d>>::Output; 570 + type Errr<'d, R> = <<R as XrpcRequest<'d>>::Response<'d> as XrpcResp<'d>>::Err; 571 // Use a helper to make lifetime inference work 572 fn parse_output<'b, R: XrpcRequest<'b>>( 573 + buffer: &'b [u8], 574 + ) -> Result<Output<'b, R>, serde_json::Error> { 575 + serde_json::from_slice(buffer) 576 } 577 578 fn parse_error<'b, R: XrpcRequest<'b>>( 579 + buffer: &'b [u8], 580 + ) -> Result<Errr<'b, R>, serde_json::Error> { 581 + serde_json::from_slice(buffer) 582 } 583 584 // 200: parse as output 585 if self.status.is_success() { 586 + match parse_output::<R>(&self.buffer) { 587 + Ok(output) => { 588 + return Ok(output.into_static()); 589 + } 590 + Err(e) => Err(XrpcError::Decode(e)), 591 } 592 // 400: try typed XRPC error, fallback to generic error 593 } else if self.status.as_u16() == 400 { 594 + let error = match parse_error::<R>(&self.buffer) { 595 Ok(error) => XrpcError::Xrpc(error), 596 Err(_) => { 597 // Fallback to generic error (InvalidRequest, ExpiredToken, etc.) ··· 602 generic.http_status = self.status; 603 // Map auth-related errors to AuthError 604 match generic.error.as_ref() { 605 + "ExpiredToken" => XrpcError::Auth(AuthError::TokenExpired), 606 + "InvalidToken" => XrpcError::Auth(AuthError::InvalidToken), 607 _ => XrpcError::Generic(generic), 608 } 609 } ··· 611 } 612 } 613 }; 614 + Err(error.into_static()) 615 // 401: always auth error 616 } else { 617 + let error: XrpcError<<<R as XrpcRequest<'_>>::Response<'_> as XrpcResp<'_>>::Err> = 618 + match serde_json::from_slice::<GenericXrpcError>(&self.buffer) { 619 + Ok(mut generic) => { 620 + let status = self.status; 621 + generic.nsid = R::NSID; 622 + generic.method = R::METHOD.as_str(); 623 + generic.http_status = status; 624 + match generic.error.as_ref() { 625 + "ExpiredToken" => XrpcError::Auth(AuthError::TokenExpired), 626 + "InvalidToken" => XrpcError::Auth(AuthError::InvalidToken), 627 + _ => XrpcError::Auth(AuthError::NotAuthenticated), 628 + } 629 } 630 + Err(e) => XrpcError::Decode(e), 631 + }; 632 + 633 + Err(error.into_static()) 634 } 635 } 636 } ··· 688 /// Represents errors returned in the response body 689 /// Type parameter `E` is the endpoint's specific error enum type. 690 #[derive(Debug, thiserror::Error, miette::Diagnostic)] 691 + pub enum XrpcError<E: std::error::Error + IntoStatic> { 692 /// Typed XRPC error from the endpoint's specific error enum 693 #[error("XRPC error: {0}")] 694 #[diagnostic(code(jacquard_common::xrpc::typed))] ··· 710 Decode(#[from] serde_json::Error), 711 } 712 713 + impl<E> IntoStatic for XrpcError<E> 714 where 715 + E: std::error::Error + IntoStatic, 716 + E::Output: std::error::Error + IntoStatic + 'static, 717 + <E as IntoStatic>::Output: std::error::Error + IntoStatic + 'static, 718 { 719 type Output = XrpcError<E::Output>; 720 fn into_static(self) -> Self::Output { ··· 746 } 747 } 748 749 + struct DummyResp; 750 + 751 + impl<'de> XrpcResp<'de> for DummyResp { 752 + const ENCODING: &'static str = "application/json"; 753 + type Output = (); 754 + type Err = DummyErr<'de>; 755 + } 756 + 757 impl<'de> XrpcRequest<'de> for DummyReq { 758 const NSID: &'static str = "test.dummy"; 759 const METHOD: XrpcMethod = XrpcMethod::Procedure("application/json"); 760 + type Response<'de1> = DummyResp; 761 } 762 763 #[test] ··· 831 } 832 } 833 }
+5 -7
crates/jacquard-identity/src/lib.rs
··· 19 ResolverOptions, 20 }; 21 use bytes::Bytes; 22 - use jacquard_api::com_atproto::identity::resolve_did::{self, ResolveDid}; 23 use jacquard_api::com_atproto::identity::resolve_handle::ResolveHandle; 24 use jacquard_common::error::TransportError; 25 use jacquard_common::http_client::HttpClient; ··· 208 .send(&req) 209 .await 210 .map_err(|e| IdentityError::Xrpc(e.to_string()))?; 211 - let owned: OwnedResponse<ResolveHandle<'static>> = resp.owned(); 212 - let out = owned 213 - .output() 214 .map_err(|e| IdentityError::Xrpc(e.to_string()))?; 215 Did::new_owned(out.did.as_str()) 216 .map(|d| d.into_static()) ··· 233 .send(&req) 234 .await 235 .map_err(|e| IdentityError::Xrpc(e.to_string()))?; 236 - let owned: OwnedResponse<ResolveDid<'static>> = resp.owned(); 237 - let out = owned 238 - .output() 239 .map_err(|e| IdentityError::Xrpc(e.to_string()))?; 240 let doc_json = serde_json::to_value(&out.did_doc)?; 241 let s = serde_json::to_string(&doc_json)?;
··· 19 ResolverOptions, 20 }; 21 use bytes::Bytes; 22 + use jacquard_api::com_atproto::identity::resolve_did::{self, ResolveDid, ResolveDidOutput}; 23 use jacquard_api::com_atproto::identity::resolve_handle::ResolveHandle; 24 use jacquard_common::error::TransportError; 25 use jacquard_common::http_client::HttpClient; ··· 208 .send(&req) 209 .await 210 .map_err(|e| IdentityError::Xrpc(e.to_string()))?; 211 + let out = resp 212 + .into_output() 213 .map_err(|e| IdentityError::Xrpc(e.to_string()))?; 214 Did::new_owned(out.did.as_str()) 215 .map(|d| d.into_static()) ··· 232 .send(&req) 233 .await 234 .map_err(|e| IdentityError::Xrpc(e.to_string()))?; 235 + let out = resp 236 + .parse() 237 .map_err(|e| IdentityError::Xrpc(e.to_string()))?; 238 let doc_json = serde_json::to_value(&out.did_doc)?; 239 let s = serde_json::to_string(&doc_json)?;
+24 -7
crates/jacquard-lexicon/src/codegen.rs
··· 2033 quote! { jacquard_common::types::xrpc::GenericError<'de> } 2034 }; 2035 2036 // Generate encode_body() method for binary inputs 2037 let encode_body_method = if is_binary_input { 2038 quote! { ··· 2048 let decode_body_method = if is_binary_input { 2049 quote! { 2050 fn decode_body( 2051 - &self, 2052 body: &'de [u8], 2053 ) -> Result<Box<Self>, jacquard_common::error::DecodeError> { 2054 Ok(Box::new(Self { ··· 2070 }; 2071 2072 Ok(quote! { 2073 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for #impl_target { 2074 const NSID: &'static str = #nsid; 2075 const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method; 2076 - const OUTPUT_ENCODING: &'static str = #output_encoding; 2077 2078 - type Output = #output_type; 2079 - type Err = #error_type; 2080 2081 #encode_body_method 2082 #decode_body_method ··· 2091 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 2092 pub struct #request_ident; 2093 2094 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for #request_ident { 2095 const NSID: &'static str = #nsid; 2096 const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method; 2097 - const OUTPUT_ENCODING: &'static str = #output_encoding; 2098 2099 - type Output = #output_type; 2100 - type Err = #error_type; 2101 } 2102 }) 2103 }
··· 2033 quote! { jacquard_common::types::xrpc::GenericError<'de> } 2034 }; 2035 2036 + // Generate the response type that implements XrpcResp 2037 + let response_ident = syn::Ident::new( 2038 + &format!("{}Response", type_base), 2039 + proc_macro2::Span::call_site(), 2040 + ); 2041 + 2042 + let response_type = quote! { 2043 + #[doc = "Response type for "] 2044 + #[doc = #nsid] 2045 + pub struct #response_ident; 2046 + 2047 + impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for #response_ident { 2048 + const ENCODING: &'static str = #output_encoding; 2049 + type Output = #output_type; 2050 + type Err = #error_type; 2051 + } 2052 + }; 2053 + 2054 // Generate encode_body() method for binary inputs 2055 let encode_body_method = if is_binary_input { 2056 quote! { ··· 2066 let decode_body_method = if is_binary_input { 2067 quote! { 2068 fn decode_body( 2069 body: &'de [u8], 2070 ) -> Result<Box<Self>, jacquard_common::error::DecodeError> { 2071 Ok(Box::new(Self { ··· 2087 }; 2088 2089 Ok(quote! { 2090 + #response_type 2091 + 2092 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for #impl_target { 2093 const NSID: &'static str = #nsid; 2094 const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method; 2095 2096 + type Response<'de1> = #response_ident; 2097 2098 #encode_body_method 2099 #decode_body_method ··· 2108 #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] 2109 pub struct #request_ident; 2110 2111 + #response_type 2112 + 2113 impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for #request_ident { 2114 const NSID: &'static str = #nsid; 2115 const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method; 2116 2117 + type Response<'de1> = #response_ident; 2118 } 2119 }) 2120 }
+5 -2
crates/jacquard-oauth/src/client.rs
··· 375 self.options.read().await.clone() 376 } 377 378 - async fn send<'de, R: jacquard_common::types::xrpc::XrpcRequest<'de> + Send>( 379 &self, 380 - request: &'de R, 381 ) -> XrpcResult<Response<'de, R>> { 382 let base_uri = self.base_uri(); 383 let mut opts = self.options.read().await.clone();
··· 375 self.options.read().await.clone() 376 } 377 378 + async fn send< 379 + 'de, 380 + R: jacquard_common::types::xrpc::XrpcRequest<'de> + Clone + Send + Sync + 'de, 381 + >( 382 &self, 383 + request: &R, 384 ) -> XrpcResult<Response<'de, R>> { 385 let base_uri = self.base_uri(); 386 let mut opts = self.options.read().await.clone();
+2 -2
crates/jacquard/src/client.rs
··· 248 fn opts(&self) -> impl Future<Output = CallOptions<'_>> { 249 self.inner.opts() 250 } 251 - fn send<'de, R: XrpcRequest<'de> + Send>( 252 &self, 253 - request: &'de R, 254 ) -> impl Future<Output = XrpcResult<Response<'de, R>>> { 255 async move { self.inner.send(request).await } 256 }
··· 248 fn opts(&self) -> impl Future<Output = CallOptions<'_>> { 249 self.inner.opts() 250 } 251 + fn send<'de, R: XrpcRequest<'de> + Clone + Send + Sync + 'de>( 252 &self, 253 + request: &R, 254 ) -> impl Future<Output = XrpcResult<Response<'de, R>>> { 255 async move { self.inner.send(request).await } 256 }
+22 -28
crates/jacquard/src/client/credential_session.rs
··· 129 .client 130 .xrpc(endpoint) 131 .with_options(opts) 132 - .send(&RefreshSession) 133 .await?; 134 let refresh = response 135 - .owned::<RefreshSession>() 136 - .output() 137 .map_err(|_| ClientError::Auth(jacquard_common::error::AuthError::RefreshFailed))?; 138 139 let new_session: AtpSession = refresh.into(); ··· 240 .client 241 .xrpc(pds.clone()) 242 .with_options(self.options.read().await.clone()) 243 - .send(&req) 244 .await?; 245 - let out: CreateSessionOutput<'_> = resp 246 - .owned::<CreateSession<'_>>() 247 - .output() 248 .map_err(|_| ClientError::Auth(AuthError::NotAuthenticated))?; 249 let session = AtpSession::from(out); 250 ··· 419 ) 420 } 421 } 422 - async fn send<'de, R: jacquard_common::types::xrpc::XrpcRequest<'de> + Send>( 423 &self, 424 - request: &'de R, 425 ) -> XrpcResult<Response<'de, R>> { 426 let base_uri = self.base_uri(); 427 let auth = self.access_token().await; ··· 431 .client 432 .xrpc(base_uri.clone()) 433 .with_options(opts.clone()) 434 - .send(request) 435 .await; 436 437 - if is_expired(&resp) { 438 - let auth = self.refresh().await?; 439 - opts.auth = Some(auth); 440 - self.client 441 - .xrpc(base_uri) 442 - .with_options(opts) 443 - .send(request) 444 - .await 445 - } else { 446 - resp 447 } 448 } 449 } 450 - 451 - fn is_expired<'de, R: XrpcRequest<'de>>(response: &XrpcResult<Response<'de, R>>) -> bool { 452 - match response { 453 - Err(ClientError::Auth(AuthError::TokenExpired)) => true, 454 - 455 - _ => false, 456 - } 457 - }
··· 129 .client 130 .xrpc(endpoint) 131 .with_options(opts) 132 + .send(RefreshSession) 133 .await?; 134 let refresh = response 135 + .output::<RefreshSession>() 136 .map_err(|_| ClientError::Auth(jacquard_common::error::AuthError::RefreshFailed))?; 137 138 let new_session: AtpSession = refresh.into(); ··· 239 .client 240 .xrpc(pds.clone()) 241 .with_options(self.options.read().await.clone()) 242 + .send(req) 243 .await?; 244 + let out = resp 245 + .output::<CreateSession<'_>>() 246 .map_err(|_| ClientError::Auth(AuthError::NotAuthenticated))?; 247 let session = AtpSession::from(out); 248 ··· 417 ) 418 } 419 } 420 + async fn send< 421 + 'de, 422 + R: jacquard_common::types::xrpc::XrpcRequest<'de> + Clone + Send + Sync + 'de, 423 + >( 424 &self, 425 + request: &R, 426 ) -> XrpcResult<Response<'de, R>> { 427 let base_uri = self.base_uri(); 428 let auth = self.access_token().await; ··· 432 .client 433 .xrpc(base_uri.clone()) 434 .with_options(opts.clone()) 435 + .send(request.clone()) 436 .await; 437 438 + match resp { 439 + Err(ClientError::Auth(AuthError::TokenExpired)) => { 440 + let auth = self.refresh().await?; 441 + opts.auth = Some(auth); 442 + self.client 443 + .xrpc(base_uri) 444 + .with_options(opts) 445 + .send(request.clone()) 446 + .await 447 + } 448 + resp => resp, 449 } 450 } 451 }
+2 -2
crates/jacquard/src/main.rs
··· 7 #[cfg(feature = "loopback")] 8 use jacquard::oauth::loopback::LoopbackConfig; 9 use jacquard::types::xrpc::XrpcClient; 10 #[cfg(not(feature = "loopback"))] 11 use jacquard_oauth::types::AuthorizeOptions; 12 use miette::IntoDiagnostic; ··· 76 let timeline = agent 77 .send(&GetTimeline::new().limit(5).build()) 78 .await? 79 - .owned::<GetTimeline>() 80 - .output()?; 81 for (i, post) in timeline.feed.iter().enumerate() { 82 println!("\n{}. by {}", i + 1, post.post.author.handle); 83 println!(
··· 7 #[cfg(feature = "loopback")] 8 use jacquard::oauth::loopback::LoopbackConfig; 9 use jacquard::types::xrpc::XrpcClient; 10 + use jacquard_api::app_bsky::feed::get_timeline::GetTimelineOutput; 11 #[cfg(not(feature = "loopback"))] 12 use jacquard_oauth::types::AuthorizeOptions; 13 use miette::IntoDiagnostic; ··· 77 let timeline = agent 78 .send(&GetTimeline::new().limit(5).build()) 79 .await? 80 + .output::<GetTimeline>()?; 81 for (i, post) in timeline.feed.iter().enumerate() { 82 println!("\n{}. by {}", i + 1, post.post.author.handle); 83 println!(