social.colibri.beta.message

colibri.social

Documentation

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

main record

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

Record Key tid Timestamp-based ID

Properties

attachments array of ref #attachment Optional

Files attached to this message.

createdAt string datetime Required

When the message was sent.

suppressedEmbeds array of string uri Optional

URLs from this message's link facets whose preview the author chose not to show. Moderator suppression is a label instead.

text string Required

The message body.

maxLength: 2048 bytes
updatedAt string datetime Optional

When the message was last edited. Absent means never edited.

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "text",
      "createdAt"
    ],
    "properties": {
      "text": {
        "type": "string",
        "maxLength": 2048,
        "description": "The message body."
      },
      "facets": {
        "type": "array",
        "items": {
          "ref": "social.colibri.beta.richtext.facet",
          "type": "ref"
        },
        "description": "Annotations over ranges of the text."
      },
      "parent": {
        "ref": "social.colibri.beta.defs#recordRef",
        "type": "ref",
        "description": "The message this one replies to."
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "When the message was sent."
      },
      "updatedAt": {
        "type": "string",
        "format": "datetime",
        "description": "When the message was last edited. Absent means never edited."
      },
      "attachments": {
        "type": "array",
        "items": {
          "ref": "#attachment",
          "type": "ref"
        },
        "description": "Files attached to this message."
      },
      "suppressedEmbeds": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "uri"
        },
        "description": "URLs from this message's link facets whose preview the author chose not to show. Moderator suppression is a label instead."
      }
    }
  },
  "description": "A message in a channel. Lives in the author's own permissioned repo for the channel's space."
}
attachment object

A file attached to a message.

Properties

blob blob Required

The attached file.

name string Optional

The original filename.

maxLength: 256 bytes
View raw schema
{
  "type": "object",
  "required": [
    "blob"
  ],
  "properties": {
    "blob": {
      "type": "blob",
      "description": "The attached file."
    },
    "name": {
      "type": "string",
      "maxLength": 256,
      "description": "The original filename."
    }
  },
  "description": "A file attached to a message."
}

Lexicon Garden

@