{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A live-chat message in a Trust Square whose subject is a live stream.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "square": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "text": {
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          }
        },
        "required": [
          "square",
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.trustsquare.chatMessage",
  "lexicon": 1
}
