app.thesocialwire.appview.prepareReadState

Freeze a bulk-read selection without changing state. No cutoff returns publication boundaries; an age cutoff returns exact existing unread subject IDs plus calendar metadata. Clients split the selection into immutable PDS chunks. An excessive selection fails, never truncates.

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

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Freeze a bulk-read selection without changing state. No cutoff returns publication boundaries; an age cutoff returns exact existing unread subject IDs plus calendar metadata. Clients split the selection into immutable PDS chunks. An excessive selection fails, never truncates.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "Conflict"
        },
        {
          "name": "UpstreamUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "before": {
              "format": "datetime",
              "maxLength": 2048,
              "type": "string"
            },
            "previewSubjectUris": {
              "description": "Cached subject IDs for an optional server-verified local preview; never part of canonical PDS operations.",
              "items": {
                "maxLength": 2048,
                "type": "string"
              },
              "maxLength": 1000,
              "type": "array"
            },
            "referenceDate": {
              "maxLength": 10,
              "type": "string"
            },
            "scope": {
              "properties": {
                "folderRkey": {
                  "maxLength": 512,
                  "type": "string"
                },
                "kind": {
                  "knownValues": [
                    "publication",
                    "folder",
                    "subscribed",
                    "following"
                  ],
                  "maxLength": 32,
                  "type": "string"
                },
                "publicationId": {
                  "maxLength": 2048,
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "timeZone": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "scope"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actedAt": {
              "format": "datetime",
              "maxLength": 2048,
              "type": "string"
            },
            "boundaries": {
              "items": {
                "ref": "app.thesocialwire.readStateDefs#boundary",
                "type": "ref"
              },
              "maxLength": 100000,
              "type": "array"
            },
            "calendar": {
              "ref": "app.thesocialwire.readStateDefs#calendar",
              "type": "ref"
            },
            "legacyRevision": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "manifestCid": {
              "format": "cid",
              "maxLength": 256,
              "type": "string"
            },
            "previewSubjectUris": {
              "description": "Cached subject IDs for an optional server-verified local preview; never part of canonical PDS operations.",
              "items": {
                "maxLength": 2048,
                "type": "string"
              },
              "maxLength": 1000,
              "type": "array"
            },
            "selection": {
              "enum": [
                "boundaries",
                "exact"
              ],
              "maxLength": 10,
              "type": "string"
            },
            "subjectUris": {
              "items": {
                "maxLength": 2048,
                "type": "string"
              },
              "maxLength": 100000,
              "type": "array"
            }
          },
          "required": [
            "actedAt",
            "selection",
            "legacyRevision"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.thesocialwire.appview.prepareReadState",
  "lexicon": 1
}