tools.ozone.report.createActivity
Register an activity on a report. For state-change activity types, validates the transition and updates report.status atomically.
- class atproto_client.models.tools.ozone.report.create_activity.Data
Bases:
DataModelBaseInput data model for
tools.ozone.report.createActivity.- field activity: models.ToolsOzoneReportDefs.QueueActivity | models.ToolsOzoneReportDefs.AssignmentActivity | models.ToolsOzoneReportDefs.EscalationActivity | models.ToolsOzoneReportDefs.CloseActivity | models.ToolsOzoneReportDefs.ReopenActivity | models.ToolsOzoneReportDefs.NoteActivity | DotDict [Required]
The type of activity to record.
- Constraints:
__module__ = atproto_client.models.unknown_union
__firstlineno__ = 17
__doc__ = Annotation for open ref unions: an unrecognized
$typefalls back toDotDict. Applied tot.Union[<known members>, 'dot_dict.DotDictType']. Members are discriminated bypy_typeas usual, so a known type that fails validation still raises. Only a$typethat matches no member, or a missing one, degrades to aDotDict.__get_pydantic_core_schema__ = <bound method UnknownUnionFallback.__get_pydantic_core_schema__ of <class ‘atproto_client.models.unknown_union.UnknownUnionFallback’>>
__static_attributes__ = ()
__dict__ = {‘__module__’: ‘atproto_client.models.unknown_union’, ‘__firstlineno__’: 17, ‘__doc__’: “Annotation for open ref unions: an unrecognized
$typefalls back toDotDict.nnApplied tot.Union[<known members>, 'dot_dict.DotDictType']. Members are discriminated byn``py_type`` as usual, so a known type that fails validation still raises. Only a$typethatnmatches no member, or a missing one, degrades to aDotDict.n”, ‘__get_pydantic_core_schema__’: <classmethod(<function UnknownUnionFallback.__get_pydantic_core_schema__ at 0x786e5ef30c20>)>, ‘__static_attributes__’: (), ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownUnionFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>}__weakref__ = <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>
- class atproto_client.models.tools.ozone.report.create_activity.DataDict
Bases:
TypedDict- activity: Annotated[QueueActivity | AssignmentActivity | EscalationActivity | CloseActivity | ReopenActivity | NoteActivity | Annotated[DotDict, _DotDictPydanticAnnotation], UnknownUnionFallback]
The type of activity to record.
- event_id: NotRequired[int | None]
ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.
- internal_note: NotRequired[str | None]
Optional moderator-only note. Not visible to reporters.
- is_automated: NotRequired[bool | None]
Set true when this activity is triggered by an automated process. Defaults to false.
- public_note: NotRequired[str | None]
Optional public-facing note, potentially visible to the reporter.
- report_id: NotRequired[int | None]
ID of the report to record activity on. Exactly one of reportId or eventId must be provided.
- class atproto_client.models.tools.ozone.report.create_activity.Response
Bases:
ResponseModelBaseOutput data model for
tools.ozone.report.createActivity.- field activity: models.ToolsOzoneReportDefs.ReportActivityView [Required]
Activity.