{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A moderation action, written to the moderator's own repo. Indexers must only honor it if the author's DID is the forum owner or listed in the config's moderators.",
      "key": "tid",
      "record": {
        "properties": {
          "action": {
            "knownValues": [
              "pin",
              "unpin",
              "lock",
              "unlock",
              "hide",
              "unhide",
              "remove"
            ],
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "forum": {
            "format": "at-uri",
            "type": "string"
          },
          "reason": {
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "forum",
          "subject",
          "action",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "cc.coffeencode.forum.moderation",
  "lexicon": 1
}
