chat.bsky.moderation.getMessageContext

bsky-lexicons.bsky.social

Schema Diff

+11 -3

From

CID
bafyreifnlsuf2xi...
Indexed At
2026-04-15 20:56 UTC
View this version

To

CID
bafyreih436hnrse...
Indexed At
2026-07-16 14:58 UTC
View this version

Compatibility Analysis

Breaking Changes Detected

3 breaking changes, 1 non-breaking change.

Breaking Changes (3)
  • RemovedVertex RemovedVertex { vertex_id: "chat.bsky.moderation.getMessageContext:output.messages:items:variant2" }
  • RemovedEdge RemovedEdge { src: "chat.bsky.moderation.getMessageContext:output.messages:items", tgt: "chat.bsky.moderation.getMessageContext:output.messages:items:variant1", kind: "variant", name: Some("chat.bsky.convo.defs#deletedMessageView") }
  • RemovedEdge RemovedEdge { src: "chat.bsky.moderation.getMessageContext:output.messages:items", tgt: "chat.bsky.moderation.getMessageContext:output.messages:items:variant2", kind: "variant", name: Some("chat.bsky.convo.defs#systemMessageView") }
Non-Breaking Changes (1)
  • AddedEdge AddedEdge { src: "chat.bsky.moderation.getMessageContext:output.messages:items", tgt: "chat.bsky.moderation.getMessageContext:output.messages:items:variant1", kind: "variant", name: Some("chat.bsky.convo.defs#systemMessageView") }

Migration Guidance

Removed Elements

  • RemovedVertex { vertex_id: "chat.bsky.moderation.getMessageContext:output.messages:items:variant2" }

Additional Notes

  • Breaking: RemovedEdge { src: "chat.bsky.moderation.getMessageContext:output.messages:items", tgt: "chat.bsky.moderation.getMessageContext:output.messages:items:variant1", kind: "variant", name: Some("chat.bsky.convo.defs#deletedMessageView") }
  • Breaking: RemovedEdge { src: "chat.bsky.moderation.getMessageContext:output.messages:items", tgt: "chat.bsky.moderation.getMessageContext:output.messages:items:variant2", kind: "variant", name: Some("chat.bsky.convo.defs#systemMessageView") }
  • Non-breaking: AddedEdge { src: "chat.bsky.moderation.getMessageContext:output.messages:items", tgt: "chat.bsky.moderation.getMessageContext:output.messages:items:variant1", kind: "variant", name: Some("chat.bsky.convo.defs#systemMessageView") }
1 1
{
2 2
  "id": "chat.bsky.moderation.getMessageContext",
3 3
  "defs": {
4 4
    "main": {
5 5
      "type": "query",
6 6
      "output": {
7 7
        "schema": {
8 8
          "type": "object",
9 9
          "required": [
10 10
            "messages"
11 11
          ],
12 12
          "properties": {
13 13
            "messages": {
14 14
              "type": "array",
15 15
              "items": {
16 16
                "refs": [
17 17
                  "chat.bsky.convo.defs#messageView",
18 -
                  "chat.bsky.convo.defs#deletedMessageView",
19 18
                  "chat.bsky.convo.defs#systemMessageView"
20 19
                ],
21 20
                "type": "union"
22 21
              }
23 22
            }
24 23
          }
25 24
        },
26 25
        "encoding": "application/json"
27 26
      },
28 27
      "parameters": {
29 28
        "type": "params",
30 29
        "required": [
31 30
          "messageId"
32 31
        ],
33 32
        "properties": {
34 33
          "after": {
35 34
            "type": "integer",
36 -
            "default": 5
35 +
            "default": 5,
36 +
            "description": "Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages after the target, up to `maxInterleavedSystemMessages` system messages immediately following the target are returned instead."
37 37
          },
38 38
          "before": {
39 39
            "type": "integer",
40 -
            "default": 5
40 +
            "default": 5,
41 +
            "description": "Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages before the target, up to `maxInterleavedSystemMessages` system messages immediately preceding the target are returned instead."
41 42
          },
42 43
          "convoId": {
43 44
            "type": "string",
44 45
            "description": "Conversation that the message is from. NOTE: this field will eventually be required."
45 46
          },
46 47
          "messageId": {
47 48
            "type": "string"
49 +
          },
50 +
          "maxInterleavedSystemMessages": {
51 +
            "type": "integer",
52 +
            "default": 10,
53 +
            "maximum": 1000,
54 +
            "minimum": 0,
55 +
            "description": "Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept."
48 56
          }
49 57
        }
50 58
      }
51 59
    }
52 60
  },
53 61
  "$type": "com.atproto.lexicon.schema",
54 62
  "lexicon": 1
55 63
}

Compare Other Versions

Lexicon Garden

@