tools.ozone.inbox.defs

Shared type definitions.

class atproto_client.models.tools.ozone.inbox.defs.SubjectView

Bases: ModelBase

Definition model for tools.ozone.inbox.defs. A subject belonging to the viewer that has moderation actions against it.

field action_count: int | None = None

Action count.

field appeal: models.ToolsOzoneInboxDefs.AppealView | None = None

Appeal.

field available_actions: List[Literal['appeal'] | str] | None = None

Available actions.

field created_at: DateTime [Required]

Created at.

field enforcement: models.ToolsOzoneInboxDefs.EnforcementView [Required]

Enforcement.

field latest_action: models.ToolsOzoneInboxDefs.ActionView | None = None

Latest action.

field src: Did [Required]

DID of the moderation service that took the actions.

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 0x7185fc137060>)>, ‘__static_attributes__’: (), ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownUnionFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>}

  • __weakref__ = <attribute ‘__weakref__’ of ‘UnknownUnionFallback’ objects>

field updated_at: DateTime [Required]

Updated at.

class atproto_client.models.tools.ozone.inbox.defs.EnforcementView

Bases: ModelBase

Definition model for tools.ozone.inbox.defs. The current enforcement state of a subject.

field expires_at: DateTime | None = None

Expires at.

field labels: List[str] | None = None

Active label values on the subject, excluding negated and expired labels.

field scope: Literal['network', 'app', 'labelOnly'] | str | None = None

Scope.

field state: Literal['none', 'labeled', 'removed', 'suspended', 'takendown'] | str [Required]

State.

class atproto_client.models.tools.ozone.inbox.defs.AppealView

Bases: ModelBase

Definition model for tools.ozone.inbox.defs. The state of the viewer’s appeal against the actions on a subject.

field appealable_until: DateTime | None = None

Appealable until.

field appealed_at: DateTime | None = None

Appealed at.

field note: str | None = None
field resolved_at: DateTime | None = None

When the appeal’s report was closed.

field state: Literal['none', 'pending', 'resolved', 'superseded', 'expired'] | str [Required]

State.

class atproto_client.models.tools.ozone.inbox.defs.ActionView

Bases: ModelBase

Definition model for tools.ozone.inbox.defs. A single moderation action taken against a subject.

field created_at: DateTime [Required]

Created at.

field expires_at: DateTime | None = None

Expires at.

field id: int [Required]

Action ID (moderation event ID).

field labels: List[str] | None = None

Label values, for labelApplied/labelRemoved.

field policies: List[str] | None = None

Policies that were applied in this action.

field reversed_at: DateTime | None = None

Reversed at.

field scope: Literal['network', 'app', 'labelOnly'] | str | None = None

Scope.

field type: str [Required]

Public action type.