1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.unspecced.defs
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8pub mod get_age_assurance_state;
9pub mod get_config;
10pub mod get_onboarding_suggested_starter_packs;
11pub mod get_onboarding_suggested_starter_packs_skeleton;
12pub mod get_popular_feed_generators;
13pub mod get_post_thread_other_v2;
14pub mod get_post_thread_v2;
15pub mod get_suggested_feeds;
16pub mod get_suggested_feeds_skeleton;
17pub mod get_suggested_starter_packs;
18pub mod get_suggested_starter_packs_skeleton;
19pub mod get_suggested_users;
20pub mod get_suggested_users_skeleton;
21pub mod get_suggestions_skeleton;
22pub mod get_tagged_suggestions;
23pub mod get_trending_topics;
24pub mod get_trends;
25pub mod get_trends_skeleton;
26pub mod init_age_assurance;
27pub mod search_actors_skeleton;
28pub mod search_posts_skeleton;
29pub mod search_starter_packs_skeleton;
30
31/// Object used to store age assurance data in stash.
32#[jacquard_derive::lexicon]
33#[derive(
34 serde::Serialize,
35 serde::Deserialize,
36 Debug,
37 Clone,
38 PartialEq,
39 Eq,
40 jacquard_derive::IntoStatic,
41 bon::Builder
42)]
43#[serde(rename_all = "camelCase")]
44pub struct AgeAssuranceEvent<'a> {
45 /// The unique identifier for this instance of the age assurance flow, in UUID format.
46 #[serde(borrow)]
47 #[builder(into)]
48 pub attempt_id: jacquard_common::CowStr<'a>,
49 /// The IP address used when completing the AA flow.
50 #[serde(skip_serializing_if = "std::option::Option::is_none")]
51 #[builder(into)]
52 #[serde(borrow)]
53 pub complete_ip: Option<jacquard_common::CowStr<'a>>,
54 /// The user agent used when completing the AA flow.
55 #[serde(skip_serializing_if = "std::option::Option::is_none")]
56 #[builder(into)]
57 #[serde(borrow)]
58 pub complete_ua: Option<jacquard_common::CowStr<'a>>,
59 /// The date and time of this write operation.
60 pub created_at: jacquard_common::types::string::Datetime,
61 /// The email used for AA.
62 #[serde(skip_serializing_if = "std::option::Option::is_none")]
63 #[builder(into)]
64 #[serde(borrow)]
65 pub email: Option<jacquard_common::CowStr<'a>>,
66 /// The IP address used when initiating the AA flow.
67 #[serde(skip_serializing_if = "std::option::Option::is_none")]
68 #[builder(into)]
69 #[serde(borrow)]
70 pub init_ip: Option<jacquard_common::CowStr<'a>>,
71 /// The user agent used when initiating the AA flow.
72 #[serde(skip_serializing_if = "std::option::Option::is_none")]
73 #[builder(into)]
74 #[serde(borrow)]
75 pub init_ua: Option<jacquard_common::CowStr<'a>>,
76 /// The status of the age assurance process.
77 #[serde(borrow)]
78 #[builder(into)]
79 pub status: jacquard_common::CowStr<'a>,
80}
81
82/// The computed state of the age assurance process, returned to the user in question on certain authenticated requests.
83#[jacquard_derive::lexicon]
84#[derive(
85 serde::Serialize,
86 serde::Deserialize,
87 Debug,
88 Clone,
89 PartialEq,
90 Eq,
91 jacquard_derive::IntoStatic,
92 Default
93)]
94#[serde(rename_all = "camelCase")]
95pub struct AgeAssuranceState<'a> {
96 /// The timestamp when this state was last updated.
97 #[serde(skip_serializing_if = "std::option::Option::is_none")]
98 pub last_initiated_at: std::option::Option<jacquard_common::types::string::Datetime>,
99 /// The status of the age assurance process.
100 #[serde(borrow)]
101 pub status: jacquard_common::CowStr<'a>,
102}
103
104#[jacquard_derive::lexicon]
105#[derive(
106 serde::Serialize,
107 serde::Deserialize,
108 Debug,
109 Clone,
110 PartialEq,
111 Eq,
112 jacquard_derive::IntoStatic,
113 bon::Builder
114)]
115#[serde(rename_all = "camelCase")]
116pub struct SkeletonSearchActor<'a> {
117 #[serde(borrow)]
118 pub did: jacquard_common::types::string::Did<'a>,
119}
120
121#[jacquard_derive::lexicon]
122#[derive(
123 serde::Serialize,
124 serde::Deserialize,
125 Debug,
126 Clone,
127 PartialEq,
128 Eq,
129 jacquard_derive::IntoStatic,
130 bon::Builder
131)]
132#[serde(rename_all = "camelCase")]
133pub struct SkeletonSearchPost<'a> {
134 #[serde(borrow)]
135 pub uri: jacquard_common::types::string::AtUri<'a>,
136}
137
138#[jacquard_derive::lexicon]
139#[derive(
140 serde::Serialize,
141 serde::Deserialize,
142 Debug,
143 Clone,
144 PartialEq,
145 Eq,
146 jacquard_derive::IntoStatic,
147 bon::Builder
148)]
149#[serde(rename_all = "camelCase")]
150pub struct SkeletonSearchStarterPack<'a> {
151 #[serde(borrow)]
152 pub uri: jacquard_common::types::string::AtUri<'a>,
153}
154
155#[jacquard_derive::lexicon]
156#[derive(
157 serde::Serialize,
158 serde::Deserialize,
159 Debug,
160 Clone,
161 PartialEq,
162 Eq,
163 jacquard_derive::IntoStatic,
164 bon::Builder
165)]
166#[serde(rename_all = "camelCase")]
167pub struct SkeletonTrend<'a> {
168 #[serde(skip_serializing_if = "std::option::Option::is_none")]
169 #[builder(into)]
170 #[serde(borrow)]
171 pub category: Option<jacquard_common::CowStr<'a>>,
172 #[serde(borrow)]
173 pub dids: Vec<jacquard_common::types::string::Did<'a>>,
174 #[serde(borrow)]
175 #[builder(into)]
176 pub display_name: jacquard_common::CowStr<'a>,
177 #[serde(borrow)]
178 #[builder(into)]
179 pub link: jacquard_common::CowStr<'a>,
180 pub post_count: i64,
181 pub started_at: jacquard_common::types::string::Datetime,
182 #[serde(skip_serializing_if = "std::option::Option::is_none")]
183 #[builder(into)]
184 #[serde(borrow)]
185 pub status: Option<jacquard_common::CowStr<'a>>,
186 #[serde(borrow)]
187 #[builder(into)]
188 pub topic: jacquard_common::CowStr<'a>,
189}
190
191#[jacquard_derive::lexicon]
192#[derive(
193 serde::Serialize,
194 serde::Deserialize,
195 Debug,
196 Clone,
197 PartialEq,
198 Eq,
199 jacquard_derive::IntoStatic,
200 bon::Builder
201)]
202#[serde(rename_all = "camelCase")]
203pub struct ThreadItemBlocked<'a> {
204 #[serde(borrow)]
205 pub author: crate::app_bsky::feed::BlockedAuthor<'a>,
206}
207
208#[jacquard_derive::lexicon]
209#[derive(
210 serde::Serialize,
211 serde::Deserialize,
212 Debug,
213 Clone,
214 PartialEq,
215 Eq,
216 jacquard_derive::IntoStatic,
217 Default
218)]
219#[serde(rename_all = "camelCase")]
220pub struct ThreadItemNoUnauthenticated<'a> {}
221#[jacquard_derive::lexicon]
222#[derive(
223 serde::Serialize,
224 serde::Deserialize,
225 Debug,
226 Clone,
227 PartialEq,
228 Eq,
229 jacquard_derive::IntoStatic,
230 Default
231)]
232#[serde(rename_all = "camelCase")]
233pub struct ThreadItemNotFound<'a> {}
234#[jacquard_derive::lexicon]
235#[derive(
236 serde::Serialize,
237 serde::Deserialize,
238 Debug,
239 Clone,
240 PartialEq,
241 Eq,
242 jacquard_derive::IntoStatic,
243 bon::Builder
244)]
245#[serde(rename_all = "camelCase")]
246pub struct ThreadItemPost<'a> {
247 /// The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.
248 pub hidden_by_threadgate: bool,
249 /// This post has more parents that were not present in the response. This is just a boolean, without the number of parents.
250 pub more_parents: bool,
251 /// This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.
252 pub more_replies: i64,
253 /// This is by an account muted by the viewer requesting it.
254 pub muted_by_viewer: bool,
255 /// This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.
256 pub op_thread: bool,
257 #[serde(borrow)]
258 pub post: crate::app_bsky::feed::PostView<'a>,
259}
260
261#[jacquard_derive::lexicon]
262#[derive(
263 serde::Serialize,
264 serde::Deserialize,
265 Debug,
266 Clone,
267 PartialEq,
268 Eq,
269 jacquard_derive::IntoStatic,
270 bon::Builder
271)]
272#[serde(rename_all = "camelCase")]
273pub struct TrendView<'a> {
274 #[serde(borrow)]
275 pub actors: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>,
276 #[serde(skip_serializing_if = "std::option::Option::is_none")]
277 #[builder(into)]
278 #[serde(borrow)]
279 pub category: Option<jacquard_common::CowStr<'a>>,
280 #[serde(borrow)]
281 #[builder(into)]
282 pub display_name: jacquard_common::CowStr<'a>,
283 #[serde(borrow)]
284 #[builder(into)]
285 pub link: jacquard_common::CowStr<'a>,
286 pub post_count: i64,
287 pub started_at: jacquard_common::types::string::Datetime,
288 #[serde(skip_serializing_if = "std::option::Option::is_none")]
289 #[builder(into)]
290 #[serde(borrow)]
291 pub status: Option<jacquard_common::CowStr<'a>>,
292 #[serde(borrow)]
293 #[builder(into)]
294 pub topic: jacquard_common::CowStr<'a>,
295}
296
297#[jacquard_derive::lexicon]
298#[derive(
299 serde::Serialize,
300 serde::Deserialize,
301 Debug,
302 Clone,
303 PartialEq,
304 Eq,
305 jacquard_derive::IntoStatic,
306 Default
307)]
308#[serde(rename_all = "camelCase")]
309pub struct TrendingTopic<'a> {
310 #[serde(skip_serializing_if = "std::option::Option::is_none")]
311 #[serde(borrow)]
312 pub description: std::option::Option<jacquard_common::CowStr<'a>>,
313 #[serde(skip_serializing_if = "std::option::Option::is_none")]
314 #[serde(borrow)]
315 pub display_name: std::option::Option<jacquard_common::CowStr<'a>>,
316 #[serde(borrow)]
317 pub link: jacquard_common::CowStr<'a>,
318 #[serde(borrow)]
319 pub topic: jacquard_common::CowStr<'a>,
320}