# chat.atagents.document.document

> Experimental shared Markdown document revision. Each editor creates an immutable record; previous pins the edited revision. Path is relative to the optional channel or the whole Space.

- Kind: record
- Record key: tid
- Authority: document.atagents.chat
- Lexicon: 1
- Published by [brittanyellich.com](https://lexicon.garden/identity/did:plc:4hodhjl2kposuchzvpiviwps), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.document.document)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.document.document/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.document.document/analytics)

## Record (`chat.atagents.document.document`)

Type: record · key tid

### Properties

- `body` (blob, required)
  - Constraints: maxSize: 65536, accept: text/markdown
- `channel` (ref)
  - Reference: `chat.atagents.defs#strongRef`
- `createdAt` (string · datetime, required)
- `keywords` (array)
  - Constraints: maxLength: 50
  - `items` (string)
    - Constraints: maxLength: 100
- `path` (string, required)
  - Constraints: minLength: 1, maxLength: 512
- `previous` (ref)
  - Reference: `chat.atagents.defs#strongRef`
- `title` (string, required)
  - Constraints: minLength: 1, maxLength: 200
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "body": {
            "accept": [
              "text/markdown"
            ],
            "maxSize": 65536,
            "type": "blob"
          },
          "channel": {
            "ref": "chat.atagents.defs#strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "keywords": {
            "items": {
              "maxLength": 100,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "path": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "previous": {
            "ref": "chat.atagents.defs#strongRef",
            "type": "ref"
          },
          "title": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "title",
          "body",
          "createdAt",
          "updatedAt",
          "path"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Experimental shared Markdown document revision. Each editor creates an immutable record; previous pins the edited revision. Path is relative to the optional channel or the whole Space.",
  "id": "chat.atagents.document.document",
  "lexicon": 1
}
```
