# social.colibri.beta.moderation

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.moderation)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.moderation/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.moderation/examples)

## Definitions

### `social.colibri.beta.moderation`

**Type**: `record`

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`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `action` | `string` | Yes | The action taken. |
| `reason` | `string` | No | Human-readable reason. |
| `subject` | `string` (did) | Yes | The member the action was taken against. |
| `createdAt` | `string` (datetime) | Yes | When the action was taken. |
| `createdBy` | `string` (did) | Yes | DID of the moderator who took the action. |

## Raw Schema

```json
{
  "id": "social.colibri.beta.moderation",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "action",
          "subject",
          "createdBy",
          "createdAt"
        ],
        "properties": {
          "action": {
            "type": "string",
            "description": "The action taken.",
            "knownValues": [
              "ban",
              "unban",
              "kick"
            ]
          },
          "reason": {
            "type": "string",
            "maxLength": 512,
            "description": "Human-readable reason."
          },
          "subject": {
            "type": "string",
            "format": "did",
            "description": "The member the action was taken against."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the action was taken."
          },
          "createdBy": {
            "type": "string",
            "format": "did",
            "description": "DID of the moderator who took the action."
          }
        }
      },
      "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."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
