{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "group": {
      "properties": {
        "id": {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        },
        "locales": {
          "items": {
            "ref": "#reasonStrings",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "id",
        "locales"
      ],
      "type": "object"
    },
    "main": {
      "description": "A private labeler's report reasons, so a client can render its report form.",
      "key": "literal:self",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "groups": {
            "description": "Optional headings to show reasons under. Clients that ignore them show a flat list.",
            "items": {
              "ref": "#group",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          },
          "reasons": {
            "items": {
              "ref": "#reason",
              "type": "ref"
            },
            "maxLength": 500,
            "type": "array"
          }
        },
        "required": [
          "reasons",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "reason": {
      "properties": {
        "group": {
          "description": "The id of a group in groups to show this reason under.",
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        },
        "locales": {
          "items": {
            "ref": "#reasonStrings",
            "type": "ref"
          },
          "type": "array"
        },
        "type": {
          "description": "The reason code a report carries.",
          "ref": "com.atproto.moderation.defs#reasonType",
          "type": "ref"
        }
      },
      "required": [
        "type",
        "locales"
      ],
      "type": "object"
    },
    "reasonStrings": {
      "properties": {
        "description": {
          "maxGraphemes": 10000,
          "maxLength": 100000,
          "type": "string"
        },
        "lang": {
          "format": "language",
          "type": "string"
        },
        "title": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "required": [
        "lang",
        "title",
        "description"
      ],
      "type": "object"
    }
  },
  "id": "tools.umbrae.labelerReasons",
  "lexicon": 1
}
