{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An audit log entry for a moderation action taken by the community. Enforcement is the space authority declining to issue credentials, and this records that it happened.",
      "key": "tid",
      "record": {
        "properties": {
          "action": {
            "description": "The action taken.",
            "knownValues": [
              "ban",
              "unban",
              "kick"
            ],
            "type": "string"
          },
          "createdAt": {
            "description": "When the action was taken.",
            "format": "datetime",
            "type": "string"
          },
          "createdBy": {
            "description": "DID of the moderator who took the action.",
            "format": "did",
            "type": "string"
          },
          "reason": {
            "description": "Human-readable reason.",
            "maxLength": 512,
            "type": "string"
          },
          "subject": {
            "description": "The member the action was taken against.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "action",
          "subject",
          "createdBy",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.colibri.beta.moderation",
  "lexicon": 1
}
