# app.thesocialwire.readStateChunk

> Published by [samclemente.me](https://lexicon.garden/identity/did:plc:qy5pluw2bsuq2x6albsgkvx3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.readStateChunk)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.readStateChunk/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.readStateChunk/examples)

## Definitions

### `app.thesocialwire.readStateChunk`

**Type**: `record`

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`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `fragments` | `array` | No |  |
| `kind` | `string` | No |  |
| `operations` | `array` | No |  |
| `previous` | `ref` → `com.atproto.repo.strongRef` | No |  |
| `receipts` | `array` | No |  |
| `version` | `integer` | Yes |  |

## Raw Schema

```json
{
  "$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
}
```
