{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "audience": {
      "properties": {
        "kind": {
          "knownValues": [
            "public",
            "followers",
            "list"
          ],
          "type": "string"
        },
        "list": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "audience": {
            "ref": "#audience",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "embed": {
            "refs": [
              "app.bsky.embed.images",
              "app.bsky.embed.external",
              "actor.kinetic.embed.file",
              "actor.kinetic.embed.files"
            ],
            "type": "union"
          },
          "facets": {
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            },
            "type": "array"
          },
          "langs": {
            "items": {
              "format": "language",
              "type": "string"
            },
            "maxLength": 3,
            "type": "array"
          },
          "reply": {
            "ref": "#replyRef",
            "type": "ref"
          },
          "subject": {
            "maxGraphemes": 300,
            "maxLength": 1000,
            "type": "string"
          },
          "text": {
            "maxGraphemes": 10000,
            "maxLength": 100000,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "text",
          "audience",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "replyRef": {
      "properties": {
        "parent": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "root": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "root",
        "parent"
      ],
      "type": "object"
    }
  },
  "id": "actor.kinetic.message",
  "lexicon": 1
}
