# org.atgrp.labeler

The group's label values and the reports it accepts. Written by the group in the members space.

A record in the spec for Atmosphere Groups. The page: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-labeler/

- Named in the spec: 9 Moderation (https://www.atmospheregroups.org/spec/#moderation); 13.2 Record types (https://www.atmospheregroups.org/spec/#record-types); 13.3 Permission sets (https://www.atmospheregroups.org/spec/#permission-sets)
- In the spec's repository: https://tangled.org/atmospheregroups.org/spec/blob/0885261c9cd1af80e89908571f926c2d0c71771f/lexicons/org/atgrp/labeler.json
- Published under the same name: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-labeler/, the same schema
- The reference host's version: fyi.opensocial.labeler, https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-labeler/

## The schema in the spec

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