{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The reports a moderation service was sent (com.atproto.moderation.createReport), newest first. For its operators: it takes a service token for this method from one of the accounts it names as its operators, or the session cookie of one logged in to its pages.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "reports": {
              "items": {
                "ref": "#report",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "reports"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "A report id: those before it.",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 500,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "report": {
      "description": "As com.atproto.moderation.createReport answered it.",
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "reason": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "reasonType": {
          "ref": "com.atproto.moderation.defs#reasonType",
          "type": "ref"
        },
        "reportedBy": {
          "format": "did",
          "type": "string"
        },
        "subject": {
          "refs": [
            "com.atproto.admin.defs#repoRef",
            "com.atproto.repo.strongRef"
          ],
          "type": "union"
        }
      },
      "required": [
        "id",
        "reasonType",
        "subject",
        "reportedBy",
        "createdAt"
      ],
      "type": "object"
    }
  },
  "id": "dev.knotless.listReports",
  "lexicon": 1
}
