# tools.umbrae.labelerPolicies

> What a private labeler publishes and accepts, with the fields of app.bsky.labeler.service minus its public-only parts.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.labelerPolicies)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.labelerPolicies/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.labelerPolicies/analytics)

## Record (`tools.umbrae.labelerPolicies`)

Type: record · key literal:self

### Properties

- `createdAt` (string · datetime, required)
- `labelKey` (string): The did:key (P-256 or secp256k1) that signs this labeler's labels now. Published here instead of in the labeler's public DID document, which would mark the account as a labeler.
- `policies` (ref, required)
  - Reference: `app.bsky.labeler.defs#labelerPolicies`
- `previousLabelKeys` (array): Keys retired by routine rotation. Each verifies only labels whose cts is before its retiredAt. cts is chosen by the signer, so this is no defence against a leaked key: after a compromise, don't list it, and re-sign current labels. Requires labelKey; keys are unique.
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `#retiredKey`
- `reasonTypes` (array): Report reason codes in scope. If not defined (distinct from empty), all are.
  - `items` (ref)
    - Reference: `com.atproto.moderation.defs#reasonType`
- `subjectCollections` (array): Record collections that can be reported. If not defined (distinct from empty), any.
  - `items` (string · nsid)
- `subjectTypes` (array): Subject types (account, record, ...) this labeler accepts reports on.
  - `items` (ref)
    - Reference: `com.atproto.moderation.defs#subjectType`

## #retiredKey (`tools.umbrae.labelerPolicies#retiredKey`)

Type: object

### Properties

- `key` (string, required)
- `retiredAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "What a private labeler publishes and accepts, with the fields of app.bsky.labeler.service minus its public-only parts.",
      "key": "literal:self",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "labelKey": {
            "description": "The did:key (P-256 or secp256k1) that signs this labeler's labels now. Published here instead of in the labeler's public DID document, which would mark the account as a labeler.",
            "type": "string"
          },
          "policies": {
            "ref": "app.bsky.labeler.defs#labelerPolicies",
            "type": "ref"
          },
          "previousLabelKeys": {
            "description": "Keys retired by routine rotation. Each verifies only labels whose cts is before its retiredAt. cts is chosen by the signer, so this is no defence against a leaked key: after a compromise, don't list it, and re-sign current labels. Requires labelKey; keys are unique.",
            "items": {
              "ref": "#retiredKey",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "reasonTypes": {
            "description": "Report reason codes in scope. If not defined (distinct from empty), all are.",
            "items": {
              "ref": "com.atproto.moderation.defs#reasonType",
              "type": "ref"
            },
            "type": "array"
          },
          "subjectCollections": {
            "description": "Record collections that can be reported. If not defined (distinct from empty), any.",
            "items": {
              "format": "nsid",
              "type": "string"
            },
            "type": "array"
          },
          "subjectTypes": {
            "description": "Subject types (account, record, ...) this labeler accepts reports on.",
            "items": {
              "ref": "com.atproto.moderation.defs#subjectType",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "policies",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "retiredKey": {
      "properties": {
        "key": {
          "type": "string"
        },
        "retiredAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "key",
        "retiredAt"
      ],
      "type": "object"
    }
  },
  "id": "tools.umbrae.labelerPolicies",
  "lexicon": 1
}
```
