com.atproto.admin.get_moderation_actions#

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

Bases: ParamsModelBase

Parameters model for com.atproto.admin.getModerationActions.

Show JSON schema
{
   "title": "Params",
   "description": "Parameters model for :obj:`com.atproto.admin.getModerationActions`.",
   "type": "object",
   "properties": {
      "cursor": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      },
      "limit": {
         "anyOf": [
            {
               "maximum": 100,
               "minimum": 1,
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": 50,
         "title": "Limit"
      },
      "subject": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Subject"
      }
   },
   "additionalProperties": false
}

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

Cursor.

field limit: Optional[int] = 50#

Limit.

Constraints:
  • ge = 1

  • le = 100

field subject: Optional[str] = None#

Subject.

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

Bases: TypedDict

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

Cursor.

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

Limit.

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

Subject.

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

Bases: ResponseModelBase

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

Show JSON schema
{
   "title": "Response",
   "description": "Output data model for :obj:`com.atproto.admin.getModerationActions`.",
   "type": "object",
   "properties": {
      "actions": {
         "items": {
            "$ref": "#/$defs/ActionView"
         },
         "title": "Actions",
         "type": "array"
      },
      "cursor": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      }
   },
   "$defs": {
      "ActionReversal": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "createdBy": {
               "title": "Createdby",
               "type": "string"
            },
            "reason": {
               "title": "Reason",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.admin.defs#actionReversal",
               "default": "com.atproto.admin.defs#actionReversal",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "createdBy",
            "reason"
         ],
         "title": "ActionReversal",
         "type": "object"
      },
      "ActionView": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "action": {
               "anyOf": [
                  {
                     "const": "com.atproto.admin.defs#takedown"
                  },
                  {
                     "const": "com.atproto.admin.defs#flag"
                  },
                  {
                     "const": "com.atproto.admin.defs#acknowledge"
                  },
                  {
                     "const": "com.atproto.admin.defs#escalate"
                  }
               ],
               "title": "Action"
            },
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "createdBy": {
               "title": "Createdby",
               "type": "string"
            },
            "id": {
               "title": "Id",
               "type": "integer"
            },
            "reason": {
               "title": "Reason",
               "type": "string"
            },
            "resolvedReportIds": {
               "items": {
                  "type": "integer"
               },
               "title": "Resolvedreportids",
               "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"
            },
            "subjectBlobCids": {
               "items": {
                  "type": "string"
               },
               "title": "Subjectblobcids",
               "type": "array"
            },
            "createLabelVals": {
               "anyOf": [
                  {
                     "items": {
                        "type": "string"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Createlabelvals"
            },
            "durationInHours": {
               "anyOf": [
                  {
                     "type": "integer"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Durationinhours"
            },
            "negateLabelVals": {
               "anyOf": [
                  {
                     "items": {
                        "type": "string"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Negatelabelvals"
            },
            "reversal": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/ActionReversal"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "com.atproto.admin.defs#actionView",
               "default": "com.atproto.admin.defs#actionView",
               "title": "$Type"
            }
         },
         "required": [
            "action",
            "createdAt",
            "createdBy",
            "id",
            "reason",
            "resolvedReportIds",
            "subject",
            "subjectBlobCids"
         ],
         "title": "ActionView",
         "type": "object"
      },
      "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"
      }
   },
   "additionalProperties": false,
   "required": [
      "actions"
   ]
}

Fields:
field actions: List[models.ComAtprotoAdminDefs.ActionView] [Required]#

Actions.

field cursor: Optional[str] = None#

Cursor.