{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "A member's read state in one thread.",
"properties": {
"channel_id": {
"description": "The root's channel (always set by current servers).",
"pattern": "^[1-9][0-9]{0,18}$",
"type": [
"string",
"null"
]
},
"following": {
"default": false,
"description": "Whether the member follows the thread.",
"type": "boolean"
},
"last_read_id": {
"description": "The thread cursor; the root id when no reply was read (always set by current servers).",
"pattern": "^[1-9][0-9]{0,18}$",
"type": [
"string",
"null"
]
},
"last_reply_id": {
"description": "The newest live reply.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": [
"string",
"null"
]
},
"mention_count": {
"default": 0,
"description": "Unread mentions in the thread.",
"format": "uint32",
"minimum": 0,
"type": "integer"
},
"root_id": {
"description": "The thread root.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": "string"
},
"seq": {
"default": 0,
"description": "The member change-log head this state is current as of.",
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"unread": {
"default": false,
"description": "Whether a reply is past the cursor.",
"type": "boolean"
},
"unread_replies": {
"default": 0,
"description": "Live replies past the cursor (exact, no cap).",
"format": "uint32",
"minimum": 0,
"type": "integer"
}
},
"required": [
"root_id"
],
"title": "ThreadReadState",
"type": "object"
}