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: DataModelBase

Input 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 $type falls back to DotDict. Applied to t.Union[<known members>, 'dot_dict.DotDictType']. Members are discriminated by py_type as usual, so a known type that fails validation still raises. Only a $type that matches no member, or a missing one, degrades to a DotDict.

  • __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 $type falls back to DotDict.nnApplied to t.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 $type thatnmatches no member, or a missing one, degrades to a DotDict.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>

field event_id: int | None = None
field internal_note: str | None = None

Optional moderator-only note. Not visible to reporters.

field is_automated: bool | None = False
field public_note: str | None = None

Optional public-facing note, potentially visible to the reporter.

field report_id: int | None = None
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: ResponseModelBase

Output data model for tools.ozone.report.createActivity.

field activity: models.ToolsOzoneReportDefs.ReportActivityView [Required]

Activity.