com.cruftmanor.waystation.message

A chat message, written into the author's own repo in a Waystation space.

Details · record, key tid
Kindrecord
Record keytid
Authoritywaystation.cruftmanor.com
Commit rev3n2els3fbmj2b
Indexed
cid bafyreiaydyqael6ignvr42yfwiggxfw5g24yfvimlumwtxlkkwoamuua4u

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "attachment": {
      "description": "One file attached to a message. Images are shown inline; PDFs are offered as downloads.",
      "properties": {
        "file": {
          "accept": [
            "image/png",
            "image/jpeg",
            "image/gif",
            "image/webp",
            "application/pdf"
          ],
          "maxSize": 12582912,
          "type": "blob"
        },
        "height": {
          "description": "Images only: height in pixels, as displayed.",
          "maximum": 100000,
          "minimum": 1,
          "type": "integer"
        },
        "name": {
          "description": "Original file name, for display and download.",
          "maxGraphemes": 200,
          "maxLength": 1000,
          "type": "string"
        },
        "thumb": {
          "accept": [
            "image/webp",
            "image/jpeg",
            "image/png"
          ],
          "description": "Images only: a smaller copy shown in the chat; the full file opens on request.",
          "maxSize": 262144,
          "type": "blob"
        },
        "width": {
          "description": "Images only: width in pixels, as displayed.",
          "maximum": 100000,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "file"
      ],
      "type": "object"
    },
    "main": {
      "description": "A chat message, written into the author's own repo in a Waystation space.",
      "key": "tid",
      "record": {
        "properties": {
          "attachment": {
            "ref": "#attachment",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "text": {
            "description": "Message text. May be empty when an attachment is present.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          }
        },
        "required": [
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.cruftmanor.waystation.message",
  "lexicon": 1
}