{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The group's label values and the reports it accepts. Written by the group in the members space.",
      "key": "literal:self",
      "record": {
        "properties": {
          "policies": {
            "ref": "#policies",
            "type": "ref"
          },
          "reasonTypes": {
            "description": "Accepted report reasons. Omit to accept all.",
            "items": {
              "ref": "org.atgrp.mod.defs#reasonType",
              "type": "ref"
            },
            "type": "array"
          },
          "subjectCollections": {
            "description": "Accepted report record types. Omit to accept all.",
            "items": {
              "format": "nsid",
              "type": "string"
            },
            "type": "array"
          },
          "subjectTypes": {
            "description": "Accepted report subject types. Omit to accept all.",
            "items": {
              "knownValues": [
                "account",
                "record"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "policies"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "policies": {
      "description": "The group's label values and their definitions.",
      "properties": {
        "labelValueDefinitions": {
          "description": "Definitions for group-defined label values.",
          "items": {
            "ref": "com.atproto.label.defs#labelValueDefinition",
            "type": "ref"
          },
          "type": "array"
        },
        "labelValues": {
          "description": "Label values the group applies.",
          "items": {
            "ref": "com.atproto.label.defs#labelValue",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "labelValues"
      ],
      "type": "object"
    }
  },
  "id": "org.atgrp.labeler",
  "lexicon": 1
}
