app.thesocialwire.appview.exportReadState

Export legacy read state in stable boundary, unread, read order. Supply expectedLegacyRevision on every continuation; any concurrent legacy mutation invalidates the export. No source data is deleted.

Repository @samclemente.me did:plc:qy5pluw2bsuq2x6albsgkvx3 namespace authority
Details · procedure
Kindprocedure
Authorityappview.thesocialwire.app
Commit rev3n2ums642xe2h
Indexed
cid bafyreihl5ynrenid7rbbv3rjwgpv3elmwxbvosvtxk745x6wbouzu2tmxa

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Export legacy read state in stable boundary, unread, read order. Supply expectedLegacyRevision on every continuation; any concurrent legacy mutation invalidates the export. No source data is deleted.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "Conflict"
        },
        {
          "name": "UpstreamUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "maxLength": 4096,
              "type": "string"
            },
            "expectedLegacyRevision": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "limit": {
              "default": 100,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "maxLength": 4096,
              "type": "string"
            },
            "legacyRevision": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "rows": {
              "items": {
                "properties": {
                  "actedAt": {
                    "format": "datetime",
                    "maxLength": 2048,
                    "type": "string"
                  },
                  "boundary": {
                    "ref": "app.thesocialwire.readStateDefs#boundary",
                    "type": "ref"
                  },
                  "kind": {
                    "enum": [
                      "boundary",
                      "unread",
                      "read"
                    ],
                    "maxLength": 8,
                    "type": "string"
                  },
                  "subjectUri": {
                    "maxLength": 2048,
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "actedAt"
                ],
                "type": "object"
              },
              "maxLength": 500,
              "type": "array"
            }
          },
          "required": [
            "legacyRevision",
            "rows"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.thesocialwire.appview.exportReadState",
  "lexicon": 1
}