# pub.openletter.draft

> Published by [openletter.pub](https://lexicon.garden/identity/did:plc:vrxdl7yd3vz2hzdosqaywvb3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vrxdl7yd3vz2hzdosqaywvb3/pub.openletter.draft)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vrxdl7yd3vz2hzdosqaywvb3/pub.openletter.draft/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vrxdl7yd3vz2hzdosqaywvb3/pub.openletter.draft/examples)

## Definitions

### `pub.openletter.draft`

**Type**: `record`

A work-in-progress letter, published as a pub.openletter.petition when ready.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `body` | `string` | No | The draft text, as CommonMark markdown. |
| `tags` | `array` | No |  |
| `langs` | `array` | No |  |
| `title` | `string` | No |  |
| `banner` | `blob` | No |  |
| `summary` | `string` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `recipients` | `array` | No |  |
| `contributors` | `array` | No | DIDs the author intends as co-authors. |

## Raw Schema

```json
{
  "id": "pub.openletter.draft",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "createdAt"
        ],
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 100000,
            "description": "The draft text, as CommonMark markdown.",
            "maxGraphemes": 50000
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 640,
              "maxGraphemes": 64
            },
            "maxLength": 10
          },
          "langs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "language"
            },
            "maxLength": 3
          },
          "title": {
            "type": "string",
            "maxLength": 3000,
            "maxGraphemes": 300
          },
          "banner": {
            "type": "blob",
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "maxSize": 1000000
          },
          "summary": {
            "type": "string",
            "maxLength": 3000,
            "maxGraphemes": 300
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "recipients": {
            "type": "array",
            "items": {
              "ref": "pub.openletter.petition#recipient",
              "type": "ref"
            },
            "maxLength": 50
          },
          "contributors": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "did"
            },
            "maxLength": 100,
            "description": "DIDs the author intends as co-authors."
          }
        }
      },
      "description": "A work-in-progress letter, published as a pub.openletter.petition when ready."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
