# garden.lexicon.admin.defs

- Kind: defs
- Authority: admin.lexicon.garden
- Lexicon: 1
- Published by [lexicon.garden](https://lexicon.garden/identity/did:plc:akhgi4ekkeaupiqsis6g2gqg), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.admin.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.admin.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.admin.defs/analytics)

## #moderationAction (`garden.lexicon.admin.defs#moderationAction`)

Type: object

One row of Lexicon Garden's moderation log.

### Properties

- `action` (string, required)
  - Constraints: knownValues: sandbox_takedown | identity_takedown
- `actor` (string · did, required): The admin whose service-auth token made the call.
- `createdAt` (string · datetime, required)
- `details` (unknown, required): What the takedown removed: schemas, NSIDs, sandboxes and DNS records.
- `id` (integer, required)
  - Constraints: minimum: 1
- `note` (string, required)
  - Constraints: minLength: 1, maxLength: 3000
- `subject` (string, required): The sandbox's base NSID prefix, or the DID taken down.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "moderationAction": {
      "description": "One row of Lexicon Garden's moderation log.",
      "properties": {
        "action": {
          "knownValues": [
            "sandbox_takedown",
            "identity_takedown"
          ],
          "type": "string"
        },
        "actor": {
          "description": "The admin whose service-auth token made the call.",
          "format": "did",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "details": {
          "description": "What the takedown removed: schemas, NSIDs, sandboxes and DNS records.",
          "type": "unknown"
        },
        "id": {
          "minimum": 1,
          "type": "integer"
        },
        "note": {
          "maxLength": 3000,
          "minLength": 1,
          "type": "string"
        },
        "subject": {
          "description": "The sandbox's base NSID prefix, or the DID taken down.",
          "type": "string"
        }
      },
      "required": [
        "id",
        "createdAt",
        "actor",
        "action",
        "subject",
        "note",
        "details"
      ],
      "type": "object"
    }
  },
  "id": "garden.lexicon.admin.defs",
  "lexicon": 1
}
```
