Skip to main content

atrium_api/chat/bsky/convo/
get_unread_counts.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `chat.bsky.convo.getUnreadCounts` namespace.
3pub const NSID: &str = "chat.bsky.convo.getUnreadCounts";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct ParametersData {
7    ///When false, group convos are excluded from the counts.
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub include_group_chats: core::option::Option<bool>,
10}
11pub type Parameters = crate::types::Object<ParametersData>;
12#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
13#[serde(rename_all = "camelCase")]
14pub struct OutputData {
15    ///Number of unread, unlocked accepted convos. Counts convos with unread messages and unread join requests. Capped at 100, where 100 means more than 99.
16    pub unread_accepted_convos: i64,
17    ///Number of unread, unlocked request convos. Includes convos with unread messages, but not with unread join request, since only the owner of a group has join requests to read, and the group would necessarily be accepted. Capped at 100, where 100 means more than 99.
18    pub unread_request_convos: i64,
19}
20pub type Output = crate::types::Object<OutputData>;
21#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
22#[serde(tag = "error", content = "message")]
23pub enum Error {}
24impl std::fmt::Display for Error {
25    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
26        Ok(())
27    }
28}