# so.sprk.labeler.service

> Published by [sprk.so](https://lexicon.garden/identity/did:plc:cveom2iroj3mt747sd4qqnr2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.labeler.service)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.labeler.service/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.labeler.service/examples)

## Definitions

### `so.sprk.labeler.service`

**Type**: `record`

A declaration of the existence of labeler service.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `labels` | `union` | No |  |
| `policies` | `ref` → `so.sprk.labeler.defs#labelerPolicies` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `reasonTypes` | `array` | No | The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. |
| `subjectTypes` | `array` | No | The set of subject types (account, record, etc) this service accepts reports on. |
| `subjectCollections` | `array` | No | Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. |

## Raw Schema

```json
{
  "id": "so.sprk.labeler.service",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "policies",
          "createdAt"
        ],
        "properties": {
          "labels": {
            "refs": [
              "com.atproto.label.defs#selfLabels"
            ],
            "type": "union"
          },
          "policies": {
            "ref": "so.sprk.labeler.defs#labelerPolicies",
            "type": "ref"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "reasonTypes": {
            "type": "array",
            "items": {
              "ref": "com.atproto.moderation.defs#reasonType",
              "type": "ref"
            },
            "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed."
          },
          "subjectTypes": {
            "type": "array",
            "items": {
              "ref": "com.atproto.moderation.defs#subjectType",
              "type": "ref"
            },
            "description": "The set of subject types (account, record, etc) this service accepts reports on."
          },
          "subjectCollections": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "nsid"
            },
            "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type."
          }
        }
      },
      "description": "A declaration of the existence of labeler service."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
