# org.atgrp.labeler

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

- Kind: record
- Record key: literal:self
- Authority: atgrp.org
- Lexicon: 1
- Published by [lex.atgrp.org](https://lexicon.garden/identity/did:plc:4pt2cnpyvfgn5b7uxwn2shwv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.labeler)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.labeler/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.labeler/analytics)

## Record (`org.atgrp.labeler`)

Type: record · key literal:self

### Properties

- `policies` (ref, required)
  - Reference: `#policies`
- `reasonTypes` (array): Accepted report reasons. Omit to accept all.
  - `items` (ref)
    - Reference: `org.atgrp.mod.defs#reasonType`
- `subjectCollections` (array): Accepted report record types. Omit to accept all.
  - `items` (string · nsid)
- `subjectTypes` (array): Accepted report subject types. Omit to accept all.
  - `items` (string)
    - Constraints: knownValues: account | record

## #policies (`org.atgrp.labeler#policies`)

Type: object

The group's label values and their definitions.

### Properties

- `labelValueDefinitions` (array): Definitions for group-defined label values.
  - `items` (ref)
    - Reference: `com.atproto.label.defs#labelValueDefinition`
- `labelValues` (array, required): Label values the group applies.
  - `items` (ref)
    - Reference: `com.atproto.label.defs#labelValue`

## Schema

```json
{
  "$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
}
```
