atrium_api/app/bsky/unspecced/
defs.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `app.bsky.unspecced.defs` namespace.
3///Object used to store age assurance data in stash.
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct AgeAssuranceEventData {
7    ///The unique identifier for this instance of the age assurance flow, in UUID format.
8    pub attempt_id: String,
9    ///The IP address used when completing the AA flow.
10    #[serde(skip_serializing_if = "core::option::Option::is_none")]
11    pub complete_ip: core::option::Option<String>,
12    ///The user agent used when completing the AA flow.
13    #[serde(skip_serializing_if = "core::option::Option::is_none")]
14    pub complete_ua: core::option::Option<String>,
15    ///The date and time of this write operation.
16    pub created_at: crate::types::string::Datetime,
17    ///The email used for AA.
18    #[serde(skip_serializing_if = "core::option::Option::is_none")]
19    pub email: core::option::Option<String>,
20    ///The IP address used when initiating the AA flow.
21    #[serde(skip_serializing_if = "core::option::Option::is_none")]
22    pub init_ip: core::option::Option<String>,
23    ///The user agent used when initiating the AA flow.
24    #[serde(skip_serializing_if = "core::option::Option::is_none")]
25    pub init_ua: core::option::Option<String>,
26    ///The status of the age assurance process.
27    pub status: String,
28}
29pub type AgeAssuranceEvent = crate::types::Object<AgeAssuranceEventData>;
30///The computed state of the age assurance process, returned to the user in question on certain authenticated requests.
31#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
32#[serde(rename_all = "camelCase")]
33pub struct AgeAssuranceStateData {
34    ///The timestamp when this state was last updated.
35    #[serde(skip_serializing_if = "core::option::Option::is_none")]
36    pub last_initiated_at: core::option::Option<crate::types::string::Datetime>,
37    ///The status of the age assurance process.
38    pub status: String,
39}
40pub type AgeAssuranceState = crate::types::Object<AgeAssuranceStateData>;
41#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
42#[serde(rename_all = "camelCase")]
43pub struct SkeletonSearchActorData {
44    pub did: crate::types::string::Did,
45}
46pub type SkeletonSearchActor = crate::types::Object<SkeletonSearchActorData>;
47#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
48#[serde(rename_all = "camelCase")]
49pub struct SkeletonSearchPostData {
50    pub uri: String,
51}
52pub type SkeletonSearchPost = crate::types::Object<SkeletonSearchPostData>;
53#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
54#[serde(rename_all = "camelCase")]
55pub struct SkeletonSearchStarterPackData {
56    pub uri: String,
57}
58pub type SkeletonSearchStarterPack = crate::types::Object<SkeletonSearchStarterPackData>;
59#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
60#[serde(rename_all = "camelCase")]
61pub struct SkeletonTrendData {
62    #[serde(skip_serializing_if = "core::option::Option::is_none")]
63    pub category: core::option::Option<String>,
64    pub dids: Vec<crate::types::string::Did>,
65    pub display_name: String,
66    pub link: String,
67    pub post_count: i64,
68    pub started_at: crate::types::string::Datetime,
69    #[serde(skip_serializing_if = "core::option::Option::is_none")]
70    pub status: core::option::Option<String>,
71    pub topic: String,
72}
73pub type SkeletonTrend = crate::types::Object<SkeletonTrendData>;
74#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
75#[serde(rename_all = "camelCase")]
76pub struct ThreadItemBlockedData {
77    pub author: crate::app::bsky::feed::defs::BlockedAuthor,
78}
79pub type ThreadItemBlocked = crate::types::Object<ThreadItemBlockedData>;
80#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
81#[serde(rename_all = "camelCase")]
82pub struct ThreadItemNoUnauthenticatedData {}
83pub type ThreadItemNoUnauthenticated = crate::types::Object<ThreadItemNoUnauthenticatedData>;
84#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
85#[serde(rename_all = "camelCase")]
86pub struct ThreadItemNotFoundData {}
87pub type ThreadItemNotFound = crate::types::Object<ThreadItemNotFoundData>;
88#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
89#[serde(rename_all = "camelCase")]
90pub struct ThreadItemPostData {
91    ///The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.
92    pub hidden_by_threadgate: bool,
93    ///This post has more parents that were not present in the response. This is just a boolean, without the number of parents.
94    pub more_parents: bool,
95    ///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.
96    pub more_replies: i64,
97    ///This is by an account muted by the viewer requesting it.
98    pub muted_by_viewer: bool,
99    ///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.
100    pub op_thread: bool,
101    pub post: crate::app::bsky::feed::defs::PostView,
102}
103pub type ThreadItemPost = crate::types::Object<ThreadItemPostData>;
104#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
105#[serde(rename_all = "camelCase")]
106pub struct TrendViewData {
107    pub actors: Vec<crate::app::bsky::actor::defs::ProfileViewBasic>,
108    #[serde(skip_serializing_if = "core::option::Option::is_none")]
109    pub category: core::option::Option<String>,
110    pub display_name: String,
111    pub link: String,
112    pub post_count: i64,
113    pub started_at: crate::types::string::Datetime,
114    #[serde(skip_serializing_if = "core::option::Option::is_none")]
115    pub status: core::option::Option<String>,
116    pub topic: String,
117}
118pub type TrendView = crate::types::Object<TrendViewData>;
119#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
120#[serde(rename_all = "camelCase")]
121pub struct TrendingTopicData {
122    #[serde(skip_serializing_if = "core::option::Option::is_none")]
123    pub description: core::option::Option<String>,
124    #[serde(skip_serializing_if = "core::option::Option::is_none")]
125    pub display_name: core::option::Option<String>,
126    pub link: String,
127    pub topic: String,
128}
129pub type TrendingTopic = crate::types::Object<TrendingTopicData>;