com.atproto.admin.get_moderation_reports#

pydantic model atproto.xrpc_client.models.com.atproto.admin.get_moderation_reports.Params#

Bases: ParamsModelBase

Parameters model for com.atproto.admin.getModerationReports.

Show JSON schema
{
   "title": "Params",
   "description": "Parameters model for :obj:`com.atproto.admin.getModerationReports`.",
   "type": "object",
   "properties": {
      "actionType": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Actiontype"
      },
      "actionedBy": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Actionedby"
      },
      "cursor": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      },
      "ignoreSubjects": {
         "anyOf": [
            {
               "items": {
                  "type": "string"
               },
               "type": "array"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Ignoresubjects"
      },
      "limit": {
         "anyOf": [
            {
               "maximum": 100,
               "minimum": 1,
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": 50,
         "title": "Limit"
      },
      "reporters": {
         "anyOf": [
            {
               "items": {
                  "type": "string"
               },
               "type": "array"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Reporters"
      },
      "resolved": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Resolved"
      },
      "reverse": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Reverse"
      },
      "subject": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Subject"
      }
   },
   "additionalProperties": false
}

Fields:
field action_type: Optional[str] = None (alias 'actionType')#

Action type.

field actioned_by: Optional[str] = None (alias 'actionedBy')#

Get all reports that were actioned by a specific moderator.

field cursor: Optional[str] = None#

Cursor.

field ignore_subjects: Optional[List[str]] = None (alias 'ignoreSubjects')#

Ignore subjects.

field limit: Optional[int] = 50#

Limit.

Constraints:
  • ge = 1

  • le = 100

field reporters: Optional[List[str]] = None#

Filter reports made by one or more DIDs.

field resolved: Optional[bool] = None#

Resolved.

field reverse: Optional[bool] = None#

Reverse the order of the returned records? when true, returns reports in chronological order.

field subject: Optional[str] = None#

Subject.

class atproto.xrpc_client.models.com.atproto.admin.get_moderation_reports.ParamsDict#

Bases: TypedDict

action_type: typing_extensions.NotRequired[Optional[str]]#

Action type.

actioned_by: typing_extensions.NotRequired[Optional[str]]#

Get all reports that were actioned by a specific moderator.

cursor: typing_extensions.NotRequired[Optional[str]]#

Cursor.

ignore_subjects: typing_extensions.NotRequired[Optional[List[str]]]#

Ignore subjects.

limit: typing_extensions.NotRequired[Optional[int]]#

Limit.

reporters: typing_extensions.NotRequired[Optional[List[str]]]#

Filter reports made by one or more DIDs.

resolved: typing_extensions.NotRequired[Optional[bool]]#

Resolved.

reverse: typing_extensions.NotRequired[Optional[bool]]#

Reverse the order of the returned records? when true, returns reports in chronological order.

subject: typing_extensions.NotRequired[Optional[str]]#

Subject.

pydantic model atproto.xrpc_client.models.com.atproto.admin.get_moderation_reports.Response#

Bases: ResponseModelBase

Output data model for com.atproto.admin.getModerationReports.

Show JSON schema
{
   "title": "Response",
   "description": "Output data model for :obj:`com.atproto.admin.getModerationReports`.",
   "type": "object",
   "properties": {
      "reports": {
         "items": {
            "$ref": "#/$defs/ReportView"
         },
         "title": "Reports",
         "type": "array"
      },
      "cursor": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      }
   },
   "$defs": {
      "Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.repo.strongRef`.",
         "properties": {
            "cid": {
               "title": "Cid",
               "type": "string"
            },
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.repo.strongRef",
               "default": "com.atproto.repo.strongRef",
               "title": "$Type"
            }
         },
         "required": [
            "cid",
            "uri"
         ],
         "title": "Main",
         "type": "object"
      },
      "RepoRef": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "did": {
               "title": "Did",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.admin.defs#repoRef",
               "default": "com.atproto.admin.defs#repoRef",
               "title": "$Type"
            }
         },
         "required": [
            "did"
         ],
         "title": "RepoRef",
         "type": "object"
      },
      "ReportView": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "id": {
               "title": "Id",
               "type": "integer"
            },
            "reasonType": {
               "anyOf": [
                  {
                     "const": "com.atproto.moderation.defs#reasonSpam"
                  },
                  {
                     "const": "com.atproto.moderation.defs#reasonViolation"
                  },
                  {
                     "const": "com.atproto.moderation.defs#reasonMisleading"
                  },
                  {
                     "const": "com.atproto.moderation.defs#reasonSexual"
                  },
                  {
                     "const": "com.atproto.moderation.defs#reasonRude"
                  },
                  {
                     "const": "com.atproto.moderation.defs#reasonOther"
                  }
               ],
               "title": "Reasontype"
            },
            "reportedBy": {
               "title": "Reportedby",
               "type": "string"
            },
            "resolvedByActionIds": {
               "items": {
                  "type": "integer"
               },
               "title": "Resolvedbyactionids",
               "type": "array"
            },
            "subject": {
               "discriminator": {
                  "mapping": {
                     "com.atproto.admin.defs#repoRef": "#/$defs/RepoRef",
                     "com.atproto.repo.strongRef": "#/$defs/Main"
                  },
                  "propertyName": "$type"
               },
               "oneOf": [
                  {
                     "$ref": "#/$defs/RepoRef"
                  },
                  {
                     "$ref": "#/$defs/Main"
                  }
               ],
               "title": "Subject"
            },
            "reason": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Reason"
            },
            "subjectRepoHandle": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Subjectrepohandle"
            },
            "$type": {
               "const": "com.atproto.admin.defs#reportView",
               "default": "com.atproto.admin.defs#reportView",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "id",
            "reasonType",
            "reportedBy",
            "resolvedByActionIds",
            "subject"
         ],
         "title": "ReportView",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "reports"
   ]
}

Fields:
field cursor: Optional[str] = None#

Cursor.

field reports: List[models.ComAtprotoAdminDefs.ReportView] [Required]#

Reports.