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