tools.ozone.moderation.emitEvent

Take a moderation action on an actor.

class atproto_client.models.tools.ozone.moderation.emit_event.Data

Bases: DataModelBase

Input data model for tools.ozone.moderation.emitEvent.

field created_by: Did [Required]

Created by.

field event: models.ToolsOzoneModerationDefs.ModEventTakedown | models.ToolsOzoneModerationDefs.ModEventAcknowledge | models.ToolsOzoneModerationDefs.ModEventEscalate | models.ToolsOzoneModerationDefs.ModEventComment | models.ToolsOzoneModerationDefs.ModEventLabel | models.ToolsOzoneModerationDefs.ModEventReport | models.ToolsOzoneModerationDefs.ModEventMute | models.ToolsOzoneModerationDefs.ModEventUnmute | models.ToolsOzoneModerationDefs.ModEventMuteReporter | models.ToolsOzoneModerationDefs.ModEventUnmuteReporter | models.ToolsOzoneModerationDefs.ModEventReverseTakedown | models.ToolsOzoneModerationDefs.ModEventResolveAppeal | models.ToolsOzoneModerationDefs.ModEventEmail | models.ToolsOzoneModerationDefs.ModEventDivert | models.ToolsOzoneModerationDefs.ModEventTag | models.ToolsOzoneModerationDefs.AccountEvent | models.ToolsOzoneModerationDefs.IdentityEvent | models.ToolsOzoneModerationDefs.RecordEvent | models.ToolsOzoneModerationDefs.ModEventPriorityScore | models.ToolsOzoneModerationDefs.AgeAssuranceEvent | models.ToolsOzoneModerationDefs.AgeAssuranceOverrideEvent | models.ToolsOzoneModerationDefs.AgeAssurancePurgeEvent | models.ToolsOzoneModerationDefs.RevokeAccountCredentialsEvent | models.ToolsOzoneModerationDefs.ScheduleTakedownEvent | models.ToolsOzoneModerationDefs.CancelScheduledTakedownEvent | DotDict [Required]

Event.

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 external_id: str | None = None
field mod_tool: models.ToolsOzoneModerationDefs.ModTool | None = None

Mod tool.

field report_action: models.ToolsOzoneModerationEmitEvent.ReportAction | None = None
field subject: models.ComAtprotoAdminDefs.RepoRef | models.ComAtprotoRepoStrongRef.Main | DotDict [Required]

Subject.

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 subject_blob_cids: List[Cid] | None = None

Subject blob cids.

class atproto_client.models.tools.ozone.moderation.emit_event.DataDict

Bases: TypedDict

created_by: Did

Created by.

event: Annotated[ModEventTakedown | ModEventAcknowledge | ModEventEscalate | ModEventComment | ModEventLabel | ModEventReport | ModEventMute | ModEventUnmute | ModEventMuteReporter | ModEventUnmuteReporter | ModEventReverseTakedown | ModEventResolveAppeal | ModEventEmail | ModEventDivert | ModEventTag | AccountEvent | IdentityEvent | RecordEvent | ModEventPriorityScore | AgeAssuranceEvent | AgeAssuranceOverrideEvent | AgeAssurancePurgeEvent | RevokeAccountCredentialsEvent | ScheduleTakedownEvent | CancelScheduledTakedownEvent | Annotated[DotDict, _DotDictPydanticAnnotation], UnknownUnionFallback]

Event.

subject: Annotated[RepoRef | Main | Annotated[DotDict, _DotDictPydanticAnnotation], UnknownUnionFallback]

Subject.

external_id: NotRequired[str | None]

An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject.

mod_tool: NotRequired[ModTool | None]

Mod tool.

report_action: NotRequired[ReportAction | None]

Optional report-level targeting. If provided, this event will be linked to specific reports and reporters may be notified.

subject_blob_cids: NotRequired[List[Cid] | None]

Subject blob cids.

class atproto_client.models.tools.ozone.moderation.emit_event.ReportAction

Bases: ModelBase

Definition model for tools.ozone.moderation.emitEvent. Target specific reports when emitting a moderation event.

field all: bool | None = None

Target ALL reports on the subject.

field ids: List[int] | None = None

Target specific report IDs.

field note: str | None = None

Note to send to reporter(s) when actioning their report.

field types: List[str] | None = None