06d2328eeb
* lexicon: misc chat-related tweaks/fixes * ozone: track convo ids on chat message reports * add changeset * fix tests --------- Co-authored-by: dholms <dtholmgren@gmail.com>
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"lexicon": 1,
|
|
"id": "chat.bsky.moderation.getMessageContext",
|
|
"defs": {
|
|
"main": {
|
|
"type": "query",
|
|
"parameters": {
|
|
"type": "params",
|
|
"required": ["messageId"],
|
|
"properties": {
|
|
"convoId": {
|
|
"type": "string",
|
|
"description": "Conversation that the message is from. NOTE: this field will eventually be required."
|
|
},
|
|
"messageId": { "type": "string" },
|
|
"before": { "type": "integer", "default": 5 },
|
|
"after": { "type": "integer", "default": 5 }
|
|
}
|
|
},
|
|
"output": {
|
|
"encoding": "application/json",
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["messages"],
|
|
"properties": {
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "union",
|
|
"refs": [
|
|
"chat.bsky.convo.defs#messageView",
|
|
"chat.bsky.convo.defs#deletedMessageView"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|