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

Record

record · key tid

Properties

Files sent with the message.

  • maxLength: 10
itemsref
Reference

createdAt

requiredstring · datetime

When it was sent.

editedAt

string · datetime

When the text was last changed. Absent when never edited.

facets

array

Links, mentions and tags in the text, each marked by where it starts and ends.

  • maxLength: 100
itemsref
Reference

replyTo

string

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

text

requiredstring

The message.

  • maxLength: 10000
  • maxGraphemes: 3000

#attachment

object

A file sent with a message.

Properties

alt

string

A description of the file for people who cannot see it.

  • maxLength: 5000
  • maxGraphemes: 1000

file

requiredblob

The file, up to 10 MB.

  • maxSize: 10485760
  • accept: */*

name

string

The filename.

  • maxLength: 512
  • maxGraphemes: 128

#byteSlice

object

Where a span starts and ends, in UTF-8 bytes of the text: start inclusive, end exclusive.

Properties

byteEnd

requiredinteger
  • minimum: 0

byteStart

requiredinteger
  • minimum: 0

#facet

object

A span of the text and what it is.

Properties

features

requiredarray
  • maxLength: 4
itemsunion

index

requiredref
Reference

#mention

object

The span names an account.

Properties

did

requiredstring · did

#tag

object

The span is a tag, written without its leading hash.

Properties

tag

requiredstring
  • maxLength: 640
  • maxGraphemes: 64

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A message in a channel. Lives in the author's own permissioned repo for the channel's space.

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

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

  • A message sent in a channel on Colibri.

  • A message in a channel or DM space. The record lives in the *author's* repo within the space, so a message has no single owning collection to sort by — it is identified by (authorDid, tid). One collection serves channels and DMs alike (ADR 0016), which is what lets one pipeline carry both.