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 0x7be1869d5bc0>)>, ‘__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 0x7be1869d5bc0>)>, ‘__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 0x7be1869d5bc0>)>, ‘__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. Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled.- field account: bool [Required]
Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels.
- field labels: bool [Required]
Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).
- field reports: bool [Required]
Notify about outcomes of reports filed by the account (reportResolved and reportReopened).
- 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 0x7be1869d5bc0>)>, ‘__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.