# social.coves.community.wiki

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.wiki)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.wiki/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.wiki/examples)

## Definitions

### `social.coves.community.wiki`

**Type**: `record`

Community wiki page

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `slug` | `string` | No | URL-friendly page identifier |
| `title` | `string` | Yes | Wiki page title |
| `content` | `string` | Yes | Markdown-formatted wiki content |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | No |  |
| `editHistory` | `array` | No | History of edits (stored separately for efficiency) |
| `lastEditedBy` | `string` (did) | No | DID of the last editor |

### `social.coves.community.wiki#wikiEdit`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `editor` | `string` (did) | Yes |  |
| `summary` | `string` | No | Edit summary |
| `timestamp` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "social.coves.community.wiki",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "title",
          "content",
          "createdAt"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "maxLength": 128,
            "description": "URL-friendly page identifier"
          },
          "title": {
            "type": "string",
            "maxLength": 512,
            "description": "Wiki page title",
            "maxGraphemes": 128
          },
          "content": {
            "type": "string",
            "maxLength": 50000,
            "description": "Markdown-formatted wiki content"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "editHistory": {
            "type": "array",
            "items": {
              "ref": "#wikiEdit",
              "type": "ref"
            },
            "description": "History of edits (stored separately for efficiency)"
          },
          "lastEditedBy": {
            "type": "string",
            "format": "did",
            "description": "DID of the last editor"
          }
        }
      },
      "description": "Community wiki page"
    },
    "wikiEdit": {
      "type": "object",
      "required": [
        "editor",
        "timestamp"
      ],
      "properties": {
        "editor": {
          "type": "string",
          "format": "did"
        },
        "summary": {
          "type": "string",
          "maxLength": 256,
          "description": "Edit summary"
        },
        "timestamp": {
          "type": "string",
          "format": "datetime"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
