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
···
"jacquard-common",
"miette",
"serde",
"serde_ipld_dagcbor",
"serde_json",
"thiserror 2.0.17",
···
"jacquard-common",
"miette",
"serde",
+
"serde_html_form",
"serde_ipld_dagcbor",
"serde_json",
"thiserror 2.0.17",
+14 -14
crates/jacquard-api/src/app_bsky/actor/get_preferences.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPreferences {}
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPreferences {
-
const NSID: &'static str = "app.bsky.actor.getPreferences";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetPreferencesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPreferences {}
···
}
}
+
///Response type for
+
///app.bsky.actor.getPreferences
+
pub struct GetPreferencesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPreferencesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetPreferencesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPreferences {
+
const NSID: &'static str = "app.bsky.actor.getPreferences";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetPreferencesResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/actor/get_profile.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetProfile<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetProfile<'de> {
-
const NSID: &'static str = "app.bsky.actor.getProfile";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetProfileOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetProfile<'a> {
···
}
}
+
///Response type for
+
///app.bsky.actor.getProfile
+
pub struct GetProfileResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetProfileResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetProfileOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetProfile<'de> {
+
const NSID: &'static str = "app.bsky.actor.getProfile";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetProfileResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/actor/get_profiles.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetProfiles<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetProfiles<'de> {
-
const NSID: &'static str = "app.bsky.actor.getProfiles";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetProfilesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetProfiles<'a> {
···
}
}
+
///Response type for
+
///app.bsky.actor.getProfiles
+
pub struct GetProfilesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetProfilesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetProfilesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetProfiles<'de> {
+
const NSID: &'static str = "app.bsky.actor.getProfiles";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetProfilesResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestions<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestions<'de> {
-
const NSID: &'static str = "app.bsky.actor.getSuggestions";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestions<'a> {
···
}
}
+
///Response type for
+
///app.bsky.actor.getSuggestions
+
pub struct GetSuggestionsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestionsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestions<'de> {
+
const NSID: &'static str = "app.bsky.actor.getSuggestions";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestionsResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/actor/put_preferences.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct PutPreferences<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferences<'de> {
-
const NSID: &'static str = "app.bsky.actor.putPreferences";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct PutPreferences<'a> {
···
}
}
+
///Response type for
+
///app.bsky.actor.putPreferences
+
pub struct PutPreferencesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutPreferencesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferences<'de> {
+
const NSID: &'static str = "app.bsky.actor.putPreferences";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = PutPreferencesResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/actor/search_actors.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchActors<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActors<'de> {
-
const NSID: &'static str = "app.bsky.actor.searchActors";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchActorsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchActors<'a> {
···
}
}
+
///Response type for
+
///app.bsky.actor.searchActors
+
pub struct SearchActorsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchActorsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchActorsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActors<'de> {
+
const NSID: &'static str = "app.bsky.actor.searchActors";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchActorsResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsTypeahead<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActorsTypeahead<'de> {
-
const NSID: &'static str = "app.bsky.actor.searchActorsTypeahead";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchActorsTypeaheadOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsTypeahead<'a> {
···
}
}
+
///Response type for
+
///app.bsky.actor.searchActorsTypeahead
+
pub struct SearchActorsTypeaheadResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchActorsTypeaheadResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchActorsTypeaheadOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActorsTypeahead<'de> {
+
const NSID: &'static str = "app.bsky.actor.searchActorsTypeahead";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchActorsTypeaheadResponse;
+
}
+16 -20
crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateBookmark<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateBookmarkError::UnsupportedCollection(v) => {
CreateBookmarkError::UnsupportedCollection(v.into_static())
}
-
CreateBookmarkError::Unknown(v) => {
-
CreateBookmarkError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateBookmark<'de> {
-
const NSID: &'static str = "app.bsky.bookmark.createBookmark";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = CreateBookmarkError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateBookmark<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateBookmarkError::UnsupportedCollection(v) => {
CreateBookmarkError::UnsupportedCollection(v.into_static())
}
+
CreateBookmarkError::Unknown(v) => CreateBookmarkError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///app.bsky.bookmark.createBookmark
+
pub struct CreateBookmarkResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateBookmarkResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = CreateBookmarkError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateBookmark<'de> {
+
const NSID: &'static str = "app.bsky.bookmark.createBookmark";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateBookmarkResponse;
+
}
+16 -20
crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteBookmark<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
DeleteBookmarkError::UnsupportedCollection(v) => {
DeleteBookmarkError::UnsupportedCollection(v.into_static())
}
-
DeleteBookmarkError::Unknown(v) => {
-
DeleteBookmarkError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteBookmark<'de> {
-
const NSID: &'static str = "app.bsky.bookmark.deleteBookmark";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = DeleteBookmarkError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteBookmark<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
DeleteBookmarkError::UnsupportedCollection(v) => {
DeleteBookmarkError::UnsupportedCollection(v.into_static())
}
+
DeleteBookmarkError::Unknown(v) => DeleteBookmarkError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///app.bsky.bookmark.deleteBookmark
+
pub struct DeleteBookmarkResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteBookmarkResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = DeleteBookmarkError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteBookmark<'de> {
+
const NSID: &'static str = "app.bsky.bookmark.deleteBookmark";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteBookmarkResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetBookmarks<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBookmarks<'de> {
-
const NSID: &'static str = "app.bsky.bookmark.getBookmarks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetBookmarksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetBookmarks<'a> {
···
}
}
+
///Response type for
+
///app.bsky.bookmark.getBookmarks
+
pub struct GetBookmarksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetBookmarksResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetBookmarksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBookmarks<'de> {
+
const NSID: &'static str = "app.bsky.bookmark.getBookmarks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetBookmarksResponse;
+
}
+13 -5
crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct DescribeFeedGenerator;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeFeedGenerator {
-
const NSID: &'static str = "app.bsky.feed.describeFeedGenerator";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = DescribeFeedGeneratorOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct DescribeFeedGenerator;
+
///Response type for
+
///app.bsky.feed.describeFeedGenerator
+
pub struct DescribeFeedGeneratorResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DescribeFeedGeneratorResponse {
+
const ENCODING: &'static str = "application/json";
type Output = DescribeFeedGeneratorOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeFeedGenerator {
+
const NSID: &'static str = "app.bsky.feed.describeFeedGenerator";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = DescribeFeedGeneratorResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetActorFeeds<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorFeeds<'de> {
-
const NSID: &'static str = "app.bsky.feed.getActorFeeds";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetActorFeedsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetActorFeeds<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getActorFeeds
+
pub struct GetActorFeedsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetActorFeedsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetActorFeedsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorFeeds<'de> {
+
const NSID: &'static str = "app.bsky.feed.getActorFeeds";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetActorFeedsResponse;
+
}
+16 -18
crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetActorLikes<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetActorLikesError::BlockedByActor(v) => {
GetActorLikesError::BlockedByActor(v.into_static())
}
-
GetActorLikesError::Unknown(v) => {
-
GetActorLikesError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorLikes<'de> {
-
const NSID: &'static str = "app.bsky.feed.getActorLikes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetActorLikesOutput<'de>;
type Err = GetActorLikesError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetActorLikes<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetActorLikesError::BlockedByActor(v) => {
GetActorLikesError::BlockedByActor(v.into_static())
}
+
GetActorLikesError::Unknown(v) => GetActorLikesError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///app.bsky.feed.getActorLikes
+
pub struct GetActorLikesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetActorLikesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetActorLikesOutput<'de>;
type Err = GetActorLikesError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorLikes<'de> {
+
const NSID: &'static str = "app.bsky.feed.getActorLikes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetActorLikesResponse;
+
}
+16 -18
crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAuthorFeed<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetAuthorFeedError::BlockedByActor(v) => {
GetAuthorFeedError::BlockedByActor(v.into_static())
}
-
GetAuthorFeedError::Unknown(v) => {
-
GetAuthorFeedError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAuthorFeed<'de> {
-
const NSID: &'static str = "app.bsky.feed.getAuthorFeed";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetAuthorFeedOutput<'de>;
type Err = GetAuthorFeedError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAuthorFeed<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetAuthorFeedError::BlockedByActor(v) => {
GetAuthorFeedError::BlockedByActor(v.into_static())
}
+
GetAuthorFeedError::Unknown(v) => GetAuthorFeedError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///app.bsky.feed.getAuthorFeed
+
pub struct GetAuthorFeedResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAuthorFeedResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetAuthorFeedOutput<'de>;
type Err = GetAuthorFeedError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAuthorFeed<'de> {
+
const NSID: &'static str = "app.bsky.feed.getAuthorFeed";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetAuthorFeedResponse;
+
}
+15 -15
crates/jacquard-api/src/app_bsky/feed/get_feed.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFeed<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeed<'de> {
-
const NSID: &'static str = "app.bsky.feed.getFeed";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetFeedOutput<'de>;
type Err = GetFeedError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFeed<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///app.bsky.feed.getFeed
+
pub struct GetFeedResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFeedResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetFeedOutput<'de>;
type Err = GetFeedError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeed<'de> {
+
const NSID: &'static str = "app.bsky.feed.getFeed";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetFeedResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGenerator<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedGenerator<'de> {
-
const NSID: &'static str = "app.bsky.feed.getFeedGenerator";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetFeedGeneratorOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGenerator<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getFeedGenerator
+
pub struct GetFeedGeneratorResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFeedGeneratorResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetFeedGeneratorOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedGenerator<'de> {
+
const NSID: &'static str = "app.bsky.feed.getFeedGenerator";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetFeedGeneratorResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGenerators<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedGenerators<'de> {
-
const NSID: &'static str = "app.bsky.feed.getFeedGenerators";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetFeedGeneratorsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedGenerators<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getFeedGenerators
+
pub struct GetFeedGeneratorsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFeedGeneratorsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetFeedGeneratorsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedGenerators<'de> {
+
const NSID: &'static str = "app.bsky.feed.getFeedGenerators";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetFeedGeneratorsResponse;
+
}
+16 -18
crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedSkeleton<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetFeedSkeletonError::UnknownFeed(v) => {
GetFeedSkeletonError::UnknownFeed(v.into_static())
}
-
GetFeedSkeletonError::Unknown(v) => {
-
GetFeedSkeletonError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.feed.getFeedSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetFeedSkeletonOutput<'de>;
type Err = GetFeedSkeletonError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFeedSkeleton<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetFeedSkeletonError::UnknownFeed(v) => {
GetFeedSkeletonError::UnknownFeed(v.into_static())
}
+
GetFeedSkeletonError::Unknown(v) => GetFeedSkeletonError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///app.bsky.feed.getFeedSkeleton
+
pub struct GetFeedSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFeedSkeletonResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetFeedSkeletonOutput<'de>;
type Err = GetFeedSkeletonError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFeedSkeleton<'de> {
+
const NSID: &'static str = "app.bsky.feed.getFeedSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetFeedSkeletonResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_likes.rs
···
}
}
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetLikes<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLikes<'de> {
-
const NSID: &'static str = "app.bsky.feed.getLikes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetLikesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
}
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetLikes<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getLikes
+
pub struct GetLikesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetLikesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetLikesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLikes<'de> {
+
const NSID: &'static str = "app.bsky.feed.getLikes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetLikesResponse;
+
}
+16 -18
crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetListFeed<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetListFeedError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
GetListFeedError::UnknownList(v) => {
-
GetListFeedError::UnknownList(v.into_static())
-
}
GetListFeedError::Unknown(v) => GetListFeedError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListFeed<'de> {
-
const NSID: &'static str = "app.bsky.feed.getListFeed";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetListFeedOutput<'de>;
type Err = GetListFeedError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetListFeed<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetListFeedError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
GetListFeedError::UnknownList(v) => GetListFeedError::UnknownList(v.into_static()),
GetListFeedError::Unknown(v) => GetListFeedError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///app.bsky.feed.getListFeed
+
pub struct GetListFeedResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListFeedResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetListFeedOutput<'de>;
type Err = GetListFeedError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListFeed<'de> {
+
const NSID: &'static str = "app.bsky.feed.getListFeed";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetListFeedResponse;
+
}
+17 -21
crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThread<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetPostThreadError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
GetPostThreadError::NotFound(v) => {
-
GetPostThreadError::NotFound(v.into_static())
-
}
-
GetPostThreadError::Unknown(v) => {
-
GetPostThreadError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThread<'de> {
-
const NSID: &'static str = "app.bsky.feed.getPostThread";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetPostThreadOutput<'de>;
type Err = GetPostThreadError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThread<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetPostThreadError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
GetPostThreadError::NotFound(v) => GetPostThreadError::NotFound(v.into_static()),
+
GetPostThreadError::Unknown(v) => GetPostThreadError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///app.bsky.feed.getPostThread
+
pub struct GetPostThreadResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPostThreadResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetPostThreadOutput<'de>;
type Err = GetPostThreadError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThread<'de> {
+
const NSID: &'static str = "app.bsky.feed.getPostThread";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetPostThreadResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_posts.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPosts<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPosts<'de> {
-
const NSID: &'static str = "app.bsky.feed.getPosts";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetPostsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPosts<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getPosts
+
pub struct GetPostsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPostsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetPostsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPosts<'de> {
+
const NSID: &'static str = "app.bsky.feed.getPosts";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetPostsResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_quotes.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetQuotes<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetQuotes<'de> {
-
const NSID: &'static str = "app.bsky.feed.getQuotes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetQuotesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetQuotes<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getQuotes
+
pub struct GetQuotesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetQuotesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetQuotesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetQuotes<'de> {
+
const NSID: &'static str = "app.bsky.feed.getQuotes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetQuotesResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepostedBy<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepostedBy<'de> {
-
const NSID: &'static str = "app.bsky.feed.getRepostedBy";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetRepostedByOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepostedBy<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getRepostedBy
+
pub struct GetRepostedByResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRepostedByResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetRepostedByOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepostedBy<'de> {
+
const NSID: &'static str = "app.bsky.feed.getRepostedBy";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRepostedByResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeeds<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeeds<'de> {
-
const NSID: &'static str = "app.bsky.feed.getSuggestedFeeds";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestedFeedsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeeds<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getSuggestedFeeds
+
pub struct GetSuggestedFeedsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedFeedsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestedFeedsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeeds<'de> {
+
const NSID: &'static str = "app.bsky.feed.getSuggestedFeeds";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestedFeedsResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/feed/get_timeline.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetTimeline<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTimeline<'de> {
-
const NSID: &'static str = "app.bsky.feed.getTimeline";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetTimelineOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetTimeline<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.getTimeline
+
pub struct GetTimelineResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetTimelineResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetTimelineOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTimeline<'de> {
+
const NSID: &'static str = "app.bsky.feed.getTimeline";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetTimelineResponse;
+
}
+15 -15
crates/jacquard-api/src/app_bsky/feed/search_posts.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchPosts<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchPosts<'de> {
-
const NSID: &'static str = "app.bsky.feed.searchPosts";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchPostsOutput<'de>;
type Err = SearchPostsError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchPosts<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///app.bsky.feed.searchPosts
+
pub struct SearchPostsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchPostsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchPostsOutput<'de>;
type Err = SearchPostsError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchPosts<'de> {
+
const NSID: &'static str = "app.bsky.feed.searchPosts";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchPostsResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/feed/send_interactions.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SendInteractions<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendInteractions<'de> {
-
const NSID: &'static str = "app.bsky.feed.sendInteractions";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SendInteractionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SendInteractions<'a> {
···
}
}
+
///Response type for
+
///app.bsky.feed.sendInteractions
+
pub struct SendInteractionsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SendInteractionsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SendInteractionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendInteractions<'de> {
+
const NSID: &'static str = "app.bsky.feed.sendInteractions";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = SendInteractionsResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetActorStarterPacks<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorStarterPacks<'de> {
-
const NSID: &'static str = "app.bsky.graph.getActorStarterPacks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetActorStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetActorStarterPacks<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getActorStarterPacks
+
pub struct GetActorStarterPacksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetActorStarterPacksResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetActorStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorStarterPacks<'de> {
+
const NSID: &'static str = "app.bsky.graph.getActorStarterPacks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetActorStarterPacksResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_blocks.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetBlocks<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlocks<'de> {
-
const NSID: &'static str = "app.bsky.graph.getBlocks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetBlocksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetBlocks<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getBlocks
+
pub struct GetBlocksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetBlocksResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetBlocksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlocks<'de> {
+
const NSID: &'static str = "app.bsky.graph.getBlocks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetBlocksResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_followers.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFollowers<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFollowers<'de> {
-
const NSID: &'static str = "app.bsky.graph.getFollowers";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetFollowersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFollowers<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getFollowers
+
pub struct GetFollowersResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFollowersResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetFollowersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFollowers<'de> {
+
const NSID: &'static str = "app.bsky.graph.getFollowers";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetFollowersResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_follows.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFollows<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFollows<'de> {
-
const NSID: &'static str = "app.bsky.graph.getFollows";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetFollowsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetFollows<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getFollows
+
pub struct GetFollowsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetFollowsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetFollowsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetFollows<'de> {
+
const NSID: &'static str = "app.bsky.graph.getFollows";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetFollowsResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetKnownFollowers<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetKnownFollowers<'de> {
-
const NSID: &'static str = "app.bsky.graph.getKnownFollowers";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetKnownFollowersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetKnownFollowers<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getKnownFollowers
+
pub struct GetKnownFollowersResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetKnownFollowersResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetKnownFollowersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetKnownFollowers<'de> {
+
const NSID: &'static str = "app.bsky.graph.getKnownFollowers";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetKnownFollowersResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_list.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetList<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetList<'de> {
-
const NSID: &'static str = "app.bsky.graph.getList";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetListOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetList<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getList
+
pub struct GetListResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetListOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetList<'de> {
+
const NSID: &'static str = "app.bsky.graph.getList";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetListResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetListBlocks<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListBlocks<'de> {
-
const NSID: &'static str = "app.bsky.graph.getListBlocks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetListBlocksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetListBlocks<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getListBlocks
+
pub struct GetListBlocksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListBlocksResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetListBlocksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListBlocks<'de> {
+
const NSID: &'static str = "app.bsky.graph.getListBlocks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetListBlocksResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetListMutes<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListMutes<'de> {
-
const NSID: &'static str = "app.bsky.graph.getListMutes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetListMutesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetListMutes<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getListMutes
+
pub struct GetListMutesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListMutesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetListMutesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListMutes<'de> {
+
const NSID: &'static str = "app.bsky.graph.getListMutes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetListMutesResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_lists.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetLists<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLists<'de> {
-
const NSID: &'static str = "app.bsky.graph.getLists";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetListsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetLists<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getLists
+
pub struct GetListsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetListsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLists<'de> {
+
const NSID: &'static str = "app.bsky.graph.getLists";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetListsResponse;
+
}
+14 -15
crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs
···
}
}
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetListsWithMembership<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetListsWithMembership<'de> {
-
const NSID: &'static str = "app.bsky.graph.getListsWithMembership";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetListsWithMembershipOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
}
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetListsWithMembership<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getListsWithMembership
+
pub struct GetListsWithMembershipResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetListsWithMembershipResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetListsWithMembershipOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetListsWithMembership<'de> {
+
const NSID: &'static str = "app.bsky.graph.getListsWithMembership";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetListsWithMembershipResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_mutes.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetMutes<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMutes<'de> {
-
const NSID: &'static str = "app.bsky.graph.getMutes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetMutesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetMutes<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getMutes
+
pub struct GetMutesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetMutesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetMutesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMutes<'de> {
+
const NSID: &'static str = "app.bsky.graph.getMutes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetMutesResponse;
+
}
+17 -21
crates/jacquard-api/src/app_bsky/graph/get_relationships.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRelationships<'a> {
···
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub others: std::option::Option<
-
Vec<jacquard_common::types::ident::AtIdentifier<'a>>,
-
>,
}
impl jacquard_common::IntoStatic for GetRelationships<'_> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetRelationshipsError::ActorNotFound(v) => {
GetRelationshipsError::ActorNotFound(v.into_static())
}
-
GetRelationshipsError::Unknown(v) => {
-
GetRelationshipsError::Unknown(v.into_static())
-
}
}
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRelationships<'de> {
const NSID: &'static str = "app.bsky.graph.getRelationships";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = GetRelationshipsOutput<'de>;
-
type Err = GetRelationshipsError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRelationships<'a> {
···
pub actor: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub others: std::option::Option<Vec<jacquard_common::types::ident::AtIdentifier<'a>>>,
}
impl jacquard_common::IntoStatic for GetRelationships<'_> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetRelationshipsError::ActorNotFound(v) => {
GetRelationshipsError::ActorNotFound(v.into_static())
}
+
GetRelationshipsError::Unknown(v) => GetRelationshipsError::Unknown(v.into_static()),
}
}
+
}
+
+
///Response type for
+
///app.bsky.graph.getRelationships
+
pub struct GetRelationshipsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRelationshipsResponse {
+
const ENCODING: &'static str = "application/json";
+
type Output = GetRelationshipsOutput<'de>;
+
type Err = GetRelationshipsError<'de>;
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRelationships<'de> {
const NSID: &'static str = "app.bsky.graph.getRelationships";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRelationshipsResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPack<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPack<'de> {
-
const NSID: &'static str = "app.bsky.graph.getStarterPack";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetStarterPackOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPack<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getStarterPack
+
pub struct GetStarterPackResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetStarterPackResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetStarterPackOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPack<'de> {
+
const NSID: &'static str = "app.bsky.graph.getStarterPack";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetStarterPackResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacks<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPacks<'de> {
-
const NSID: &'static str = "app.bsky.graph.getStarterPacks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacks<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getStarterPacks
+
pub struct GetStarterPacksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetStarterPacksResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPacks<'de> {
+
const NSID: &'static str = "app.bsky.graph.getStarterPacks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetStarterPacksResponse;
+
}
+15 -18
crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacksWithMembership<'a> {
···
fn into_static(self) -> Self::Output {
GetStarterPacksWithMembershipOutput {
cursor: self.cursor.into_static(),
-
starter_packs_with_membership: self
-
.starter_packs_with_membership
-
.into_static(),
extra_data: self.extra_data.into_static(),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetStarterPacksWithMembership<'de> {
-
const NSID: &'static str = "app.bsky.graph.getStarterPacksWithMembership";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetStarterPacksWithMembershipOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
///A starter pack and an optional list item indicating membership of a target user to that starter pack.
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetStarterPacksWithMembership<'a> {
···
fn into_static(self) -> Self::Output {
GetStarterPacksWithMembershipOutput {
cursor: self.cursor.into_static(),
+
starter_packs_with_membership: self.starter_packs_with_membership.into_static(),
extra_data: self.extra_data.into_static(),
}
}
}
+
///Response type for
+
///app.bsky.graph.getStarterPacksWithMembership
+
pub struct GetStarterPacksWithMembershipResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetStarterPacksWithMembershipResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetStarterPacksWithMembershipOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetStarterPacksWithMembership<'de> {
+
const NSID: &'static str = "app.bsky.graph.getStarterPacksWithMembership";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetStarterPacksWithMembershipResponse;
}
///A starter pack and an optional list item indicating membership of a target user to that starter pack.
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -15
crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFollowsByActor<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetSuggestedFollowsByActor<'de> {
-
const NSID: &'static str = "app.bsky.graph.getSuggestedFollowsByActor";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestedFollowsByActorOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFollowsByActor<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.getSuggestedFollowsByActor
+
pub struct GetSuggestedFollowsByActorResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedFollowsByActorResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestedFollowsByActorOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFollowsByActor<'de> {
+
const NSID: &'static str = "app.bsky.graph.getSuggestedFollowsByActor";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestedFollowsByActorResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/graph/mute_actor.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct MuteActor<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteActor<'de> {
-
const NSID: &'static str = "app.bsky.graph.muteActor";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct MuteActor<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.muteActor
+
pub struct MuteActorResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for MuteActorResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteActor<'de> {
+
const NSID: &'static str = "app.bsky.graph.muteActor";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = MuteActorResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct MuteActorList<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteActorList<'de> {
-
const NSID: &'static str = "app.bsky.graph.muteActorList";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct MuteActorList<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.muteActorList
+
pub struct MuteActorListResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for MuteActorListResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteActorList<'de> {
+
const NSID: &'static str = "app.bsky.graph.muteActorList";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = MuteActorListResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/graph/mute_thread.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct MuteThread<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteThread<'de> {
-
const NSID: &'static str = "app.bsky.graph.muteThread";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct MuteThread<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.muteThread
+
pub struct MuteThreadResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for MuteThreadResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteThread<'de> {
+
const NSID: &'static str = "app.bsky.graph.muteThread";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = MuteThreadResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchStarterPacks<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchStarterPacks<'de> {
-
const NSID: &'static str = "app.bsky.graph.searchStarterPacks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchStarterPacks<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.searchStarterPacks
+
pub struct SearchStarterPacksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchStarterPacksResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchStarterPacks<'de> {
+
const NSID: &'static str = "app.bsky.graph.searchStarterPacks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchStarterPacksResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnmuteActor<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteActor<'de> {
-
const NSID: &'static str = "app.bsky.graph.unmuteActor";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnmuteActor<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.unmuteActor
+
pub struct UnmuteActorResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnmuteActorResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteActor<'de> {
+
const NSID: &'static str = "app.bsky.graph.unmuteActor";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UnmuteActorResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnmuteActorList<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteActorList<'de> {
-
const NSID: &'static str = "app.bsky.graph.unmuteActorList";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnmuteActorList<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.unmuteActorList
+
pub struct UnmuteActorListResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnmuteActorListResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteActorList<'de> {
+
const NSID: &'static str = "app.bsky.graph.unmuteActorList";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UnmuteActorListResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnmuteThread<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteThread<'de> {
-
const NSID: &'static str = "app.bsky.graph.unmuteThread";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnmuteThread<'a> {
···
}
}
+
///Response type for
+
///app.bsky.graph.unmuteThread
+
pub struct UnmuteThreadResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnmuteThreadResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteThread<'de> {
+
const NSID: &'static str = "app.bsky.graph.unmuteThread";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UnmuteThreadResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/labeler/get_services.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetServices<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetServices<'de> {
-
const NSID: &'static str = "app.bsky.labeler.getServices";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetServicesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetServices<'a> {
···
}
}
+
///Response type for
+
///app.bsky.labeler.getServices
+
pub struct GetServicesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetServicesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetServicesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetServices<'de> {
+
const NSID: &'static str = "app.bsky.labeler.getServices";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetServicesResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/notification/get_preferences.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPreferences {}
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPreferences {
-
const NSID: &'static str = "app.bsky.notification.getPreferences";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetPreferencesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPreferences {}
···
}
}
+
///Response type for
+
///app.bsky.notification.getPreferences
+
pub struct GetPreferencesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPreferencesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetPreferencesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPreferences {
+
const NSID: &'static str = "app.bsky.notification.getPreferences";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetPreferencesResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetUnreadCount {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetUnreadCount {
-
const NSID: &'static str = "app.bsky.notification.getUnreadCount";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetUnreadCountOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetUnreadCount {
···
}
}
+
///Response type for
+
///app.bsky.notification.getUnreadCount
+
pub struct GetUnreadCountResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetUnreadCountResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetUnreadCountOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetUnreadCount {
+
const NSID: &'static str = "app.bsky.notification.getUnreadCount";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetUnreadCountResponse;
+
}
+14 -15
crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListActivitySubscriptions<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for ListActivitySubscriptions<'de> {
-
const NSID: &'static str = "app.bsky.notification.listActivitySubscriptions";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListActivitySubscriptionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListActivitySubscriptions<'a> {
···
}
}
+
///Response type for
+
///app.bsky.notification.listActivitySubscriptions
+
pub struct ListActivitySubscriptionsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListActivitySubscriptionsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListActivitySubscriptionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListActivitySubscriptions<'de> {
+
const NSID: &'static str = "app.bsky.notification.listActivitySubscriptions";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListActivitySubscriptionsResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/notification/list_notifications.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListNotifications<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListNotifications<'de> {
-
const NSID: &'static str = "app.bsky.notification.listNotifications";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListNotificationsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListNotifications<'a> {
···
}
}
+
///Response type for
+
///app.bsky.notification.listNotifications
+
pub struct ListNotificationsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListNotificationsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListNotificationsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListNotifications<'de> {
+
const NSID: &'static str = "app.bsky.notification.listNotifications";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListNotificationsResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+16 -20
crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct PutActivitySubscription<'a> {
···
pub struct PutActivitySubscriptionOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub activity_subscription: std::option::Option<
-
crate::app_bsky::notification::ActivitySubscription<'a>,
-
>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
}
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for PutActivitySubscription<'de> {
-
const NSID: &'static str = "app.bsky.notification.putActivitySubscription";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = PutActivitySubscriptionOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct PutActivitySubscription<'a> {
···
pub struct PutActivitySubscriptionOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub activity_subscription:
+
std::option::Option<crate::app_bsky::notification::ActivitySubscription<'a>>,
#[serde(borrow)]
pub subject: jacquard_common::types::string::Did<'a>,
}
···
}
}
+
///Response type for
+
///app.bsky.notification.putActivitySubscription
+
pub struct PutActivitySubscriptionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutActivitySubscriptionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = PutActivitySubscriptionOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutActivitySubscription<'de> {
+
const NSID: &'static str = "app.bsky.notification.putActivitySubscription";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = PutActivitySubscriptionResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/notification/put_preferences.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct PutPreferences<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferences<'de> {
-
const NSID: &'static str = "app.bsky.notification.putPreferences";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct PutPreferences<'a> {
···
}
}
+
///Response type for
+
///app.bsky.notification.putPreferences
+
pub struct PutPreferencesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutPreferencesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferences<'de> {
+
const NSID: &'static str = "app.bsky.notification.putPreferences";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = PutPreferencesResponse;
+
}
+26 -46
crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct PutPreferencesV2<'a> {
···
pub chat: std::option::Option<crate::app_bsky::notification::ChatPreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub follow: std::option::Option<
-
crate::app_bsky::notification::FilterablePreference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub like: std::option::Option<
-
crate::app_bsky::notification::FilterablePreference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub like_via_repost: std::option::Option<
-
crate::app_bsky::notification::FilterablePreference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub mention: std::option::Option<
-
crate::app_bsky::notification::FilterablePreference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub quote: std::option::Option<
-
crate::app_bsky::notification::FilterablePreference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub reply: std::option::Option<
-
crate::app_bsky::notification::FilterablePreference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub repost: std::option::Option<
-
crate::app_bsky::notification::FilterablePreference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub repost_via_repost: std::option::Option<
-
crate::app_bsky::notification::FilterablePreference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub starterpack_joined: std::option::Option<
-
crate::app_bsky::notification::Preference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub subscribed_post: std::option::Option<
-
crate::app_bsky::notification::Preference<'a>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub unverified: std::option::Option<crate::app_bsky::notification::Preference<'a>>,
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferencesV2<'de> {
-
const NSID: &'static str = "app.bsky.notification.putPreferencesV2";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = PutPreferencesV2Output<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct PutPreferencesV2<'a> {
···
pub chat: std::option::Option<crate::app_bsky::notification::ChatPreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub follow: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub like: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub like_via_repost:
+
std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub mention: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub quote: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub reply: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub repost: std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub repost_via_repost:
+
std::option::Option<crate::app_bsky::notification::FilterablePreference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub starterpack_joined: std::option::Option<crate::app_bsky::notification::Preference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub subscribed_post: std::option::Option<crate::app_bsky::notification::Preference<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub unverified: std::option::Option<crate::app_bsky::notification::Preference<'a>>,
···
}
}
+
///Response type for
+
///app.bsky.notification.putPreferencesV2
+
pub struct PutPreferencesV2Response;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutPreferencesV2Response {
+
const ENCODING: &'static str = "application/json";
type Output = PutPreferencesV2Output<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutPreferencesV2<'de> {
+
const NSID: &'static str = "app.bsky.notification.putPreferencesV2";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = PutPreferencesV2Response;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/notification/register_push.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RegisterPush<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RegisterPush<'de> {
-
const NSID: &'static str = "app.bsky.notification.registerPush";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RegisterPush<'a> {
···
}
}
+
///Response type for
+
///app.bsky.notification.registerPush
+
pub struct RegisterPushResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RegisterPushResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RegisterPush<'de> {
+
const NSID: &'static str = "app.bsky.notification.registerPush";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RegisterPushResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/notification/unregister_push.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnregisterPush<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnregisterPush<'de> {
-
const NSID: &'static str = "app.bsky.notification.unregisterPush";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnregisterPush<'a> {
···
}
}
+
///Response type for
+
///app.bsky.notification.unregisterPush
+
pub struct UnregisterPushResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnregisterPushResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnregisterPush<'de> {
+
const NSID: &'static str = "app.bsky.notification.unregisterPush";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UnregisterPushResponse;
+
}
+14 -16
crates/jacquard-api/src/app_bsky/notification/update_seen.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateSeen<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateSeen<'de> {
-
const NSID: &'static str = "app.bsky.notification.updateSeen";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateSeen<'a> {
···
}
}
+
///Response type for
+
///app.bsky.notification.updateSeen
+
pub struct UpdateSeenResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateSeenResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateSeen<'de> {
+
const NSID: &'static str = "app.bsky.notification.updateSeen";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateSeenResponse;
+
}
+13 -5
crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetAgeAssuranceState;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAgeAssuranceState {
-
const NSID: &'static str = "app.bsky.unspecced.getAgeAssuranceState";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetAgeAssuranceStateOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetAgeAssuranceState;
+
///Response type for
+
///app.bsky.unspecced.getAgeAssuranceState
+
pub struct GetAgeAssuranceStateResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAgeAssuranceStateResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetAgeAssuranceStateOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAgeAssuranceState {
+
const NSID: &'static str = "app.bsky.unspecced.getAgeAssuranceState";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetAgeAssuranceStateResponse;
+
}
+13 -5
crates/jacquard-api/src/app_bsky/unspecced/get_config.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetConfig;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConfig {
-
const NSID: &'static str = "app.bsky.unspecced.getConfig";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetConfigOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetConfig;
+
///Response type for
+
///app.bsky.unspecced.getConfig
+
pub struct GetConfigResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConfigResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetConfigOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConfig {
+
const NSID: &'static str = "app.bsky.unspecced.getConfig";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetConfigResponse;
+
}
+16 -15
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacks {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetOnboardingSuggestedStarterPacks {
-
const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetOnboardingSuggestedStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacks {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getOnboardingSuggestedStarterPacks
+
pub struct GetOnboardingSuggestedStarterPacksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de>
+
for GetOnboardingSuggestedStarterPacksResponse
+
{
+
const ENCODING: &'static str = "application/json";
type Output = GetOnboardingSuggestedStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetOnboardingSuggestedStarterPacks {
+
const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetOnboardingSuggestedStarterPacksResponse;
+
}
+19 -17
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksSkeleton<'a> {
···
pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>,
}
-
impl jacquard_common::IntoStatic
-
for GetOnboardingSuggestedStarterPacksSkeletonOutput<'_> {
type Output = GetOnboardingSuggestedStarterPacksSkeletonOutput<'static>;
fn into_static(self) -> Self::Output {
GetOnboardingSuggestedStarterPacksSkeletonOutput {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetOnboardingSuggestedStarterPacksSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetOnboardingSuggestedStarterPacksSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetOnboardingSuggestedStarterPacksSkeleton<'a> {
···
pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>,
}
+
impl jacquard_common::IntoStatic for GetOnboardingSuggestedStarterPacksSkeletonOutput<'_> {
type Output = GetOnboardingSuggestedStarterPacksSkeletonOutput<'static>;
fn into_static(self) -> Self::Output {
GetOnboardingSuggestedStarterPacksSkeletonOutput {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton
+
pub struct GetOnboardingSuggestedStarterPacksSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de>
+
for GetOnboardingSuggestedStarterPacksSkeletonResponse
+
{
+
const ENCODING: &'static str = "application/json";
type Output = GetOnboardingSuggestedStarterPacksSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
+
for GetOnboardingSuggestedStarterPacksSkeleton<'de>
+
{
+
const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetOnboardingSuggestedStarterPacksSkeletonResponse;
+
}
+15 -17
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadOtherV2<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThreadOtherV2<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.getPostThreadOtherV2";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetPostThreadOtherV2Output<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
ThreadItemRecordValue::DefsThreadItemPost(v) => {
ThreadItemRecordValue::DefsThreadItemPost(v.into_static())
}
-
ThreadItemRecordValue::Unknown(v) => {
-
ThreadItemRecordValue::Unknown(v.into_static())
-
}
}
}
}
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadOtherV2<'a> {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getPostThreadOtherV2
+
pub struct GetPostThreadOtherV2Response;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPostThreadOtherV2Response {
+
const ENCODING: &'static str = "application/json";
type Output = GetPostThreadOtherV2Output<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThreadOtherV2<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.getPostThreadOtherV2";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetPostThreadOtherV2Response;
}
#[jacquard_derive::lexicon]
···
ThreadItemRecordValue::DefsThreadItemPost(v) => {
ThreadItemRecordValue::DefsThreadItemPost(v.into_static())
}
+
ThreadItemRecordValue::Unknown(v) => ThreadItemRecordValue::Unknown(v.into_static()),
}
}
}
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+15 -17
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadV2<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThreadV2<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.getPostThreadV2";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetPostThreadV2Output<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
ThreadItemRecordValue::DefsThreadItemBlocked(v) => {
ThreadItemRecordValue::DefsThreadItemBlocked(v.into_static())
}
-
ThreadItemRecordValue::Unknown(v) => {
-
ThreadItemRecordValue::Unknown(v.into_static())
-
}
}
}
}
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetPostThreadV2<'a> {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getPostThreadV2
+
pub struct GetPostThreadV2Response;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetPostThreadV2Response {
+
const ENCODING: &'static str = "application/json";
type Output = GetPostThreadV2Output<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetPostThreadV2<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.getPostThreadV2";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetPostThreadV2Response;
}
#[jacquard_derive::lexicon]
···
ThreadItemRecordValue::DefsThreadItemBlocked(v) => {
ThreadItemRecordValue::DefsThreadItemBlocked(v.into_static())
}
+
ThreadItemRecordValue::Unknown(v) => ThreadItemRecordValue::Unknown(v.into_static()),
}
}
}
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeeds {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeeds {
-
const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeeds";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestedFeedsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeeds {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getSuggestedFeeds
+
pub struct GetSuggestedFeedsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedFeedsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestedFeedsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeeds {
+
const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeeds";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestedFeedsResponse;
+
}
+14 -15
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsSkeleton<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetSuggestedFeedsSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeedsSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestedFeedsSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedFeedsSkeleton<'a> {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getSuggestedFeedsSkeleton
+
pub struct GetSuggestedFeedsSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedFeedsSkeletonResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestedFeedsSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedFeedsSkeleton<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeedsSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestedFeedsSkeletonResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacks {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedStarterPacks {
-
const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestedStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacks {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getSuggestedStarterPacks
+
pub struct GetSuggestedStarterPacksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedStarterPacksResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestedStarterPacksOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedStarterPacks {
+
const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestedStarterPacksResponse;
+
}
+14 -15
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksSkeleton<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetSuggestedStarterPacksSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacksSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestedStarterPacksSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedStarterPacksSkeleton<'a> {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getSuggestedStarterPacksSkeleton
+
pub struct GetSuggestedStarterPacksSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedStarterPacksSkeletonResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestedStarterPacksSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedStarterPacksSkeleton<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacksSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestedStarterPacksSkeletonResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsers<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedUsers<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsers";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestedUsersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsers<'a> {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getSuggestedUsers
+
pub struct GetSuggestedUsersResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedUsersResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestedUsersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedUsers<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsers";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestedUsersResponse;
+
}
+14 -15
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersSkeleton<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetSuggestedUsersSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsersSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestedUsersSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestedUsersSkeleton<'a> {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getSuggestedUsersSkeleton
+
pub struct GetSuggestedUsersSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestedUsersSkeletonResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestedUsersSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestedUsersSkeleton<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsersSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestedUsersSkeletonResponse;
+
}
+14 -15
crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestionsSkeleton<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for GetSuggestionsSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.getSuggestionsSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSuggestionsSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSuggestionsSkeleton<'a> {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getSuggestionsSkeleton
+
pub struct GetSuggestionsSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSuggestionsSkeletonResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSuggestionsSkeletonOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSuggestionsSkeleton<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.getSuggestionsSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSuggestionsSkeletonResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetTaggedSuggestions {}
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTaggedSuggestions {
-
const NSID: &'static str = "app.bsky.unspecced.getTaggedSuggestions";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetTaggedSuggestionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetTaggedSuggestions {}
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getTaggedSuggestions
+
pub struct GetTaggedSuggestionsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetTaggedSuggestionsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetTaggedSuggestionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTaggedSuggestions {
+
const NSID: &'static str = "app.bsky.unspecced.getTaggedSuggestions";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetTaggedSuggestionsResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -14
crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetTrends {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTrends {
-
const NSID: &'static str = "app.bsky.unspecced.getTrends";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetTrendsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetTrends {
···
}
}
+
///Response type for
+
///app.bsky.unspecced.getTrends
+
pub struct GetTrendsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetTrendsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetTrendsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetTrends {
+
const NSID: &'static str = "app.bsky.unspecced.getTrends";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetTrendsResponse;
+
}
+16 -20
crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct InitAgeAssurance<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
InitAgeAssuranceError::InvalidInitiation(v) => {
InitAgeAssuranceError::InvalidInitiation(v.into_static())
}
-
InitAgeAssuranceError::Unknown(v) => {
-
InitAgeAssuranceError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for InitAgeAssurance<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.initAgeAssurance";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = InitAgeAssuranceOutput<'de>;
type Err = InitAgeAssuranceError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct InitAgeAssurance<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
InitAgeAssuranceError::InvalidInitiation(v) => {
InitAgeAssuranceError::InvalidInitiation(v.into_static())
}
+
InitAgeAssuranceError::Unknown(v) => InitAgeAssuranceError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///app.bsky.unspecced.initAgeAssurance
+
pub struct InitAgeAssuranceResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for InitAgeAssuranceResponse {
+
const ENCODING: &'static str = "application/json";
type Output = InitAgeAssuranceOutput<'de>;
type Err = InitAgeAssuranceError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for InitAgeAssurance<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.initAgeAssurance";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = InitAgeAssuranceResponse;
+
}
+15 -15
crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsSkeleton<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActorsSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.searchActorsSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchActorsSkeletonOutput<'de>;
type Err = SearchActorsSkeletonError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchActorsSkeleton<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///app.bsky.unspecced.searchActorsSkeleton
+
pub struct SearchActorsSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchActorsSkeletonResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchActorsSkeletonOutput<'de>;
type Err = SearchActorsSkeletonError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchActorsSkeleton<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.searchActorsSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchActorsSkeletonResponse;
+
}
+15 -15
crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchPostsSkeleton<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchPostsSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.searchPostsSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchPostsSkeletonOutput<'de>;
type Err = SearchPostsSkeletonError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchPostsSkeleton<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///app.bsky.unspecced.searchPostsSkeleton
+
pub struct SearchPostsSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchPostsSkeletonResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchPostsSkeletonOutput<'de>;
type Err = SearchPostsSkeletonError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchPostsSkeleton<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.searchPostsSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchPostsSkeletonResponse;
+
}
+15 -16
crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchStarterPacksSkeleton<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for SearchStarterPacksSkeleton<'de> {
-
const NSID: &'static str = "app.bsky.unspecced.searchStarterPacksSkeleton";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchStarterPacksSkeletonOutput<'de>;
type Err = SearchStarterPacksSkeletonError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchStarterPacksSkeleton<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///app.bsky.unspecced.searchStarterPacksSkeleton
+
pub struct SearchStarterPacksSkeletonResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchStarterPacksSkeletonResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchStarterPacksSkeletonOutput<'de>;
type Err = SearchStarterPacksSkeletonError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchStarterPacksSkeleton<'de> {
+
const NSID: &'static str = "app.bsky.unspecced.searchStarterPacksSkeleton";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchStarterPacksSkeletonResponse;
+
}
+14 -14
crates/jacquard-api/src/app_bsky/video/get_job_status.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetJobStatus<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetJobStatus<'de> {
-
const NSID: &'static str = "app.bsky.video.getJobStatus";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetJobStatusOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetJobStatus<'a> {
···
}
}
+
///Response type for
+
///app.bsky.video.getJobStatus
+
pub struct GetJobStatusResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetJobStatusResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetJobStatusOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetJobStatus<'de> {
+
const NSID: &'static str = "app.bsky.video.getJobStatus";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetJobStatusResponse;
+
}
+13 -5
crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetUploadLimits;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetUploadLimits {
-
const NSID: &'static str = "app.bsky.video.getUploadLimits";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetUploadLimitsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetUploadLimits;
+
///Response type for
+
///app.bsky.video.getUploadLimits
+
pub struct GetUploadLimitsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetUploadLimitsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetUploadLimitsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetUploadLimits {
+
const NSID: &'static str = "app.bsky.video.getUploadLimits";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetUploadLimitsResponse;
+
}
+18 -25
crates/jacquard-api/src/app_bsky/video/upload_video.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct UploadVideo {
···
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UploadVideo {
const NSID: &'static str = "app.bsky.video.uploadVideo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"video/mp4",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = UploadVideoOutput<'de>;
-
type Err = jacquard_common::types::xrpc::GenericError<'de>;
fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> {
Ok(self.body.to_vec())
}
-
fn decode_body(
-
&self,
-
body: &'de [u8],
-
) -> Result<Box<Self>, jacquard_common::error::DecodeError> {
-
Ok(
-
Box::new(Self {
-
body: bytes::Bytes::copy_from_slice(body),
-
}),
-
)
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct UploadVideo {
···
}
}
+
///Response type for
+
///app.bsky.video.uploadVideo
+
pub struct UploadVideoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UploadVideoResponse {
+
const ENCODING: &'static str = "application/json";
+
type Output = UploadVideoOutput<'de>;
+
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UploadVideo {
const NSID: &'static str = "app.bsky.video.uploadVideo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("video/mp4");
+
type Response<'de1> = UploadVideoResponse;
fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> {
Ok(self.body.to_vec())
}
+
fn decode_body(body: &'de [u8]) -> Result<Box<Self>, jacquard_common::error::DecodeError> {
+
Ok(Box::new(Self {
+
body: bytes::Bytes::copy_from_slice(body),
+
}))
}
+
}
+13 -7
crates/jacquard-api/src/chat_bsky/actor/delete_account.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct DeleteAccount;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount {
-
const NSID: &'static str = "chat.bsky.actor.deleteAccount";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = DeleteAccountOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct DeleteAccount;
+
///Response type for
+
///chat.bsky.actor.deleteAccount
+
pub struct DeleteAccountResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteAccountResponse {
+
const ENCODING: &'static str = "application/json";
type Output = DeleteAccountOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount {
+
const NSID: &'static str = "chat.bsky.actor.deleteAccount";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteAccountResponse;
+
}
+13 -5
crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ExportAccountData;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ExportAccountData {
-
const NSID: &'static str = "chat.bsky.actor.exportAccountData";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/jsonl";
type Output = ExportAccountDataOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ExportAccountData;
+
///Response type for
+
///chat.bsky.actor.exportAccountData
+
pub struct ExportAccountDataResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ExportAccountDataResponse {
+
const ENCODING: &'static str = "application/jsonl";
type Output = ExportAccountDataOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ExportAccountData {
+
const NSID: &'static str = "chat.bsky.actor.exportAccountData";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ExportAccountDataResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AcceptConvo<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AcceptConvo<'de> {
-
const NSID: &'static str = "chat.bsky.convo.acceptConvo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = AcceptConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AcceptConvo<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.acceptConvo
+
pub struct AcceptConvoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AcceptConvoResponse {
+
const ENCODING: &'static str = "application/json";
type Output = AcceptConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AcceptConvo<'de> {
+
const NSID: &'static str = "chat.bsky.convo.acceptConvo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = AcceptConvoResponse;
+
}
+15 -17
crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddReaction<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddReaction<'de> {
-
const NSID: &'static str = "chat.bsky.convo.addReaction";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = AddReactionOutput<'de>;
type Err = AddReactionError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddReaction<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///chat.bsky.convo.addReaction
+
pub struct AddReactionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddReactionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = AddReactionOutput<'de>;
type Err = AddReactionError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddReaction<'de> {
+
const NSID: &'static str = "chat.bsky.convo.addReaction";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = AddReactionResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteMessageForSelf<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteMessageForSelf<'de> {
-
const NSID: &'static str = "chat.bsky.convo.deleteMessageForSelf";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = DeleteMessageForSelfOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteMessageForSelf<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.deleteMessageForSelf
+
pub struct DeleteMessageForSelfResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteMessageForSelfResponse {
+
const ENCODING: &'static str = "application/json";
type Output = DeleteMessageForSelfOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteMessageForSelf<'de> {
+
const NSID: &'static str = "chat.bsky.convo.deleteMessageForSelf";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteMessageForSelfResponse;
+
}
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_convo.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetConvo<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvo<'de> {
-
const NSID: &'static str = "chat.bsky.convo.getConvo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetConvo<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.getConvo
+
pub struct GetConvoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConvoResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvo<'de> {
+
const NSID: &'static str = "chat.bsky.convo.getConvo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetConvoResponse;
+
}
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoAvailability<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvoAvailability<'de> {
-
const NSID: &'static str = "chat.bsky.convo.getConvoAvailability";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetConvoAvailabilityOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoAvailability<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.getConvoAvailability
+
pub struct GetConvoAvailabilityResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConvoAvailabilityResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetConvoAvailabilityOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvoAvailability<'de> {
+
const NSID: &'static str = "chat.bsky.convo.getConvoAvailability";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetConvoAvailabilityResponse;
+
}
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoForMembers<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvoForMembers<'de> {
-
const NSID: &'static str = "chat.bsky.convo.getConvoForMembers";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetConvoForMembersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetConvoForMembers<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.getConvoForMembers
+
pub struct GetConvoForMembersResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConvoForMembersResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetConvoForMembersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConvoForMembers<'de> {
+
const NSID: &'static str = "chat.bsky.convo.getConvoForMembers";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetConvoForMembersResponse;
+
}
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_log.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetLog<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLog<'de> {
-
const NSID: &'static str = "chat.bsky.convo.getLog";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetLogOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetLog<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.getLog
+
pub struct GetLogResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetLogResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetLogOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLog<'de> {
+
const NSID: &'static str = "chat.bsky.convo.getLog";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetLogResponse;
+
}
+14 -14
crates/jacquard-api/src/chat_bsky/convo/get_messages.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetMessages<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMessages<'de> {
-
const NSID: &'static str = "chat.bsky.convo.getMessages";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetMessagesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetMessages<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.getMessages
+
pub struct GetMessagesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetMessagesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetMessagesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMessages<'de> {
+
const NSID: &'static str = "chat.bsky.convo.getMessages";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetMessagesResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct LeaveConvo<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for LeaveConvo<'de> {
-
const NSID: &'static str = "chat.bsky.convo.leaveConvo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = LeaveConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct LeaveConvo<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.leaveConvo
+
pub struct LeaveConvoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for LeaveConvoResponse {
+
const ENCODING: &'static str = "application/json";
type Output = LeaveConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for LeaveConvo<'de> {
+
const NSID: &'static str = "chat.bsky.convo.leaveConvo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = LeaveConvoResponse;
+
}
+14 -14
crates/jacquard-api/src/chat_bsky/convo/list_convos.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListConvos<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListConvos<'de> {
-
const NSID: &'static str = "chat.bsky.convo.listConvos";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListConvosOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListConvos<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.listConvos
+
pub struct ListConvosResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListConvosResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListConvosOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListConvos<'de> {
+
const NSID: &'static str = "chat.bsky.convo.listConvos";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListConvosResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct MuteConvo<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteConvo<'de> {
-
const NSID: &'static str = "chat.bsky.convo.muteConvo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = MuteConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct MuteConvo<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.muteConvo
+
pub struct MuteConvoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for MuteConvoResponse {
+
const ENCODING: &'static str = "application/json";
type Output = MuteConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for MuteConvo<'de> {
+
const NSID: &'static str = "chat.bsky.convo.muteConvo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = MuteConvoResponse;
+
}
+16 -20
crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RemoveReaction<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
RemoveReactionError::ReactionInvalidValue(v) => {
RemoveReactionError::ReactionInvalidValue(v.into_static())
}
-
RemoveReactionError::Unknown(v) => {
-
RemoveReactionError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveReaction<'de> {
-
const NSID: &'static str = "chat.bsky.convo.removeReaction";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = RemoveReactionOutput<'de>;
type Err = RemoveReactionError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RemoveReaction<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
RemoveReactionError::ReactionInvalidValue(v) => {
RemoveReactionError::ReactionInvalidValue(v.into_static())
}
+
RemoveReactionError::Unknown(v) => RemoveReactionError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///chat.bsky.convo.removeReaction
+
pub struct RemoveReactionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RemoveReactionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = RemoveReactionOutput<'de>;
type Err = RemoveReactionError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveReaction<'de> {
+
const NSID: &'static str = "chat.bsky.convo.removeReaction";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RemoveReactionResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/send_message.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SendMessage<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendMessage<'de> {
-
const NSID: &'static str = "chat.bsky.convo.sendMessage";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SendMessageOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SendMessage<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.sendMessage
+
pub struct SendMessageResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SendMessageResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SendMessageOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendMessage<'de> {
+
const NSID: &'static str = "chat.bsky.convo.sendMessage";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = SendMessageResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs
···
}
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SendMessageBatch<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendMessageBatch<'de> {
-
const NSID: &'static str = "chat.bsky.convo.sendMessageBatch";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SendMessageBatchOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
}
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SendMessageBatch<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.sendMessageBatch
+
pub struct SendMessageBatchResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SendMessageBatchResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SendMessageBatchOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendMessageBatch<'de> {
+
const NSID: &'static str = "chat.bsky.convo.sendMessageBatch";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = SendMessageBatchResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnmuteConvo<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteConvo<'de> {
-
const NSID: &'static str = "chat.bsky.convo.unmuteConvo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UnmuteConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UnmuteConvo<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.unmuteConvo
+
pub struct UnmuteConvoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UnmuteConvoResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UnmuteConvoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UnmuteConvo<'de> {
+
const NSID: &'static str = "chat.bsky.convo.unmuteConvo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UnmuteConvoResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAllRead<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAllRead<'de> {
-
const NSID: &'static str = "chat.bsky.convo.updateAllRead";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UpdateAllReadOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAllRead<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.updateAllRead
+
pub struct UpdateAllReadResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAllReadResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UpdateAllReadOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAllRead<'de> {
+
const NSID: &'static str = "chat.bsky.convo.updateAllRead";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateAllReadResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/convo/update_read.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateRead<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateRead<'de> {
-
const NSID: &'static str = "chat.bsky.convo.updateRead";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UpdateReadOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateRead<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.convo.updateRead
+
pub struct UpdateReadResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateReadResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UpdateReadOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateRead<'de> {
+
const NSID: &'static str = "chat.bsky.convo.updateRead";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateReadResponse;
+
}
+14 -14
crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetActorMetadata<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorMetadata<'de> {
-
const NSID: &'static str = "chat.bsky.moderation.getActorMetadata";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetActorMetadataOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetActorMetadata<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.moderation.getActorMetadata
+
pub struct GetActorMetadataResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetActorMetadataResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetActorMetadataOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetActorMetadata<'de> {
+
const NSID: &'static str = "chat.bsky.moderation.getActorMetadata";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetActorMetadataResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -14
crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetMessageContext<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMessageContext<'de> {
-
const NSID: &'static str = "chat.bsky.moderation.getMessageContext";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetMessageContextOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetMessageContext<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.moderation.getMessageContext
+
pub struct GetMessageContextResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetMessageContextResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetMessageContextOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetMessageContext<'de> {
+
const NSID: &'static str = "chat.bsky.moderation.getMessageContext";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetMessageContextResponse;
+
}
+14 -16
crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateActorAccess<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateActorAccess<'de> {
-
const NSID: &'static str = "chat.bsky.moderation.updateActorAccess";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateActorAccess<'a> {
···
}
}
+
///Response type for
+
///chat.bsky.moderation.updateActorAccess
+
pub struct UpdateActorAccessResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateActorAccessResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateActorAccess<'de> {
+
const NSID: &'static str = "chat.bsky.moderation.updateActorAccess";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateActorAccessResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/delete_account.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteAccount<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount<'de> {
-
const NSID: &'static str = "com.atproto.admin.deleteAccount";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteAccount<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.deleteAccount
+
pub struct DeleteAccountResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteAccountResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount<'de> {
+
const NSID: &'static str = "com.atproto.admin.deleteAccount";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteAccountResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DisableAccountInvites<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DisableAccountInvites<'de> {
-
const NSID: &'static str = "com.atproto.admin.disableAccountInvites";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DisableAccountInvites<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.disableAccountInvites
+
pub struct DisableAccountInvitesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DisableAccountInvitesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DisableAccountInvites<'de> {
+
const NSID: &'static str = "com.atproto.admin.disableAccountInvites";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DisableAccountInvitesResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DisableInviteCodes<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DisableInviteCodes<'de> {
-
const NSID: &'static str = "com.atproto.admin.disableInviteCodes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DisableInviteCodes<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.disableInviteCodes
+
pub struct DisableInviteCodesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DisableInviteCodesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DisableInviteCodes<'de> {
+
const NSID: &'static str = "com.atproto.admin.disableInviteCodes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DisableInviteCodesResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct EnableAccountInvites<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for EnableAccountInvites<'de> {
-
const NSID: &'static str = "com.atproto.admin.enableAccountInvites";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct EnableAccountInvites<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.enableAccountInvites
+
pub struct EnableAccountInvitesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for EnableAccountInvitesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for EnableAccountInvites<'de> {
+
const NSID: &'static str = "com.atproto.admin.enableAccountInvites";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = EnableAccountInvitesResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/admin/get_account_info.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfo<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInfo<'de> {
-
const NSID: &'static str = "com.atproto.admin.getAccountInfo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetAccountInfoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfo<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.getAccountInfo
+
pub struct GetAccountInfoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountInfoResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetAccountInfoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInfo<'de> {
+
const NSID: &'static str = "com.atproto.admin.getAccountInfo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetAccountInfoResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfos<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInfos<'de> {
-
const NSID: &'static str = "com.atproto.admin.getAccountInfos";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetAccountInfosOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInfos<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.getAccountInfos
+
pub struct GetAccountInfosResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountInfosResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetAccountInfosOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInfos<'de> {
+
const NSID: &'static str = "com.atproto.admin.getAccountInfos";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetAccountInfosResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetInviteCodes<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetInviteCodes<'de> {
-
const NSID: &'static str = "com.atproto.admin.getInviteCodes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetInviteCodesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetInviteCodes<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.getInviteCodes
+
pub struct GetInviteCodesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetInviteCodesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetInviteCodesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetInviteCodes<'de> {
+
const NSID: &'static str = "com.atproto.admin.getInviteCodes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetInviteCodesResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjectStatus<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSubjectStatus<'de> {
-
const NSID: &'static str = "com.atproto.admin.getSubjectStatus";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSubjectStatusOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjectStatus<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.getSubjectStatus
+
pub struct GetSubjectStatusResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSubjectStatusResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSubjectStatusOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSubjectStatus<'de> {
+
const NSID: &'static str = "com.atproto.admin.getSubjectStatus";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSubjectStatusResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/admin/search_accounts.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchAccounts<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchAccounts<'de> {
-
const NSID: &'static str = "com.atproto.admin.searchAccounts";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchAccountsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchAccounts<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.searchAccounts
+
pub struct SearchAccountsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchAccountsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchAccountsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchAccounts<'de> {
+
const NSID: &'static str = "com.atproto.admin.searchAccounts";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchAccountsResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/send_email.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SendEmail<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendEmail<'de> {
-
const NSID: &'static str = "com.atproto.admin.sendEmail";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SendEmailOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SendEmail<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.sendEmail
+
pub struct SendEmailResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SendEmailResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SendEmailOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SendEmail<'de> {
+
const NSID: &'static str = "com.atproto.admin.sendEmail";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = SendEmailResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/update_account_email.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAccountEmail<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountEmail<'de> {
-
const NSID: &'static str = "com.atproto.admin.updateAccountEmail";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAccountEmail<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.updateAccountEmail
+
pub struct UpdateAccountEmailResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAccountEmailResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountEmail<'de> {
+
const NSID: &'static str = "com.atproto.admin.updateAccountEmail";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateAccountEmailResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAccountHandle<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountHandle<'de> {
-
const NSID: &'static str = "com.atproto.admin.updateAccountHandle";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAccountHandle<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.updateAccountHandle
+
pub struct UpdateAccountHandleResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAccountHandleResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountHandle<'de> {
+
const NSID: &'static str = "com.atproto.admin.updateAccountHandle";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateAccountHandleResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/update_account_password.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAccountPassword<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountPassword<'de> {
-
const NSID: &'static str = "com.atproto.admin.updateAccountPassword";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAccountPassword<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.updateAccountPassword
+
pub struct UpdateAccountPasswordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAccountPasswordResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountPassword<'de> {
+
const NSID: &'static str = "com.atproto.admin.updateAccountPassword";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateAccountPasswordResponse;
+
}
+14 -17
crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAccountSigningKey<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for UpdateAccountSigningKey<'de> {
-
const NSID: &'static str = "com.atproto.admin.updateAccountSigningKey";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateAccountSigningKey<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.updateAccountSigningKey
+
pub struct UpdateAccountSigningKeyResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateAccountSigningKeyResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateAccountSigningKey<'de> {
+
const NSID: &'static str = "com.atproto.admin.updateAccountSigningKey";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateAccountSigningKeyResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateSubjectStatus<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateSubjectStatus<'de> {
-
const NSID: &'static str = "com.atproto.admin.updateSubjectStatus";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UpdateSubjectStatusOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateSubjectStatus<'a> {
···
}
}
+
///Response type for
+
///com.atproto.admin.updateSubjectStatus
+
pub struct UpdateSubjectStatusResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateSubjectStatusResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UpdateSubjectStatusOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateSubjectStatus<'de> {
+
const NSID: &'static str = "com.atproto.admin.updateSubjectStatus";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateSubjectStatusResponse;
+
}
+16 -20
crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RefreshIdentity<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
RefreshIdentityError::DidDeactivated(v) => {
RefreshIdentityError::DidDeactivated(v.into_static())
}
-
RefreshIdentityError::Unknown(v) => {
-
RefreshIdentityError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RefreshIdentity<'de> {
-
const NSID: &'static str = "com.atproto.identity.refreshIdentity";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = RefreshIdentityOutput<'de>;
type Err = RefreshIdentityError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RefreshIdentity<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
RefreshIdentityError::DidDeactivated(v) => {
RefreshIdentityError::DidDeactivated(v.into_static())
}
+
RefreshIdentityError::Unknown(v) => RefreshIdentityError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.identity.refreshIdentity
+
pub struct RefreshIdentityResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RefreshIdentityResponse {
+
const ENCODING: &'static str = "application/json";
type Output = RefreshIdentityOutput<'de>;
type Err = RefreshIdentityError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RefreshIdentity<'de> {
+
const NSID: &'static str = "com.atproto.identity.refreshIdentity";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RefreshIdentityResponse;
+
}
+13 -8
crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RequestPlcOperationSignature;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for RequestPlcOperationSignature {
-
const NSID: &'static str = "com.atproto.identity.requestPlcOperationSignature";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RequestPlcOperationSignature;
+
///Response type for
+
///com.atproto.identity.requestPlcOperationSignature
+
pub struct RequestPlcOperationSignatureResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestPlcOperationSignatureResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestPlcOperationSignature {
+
const NSID: &'static str = "com.atproto.identity.requestPlcOperationSignature";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RequestPlcOperationSignatureResponse;
+
}
+17 -21
crates/jacquard-api/src/com_atproto/identity/resolve_did.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ResolveDid<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = ResolveDidError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
ResolveDidError::DidNotFound(v) => {
-
ResolveDidError::DidNotFound(v.into_static())
-
}
-
ResolveDidError::DidDeactivated(v) => {
-
ResolveDidError::DidDeactivated(v.into_static())
-
}
ResolveDidError::Unknown(v) => ResolveDidError::Unknown(v.into_static()),
}
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveDid<'de> {
const NSID: &'static str = "com.atproto.identity.resolveDid";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = ResolveDidOutput<'de>;
-
type Err = ResolveDidError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ResolveDid<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = ResolveDidError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
ResolveDidError::DidNotFound(v) => ResolveDidError::DidNotFound(v.into_static()),
+
ResolveDidError::DidDeactivated(v) => ResolveDidError::DidDeactivated(v.into_static()),
ResolveDidError::Unknown(v) => ResolveDidError::Unknown(v.into_static()),
}
}
+
}
+
+
///Response type for
+
///com.atproto.identity.resolveDid
+
pub struct ResolveDidResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ResolveDidResponse {
+
const ENCODING: &'static str = "application/json";
+
type Output = ResolveDidOutput<'de>;
+
type Err = ResolveDidError<'de>;
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveDid<'de> {
const NSID: &'static str = "com.atproto.identity.resolveDid";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ResolveDidResponse;
+
}
+16 -18
crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ResolveHandle<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ResolveHandleError::HandleNotFound(v) => {
ResolveHandleError::HandleNotFound(v.into_static())
}
-
ResolveHandleError::Unknown(v) => {
-
ResolveHandleError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveHandle<'de> {
-
const NSID: &'static str = "com.atproto.identity.resolveHandle";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ResolveHandleOutput<'de>;
type Err = ResolveHandleError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ResolveHandle<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ResolveHandleError::HandleNotFound(v) => {
ResolveHandleError::HandleNotFound(v.into_static())
}
+
ResolveHandleError::Unknown(v) => ResolveHandleError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.identity.resolveHandle
+
pub struct ResolveHandleResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ResolveHandleResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ResolveHandleOutput<'de>;
type Err = ResolveHandleError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveHandle<'de> {
+
const NSID: &'static str = "com.atproto.identity.resolveHandle";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ResolveHandleResponse;
+
}
+16 -18
crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ResolveIdentity<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ResolveIdentityError::DidDeactivated(v) => {
ResolveIdentityError::DidDeactivated(v.into_static())
}
-
ResolveIdentityError::Unknown(v) => {
-
ResolveIdentityError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveIdentity<'de> {
-
const NSID: &'static str = "com.atproto.identity.resolveIdentity";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ResolveIdentityOutput<'de>;
type Err = ResolveIdentityError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ResolveIdentity<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ResolveIdentityError::DidDeactivated(v) => {
ResolveIdentityError::DidDeactivated(v.into_static())
}
+
ResolveIdentityError::Unknown(v) => ResolveIdentityError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.identity.resolveIdentity
+
pub struct ResolveIdentityResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ResolveIdentityResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ResolveIdentityOutput<'de>;
type Err = ResolveIdentityError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResolveIdentity<'de> {
+
const NSID: &'static str = "com.atproto.identity.resolveIdentity";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ResolveIdentityResponse;
+
}
+15 -19
crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SignPlcOperation<'a> {
···
pub token: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub verification_methods: std::option::Option<
-
jacquard_common::types::value::Data<'a>,
-
>,
#[serde(flatten)]
#[serde(borrow)]
#[builder(default)]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SignPlcOperation<'de> {
-
const NSID: &'static str = "com.atproto.identity.signPlcOperation";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SignPlcOperationOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SignPlcOperation<'a> {
···
pub token: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub verification_methods: std::option::Option<jacquard_common::types::value::Data<'a>>,
#[serde(flatten)]
#[serde(borrow)]
#[builder(default)]
···
}
}
+
///Response type for
+
///com.atproto.identity.signPlcOperation
+
pub struct SignPlcOperationResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SignPlcOperationResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SignPlcOperationOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SignPlcOperation<'de> {
+
const NSID: &'static str = "com.atproto.identity.signPlcOperation";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = SignPlcOperationResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SubmitPlcOperation<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SubmitPlcOperation<'de> {
-
const NSID: &'static str = "com.atproto.identity.submitPlcOperation";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct SubmitPlcOperation<'a> {
···
}
}
+
///Response type for
+
///com.atproto.identity.submitPlcOperation
+
pub struct SubmitPlcOperationResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SubmitPlcOperationResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SubmitPlcOperation<'de> {
+
const NSID: &'static str = "com.atproto.identity.submitPlcOperation";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = SubmitPlcOperationResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/identity/update_handle.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateHandle<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateHandle<'de> {
-
const NSID: &'static str = "com.atproto.identity.updateHandle";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateHandle<'a> {
···
}
}
+
///Response type for
+
///com.atproto.identity.updateHandle
+
pub struct UpdateHandleResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateHandleResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateHandle<'de> {
+
const NSID: &'static str = "com.atproto.identity.updateHandle";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateHandleResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/label/query_labels.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct QueryLabels<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryLabels<'de> {
-
const NSID: &'static str = "com.atproto.label.queryLabels";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = QueryLabelsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct QueryLabels<'a> {
···
}
}
+
///Response type for
+
///com.atproto.label.queryLabels
+
pub struct QueryLabelsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryLabelsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = QueryLabelsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryLabels<'de> {
+
const NSID: &'static str = "com.atproto.label.queryLabels";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = QueryLabelsResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/moderation/create_report.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateReport<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateReport<'de> {
-
const NSID: &'static str = "com.atproto.moderation.createReport";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CreateReportOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
///Moderation tool information for tracing the source of the action
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateReport<'a> {
···
}
}
+
///Response type for
+
///com.atproto.moderation.createReport
+
pub struct CreateReportResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateReportResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CreateReportOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateReport<'de> {
+
const NSID: &'static str = "com.atproto.moderation.createReport";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateReportResponse;
}
///Moderation tool information for tracing the source of the action
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+19 -29
crates/jacquard-api/src/com_atproto/repo/apply_writes.rs
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rkey: std::option::Option<
-
jacquard_common::types::string::RecordKey<
-
jacquard_common::types::string::Rkey<'a>,
-
>,
>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
···
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
#[serde(borrow)]
-
pub rkey: jacquard_common::types::string::RecordKey<
-
jacquard_common::types::string::Rkey<'a>,
-
>,
}
impl jacquard_common::IntoStatic for Delete<'_> {
···
}
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct ApplyWrites<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = ApplyWritesError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
ApplyWritesError::InvalidSwap(v) => {
-
ApplyWritesError::InvalidSwap(v.into_static())
-
}
ApplyWritesError::Unknown(v) => ApplyWritesError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ApplyWrites<'de> {
-
const NSID: &'static str = "com.atproto.repo.applyWrites";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ApplyWritesOutput<'de>;
type Err = ApplyWritesError<'de>;
}
///Operation which updates an existing record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
#[serde(borrow)]
-
pub rkey: jacquard_common::types::string::RecordKey<
-
jacquard_common::types::string::Rkey<'a>,
-
>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rkey: std::option::Option<
+
jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>,
>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
···
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
#[serde(borrow)]
+
pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>,
}
impl jacquard_common::IntoStatic for Delete<'_> {
···
}
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct ApplyWrites<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = ApplyWritesError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
ApplyWritesError::InvalidSwap(v) => ApplyWritesError::InvalidSwap(v.into_static()),
ApplyWritesError::Unknown(v) => ApplyWritesError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.repo.applyWrites
+
pub struct ApplyWritesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ApplyWritesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ApplyWritesOutput<'de>;
type Err = ApplyWritesError<'de>;
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ApplyWrites<'de> {
+
const NSID: &'static str = "com.atproto.repo.applyWrites";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = ApplyWritesResponse;
+
}
+
///Operation which updates an existing record.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
#[serde(borrow)]
pub collection: jacquard_common::types::string::Nsid<'a>,
#[serde(borrow)]
+
pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>,
#[serde(borrow)]
pub value: jacquard_common::types::value::Data<'a>,
}
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+17 -23
crates/jacquard-api/src/com_atproto/repo/create_record.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateRecord<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rkey: std::option::Option<
-
jacquard_common::types::string::RecordKey<
-
jacquard_common::types::string::Rkey<'a>,
-
>,
>,
///Compare and swap with the previous commit by CID.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = CreateRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
CreateRecordError::InvalidSwap(v) => {
-
CreateRecordError::InvalidSwap(v.into_static())
-
}
CreateRecordError::Unknown(v) => CreateRecordError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateRecord<'de> {
-
const NSID: &'static str = "com.atproto.repo.createRecord";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CreateRecordOutput<'de>;
type Err = CreateRecordError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateRecord<'a> {
···
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub rkey: std::option::Option<
+
jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>,
>,
///Compare and swap with the previous commit by CID.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = CreateRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
CreateRecordError::InvalidSwap(v) => CreateRecordError::InvalidSwap(v.into_static()),
CreateRecordError::Unknown(v) => CreateRecordError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.repo.createRecord
+
pub struct CreateRecordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateRecordResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CreateRecordOutput<'de>;
type Err = CreateRecordError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateRecord<'de> {
+
const NSID: &'static str = "com.atproto.repo.createRecord";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateRecordResponse;
+
}
+17 -23
crates/jacquard-api/src/com_atproto/repo/delete_record.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteRecord<'a> {
···
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
///The Record Key.
#[serde(borrow)]
-
pub rkey: jacquard_common::types::string::RecordKey<
-
jacquard_common::types::string::Rkey<'a>,
-
>,
///Compare and swap with the previous commit by CID.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = DeleteRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
DeleteRecordError::InvalidSwap(v) => {
-
DeleteRecordError::InvalidSwap(v.into_static())
-
}
DeleteRecordError::Unknown(v) => DeleteRecordError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteRecord<'de> {
-
const NSID: &'static str = "com.atproto.repo.deleteRecord";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = DeleteRecordOutput<'de>;
type Err = DeleteRecordError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteRecord<'a> {
···
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
///The Record Key.
#[serde(borrow)]
+
pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>,
///Compare and swap with the previous commit by CID.
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = DeleteRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
DeleteRecordError::InvalidSwap(v) => DeleteRecordError::InvalidSwap(v.into_static()),
DeleteRecordError::Unknown(v) => DeleteRecordError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.repo.deleteRecord
+
pub struct DeleteRecordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteRecordResponse {
+
const ENCODING: &'static str = "application/json";
type Output = DeleteRecordOutput<'de>;
type Err = DeleteRecordError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteRecord<'de> {
+
const NSID: &'static str = "com.atproto.repo.deleteRecord";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteRecordResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/repo/describe_repo.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct DescribeRepo<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeRepo<'de> {
-
const NSID: &'static str = "com.atproto.repo.describeRepo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = DescribeRepoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct DescribeRepo<'a> {
···
}
}
+
///Response type for
+
///com.atproto.repo.describeRepo
+
pub struct DescribeRepoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DescribeRepoResponse {
+
const ENCODING: &'static str = "application/json";
type Output = DescribeRepoOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeRepo<'de> {
+
const NSID: &'static str = "com.atproto.repo.describeRepo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = DescribeRepoResponse;
+
}
+17 -21
crates/jacquard-api/src/com_atproto/repo/get_record.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRecord<'a> {
···
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(borrow)]
-
pub rkey: jacquard_common::types::string::RecordKey<
-
jacquard_common::types::string::Rkey<'a>,
-
>,
}
impl jacquard_common::IntoStatic for GetRecord<'_> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
GetRecordError::RecordNotFound(v) => {
-
GetRecordError::RecordNotFound(v.into_static())
-
}
GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()),
}
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> {
const NSID: &'static str = "com.atproto.repo.getRecord";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = GetRecordOutput<'de>;
-
type Err = GetRecordError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRecord<'a> {
···
#[serde(borrow)]
pub repo: jacquard_common::types::ident::AtIdentifier<'a>,
#[serde(borrow)]
+
pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>,
}
impl jacquard_common::IntoStatic for GetRecord<'_> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
GetRecordError::RecordNotFound(v) => GetRecordError::RecordNotFound(v.into_static()),
GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()),
}
}
+
}
+
+
///Response type for
+
///com.atproto.repo.getRecord
+
pub struct GetRecordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRecordResponse {
+
const ENCODING: &'static str = "application/json";
+
type Output = GetRecordOutput<'de>;
+
type Err = GetRecordError<'de>;
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> {
const NSID: &'static str = "com.atproto.repo.getRecord";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRecordResponse;
+
}
+18 -25
crates/jacquard-api/src/com_atproto/repo/import_repo.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ImportRepo {
···
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ImportRepo {
const NSID: &'static str = "com.atproto.repo.importRepo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/vnd.ipld.car",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = ();
-
type Err = jacquard_common::types::xrpc::GenericError<'de>;
fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> {
Ok(self.body.to_vec())
}
-
fn decode_body(
-
&self,
-
body: &'de [u8],
-
) -> Result<Box<Self>, jacquard_common::error::DecodeError> {
-
Ok(
-
Box::new(Self {
-
body: bytes::Bytes::copy_from_slice(body),
-
}),
-
)
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ImportRepo {
···
}
}
+
///Response type for
+
///com.atproto.repo.importRepo
+
pub struct ImportRepoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ImportRepoResponse {
+
const ENCODING: &'static str = "application/json";
+
type Output = ();
+
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ImportRepo {
const NSID: &'static str = "com.atproto.repo.importRepo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/vnd.ipld.car");
+
type Response<'de1> = ImportRepoResponse;
fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> {
Ok(self.body.to_vec())
}
+
fn decode_body(body: &'de [u8]) -> Result<Box<Self>, jacquard_common::error::DecodeError> {
+
Ok(Box::new(Self {
+
body: bytes::Bytes::copy_from_slice(body),
+
}))
}
+
}
+14 -14
crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListMissingBlobs<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListMissingBlobs<'de> {
-
const NSID: &'static str = "com.atproto.repo.listMissingBlobs";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListMissingBlobsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListMissingBlobs<'a> {
···
}
}
+
///Response type for
+
///com.atproto.repo.listMissingBlobs
+
pub struct ListMissingBlobsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListMissingBlobsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListMissingBlobsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListMissingBlobs<'de> {
+
const NSID: &'static str = "com.atproto.repo.listMissingBlobs";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListMissingBlobsResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -14
crates/jacquard-api/src/com_atproto/repo/list_records.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListRecords<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListRecords<'de> {
-
const NSID: &'static str = "com.atproto.repo.listRecords";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListRecordsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListRecords<'a> {
···
}
}
+
///Response type for
+
///com.atproto.repo.listRecords
+
pub struct ListRecordsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListRecordsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListRecordsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListRecords<'de> {
+
const NSID: &'static str = "com.atproto.repo.listRecords";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListRecordsResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+10 -3
crates/jacquard-api/src/com_atproto/repo/put_record.rs
···
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutRecord<'de> {
const NSID: &'static str = "com.atproto.repo.putRecord";
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = PutRecordOutput<'de>;
-
type Err = PutRecordError<'de>;
}
···
}
}
+
///Response type for
+
///com.atproto.repo.putRecord
+
pub struct PutRecordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for PutRecordResponse {
+
const ENCODING: &'static str = "application/json";
+
type Output = PutRecordOutput<'de>;
+
type Err = PutRecordError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for PutRecord<'de> {
const NSID: &'static str = "com.atproto.repo.putRecord";
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = PutRecordResponse;
}
+11 -7
crates/jacquard-api/src/com_atproto/repo/upload_blob.rs
···
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UploadBlob {
const NSID: &'static str = "com.atproto.repo.uploadBlob";
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
jacquard_common::types::xrpc::XrpcMethod::Procedure("*/*");
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = UploadBlobOutput<'de>;
-
type Err = jacquard_common::types::xrpc::GenericError<'de>;
fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> {
Ok(self.body.to_vec())
}
-
fn decode_body(
-
&self,
-
body: &'de [u8],
-
) -> Result<Box<Self>, jacquard_common::error::DecodeError> {
Ok(Box::new(Self {
body: bytes::Bytes::copy_from_slice(body),
}))
···
}
}
+
///Response type for
+
///com.atproto.repo.uploadBlob
+
pub struct UploadBlobResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UploadBlobResponse {
+
const ENCODING: &'static str = "application/json";
+
type Output = UploadBlobOutput<'de>;
+
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UploadBlob {
const NSID: &'static str = "com.atproto.repo.uploadBlob";
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
jacquard_common::types::xrpc::XrpcMethod::Procedure("*/*");
+
type Response<'de1> = UploadBlobResponse;
fn encode_body(&self) -> Result<Vec<u8>, jacquard_common::types::xrpc::EncodeError> {
Ok(self.body.to_vec())
}
+
fn decode_body(body: &'de [u8]) -> Result<Box<Self>, jacquard_common::error::DecodeError> {
Ok(Box::new(Self {
body: bytes::Bytes::copy_from_slice(body),
}))
+13 -7
crates/jacquard-api/src/com_atproto/server/activate_account.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ActivateAccount;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ActivateAccount {
-
const NSID: &'static str = "com.atproto.server.activateAccount";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ActivateAccount;
+
///Response type for
+
///com.atproto.server.activateAccount
+
pub struct ActivateAccountResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ActivateAccountResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ActivateAccount {
+
const NSID: &'static str = "com.atproto.server.activateAccount";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = ActivateAccountResponse;
+
}
+13 -5
crates/jacquard-api/src/com_atproto/server/check_account_status.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct CheckAccountStatus;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckAccountStatus {
-
const NSID: &'static str = "com.atproto.server.checkAccountStatus";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CheckAccountStatusOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct CheckAccountStatus;
+
///Response type for
+
///com.atproto.server.checkAccountStatus
+
pub struct CheckAccountStatusResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CheckAccountStatusResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CheckAccountStatusOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckAccountStatus {
+
const NSID: &'static str = "com.atproto.server.checkAccountStatus";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = CheckAccountStatusResponse;
+
}
+18 -26
crates/jacquard-api/src/com_atproto/server/confirm_email.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct ConfirmEmail<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ConfirmEmailError::AccountNotFound(v) => {
ConfirmEmailError::AccountNotFound(v.into_static())
}
-
ConfirmEmailError::ExpiredToken(v) => {
-
ConfirmEmailError::ExpiredToken(v.into_static())
-
}
-
ConfirmEmailError::InvalidToken(v) => {
-
ConfirmEmailError::InvalidToken(v.into_static())
-
}
-
ConfirmEmailError::InvalidEmail(v) => {
-
ConfirmEmailError::InvalidEmail(v.into_static())
-
}
ConfirmEmailError::Unknown(v) => ConfirmEmailError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ConfirmEmail<'de> {
-
const NSID: &'static str = "com.atproto.server.confirmEmail";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = ConfirmEmailError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct ConfirmEmail<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ConfirmEmailError::AccountNotFound(v) => {
ConfirmEmailError::AccountNotFound(v.into_static())
}
+
ConfirmEmailError::ExpiredToken(v) => ConfirmEmailError::ExpiredToken(v.into_static()),
+
ConfirmEmailError::InvalidToken(v) => ConfirmEmailError::InvalidToken(v.into_static()),
+
ConfirmEmailError::InvalidEmail(v) => ConfirmEmailError::InvalidEmail(v.into_static()),
ConfirmEmailError::Unknown(v) => ConfirmEmailError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.server.confirmEmail
+
pub struct ConfirmEmailResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ConfirmEmailResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = ConfirmEmailError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ConfirmEmail<'de> {
+
const NSID: &'static str = "com.atproto.server.confirmEmail";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = ConfirmEmailResponse;
+
}
+16 -20
crates/jacquard-api/src/com_atproto/server/create_account.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateAccount<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateAccountError::IncompatibleDidDoc(v) => {
CreateAccountError::IncompatibleDidDoc(v.into_static())
}
-
CreateAccountError::Unknown(v) => {
-
CreateAccountError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateAccount<'de> {
-
const NSID: &'static str = "com.atproto.server.createAccount";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CreateAccountOutput<'de>;
type Err = CreateAccountError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateAccount<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateAccountError::IncompatibleDidDoc(v) => {
CreateAccountError::IncompatibleDidDoc(v.into_static())
}
+
CreateAccountError::Unknown(v) => CreateAccountError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.server.createAccount
+
pub struct CreateAccountResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateAccountResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CreateAccountOutput<'de>;
type Err = CreateAccountError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateAccount<'de> {
+
const NSID: &'static str = "com.atproto.server.createAccount";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateAccountResponse;
+
}
+16 -20
crates/jacquard-api/src/com_atproto/server/create_app_password.rs
···
}
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateAppPassword<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateAppPasswordError::AccountTakedown(v) => {
CreateAppPasswordError::AccountTakedown(v.into_static())
}
-
CreateAppPasswordError::Unknown(v) => {
-
CreateAppPasswordError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateAppPassword<'de> {
-
const NSID: &'static str = "com.atproto.server.createAppPassword";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CreateAppPasswordOutput<'de>;
type Err = CreateAppPasswordError<'de>;
-
}
···
}
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateAppPassword<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateAppPasswordError::AccountTakedown(v) => {
CreateAppPasswordError::AccountTakedown(v.into_static())
}
+
CreateAppPasswordError::Unknown(v) => CreateAppPasswordError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.server.createAppPassword
+
pub struct CreateAppPasswordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateAppPasswordResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CreateAppPasswordOutput<'de>;
type Err = CreateAppPasswordError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateAppPassword<'de> {
+
const NSID: &'static str = "com.atproto.server.createAppPassword";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateAppPasswordResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/server/create_invite_code.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateInviteCode<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateInviteCode<'de> {
-
const NSID: &'static str = "com.atproto.server.createInviteCode";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CreateInviteCodeOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateInviteCode<'a> {
···
}
}
+
///Response type for
+
///com.atproto.server.createInviteCode
+
pub struct CreateInviteCodeResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateInviteCodeResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CreateInviteCodeOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateInviteCode<'de> {
+
const NSID: &'static str = "com.atproto.server.createInviteCode";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateInviteCodeResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs
···
}
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateInviteCodes<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateInviteCodes<'de> {
-
const NSID: &'static str = "com.atproto.server.createInviteCodes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CreateInviteCodesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
}
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateInviteCodes<'a> {
···
}
}
+
///Response type for
+
///com.atproto.server.createInviteCodes
+
pub struct CreateInviteCodesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateInviteCodesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CreateInviteCodesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateInviteCodes<'de> {
+
const NSID: &'static str = "com.atproto.server.createInviteCodes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateInviteCodesResponse;
+
}
+16 -20
crates/jacquard-api/src/com_atproto/server/create_session.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateSession<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateSessionError::AuthFactorTokenRequired(v) => {
CreateSessionError::AuthFactorTokenRequired(v.into_static())
}
-
CreateSessionError::Unknown(v) => {
-
CreateSessionError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateSession<'de> {
-
const NSID: &'static str = "com.atproto.server.createSession";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CreateSessionOutput<'de>;
type Err = CreateSessionError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateSession<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateSessionError::AuthFactorTokenRequired(v) => {
CreateSessionError::AuthFactorTokenRequired(v.into_static())
}
+
CreateSessionError::Unknown(v) => CreateSessionError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.server.createSession
+
pub struct CreateSessionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateSessionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CreateSessionOutput<'de>;
type Err = CreateSessionError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateSession<'de> {
+
const NSID: &'static str = "com.atproto.server.createSession";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateSessionResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/server/deactivate_account.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeactivateAccount<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeactivateAccount<'de> {
-
const NSID: &'static str = "com.atproto.server.deactivateAccount";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeactivateAccount<'a> {
···
}
}
+
///Response type for
+
///com.atproto.server.deactivateAccount
+
pub struct DeactivateAccountResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeactivateAccountResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeactivateAccount<'de> {
+
const NSID: &'static str = "com.atproto.server.deactivateAccount";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeactivateAccountResponse;
+
}
+16 -20
crates/jacquard-api/src/com_atproto/server/delete_account.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteAccount<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
DeleteAccountError::InvalidToken(v) => {
DeleteAccountError::InvalidToken(v.into_static())
}
-
DeleteAccountError::Unknown(v) => {
-
DeleteAccountError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount<'de> {
-
const NSID: &'static str = "com.atproto.server.deleteAccount";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = DeleteAccountError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteAccount<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
DeleteAccountError::InvalidToken(v) => {
DeleteAccountError::InvalidToken(v.into_static())
}
+
DeleteAccountError::Unknown(v) => DeleteAccountError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.server.deleteAccount
+
pub struct DeleteAccountResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteAccountResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = DeleteAccountError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteAccount<'de> {
+
const NSID: &'static str = "com.atproto.server.deleteAccount";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteAccountResponse;
+
}
+13 -7
crates/jacquard-api/src/com_atproto/server/delete_session.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct DeleteSession;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteSession {
-
const NSID: &'static str = "com.atproto.server.deleteSession";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct DeleteSession;
+
///Response type for
+
///com.atproto.server.deleteSession
+
pub struct DeleteSessionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteSessionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteSession {
+
const NSID: &'static str = "com.atproto.server.deleteSession";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteSessionResponse;
+
}
+13 -5
crates/jacquard-api/src/com_atproto/server/describe_server.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct DescribeServer;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeServer {
-
const NSID: &'static str = "com.atproto.server.describeServer";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = DescribeServerOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct DescribeServer;
+
///Response type for
+
///com.atproto.server.describeServer
+
pub struct DescribeServerResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DescribeServerResponse {
+
const ENCODING: &'static str = "application/json";
type Output = DescribeServerOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DescribeServer {
+
const NSID: &'static str = "com.atproto.server.describeServer";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = DescribeServerResponse;
+
}
+15 -15
crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInviteCodes {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInviteCodes {
-
const NSID: &'static str = "com.atproto.server.getAccountInviteCodes";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetAccountInviteCodesOutput<'de>;
type Err = GetAccountInviteCodesError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountInviteCodes {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///com.atproto.server.getAccountInviteCodes
+
pub struct GetAccountInviteCodesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountInviteCodesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetAccountInviteCodesOutput<'de>;
type Err = GetAccountInviteCodesError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountInviteCodes {
+
const NSID: &'static str = "com.atproto.server.getAccountInviteCodes";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetAccountInviteCodesResponse;
+
}
+16 -18
crates/jacquard-api/src/com_atproto/server/get_service_auth.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetServiceAuth<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetServiceAuthError::BadExpiration(v) => {
GetServiceAuthError::BadExpiration(v.into_static())
}
-
GetServiceAuthError::Unknown(v) => {
-
GetServiceAuthError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetServiceAuth<'de> {
-
const NSID: &'static str = "com.atproto.server.getServiceAuth";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetServiceAuthOutput<'de>;
type Err = GetServiceAuthError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetServiceAuth<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetServiceAuthError::BadExpiration(v) => {
GetServiceAuthError::BadExpiration(v.into_static())
}
+
GetServiceAuthError::Unknown(v) => GetServiceAuthError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.server.getServiceAuth
+
pub struct GetServiceAuthResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetServiceAuthResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetServiceAuthOutput<'de>;
type Err = GetServiceAuthError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetServiceAuth<'de> {
+
const NSID: &'static str = "com.atproto.server.getServiceAuth";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetServiceAuthResponse;
+
}
+13 -5
crates/jacquard-api/src/com_atproto/server/get_session.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetSession;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSession {
-
const NSID: &'static str = "com.atproto.server.getSession";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSessionOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetSession;
+
///Response type for
+
///com.atproto.server.getSession
+
pub struct GetSessionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSessionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSessionOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSession {
+
const NSID: &'static str = "com.atproto.server.getSession";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSessionResponse;
+
}
+15 -9
crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ListAppPasswordsError::AccountTakedown(v) => {
ListAppPasswordsError::AccountTakedown(v.into_static())
}
-
ListAppPasswordsError::Unknown(v) => {
-
ListAppPasswordsError::Unknown(v.into_static())
-
}
}
}
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ListAppPasswords;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListAppPasswords {
-
const NSID: &'static str = "com.atproto.server.listAppPasswords";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListAppPasswordsOutput<'de>;
type Err = ListAppPasswordsError<'de>;
-
}
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ListAppPasswordsError::AccountTakedown(v) => {
ListAppPasswordsError::AccountTakedown(v.into_static())
}
+
ListAppPasswordsError::Unknown(v) => ListAppPasswordsError::Unknown(v.into_static()),
}
}
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ListAppPasswords;
+
///Response type for
+
///com.atproto.server.listAppPasswords
+
pub struct ListAppPasswordsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListAppPasswordsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListAppPasswordsOutput<'de>;
type Err = ListAppPasswordsError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListAppPasswords {
+
const NSID: &'static str = "com.atproto.server.listAppPasswords";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListAppPasswordsResponse;
+
}
+15 -11
crates/jacquard-api/src/com_atproto/server/refresh_session.rs
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
RefreshSessionError::AccountTakedown(v) => {
RefreshSessionError::AccountTakedown(v.into_static())
}
-
RefreshSessionError::Unknown(v) => {
-
RefreshSessionError::Unknown(v.into_static())
-
}
}
}
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RefreshSession;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RefreshSession {
-
const NSID: &'static str = "com.atproto.server.refreshSession";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = RefreshSessionOutput<'de>;
type Err = RefreshSessionError<'de>;
-
}
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
RefreshSessionError::AccountTakedown(v) => {
RefreshSessionError::AccountTakedown(v.into_static())
}
+
RefreshSessionError::Unknown(v) => RefreshSessionError::Unknown(v.into_static()),
}
}
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RefreshSession;
+
///Response type for
+
///com.atproto.server.refreshSession
+
pub struct RefreshSessionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RefreshSessionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = RefreshSessionOutput<'de>;
type Err = RefreshSessionError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RefreshSession {
+
const NSID: &'static str = "com.atproto.server.refreshSession";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RefreshSessionResponse;
+
}
+13 -7
crates/jacquard-api/src/com_atproto/server/request_account_delete.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RequestAccountDelete;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestAccountDelete {
-
const NSID: &'static str = "com.atproto.server.requestAccountDelete";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RequestAccountDelete;
+
///Response type for
+
///com.atproto.server.requestAccountDelete
+
pub struct RequestAccountDeleteResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestAccountDeleteResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestAccountDelete {
+
const NSID: &'static str = "com.atproto.server.requestAccountDelete";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RequestAccountDeleteResponse;
+
}
+13 -7
crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RequestEmailConfirmation;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestEmailConfirmation {
-
const NSID: &'static str = "com.atproto.server.requestEmailConfirmation";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RequestEmailConfirmation;
+
///Response type for
+
///com.atproto.server.requestEmailConfirmation
+
pub struct RequestEmailConfirmationResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestEmailConfirmationResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestEmailConfirmation {
+
const NSID: &'static str = "com.atproto.server.requestEmailConfirmation";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RequestEmailConfirmationResponse;
+
}
+13 -7
crates/jacquard-api/src/com_atproto/server/request_email_update.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RequestEmailUpdate;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestEmailUpdate {
-
const NSID: &'static str = "com.atproto.server.requestEmailUpdate";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = RequestEmailUpdateOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct RequestEmailUpdate;
+
///Response type for
+
///com.atproto.server.requestEmailUpdate
+
pub struct RequestEmailUpdateResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestEmailUpdateResponse {
+
const ENCODING: &'static str = "application/json";
type Output = RequestEmailUpdateOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestEmailUpdate {
+
const NSID: &'static str = "com.atproto.server.requestEmailUpdate";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RequestEmailUpdateResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/server/request_password_reset.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RequestPasswordReset<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestPasswordReset<'de> {
-
const NSID: &'static str = "com.atproto.server.requestPasswordReset";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RequestPasswordReset<'a> {
···
}
}
+
///Response type for
+
///com.atproto.server.requestPasswordReset
+
pub struct RequestPasswordResetResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestPasswordResetResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestPasswordReset<'de> {
+
const NSID: &'static str = "com.atproto.server.requestPasswordReset";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RequestPasswordResetResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct ReserveSigningKey<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ReserveSigningKey<'de> {
-
const NSID: &'static str = "com.atproto.server.reserveSigningKey";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ReserveSigningKeyOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct ReserveSigningKey<'a> {
···
}
}
+
///Response type for
+
///com.atproto.server.reserveSigningKey
+
pub struct ReserveSigningKeyResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ReserveSigningKeyResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ReserveSigningKeyOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ReserveSigningKey<'de> {
+
const NSID: &'static str = "com.atproto.server.reserveSigningKey";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = ReserveSigningKeyResponse;
+
}
+16 -20
crates/jacquard-api/src/com_atproto/server/reset_password.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct ResetPassword<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ResetPasswordError::InvalidToken(v) => {
ResetPasswordError::InvalidToken(v.into_static())
}
-
ResetPasswordError::Unknown(v) => {
-
ResetPasswordError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResetPassword<'de> {
-
const NSID: &'static str = "com.atproto.server.resetPassword";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = ResetPasswordError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct ResetPassword<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
ResetPasswordError::InvalidToken(v) => {
ResetPasswordError::InvalidToken(v.into_static())
}
+
ResetPasswordError::Unknown(v) => ResetPasswordError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.server.resetPassword
+
pub struct ResetPasswordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ResetPasswordResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = ResetPasswordError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ResetPassword<'de> {
+
const NSID: &'static str = "com.atproto.server.resetPassword";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = ResetPasswordResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RevokeAppPassword<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeAppPassword<'de> {
-
const NSID: &'static str = "com.atproto.server.revokeAppPassword";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RevokeAppPassword<'a> {
···
}
}
+
///Response type for
+
///com.atproto.server.revokeAppPassword
+
pub struct RevokeAppPasswordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RevokeAppPasswordResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeAppPassword<'de> {
+
const NSID: &'static str = "com.atproto.server.revokeAppPassword";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RevokeAppPasswordResponse;
+
}
+18 -26
crates/jacquard-api/src/com_atproto/server/update_email.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateEmail<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = UpdateEmailError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
UpdateEmailError::ExpiredToken(v) => {
-
UpdateEmailError::ExpiredToken(v.into_static())
-
}
-
UpdateEmailError::InvalidToken(v) => {
-
UpdateEmailError::InvalidToken(v.into_static())
-
}
-
UpdateEmailError::TokenRequired(v) => {
-
UpdateEmailError::TokenRequired(v.into_static())
-
}
UpdateEmailError::Unknown(v) => UpdateEmailError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateEmail<'de> {
-
const NSID: &'static str = "com.atproto.server.updateEmail";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = UpdateEmailError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateEmail<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = UpdateEmailError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
UpdateEmailError::ExpiredToken(v) => UpdateEmailError::ExpiredToken(v.into_static()),
+
UpdateEmailError::InvalidToken(v) => UpdateEmailError::InvalidToken(v.into_static()),
+
UpdateEmailError::TokenRequired(v) => UpdateEmailError::TokenRequired(v.into_static()),
UpdateEmailError::Unknown(v) => UpdateEmailError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.server.updateEmail
+
pub struct UpdateEmailResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateEmailResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = UpdateEmailError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateEmail<'de> {
+
const NSID: &'static str = "com.atproto.server.updateEmail";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateEmailResponse;
+
}
+18 -24
crates/jacquard-api/src/com_atproto/sync/get_blob.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetBlob<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
match self {
GetBlobError::BlobNotFound(v) => GetBlobError::BlobNotFound(v.into_static()),
GetBlobError::RepoNotFound(v) => GetBlobError::RepoNotFound(v.into_static()),
-
GetBlobError::RepoTakendown(v) => {
-
GetBlobError::RepoTakendown(v.into_static())
-
}
-
GetBlobError::RepoSuspended(v) => {
-
GetBlobError::RepoSuspended(v.into_static())
-
}
-
GetBlobError::RepoDeactivated(v) => {
-
GetBlobError::RepoDeactivated(v.into_static())
-
}
GetBlobError::Unknown(v) => GetBlobError::Unknown(v.into_static()),
}
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlob<'de> {
const NSID: &'static str = "com.atproto.sync.getBlob";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "*/*";
-
type Output = GetBlobOutput<'de>;
-
type Err = GetBlobError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetBlob<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
match self {
GetBlobError::BlobNotFound(v) => GetBlobError::BlobNotFound(v.into_static()),
GetBlobError::RepoNotFound(v) => GetBlobError::RepoNotFound(v.into_static()),
+
GetBlobError::RepoTakendown(v) => GetBlobError::RepoTakendown(v.into_static()),
+
GetBlobError::RepoSuspended(v) => GetBlobError::RepoSuspended(v.into_static()),
+
GetBlobError::RepoDeactivated(v) => GetBlobError::RepoDeactivated(v.into_static()),
GetBlobError::Unknown(v) => GetBlobError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.getBlob
+
pub struct GetBlobResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetBlobResponse {
+
const ENCODING: &'static str = "*/*";
+
type Output = GetBlobOutput<'de>;
+
type Err = GetBlobError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlob<'de> {
const NSID: &'static str = "com.atproto.sync.getBlob";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetBlobResponse;
+
}
+20 -30
crates/jacquard-api/src/com_atproto/sync/get_blocks.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetBlocks<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetBlocksError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
GetBlocksError::BlockNotFound(v) => {
-
GetBlocksError::BlockNotFound(v.into_static())
-
}
-
GetBlocksError::RepoNotFound(v) => {
-
GetBlocksError::RepoNotFound(v.into_static())
-
}
-
GetBlocksError::RepoTakendown(v) => {
-
GetBlocksError::RepoTakendown(v.into_static())
-
}
-
GetBlocksError::RepoSuspended(v) => {
-
GetBlocksError::RepoSuspended(v.into_static())
-
}
-
GetBlocksError::RepoDeactivated(v) => {
-
GetBlocksError::RepoDeactivated(v.into_static())
-
}
GetBlocksError::Unknown(v) => GetBlocksError::Unknown(v.into_static()),
}
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlocks<'de> {
const NSID: &'static str = "com.atproto.sync.getBlocks";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car";
-
type Output = GetBlocksOutput<'de>;
-
type Err = GetBlocksError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetBlocks<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetBlocksError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
GetBlocksError::BlockNotFound(v) => GetBlocksError::BlockNotFound(v.into_static()),
+
GetBlocksError::RepoNotFound(v) => GetBlocksError::RepoNotFound(v.into_static()),
+
GetBlocksError::RepoTakendown(v) => GetBlocksError::RepoTakendown(v.into_static()),
+
GetBlocksError::RepoSuspended(v) => GetBlocksError::RepoSuspended(v.into_static()),
+
GetBlocksError::RepoDeactivated(v) => GetBlocksError::RepoDeactivated(v.into_static()),
GetBlocksError::Unknown(v) => GetBlocksError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.getBlocks
+
pub struct GetBlocksResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetBlocksResponse {
+
const ENCODING: &'static str = "application/vnd.ipld.car";
+
type Output = GetBlocksOutput<'de>;
+
type Err = GetBlocksError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetBlocks<'de> {
const NSID: &'static str = "com.atproto.sync.getBlocks";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetBlocksResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/sync/get_checkout.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetCheckout<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetCheckout<'de> {
-
const NSID: &'static str = "com.atproto.sync.getCheckout";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car";
type Output = GetCheckoutOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetCheckout<'a> {
···
}
}
+
///Response type for
+
///com.atproto.sync.getCheckout
+
pub struct GetCheckoutResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetCheckoutResponse {
+
const ENCODING: &'static str = "application/vnd.ipld.car";
type Output = GetCheckoutOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetCheckout<'de> {
+
const NSID: &'static str = "com.atproto.sync.getCheckout";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetCheckoutResponse;
+
}
+15 -15
crates/jacquard-api/src/com_atproto/sync/get_head.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetHead<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetHead<'de> {
-
const NSID: &'static str = "com.atproto.sync.getHead";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetHeadOutput<'de>;
type Err = GetHeadError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetHead<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///com.atproto.sync.getHead
+
pub struct GetHeadResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetHeadResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetHeadOutput<'de>;
type Err = GetHeadError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetHead<'de> {
+
const NSID: &'static str = "com.atproto.sync.getHead";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetHeadResponse;
+
}
+16 -18
crates/jacquard-api/src/com_atproto/sync/get_host_status.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetHostStatus<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetHostStatusError::HostNotFound(v) => {
GetHostStatusError::HostNotFound(v.into_static())
}
-
GetHostStatusError::Unknown(v) => {
-
GetHostStatusError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetHostStatus<'de> {
-
const NSID: &'static str = "com.atproto.sync.getHostStatus";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetHostStatusOutput<'de>;
type Err = GetHostStatusError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetHostStatus<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetHostStatusError::HostNotFound(v) => {
GetHostStatusError::HostNotFound(v.into_static())
}
+
GetHostStatusError::Unknown(v) => GetHostStatusError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.getHostStatus
+
pub struct GetHostStatusResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetHostStatusResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetHostStatusOutput<'de>;
type Err = GetHostStatusError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetHostStatus<'de> {
+
const NSID: &'static str = "com.atproto.sync.getHostStatus";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetHostStatusResponse;
+
}
+16 -18
crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetLatestCommit<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetLatestCommitError::RepoDeactivated(v) => {
GetLatestCommitError::RepoDeactivated(v.into_static())
}
-
GetLatestCommitError::Unknown(v) => {
-
GetLatestCommitError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLatestCommit<'de> {
-
const NSID: &'static str = "com.atproto.sync.getLatestCommit";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetLatestCommitOutput<'de>;
type Err = GetLatestCommitError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetLatestCommit<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetLatestCommitError::RepoDeactivated(v) => {
GetLatestCommitError::RepoDeactivated(v.into_static())
}
+
GetLatestCommitError::Unknown(v) => GetLatestCommitError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.getLatestCommit
+
pub struct GetLatestCommitResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetLatestCommitResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetLatestCommitOutput<'de>;
type Err = GetLatestCommitError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetLatestCommit<'de> {
+
const NSID: &'static str = "com.atproto.sync.getLatestCommit";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetLatestCommitResponse;
+
}
+21 -33
crates/jacquard-api/src/com_atproto/sync/get_record.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRecord<'a> {
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
-
pub rkey: jacquard_common::types::string::RecordKey<
-
jacquard_common::types::string::Rkey<'a>,
-
>,
}
impl jacquard_common::IntoStatic for GetRecord<'_> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
GetRecordError::RecordNotFound(v) => {
-
GetRecordError::RecordNotFound(v.into_static())
-
}
-
GetRecordError::RepoNotFound(v) => {
-
GetRecordError::RepoNotFound(v.into_static())
-
}
-
GetRecordError::RepoTakendown(v) => {
-
GetRecordError::RepoTakendown(v.into_static())
-
}
-
GetRecordError::RepoSuspended(v) => {
-
GetRecordError::RepoSuspended(v.into_static())
-
}
-
GetRecordError::RepoDeactivated(v) => {
-
GetRecordError::RepoDeactivated(v.into_static())
-
}
GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()),
}
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> {
const NSID: &'static str = "com.atproto.sync.getRecord";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car";
-
type Output = GetRecordOutput<'de>;
-
type Err = GetRecordError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRecord<'a> {
···
#[serde(borrow)]
pub did: jacquard_common::types::string::Did<'a>,
#[serde(borrow)]
+
pub rkey: jacquard_common::types::string::RecordKey<jacquard_common::types::string::Rkey<'a>>,
}
impl jacquard_common::IntoStatic for GetRecord<'_> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
GetRecordError::RecordNotFound(v) => GetRecordError::RecordNotFound(v.into_static()),
+
GetRecordError::RepoNotFound(v) => GetRecordError::RepoNotFound(v.into_static()),
+
GetRecordError::RepoTakendown(v) => GetRecordError::RepoTakendown(v.into_static()),
+
GetRecordError::RepoSuspended(v) => GetRecordError::RepoSuspended(v.into_static()),
+
GetRecordError::RepoDeactivated(v) => GetRecordError::RepoDeactivated(v.into_static()),
GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.getRecord
+
pub struct GetRecordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRecordResponse {
+
const ENCODING: &'static str = "application/vnd.ipld.car";
+
type Output = GetRecordOutput<'de>;
+
type Err = GetRecordError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> {
const NSID: &'static str = "com.atproto.sync.getRecord";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRecordResponse;
+
}
+18 -24
crates/jacquard-api/src/com_atproto/sync/get_repo.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepo<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
fn into_static(self) -> Self::Output {
match self {
GetRepoError::RepoNotFound(v) => GetRepoError::RepoNotFound(v.into_static()),
-
GetRepoError::RepoTakendown(v) => {
-
GetRepoError::RepoTakendown(v.into_static())
-
}
-
GetRepoError::RepoSuspended(v) => {
-
GetRepoError::RepoSuspended(v.into_static())
-
}
-
GetRepoError::RepoDeactivated(v) => {
-
GetRepoError::RepoDeactivated(v.into_static())
-
}
GetRepoError::Unknown(v) => GetRepoError::Unknown(v.into_static()),
}
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepo<'de> {
const NSID: &'static str = "com.atproto.sync.getRepo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car";
-
type Output = GetRepoOutput<'de>;
-
type Err = GetRepoError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepo<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
fn into_static(self) -> Self::Output {
match self {
GetRepoError::RepoNotFound(v) => GetRepoError::RepoNotFound(v.into_static()),
+
GetRepoError::RepoTakendown(v) => GetRepoError::RepoTakendown(v.into_static()),
+
GetRepoError::RepoSuspended(v) => GetRepoError::RepoSuspended(v.into_static()),
+
GetRepoError::RepoDeactivated(v) => GetRepoError::RepoDeactivated(v.into_static()),
GetRepoError::Unknown(v) => GetRepoError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.getRepo
+
pub struct GetRepoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRepoResponse {
+
const ENCODING: &'static str = "application/vnd.ipld.car";
+
type Output = GetRepoOutput<'de>;
+
type Err = GetRepoError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepo<'de> {
const NSID: &'static str = "com.atproto.sync.getRepo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRepoResponse;
+
}
+16 -18
crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepoStatus<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetRepoStatusError::RepoNotFound(v) => {
GetRepoStatusError::RepoNotFound(v.into_static())
}
-
GetRepoStatusError::Unknown(v) => {
-
GetRepoStatusError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepoStatus<'de> {
-
const NSID: &'static str = "com.atproto.sync.getRepoStatus";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetRepoStatusOutput<'de>;
type Err = GetRepoStatusError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepoStatus<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
GetRepoStatusError::RepoNotFound(v) => {
GetRepoStatusError::RepoNotFound(v.into_static())
}
+
GetRepoStatusError::Unknown(v) => GetRepoStatusError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.getRepoStatus
+
pub struct GetRepoStatusResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRepoStatusResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetRepoStatusOutput<'de>;
type Err = GetRepoStatusError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepoStatus<'de> {
+
const NSID: &'static str = "com.atproto.sync.getRepoStatus";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRepoStatusResponse;
+
}
+19 -27
crates/jacquard-api/src/com_atproto/sync/list_blobs.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListBlobs<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = ListBlobsError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
ListBlobsError::RepoNotFound(v) => {
-
ListBlobsError::RepoNotFound(v.into_static())
-
}
-
ListBlobsError::RepoTakendown(v) => {
-
ListBlobsError::RepoTakendown(v.into_static())
-
}
-
ListBlobsError::RepoSuspended(v) => {
-
ListBlobsError::RepoSuspended(v.into_static())
-
}
-
ListBlobsError::RepoDeactivated(v) => {
-
ListBlobsError::RepoDeactivated(v.into_static())
-
}
ListBlobsError::Unknown(v) => ListBlobsError::Unknown(v.into_static()),
}
}
}
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListBlobs<'de> {
const NSID: &'static str = "com.atproto.sync.listBlobs";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = ListBlobsOutput<'de>;
-
type Err = ListBlobsError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListBlobs<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = ListBlobsError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
ListBlobsError::RepoNotFound(v) => ListBlobsError::RepoNotFound(v.into_static()),
+
ListBlobsError::RepoTakendown(v) => ListBlobsError::RepoTakendown(v.into_static()),
+
ListBlobsError::RepoSuspended(v) => ListBlobsError::RepoSuspended(v.into_static()),
+
ListBlobsError::RepoDeactivated(v) => ListBlobsError::RepoDeactivated(v.into_static()),
ListBlobsError::Unknown(v) => ListBlobsError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.listBlobs
+
pub struct ListBlobsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListBlobsResponse {
+
const ENCODING: &'static str = "application/json";
+
type Output = ListBlobsOutput<'de>;
+
type Err = ListBlobsError<'de>;
+
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListBlobs<'de> {
const NSID: &'static str = "com.atproto.sync.listBlobs";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListBlobsResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/sync/list_hosts.rs
···
}
}
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListHosts<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListHosts<'de> {
-
const NSID: &'static str = "com.atproto.sync.listHosts";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListHostsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
}
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListHosts<'a> {
···
}
}
+
///Response type for
+
///com.atproto.sync.listHosts
+
pub struct ListHostsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListHostsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListHostsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListHosts<'de> {
+
const NSID: &'static str = "com.atproto.sync.listHosts";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListHostsResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/sync/list_repos.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListRepos<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListRepos<'de> {
-
const NSID: &'static str = "com.atproto.sync.listRepos";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListReposOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListRepos<'a> {
···
}
}
+
///Response type for
+
///com.atproto.sync.listRepos
+
pub struct ListReposResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListReposResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListReposOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListRepos<'de> {
+
const NSID: &'static str = "com.atproto.sync.listRepos";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListReposResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -14
crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListReposByCollection<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListReposByCollection<'de> {
-
const NSID: &'static str = "com.atproto.sync.listReposByCollection";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListReposByCollectionOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListReposByCollection<'a> {
···
}
}
+
///Response type for
+
///com.atproto.sync.listReposByCollection
+
pub struct ListReposByCollectionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListReposByCollectionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListReposByCollectionOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListReposByCollection<'de> {
+
const NSID: &'static str = "com.atproto.sync.listReposByCollection";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListReposByCollectionResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -16
crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct NotifyOfUpdate<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for NotifyOfUpdate<'de> {
-
const NSID: &'static str = "com.atproto.sync.notifyOfUpdate";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct NotifyOfUpdate<'a> {
···
}
}
+
///Response type for
+
///com.atproto.sync.notifyOfUpdate
+
pub struct NotifyOfUpdateResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for NotifyOfUpdateResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for NotifyOfUpdate<'de> {
+
const NSID: &'static str = "com.atproto.sync.notifyOfUpdate";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = NotifyOfUpdateResponse;
+
}
+16 -20
crates/jacquard-api/src/com_atproto/sync/request_crawl.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RequestCrawl<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = RequestCrawlError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
RequestCrawlError::HostBanned(v) => {
-
RequestCrawlError::HostBanned(v.into_static())
-
}
RequestCrawlError::Unknown(v) => RequestCrawlError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestCrawl<'de> {
-
const NSID: &'static str = "com.atproto.sync.requestCrawl";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = RequestCrawlError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RequestCrawl<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = RequestCrawlError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
RequestCrawlError::HostBanned(v) => RequestCrawlError::HostBanned(v.into_static()),
RequestCrawlError::Unknown(v) => RequestCrawlError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.sync.requestCrawl
+
pub struct RequestCrawlResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestCrawlResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = RequestCrawlError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestCrawl<'de> {
+
const NSID: &'static str = "com.atproto.sync.requestCrawl";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RequestCrawlResponse;
+
}
+14 -16
crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddReservedHandle<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddReservedHandle<'de> {
-
const NSID: &'static str = "com.atproto.temp.addReservedHandle";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = AddReservedHandleOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddReservedHandle<'a> {
···
}
}
+
///Response type for
+
///com.atproto.temp.addReservedHandle
+
pub struct AddReservedHandleResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddReservedHandleResponse {
+
const ENCODING: &'static str = "application/json";
type Output = AddReservedHandleOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddReservedHandle<'de> {
+
const NSID: &'static str = "com.atproto.temp.addReservedHandle";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = AddReservedHandleResponse;
+
}
+16 -19
crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct CheckHandleAvailability<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for CheckHandleAvailability<'de> {
-
const NSID: &'static str = "com.atproto.temp.checkHandleAvailability";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CheckHandleAvailabilityOutput<'de>;
type Err = CheckHandleAvailabilityError<'de>;
}
///Indicates the provided handle is available.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct ResultUnavailable<'a> {
///List of suggested handles based on the provided inputs.
#[serde(borrow)]
-
pub suggestions: Vec<
-
crate::com_atproto::temp::check_handle_availability::Suggestion<'a>,
-
>,
}
impl jacquard_common::IntoStatic for ResultUnavailable<'_> {
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct CheckHandleAvailability<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///com.atproto.temp.checkHandleAvailability
+
pub struct CheckHandleAvailabilityResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CheckHandleAvailabilityResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CheckHandleAvailabilityOutput<'de>;
type Err = CheckHandleAvailabilityError<'de>;
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckHandleAvailability<'de> {
+
const NSID: &'static str = "com.atproto.temp.checkHandleAvailability";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = CheckHandleAvailabilityResponse;
+
}
+
///Indicates the provided handle is available.
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
···
pub struct ResultUnavailable<'a> {
///List of suggested handles based on the provided inputs.
#[serde(borrow)]
+
pub suggestions: Vec<crate::com_atproto::temp::check_handle_availability::Suggestion<'a>>,
}
impl jacquard_common::IntoStatic for ResultUnavailable<'_> {
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+13 -5
crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct CheckSignupQueue;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckSignupQueue {
-
const NSID: &'static str = "com.atproto.temp.checkSignupQueue";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CheckSignupQueueOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct CheckSignupQueue;
+
///Response type for
+
///com.atproto.temp.checkSignupQueue
+
pub struct CheckSignupQueueResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CheckSignupQueueResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CheckSignupQueueOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CheckSignupQueue {
+
const NSID: &'static str = "com.atproto.temp.checkSignupQueue";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = CheckSignupQueueResponse;
+
}
+16 -18
crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct DereferenceScope<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
DereferenceScopeError::InvalidScopeReference(v) => {
DereferenceScopeError::InvalidScopeReference(v.into_static())
}
-
DereferenceScopeError::Unknown(v) => {
-
DereferenceScopeError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DereferenceScope<'de> {
-
const NSID: &'static str = "com.atproto.temp.dereferenceScope";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = DereferenceScopeOutput<'de>;
type Err = DereferenceScopeError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct DereferenceScope<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
DereferenceScopeError::InvalidScopeReference(v) => {
DereferenceScopeError::InvalidScopeReference(v.into_static())
}
+
DereferenceScopeError::Unknown(v) => DereferenceScopeError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///com.atproto.temp.dereferenceScope
+
pub struct DereferenceScopeResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DereferenceScopeResponse {
+
const ENCODING: &'static str = "application/json";
type Output = DereferenceScopeOutput<'de>;
type Err = DereferenceScopeError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DereferenceScope<'de> {
+
const NSID: &'static str = "com.atproto.temp.dereferenceScope";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = DereferenceScopeResponse;
+
}
+14 -14
crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct FetchLabels {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for FetchLabels {
-
const NSID: &'static str = "com.atproto.temp.fetchLabels";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = FetchLabelsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct FetchLabels {
···
}
}
+
///Response type for
+
///com.atproto.temp.fetchLabels
+
pub struct FetchLabelsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for FetchLabelsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = FetchLabelsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for FetchLabels {
+
const NSID: &'static str = "com.atproto.temp.fetchLabels";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = FetchLabelsResponse;
+
}
+14 -17
crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RequestPhoneVerification<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for RequestPhoneVerification<'de> {
-
const NSID: &'static str = "com.atproto.temp.requestPhoneVerification";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RequestPhoneVerification<'a> {
···
}
}
+
///Response type for
+
///com.atproto.temp.requestPhoneVerification
+
pub struct RequestPhoneVerificationResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RequestPhoneVerificationResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RequestPhoneVerification<'de> {
+
const NSID: &'static str = "com.atproto.temp.requestPhoneVerification";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RequestPhoneVerificationResponse;
+
}
+14 -17
crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RevokeAccountCredentials<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de>
-
for RevokeAccountCredentials<'de> {
-
const NSID: &'static str = "com.atproto.temp.revokeAccountCredentials";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RevokeAccountCredentials<'a> {
···
}
}
+
///Response type for
+
///com.atproto.temp.revokeAccountCredentials
+
pub struct RevokeAccountCredentialsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RevokeAccountCredentialsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeAccountCredentials<'de> {
+
const NSID: &'static str = "com.atproto.temp.revokeAccountCredentials";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RevokeAccountCredentialsResponse;
+
}
+16 -20
crates/jacquard-api/src/tools_ozone/communication/create_template.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateTemplate<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateTemplateError::DuplicateTemplateName(v) => {
CreateTemplateError::DuplicateTemplateName(v.into_static())
}
-
CreateTemplateError::Unknown(v) => {
-
CreateTemplateError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateTemplate<'de> {
-
const NSID: &'static str = "tools.ozone.communication.createTemplate";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = CreateTemplateOutput<'de>;
type Err = CreateTemplateError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct CreateTemplate<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
CreateTemplateError::DuplicateTemplateName(v) => {
CreateTemplateError::DuplicateTemplateName(v.into_static())
}
+
CreateTemplateError::Unknown(v) => CreateTemplateError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.communication.createTemplate
+
pub struct CreateTemplateResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for CreateTemplateResponse {
+
const ENCODING: &'static str = "application/json";
type Output = CreateTemplateOutput<'de>;
type Err = CreateTemplateError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for CreateTemplate<'de> {
+
const NSID: &'static str = "tools.ozone.communication.createTemplate";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = CreateTemplateResponse;
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/communication/delete_template.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteTemplate<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteTemplate<'de> {
-
const NSID: &'static str = "tools.ozone.communication.deleteTemplate";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteTemplate<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.communication.deleteTemplate
+
pub struct DeleteTemplateResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteTemplateResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteTemplate<'de> {
+
const NSID: &'static str = "tools.ozone.communication.deleteTemplate";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteTemplateResponse;
+
}
+14 -8
crates/jacquard-api/src/tools_ozone/communication/list_templates.rs
···
#[serde(rename_all = "camelCase")]
pub struct ListTemplatesOutput<'a> {
#[serde(borrow)]
-
pub communication_templates: Vec<
-
crate::tools_ozone::communication::TemplateView<'a>,
-
>,
}
impl jacquard_common::IntoStatic for ListTemplatesOutput<'_> {
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ListTemplates;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListTemplates {
-
const NSID: &'static str = "tools.ozone.communication.listTemplates";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListTemplatesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
#[serde(rename_all = "camelCase")]
pub struct ListTemplatesOutput<'a> {
#[serde(borrow)]
+
pub communication_templates: Vec<crate::tools_ozone::communication::TemplateView<'a>>,
}
impl jacquard_common::IntoStatic for ListTemplatesOutput<'_> {
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ListTemplates;
+
///Response type for
+
///tools.ozone.communication.listTemplates
+
pub struct ListTemplatesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListTemplatesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListTemplatesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListTemplates {
+
const NSID: &'static str = "tools.ozone.communication.listTemplates";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListTemplatesResponse;
+
}
+16 -20
crates/jacquard-api/src/tools_ozone/communication/update_template.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateTemplate<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
UpdateTemplateError::DuplicateTemplateName(v) => {
UpdateTemplateError::DuplicateTemplateName(v.into_static())
}
-
UpdateTemplateError::Unknown(v) => {
-
UpdateTemplateError::Unknown(v.into_static())
-
}
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateTemplate<'de> {
-
const NSID: &'static str = "tools.ozone.communication.updateTemplate";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UpdateTemplateOutput<'de>;
type Err = UpdateTemplateError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateTemplate<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
UpdateTemplateError::DuplicateTemplateName(v) => {
UpdateTemplateError::DuplicateTemplateName(v.into_static())
}
+
UpdateTemplateError::Unknown(v) => UpdateTemplateError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.communication.updateTemplate
+
pub struct UpdateTemplateResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateTemplateResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UpdateTemplateOutput<'de>;
type Err = UpdateTemplateError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateTemplate<'de> {
+
const NSID: &'static str = "tools.ozone.communication.updateTemplate";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateTemplateResponse;
+
}
+15 -17
crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs
···
type Output = EventRecordDetails<'static>;
fn into_static(self) -> Self::Output {
match self {
-
EventRecordDetails::Unknown(v) => {
-
EventRecordDetails::Unknown(v.into_static())
-
}
}
}
}
···
}
}
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountHistory<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountHistory<'de> {
-
const NSID: &'static str = "tools.ozone.hosting.getAccountHistory";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetAccountHistoryOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
type Output = EventRecordDetails<'static>;
fn into_static(self) -> Self::Output {
match self {
+
EventRecordDetails::Unknown(v) => EventRecordDetails::Unknown(v.into_static()),
}
}
}
···
}
}
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountHistory<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.hosting.getAccountHistory
+
pub struct GetAccountHistoryResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountHistoryResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetAccountHistoryOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountHistory<'de> {
+
const NSID: &'static str = "tools.ozone.hosting.getAccountHistory";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetAccountHistoryResponse;
+
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+24 -44
crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct EmitEvent<'a> {
···
pub subject: EmitEventRecordSubject<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub subject_blob_cids: std::option::Option<
-
Vec<jacquard_common::types::string::Cid<'a>>,
-
>,
#[serde(flatten)]
#[serde(borrow)]
#[builder(default)]
···
#[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")]
DefsModEventTakedown(Box<crate::tools_ozone::moderation::ModEventTakedown<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")]
-
DefsModEventAcknowledge(
-
Box<crate::tools_ozone::moderation::ModEventAcknowledge<'a>>,
-
),
#[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")]
DefsModEventEscalate(Box<crate::tools_ozone::moderation::ModEventEscalate<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventComment")]
···
#[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")]
DefsModEventUnmute(Box<crate::tools_ozone::moderation::ModEventUnmute<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")]
-
DefsModEventMuteReporter(
-
Box<crate::tools_ozone::moderation::ModEventMuteReporter<'a>>,
-
),
#[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")]
-
DefsModEventUnmuteReporter(
-
Box<crate::tools_ozone::moderation::ModEventUnmuteReporter<'a>>,
-
),
#[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")]
-
DefsModEventReverseTakedown(
-
Box<crate::tools_ozone::moderation::ModEventReverseTakedown<'a>>,
-
),
#[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")]
-
DefsModEventResolveAppeal(
-
Box<crate::tools_ozone::moderation::ModEventResolveAppeal<'a>>,
-
),
#[serde(rename = "tools.ozone.moderation.defs#modEventEmail")]
DefsModEventEmail(Box<crate::tools_ozone::moderation::ModEventEmail<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventDivert")]
···
#[serde(rename = "tools.ozone.moderation.defs#recordEvent")]
DefsRecordEvent(Box<crate::tools_ozone::moderation::RecordEvent<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")]
-
DefsModEventPriorityScore(
-
Box<crate::tools_ozone::moderation::ModEventPriorityScore<'a>>,
-
),
#[serde(rename = "tools.ozone.moderation.defs#ageAssuranceEvent")]
DefsAgeAssuranceEvent(Box<crate::tools_ozone::moderation::AgeAssuranceEvent<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#ageAssuranceOverrideEvent")]
···
EmitEventRecordEvent::DefsRevokeAccountCredentialsEvent(v) => {
EmitEventRecordEvent::DefsRevokeAccountCredentialsEvent(v.into_static())
}
-
EmitEventRecordEvent::Unknown(v) => {
-
EmitEventRecordEvent::Unknown(v.into_static())
-
}
}
}
}
···
EmitEventRecordSubject::StrongRef(v) => {
EmitEventRecordSubject::StrongRef(v.into_static())
}
-
EmitEventRecordSubject::Unknown(v) => {
-
EmitEventRecordSubject::Unknown(v.into_static())
-
}
}
}
}
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for EmitEvent<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.emitEvent";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = EmitEventOutput<'de>;
type Err = EmitEventError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct EmitEvent<'a> {
···
pub subject: EmitEventRecordSubject<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub subject_blob_cids: std::option::Option<Vec<jacquard_common::types::string::Cid<'a>>>,
#[serde(flatten)]
#[serde(borrow)]
#[builder(default)]
···
#[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")]
DefsModEventTakedown(Box<crate::tools_ozone::moderation::ModEventTakedown<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")]
+
DefsModEventAcknowledge(Box<crate::tools_ozone::moderation::ModEventAcknowledge<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")]
DefsModEventEscalate(Box<crate::tools_ozone::moderation::ModEventEscalate<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventComment")]
···
#[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")]
DefsModEventUnmute(Box<crate::tools_ozone::moderation::ModEventUnmute<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")]
+
DefsModEventMuteReporter(Box<crate::tools_ozone::moderation::ModEventMuteReporter<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")]
+
DefsModEventUnmuteReporter(Box<crate::tools_ozone::moderation::ModEventUnmuteReporter<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")]
+
DefsModEventReverseTakedown(Box<crate::tools_ozone::moderation::ModEventReverseTakedown<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")]
+
DefsModEventResolveAppeal(Box<crate::tools_ozone::moderation::ModEventResolveAppeal<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventEmail")]
DefsModEventEmail(Box<crate::tools_ozone::moderation::ModEventEmail<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventDivert")]
···
#[serde(rename = "tools.ozone.moderation.defs#recordEvent")]
DefsRecordEvent(Box<crate::tools_ozone::moderation::RecordEvent<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")]
+
DefsModEventPriorityScore(Box<crate::tools_ozone::moderation::ModEventPriorityScore<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#ageAssuranceEvent")]
DefsAgeAssuranceEvent(Box<crate::tools_ozone::moderation::AgeAssuranceEvent<'a>>),
#[serde(rename = "tools.ozone.moderation.defs#ageAssuranceOverrideEvent")]
···
EmitEventRecordEvent::DefsRevokeAccountCredentialsEvent(v) => {
EmitEventRecordEvent::DefsRevokeAccountCredentialsEvent(v.into_static())
}
+
EmitEventRecordEvent::Unknown(v) => EmitEventRecordEvent::Unknown(v.into_static()),
}
}
}
···
EmitEventRecordSubject::StrongRef(v) => {
EmitEventRecordSubject::StrongRef(v.into_static())
}
+
EmitEventRecordSubject::Unknown(v) => EmitEventRecordSubject::Unknown(v.into_static()),
}
}
}
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///tools.ozone.moderation.emitEvent
+
pub struct EmitEventResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for EmitEventResponse {
+
const ENCODING: &'static str = "application/json";
type Output = EmitEventOutput<'de>;
type Err = EmitEventError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for EmitEvent<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.emitEvent";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = EmitEventResponse;
+
}
+16 -18
crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountTimeline<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountTimeline<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.getAccountTimeline";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetAccountTimelineOutput<'de>;
type Err = GetAccountTimelineError<'de>;
}
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub day: jacquard_common::CowStr<'a>,
#[serde(borrow)]
-
pub summary: Vec<
-
crate::tools_ozone::moderation::get_account_timeline::TimelineItemSummary<'a>,
-
>,
}
impl jacquard_common::IntoStatic for TimelineItem<'_> {
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetAccountTimeline<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///tools.ozone.moderation.getAccountTimeline
+
pub struct GetAccountTimelineResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetAccountTimelineResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetAccountTimelineOutput<'de>;
type Err = GetAccountTimelineError<'de>;
}
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetAccountTimeline<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.getAccountTimeline";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetAccountTimelineResponse;
+
}
+
#[jacquard_derive::lexicon]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
···
#[serde(borrow)]
pub day: jacquard_common::CowStr<'a>,
#[serde(borrow)]
+
pub summary: Vec<crate::tools_ozone::moderation::get_account_timeline::TimelineItemSummary<'a>>,
}
impl jacquard_common::IntoStatic for TimelineItem<'_> {
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_event.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetEvent {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetEvent {
-
const NSID: &'static str = "tools.ozone.moderation.getEvent";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetEventOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetEvent {
···
}
}
+
///Response type for
+
///tools.ozone.moderation.getEvent
+
pub struct GetEventResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetEventResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetEventOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetEvent {
+
const NSID: &'static str = "tools.ozone.moderation.getEvent";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetEventResponse;
+
}
+16 -18
crates/jacquard-api/src/tools_ozone/moderation/get_record.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRecord<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
GetRecordError::RecordNotFound(v) => {
-
GetRecordError::RecordNotFound(v.into_static())
-
}
GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.getRecord";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetRecordOutput<'de>;
type Err = GetRecordError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRecord<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetRecordError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
GetRecordError::RecordNotFound(v) => GetRecordError::RecordNotFound(v.into_static()),
GetRecordError::Unknown(v) => GetRecordError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.moderation.getRecord
+
pub struct GetRecordResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRecordResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetRecordOutput<'de>;
type Err = GetRecordError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecord<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.getRecord";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRecordResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_records.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRecords<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecords<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.getRecords";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetRecordsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRecords<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.moderation.getRecords
+
pub struct GetRecordsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRecordsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetRecordsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRecords<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.getRecords";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRecordsResponse;
+
}
+15 -15
crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepo<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepo<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.getRepo";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetRepoOutput<'de>;
type Err = GetRepoError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepo<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///tools.ozone.moderation.getRepo
+
pub struct GetRepoResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetRepoResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetRepoOutput<'de>;
type Err = GetRepoError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepo<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.getRepo";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetRepoResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetReporterStats<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetReporterStats<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.getReporterStats";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetReporterStatsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetReporterStats<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.moderation.getReporterStats
+
pub struct GetReporterStatsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetReporterStatsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetReporterStatsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetReporterStats<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.getReporterStats";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetReporterStatsResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepos<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepos<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.getRepos";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetReposOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetRepos<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.moderation.getRepos
+
pub struct GetReposResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetReposResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetReposOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetRepos<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.getRepos";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetReposResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjects<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSubjects<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.getSubjects";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetSubjectsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetSubjects<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.moderation.getSubjects
+
pub struct GetSubjectsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetSubjectsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetSubjectsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetSubjects<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.getSubjects";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetSubjectsResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/query_events.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct QueryEvents<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryEvents<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.queryEvents";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = QueryEventsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct QueryEvents<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.moderation.queryEvents
+
pub struct QueryEventsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryEventsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = QueryEventsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryEvents<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.queryEvents";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = QueryEventsResponse;
+
}
+19 -29
crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct QueryStatuses<'a> {
···
#[serde(borrow)]
pub exclude_tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
-
pub hosting_deleted_after: std::option::Option<
-
jacquard_common::types::string::Datetime,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
-
pub hosting_deleted_before: std::option::Option<
-
jacquard_common::types::string::Datetime,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub hosting_statuses: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
-
pub hosting_updated_after: std::option::Option<
-
jacquard_common::types::string::Datetime,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
-
pub hosting_updated_before: std::option::Option<
-
jacquard_common::types::string::Datetime,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
-
pub ignore_subjects: std::option::Option<
-
Vec<jacquard_common::types::string::Uri<'a>>,
-
>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub include_all_user_records: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryStatuses<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.queryStatuses";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = QueryStatusesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct QueryStatuses<'a> {
···
#[serde(borrow)]
pub exclude_tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
+
pub hosting_deleted_after: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
+
pub hosting_deleted_before: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub hosting_statuses: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
+
pub hosting_updated_after: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
+
pub hosting_updated_before: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
+
pub ignore_subjects: std::option::Option<Vec<jacquard_common::types::string::Uri<'a>>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub include_all_user_records: std::option::Option<bool>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
···
}
}
+
///Response type for
+
///tools.ozone.moderation.queryStatuses
+
pub struct QueryStatusesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryStatusesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = QueryStatusesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryStatuses<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.queryStatuses";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = QueryStatusesResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchRepos<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchRepos<'de> {
-
const NSID: &'static str = "tools.ozone.moderation.searchRepos";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchReposOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchRepos<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.moderation.searchRepos
+
pub struct SearchReposResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchReposResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchReposOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchRepos<'de> {
+
const NSID: &'static str = "tools.ozone.moderation.searchRepos";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchReposResponse;
+
}
+16 -20
crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddRule<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
fn into_static(self) -> Self::Output {
match self {
AddRuleError::InvalidUrl(v) => AddRuleError::InvalidUrl(v.into_static()),
-
AddRuleError::RuleAlreadyExists(v) => {
-
AddRuleError::RuleAlreadyExists(v.into_static())
-
}
AddRuleError::Unknown(v) => AddRuleError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddRule<'de> {
-
const NSID: &'static str = "tools.ozone.safelink.addRule";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = AddRuleOutput<'de>;
type Err = AddRuleError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddRule<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
fn into_static(self) -> Self::Output {
match self {
AddRuleError::InvalidUrl(v) => AddRuleError::InvalidUrl(v.into_static()),
+
AddRuleError::RuleAlreadyExists(v) => AddRuleError::RuleAlreadyExists(v.into_static()),
AddRuleError::Unknown(v) => AddRuleError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.safelink.addRule
+
pub struct AddRuleResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddRuleResponse {
+
const ENCODING: &'static str = "application/json";
type Output = AddRuleOutput<'de>;
type Err = AddRuleError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddRule<'de> {
+
const NSID: &'static str = "tools.ozone.safelink.addRule";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = AddRuleResponse;
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/safelink/query_events.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct QueryEvents<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryEvents<'de> {
-
const NSID: &'static str = "tools.ozone.safelink.queryEvents";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = QueryEventsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct QueryEvents<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.safelink.queryEvents
+
pub struct QueryEventsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryEventsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = QueryEventsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryEvents<'de> {
+
const NSID: &'static str = "tools.ozone.safelink.queryEvents";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = QueryEventsResponse;
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct QueryRules<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryRules<'de> {
-
const NSID: &'static str = "tools.ozone.safelink.queryRules";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = QueryRulesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct QueryRules<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.safelink.queryRules
+
pub struct QueryRulesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QueryRulesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = QueryRulesOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QueryRules<'de> {
+
const NSID: &'static str = "tools.ozone.safelink.queryRules";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = QueryRulesResponse;
+
}
+16 -20
crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RemoveRule<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = RemoveRuleError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
RemoveRuleError::RuleNotFound(v) => {
-
RemoveRuleError::RuleNotFound(v.into_static())
-
}
RemoveRuleError::Unknown(v) => RemoveRuleError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveRule<'de> {
-
const NSID: &'static str = "tools.ozone.safelink.removeRule";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = RemoveRuleOutput<'de>;
type Err = RemoveRuleError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RemoveRule<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = RemoveRuleError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
RemoveRuleError::RuleNotFound(v) => RemoveRuleError::RuleNotFound(v.into_static()),
RemoveRuleError::Unknown(v) => RemoveRuleError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.safelink.removeRule
+
pub struct RemoveRuleResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RemoveRuleResponse {
+
const ENCODING: &'static str = "application/json";
type Output = RemoveRuleOutput<'de>;
type Err = RemoveRuleError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveRule<'de> {
+
const NSID: &'static str = "tools.ozone.safelink.removeRule";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RemoveRuleResponse;
+
}
+16 -20
crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateRule<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = UpdateRuleError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
UpdateRuleError::RuleNotFound(v) => {
-
UpdateRuleError::RuleNotFound(v.into_static())
-
}
UpdateRuleError::Unknown(v) => UpdateRuleError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateRule<'de> {
-
const NSID: &'static str = "tools.ozone.safelink.updateRule";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UpdateRuleOutput<'de>;
type Err = UpdateRuleError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateRule<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = UpdateRuleError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
UpdateRuleError::RuleNotFound(v) => UpdateRuleError::RuleNotFound(v.into_static()),
UpdateRuleError::Unknown(v) => UpdateRuleError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.safelink.updateRule
+
pub struct UpdateRuleResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateRuleResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UpdateRuleOutput<'de>;
type Err = UpdateRuleError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateRule<'de> {
+
const NSID: &'static str = "tools.ozone.safelink.updateRule";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateRuleResponse;
+
}
+13 -5
crates/jacquard-api/src/tools_ozone/server/get_config.rs
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetConfig;
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConfig {
-
const NSID: &'static str = "tools.ozone.server.getConfig";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetConfigOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
/// XRPC request marker type
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetConfig;
+
///Response type for
+
///tools.ozone.server.getConfig
+
pub struct GetConfigResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetConfigResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetConfigOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetConfig {
+
const NSID: &'static str = "tools.ozone.server.getConfig";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetConfigResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/set/add_values.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddValues<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddValues<'de> {
-
const NSID: &'static str = "tools.ozone.set.addValues";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddValues<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.set.addValues
+
pub struct AddValuesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddValuesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddValues<'de> {
+
const NSID: &'static str = "tools.ozone.set.addValues";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = AddValuesResponse;
+
}
+16 -20
crates/jacquard-api/src/tools_ozone/set/delete_set.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteSet<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = DeleteSetError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
DeleteSetError::SetNotFound(v) => {
-
DeleteSetError::SetNotFound(v.into_static())
-
}
DeleteSetError::Unknown(v) => DeleteSetError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteSet<'de> {
-
const NSID: &'static str = "tools.ozone.set.deleteSet";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = DeleteSetOutput<'de>;
type Err = DeleteSetError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteSet<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = DeleteSetError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
DeleteSetError::SetNotFound(v) => DeleteSetError::SetNotFound(v.into_static()),
DeleteSetError::Unknown(v) => DeleteSetError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.set.deleteSet
+
pub struct DeleteSetResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteSetResponse {
+
const ENCODING: &'static str = "application/json";
type Output = DeleteSetOutput<'de>;
type Err = DeleteSetError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteSet<'de> {
+
const NSID: &'static str = "tools.ozone.set.deleteSet";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteSetResponse;
+
}
+16 -20
crates/jacquard-api/src/tools_ozone/set/delete_values.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteValues<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = DeleteValuesError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
DeleteValuesError::SetNotFound(v) => {
-
DeleteValuesError::SetNotFound(v.into_static())
-
}
DeleteValuesError::Unknown(v) => DeleteValuesError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteValues<'de> {
-
const NSID: &'static str = "tools.ozone.set.deleteValues";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = DeleteValuesError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteValues<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = DeleteValuesError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
DeleteValuesError::SetNotFound(v) => DeleteValuesError::SetNotFound(v.into_static()),
DeleteValuesError::Unknown(v) => DeleteValuesError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.set.deleteValues
+
pub struct DeleteValuesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteValuesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = DeleteValuesError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteValues<'de> {
+
const NSID: &'static str = "tools.ozone.set.deleteValues";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteValuesResponse;
+
}
+16 -18
crates/jacquard-api/src/tools_ozone/set/get_values.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetValues<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetValuesError<'static>;
fn into_static(self) -> Self::Output {
match self {
-
GetValuesError::SetNotFound(v) => {
-
GetValuesError::SetNotFound(v.into_static())
-
}
GetValuesError::Unknown(v) => GetValuesError::Unknown(v.into_static()),
}
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetValues<'de> {
-
const NSID: &'static str = "tools.ozone.set.getValues";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GetValuesOutput<'de>;
type Err = GetValuesError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct GetValues<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
type Output = GetValuesError<'static>;
fn into_static(self) -> Self::Output {
match self {
+
GetValuesError::SetNotFound(v) => GetValuesError::SetNotFound(v.into_static()),
GetValuesError::Unknown(v) => GetValuesError::Unknown(v.into_static()),
}
}
}
+
///Response type for
+
///tools.ozone.set.getValues
+
pub struct GetValuesResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GetValuesResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GetValuesOutput<'de>;
type Err = GetValuesError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GetValues<'de> {
+
const NSID: &'static str = "tools.ozone.set.getValues";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = GetValuesResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/set/query_sets.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct QuerySets<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QuerySets<'de> {
-
const NSID: &'static str = "tools.ozone.set.querySets";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = QuerySetsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct QuerySets<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.set.querySets
+
pub struct QuerySetsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for QuerySetsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = QuerySetsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for QuerySets<'de> {
+
const NSID: &'static str = "tools.ozone.set.querySets";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = QuerySetsResponse;
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/set/upsert_set.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpsertSet<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpsertSet<'de> {
-
const NSID: &'static str = "tools.ozone.set.upsertSet";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UpsertSetOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpsertSet<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.set.upsertSet
+
pub struct UpsertSetResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpsertSetResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UpsertSetOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpsertSet<'de> {
+
const NSID: &'static str = "tools.ozone.set.upsertSet";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpsertSetResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/setting/list_options.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListOptions<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListOptions<'de> {
-
const NSID: &'static str = "tools.ozone.setting.listOptions";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListOptionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListOptions<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.setting.listOptions
+
pub struct ListOptionsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListOptionsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListOptionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListOptions<'de> {
+
const NSID: &'static str = "tools.ozone.setting.listOptions";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListOptionsResponse;
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/setting/remove_options.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RemoveOptions<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveOptions<'de> {
-
const NSID: &'static str = "tools.ozone.setting.removeOptions";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = RemoveOptionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RemoveOptions<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.setting.removeOptions
+
pub struct RemoveOptionsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RemoveOptionsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = RemoveOptionsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RemoveOptions<'de> {
+
const NSID: &'static str = "tools.ozone.setting.removeOptions";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RemoveOptionsResponse;
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpsertOption<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpsertOption<'de> {
-
const NSID: &'static str = "tools.ozone.setting.upsertOption";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UpsertOptionOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpsertOption<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.setting.upsertOption
+
pub struct UpsertOptionResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpsertOptionResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UpsertOptionOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpsertOption<'de> {
+
const NSID: &'static str = "tools.ozone.setting.upsertOption";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpsertOptionResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct FindCorrelation<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for FindCorrelation<'de> {
-
const NSID: &'static str = "tools.ozone.signature.findCorrelation";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = FindCorrelationOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct FindCorrelation<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.signature.findCorrelation
+
pub struct FindCorrelationResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for FindCorrelationResponse {
+
const ENCODING: &'static str = "application/json";
type Output = FindCorrelationOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for FindCorrelation<'de> {
+
const NSID: &'static str = "tools.ozone.signature.findCorrelation";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = FindCorrelationResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchAccounts<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchAccounts<'de> {
-
const NSID: &'static str = "tools.ozone.signature.searchAccounts";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = SearchAccountsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct SearchAccounts<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.signature.searchAccounts
+
pub struct SearchAccountsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for SearchAccountsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = SearchAccountsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for SearchAccounts<'de> {
+
const NSID: &'static str = "tools.ozone.signature.searchAccounts";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = SearchAccountsResponse;
+
}
+15 -17
crates/jacquard-api/src/tools_ozone/team/add_member.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddMember<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddMember<'de> {
-
const NSID: &'static str = "tools.ozone.team.addMember";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = AddMemberOutput<'de>;
type Err = AddMemberError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct AddMember<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///tools.ozone.team.addMember
+
pub struct AddMemberResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for AddMemberResponse {
+
const ENCODING: &'static str = "application/json";
type Output = AddMemberOutput<'de>;
type Err = AddMemberError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for AddMember<'de> {
+
const NSID: &'static str = "tools.ozone.team.addMember";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = AddMemberResponse;
+
}
+15 -17
crates/jacquard-api/src/tools_ozone/team/delete_member.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteMember<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteMember<'de> {
-
const NSID: &'static str = "tools.ozone.team.deleteMember";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ();
type Err = DeleteMemberError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct DeleteMember<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///tools.ozone.team.deleteMember
+
pub struct DeleteMemberResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for DeleteMemberResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ();
type Err = DeleteMemberError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for DeleteMember<'de> {
+
const NSID: &'static str = "tools.ozone.team.deleteMember";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DeleteMemberResponse;
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/team/list_members.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListMembers<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListMembers<'de> {
-
const NSID: &'static str = "tools.ozone.team.listMembers";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListMembersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListMembers<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.team.listMembers
+
pub struct ListMembersResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListMembersResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListMembersOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListMembers<'de> {
+
const NSID: &'static str = "tools.ozone.team.listMembers";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListMembersResponse;
+
}
+15 -17
crates/jacquard-api/src/tools_ozone/team/update_member.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateMember<'a> {
···
PartialEq,
Eq,
thiserror::Error,
-
miette::Diagnostic
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateMember<'de> {
-
const NSID: &'static str = "tools.ozone.team.updateMember";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = UpdateMemberOutput<'de>;
type Err = UpdateMemberError<'de>;
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct UpdateMember<'a> {
···
PartialEq,
Eq,
thiserror::Error,
+
miette::Diagnostic,
)]
#[serde(tag = "error", content = "message")]
#[serde(bound(deserialize = "'de: 'a"))]
···
}
}
+
///Response type for
+
///tools.ozone.team.updateMember
+
pub struct UpdateMemberResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for UpdateMemberResponse {
+
const ENCODING: &'static str = "application/json";
type Output = UpdateMemberOutput<'de>;
type Err = UpdateMemberError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for UpdateMember<'de> {
+
const NSID: &'static str = "tools.ozone.team.updateMember";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = UpdateMemberResponse;
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs
···
}
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct GrantVerifications<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GrantVerifications<'de> {
-
const NSID: &'static str = "tools.ozone.verification.grantVerifications";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = GrantVerificationsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
}
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct GrantVerifications<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.verification.grantVerifications
+
pub struct GrantVerificationsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for GrantVerificationsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = GrantVerificationsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for GrantVerifications<'de> {
+
const NSID: &'static str = "tools.ozone.verification.grantVerifications";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = GrantVerificationsResponse;
}
#[jacquard_derive::lexicon]
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+14 -14
crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListVerifications<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListVerifications<'de> {
-
const NSID: &'static str = "tools.ozone.verification.listVerifications";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query;
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = ListVerificationsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
-
}
···
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[builder(start_fn = new)]
#[serde(rename_all = "camelCase")]
pub struct ListVerifications<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.verification.listVerifications
+
pub struct ListVerificationsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for ListVerificationsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = ListVerificationsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for ListVerifications<'de> {
+
const NSID: &'static str = "tools.ozone.verification.listVerifications";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Query;
+
type Response<'de1> = ListVerificationsResponse;
+
}
+14 -16
crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
-
#[derive(
-
serde::Serialize,
-
serde::Deserialize,
-
Debug,
-
Clone,
-
PartialEq,
-
Eq,
-
bon::Builder
-
)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RevokeVerifications<'a> {
···
}
}
-
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeVerifications<'de> {
-
const NSID: &'static str = "tools.ozone.verification.revokeVerifications";
-
const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure(
-
"application/json",
-
);
-
const OUTPUT_ENCODING: &'static str = "application/json";
type Output = RevokeVerificationsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
}
///Error object for failed revocations
···
extra_data: self.extra_data.into_static(),
}
}
-
}
···
// Any manual changes will be overwritten on the next regeneration.
#[jacquard_derive::lexicon]
+
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)]
#[serde(rename_all = "camelCase")]
#[builder(start_fn = new)]
pub struct RevokeVerifications<'a> {
···
}
}
+
///Response type for
+
///tools.ozone.verification.revokeVerifications
+
pub struct RevokeVerificationsResponse;
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for RevokeVerificationsResponse {
+
const ENCODING: &'static str = "application/json";
type Output = RevokeVerificationsOutput<'de>;
type Err = jacquard_common::types::xrpc::GenericError<'de>;
+
}
+
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for RevokeVerifications<'de> {
+
const NSID: &'static str = "tools.ozone.verification.revokeVerifications";
+
const METHOD: jacquard_common::types::xrpc::XrpcMethod =
+
jacquard_common::types::xrpc::XrpcMethod::Procedure("application/json");
+
type Response<'de1> = RevokeVerificationsResponse;
}
///Error object for failed revocations
···
extra_data: self.extra_data.into_static(),
}
}
+
}
+1
crates/jacquard-axum/Cargo.toml
···
jacquard-common = { version = "0.3.0", path = "../jacquard-common", features = ["reqwest-client"] }
miette.workspace = true
serde.workspace = true
serde_ipld_dagcbor.workspace = true
serde_json.workspace = true
thiserror.workspace = true
···
jacquard-common = { version = "0.3.0", path = "../jacquard-common", features = ["reqwest-client"] }
miette.workspace = true
serde.workspace = true
+
serde_html_form.workspace = true
serde_ipld_dagcbor.workspace = true
serde_json.workspace = true
thiserror.workspace = true
+51 -10
crates/jacquard-axum/src/lib.rs
···
use serde::Serialize;
use serde_json::json;
-
pub struct ExtractXrpc<R: XrpcRequest<'static>>(R);
impl<S, R> FromRequest<S> for ExtractXrpc<R>
where
···
)
.into_response()
})?;
-
Ok(ExtractXrpc(value))
}
"*/*" => {
-
//
-
todo!()
}
-
_ => todo!(),
}
}
XrpcMethod::Query => {
if let Some(path_query) = req.uri().path_and_query() {
let path = path_query.path();
-
let query = path_query.query();
if path.ends_with(R::NSID) {
-
// success
} else {
-
// wrong endpoint
}
}
-
-
todo!()
}
}
}
···
use serde::Serialize;
use serde_json::json;
+
pub struct ExtractXrpc<R: XrpcRequest<'static>>(Option<R>);
impl<S, R> FromRequest<S> for ExtractXrpc<R>
where
···
)
.into_response()
})?;
+
Ok(ExtractXrpc(Some(value)))
}
"*/*" => {
+
let decoded = R::decode_body(&body);
+
match decoded {
+
Ok(value) => Ok(ExtractXrpc(Some(*value))),
+
Err(err) => Err((
+
StatusCode::BAD_REQUEST,
+
serde_json::to_string(&json!({
+
"error": "InvalidRequest",
+
"message": format!("failed to decode request: {}", err)
+
}))
+
.expect("Failed to serialize error response"),
+
)
+
.into_response()),
+
}
}
+
_ => todo!("handle other encodings"),
}
}
XrpcMethod::Query => {
if let Some(path_query) = req.uri().path_and_query() {
let path = path_query.path();
if path.ends_with(R::NSID) {
+
if let Some(query) = path_query.query() {
+
let value: R = serde_html_form::from_str(query).map_err(|e| {
+
(
+
StatusCode::BAD_REQUEST,
+
serde_json::to_string(&json!({
+
"error": "InvalidRequest",
+
"message": format!("failed to decode request: {}", e)
+
}))
+
.expect("Failed to serialize error response"),
+
)
+
.into_response()
+
})?;
+
Ok(ExtractXrpc(Some(value)))
+
} else {
+
Ok(ExtractXrpc(None))
+
}
} else {
+
Err((
+
StatusCode::BAD_REQUEST,
+
serde_json::to_string(&json!({
+
"error": "InvalidRequest",
+
"message": "wrong nsid for wherever this ended up"
+
}))
+
.expect("Failed to serialize error response"),
+
)
+
.into_response())
}
+
} else {
+
Err((
+
StatusCode::BAD_REQUEST,
+
serde_json::to_string(&json!({
+
"error": "InvalidRequest",
+
"message": "wrong nsid for wherever this ended up"
+
}))
+
.expect("Failed to serialize error response"),
+
)
+
.into_response())
}
}
}
}
+2 -39
crates/jacquard-common/src/cowstr.rs
···
use serde::{Deserialize, Serialize};
use smol_str::SmolStr;
use std::{
-
borrow::Cow,
fmt,
hash::{Hash, Hasher},
ops::Deref,
···
}
}
-
// impl<'de> Deserialize<'de> for CowStr<'_> {
-
// #[inline]
-
// fn deserialize<D>(deserializer: D) -> Result<CowStr<'static>, D::Error>
-
// where
-
// D: serde::Deserializer<'de>,
-
// {
-
// struct CowStrVisitor;
-
-
// impl<'de> serde::de::Visitor<'de> for CowStrVisitor {
-
// type Value = CowStr<'static>;
-
-
// #[inline]
-
// fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
-
// write!(formatter, "a string")
-
// }
-
-
// #[inline]
-
// fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
-
// where
-
// E: serde::de::Error,
-
// {
-
// Ok(CowStr::copy_from_str(v))
-
// }
-
-
// #[inline]
-
// fn visit_string<E>(self, v: String) -> Result<Self::Value, E>
-
// where
-
// E: serde::de::Error,
-
// {
-
// Ok(v.into())
-
// }
-
// }
-
-
// deserializer.deserialize_str(CowStrVisitor)
-
// }
-
// }
-
-
impl<'de, 'a, 'b> Deserialize<'de> for CowStr<'a>
where
'de: 'a,
{
···
use serde::{Deserialize, Serialize};
use smol_str::SmolStr;
use std::{
+
borrow::{Borrow, Cow},
fmt,
hash::{Hash, Hasher},
ops::Deref,
···
}
}
+
impl<'de, 'a> Deserialize<'de> for CowStr<'a>
where
'de: 'a,
{
+1 -3
crates/jacquard-common/src/error.rs
···
//! Error types for XRPC client operations
-
use bytes::Bytes;
-
use serde::{Deserialize, Serialize};
-
use crate::types::xrpc::EncodeError;
/// Client error type wrapping all possible error conditions
#[derive(Debug, thiserror::Error, miette::Diagnostic)]
···
//! Error types for XRPC client operations
use crate::types::xrpc::EncodeError;
+
use bytes::Bytes;
/// Client error type wrapping all possible error conditions
#[derive(Debug, thiserror::Error, miette::Diagnostic)]
+147 -166
crates/jacquard-common/src/types/xrpc.rs
···
};
use serde::{Deserialize, Serialize};
use smol_str::SmolStr;
-
use std::fmt::{self, Debug, Display};
use std::{error::Error, marker::PhantomData};
use url::Url;
···
/// XRPC method (query/GET or procedure/POST)
const METHOD: XrpcMethod;
-
/// Output encoding (MIME type)
-
const OUTPUT_ENCODING: &'static str;
-
-
/// Response output type
-
type Output: Deserialize<'de> + IntoStatic;
-
-
/// Error type for this request
-
type Err: Error + Deserialize<'de> + IntoStatic;
/// Encode the request body for procedures.
///
···
/// Decode the request body for procedures.
///
/// Default implementation deserializes from JSON. Override for non-JSON encodings.
-
fn decode_body(&self, body: &'de [u8]) -> Result<Box<Self>, DecodeError> {
let body: Self = serde_json::from_slice(body).map_err(|e| DecodeError::Json(e))?;
Ok(Box::new(body))
}
}
/// Error type for XRPC endpoints that don't define any errors
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
pub struct GenericError<'a>(#[serde(borrow)] Data<'a>);
···
impl<T: HttpClient> XrpcExt for T {}
/// Stateless XRPC call builder.
///
/// Example (per-request overrides)
···
/// inspect the header for `error="invalid_token"` or `error="use_dpop_nonce"` and react
/// (refresh/retry). If the header is absent, the 401 body flows through to `Response` and
/// can be parsed/mapped to `AuthError` as appropriate.
-
pub async fn send<'de, R>(self, request: &'de R) -> XrpcResult<Response<'de, R>>
where
-
R: XrpcRequest<'de> + Send,
{
let http_request = build_http_request(&self.base, request, &self.opts)
.map_err(crate::error::TransportError::from)?;
···
process_response(http_response)
}
-
-
/// Send the given typed XRPC request and return an owned response wrapper.
-
///
-
/// Note on 401 handling:
-
/// - When the server returns 401 with a `WWW-Authenticate` header, this surfaces as
-
/// `ClientError::Auth(AuthError::Other(header))` so higher layers (e.g., OAuth/DPoP) can
-
/// inspect the header for `error="invalid_token"` or `error="use_dpop_nonce"` and react
-
/// (refresh/retry). If the header is absent, the 401 body flows through to `Response` and
-
/// can be parsed/mapped to `AuthError` as appropriate.
-
pub async fn send_owned<'de, R, S>(self, request: R) -> XrpcResult<OwnedResponse<S>>
-
where
-
R: XrpcRequest<'de> + Send + 'de,
-
S: XrpcRequest<'static>,
-
{
-
let http_request = build_http_request(&self.base, &request, &self.opts)
-
.map_err(crate::error::TransportError::from)?;
-
-
let http_response = self
-
.client
-
.send_http(http_request)
-
.await
-
.map_err(|e| crate::error::TransportError::Other(Box::new(e)))?;
-
-
let resp: XrpcResult<Response<'de, R>> = process_response(http_response);
-
match resp {
-
Ok(response) => Ok(response.owned()),
-
Err(err) => Err(err),
-
}
-
}
}
/// Process the HTTP response from the server into a proper xrpc response statelessly.
///
/// Exposed to make things more easily pluggable
#[inline]
-
pub fn process_response<'de, R: XrpcRequest<'de> + Send>(
-
http_response: http::Response<Vec<u8>>,
-
) -> XrpcResult<Response<'de, R>> {
let status = http_response.status();
// If the server returned 401 with a WWW-Authenticate header, expose it so higher layers
// (e.g., DPoP handling) can detect `error="invalid_token"` and trigger refresh.
···
}
/// Build an HTTP request for an XRPC call given base URL and options
-
pub fn build_http_request<'de, R: XrpcRequest<'de>>(
base: &Url,
req: &R,
opts: &CallOptions<'_>,
-
) -> core::result::Result<Request<Vec<u8>>, crate::error::TransportError> {
let mut url = base.clone();
let mut path = url.path().trim_end_matches('/').to_owned();
path.push_str("/xrpc/");
-
path.push_str(R::NSID);
url.set_path(&path);
-
if let XrpcMethod::Query = R::METHOD {
let qs = serde_html_form::to_string(&req)
.map_err(|e| crate::error::TransportError::InvalidRequest(e.to_string()))?;
if !qs.is_empty() {
···
}
}
-
let method = match R::METHOD {
XrpcMethod::Query => http::Method::GET,
XrpcMethod::Procedure(_) => http::Method::POST,
};
let mut builder = Request::builder().method(method).uri(url.as_str());
-
if let XrpcMethod::Procedure(encoding) = R::METHOD {
builder = builder.header(Header::ContentType, encoding);
}
-
builder = builder.header(http::header::ACCEPT, R::OUTPUT_ENCODING);
if let Some(token) = &opts.auth {
let hv = match token {
···
/// XRPC response wrapper that owns the response buffer
///
/// Allows borrowing from the buffer when parsing to avoid unnecessary allocations.
-
pub struct Response<'de, R: XrpcRequest<'de>> {
-
buffer: Bytes,
-
status: StatusCode,
-
_marker: PhantomData<&'de R>,
-
}
-
-
/// Owned response wrapper which allows taking ownership of the resulting response type
-
pub struct OwnedResponse<R: XrpcRequest<'static>> {
buffer: Bytes,
status: StatusCode,
-
_marker: PhantomData<R>,
}
-
impl<'de, R: XrpcRequest<'de>> Response<'de, R> {
/// Create a new response from a buffer and status code
pub fn new(buffer: Bytes, status: StatusCode) -> Self {
Self {
···
self.status
}
/// Parse the response, borrowing from the internal buffer
-
pub fn parse(&'de self) -> Result<R::Output, XrpcError<R::Err>> {
-
// Use a helper to make lifetime inference work
-
fn parse_output<'b, R: XrpcRequest<'b>>(
-
buffer: &'b [u8],
-
) -> Result<R::Output, serde_json::Error> {
-
serde_json::from_slice(buffer)
-
}
-
-
fn parse_error<'b, R: XrpcRequest<'b>>(
-
buffer: &'b [u8],
-
) -> Result<R::Err, serde_json::Error> {
-
serde_json::from_slice(buffer)
-
}
// 200: parse as output
if self.status.is_success() {
-
match parse_output::<'de, R>(&self.buffer) {
Ok(output) => Ok(output),
Err(e) => Err(XrpcError::Decode(e)),
}
// 400: try typed XRPC error, fallback to generic error
} else if self.status.as_u16() == 400 {
-
match parse_error::<'de, R>(&self.buffer) {
Ok(error) => Err(XrpcError::Xrpc(error)),
Err(_) => {
// Fallback to generic error (InvalidRequest, ExpiredToken, etc.)
match serde_json::from_slice::<GenericXrpcError>(&self.buffer) {
Ok(mut generic) => {
-
generic.nsid = R::NSID;
-
generic.method = R::METHOD.as_str();
generic.http_status = self.status;
// Map auth-related errors to AuthError
match generic.error.as_str() {
-
"ExpiredToken" => {
-
Err(XrpcError::<R::Err>::Auth(AuthError::TokenExpired))
-
}
-
"InvalidToken" => {
-
Err(XrpcError::<R::Err>::Auth(AuthError::InvalidToken))
-
}
_ => Err(XrpcError::Generic(generic)),
}
}
···
} else {
match serde_json::from_slice::<GenericXrpcError>(&self.buffer) {
Ok(mut generic) => {
-
generic.nsid = R::NSID;
-
generic.method = R::METHOD.as_str();
generic.http_status = self.status;
match generic.error.as_str() {
-
"ExpiredToken" => Err(XrpcError::<R::Err>::Auth(AuthError::TokenExpired)),
-
"InvalidToken" => Err(XrpcError::<R::Err>::Auth(AuthError::InvalidToken)),
-
_ => Err(XrpcError::<R::Err>::Auth(AuthError::NotAuthenticated)),
}
}
Err(e) => Err(XrpcError::Decode(e)),
}
}
}
-
-
/// Get the raw buffer
-
pub fn buffer(&self) -> &Bytes {
-
&self.buffer
-
}
-
-
/// Take ownership of the response so the original can be dropped
-
pub fn owned<S>(&self) -> OwnedResponse<S>
-
where
-
S: XrpcRequest<'static>,
-
{
-
OwnedResponse {
-
buffer: self.buffer.clone(),
-
status: self.status,
-
_marker: std::marker::PhantomData,
-
}
-
}
}
-
impl<R: XrpcRequest<'static>> OwnedResponse<R> {
/// Parse the response into an owned output
-
pub fn output(self) -> Result<R::Output, XrpcError<R::Err>>
where
-
for<'a> R::Output: IntoStatic<Output = R::Output>,
-
for<'a> R::Err: IntoStatic<Output = R::Err>,
{
// Use a helper to make lifetime inference work
fn parse_output<'b, R: XrpcRequest<'b>>(
-
buffer: Box<[u8]>,
-
) -> Result<R::Output, serde_json::Error> {
-
let buf: &'static [u8] = Box::leak(buffer);
-
serde_json::from_slice(buf)
}
fn parse_error<'b, R: XrpcRequest<'b>>(
-
buffer: Box<[u8]>,
-
) -> Result<R::Err, serde_json::Error> {
-
let buf: &'static [u8] = Box::leak(buffer);
-
serde_json::from_slice(buf)
}
// 200: parse as output
if self.status.is_success() {
-
match parse_output::<'static, R>(Box::from(self.buffer.as_ref())) {
-
Ok(output) => Ok(output.into_static()),
-
Err(e) => Err(XrpcError::<R::Err>::Decode(e).into_static()),
}
// 400: try typed XRPC error, fallback to generic error
} else if self.status.as_u16() == 400 {
-
let result = match parse_error::<'static, R>(Box::from(self.buffer.as_ref())) {
Ok(error) => XrpcError::Xrpc(error),
Err(_) => {
// Fallback to generic error (InvalidRequest, ExpiredToken, etc.)
···
generic.http_status = self.status;
// Map auth-related errors to AuthError
match generic.error.as_ref() {
-
"ExpiredToken" => {
-
XrpcError::<R::Err>::Auth(AuthError::TokenExpired)
-
}
-
"InvalidToken" => {
-
XrpcError::<R::Err>::Auth(AuthError::InvalidToken)
-
}
_ => XrpcError::Generic(generic),
}
}
···
}
}
};
-
Err(result.into_static())
// 401: always auth error
} else {
-
let result = match serde_json::from_slice::<GenericXrpcError>(&self.buffer) {
-
Ok(mut generic) => {
-
let status = self.status;
-
generic.nsid = R::NSID;
-
generic.method = R::METHOD.as_str();
-
generic.http_status = status;
-
match generic.error.as_ref() {
-
"ExpiredToken" => XrpcError::<R::Err>::Auth(AuthError::TokenExpired),
-
"InvalidToken" => XrpcError::<R::Err>::Auth(AuthError::InvalidToken),
-
_ => XrpcError::<R::Err>::Auth(AuthError::NotAuthenticated),
}
-
}
-
Err(e) => XrpcError::Decode(e),
-
};
-
Err(result.into_static())
}
}
}
···
/// Represents errors returned in the response body
/// Type parameter `E` is the endpoint's specific error enum type.
#[derive(Debug, thiserror::Error, miette::Diagnostic)]
-
pub enum XrpcError<E: Debug + Display + IntoStatic> {
/// Typed XRPC error from the endpoint's specific error enum
#[error("XRPC error: {0}")]
#[diagnostic(code(jacquard_common::xrpc::typed))]
···
Decode(#[from] serde_json::Error),
}
-
impl<E: std::error::Error + IntoStatic> IntoStatic for XrpcError<E>
where
-
<E as crate::into_static::IntoStatic>::Output: IntoStatic,
-
<E as crate::into_static::IntoStatic>::Output: Debug + Display,
{
type Output = XrpcError<E::Output>;
fn into_static(self) -> Self::Output {
···
}
}
impl<'de> XrpcRequest<'de> for DummyReq {
const NSID: &'static str = "test.dummy";
const METHOD: XrpcMethod = XrpcMethod::Procedure("application/json");
-
const OUTPUT_ENCODING: &'static str = "application/json";
-
type Output = ();
-
type Err = DummyErr<'de>;
}
#[test]
···
}
}
}
-
-
/// Stateful XRPC call trait
-
pub trait XrpcClient: HttpClient {
-
/// Get the base URI for the client.
-
fn base_uri(&self) -> Url;
-
-
/// Get the call options for the client.
-
fn opts(&self) -> impl Future<Output = CallOptions<'_>> {
-
async { CallOptions::default() }
-
}
-
/// Send an XRPC request and parse the response
-
fn send<'de, R: XrpcRequest<'de> + Send>(
-
&self,
-
request: &'de R,
-
) -> impl Future<Output = XrpcResult<Response<'de, R>>>;
-
}
···
};
use serde::{Deserialize, Serialize};
use smol_str::SmolStr;
+
use std::{
+
borrow::Borrow,
+
fmt::{self, Debug, Display},
+
};
use std::{error::Error, marker::PhantomData};
use url::Url;
···
/// XRPC method (query/GET or procedure/POST)
const METHOD: XrpcMethod;
+
type Response<'de1>: XrpcResp<'de1>;
/// Encode the request body for procedures.
///
···
/// Decode the request body for procedures.
///
/// Default implementation deserializes from JSON. Override for non-JSON encodings.
+
fn decode_body(body: &'de [u8]) -> Result<Box<Self>, DecodeError> {
let body: Self = serde_json::from_slice(body).map_err(|e| DecodeError::Json(e))?;
Ok(Box::new(body))
}
}
+
pub trait XrpcResp<'de> {
+
/// Output encoding (MIME type)
+
const ENCODING: &'static str;
+
+
/// Response output type
+
type Output: Deserialize<'de> + IntoStatic;
+
+
/// Error type for this request
+
type Err: Error + Deserialize<'de> + IntoStatic;
+
}
+
/// Error type for XRPC endpoints that don't define any errors
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
pub struct GenericError<'a>(#[serde(borrow)] Data<'a>);
···
impl<T: HttpClient> XrpcExt for T {}
+
/// Stateful XRPC call trait
+
pub trait XrpcClient: HttpClient {
+
/// Get the base URI for the client.
+
fn base_uri(&self) -> Url;
+
+
/// Get the call options for the client.
+
fn opts(&self) -> impl Future<Output = CallOptions<'_>> {
+
async { CallOptions::default() }
+
}
+
/// Send an XRPC request and parse the response
+
fn send<R>(&self, request: &R) -> impl Future<Output = XrpcResult<Response<R>>>
+
where
+
R: for<'any> XrpcRequest<'any> + Serialize + Send + Sync;
+
}
+
/// Stateless XRPC call builder.
///
/// Example (per-request overrides)
···
/// inspect the header for `error="invalid_token"` or `error="use_dpop_nonce"` and react
/// (refresh/retry). If the header is absent, the 401 body flows through to `Response` and
/// can be parsed/mapped to `AuthError` as appropriate.
+
pub async fn send<R>(self, request: &R) -> XrpcResult<Response<R>>
where
+
R: for<'any> XrpcRequest<'any> + Serialize + Send + Sync,
{
let http_request = build_http_request(&self.base, request, &self.opts)
.map_err(crate::error::TransportError::from)?;
···
process_response(http_response)
}
}
/// Process the HTTP response from the server into a proper xrpc response statelessly.
///
/// Exposed to make things more easily pluggable
#[inline]
+
pub fn process_response<R>(http_response: http::Response<Vec<u8>>) -> XrpcResult<Response<R>>
+
where
+
R: for<'any> XrpcRequest<'any>,
+
{
let status = http_response.status();
// If the server returned 401 with a WWW-Authenticate header, expose it so higher layers
// (e.g., DPoP handling) can detect `error="invalid_token"` and trigger refresh.
···
}
/// Build an HTTP request for an XRPC call given base URL and options
+
pub fn build_http_request<R>(
base: &Url,
req: &R,
opts: &CallOptions<'_>,
+
) -> core::result::Result<Request<Vec<u8>>, crate::error::TransportError>
+
where
+
R: for<'any> XrpcRequest<'any> + Serialize,
+
{
let mut url = base.clone();
let mut path = url.path().trim_end_matches('/').to_owned();
path.push_str("/xrpc/");
+
path.push_str(<R as XrpcRequest<'_>>::NSID);
url.set_path(&path);
+
if let XrpcMethod::Query = <R as XrpcRequest<'_>>::METHOD {
let qs = serde_html_form::to_string(&req)
.map_err(|e| crate::error::TransportError::InvalidRequest(e.to_string()))?;
if !qs.is_empty() {
···
}
}
+
let method = match <R as XrpcRequest<'_>>::METHOD {
XrpcMethod::Query => http::Method::GET,
XrpcMethod::Procedure(_) => http::Method::POST,
};
let mut builder = Request::builder().method(method).uri(url.as_str());
+
if let XrpcMethod::Procedure(encoding) = <R as XrpcRequest<'_>>::METHOD {
builder = builder.header(Header::ContentType, encoding);
}
+
let output_encoding = <R::Response<'static> as XrpcResp<'static>>::ENCODING;
+
builder = builder.header(http::header::ACCEPT, output_encoding);
if let Some(token) = &opts.auth {
let hv = match token {
···
/// XRPC response wrapper that owns the response buffer
///
/// Allows borrowing from the buffer when parsing to avoid unnecessary allocations.
+
pub struct Response<R>
+
where
+
R: for<'any> XrpcRequest<'any>, // HRTB: R works with any lifetime
+
{
+
_marker: PhantomData<R>,
buffer: Bytes,
status: StatusCode,
}
+
impl<R> Response<R>
+
where
+
R: for<'any> XrpcRequest<'any>,
+
{
/// Create a new response from a buffer and status code
pub fn new(buffer: Bytes, status: StatusCode) -> Self {
Self {
···
self.status
}
+
/// Get the raw buffer
+
pub fn buffer(&self) -> &Bytes {
+
&self.buffer
+
}
+
/// Parse the response, borrowing from the internal buffer
+
pub fn parse<'s>(
+
&'s self,
+
) -> Result<
+
<<R as XrpcRequest<'s>>::Response<'s> as XrpcResp<'s>>::Output,
+
XrpcError<<<R as XrpcRequest<'s>>::Response<'s> as XrpcResp<'s>>::Err>,
+
> {
+
type Output<'a, R> = <<R as XrpcRequest<'a>>::Response<'a> as XrpcResp<'a>>::Output;
+
type Err<'a, R> = <<R as XrpcRequest<'a>>::Response<'a> as XrpcResp<'a>>::Err;
// 200: parse as output
if self.status.is_success() {
+
match serde_json::from_slice::<Output<'s, R>>(&self.buffer) {
Ok(output) => Ok(output),
Err(e) => Err(XrpcError::Decode(e)),
}
// 400: try typed XRPC error, fallback to generic error
} else if self.status.as_u16() == 400 {
+
match serde_json::from_slice::<Err<'s, R>>(&self.buffer) {
Ok(error) => Err(XrpcError::Xrpc(error)),
Err(_) => {
// Fallback to generic error (InvalidRequest, ExpiredToken, etc.)
match serde_json::from_slice::<GenericXrpcError>(&self.buffer) {
Ok(mut generic) => {
+
generic.nsid = <R as XrpcRequest<'s>>::NSID;
+
generic.method = <R as XrpcRequest<'s>>::METHOD.as_str();
generic.http_status = self.status;
// Map auth-related errors to AuthError
match generic.error.as_str() {
+
"ExpiredToken" => Err(XrpcError::Auth(AuthError::TokenExpired)),
+
"InvalidToken" => Err(XrpcError::Auth(AuthError::InvalidToken)),
_ => Err(XrpcError::Generic(generic)),
}
}
···
} else {
match serde_json::from_slice::<GenericXrpcError>(&self.buffer) {
Ok(mut generic) => {
+
generic.nsid = <R as XrpcRequest<'s>>::NSID;
+
generic.method = <R as XrpcRequest<'s>>::METHOD.as_str();
generic.http_status = self.status;
match generic.error.as_str() {
+
"ExpiredToken" => Err(XrpcError::Auth(AuthError::TokenExpired)),
+
"InvalidToken" => Err(XrpcError::Auth(AuthError::InvalidToken)),
+
_ => Err(XrpcError::Auth(AuthError::NotAuthenticated)),
}
}
Err(e) => Err(XrpcError::Decode(e)),
}
}
}
}
+
impl<R> Response<R>
+
where
+
for<'any> R: XrpcRequest<'any>,
+
{
/// Parse the response into an owned output
+
pub fn into_output(
+
self,
+
) -> Result<
+
<<R as XrpcRequest<'static>>::Response<'static> as XrpcResp<'static>>::Output,
+
XrpcError<<<R as XrpcRequest<'static>>::Response<'static> as XrpcResp<'static>>::Err>,
+
// <<R as XrpcRequest<'c>>::Response<'static>>::Output,
+
// XrpcError<<<R as XrpcRequest<'c>>::Response<'static>>::Err>,
+
>
where
+
for<'a> <<R as XrpcRequest<'a>>::Response<'a> as XrpcResp<'a>>::Output: IntoStatic<
+
Output = <<R as XrpcRequest<'static>>::Response<'static> as XrpcResp<'static>>::Output,
+
>,
+
for<'a> <<R as XrpcRequest<'a>>::Response<'a> as XrpcResp<'a>>::Err: IntoStatic<
+
Output = <<R as XrpcRequest<'static>>::Response<'static> as XrpcResp<'static>>::Err,
+
> + 'static,
{
+
type Output<'d, R> = <<R as XrpcRequest<'d>>::Response<'d> as XrpcResp<'d>>::Output;
+
type Errr<'d, R> = <<R as XrpcRequest<'d>>::Response<'d> as XrpcResp<'d>>::Err;
// Use a helper to make lifetime inference work
fn parse_output<'b, R: XrpcRequest<'b>>(
+
buffer: &'b [u8],
+
) -> Result<Output<'b, R>, serde_json::Error> {
+
serde_json::from_slice(buffer)
}
fn parse_error<'b, R: XrpcRequest<'b>>(
+
buffer: &'b [u8],
+
) -> Result<Errr<'b, R>, serde_json::Error> {
+
serde_json::from_slice(buffer)
}
// 200: parse as output
if self.status.is_success() {
+
match parse_output::<R>(&self.buffer) {
+
Ok(output) => {
+
return Ok(output.into_static());
+
}
+
Err(e) => Err(XrpcError::Decode(e)),
}
// 400: try typed XRPC error, fallback to generic error
} else if self.status.as_u16() == 400 {
+
let error = match parse_error::<R>(&self.buffer) {
Ok(error) => XrpcError::Xrpc(error),
Err(_) => {
// Fallback to generic error (InvalidRequest, ExpiredToken, etc.)
···
generic.http_status = self.status;
// Map auth-related errors to AuthError
match generic.error.as_ref() {
+
"ExpiredToken" => XrpcError::Auth(AuthError::TokenExpired),
+
"InvalidToken" => XrpcError::Auth(AuthError::InvalidToken),
_ => XrpcError::Generic(generic),
}
}
···
}
}
};
+
Err(error.into_static())
// 401: always auth error
} else {
+
let error: XrpcError<<<R as XrpcRequest<'_>>::Response<'_> as XrpcResp<'_>>::Err> =
+
match serde_json::from_slice::<GenericXrpcError>(&self.buffer) {
+
Ok(mut generic) => {
+
let status = self.status;
+
generic.nsid = R::NSID;
+
generic.method = R::METHOD.as_str();
+
generic.http_status = status;
+
match generic.error.as_ref() {
+
"ExpiredToken" => XrpcError::Auth(AuthError::TokenExpired),
+
"InvalidToken" => XrpcError::Auth(AuthError::InvalidToken),
+
_ => XrpcError::Auth(AuthError::NotAuthenticated),
+
}
}
+
Err(e) => XrpcError::Decode(e),
+
};
+
+
Err(error.into_static())
}
}
}
···
/// Represents errors returned in the response body
/// Type parameter `E` is the endpoint's specific error enum type.
#[derive(Debug, thiserror::Error, miette::Diagnostic)]
+
pub enum XrpcError<E: std::error::Error + IntoStatic> {
/// Typed XRPC error from the endpoint's specific error enum
#[error("XRPC error: {0}")]
#[diagnostic(code(jacquard_common::xrpc::typed))]
···
Decode(#[from] serde_json::Error),
}
+
impl<E> IntoStatic for XrpcError<E>
where
+
E: std::error::Error + IntoStatic,
+
E::Output: std::error::Error + IntoStatic + 'static,
+
<E as IntoStatic>::Output: std::error::Error + IntoStatic + 'static,
{
type Output = XrpcError<E::Output>;
fn into_static(self) -> Self::Output {
···
}
}
+
struct DummyResp;
+
+
impl<'de> XrpcResp<'de> for DummyResp {
+
const ENCODING: &'static str = "application/json";
+
type Output = ();
+
type Err = DummyErr<'de>;
+
}
+
impl<'de> XrpcRequest<'de> for DummyReq {
const NSID: &'static str = "test.dummy";
const METHOD: XrpcMethod = XrpcMethod::Procedure("application/json");
+
type Response<'de1> = DummyResp;
}
#[test]
···
}
}
}
+5 -7
crates/jacquard-identity/src/lib.rs
···
ResolverOptions,
};
use bytes::Bytes;
-
use jacquard_api::com_atproto::identity::resolve_did::{self, ResolveDid};
use jacquard_api::com_atproto::identity::resolve_handle::ResolveHandle;
use jacquard_common::error::TransportError;
use jacquard_common::http_client::HttpClient;
···
.send(&req)
.await
.map_err(|e| IdentityError::Xrpc(e.to_string()))?;
-
let owned: OwnedResponse<ResolveHandle<'static>> = resp.owned();
-
let out = owned
-
.output()
.map_err(|e| IdentityError::Xrpc(e.to_string()))?;
Did::new_owned(out.did.as_str())
.map(|d| d.into_static())
···
.send(&req)
.await
.map_err(|e| IdentityError::Xrpc(e.to_string()))?;
-
let owned: OwnedResponse<ResolveDid<'static>> = resp.owned();
-
let out = owned
-
.output()
.map_err(|e| IdentityError::Xrpc(e.to_string()))?;
let doc_json = serde_json::to_value(&out.did_doc)?;
let s = serde_json::to_string(&doc_json)?;
···
ResolverOptions,
};
use bytes::Bytes;
+
use jacquard_api::com_atproto::identity::resolve_did::{self, ResolveDid, ResolveDidOutput};
use jacquard_api::com_atproto::identity::resolve_handle::ResolveHandle;
use jacquard_common::error::TransportError;
use jacquard_common::http_client::HttpClient;
···
.send(&req)
.await
.map_err(|e| IdentityError::Xrpc(e.to_string()))?;
+
let out = resp
+
.into_output()
.map_err(|e| IdentityError::Xrpc(e.to_string()))?;
Did::new_owned(out.did.as_str())
.map(|d| d.into_static())
···
.send(&req)
.await
.map_err(|e| IdentityError::Xrpc(e.to_string()))?;
+
let out = resp
+
.parse()
.map_err(|e| IdentityError::Xrpc(e.to_string()))?;
let doc_json = serde_json::to_value(&out.did_doc)?;
let s = serde_json::to_string(&doc_json)?;
+24 -7
crates/jacquard-lexicon/src/codegen.rs
···
quote! { jacquard_common::types::xrpc::GenericError<'de> }
};
// Generate encode_body() method for binary inputs
let encode_body_method = if is_binary_input {
quote! {
···
let decode_body_method = if is_binary_input {
quote! {
fn decode_body(
-
&self,
body: &'de [u8],
) -> Result<Box<Self>, jacquard_common::error::DecodeError> {
Ok(Box::new(Self {
···
};
Ok(quote! {
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for #impl_target {
const NSID: &'static str = #nsid;
const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method;
-
const OUTPUT_ENCODING: &'static str = #output_encoding;
-
type Output = #output_type;
-
type Err = #error_type;
#encode_body_method
#decode_body_method
···
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct #request_ident;
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for #request_ident {
const NSID: &'static str = #nsid;
const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method;
-
const OUTPUT_ENCODING: &'static str = #output_encoding;
-
type Output = #output_type;
-
type Err = #error_type;
}
})
}
···
quote! { jacquard_common::types::xrpc::GenericError<'de> }
};
+
// Generate the response type that implements XrpcResp
+
let response_ident = syn::Ident::new(
+
&format!("{}Response", type_base),
+
proc_macro2::Span::call_site(),
+
);
+
+
let response_type = quote! {
+
#[doc = "Response type for "]
+
#[doc = #nsid]
+
pub struct #response_ident;
+
+
impl<'de> jacquard_common::types::xrpc::XrpcResp<'de> for #response_ident {
+
const ENCODING: &'static str = #output_encoding;
+
type Output = #output_type;
+
type Err = #error_type;
+
}
+
};
+
// Generate encode_body() method for binary inputs
let encode_body_method = if is_binary_input {
quote! {
···
let decode_body_method = if is_binary_input {
quote! {
fn decode_body(
body: &'de [u8],
) -> Result<Box<Self>, jacquard_common::error::DecodeError> {
Ok(Box::new(Self {
···
};
Ok(quote! {
+
#response_type
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for #impl_target {
const NSID: &'static str = #nsid;
const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method;
+
type Response<'de1> = #response_ident;
#encode_body_method
#decode_body_method
···
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct #request_ident;
+
#response_type
+
impl<'de> jacquard_common::types::xrpc::XrpcRequest<'de> for #request_ident {
const NSID: &'static str = #nsid;
const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method;
+
type Response<'de1> = #response_ident;
}
})
}
+5 -2
crates/jacquard-oauth/src/client.rs
···
self.options.read().await.clone()
}
-
async fn send<'de, R: jacquard_common::types::xrpc::XrpcRequest<'de> + Send>(
&self,
-
request: &'de R,
) -> XrpcResult<Response<'de, R>> {
let base_uri = self.base_uri();
let mut opts = self.options.read().await.clone();
···
self.options.read().await.clone()
}
+
async fn send<
+
'de,
+
R: jacquard_common::types::xrpc::XrpcRequest<'de> + Clone + Send + Sync + 'de,
+
>(
&self,
+
request: &R,
) -> XrpcResult<Response<'de, R>> {
let base_uri = self.base_uri();
let mut opts = self.options.read().await.clone();
+2 -2
crates/jacquard/src/client.rs
···
fn opts(&self) -> impl Future<Output = CallOptions<'_>> {
self.inner.opts()
}
-
fn send<'de, R: XrpcRequest<'de> + Send>(
&self,
-
request: &'de R,
) -> impl Future<Output = XrpcResult<Response<'de, R>>> {
async move { self.inner.send(request).await }
}
···
fn opts(&self) -> impl Future<Output = CallOptions<'_>> {
self.inner.opts()
}
+
fn send<'de, R: XrpcRequest<'de> + Clone + Send + Sync + 'de>(
&self,
+
request: &R,
) -> impl Future<Output = XrpcResult<Response<'de, R>>> {
async move { self.inner.send(request).await }
}
+22 -28
crates/jacquard/src/client/credential_session.rs
···
.client
.xrpc(endpoint)
.with_options(opts)
-
.send(&RefreshSession)
.await?;
let refresh = response
-
.owned::<RefreshSession>()
-
.output()
.map_err(|_| ClientError::Auth(jacquard_common::error::AuthError::RefreshFailed))?;
let new_session: AtpSession = refresh.into();
···
.client
.xrpc(pds.clone())
.with_options(self.options.read().await.clone())
-
.send(&req)
.await?;
-
let out: CreateSessionOutput<'_> = resp
-
.owned::<CreateSession<'_>>()
-
.output()
.map_err(|_| ClientError::Auth(AuthError::NotAuthenticated))?;
let session = AtpSession::from(out);
···
)
}
}
-
async fn send<'de, R: jacquard_common::types::xrpc::XrpcRequest<'de> + Send>(
&self,
-
request: &'de R,
) -> XrpcResult<Response<'de, R>> {
let base_uri = self.base_uri();
let auth = self.access_token().await;
···
.client
.xrpc(base_uri.clone())
.with_options(opts.clone())
-
.send(request)
.await;
-
if is_expired(&resp) {
-
let auth = self.refresh().await?;
-
opts.auth = Some(auth);
-
self.client
-
.xrpc(base_uri)
-
.with_options(opts)
-
.send(request)
-
.await
-
} else {
-
resp
}
}
}
-
-
fn is_expired<'de, R: XrpcRequest<'de>>(response: &XrpcResult<Response<'de, R>>) -> bool {
-
match response {
-
Err(ClientError::Auth(AuthError::TokenExpired)) => true,
-
-
_ => false,
-
}
-
}
···
.client
.xrpc(endpoint)
.with_options(opts)
+
.send(RefreshSession)
.await?;
let refresh = response
+
.output::<RefreshSession>()
.map_err(|_| ClientError::Auth(jacquard_common::error::AuthError::RefreshFailed))?;
let new_session: AtpSession = refresh.into();
···
.client
.xrpc(pds.clone())
.with_options(self.options.read().await.clone())
+
.send(req)
.await?;
+
let out = resp
+
.output::<CreateSession<'_>>()
.map_err(|_| ClientError::Auth(AuthError::NotAuthenticated))?;
let session = AtpSession::from(out);
···
)
}
}
+
async fn send<
+
'de,
+
R: jacquard_common::types::xrpc::XrpcRequest<'de> + Clone + Send + Sync + 'de,
+
>(
&self,
+
request: &R,
) -> XrpcResult<Response<'de, R>> {
let base_uri = self.base_uri();
let auth = self.access_token().await;
···
.client
.xrpc(base_uri.clone())
.with_options(opts.clone())
+
.send(request.clone())
.await;
+
match resp {
+
Err(ClientError::Auth(AuthError::TokenExpired)) => {
+
let auth = self.refresh().await?;
+
opts.auth = Some(auth);
+
self.client
+
.xrpc(base_uri)
+
.with_options(opts)
+
.send(request.clone())
+
.await
+
}
+
resp => resp,
}
}
}
+2 -2
crates/jacquard/src/main.rs
···
#[cfg(feature = "loopback")]
use jacquard::oauth::loopback::LoopbackConfig;
use jacquard::types::xrpc::XrpcClient;
#[cfg(not(feature = "loopback"))]
use jacquard_oauth::types::AuthorizeOptions;
use miette::IntoDiagnostic;
···
let timeline = agent
.send(&GetTimeline::new().limit(5).build())
.await?
-
.owned::<GetTimeline>()
-
.output()?;
for (i, post) in timeline.feed.iter().enumerate() {
println!("\n{}. by {}", i + 1, post.post.author.handle);
println!(
···
#[cfg(feature = "loopback")]
use jacquard::oauth::loopback::LoopbackConfig;
use jacquard::types::xrpc::XrpcClient;
+
use jacquard_api::app_bsky::feed::get_timeline::GetTimelineOutput;
#[cfg(not(feature = "loopback"))]
use jacquard_oauth::types::AuthorizeOptions;
use miette::IntoDiagnostic;
···
let timeline = agent
.send(&GetTimeline::new().limit(5).build())
.await?
+
.output::<GetTimeline>()?;
for (i, post) in timeline.feed.iter().enumerate() {
println!("\n{}. by {}", i + 1, post.post.author.handle);
println!(