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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | appview.thesocialwire.app |
| Commit rev | 3n2ums6d3ku2h |
| Indexed |
Checks
Valid Lint pass{
"$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
}