Skip to main content

atrium_api/tools/ozone/report/
query_reports.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `tools.ozone.report.queryReports` namespace.
3pub const NSID: &str = "tools.ozone.report.queryReports";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct ParametersData {
7    ///Filter by the DID of the moderator permanently assigned to the report.
8    #[serde(skip_serializing_if = "core::option::Option::is_none")]
9    pub assigned_to: core::option::Option<crate::types::string::Did>,
10    ///If specified, reports where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
11    #[serde(skip_serializing_if = "core::option::Option::is_none")]
12    pub collections: core::option::Option<Vec<crate::types::string::Nsid>>,
13    #[serde(skip_serializing_if = "core::option::Option::is_none")]
14    pub cursor: core::option::Option<String>,
15    ///Filter to reports where the subject is this DID or any record owned by this DID. Unlike `subject` (which scopes to a specific account or record), this returns all reports tied to the DID across both account-level and record-level subjects.
16    #[serde(skip_serializing_if = "core::option::Option::is_none")]
17    pub did: core::option::Option<crate::types::string::Did>,
18    ///Filter by muted status. true returns only muted reports, false returns only unmuted reports. Defaults to false.
19    #[serde(skip_serializing_if = "core::option::Option::is_none")]
20    pub is_muted: core::option::Option<bool>,
21    #[serde(skip_serializing_if = "core::option::Option::is_none")]
22    pub limit: core::option::Option<crate::types::LimitedNonZeroU8<100u8>>,
23    ///Filter by queue ID. Use -1 for unassigned reports.
24    #[serde(skip_serializing_if = "core::option::Option::is_none")]
25    pub queue_id: core::option::Option<i64>,
26    ///Filter by report types (fully qualified string in the format of com.atproto.moderation.defs#reason<name>).
27    #[serde(skip_serializing_if = "core::option::Option::is_none")]
28    pub report_types: core::option::Option<Vec<String>>,
29    ///Retrieve reports created after a given timestamp
30    #[serde(skip_serializing_if = "core::option::Option::is_none")]
31    pub reported_after: core::option::Option<crate::types::string::Datetime>,
32    ///Retrieve reports created before a given timestamp
33    #[serde(skip_serializing_if = "core::option::Option::is_none")]
34    pub reported_before: core::option::Option<crate::types::string::Datetime>,
35    #[serde(skip_serializing_if = "core::option::Option::is_none")]
36    pub sort_direction: core::option::Option<String>,
37    #[serde(skip_serializing_if = "core::option::Option::is_none")]
38    pub sort_field: core::option::Option<String>,
39    ///Filter by report status.
40    pub status: String,
41    ///Filter by subject DID or AT-URI.
42    #[serde(skip_serializing_if = "core::option::Option::is_none")]
43    pub subject: core::option::Option<String>,
44    ///If specified, reports of the given subject type will be returned.
45    #[serde(skip_serializing_if = "core::option::Option::is_none")]
46    pub subject_type: core::option::Option<String>,
47}
48pub type Parameters = crate::types::Object<ParametersData>;
49#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
50#[serde(rename_all = "camelCase")]
51pub struct OutputData {
52    #[serde(skip_serializing_if = "core::option::Option::is_none")]
53    pub cursor: core::option::Option<String>,
54    pub reports: Vec<crate::tools::ozone::report::defs::ReportView>,
55}
56pub type Output = crate::types::Object<OutputData>;
57#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
58#[serde(tag = "error", content = "message")]
59pub enum Error {}
60impl std::fmt::Display for Error {
61    fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
62        Ok(())
63    }
64}