{
"id": "chat.bsky.convo.defs",
"defs": {
"convoView": {
"type": "object",
"required": [
"id",
"rev",
"members",
"muted",
"unreadCount"
],
"properties": {
"id": {
"type": "string"
},
"rev": {
"type": "string"
},
"muted": {
"type": "boolean"
},
"status": {
"type": "string",
"knownValues": [
"request",
"accepted"
]
},
"members": {
"type": "array",
"items": {
"ref": "chat.bsky.actor.defs#profileViewBasic",
"type": "ref"
}
},
"lastMessage": {
"refs": [
"#messageView",
"#deletedMessageView"
],
"type": "union"
},
"unreadCount": {
"type": "integer"
},
"lastReaction": {
"refs": [
"#messageAndReactionView"
],
"type": "union"
}
}
},
"messageRef": {
"type": "object",
"required": [
"did",
"messageId",
"convoId"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"convoId": {
"type": "string"
},
"messageId": {
"type": "string"
}
}
},
"messageView": {
"type": "object",
"required": [
"id",
"rev",
"text",
"sender",
"sentAt"
],
"properties": {
"id": {
"type": "string"
},
"rev": {
"type": "string"
},
"text": {
"type": "string",
"maxLength": 10000,
"maxGraphemes": 1000
},
"embed": {
"refs": [
"app.bsky.embed.record#view"
],
"type": "union"
},
"facets": {
"type": "array",
"items": {
"ref": "app.bsky.richtext.facet",
"type": "ref"
},
"description": "Annotations of text (mentions, URLs, hashtags, etc)"
},
"sender": {
"ref": "#messageViewSender",
"type": "ref"
},
"sentAt": {
"type": "string",
"format": "datetime"
},
"reactions": {
"type": "array",
"items": {
"ref": "#reactionView",
"type": "ref"
},
"description": "Reactions to this message, in ascending order of creation time."
}
}
},
"logMuteConvo": {
"type": "object",
"required": [
"rev",
"convoId"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
}
}
},
"messageInput": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 10000,
"maxGraphemes": 1000
},
"embed": {
"refs": [
"app.bsky.embed.record"
],
"type": "union"
},
"facets": {
"type": "array",
"items": {
"ref": "app.bsky.richtext.facet",
"type": "ref"
},
"description": "Annotations of text (mentions, URLs, hashtags, etc)"
}
}
},
"reactionView": {
"type": "object",
"required": [
"value",
"sender",
"createdAt"
],
"properties": {
"value": {
"type": "string"
},
"sender": {
"ref": "#reactionViewSender",
"type": "ref"
},
"createdAt": {
"type": "string",
"format": "datetime"
}
}
},
"logBeginConvo": {
"type": "object",
"required": [
"rev",
"convoId"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
}
}
},
"logLeaveConvo": {
"type": "object",
"required": [
"rev",
"convoId"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
}
}
},
"logAcceptConvo": {
"type": "object",
"required": [
"rev",
"convoId"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
}
}
},
"logAddReaction": {
"type": "object",
"required": [
"rev",
"convoId",
"message",
"reaction"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
},
"message": {
"refs": [
"#messageView",
"#deletedMessageView"
],
"type": "union"
},
"reaction": {
"ref": "#reactionView",
"type": "ref"
}
}
},
"logReadMessage": {
"type": "object",
"required": [
"rev",
"convoId",
"message"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
},
"message": {
"refs": [
"#messageView",
"#deletedMessageView"
],
"type": "union"
}
}
},
"logUnmuteConvo": {
"type": "object",
"required": [
"rev",
"convoId"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
}
}
},
"logCreateMessage": {
"type": "object",
"required": [
"rev",
"convoId",
"message"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
},
"message": {
"refs": [
"#messageView",
"#deletedMessageView"
],
"type": "union"
}
}
},
"logDeleteMessage": {
"type": "object",
"required": [
"rev",
"convoId",
"message"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
},
"message": {
"refs": [
"#messageView",
"#deletedMessageView"
],
"type": "union"
}
}
},
"logRemoveReaction": {
"type": "object",
"required": [
"rev",
"convoId",
"message",
"reaction"
],
"properties": {
"rev": {
"type": "string"
},
"convoId": {
"type": "string"
},
"message": {
"refs": [
"#messageView",
"#deletedMessageView"
],
"type": "union"
},
"reaction": {
"ref": "#reactionView",
"type": "ref"
}
}
},
"messageViewSender": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
}
}
},
"deletedMessageView": {
"type": "object",
"required": [
"id",
"rev",
"sender",
"sentAt"
],
"properties": {
"id": {
"type": "string"
},
"rev": {
"type": "string"
},
"sender": {
"ref": "#messageViewSender",
"type": "ref"
},
"sentAt": {
"type": "string",
"format": "datetime"
}
}
},
"reactionViewSender": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
}
}
},
"messageAndReactionView": {
"type": "object",
"required": [
"message",
"reaction"
],
"properties": {
"message": {
"ref": "#messageView",
"type": "ref"
},
"reaction": {
"ref": "#reactionView",
"type": "ref"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}