{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A thread in a channel",
      "key": "tid",
      "record": {
        "properties": {
          "blobs": {
            "description": "Optional attached media (image or audio)",
            "items": {
              "accept": [
                "image/*",
                "audio/*"
              ],
              "maxSize": 10000000,
              "type": "blob"
            },
            "maxLength": 1,
            "type": "array"
          },
          "channelId": {
            "description": "The channel this thread belongs to",
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp of thread creation",
            "format": "datetime",
            "type": "string"
          },
          "text": {
            "description": "The text content of the thread",
            "maxGraphemes": 40000,
            "maxLength": 4000,
            "type": "string"
          },
          "title": {
            "description": "The title of the thread",
            "maxGraphemes": 3000,
            "maxLength": 300,
            "type": "string"
          }
        },
        "required": [
          "channelId",
          "title",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "blue.skytalk.talk.thread",
  "lexicon": 1
}
