{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Nagi の投稿（botたんの投稿を含む）や、投稿に付いたリアクションを運営に通報する、またはフィードバックを送る。内容は運営の Discord にだけ届き、通報された側には知らされない。",
      "errors": [
        {
          "name": "AuthRequired"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "description": "対象が無い、または通報者から見えない。",
          "name": "NotFound"
        },
        {
          "description": "短時間に送りすぎた。",
          "name": "RateLimited"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "comment": {
              "maxGraphemes": 1000,
              "maxLength": 10000,
              "type": "string"
            },
            "reason": {
              "knownValues": [
                "spam",
                "harassment",
                "sensitive",
                "botResponse",
                "other"
              ],
              "type": "string"
            },
            "subject": {
              "properties": {
                "reactor": {
                  "description": "付けると、この投稿にこの人が付けたリアクションを通報する。",
                  "format": "did",
                  "type": "string"
                },
                "uri": {
                  "description": "通報する com.suibari.nagi.post。reactor を付けたときは、リアクションが付いた投稿。",
                  "format": "at-uri",
                  "type": "string"
                }
              },
              "required": [
                "uri"
              ],
              "type": "object"
            }
          },
          "required": [
            "subject",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.suibari.nagi.createReport",
  "lexicon": 1
}
