app.protoimsg.chat.channel

A channel within a chat room. Created by the room owner.

Details · record, key tid
Kindrecord
Record keytid
Authoritychat.protoimsg.app
Indexed
cid bafyreiaekgj5wvm442nwmypgjnxutd6yh6uv2xcrkan35gmvaotttza24e

Checks

Valid
  • unlimited-string defs.main.record.properties.postPolicyNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A channel within a chat room. Created by the room owner.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "Timestamp of channel creation.",
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "What the channel is about.",
            "maxLength": 500,
            "type": "string"
          },
          "name": {
            "description": "Display name for the channel.",
            "maxLength": 100,
            "type": "string"
          },
          "position": {
            "description": "Sort position within the room. Lower numbers appear first.",
            "minimum": 0,
            "type": "integer"
          },
          "postPolicy": {
            "description": "Who can post messages in this channel.",
            "knownValues": [
              "everyone",
              "owner",
              "moderators"
            ],
            "type": "string"
          },
          "room": {
            "description": "AT-URI of the room this channel belongs to.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "room",
          "name",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.protoimsg.chat.channel",
  "lexicon": 1
}