tools.ozone.moderation.emitEvent
Take a moderation action on an actor.
- class atproto_client.models.tools.ozone.moderation.emit_event.Data
Bases:
DataModelBaseInput 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
$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>
- 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
$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.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:
ModelBaseDefinition model for
tools.ozone.moderation.emitEvent. Target specific reports when emitting a moderation event.