# app.thesocialwire.appview.confirmReadState

> Fetch the viewer manifest and complete CID-pinned chain from their resolved PDS. Initial activation requires expectedLegacyRevision and structural parity with the complete legacy export. A manifest CID alone from a client is not proof. No source rows are deleted.

- Kind: procedure
- Authority: appview.thesocialwire.app
- Lexicon: 1
- Published by [samclemente.me](https://lexicon.garden/identity/did:plc:qy5pluw2bsuq2x6albsgkvx3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.appview.confirmReadState)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.appview.confirmReadState/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.appview.confirmReadState/analytics)

## Procedure (`app.thesocialwire.appview.confirmReadState`)

Type: procedure · POST

### Input (application/json)

- `expectedLegacyRevision` (integer)
  - Constraints: minimum: 0, maximum: 9007199254740991
- `manifestCid` (string · cid, required)
  - Constraints: maxLength: 256

### Output (application/json)

- `authority` (string, required)
  - Constraints: maxLength: 7, enum: appview | pds
- `legacyRevision` (integer, required)
  - Constraints: minimum: 0, maximum: 9007199254740991
- `manifest` (ref)
  - Reference: `app.thesocialwire.readState`
- `manifestCid` (string · cid)
  - Constraints: maxLength: 256
- `migrationState` (string, required)
  - Constraints: maxLength: 10, enum: notStarted | verified
- `projectionReady` (boolean): False while the rebuildable projection is being restored; read requests fail with a retryable unavailable response.

### Errors

- `InvalidRequest`: No description in schema.
- `Conflict`: No description in schema.
- `UpstreamUnavailable`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fetch the viewer manifest and complete CID-pinned chain from their resolved PDS. Initial activation requires expectedLegacyRevision and structural parity with the complete legacy export. A manifest CID alone from a client is not proof. No source rows are deleted.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "Conflict"
        },
        {
          "name": "UpstreamUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expectedLegacyRevision": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "manifestCid": {
              "format": "cid",
              "maxLength": 256,
              "type": "string"
            }
          },
          "required": [
            "manifestCid"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "authority": {
              "enum": [
                "appview",
                "pds"
              ],
              "maxLength": 7,
              "type": "string"
            },
            "legacyRevision": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "manifest": {
              "ref": "app.thesocialwire.readState",
              "type": "ref"
            },
            "manifestCid": {
              "format": "cid",
              "maxLength": 256,
              "type": "string"
            },
            "migrationState": {
              "enum": [
                "notStarted",
                "verified"
              ],
              "maxLength": 10,
              "type": "string"
            },
            "projectionReady": {
              "description": "False while the rebuildable projection is being restored; read requests fail with a retryable unavailable response.",
              "type": "boolean"
            }
          },
          "required": [
            "authority",
            "migrationState",
            "legacyRevision"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.thesocialwire.appview.confirmReadState",
  "lexicon": 1
}
```
