{
"id": "chat.yakka.markRead",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"ref": "#input",
"type": "ref"
},
"encoding": "application/json"
},
"errors": [
{
"name": "ChannelNotFound"
}
],
"description": "Advance the viewer's read marker for a channel. The marker is a `chat.yakka.readMarker` record in the viewer's own settings space (ADR 0017), so it follows them to any client rather than living in this appview's idea of them.\n\nMonotonic: a marker never moves backwards, so an out-of-order call from a second tab cannot un-read a channel."
},
"input": {
"type": "object",
"required": [
"channel",
"seq"
],
"properties": {
"seq": {
"type": "integer",
"minimum": 1,
"description": "The highest sequence the viewer has seen."
},
"channel": {
"type": "string"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}