com.atproto.moderation.createReport
Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.
- class atproto_client.models.com.atproto.moderation.create_report.Data
Bases:
DataModelBaseInput data model for
com.atproto.moderation.createReport.- field mod_tool: models.ComAtprotoModerationCreateReport.ModTool | None = None
Mod tool.
- field reason_type: models.ComAtprotoModerationDefs.ReasonType [Required]
Indicates the broad category of violation the report is for.
- 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.com.atproto.moderation.create_report.DataDict
Bases:
TypedDict- reason_type: Literal['com.atproto.moderation.defs#reasonSpam'] | Literal['com.atproto.moderation.defs#reasonViolation'] | Literal['com.atproto.moderation.defs#reasonMisleading'] | Literal['com.atproto.moderation.defs#reasonSexual'] | Literal['com.atproto.moderation.defs#reasonRude'] | Literal['com.atproto.moderation.defs#reasonOther'] | Literal['com.atproto.moderation.defs#reasonAppeal'] | Literal['tools.ozone.report.defs#reasonAppeal'] | Literal['tools.ozone.report.defs#reasonOther'] | Literal['tools.ozone.report.defs#reasonViolenceAnimal'] | Literal['tools.ozone.report.defs#reasonViolenceThreats'] | Literal['tools.ozone.report.defs#reasonViolenceGraphicContent'] | Literal['tools.ozone.report.defs#reasonViolenceGlorification'] | Literal['tools.ozone.report.defs#reasonViolenceExtremistContent'] | Literal['tools.ozone.report.defs#reasonViolenceTrafficking'] | Literal['tools.ozone.report.defs#reasonViolenceOther'] | Literal['tools.ozone.report.defs#reasonSexualAbuseContent'] | Literal['tools.ozone.report.defs#reasonSexualNCII'] | Literal['tools.ozone.report.defs#reasonSexualDeepfake'] | Literal['tools.ozone.report.defs#reasonSexualAnimal'] | Literal['tools.ozone.report.defs#reasonSexualUnlabeled'] | Literal['tools.ozone.report.defs#reasonSexualOther'] | Literal['tools.ozone.report.defs#reasonChildSafetyCSAM'] | Literal['tools.ozone.report.defs#reasonChildSafetyGroom'] | Literal['tools.ozone.report.defs#reasonChildSafetyPrivacy'] | Literal['tools.ozone.report.defs#reasonChildSafetyHarassment'] | Literal['tools.ozone.report.defs#reasonChildSafetyOther'] | Literal['tools.ozone.report.defs#reasonHarassmentTroll'] | Literal['tools.ozone.report.defs#reasonHarassmentTargeted'] | Literal['tools.ozone.report.defs#reasonHarassmentHateSpeech'] | Literal['tools.ozone.report.defs#reasonHarassmentDoxxing'] | Literal['tools.ozone.report.defs#reasonHarassmentOther'] | Literal['tools.ozone.report.defs#reasonMisleadingBot'] | Literal['tools.ozone.report.defs#reasonMisleadingImpersonation'] | Literal['tools.ozone.report.defs#reasonMisleadingSpam'] | Literal['tools.ozone.report.defs#reasonMisleadingScam'] | Literal['tools.ozone.report.defs#reasonMisleadingElections'] | Literal['tools.ozone.report.defs#reasonMisleadingOther'] | Literal['tools.ozone.report.defs#reasonRuleSiteSecurity'] | Literal['tools.ozone.report.defs#reasonRuleProhibitedSales'] | Literal['tools.ozone.report.defs#reasonRuleBanEvasion'] | Literal['tools.ozone.report.defs#reasonRuleOther'] | Literal['tools.ozone.report.defs#reasonSelfHarmContent'] | Literal['tools.ozone.report.defs#reasonSelfHarmED'] | Literal['tools.ozone.report.defs#reasonSelfHarmStunts'] | Literal['tools.ozone.report.defs#reasonSelfHarmSubstances'] | Literal['tools.ozone.report.defs#reasonSelfHarmOther'] | str
Indicates the broad category of violation the report is for.
- subject: Annotated[RepoRef | Main | Annotated[DotDict, _DotDictPydanticAnnotation], UnknownUnionFallback]
Subject.
- mod_tool: NotRequired[ModTool | None]
Mod tool.
- reason: NotRequired[str | None]
Additional context about the content and violation.
- class atproto_client.models.com.atproto.moderation.create_report.Response
Bases:
ResponseModelBaseOutput data model for
com.atproto.moderation.createReport.- field created_at: DateTime [Required]
Created at.
- field id: int [Required]
Id.
- field reason_type: models.ComAtprotoModerationDefs.ReasonType [Required]
Reason type.
- field reported_by: Did [Required]
Reported by.
- 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.com.atproto.moderation.create_report.ModTool
Bases:
ModelBaseDefinition model for
com.atproto.moderation.createReport. Moderation tool information for tracing the source of the action.- field meta: UnknownType | None = None
Additional arbitrary metadata about the source.
- field name: str [Required]
Name/identifier of the source (e.g., ābsky-app/androidā, ābsky-web/chromeā).