tools.ozone.moderation.scheduleAction

Schedule a moderation action to be executed at a future time

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

Bases: DataModelBase

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

field action: models.ToolsOzoneModerationScheduleAction.Takedown | DotDict [Required]

Action.

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 created_by: Did [Required]

Created by.

field mod_tool: models.ToolsOzoneModerationDefs.ModTool | None = None
field scheduling: models.ToolsOzoneModerationScheduleAction.SchedulingConfig [Required]

Scheduling.

field subjects: List[Did] [Required]

Array of DID subjects to schedule the action for.

Constraints:
  • max_length = 100

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

Bases: TypedDict

action: Annotated[Takedown | Annotated[DotDict, _DotDictPydanticAnnotation], UnknownUnionFallback]

Action.

created_by: Did

Created by.

scheduling: SchedulingConfig

Scheduling.

subjects: List[Did]

Array of DID subjects to schedule the action for.

mod_tool: NotRequired[ModTool | None]

This will be propagated to the moderation event when it is applied.

class atproto_client.models.tools.ozone.moderation.schedule_action.Takedown

Bases: ModelBase

Definition model for tools.ozone.moderation.scheduleAction. Schedule a takedown action.

field acknowledge_account_subjects: bool | None = None
field comment: str | None = None

Comment.

field duration_in_hours: int | None = None
field email_content: str | None = None

Email content to be sent to the user upon takedown.

field email_subject: str | None = None

Subject of the email to be sent to the user upon takedown.

field policies: List[str] | None = None
Constraints:
  • max_length = 5

field severity_level: str | None = None

Severity level of the violation (e.g., ‘sev-0’, ‘sev-1’, ‘sev-2’, etc.).

field strike_count: int | None = None

Number of strikes to assign to the user when takedown is applied.

field strike_expires_at: DateTime | None = None
class atproto_client.models.tools.ozone.moderation.schedule_action.SchedulingConfig

Bases: ModelBase

Definition model for tools.ozone.moderation.scheduleAction. Configuration for when the action should be executed.

field execute_after: DateTime | None = None
field execute_at: DateTime | None = None

Exact time to execute the action.

field execute_until: DateTime | None = None
class atproto_client.models.tools.ozone.moderation.schedule_action.ScheduledActionResults

Bases: ModelBase

Definition model for tools.ozone.moderation.scheduleAction.

field failed: List[models.ToolsOzoneModerationScheduleAction.FailedScheduling] [Required]

Failed.

field succeeded: List[Did] [Required]

Succeeded.

class atproto_client.models.tools.ozone.moderation.schedule_action.FailedScheduling

Bases: ModelBase

Definition model for tools.ozone.moderation.scheduleAction.

field error: str [Required]

Error.

field error_code: str | None = None

Error code.

field subject: Did [Required]

Subject.