computer.spaces.message

One message in a chat at spaces.computer. Stored in the sender's own repo inside the chat space. Shown in the order of createdAt, then the record key. Deleting it removes it for everyone in the chat. Editing rewrites the record in place and sets editedAt.

Repository @spaces.computer did:plc:fcup7ltuhyvyayda32fru55z namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityspaces.computer
Commit rev3n3mvypifuk2n
Indexed
cid bafyreid2ru5u5nb4zo4kdfsjagodmvcy4p55rvbt5c2ymt3aicmvcadgce

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "attachment": {
      "description": "A file sent with a message.",
      "properties": {
        "alt": {
          "description": "A description of the file for people who cannot see it.",
          "maxGraphemes": 1000,
          "maxLength": 5000,
          "type": "string"
        },
        "file": {
          "accept": [
            "*/*"
          ],
          "description": "The file, up to 10 MB.",
          "maxSize": 10485760,
          "type": "blob"
        },
        "name": {
          "description": "The filename.",
          "maxGraphemes": 128,
          "maxLength": 512,
          "type": "string"
        }
      },
      "required": [
        "file"
      ],
      "type": "object"
    },
    "byteSlice": {
      "description": "Where a span starts and ends, in UTF-8 bytes of the text: start inclusive, end exclusive.",
      "properties": {
        "byteEnd": {
          "minimum": 0,
          "type": "integer"
        },
        "byteStart": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "byteStart",
        "byteEnd"
      ],
      "type": "object"
    },
    "facet": {
      "description": "A span of the text and what it is.",
      "properties": {
        "features": {
          "items": {
            "refs": [
              "#link",
              "#mention",
              "#tag"
            ],
            "type": "union"
          },
          "maxLength": 4,
          "type": "array"
        },
        "index": {
          "ref": "#byteSlice",
          "type": "ref"
        }
      },
      "required": [
        "index",
        "features"
      ],
      "type": "object"
    },
    "link": {
      "description": "The span is a link.",
      "properties": {
        "uri": {
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "main": {
      "description": "One message in a chat at spaces.computer. Stored in the sender's own repo inside the chat space. Shown in the order of createdAt, then the record key. Deleting it removes it for everyone in the chat. Editing rewrites the record in place and sets editedAt.",
      "key": "tid",
      "record": {
        "properties": {
          "attachments": {
            "description": "Files sent with the message.",
            "items": {
              "ref": "#attachment",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "createdAt": {
            "description": "When it was sent.",
            "format": "datetime",
            "type": "string"
          },
          "editedAt": {
            "description": "When the text was last changed. Absent when never edited.",
            "format": "datetime",
            "type": "string"
          },
          "facets": {
            "description": "Links, mentions and tags in the text, each marked by where it starts and ends.",
            "items": {
              "ref": "#facet",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          },
          "replyTo": {
            "description": "The message this one answers: its record URI inside the chat space, at:space/{authority}/computer.spaces.chat/{key}/{writer}/computer.spaces.message/{rkey}.",
            "maxLength": 2048,
            "type": "string"
          },
          "text": {
            "description": "The message.",
            "maxGraphemes": 3000,
            "maxLength": 10000,
            "type": "string"
          }
        },
        "required": [
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "mention": {
      "description": "The span names an account.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "tag": {
      "description": "The span is a tag, written without its leading hash.",
      "properties": {
        "tag": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "required": [
        "tag"
      ],
      "type": "object"
    }
  },
  "id": "computer.spaces.message",
  "lexicon": 1
}