{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Resolves one Community report by removing its post or dismissing the report. Requires authenticated moderator authorization.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "ReportNotFound"
        },
        {
          "name": "InsufficientRole"
        },
        {
          "name": "InvalidState"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "action": {
              "knownValues": [
                "remove",
                "dismiss"
              ],
              "type": "string"
            },
            "note": {
              "maxLength": 2000,
              "type": "string"
            },
            "report": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "report",
            "action"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "report": {
              "ref": "com.getorbyt.community.defs#reportView",
              "type": "ref"
            }
          },
          "required": [
            "report"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.getorbyt.community.resolveReport",
  "lexicon": 1
}
