# fyi.opensocial.labeler

> The group as a moderation service: the label values it applies and what it accepts reports about. Written by the group into the meta space.

- Kind: record
- Record key: literal:self
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.labeler)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.labeler/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.labeler/analytics)

## Record (`fyi.opensocial.labeler`)

Type: record · key literal:self

### Properties

- `createdAt` (string · datetime, required)
- `policies` (ref, required)
  - Reference: `fyi.opensocial.defs#labelerPolicies`
- `reasonTypes` (array): Accepted report reasons. Omit to accept all.
  - `items` (ref)
    - Reference: `com.atproto.moderation.defs#reasonType`
- `subjectCollections` (array): Record types that can be reported. Omit to accept all.
  - `items` (string · nsid)
- `subjectTypes` (array): Accepted report subject types. Omit to accept all.
  - `items` (ref)
    - Reference: `com.atproto.moderation.defs#subjectType`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The group as a moderation service: the label values it applies and what it accepts reports about. Written by the group into the meta space.",
      "key": "literal:self",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "policies": {
            "ref": "fyi.opensocial.defs#labelerPolicies",
            "type": "ref"
          },
          "reasonTypes": {
            "description": "Accepted report reasons. Omit to accept all.",
            "items": {
              "ref": "com.atproto.moderation.defs#reasonType",
              "type": "ref"
            },
            "type": "array"
          },
          "subjectCollections": {
            "description": "Record types that can be reported. Omit to accept all.",
            "items": {
              "format": "nsid",
              "type": "string"
            },
            "type": "array"
          },
          "subjectTypes": {
            "description": "Accepted report subject types. Omit to accept all.",
            "items": {
              "ref": "com.atproto.moderation.defs#subjectType",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "policies",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "fyi.opensocial.labeler",
  "lexicon": 1
}
```
