tools.ozone.inbox.defs
Shared type definitions.
- class atproto_client.models.tools.ozone.inbox.defs.SubjectView
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs. A subject belonging to the viewer that has moderation actions against it.- field appeal: models.ToolsOzoneInboxDefs.AppealView | None = None
Appeal.
- field created_at: DateTime [Required]
Created at.
- field enforcement: models.ToolsOzoneInboxDefs.EnforcementView [Required]
Enforcement.
- field is_read: bool [Required]
Is read.
- 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
$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 0x7bc6f7b3ccc0>)>, ā__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:
ModelBaseDefinition model for
tools.ozone.inbox.defs. The current enforcement state of a subject.
- class atproto_client.models.tools.ozone.inbox.defs.AppealView
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs. The state of the viewerās appeal against the actions on a subject.
- class atproto_client.models.tools.ozone.inbox.defs.ActionView
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs. A single moderation action taken against a subject.- field created_at: DateTime [Required]
Created at.
- field id: int [Required]
Action ID (moderation event ID).
- field policies: List[models.ToolsOzoneInboxDefs.PolicyView] | None = None
- field type: str [Required]
Public action type.
- class atproto_client.models.tools.ozone.inbox.defs.PolicyView
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs.- field display_name: str [Required]
Display name.
- field key: str [Required]
Key.
- field link: Uri [Required]
Link.
- class atproto_client.models.tools.ozone.inbox.defs.SubjectViewDetail
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs. A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page.- field actions: List[models.ToolsOzoneInboxDefs.ActionView] [Required]
A page of action history, most recent first. Reversal timestamps include changes outside this page.
- Constraints:
max_length = 100
- field appeal: models.ToolsOzoneInboxDefs.AppealView | None = None
Appeal.
- field created_at: DateTime [Required]
Created at.
- field cursor: str | None = None
Cursor for the next page of action history. Omitted when no older actions remain.
- field enforcement: models.ToolsOzoneInboxDefs.EnforcementView [Required]
Enforcement.
- field is_read: bool [Required]
Is read.
- field record: UnknownType | None = None
- field reports: models.ToolsOzoneInboxDefs.ReportsSummary | None = None
- field src: Did [Required]
Src.
- 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 0x7bc6f7b3ccc0>)>, ā__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.ReportsSummary
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs. Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities.- field first_reported_on: DateTime [Required]
Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful.
- field last_reported_on: DateTime [Required]
Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful.
- class atproto_client.models.tools.ozone.inbox.defs.Notification
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs.- field created_at: DateTime [Required]
Created at.
- field id: int [Required]
Id.
- field is_read: bool [Required]
Is read.
- field reason: Literal['reportResolved', 'reportReopened', 'actionTaken', 'actionReversed', 'appealResolved', 'standingChanged'] | str [Required]
Reason.
- field target: models.ToolsOzoneInboxDefs.ReportRef | models.ToolsOzoneInboxDefs.SubjectRef | models.ToolsOzoneInboxDefs.StandingRef | DotDict [Required]
Target.
- 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 0x7bc6f7b3ccc0>)>, ā__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.inbox.defs.NotificationPreferences
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs.- field push: bool [Required]
Push.
- class atproto_client.models.tools.ozone.inbox.defs.ReportRef
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs. Reference to a report by its report table ID, as used by getReport and Ozoneās report detail page.- field report_id: int [Required]
Report id.
- field subject: models.ComAtprotoAdminDefs.RepoRef | models.ComAtprotoRepoStrongRef.Main | DotDict | None = None
Subject.
- class atproto_client.models.tools.ozone.inbox.defs.SubjectRef
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs.- 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 0x7bc6f7b3ccc0>)>, ā__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.inbox.defs.StandingRef
Bases:
ModelBaseDefinition model for
tools.ozone.inbox.defs.