{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Public immutable chunk, at most64KiB. V1 requires operations. V2 requires kind with exactly fragments for state or receipts for devices/legacyReceipts. Applications enforce the complete version/kind shape and all roots before publication; unreferenced chunks are ignored.",
      "key": "any",
      "record": {
        "properties": {
          "fragments": {
            "items": {
              "ref": "app.thesocialwire.readStateDefs#fragment",
              "type": "ref"
            },
            "maxLength": 128,
            "type": "array"
          },
          "kind": {
            "enum": [
              "state",
              "devices",
              "legacyReceipts"
            ],
            "maxLength": 14,
            "type": "string"
          },
          "operations": {
            "items": {
              "ref": "app.thesocialwire.readStateDefs#operation",
              "type": "ref"
            },
            "maxLength": 128,
            "type": "array"
          },
          "previous": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "receipts": {
            "items": {
              "ref": "app.thesocialwire.readStateDefs#receipt",
              "type": "ref"
            },
            "maxLength": 128,
            "type": "array"
          },
          "version": {
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "version"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.thesocialwire.readStateChunk",
  "lexicon": 1
}
