{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "A member's read state in one channel.",
"properties": {
"channel_id": {
"description": "The channel.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": "string"
},
"last_message_id": {
"description": "The channel's newest timeline message (omitted in READY, where the channel entry has\nit).",
"pattern": "^[1-9][0-9]{0,18}$",
"type": [
"string",
"null"
]
},
"last_read_id": {
"description": "The read cursor: a comparator, possibly a synthetic id (mark unread writes\n`message_id − 1`). Absent = nothing read.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": [
"string",
"null"
]
},
"mention_count": {
"description": "Unread mentions (a muted channel counts direct mentions only).",
"format": "uint32",
"minimum": 0,
"type": "integer"
},
"muted": {
"description": "The member muted the channel; present only when true.",
"type": "boolean"
},
"seq": {
"default": 0,
"description": "The member change-log head this state is current as of.",
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"unread": {
"description": "Whether a message by someone else is past the cursor.",
"type": "boolean"
},
"unread_count": {
"default": 0,
"description": "Since 0.10.0: how many timeline messages are past the cursor (the messages behind\n`unread`: top-level ones and replies also sent to the channel, live, that the member can\nread), capped at [`UNREAD_COUNT_CAP`]: `99` means 99 or more. `0` when `unread` is false.\nOlder servers leave it out (read as `0`; use `unread`).",
"format": "uint32",
"minimum": 0,
"type": "integer"
}
},
"required": [
"channel_id",
"mention_count",
"unread"
],
"title": "ReadState",
"type": "object"
}