proto-blue-api 0.2.1

AT Protocol high-level API: agent, rich text, moderation, generated types
Documentation
// Generated by atproto-codegen. Do not edit.
//! Lexicon: tools.ozone.moderation.getAccountTimeline

use serde::{Deserialize, Serialize};

/// Get timeline of all available events of an account. This includes moderation events, account history and did history.
/// XRPC Query: tools.ozone.moderation.getAccountTimeline
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Params {
    pub did: String,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Output {
    pub timeline: Vec<TimelineItem>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TimelineItem {
    pub day: String,
    pub summary: Vec<TimelineItemSummary>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TimelineItemSummary {
    pub count: i64,
    pub event_subject_type: String,
    pub event_type: String,
}