{
"id": "social.colibri.beta.channel.read",
"defs": {
"main": {
"key": "any",
"type": "record",
"record": {
"type": "object",
"required": [
"community",
"cursors"
],
"properties": {
"cursors": {
"type": "array",
"items": {
"ref": "#cursor",
"type": "ref"
},
"description": "One cursor per read channel."
},
"community": {
"type": "string",
"format": "did",
"description": "The community these cursors belong to. Matches the record key."
}
}
},
"description": "Read state for one community's channels. The record key is the community DID, which bounds each record to a community's channel count and makes leaving a community a single delete."
},
"cursor": {
"type": "object",
"required": [
"channel",
"cursor"
],
"properties": {
"cursor": {
"type": "string",
"format": "tid",
"description": "Record key of the last message read. Message keys are TIDs, so they order by time."
},
"channel": {
"type": "string",
"format": "record-key",
"description": "The channel's space key."
}
},
"description": "The last message read in one channel."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}