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(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
34#[serde(rename_all = "camelCase")]
35pub struct AgeAssuranceEvent<'a> {
36 ///The unique identifier for this instance of the age assurance flow, in UUID format.
37 #[serde(borrow)]
38 pub attempt_id: jacquard_common::CowStr<'a>,
39 ///The IP address used when completing the AA flow.
40 #[serde(skip_serializing_if = "std::option::Option::is_none")]
41 #[serde(borrow)]
42 pub complete_ip: std::option::Option<jacquard_common::CowStr<'a>>,
43 ///The user agent used when completing the AA flow.
44 #[serde(skip_serializing_if = "std::option::Option::is_none")]
45 #[serde(borrow)]
46 pub complete_ua: std::option::Option<jacquard_common::CowStr<'a>>,
47 ///The date and time of this write operation.
48 pub created_at: jacquard_common::types::string::Datetime,
49 ///The email used for AA.
50 #[serde(skip_serializing_if = "std::option::Option::is_none")]
51 #[serde(borrow)]
52 pub email: std::option::Option<jacquard_common::CowStr<'a>>,
53 ///The IP address used when initiating the AA flow.
54 #[serde(skip_serializing_if = "std::option::Option::is_none")]
55 #[serde(borrow)]
56 pub init_ip: std::option::Option<jacquard_common::CowStr<'a>>,
57 ///The user agent used when initiating the AA flow.
58 #[serde(skip_serializing_if = "std::option::Option::is_none")]
59 #[serde(borrow)]
60 pub init_ua: std::option::Option<jacquard_common::CowStr<'a>>,
61 ///The status of the age assurance process.
62 #[serde(borrow)]
63 pub status: jacquard_common::CowStr<'a>,
64}
65
66impl jacquard_common::IntoStatic for AgeAssuranceEvent<'_> {
67 type Output = AgeAssuranceEvent<'static>;
68 fn into_static(self) -> Self::Output {
69 AgeAssuranceEvent {
70 attempt_id: self.attempt_id.into_static(),
71 complete_ip: self.complete_ip.into_static(),
72 complete_ua: self.complete_ua.into_static(),
73 created_at: self.created_at.into_static(),
74 email: self.email.into_static(),
75 init_ip: self.init_ip.into_static(),
76 init_ua: self.init_ua.into_static(),
77 status: self.status.into_static(),
78 extra_data: self.extra_data.into_static(),
79 }
80 }
81}
82
83///The computed state of the age assurance process, returned to the user in question on certain authenticated requests.
84#[jacquard_derive::lexicon]
85#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
86#[serde(rename_all = "camelCase")]
87pub struct AgeAssuranceState<'a> {
88 ///The timestamp when this state was last updated.
89 #[serde(skip_serializing_if = "std::option::Option::is_none")]
90 pub last_initiated_at: std::option::Option<jacquard_common::types::string::Datetime>,
91 ///The status of the age assurance process.
92 #[serde(borrow)]
93 pub status: jacquard_common::CowStr<'a>,
94}
95
96impl jacquard_common::IntoStatic for AgeAssuranceState<'_> {
97 type Output = AgeAssuranceState<'static>;
98 fn into_static(self) -> Self::Output {
99 AgeAssuranceState {
100 last_initiated_at: self.last_initiated_at.into_static(),
101 status: self.status.into_static(),
102 extra_data: self.extra_data.into_static(),
103 }
104 }
105}
106
107#[jacquard_derive::lexicon]
108#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
109#[serde(rename_all = "camelCase")]
110pub struct SkeletonSearchActor<'a> {
111 #[serde(borrow)]
112 pub did: jacquard_common::types::string::Did<'a>,
113}
114
115impl jacquard_common::IntoStatic for SkeletonSearchActor<'_> {
116 type Output = SkeletonSearchActor<'static>;
117 fn into_static(self) -> Self::Output {
118 SkeletonSearchActor {
119 did: self.did.into_static(),
120 extra_data: self.extra_data.into_static(),
121 }
122 }
123}
124
125#[jacquard_derive::lexicon]
126#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
127#[serde(rename_all = "camelCase")]
128pub struct SkeletonSearchPost<'a> {
129 #[serde(borrow)]
130 pub uri: jacquard_common::types::string::AtUri<'a>,
131}
132
133impl jacquard_common::IntoStatic for SkeletonSearchPost<'_> {
134 type Output = SkeletonSearchPost<'static>;
135 fn into_static(self) -> Self::Output {
136 SkeletonSearchPost {
137 uri: self.uri.into_static(),
138 extra_data: self.extra_data.into_static(),
139 }
140 }
141}
142
143#[jacquard_derive::lexicon]
144#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
145#[serde(rename_all = "camelCase")]
146pub struct SkeletonSearchStarterPack<'a> {
147 #[serde(borrow)]
148 pub uri: jacquard_common::types::string::AtUri<'a>,
149}
150
151impl jacquard_common::IntoStatic for SkeletonSearchStarterPack<'_> {
152 type Output = SkeletonSearchStarterPack<'static>;
153 fn into_static(self) -> Self::Output {
154 SkeletonSearchStarterPack {
155 uri: self.uri.into_static(),
156 extra_data: self.extra_data.into_static(),
157 }
158 }
159}
160
161#[jacquard_derive::lexicon]
162#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
163#[serde(rename_all = "camelCase")]
164pub struct SkeletonTrend<'a> {
165 #[serde(skip_serializing_if = "std::option::Option::is_none")]
166 #[serde(borrow)]
167 pub category: std::option::Option<jacquard_common::CowStr<'a>>,
168 #[serde(borrow)]
169 pub dids: Vec<jacquard_common::types::string::Did<'a>>,
170 #[serde(borrow)]
171 pub display_name: jacquard_common::CowStr<'a>,
172 #[serde(borrow)]
173 pub link: jacquard_common::CowStr<'a>,
174 pub post_count: i64,
175 pub started_at: jacquard_common::types::string::Datetime,
176 #[serde(skip_serializing_if = "std::option::Option::is_none")]
177 #[serde(borrow)]
178 pub status: std::option::Option<jacquard_common::CowStr<'a>>,
179 #[serde(borrow)]
180 pub topic: jacquard_common::CowStr<'a>,
181}
182
183impl jacquard_common::IntoStatic for SkeletonTrend<'_> {
184 type Output = SkeletonTrend<'static>;
185 fn into_static(self) -> Self::Output {
186 SkeletonTrend {
187 category: self.category.into_static(),
188 dids: self.dids.into_static(),
189 display_name: self.display_name.into_static(),
190 link: self.link.into_static(),
191 post_count: self.post_count.into_static(),
192 started_at: self.started_at.into_static(),
193 status: self.status.into_static(),
194 topic: self.topic.into_static(),
195 extra_data: self.extra_data.into_static(),
196 }
197 }
198}
199
200#[jacquard_derive::lexicon]
201#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
202#[serde(rename_all = "camelCase")]
203pub struct ThreadItemBlocked<'a> {
204 #[serde(borrow)]
205 pub author: crate::app_bsky::feed::BlockedAuthor<'a>,
206}
207
208impl jacquard_common::IntoStatic for ThreadItemBlocked<'_> {
209 type Output = ThreadItemBlocked<'static>;
210 fn into_static(self) -> Self::Output {
211 ThreadItemBlocked {
212 author: self.author.into_static(),
213 extra_data: self.extra_data.into_static(),
214 }
215 }
216}
217
218#[jacquard_derive::lexicon]
219#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
220#[serde(rename_all = "camelCase")]
221pub struct ThreadItemNoUnauthenticated<'a> {}
222impl jacquard_common::IntoStatic for ThreadItemNoUnauthenticated<'_> {
223 type Output = ThreadItemNoUnauthenticated<'static>;
224 fn into_static(self) -> Self::Output {
225 ThreadItemNoUnauthenticated {
226 extra_data: self.extra_data.into_static(),
227 }
228 }
229}
230
231#[jacquard_derive::lexicon]
232#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
233#[serde(rename_all = "camelCase")]
234pub struct ThreadItemNotFound<'a> {}
235impl jacquard_common::IntoStatic for ThreadItemNotFound<'_> {
236 type Output = ThreadItemNotFound<'static>;
237 fn into_static(self) -> Self::Output {
238 ThreadItemNotFound {
239 extra_data: self.extra_data.into_static(),
240 }
241 }
242}
243
244#[jacquard_derive::lexicon]
245#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
246#[serde(rename_all = "camelCase")]
247pub struct ThreadItemPost<'a> {
248 ///The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.
249 pub hidden_by_threadgate: bool,
250 ///This post has more parents that were not present in the response. This is just a boolean, without the number of parents.
251 pub more_parents: bool,
252 ///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.
253 pub more_replies: i64,
254 ///This is by an account muted by the viewer requesting it.
255 pub muted_by_viewer: bool,
256 ///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.
257 pub op_thread: bool,
258 #[serde(borrow)]
259 pub post: crate::app_bsky::feed::PostView<'a>,
260}
261
262impl jacquard_common::IntoStatic for ThreadItemPost<'_> {
263 type Output = ThreadItemPost<'static>;
264 fn into_static(self) -> Self::Output {
265 ThreadItemPost {
266 hidden_by_threadgate: self.hidden_by_threadgate.into_static(),
267 more_parents: self.more_parents.into_static(),
268 more_replies: self.more_replies.into_static(),
269 muted_by_viewer: self.muted_by_viewer.into_static(),
270 op_thread: self.op_thread.into_static(),
271 post: self.post.into_static(),
272 extra_data: self.extra_data.into_static(),
273 }
274 }
275}
276
277#[jacquard_derive::lexicon]
278#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
279#[serde(rename_all = "camelCase")]
280pub struct TrendView<'a> {
281 #[serde(borrow)]
282 pub actors: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>,
283 #[serde(skip_serializing_if = "std::option::Option::is_none")]
284 #[serde(borrow)]
285 pub category: std::option::Option<jacquard_common::CowStr<'a>>,
286 #[serde(borrow)]
287 pub display_name: jacquard_common::CowStr<'a>,
288 #[serde(borrow)]
289 pub link: jacquard_common::CowStr<'a>,
290 pub post_count: i64,
291 pub started_at: jacquard_common::types::string::Datetime,
292 #[serde(skip_serializing_if = "std::option::Option::is_none")]
293 #[serde(borrow)]
294 pub status: std::option::Option<jacquard_common::CowStr<'a>>,
295 #[serde(borrow)]
296 pub topic: jacquard_common::CowStr<'a>,
297}
298
299impl jacquard_common::IntoStatic for TrendView<'_> {
300 type Output = TrendView<'static>;
301 fn into_static(self) -> Self::Output {
302 TrendView {
303 actors: self.actors.into_static(),
304 category: self.category.into_static(),
305 display_name: self.display_name.into_static(),
306 link: self.link.into_static(),
307 post_count: self.post_count.into_static(),
308 started_at: self.started_at.into_static(),
309 status: self.status.into_static(),
310 topic: self.topic.into_static(),
311 extra_data: self.extra_data.into_static(),
312 }
313 }
314}
315
316#[jacquard_derive::lexicon]
317#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
318#[serde(rename_all = "camelCase")]
319pub struct TrendingTopic<'a> {
320 #[serde(skip_serializing_if = "std::option::Option::is_none")]
321 #[serde(borrow)]
322 pub description: std::option::Option<jacquard_common::CowStr<'a>>,
323 #[serde(skip_serializing_if = "std::option::Option::is_none")]
324 #[serde(borrow)]
325 pub display_name: std::option::Option<jacquard_common::CowStr<'a>>,
326 #[serde(borrow)]
327 pub link: jacquard_common::CowStr<'a>,
328 #[serde(borrow)]
329 pub topic: jacquard_common::CowStr<'a>,
330}
331
332impl jacquard_common::IntoStatic for TrendingTopic<'_> {
333 type Output = TrendingTopic<'static>;
334 fn into_static(self) -> Self::Output {
335 TrendingTopic {
336 description: self.description.into_static(),
337 display_name: self.display_name.into_static(),
338 link: self.link.into_static(),
339 topic: self.topic.into_static(),
340 extra_data: self.extra_data.into_static(),
341 }
342 }
343}