{
"id": "chat.yakka.readMarker",
"defs": {
"main": {
"key": "any",
"type": "record",
"record": {
"type": "object",
"required": [
"space",
"lastSeen",
"updatedAt"
],
"properties": {
"space": {
"type": "string",
"format": "at-uri",
"description": "The space this marker is for. Also the record key, so a marker is upserted rather than accumulated."
},
"lastSeen": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "The last message the viewer has seen, by URI. Deliberately NOT yakka.chat's view sequence: that number is service-local and meaningless to another view (ADR 0012), so the portable form references the message and every app derives its own position. yakka.chat caches the derived sequence for unread math; this record stays the truth."
},
"updatedAt": {
"type": "string",
"format": "datetime"
}
}
},
"description": "How far the viewer has read in one space. Lives in the viewer's own chat.yakka.settings space, authority=self (ADR 0017), so read state follows the person across devices and into third-party clients."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}