app.thesocialwire.appview.markReadBefore

Mark only unread indexed stories published before an exclusive cutoff in a viewer-owned feed scope. Returns the marked entryIds for client read-state reconciliation.

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

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Mark only unread indexed stories published before an exclusive cutoff in a viewer-owned feed scope. Returns the marked entryIds for client read-state reconciliation.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "UpstreamUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "before": {
              "description": "Exclusive publication-time cutoff from getReadAgeOptions.",
              "format": "datetime",
              "type": "string"
            },
            "scope": {
              "ref": "app.thesocialwire.appview.markAllRead#scope",
              "type": "ref"
            }
          },
          "required": [
            "scope",
            "before"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "entryIds": {
              "description": "Identifiers of stories marked by this request, for client read-state reconciliation.",
              "items": {
                "maxLength": 2048,
                "type": "string"
              },
              "type": "array"
            },
            "marked": {
              "minimum": 0,
              "type": "integer"
            },
            "readAt": {
              "format": "datetime",
              "type": "string"
            },
            "unreadCounts": {
              "ref": "#unreadCounts",
              "type": "ref"
            }
          },
          "required": [
            "marked",
            "entryIds",
            "readAt",
            "unreadCounts"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "unreadCounts": {
      "description": "Publication identifier to nonnegative integer unread count. If recounting fails after read marks commit, the procedure still succeeds with marked entryIds and an empty object here. Missing keys mean unknown: preserve existing counts until a later refresh rather than replacing them with zero.",
      "type": "object"
    }
  },
  "id": "app.thesocialwire.appview.markReadBefore",
  "lexicon": 1
}