# us.off-the-clock.content.warning

> What a content-warning label warns of: its types and a note for readers, written beside the label by whoever applied it (D101). An author's lives in their own repository, in the record's space, under the record's key; an admin's or automod's lives in the management space under the label record's key. It counts only beside its counting content-warning label, and never conceals anything on its own. A sidecar with neither types nor a note is refused.

- Kind: record
- Record key: tid
- Authority: content.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.content.warning)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.content.warning/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.content.warning/analytics)

## Record (`us.off-the-clock.content.warning`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `note` (string): A note for readers, shown with the warning.
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `subject` (ref, required): The record the warning describes. A sidecar whose CID names an earlier version of the record still counts.
  - Reference: `com.atproto.repo.strongRef`
- `types` (array): What the content holds, each type at most once. They describe the warning; display and every viewer's setting act on the label alone.
  - Constraints: maxLength: 12
  - `items` (string)
    - Constraints: maxLength: 64, knownValues: violence | gore | death | self-harm | abuse | substances | eating | mental-health | medical | bigotry | distressing-news | flashing

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "What a content-warning label warns of: its types and a note for readers, written beside the label by whoever applied it (D101). An author's lives in their own repository, in the record's space, under the record's key; an admin's or automod's lives in the management space under the label record's key. It counts only beside its counting content-warning label, and never conceals anything on its own. A sidecar with neither types nor a note is refused.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "note": {
            "description": "A note for readers, shown with the warning.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "subject": {
            "description": "The record the warning describes. A sidecar whose CID names an earlier version of the record still counts.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "types": {
            "description": "What the content holds, each type at most once. They describe the warning; display and every viewer's setting act on the label alone.",
            "items": {
              "knownValues": [
                "violence",
                "gore",
                "death",
                "self-harm",
                "abuse",
                "substances",
                "eating",
                "mental-health",
                "medical",
                "bigotry",
                "distressing-news",
                "flashing"
              ],
              "maxLength": 64,
              "type": "string"
            },
            "maxLength": 12,
            "type": "array"
          }
        },
        "required": [
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.off-the-clock.content.warning",
  "lexicon": 1
}
```
