diff --git a/Cargo.lock b/Cargo.lock index 40dc689..6befad3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,6 +186,31 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bon" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2529c31017402be841eb45892278a6c21a000c0a17643af326c73a73f83f0fb" +dependencies = [ + "bon-macros", + "rustversion", +] + +[[package]] +name = "bon-macros" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d82020dadcb845a345591863adb65d74fa8dc5c18a0b6d408470e13b7adc7005" +dependencies = [ + "darling", + "ident_case", + "prettyplease", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.106", +] + [[package]] name = "borsh" version = "1.5.7" @@ -589,7 +614,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.60.2", ] [[package]] @@ -1122,12 +1147,14 @@ dependencies = [ "serde_ipld_dagcbor", "serde_json", "thiserror 2.0.17", + "tokio", ] [[package]] name = "jacquard-api" version = "0.1.0" dependencies = [ + "bon", "bytes", "jacquard-common", "jacquard-derive", @@ -1749,7 +1776,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.60.2", ] [[package]] @@ -2267,9 +2294,21 @@ dependencies = [ "pin-project-lite", "slab", "socket2", + "tokio-macros", "windows-sys 0.59.0", ] +[[package]] +name = "tokio-macros" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "tokio-rustls" version = "0.26.4" diff --git a/crates/jacquard-api/Cargo.toml b/crates/jacquard-api/Cargo.toml index 710e29e..87b6905 100644 --- a/crates/jacquard-api/Cargo.toml +++ b/crates/jacquard-api/Cargo.toml @@ -19,6 +19,7 @@ com_atproto = [] tools_ozone = [] [dependencies] +bon = "3" bytes = { version = "1.10.1", features = ["serde"] } jacquard-common = { version = "0.1.0", path = "../jacquard-common" } jacquard-derive = { version = "0.1.0", path = "../jacquard-derive" } diff --git a/crates/jacquard-api/src/app_bsky/actor/get_preferences.rs b/crates/jacquard-api/src/app_bsky/actor/get_preferences.rs index 03abdbc..5b345a3 100644 --- a/crates/jacquard-api/src/app_bsky/actor/get_preferences.rs +++ b/crates/jacquard-api/src/app_bsky/actor/get_preferences.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetPreferences {} impl jacquard_common::IntoStatic for GetPreferences { diff --git a/crates/jacquard-api/src/app_bsky/actor/get_profile.rs b/crates/jacquard-api/src/app_bsky/actor/get_profile.rs index a37942b..329127a 100644 --- a/crates/jacquard-api/src/app_bsky/actor/get_profile.rs +++ b/crates/jacquard-api/src/app_bsky/actor/get_profile.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetProfile<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/actor/get_profiles.rs b/crates/jacquard-api/src/app_bsky/actor/get_profiles.rs index 6447edb..6dfccdd 100644 --- a/crates/jacquard-api/src/app_bsky/actor/get_profiles.rs +++ b/crates/jacquard-api/src/app_bsky/actor/get_profiles.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetProfiles<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs b/crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs index fd52382..aec0aad 100644 --- a/crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs +++ b/crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestions<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/actor/put_preferences.rs b/crates/jacquard-api/src/app_bsky/actor/put_preferences.rs index 2f8fa79..a13f30f 100644 --- a/crates/jacquard-api/src/app_bsky/actor/put_preferences.rs +++ b/crates/jacquard-api/src/app_bsky/actor/put_preferences.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct PutPreferences<'a> { #[serde(borrow)] pub preferences: crate::app_bsky::actor::Preferences<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for PutPreferences<'_> { diff --git a/crates/jacquard-api/src/app_bsky/actor/search_actors.rs b/crates/jacquard-api/src/app_bsky/actor/search_actors.rs index a75bac3..78f202e 100644 --- a/crates/jacquard-api/src/app_bsky/actor/search_actors.rs +++ b/crates/jacquard-api/src/app_bsky/actor/search_actors.rs @@ -5,20 +5,32 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchActors<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 25, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub q: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub term: std::option::Option>, } diff --git a/crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs b/crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs index abaf7b0..72e510d 100644 --- a/crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs +++ b/crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchActorsTypeahead<'a> { ///(default: 10, min: 1, max: 100) @@ -13,9 +22,11 @@ pub struct SearchActorsTypeahead<'a> { pub limit: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub q: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub term: std::option::Option>, } diff --git a/crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs b/crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs index e3f37d2..4f167d1 100644 --- a/crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs +++ b/crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs @@ -6,13 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateBookmark<'a> { #[serde(borrow)] pub cid: jacquard_common::types::string::Cid<'a>, #[serde(borrow)] pub uri: jacquard_common::types::string::AtUri<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for CreateBookmark<'_> { diff --git a/crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs b/crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs index d4f3912..41c9a76 100644 --- a/crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs +++ b/crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteBookmark<'a> { #[serde(borrow)] pub uri: jacquard_common::types::string::AtUri<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteBookmark<'_> { diff --git a/crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs b/crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs index 2834c19..31d313a 100644 --- a/crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs +++ b/crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetBookmarks<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs b/crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs index 68e733e..5b024ca 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetActorFeeds<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs b/crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs index 1579b0b..1552a29 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetActorLikes<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs b/crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs index 8f7cb58..75acdd9 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs @@ -5,17 +5,28 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetAuthorFeed<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: "posts_with_replies") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub filter: std::option::Option>, ///(default: false) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_feed.rs b/crates/jacquard-api/src/app_bsky/feed/get_feed.rs index 2c84ca4..fd83d7d 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_feed.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_feed.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetFeed<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(borrow)] pub feed: jacquard_common::types::string::AtUri<'a>, diff --git a/crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs b/crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs index f962d4e..8d30870 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetFeedGenerator<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs b/crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs index c344f5e..2b141a9 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetFeedGenerators<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs b/crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs index 593e6c0..8279fe7 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetFeedSkeleton<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(borrow)] pub feed: jacquard_common::types::string::AtUri<'a>, diff --git a/crates/jacquard-api/src/app_bsky/feed/get_likes.rs b/crates/jacquard-api/src/app_bsky/feed/get_likes.rs index 64c0e07..4ef866c 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_likes.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_likes.rs @@ -27,7 +27,16 @@ impl jacquard_common::IntoStatic for Like<'_> { } } -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetLikes<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -35,6 +44,7 @@ pub struct GetLikes<'a> { pub cid: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs b/crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs index f155b8c..67dade6 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetListFeed<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs b/crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs index f290878..78095e9 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetPostThread<'a> { ///(default: 6, min: 0, max: 1000) diff --git a/crates/jacquard-api/src/app_bsky/feed/get_posts.rs b/crates/jacquard-api/src/app_bsky/feed/get_posts.rs index 0e1de00..8e1e826 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_posts.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_posts.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetPosts<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_quotes.rs b/crates/jacquard-api/src/app_bsky/feed/get_quotes.rs index 5b3a559..517356d 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_quotes.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_quotes.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetQuotes<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -13,6 +22,7 @@ pub struct GetQuotes<'a> { pub cid: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs b/crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs index 4f1da3c..9291eb9 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRepostedBy<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -13,6 +22,7 @@ pub struct GetRepostedBy<'a> { pub cid: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs b/crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs index 7ee7287..b466558 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestedFeeds<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/get_timeline.rs b/crates/jacquard-api/src/app_bsky/feed/get_timeline.rs index 2526d63..6f9934b 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_timeline.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_timeline.rs @@ -5,14 +5,25 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetTimeline<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub algorithm: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/feed/search_posts.rs b/crates/jacquard-api/src/app_bsky/feed/search_posts.rs index b5ee905..ec58942 100644 --- a/crates/jacquard-api/src/app_bsky/feed/search_posts.rs +++ b/crates/jacquard-api/src/app_bsky/feed/search_posts.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchPosts<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -13,9 +22,11 @@ pub struct SearchPosts<'a> { pub author: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub domain: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub lang: std::option::Option, @@ -26,19 +37,23 @@ pub struct SearchPosts<'a> { #[serde(borrow)] pub mentions: std::option::Option>, #[serde(borrow)] + #[builder(into)] pub q: jacquard_common::CowStr<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub since: std::option::Option>, ///(default: "latest") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub tag: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub until: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/feed/send_interactions.rs b/crates/jacquard-api/src/app_bsky/feed/send_interactions.rs index 91c2f97..6c2db16 100644 --- a/crates/jacquard-api/src/app_bsky/feed/send_interactions.rs +++ b/crates/jacquard-api/src/app_bsky/feed/send_interactions.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct SendInteractions<'a> { #[serde(borrow)] pub interactions: Vec>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for SendInteractions<'_> { diff --git a/crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs b/crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs index b92cb5e..0ae0719 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetActorStarterPacks<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_blocks.rs b/crates/jacquard-api/src/app_bsky/graph/get_blocks.rs index a35e43e..2e066ce 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_blocks.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_blocks.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetBlocks<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_followers.rs b/crates/jacquard-api/src/app_bsky/graph/get_followers.rs index 7a86ffa..acab4ff 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_followers.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_followers.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetFollowers<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_follows.rs b/crates/jacquard-api/src/app_bsky/graph/get_follows.rs index fa9cf93..7e7b519 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_follows.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_follows.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetFollows<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs b/crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs index 4644a81..6a7b18f 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetKnownFollowers<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_list.rs b/crates/jacquard-api/src/app_bsky/graph/get_list.rs index 9274464..7bf16fb 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_list.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_list.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetList<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs b/crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs index 9be5d94..0d27989 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetListBlocks<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs b/crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs index b916081..57c3c7f 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetListMutes<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_lists.rs b/crates/jacquard-api/src/app_bsky/graph/get_lists.rs index 2e97982..3b3f9b3 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_lists.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_lists.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetLists<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs b/crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs index ba33ad2..16f7cdc 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs @@ -28,13 +28,23 @@ impl jacquard_common::IntoStatic for ListWithMembership<'_> { } } -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetListsWithMembership<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_mutes.rs b/crates/jacquard-api/src/app_bsky/graph/get_mutes.rs index a80d23e..886efd8 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_mutes.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_mutes.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetMutes<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_relationships.rs b/crates/jacquard-api/src/app_bsky/graph/get_relationships.rs index da2eb8c..95072c5 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_relationships.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_relationships.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRelationships<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs b/crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs index 942b8d9..f0a0cbf 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetStarterPack<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs b/crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs index 747c8fe..9a30927 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetStarterPacks<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs b/crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs index 4f5d5b1..6aa3191 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetStarterPacksWithMembership<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs b/crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs index 9b98908..e341110 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestedFollowsByActor<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/graph/mute_actor.rs b/crates/jacquard-api/src/app_bsky/graph/mute_actor.rs index c409424..68200de 100644 --- a/crates/jacquard-api/src/app_bsky/graph/mute_actor.rs +++ b/crates/jacquard-api/src/app_bsky/graph/mute_actor.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct MuteActor<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for MuteActor<'_> { diff --git a/crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs b/crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs index bc4d9ec..d1b0b6f 100644 --- a/crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs +++ b/crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct MuteActorList<'a> { #[serde(borrow)] pub list: jacquard_common::types::string::AtUri<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for MuteActorList<'_> { diff --git a/crates/jacquard-api/src/app_bsky/graph/mute_thread.rs b/crates/jacquard-api/src/app_bsky/graph/mute_thread.rs index 2151582..ec8693b 100644 --- a/crates/jacquard-api/src/app_bsky/graph/mute_thread.rs +++ b/crates/jacquard-api/src/app_bsky/graph/mute_thread.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct MuteThread<'a> { #[serde(borrow)] pub root: jacquard_common::types::string::AtUri<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for MuteThread<'_> { diff --git a/crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs b/crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs index a656971..e848866 100644 --- a/crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs @@ -5,16 +5,27 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchStarterPacks<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 25, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(borrow)] + #[builder(into)] pub q: jacquard_common::CowStr<'a>, } diff --git a/crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs b/crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs index 7fa4a46..a2e86bc 100644 --- a/crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs +++ b/crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UnmuteActor<'a> { #[serde(borrow)] pub actor: jacquard_common::types::ident::AtIdentifier<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UnmuteActor<'_> { diff --git a/crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs b/crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs index 6c81144..90977bc 100644 --- a/crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs +++ b/crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UnmuteActorList<'a> { #[serde(borrow)] pub list: jacquard_common::types::string::AtUri<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UnmuteActorList<'_> { diff --git a/crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs b/crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs index 9638ddf..ce3266b 100644 --- a/crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs +++ b/crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UnmuteThread<'a> { #[serde(borrow)] pub root: jacquard_common::types::string::AtUri<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UnmuteThread<'_> { diff --git a/crates/jacquard-api/src/app_bsky/labeler/get_services.rs b/crates/jacquard-api/src/app_bsky/labeler/get_services.rs index 5baa00d..1da3245 100644 --- a/crates/jacquard-api/src/app_bsky/labeler/get_services.rs +++ b/crates/jacquard-api/src/app_bsky/labeler/get_services.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetServices<'a> { ///(default: false) diff --git a/crates/jacquard-api/src/app_bsky/notification/get_preferences.rs b/crates/jacquard-api/src/app_bsky/notification/get_preferences.rs index 58eefa4..50846f3 100644 --- a/crates/jacquard-api/src/app_bsky/notification/get_preferences.rs +++ b/crates/jacquard-api/src/app_bsky/notification/get_preferences.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetPreferences {} impl jacquard_common::IntoStatic for GetPreferences { diff --git a/crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs b/crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs index 502cebc..b9f905d 100644 --- a/crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs +++ b/crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetUnreadCount { #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs b/crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs index 343db09..0e0a4c9 100644 --- a/crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs +++ b/crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListActivitySubscriptions<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs b/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs index 17cfe1f..4571f59 100644 --- a/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs +++ b/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListNotifications<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs b/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs index 1c7499a..ba57eff 100644 --- a/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs +++ b/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs @@ -6,13 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct PutActivitySubscription<'a> { #[serde(borrow)] pub activity_subscription: crate::app_bsky::notification::ActivitySubscription<'a>, #[serde(borrow)] pub subject: jacquard_common::types::string::Did<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for PutActivitySubscription<'_> { diff --git a/crates/jacquard-api/src/app_bsky/notification/put_preferences.rs b/crates/jacquard-api/src/app_bsky/notification/put_preferences.rs index 4360bdd..809c7dc 100644 --- a/crates/jacquard-api/src/app_bsky/notification/put_preferences.rs +++ b/crates/jacquard-api/src/app_bsky/notification/put_preferences.rs @@ -6,10 +6,26 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct PutPreferences<'a> { pub priority: bool, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for PutPreferences<'_> { diff --git a/crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs b/crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs index 528f0c5..69da75c 100644 --- a/crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs +++ b/crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct PutPreferencesV2<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -68,6 +77,13 @@ pub struct PutPreferencesV2<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub verified: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for PutPreferencesV2<'_> { diff --git a/crates/jacquard-api/src/app_bsky/notification/register_push.rs b/crates/jacquard-api/src/app_bsky/notification/register_push.rs index b93a22f..6414a21 100644 --- a/crates/jacquard-api/src/app_bsky/notification/register_push.rs +++ b/crates/jacquard-api/src/app_bsky/notification/register_push.rs @@ -6,20 +6,39 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RegisterPush<'a> { ///Set to true when the actor is age restricted #[serde(skip_serializing_if = "std::option::Option::is_none")] pub age_restricted: std::option::Option, #[serde(borrow)] + #[builder(into)] pub app_id: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub platform: jacquard_common::CowStr<'a>, #[serde(borrow)] pub service_did: jacquard_common::types::string::Did<'a>, #[serde(borrow)] + #[builder(into)] pub token: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RegisterPush<'_> { diff --git a/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs b/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs index 37a1509..8c2b0c0 100644 --- a/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs +++ b/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs @@ -6,17 +6,36 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UnregisterPush<'a> { #[serde(borrow)] + #[builder(into)] pub app_id: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub platform: jacquard_common::CowStr<'a>, #[serde(borrow)] pub service_did: jacquard_common::types::string::Did<'a>, #[serde(borrow)] + #[builder(into)] pub token: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UnregisterPush<'_> { diff --git a/crates/jacquard-api/src/app_bsky/notification/update_seen.rs b/crates/jacquard-api/src/app_bsky/notification/update_seen.rs index b167ab5..062f81b 100644 --- a/crates/jacquard-api/src/app_bsky/notification/update_seen.rs +++ b/crates/jacquard-api/src/app_bsky/notification/update_seen.rs @@ -6,10 +6,26 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateSeen<'a> { pub seen_at: jacquard_common::types::string::Datetime, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateSeen<'_> { diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs index b8ed85a..17d339d 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetOnboardingSuggestedStarterPacks { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs index ec2dcbd..749718e 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetOnboardingSuggestedStarterPacksSkeleton<'a> { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_popular_feed_generators.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_popular_feed_generators.rs index 462d99e..70fd777 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_popular_feed_generators.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_popular_feed_generators.rs @@ -5,17 +5,28 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetPopularFeedGenerators<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub query: std::option::Option>, } diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs index 8eedbed..f48f8c2 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetPostThreadOtherV2<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs index f143c60..bbbcc65 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetPostThreadV2<'a> { ///(default: true) @@ -25,6 +34,7 @@ pub struct GetPostThreadV2<'a> { ///(default: "oldest") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort: std::option::Option>, } diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs index 359e35d..eaa6d5b 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestedFeeds { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs index 61170ef..af1b4e4 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestedFeedsSkeleton<'a> { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs index 6dc0460..36d4463 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestedStarterPacks { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs index de85597..8b79288 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestedStarterPacksSkeleton<'a> { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs index f26ab80..71b4261 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestedUsers<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub category: std::option::Option>, ///(default: 25, min: 1, max: 50) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs index 01f24c2..b7937ae 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestedUsersSkeleton<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub category: std::option::Option>, ///(default: 25, min: 1, max: 50) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs index ef82d68..02e0f8a 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSuggestionsSkeleton<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs index ba2325c..990d4d4 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetTaggedSuggestions {} impl jacquard_common::IntoStatic for GetTaggedSuggestions { diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_trending_topics.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_trending_topics.rs index 4978956..29d5e2c 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_trending_topics.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_trending_topics.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetTrendingTopics<'a> { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs index efd924b..58440a8 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetTrends { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_trends_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_trends_skeleton.rs index ffb8192..0dfb42c 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_trends_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_trends_skeleton.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetTrendsSkeleton<'a> { ///(default: 10, min: 1, max: 25) diff --git a/crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs b/crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs index 4a5b4c0..d4ee439 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs @@ -6,18 +6,37 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct InitAgeAssurance<'a> { ///An ISO 3166-1 alpha-2 code of the user's location. #[serde(borrow)] + #[builder(into)] pub country_code: jacquard_common::CowStr<'a>, ///The user's email address to receive assurance instructions. #[serde(borrow)] + #[builder(into)] pub email: jacquard_common::CowStr<'a>, ///The user's preferred language for communication during the assurance process. #[serde(borrow)] + #[builder(into)] pub language: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for InitAgeAssurance<'_> { diff --git a/crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs index a0fe4c2..33a8c4d 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs @@ -5,16 +5,27 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchActorsSkeleton<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 25, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(borrow)] + #[builder(into)] pub q: jacquard_common::CowStr<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub typeahead: std::option::Option, diff --git a/crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs index 31637ca..152c034 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchPostsSkeleton<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -13,9 +22,11 @@ pub struct SearchPostsSkeleton<'a> { pub author: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub domain: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub lang: std::option::Option, @@ -26,19 +37,23 @@ pub struct SearchPostsSkeleton<'a> { #[serde(borrow)] pub mentions: std::option::Option>, #[serde(borrow)] + #[builder(into)] pub q: jacquard_common::CowStr<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub since: std::option::Option>, ///(default: "latest") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub tag: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub until: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs index a09ac9f..4977bb7 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs @@ -5,16 +5,27 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchStarterPacksSkeleton<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 25, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(borrow)] + #[builder(into)] pub q: jacquard_common::CowStr<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] diff --git a/crates/jacquard-api/src/app_bsky/video/get_job_status.rs b/crates/jacquard-api/src/app_bsky/video/get_job_status.rs index 8c48ce7..58dbd87 100644 --- a/crates/jacquard-api/src/app_bsky/video/get_job_status.rs +++ b/crates/jacquard-api/src/app_bsky/video/get_job_status.rs @@ -5,10 +5,20 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetJobStatus<'a> { #[serde(borrow)] + #[builder(into)] pub job_id: jacquard_common::CowStr<'a>, } diff --git a/crates/jacquard-api/src/app_bsky/video/upload_video.rs b/crates/jacquard-api/src/app_bsky/video/upload_video.rs index 9e1f429..c8861c2 100644 --- a/crates/jacquard-api/src/app_bsky/video/upload_video.rs +++ b/crates/jacquard-api/src/app_bsky/video/upload_video.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct UploadVideo { pub body: bytes::Bytes, diff --git a/crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs index f6993ac..fdad51e 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct AcceptConvo<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for AcceptConvo<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs b/crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs index ea8e410..71d9743 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs @@ -6,15 +6,34 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct AddReaction<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub message_id: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub value: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for AddReaction<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs b/crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs index 8655cda..6d20f9e 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs @@ -6,13 +6,31 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteMessageForSelf<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub message_id: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteMessageForSelf<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/get_convo.rs index 9ce56ed..3b77565 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_convo.rs @@ -5,10 +5,20 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetConvo<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, } diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs b/crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs index 96efc10..414a5df 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetConvoAvailability<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs b/crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs index cbfade7..eb89664 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetConvoForMembers<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_log.rs b/crates/jacquard-api/src/chat_bsky/convo/get_log.rs index e2b355b..a1680c6 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_log.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_log.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetLog<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, } diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_messages.rs b/crates/jacquard-api/src/chat_bsky/convo/get_messages.rs index 7451b25..95fd536 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_messages.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_messages.rs @@ -5,13 +5,24 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetMessages<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs index deda5f4..d4b6d84 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct LeaveConvo<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for LeaveConvo<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/list_convos.rs b/crates/jacquard-api/src/chat_bsky/convo/list_convos.rs index b3566e9..bbe92fe 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/list_convos.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/list_convos.rs @@ -5,20 +5,32 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListConvos<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub read_state: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub status: std::option::Option>, } diff --git a/crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs index 805d256..0133242 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct MuteConvo<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for MuteConvo<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs b/crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs index 5698898..cf94ee9 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs @@ -6,15 +6,34 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RemoveReaction<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub message_id: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub value: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RemoveReaction<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/send_message.rs b/crates/jacquard-api/src/chat_bsky/convo/send_message.rs index c020a91..2e5786c 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/send_message.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/send_message.rs @@ -6,13 +6,30 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct SendMessage<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, #[serde(borrow)] pub message: crate::chat_bsky::convo::MessageInput<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for SendMessage<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs b/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs index 6da72f0..0c05f91 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs @@ -27,11 +27,27 @@ impl jacquard_common::IntoStatic for BatchItem<'_> { } #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct SendMessageBatch<'a> { #[serde(borrow)] pub items: Vec>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for SendMessageBatch<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs index c3b6b89..1b6e821 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UnmuteConvo<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UnmuteConvo<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs b/crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs index 24a1faa..40d655a 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs @@ -6,12 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateAllRead<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub status: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateAllRead<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/update_read.rs b/crates/jacquard-api/src/chat_bsky/convo/update_read.rs index 591d2cf..b521885 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/update_read.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/update_read.rs @@ -6,14 +6,32 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateRead<'a> { #[serde(borrow)] + #[builder(into)] pub convo_id: jacquard_common::CowStr<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub message_id: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateRead<'_> { diff --git a/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs b/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs index 4f1caa5..a587ca8 100644 --- a/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs +++ b/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetActorMetadata<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs b/crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs index 9c40728..67e3e00 100644 --- a/crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs +++ b/crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetMessageContext<'a> { ///(default: 5) @@ -16,8 +25,10 @@ pub struct GetMessageContext<'a> { pub before: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub convo_id: std::option::Option>, #[serde(borrow)] + #[builder(into)] pub message_id: jacquard_common::CowStr<'a>, } diff --git a/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs b/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs index 5b92761..738c928 100644 --- a/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs +++ b/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs @@ -6,15 +6,32 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateActorAccess<'a> { #[serde(borrow)] pub actor: jacquard_common::types::string::Did<'a>, pub allow_access: bool, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub r#ref: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateActorAccess<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/delete_account.rs b/crates/jacquard-api/src/com_atproto/admin/delete_account.rs index e315b10..358ae2f 100644 --- a/crates/jacquard-api/src/com_atproto/admin/delete_account.rs +++ b/crates/jacquard-api/src/com_atproto/admin/delete_account.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteAccount<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteAccount<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs b/crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs index 4376675..a850d48 100644 --- a/crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs +++ b/crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs @@ -6,15 +6,32 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DisableAccountInvites<'a> { #[serde(borrow)] pub account: jacquard_common::types::string::Did<'a>, ///Optional reason for disabled invites. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub note: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DisableAccountInvites<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs b/crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs index b101169..1b277c5 100644 --- a/crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DisableInviteCodes<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -15,6 +24,13 @@ pub struct DisableInviteCodes<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub codes: std::option::Option>>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DisableInviteCodes<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs b/crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs index 476209f..0418fdf 100644 --- a/crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs +++ b/crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs @@ -6,15 +6,32 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct EnableAccountInvites<'a> { #[serde(borrow)] pub account: jacquard_common::types::string::Did<'a>, ///Optional reason for enabled invites. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub note: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for EnableAccountInvites<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/get_account_info.rs b/crates/jacquard-api/src/com_atproto/admin/get_account_info.rs index 76f016b..0e67eea 100644 --- a/crates/jacquard-api/src/com_atproto/admin/get_account_info.rs +++ b/crates/jacquard-api/src/com_atproto/admin/get_account_info.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetAccountInfo<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs b/crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs index d8e2e17..5960bfa 100644 --- a/crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs +++ b/crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetAccountInfos<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs b/crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs index aa1f543..80e1537 100644 --- a/crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetInviteCodes<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 100, min: 1, max: 500) #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -17,6 +27,7 @@ pub struct GetInviteCodes<'a> { ///(default: "recent") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort: std::option::Option>, } diff --git a/crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs b/crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs index 01592a5..90f511d 100644 --- a/crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs +++ b/crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSubjectStatus<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/admin/search_accounts.rs b/crates/jacquard-api/src/com_atproto/admin/search_accounts.rs index a40e40b..a270f7c 100644 --- a/crates/jacquard-api/src/com_atproto/admin/search_accounts.rs +++ b/crates/jacquard-api/src/com_atproto/admin/search_accounts.rs @@ -5,14 +5,25 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchAccounts<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub email: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/admin/send_email.rs b/crates/jacquard-api/src/com_atproto/admin/send_email.rs index 514460c..968caa7 100644 --- a/crates/jacquard-api/src/com_atproto/admin/send_email.rs +++ b/crates/jacquard-api/src/com_atproto/admin/send_email.rs @@ -6,14 +6,25 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct SendEmail<'a> { ///Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub comment: std::option::Option>, #[serde(borrow)] + #[builder(into)] pub content: jacquard_common::CowStr<'a>, #[serde(borrow)] pub recipient_did: jacquard_common::types::string::Did<'a>, @@ -21,7 +32,15 @@ pub struct SendEmail<'a> { pub sender_did: jacquard_common::types::string::Did<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub subject: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for SendEmail<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs index 6a52424..b1ed64b 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs @@ -6,14 +6,31 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateAccountEmail<'a> { ///The handle or DID of the repo. #[serde(borrow)] pub account: jacquard_common::types::ident::AtIdentifier<'a>, #[serde(borrow)] + #[builder(into)] pub email: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateAccountEmail<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs index b52a1cb..84be493 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs @@ -6,13 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateAccountHandle<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, #[serde(borrow)] pub handle: jacquard_common::types::string::Handle<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateAccountHandle<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs index 518132f..0cd3c4f 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs @@ -6,13 +6,30 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateAccountPassword<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, #[serde(borrow)] + #[builder(into)] pub password: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateAccountPassword<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs index 72ecfdd..f3419a6 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs @@ -6,14 +6,30 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateAccountSigningKey<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, ///Did-key formatted public key #[serde(borrow)] pub signing_key: jacquard_common::types::string::Did<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateAccountSigningKey<'_> { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs b/crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs index d000380..078e919 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateSubjectStatus<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -17,6 +26,13 @@ pub struct UpdateSubjectStatus<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub takedown: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } #[jacquard_derive::open_union] diff --git a/crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs b/crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs index 7511161..d4383bf 100644 --- a/crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs +++ b/crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RefreshIdentity<'a> { #[serde(borrow)] pub identifier: jacquard_common::types::ident::AtIdentifier<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RefreshIdentity<'_> { diff --git a/crates/jacquard-api/src/com_atproto/identity/resolve_did.rs b/crates/jacquard-api/src/com_atproto/identity/resolve_did.rs index be3998d..fd146bb 100644 --- a/crates/jacquard-api/src/com_atproto/identity/resolve_did.rs +++ b/crates/jacquard-api/src/com_atproto/identity/resolve_did.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ResolveDid<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs b/crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs index 7c52d92..df81947 100644 --- a/crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs +++ b/crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ResolveHandle<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs b/crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs index 76f88d5..cf4fd83 100644 --- a/crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs +++ b/crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ResolveIdentity<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs b/crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs index 379d43c..efa785a 100644 --- a/crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs +++ b/crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct SignPlcOperation<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -21,12 +30,20 @@ pub struct SignPlcOperation<'a> { ///A token received through com.atproto.identity.requestPlcOperationSignature #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub token: std::option::Option>, #[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)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for SignPlcOperation<'_> { diff --git a/crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs b/crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs index 9478427..f4bd552 100644 --- a/crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs +++ b/crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct SubmitPlcOperation<'a> { #[serde(borrow)] pub operation: jacquard_common::types::value::Data<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for SubmitPlcOperation<'_> { diff --git a/crates/jacquard-api/src/com_atproto/identity/update_handle.rs b/crates/jacquard-api/src/com_atproto/identity/update_handle.rs index 71e9d2c..b5437e4 100644 --- a/crates/jacquard-api/src/com_atproto/identity/update_handle.rs +++ b/crates/jacquard-api/src/com_atproto/identity/update_handle.rs @@ -6,12 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateHandle<'a> { ///The new handle. #[serde(borrow)] pub handle: jacquard_common::types::string::Handle<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateHandle<'_> { diff --git a/crates/jacquard-api/src/com_atproto/label/query_labels.rs b/crates/jacquard-api/src/com_atproto/label/query_labels.rs index 5c3026c..47ebe8b 100644 --- a/crates/jacquard-api/src/com_atproto/label/query_labels.rs +++ b/crates/jacquard-api/src/com_atproto/label/query_labels.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct QueryLabels<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 250) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/label/subscribe_labels.rs b/crates/jacquard-api/src/com_atproto/label/subscribe_labels.rs index f2db0f9..cbd2572 100644 --- a/crates/jacquard-api/src/com_atproto/label/subscribe_labels.rs +++ b/crates/jacquard-api/src/com_atproto/label/subscribe_labels.rs @@ -47,7 +47,16 @@ impl jacquard_common::IntoStatic for Labels<'_> { } } -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SubscribeLabels { #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/moderation/create_report.rs b/crates/jacquard-api/src/com_atproto/moderation/create_report.rs index f229817..ddf503d 100644 --- a/crates/jacquard-api/src/com_atproto/moderation/create_report.rs +++ b/crates/jacquard-api/src/com_atproto/moderation/create_report.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateReport<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -15,12 +24,20 @@ pub struct CreateReport<'a> { ///Additional context about the content and violation. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub reason: std::option::Option>, ///Indicates the broad category of violation the report is for. #[serde(borrow)] pub reason_type: crate::com_atproto::moderation::ReasonType<'a>, #[serde(borrow)] pub subject: CreateReportRecordSubject<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } #[jacquard_derive::open_union] diff --git a/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs b/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs index d76cebc..52fbfe1 100644 --- a/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs +++ b/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs @@ -99,8 +99,17 @@ impl jacquard_common::IntoStatic for DeleteResult<'_> { } #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct ApplyWrites<'a> { ///The handle or DID of the repo (aka, current account). #[serde(borrow)] @@ -114,6 +123,13 @@ pub struct ApplyWrites<'a> { pub validate: std::option::Option, #[serde(borrow)] pub writes: Vec>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for ApplyWrites<'_> { diff --git a/crates/jacquard-api/src/com_atproto/repo/create_record.rs b/crates/jacquard-api/src/com_atproto/repo/create_record.rs index c0437af..ebacd33 100644 --- a/crates/jacquard-api/src/com_atproto/repo/create_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/create_record.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateRecord<'a> { ///The NSID of the record collection. #[serde(borrow)] @@ -33,6 +42,13 @@ pub struct CreateRecord<'a> { ///Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. #[serde(skip_serializing_if = "std::option::Option::is_none")] pub validate: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for CreateRecord<'_> { diff --git a/crates/jacquard-api/src/com_atproto/repo/delete_record.rs b/crates/jacquard-api/src/com_atproto/repo/delete_record.rs index d4cee76..62e97f7 100644 --- a/crates/jacquard-api/src/com_atproto/repo/delete_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/delete_record.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteRecord<'a> { ///The NSID of the record collection. #[serde(borrow)] @@ -28,6 +37,13 @@ pub struct DeleteRecord<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub swap_record: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteRecord<'_> { diff --git a/crates/jacquard-api/src/com_atproto/repo/describe_repo.rs b/crates/jacquard-api/src/com_atproto/repo/describe_repo.rs index b2f02b0..42277b0 100644 --- a/crates/jacquard-api/src/com_atproto/repo/describe_repo.rs +++ b/crates/jacquard-api/src/com_atproto/repo/describe_repo.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct DescribeRepo<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/repo/get_record.rs b/crates/jacquard-api/src/com_atproto/repo/get_record.rs index c3e574a..b06f0c2 100644 --- a/crates/jacquard-api/src/com_atproto/repo/get_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/get_record.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRecord<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/repo/import_repo.rs b/crates/jacquard-api/src/com_atproto/repo/import_repo.rs index d6e95a8..2017ace 100644 --- a/crates/jacquard-api/src/com_atproto/repo/import_repo.rs +++ b/crates/jacquard-api/src/com_atproto/repo/import_repo.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ImportRepo { pub body: bytes::Bytes, diff --git a/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs b/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs index a46bb5e..f7af3ab 100644 --- a/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs +++ b/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListMissingBlobs<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 500, min: 1, max: 1000) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/repo/list_records.rs b/crates/jacquard-api/src/com_atproto/repo/list_records.rs index bbeb3ed..64ea0cd 100644 --- a/crates/jacquard-api/src/com_atproto/repo/list_records.rs +++ b/crates/jacquard-api/src/com_atproto/repo/list_records.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListRecords<'a> { #[serde(borrow)] pub collection: jacquard_common::types::string::Nsid<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/repo/put_record.rs b/crates/jacquard-api/src/com_atproto/repo/put_record.rs index 45afee6..b603da5 100644 --- a/crates/jacquard-api/src/com_atproto/repo/put_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/put_record.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct PutRecord<'a> { ///The NSID of the record collection. #[serde(borrow)] @@ -34,6 +43,13 @@ pub struct PutRecord<'a> { ///Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. #[serde(skip_serializing_if = "std::option::Option::is_none")] pub validate: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for PutRecord<'_> { diff --git a/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs b/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs index c5e4434..3a4153f 100644 --- a/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs +++ b/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct UploadBlob { pub body: bytes::Bytes, diff --git a/crates/jacquard-api/src/com_atproto/server/confirm_email.rs b/crates/jacquard-api/src/com_atproto/server/confirm_email.rs index e264c8f..c898805 100644 --- a/crates/jacquard-api/src/com_atproto/server/confirm_email.rs +++ b/crates/jacquard-api/src/com_atproto/server/confirm_email.rs @@ -6,13 +6,31 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct ConfirmEmail<'a> { #[serde(borrow)] + #[builder(into)] pub email: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub token: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for ConfirmEmail<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/create_account.rs b/crates/jacquard-api/src/com_atproto/server/create_account.rs index 8afa2ae..f4110a6 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_account.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_account.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateAccount<'a> { ///Pre-existing atproto DID, being imported to a new account. #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -15,16 +24,19 @@ pub struct CreateAccount<'a> { pub did: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub email: std::option::Option>, ///Requested handle for the account. #[serde(borrow)] pub handle: jacquard_common::types::string::Handle<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub invite_code: std::option::Option>, ///Initial account password. May need to meet instance-specific password strength requirements. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub password: std::option::Option>, ///A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -33,13 +45,23 @@ pub struct CreateAccount<'a> { ///DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub recovery_key: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub verification_code: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub verification_phone: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for CreateAccount<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/create_app_password.rs b/crates/jacquard-api/src/com_atproto/server/create_app_password.rs index 97647f6..429d699 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_app_password.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_app_password.rs @@ -32,15 +32,32 @@ impl jacquard_common::IntoStatic for AppPassword<'_> { } #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateAppPassword<'a> { ///A short name for the App Password, to help distinguish them. #[serde(borrow)] + #[builder(into)] pub name: jacquard_common::CowStr<'a>, ///If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients. #[serde(skip_serializing_if = "std::option::Option::is_none")] pub privileged: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for CreateAppPassword<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/create_invite_code.rs b/crates/jacquard-api/src/com_atproto/server/create_invite_code.rs index 8737f3f..e955ddb 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_invite_code.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_invite_code.rs @@ -6,13 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateInviteCode<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub for_account: std::option::Option>, pub use_count: i64, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for CreateInviteCode<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs b/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs index 80af104..957d9c4 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs @@ -27,14 +27,30 @@ impl jacquard_common::IntoStatic for AccountCodes<'_> { } #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateInviteCodes<'a> { pub code_count: i64, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub for_accounts: std::option::Option>>, pub use_count: i64, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for CreateInviteCodes<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/create_session.rs b/crates/jacquard-api/src/com_atproto/server/create_session.rs index 5d75829..20473c4 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_session.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_session.rs @@ -6,20 +6,39 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateSession<'a> { ///When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned #[serde(skip_serializing_if = "std::option::Option::is_none")] pub allow_takendown: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub auth_factor_token: std::option::Option>, ///Handle or other identifier supported by the server for the authenticating user. #[serde(borrow)] + #[builder(into)] pub identifier: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub password: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for CreateSession<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/deactivate_account.rs b/crates/jacquard-api/src/com_atproto/server/deactivate_account.rs index f6e10bc..aa7f6b7 100644 --- a/crates/jacquard-api/src/com_atproto/server/deactivate_account.rs +++ b/crates/jacquard-api/src/com_atproto/server/deactivate_account.rs @@ -6,12 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeactivateAccount<'a> { ///A recommendation to server as to how long they should hold onto the deactivated account before deleting. #[serde(skip_serializing_if = "std::option::Option::is_none")] pub delete_after: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeactivateAccount<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/delete_account.rs b/crates/jacquard-api/src/com_atproto/server/delete_account.rs index fe6048c..1ec15b5 100644 --- a/crates/jacquard-api/src/com_atproto/server/delete_account.rs +++ b/crates/jacquard-api/src/com_atproto/server/delete_account.rs @@ -6,15 +6,33 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteAccount<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, #[serde(borrow)] + #[builder(into)] pub password: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub token: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteAccount<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs b/crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs index c0f889f..1127e90 100644 --- a/crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetAccountInviteCodes { ///(default: true) diff --git a/crates/jacquard-api/src/com_atproto/server/get_service_auth.rs b/crates/jacquard-api/src/com_atproto/server/get_service_auth.rs index 42a7f48..cd62ea0 100644 --- a/crates/jacquard-api/src/com_atproto/server/get_service_auth.rs +++ b/crates/jacquard-api/src/com_atproto/server/get_service_auth.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetServiceAuth<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/server/request_password_reset.rs b/crates/jacquard-api/src/com_atproto/server/request_password_reset.rs index 74701d2..07f12c9 100644 --- a/crates/jacquard-api/src/com_atproto/server/request_password_reset.rs +++ b/crates/jacquard-api/src/com_atproto/server/request_password_reset.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RequestPasswordReset<'a> { #[serde(borrow)] + #[builder(into)] pub email: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RequestPasswordReset<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs b/crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs index 64e7509..ac05cde 100644 --- a/crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs +++ b/crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs @@ -6,13 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct ReserveSigningKey<'a> { ///The DID to reserve a key for. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub did: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for ReserveSigningKey<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/reset_password.rs b/crates/jacquard-api/src/com_atproto/server/reset_password.rs index c510fdd..92718a8 100644 --- a/crates/jacquard-api/src/com_atproto/server/reset_password.rs +++ b/crates/jacquard-api/src/com_atproto/server/reset_password.rs @@ -6,13 +6,31 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct ResetPassword<'a> { #[serde(borrow)] + #[builder(into)] pub password: jacquard_common::CowStr<'a>, #[serde(borrow)] + #[builder(into)] pub token: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for ResetPassword<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs b/crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs index 51debbf..de9bf21 100644 --- a/crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs +++ b/crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RevokeAppPassword<'a> { #[serde(borrow)] + #[builder(into)] pub name: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RevokeAppPassword<'_> { diff --git a/crates/jacquard-api/src/com_atproto/server/update_email.rs b/crates/jacquard-api/src/com_atproto/server/update_email.rs index 552d1cb..946c2af 100644 --- a/crates/jacquard-api/src/com_atproto/server/update_email.rs +++ b/crates/jacquard-api/src/com_atproto/server/update_email.rs @@ -6,17 +6,35 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateEmail<'a> { #[serde(borrow)] + #[builder(into)] pub email: jacquard_common::CowStr<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub email_auth_factor: std::option::Option, ///Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub token: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateEmail<'_> { diff --git a/crates/jacquard-api/src/com_atproto/sync/get_blob.rs b/crates/jacquard-api/src/com_atproto/sync/get_blob.rs index f5b3525..975755c 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_blob.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_blob.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetBlob<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/sync/get_blocks.rs b/crates/jacquard-api/src/com_atproto/sync/get_blocks.rs index b3ca89a..123d74b 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_blocks.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_blocks.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetBlocks<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/sync/get_checkout.rs b/crates/jacquard-api/src/com_atproto/sync/get_checkout.rs index eb22b75..5f5892b 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_checkout.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_checkout.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetCheckout<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/sync/get_head.rs b/crates/jacquard-api/src/com_atproto/sync/get_head.rs index e1e6264..ccd88ea 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_head.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_head.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetHead<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/sync/get_host_status.rs b/crates/jacquard-api/src/com_atproto/sync/get_host_status.rs index dea00a8..2167017 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_host_status.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_host_status.rs @@ -5,10 +5,20 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetHostStatus<'a> { #[serde(borrow)] + #[builder(into)] pub hostname: jacquard_common::CowStr<'a>, } diff --git a/crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs b/crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs index 850ecfb..29e9f3b 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetLatestCommit<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/sync/get_record.rs b/crates/jacquard-api/src/com_atproto/sync/get_record.rs index b2e0017..5a0c1c4 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_record.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_record.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[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)] diff --git a/crates/jacquard-api/src/com_atproto/sync/get_repo.rs b/crates/jacquard-api/src/com_atproto/sync/get_repo.rs index 3d02a79..2da98ab 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_repo.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_repo.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRepo<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs b/crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs index 5a3a27f..0681170 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRepoStatus<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/com_atproto/sync/list_blobs.rs b/crates/jacquard-api/src/com_atproto/sync/list_blobs.rs index 6d8e4db..48b4012 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_blobs.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_blobs.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListBlobs<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, diff --git a/crates/jacquard-api/src/com_atproto/sync/list_hosts.rs b/crates/jacquard-api/src/com_atproto/sync/list_hosts.rs index 06cd79f..2be478d 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_hosts.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_hosts.rs @@ -35,11 +35,21 @@ impl jacquard_common::IntoStatic for Host<'_> { } } -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListHosts<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 200, min: 1, max: 1000) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/sync/list_repos.rs b/crates/jacquard-api/src/com_atproto/sync/list_repos.rs index 48683fb..95b5d55 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_repos.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_repos.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListRepos<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 500, min: 1, max: 1000) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs b/crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs index 39d566c..8990526 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListReposByCollection<'a> { #[serde(borrow)] pub collection: jacquard_common::types::string::Nsid<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 500, min: 1, max: 2000) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs b/crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs index aee329c..b4f2fe6 100644 --- a/crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs +++ b/crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs @@ -6,12 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct NotifyOfUpdate<'a> { ///Hostname of the current service (usually a PDS) that is notifying of update. #[serde(borrow)] + #[builder(into)] pub hostname: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for NotifyOfUpdate<'_> { diff --git a/crates/jacquard-api/src/com_atproto/sync/request_crawl.rs b/crates/jacquard-api/src/com_atproto/sync/request_crawl.rs index 24fff6e..d07ccd6 100644 --- a/crates/jacquard-api/src/com_atproto/sync/request_crawl.rs +++ b/crates/jacquard-api/src/com_atproto/sync/request_crawl.rs @@ -6,12 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RequestCrawl<'a> { ///Hostname of the current service (eg, PDS) that is requesting to be crawled. #[serde(borrow)] + #[builder(into)] pub hostname: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RequestCrawl<'_> { diff --git a/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs b/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs index 993439e..4f8ac87 100644 --- a/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs +++ b/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs @@ -142,7 +142,16 @@ impl jacquard_common::IntoStatic for Info<'_> { } } -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SubscribeRepos { #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs b/crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs index 2ae68c1..59edc9b 100644 --- a/crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs +++ b/crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct AddReservedHandle<'a> { #[serde(borrow)] + #[builder(into)] pub handle: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for AddReservedHandle<'_> { diff --git a/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs b/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs index 254eecf..0f2aa41 100644 --- a/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs +++ b/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs @@ -5,13 +5,23 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct CheckHandleAvailability<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] pub birth_date: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub email: std::option::Option>, #[serde(borrow)] pub handle: jacquard_common::types::string::Handle<'a>, diff --git a/crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs b/crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs index 96f42a2..5cc7458 100644 --- a/crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs +++ b/crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs @@ -5,10 +5,20 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct DereferenceScope<'a> { #[serde(borrow)] + #[builder(into)] pub scope: jacquard_common::CowStr<'a>, } diff --git a/crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs b/crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs index 0e2e52a..caa712a 100644 --- a/crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs +++ b/crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct FetchLabels { ///(default: 50, min: 1, max: 250) diff --git a/crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs b/crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs index 18301db..b810a69 100644 --- a/crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs +++ b/crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RequestPhoneVerification<'a> { #[serde(borrow)] + #[builder(into)] pub phone_number: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RequestPhoneVerification<'_> { diff --git a/crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs b/crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs index 7b22da8..b66ca2c 100644 --- a/crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs +++ b/crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RevokeAccountCredentials<'a> { #[serde(borrow)] pub account: jacquard_common::types::ident::AtIdentifier<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RevokeAccountCredentials<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/communication/create_template.rs b/crates/jacquard-api/src/tools_ozone/communication/create_template.rs index abdd4a8..5fbc455 100644 --- a/crates/jacquard-api/src/tools_ozone/communication/create_template.rs +++ b/crates/jacquard-api/src/tools_ozone/communication/create_template.rs @@ -6,11 +6,21 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct CreateTemplate<'a> { ///Content of the template, markdown supported, can contain variable placeholders. #[serde(borrow)] + #[builder(into)] pub content_markdown: jacquard_common::CowStr<'a>, ///DID of the user who is creating the template. #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -21,10 +31,19 @@ pub struct CreateTemplate<'a> { pub lang: std::option::Option, ///Name of the template. #[serde(borrow)] + #[builder(into)] pub name: jacquard_common::CowStr<'a>, ///Subject of the message, used in emails. #[serde(borrow)] + #[builder(into)] pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for CreateTemplate<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/communication/delete_template.rs b/crates/jacquard-api/src/tools_ozone/communication/delete_template.rs index 35a7d61..04f9a8b 100644 --- a/crates/jacquard-api/src/tools_ozone/communication/delete_template.rs +++ b/crates/jacquard-api/src/tools_ozone/communication/delete_template.rs @@ -6,11 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteTemplate<'a> { #[serde(borrow)] + #[builder(into)] pub id: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteTemplate<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/communication/update_template.rs b/crates/jacquard-api/src/tools_ozone/communication/update_template.rs index 29f748a..3bd4f99 100644 --- a/crates/jacquard-api/src/tools_ozone/communication/update_template.rs +++ b/crates/jacquard-api/src/tools_ozone/communication/update_template.rs @@ -6,17 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateTemplate<'a> { ///Content of the template, markdown supported, can contain variable placeholders. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub content_markdown: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub disabled: std::option::Option, ///ID of the template to be updated. #[serde(borrow)] + #[builder(into)] pub id: jacquard_common::CowStr<'a>, ///Message language. #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -24,15 +35,24 @@ pub struct UpdateTemplate<'a> { ///Name of the template. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub name: std::option::Option>, ///Subject of the message, used in emails. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub subject: std::option::Option>, ///DID of the user who is updating the template. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub updated_by: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateTemplate<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs b/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs index 955fd51..7250dd2 100644 --- a/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs +++ b/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs @@ -121,11 +121,21 @@ impl jacquard_common::IntoStatic for HandleUpdated<'_> { } } -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetAccountHistory<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, diff --git a/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs b/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs index 9f8c262..8f091f3 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct EmitEvent<'a> { #[serde(borrow)] pub created_by: jacquard_common::types::string::Did<'a>, @@ -16,6 +25,7 @@ pub struct EmitEvent<'a> { ///An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub external_id: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -27,6 +37,13 @@ pub struct EmitEvent<'a> { pub subject_blob_cids: std::option::Option< Vec>, >, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } #[jacquard_derive::open_union] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs index 54def78..893a2df 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetAccountTimeline<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_event.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_event.rs index bc6ff85..00aa7d8 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_event.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_event.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetEvent { pub id: i64, diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_record.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_record.rs index 8681896..11125c8 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_record.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_record.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRecord<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_records.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_records.rs index b49e4ca..2ef5af0 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_records.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_records.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRecords<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs index d8c9738..9a56cca 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRepo<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs index ad57886..19903c0 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetReporterStats<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs index 34d95f0..0016203 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetRepos<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs index 853a4b0..c3759b9 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetSubjects<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/query_events.rs b/crates/jacquard-api/src/tools_ozone/moderation/query_events.rs index 1c8fb6a..74626a7 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/query_events.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/query_events.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct QueryEvents<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -16,15 +25,18 @@ pub struct QueryEvents<'a> { pub added_tags: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub age_assurance_state: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub batch_id: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub collections: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub comment: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub created_after: std::option::Option, @@ -35,6 +47,7 @@ pub struct QueryEvents<'a> { pub created_by: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub has_comment: std::option::Option, @@ -62,12 +75,14 @@ pub struct QueryEvents<'a> { ///(default: "desc") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort_direction: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub subject: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub subject_type: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs b/crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs index 7fe7262..3052d57 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct QueryStatuses<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub age_assurance_state: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub appealed: std::option::Option, @@ -18,9 +28,11 @@ pub struct QueryStatuses<'a> { pub collections: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub comment: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -76,6 +88,7 @@ pub struct QueryStatuses<'a> { pub queue_index: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub queue_seed: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub reported_after: std::option::Option, @@ -83,6 +96,7 @@ pub struct QueryStatuses<'a> { pub reported_before: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub review_state: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub reviewed_after: std::option::Option, @@ -91,16 +105,19 @@ pub struct QueryStatuses<'a> { ///(default: "desc") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort_direction: std::option::Option>, ///(default: "lastReportedAt") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort_field: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub subject: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub subject_type: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs b/crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs index f0f08fb..faa044f 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs @@ -5,20 +5,32 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchRepos<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub q: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub term: std::option::Option>, } diff --git a/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs index 3c71a7d..a7bd606 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs @@ -6,14 +6,24 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct AddRule<'a> { #[serde(borrow)] pub action: crate::tools_ozone::safelink::ActionType<'a>, ///Optional comment about the decision #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub comment: std::option::Option>, ///Author DID. Only respected when using admin auth #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -25,7 +35,15 @@ pub struct AddRule<'a> { pub reason: crate::tools_ozone::safelink::ReasonType<'a>, ///The URL or domain to apply the rule to #[serde(borrow)] + #[builder(into)] pub url: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for AddRule<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/safelink/query_events.rs b/crates/jacquard-api/src/tools_ozone/safelink/query_events.rs index 91bbe3e..0ad2b5f 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/query_events.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/query_events.rs @@ -6,12 +6,22 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct QueryEvents<'a> { ///Cursor for pagination #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///Maximum number of results to return #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -19,15 +29,24 @@ pub struct QueryEvents<'a> { ///Filter by pattern type #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub pattern_type: std::option::Option>, ///Sort direction #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort_direction: std::option::Option>, ///Filter by specific URLs or domains #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub urls: std::option::Option>>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for QueryEvents<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs b/crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs index 16467ab..cfb81cd 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct QueryRules<'a> { ///Filter by action types #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -20,6 +29,7 @@ pub struct QueryRules<'a> { ///Cursor for pagination #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///Maximum number of results to return #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -27,19 +37,29 @@ pub struct QueryRules<'a> { ///Filter by pattern type #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub pattern_type: std::option::Option>, ///Filter by reason type #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub reason: std::option::Option>, ///Sort direction #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort_direction: std::option::Option>, ///Filter by specific URLs or domains #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub urls: std::option::Option>>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for QueryRules<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs index f153ea0..798039a 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs @@ -6,12 +6,22 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RemoveRule<'a> { ///Optional comment about why the rule is being removed #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub comment: std::option::Option>, ///Optional DID of the user. Only respected when using admin auth. #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -21,7 +31,15 @@ pub struct RemoveRule<'a> { pub pattern: crate::tools_ozone::safelink::PatternType<'a>, ///The URL or domain to remove the rule for #[serde(borrow)] + #[builder(into)] pub url: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RemoveRule<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs index 4acc0a3..8959c6e 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs @@ -6,14 +6,24 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateRule<'a> { #[serde(borrow)] pub action: crate::tools_ozone::safelink::ActionType<'a>, ///Optional comment about the update #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub comment: std::option::Option>, ///Optional DID to credit as the creator. Only respected for admin_token authentication. #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -25,7 +35,15 @@ pub struct UpdateRule<'a> { pub reason: crate::tools_ozone::safelink::ReasonType<'a>, ///The URL or domain to update the rule for #[serde(borrow)] + #[builder(into)] pub url: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateRule<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/set/add_values.rs b/crates/jacquard-api/src/tools_ozone/set/add_values.rs index 1dffd53..e4929da 100644 --- a/crates/jacquard-api/src/tools_ozone/set/add_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/add_values.rs @@ -6,15 +6,32 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct AddValues<'a> { ///Name of the set to add values to #[serde(borrow)] + #[builder(into)] pub name: jacquard_common::CowStr<'a>, ///Array of string values to add to the set #[serde(borrow)] pub values: Vec>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for AddValues<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/set/delete_set.rs b/crates/jacquard-api/src/tools_ozone/set/delete_set.rs index a5f8389..41e0f9c 100644 --- a/crates/jacquard-api/src/tools_ozone/set/delete_set.rs +++ b/crates/jacquard-api/src/tools_ozone/set/delete_set.rs @@ -6,12 +6,29 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteSet<'a> { ///Name of the set to delete #[serde(borrow)] + #[builder(into)] pub name: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteSet<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/set/delete_values.rs b/crates/jacquard-api/src/tools_ozone/set/delete_values.rs index fc59ebb..4dea8a2 100644 --- a/crates/jacquard-api/src/tools_ozone/set/delete_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/delete_values.rs @@ -6,15 +6,32 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteValues<'a> { ///Name of the set to delete values from #[serde(borrow)] + #[builder(into)] pub name: jacquard_common::CowStr<'a>, ///Array of string values to delete from the set #[serde(borrow)] pub values: Vec>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteValues<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/set/get_values.rs b/crates/jacquard-api/src/tools_ozone/set/get_values.rs index 4881055..953df0a 100644 --- a/crates/jacquard-api/src/tools_ozone/set/get_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/get_values.rs @@ -5,16 +5,27 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetValues<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 100, min: 1, max: 1000) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(borrow)] + #[builder(into)] pub name: jacquard_common::CowStr<'a>, } diff --git a/crates/jacquard-api/src/tools_ozone/set/query_sets.rs b/crates/jacquard-api/src/tools_ozone/set/query_sets.rs index a5f380e..36052c7 100644 --- a/crates/jacquard-api/src/tools_ozone/set/query_sets.rs +++ b/crates/jacquard-api/src/tools_ozone/set/query_sets.rs @@ -5,25 +5,38 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct QuerySets<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] pub limit: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub name_prefix: std::option::Option>, ///(default: "name") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort_by: std::option::Option>, ///(default: "asc") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort_direction: std::option::Option>, } diff --git a/crates/jacquard-api/src/tools_ozone/set/upsert_set.rs b/crates/jacquard-api/src/tools_ozone/set/upsert_set.rs index 4b24be8..539f759 100644 --- a/crates/jacquard-api/src/tools_ozone/set/upsert_set.rs +++ b/crates/jacquard-api/src/tools_ozone/set/upsert_set.rs @@ -6,12 +6,28 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpsertSet<'a> { #[serde(flatten)] #[serde(borrow)] pub value: crate::tools_ozone::set::Set<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpsertSet<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/setting/list_options.rs b/crates/jacquard-api/src/tools_ozone/setting/list_options.rs index 1ded531..c42f1fa 100644 --- a/crates/jacquard-api/src/tools_ozone/setting/list_options.rs +++ b/crates/jacquard-api/src/tools_ozone/setting/list_options.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListOptions<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -19,10 +29,12 @@ pub struct ListOptions<'a> { pub limit: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub prefix: std::option::Option>, ///(default: "instance") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub scope: std::option::Option>, } diff --git a/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs b/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs index a54d114..b291018 100644 --- a/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs +++ b/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs @@ -6,13 +6,30 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RemoveOptions<'a> { #[serde(borrow)] pub keys: Vec>, #[serde(borrow)] + #[builder(into)] pub scope: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RemoveOptions<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs b/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs index a03cc00..d277127 100644 --- a/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs +++ b/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs @@ -6,21 +6,40 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpsertOption<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub description: std::option::Option>, #[serde(borrow)] pub key: jacquard_common::types::string::Nsid<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub manager_role: std::option::Option>, #[serde(borrow)] + #[builder(into)] pub scope: jacquard_common::CowStr<'a>, #[serde(borrow)] pub value: jacquard_common::types::value::Data<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpsertOption<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs b/crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs index 1261779..edc2800 100644 --- a/crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs +++ b/crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct FindCorrelation<'a> { #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/signature/find_related_accounts.rs b/crates/jacquard-api/src/tools_ozone/signature/find_related_accounts.rs index ad83058..c4017a1 100644 --- a/crates/jacquard-api/src/tools_ozone/signature/find_related_accounts.rs +++ b/crates/jacquard-api/src/tools_ozone/signature/find_related_accounts.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct FindRelatedAccounts<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, diff --git a/crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs b/crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs index 6fe9942..4164cfa 100644 --- a/crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs +++ b/crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct SearchAccounts<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, ///(default: 50, min: 1, max: 100) #[serde(skip_serializing_if = "std::option::Option::is_none")] diff --git a/crates/jacquard-api/src/tools_ozone/team/add_member.rs b/crates/jacquard-api/src/tools_ozone/team/add_member.rs index 37def56..8462427 100644 --- a/crates/jacquard-api/src/tools_ozone/team/add_member.rs +++ b/crates/jacquard-api/src/tools_ozone/team/add_member.rs @@ -6,13 +6,30 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct AddMember<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, #[serde(borrow)] + #[builder(into)] pub role: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for AddMember<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/team/delete_member.rs b/crates/jacquard-api/src/tools_ozone/team/delete_member.rs index c1bb6d4..f451f9a 100644 --- a/crates/jacquard-api/src/tools_ozone/team/delete_member.rs +++ b/crates/jacquard-api/src/tools_ozone/team/delete_member.rs @@ -6,11 +6,27 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct DeleteMember<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for DeleteMember<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/team/list_members.rs b/crates/jacquard-api/src/tools_ozone/team/list_members.rs index c190695..9df2f75 100644 --- a/crates/jacquard-api/src/tools_ozone/team/list_members.rs +++ b/crates/jacquard-api/src/tools_ozone/team/list_members.rs @@ -5,11 +5,21 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListMembers<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub disabled: std::option::Option, @@ -18,6 +28,7 @@ pub struct ListMembers<'a> { pub limit: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub q: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/team/update_member.rs b/crates/jacquard-api/src/tools_ozone/team/update_member.rs index 28f7e33..23396b8 100644 --- a/crates/jacquard-api/src/tools_ozone/team/update_member.rs +++ b/crates/jacquard-api/src/tools_ozone/team/update_member.rs @@ -6,8 +6,17 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct UpdateMember<'a> { #[serde(borrow)] pub did: jacquard_common::types::string::Did<'a>, @@ -15,7 +24,15 @@ pub struct UpdateMember<'a> { pub disabled: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub role: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for UpdateMember<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs b/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs index 11b39a5..7908240 100644 --- a/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs +++ b/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs @@ -30,12 +30,28 @@ impl jacquard_common::IntoStatic for GrantError<'_> { } #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct GrantVerifications<'a> { ///Array of verification requests to process #[serde(borrow)] pub verifications: Vec>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for GrantVerifications<'_> { diff --git a/crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs b/crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs index 570e7a4..2d7341a 100644 --- a/crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs +++ b/crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs @@ -5,7 +5,16 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] +#[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct ListVerifications<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] @@ -14,6 +23,7 @@ pub struct ListVerifications<'a> { pub created_before: std::option::Option, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub cursor: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] pub is_revoked: std::option::Option, @@ -26,6 +36,7 @@ pub struct ListVerifications<'a> { ///(default: "desc") #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub sort_direction: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] diff --git a/crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs b/crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs index 85eeb31..38b64d5 100644 --- a/crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs +++ b/crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs @@ -6,16 +6,33 @@ // Any manual changes will be overwritten on the next regeneration. #[jacquard_derive::lexicon] -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder +)] #[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] pub struct RevokeVerifications<'a> { ///Reason for revoking the verification. This is optional and can be omitted if not needed. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] + #[builder(into)] pub revoke_reason: std::option::Option>, ///Array of verification record uris to revoke #[serde(borrow)] pub uris: Vec>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, } impl jacquard_common::IntoStatic for RevokeVerifications<'_> { diff --git a/crates/jacquard-derive/tests/open_union.rs b/crates/jacquard-derive/tests/open_union.rs index 9db434e..325b710 100644 --- a/crates/jacquard-derive/tests/open_union.rs +++ b/crates/jacquard-derive/tests/open_union.rs @@ -24,7 +24,7 @@ fn test_open_union_known_variant() { #[test] fn test_open_union_unknown_variant() { - use jacquard_common::types::value::{Data, Object}; + use jacquard_common::types::value::Data; let json = r#"{"$type":"com.example.unknown","data":"something"}"#; let union: TestUnion = serde_json::from_str(json).unwrap(); diff --git a/crates/jacquard-lexicon/src/codegen.rs b/crates/jacquard-lexicon/src/codegen.rs index ec62d96..51cf698 100644 --- a/crates/jacquard-lexicon/src/codegen.rs +++ b/crates/jacquard-lexicon/src/codegen.rs @@ -152,7 +152,7 @@ impl<'c> CodeGenerator<'c> { let ident = syn::Ident::new(&type_name, proc_macro2::Span::call_site()); // Generate main struct fields - let fields = self.generate_object_fields(nsid, &type_name, obj)?; + let fields = self.generate_object_fields(nsid, &type_name, obj, false)?; let doc = self.generate_doc_comment(record.description.as_ref()); // Records always get a lifetime since they have the #[lexicon] attribute @@ -213,7 +213,7 @@ impl<'c> CodeGenerator<'c> { let type_name = self.def_to_type_name(nsid, def_name); let ident = syn::Ident::new(&type_name, proc_macro2::Span::call_site()); - let fields = self.generate_object_fields(nsid, &type_name, obj)?; + let fields = self.generate_object_fields(nsid, &type_name, obj, false)?; let doc = self.generate_doc_comment(obj.description.as_ref()); // Objects always get a lifetime since they have the #[lexicon] attribute @@ -257,6 +257,7 @@ impl<'c> CodeGenerator<'c> { nsid: &str, parent_type_name: &str, obj: &LexObject<'static>, + is_builder: bool, ) -> Result { let required = obj.required.as_ref().map(|r| r.as_slice()).unwrap_or(&[]); @@ -264,7 +265,7 @@ impl<'c> CodeGenerator<'c> { for (field_name, field_type) in &obj.properties { let is_required = required.contains(field_name); let field_tokens = - self.generate_field(nsid, parent_type_name, field_name, field_type, is_required)?; + self.generate_field(nsid, parent_type_name, field_name, field_type, is_required, is_builder)?; fields.push(field_tokens); } @@ -279,6 +280,7 @@ impl<'c> CodeGenerator<'c> { field_name: &str, field_type: &LexObjectProperty<'static>, is_required: bool, + is_builder: bool, ) -> Result { let field_ident = make_ident(&field_name.to_snake_case()); @@ -286,6 +288,9 @@ impl<'c> CodeGenerator<'c> { self.property_to_rust_type(nsid, parent_type_name, field_name, field_type)?; let needs_lifetime = self.property_needs_lifetime(field_type); + // Check if this is a CowStr field for builder(into) attribute + let is_cowstr = matches!(field_type, LexObjectProperty::String(s) if s.format.is_none()); + let rust_type = if is_required { rust_type } else { @@ -318,6 +323,11 @@ impl<'c> CodeGenerator<'c> { attrs.push(quote! { #[serde(borrow)] }); } + // Add builder(into) for CowStr fields to allow String, &str, etc., but only for builder structs + if is_builder && is_cowstr { + attrs.push(quote! { #[builder(into)] }); + } + Ok(quote! { #doc #(#attrs)* @@ -865,7 +875,7 @@ impl<'c> CodeGenerator<'c> { let struct_name = format!("{}Message", type_base); let struct_ident = syn::Ident::new(&struct_name, proc_macro2::Span::call_site()); - let fields = self.generate_object_fields("", &struct_name, obj)?; + let fields = self.generate_object_fields("", &struct_name, obj, false)?; let doc = self.generate_doc_comment(obj.description.as_ref()); // Subscription message structs always get a lifetime since they have the #[lexicon] attribute @@ -1263,8 +1273,10 @@ impl<'c> CodeGenerator<'c> { let doc = self.generate_doc_comment(p.description.as_ref()); let needs_lifetime = self.params_need_lifetime(p); - let derives = - quote! { #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] }; + let derives = quote! { + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] + #[builder(start_fn = new)] + }; // Generate IntoStatic impl let field_names: Vec<&str> = p.properties.keys().map(|k| k.as_str()).collect(); @@ -1438,7 +1450,7 @@ impl<'c> CodeGenerator<'c> { let is_binary_body = body.schema.is_none(); let fields = if let Some(schema) = &body.schema { - self.generate_body_fields("", type_base, schema)? + self.generate_body_fields("", type_base, schema, true)? } else { // Binary body: just a bytes field quote! { @@ -1452,22 +1464,31 @@ impl<'c> CodeGenerator<'c> { let struct_def = if is_binary_body { quote! { #doc - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] + #[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct #ident { #fields } } } else { - // Input structs with schemas get a lifetime since they have the #[lexicon] attribute - // which adds extra_data: BTreeMap<..., Data<'a>> + // Input structs with schemas: manually add extra_data field with #[builder(default)] + // for bon compatibility. The #[lexicon] macro will see it exists and skip adding it. quote! { #doc #[jacquard_derive::lexicon] - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, bon::Builder)] #[serde(rename_all = "camelCase")] + #[builder(start_fn = new)] pub struct #ident<'a> { #fields + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a> + >, } } }; @@ -1530,7 +1551,7 @@ impl<'c> CodeGenerator<'c> { let ident = syn::Ident::new(&struct_name, proc_macro2::Span::call_site()); let fields = if let Some(schema) = &body.schema { - self.generate_body_fields("", &struct_name, schema)? + self.generate_body_fields("", &struct_name, schema, false)? } else { quote! {} }; @@ -1593,12 +1614,13 @@ impl<'c> CodeGenerator<'c> { nsid: &str, parent_type_name: &str, schema: &LexXrpcBodySchema<'static>, + is_builder: bool, ) -> Result { use crate::lexicon::LexXrpcBodySchema; match schema { LexXrpcBodySchema::Object(obj) => { - self.generate_object_fields(nsid, parent_type_name, obj) + self.generate_object_fields(nsid, parent_type_name, obj, is_builder) } LexXrpcBodySchema::Ref(ref_type) => { let rust_type = self.ref_to_rust_type(&ref_type.r#ref)?; @@ -1631,14 +1653,15 @@ impl<'c> CodeGenerator<'c> { let field_ident = make_ident(&field_name.to_snake_case()); - let (rust_type, needs_lifetime) = match field_type { - LexXrpcParametersProperty::Boolean(_) => (quote! { bool }, false), - LexXrpcParametersProperty::Integer(_) => (quote! { i64 }, false), + let (rust_type, needs_lifetime, is_cowstr) = match field_type { + LexXrpcParametersProperty::Boolean(_) => (quote! { bool }, false, false), + LexXrpcParametersProperty::Integer(_) => (quote! { i64 }, false, false), LexXrpcParametersProperty::String(s) => { - (self.string_to_rust_type(s), self.string_needs_lifetime(s)) + let is_cowstr = s.format.is_none(); // CowStr for plain strings + (self.string_to_rust_type(s), self.string_needs_lifetime(s), is_cowstr) } LexXrpcParametersProperty::Unknown(_) => { - (quote! { jacquard_common::types::value::Data<'a> }, true) + (quote! { jacquard_common::types::value::Data<'a> }, true, false) } LexXrpcParametersProperty::Array(arr) => { let needs_lifetime = match &arr.items { @@ -1657,7 +1680,7 @@ impl<'c> CodeGenerator<'c> { quote! { jacquard_common::types::value::Data<'a> } } }; - (quote! { Vec<#item_type> }, needs_lifetime) + (quote! { Vec<#item_type> }, needs_lifetime, false) } }; @@ -1678,6 +1701,11 @@ impl<'c> CodeGenerator<'c> { attrs.push(quote! { #[serde(borrow)] }); } + // Add builder(into) for CowStr fields to allow String, &str, etc. + if is_cowstr { + attrs.push(quote! { #[builder(into)] }); + } + Ok(quote! { #(#attrs)* pub #field_ident: #rust_type, diff --git a/crates/jacquard-lexicon/src/lib.rs b/crates/jacquard-lexicon/src/lib.rs index 3bfa029..ae72581 100644 --- a/crates/jacquard-lexicon/src/lib.rs +++ b/crates/jacquard-lexicon/src/lib.rs @@ -4,50 +4,3 @@ pub mod error; pub mod fs; pub mod lexicon; pub mod union_registry; - -// #[lexicon] -// #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -// #[serde(rename_all = "camelCase")] -// pub struct Post<'s> { -// ///Client-declared timestamp when this post was originally created. -// pub created_at: jacquard_common::types::string::Datetime, -// #[serde(skip_serializing_if = "core::option::Option::is_none")] -// pub embed: core::option::Option>, -// ///DEPRECATED: replaced by app.bsky.richtext.facet. -// #[serde(skip_serializing_if = "core::option::Option::is_none")] -// pub entities: core::option::Option>>, -// ///Annotations of text (mentions, URLs, hashtags, etc) -// #[serde(skip_serializing_if = "core::option::Option::is_none")] -// pub facets: core::option::Option>>, -// ///Self-label values for this post. Effectively content warnings. -// #[serde(skip_serializing_if = "core::option::Option::is_none")] -// pub labels: core::option::Option>, -// ///Indicates human language of post primary text content. -// #[serde(skip_serializing_if = "core::option::Option::is_none")] -// pub langs: core::option::Option>, -// #[serde(skip_serializing_if = "core::option::Option::is_none")] -// pub reply: core::option::Option>, -// ///Additional hashtags, in addition to any included in post text and facets. -// #[serde(skip_serializing_if = "core::option::Option::is_none")] -// pub tags: core::option::Option>>, -// ///The primary post content. May be an empty string, if there are embeds. -// #[serde(borrow)] -// pub text: jacquard_common::CowStr<'s>, -// } - -// #[open_union] -// #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -// #[serde(tag = "$type")] -// pub enum RecordEmbed<'s> { -// #[serde(borrow)] -// #[serde(rename = "app.bsky.embed.images")] -// EmbedImages(Box>), -// #[serde(rename = "app.bsky.embed.video")] -// EmbedVideo(Box>), -// #[serde(rename = "app.bsky.embed.external")] -// EmbedExternal(Box>), -// #[serde(rename = "app.bsky.embed.record")] -// EmbedRecord(Box>), -// #[serde(rename = "app.bsky.embed.recordWithMedia")] -// EmbedRecordWithMedia(Box>), -// } diff --git a/crates/jacquard/Cargo.toml b/crates/jacquard/Cargo.toml index 24c513f..181ca5b 100644 --- a/crates/jacquard/Cargo.toml +++ b/crates/jacquard/Cargo.toml @@ -29,3 +29,4 @@ serde_html_form = "0.2" serde_ipld_dagcbor = "0.6.4" serde_json = "1.0" thiserror = "2.0" +tokio = { version = "1", features = ["macros", "rt-multi-thread"] } diff --git a/crates/jacquard/src/main.rs b/crates/jacquard/src/main.rs index dbfd332..8a78ce6 100644 --- a/crates/jacquard/src/main.rs +++ b/crates/jacquard/src/main.rs @@ -1,19 +1,61 @@ use clap::Parser; -use jacquard_api::com_atproto::repo::create_record::*; +use jacquard::client::{AuthenticatedClient, Session, XrpcClient}; +use jacquard_api::app_bsky::feed::get_timeline::GetTimeline; +use jacquard_api::com_atproto::server::create_session::CreateSession; +use jacquard_common::CowStr; +use miette::IntoDiagnostic; #[derive(Parser, Debug)] -#[command(author = "Orual", version, about)] -/// Application configuration +#[command(author, version, about = "Jacquard - AT Protocol client demo")] struct Args { - /// whether to be verbose - #[arg(short = 'v')] - verbose: bool, + /// Username/handle (e.g., alice.bsky.social) + #[arg(short, long)] + username: CowStr<'static>, - /// an optional name to greet - #[arg()] - name: Option, + /// PDS URL (e.g., https://bsky.social) + #[arg(long, default_value = "https://bsky.social")] + pds: CowStr<'static>, + + /// App password + #[arg(short, long)] + password: CowStr<'static>, } -fn main() { - let client = reqwest::Client::new(); +#[tokio::main] +async fn main() -> miette::Result<()> { + let args = Args::parse(); + + // Create HTTP client + let http = reqwest::Client::new(); + let mut client = AuthenticatedClient::new(http, CowStr::from(args.pds)); + + // Create session + println!("logging in as {}...", args.username); + let create_session = CreateSession::new() + .identifier(args.username) + .password(args.password) + .build(); + + let session_output = client.send(create_session).await?.into_output()?; + let session = Session::from(session_output); + + println!("logged in as {} ({})", session.handle, session.did); + client.set_session(session); + + // Fetch timeline + println!("\nfetching timeline..."); + let timeline_req = GetTimeline::new().limit(5).build(); + + let timeline = client.send(timeline_req).await?.into_output()?; + + println!("\ntimeline ({} posts):", timeline.feed.len()); + for (i, post) in timeline.feed.iter().enumerate() { + println!("\n{}. by {}", i + 1, post.post.author.handle); + println!( + " {}", + serde_json::to_string_pretty(&post.post.record).into_diagnostic()? + ); + } + + Ok(()) }