tools.ozone.report.closeReports
Close eligible reports on a subject matching the given criteria. Assigned and escalated reports are excluded. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.
- class atproto_client.models.tools.ozone.report.close_reports.Data
Bases:
DataModelBaseInput data model for
tools.ozone.report.closeReports.- field meta: UnknownInputType | None = None
- field subject: Uri [Required]
Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.
- class atproto_client.models.tools.ozone.report.close_reports.DataDict
Bases:
TypedDict- subject: Uri
Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.
- excluded_report_types: NotRequired[List[str] | None]
Reports of these types (fully qualified reason NSIDs) are excluded from closure and left unchanged. When omitted or empty, no report types are excluded.
- include_all_owned: NotRequired[bool | None]
If true, also close reports on all subjects owned by the account, including records, messages, and conversations. Only valid when subject is an account DID.
- internal_note: NotRequired[str | None]
Optional moderator-only note recorded on each close activity. Not visible to reporters.
- is_automated: NotRequired[bool | None]
Set true when this action is triggered by an automated process. Defaults to false.
- meta: NotRequired[Annotated[Any, UnknownRecordFallback] | None]
Optional metadata for the report activities. Lifecycle and resolution fields are controlled by the service.
- report_types: NotRequired[List[str] | None]
If nonempty, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted or empty, all eligible reports in the requested subject scope are targeted, except excludedReportTypes. Assigned and escalated reports are always excluded.
- class atproto_client.models.tools.ozone.report.close_reports.Response
Bases:
ResponseModelBaseOutput data model for
tools.ozone.report.closeReports.- field closed_count: int [Required]
Number of reports that were transitioned to closed.