app.didpic.chat.markRead

lexicons.didpic.app

Schema Diff

+11 -1

From

CID
bafyreifyjx4x5cs...
Indexed At
2026-10-10 08:21 UTC
View this version

To

CID
bafyreicqc3pmvyp...
Indexed At
2026-10-10 10:28 UTC
View this version

Compatibility Analysis

Backward Compatible

Backward compatible. 4 non-breaking changes.

Non-Breaking Changes (4)
  • AddedVertex AddedVertex { vertex_id: "app.didpic.chat.markRead:input.token" }
  • AddedVertex AddedVertex { vertex_id: "app.didpic.chat.markRead:output.badge" }
  • AddedEdge AddedEdge { src: "app.didpic.chat.markRead:input", tgt: "app.didpic.chat.markRead:input.token", kind: "prop", name: Some("token") }
  • AddedEdge AddedEdge { src: "app.didpic.chat.markRead:output", tgt: "app.didpic.chat.markRead:output.badge", kind: "prop", name: Some("badge") }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "app.didpic.chat.markRead:input.token" }
  • AddedVertex { vertex_id: "app.didpic.chat.markRead:output.badge" }

Additional Notes

  • Non-breaking: AddedEdge { src: "app.didpic.chat.markRead:input", tgt: "app.didpic.chat.markRead:input.token", kind: "prop", name: Some("token") }
  • Non-breaking: AddedEdge { src: "app.didpic.chat.markRead:output", tgt: "app.didpic.chat.markRead:output.badge", kind: "prop", name: Some("badge") }
1 1
{
2 2
  "$type": "com.atproto.lexicon.schema",
3 3
  "defs": {
4 4
    "main": {
5 5
      "description": "Mark a conversation as read by the caller up to its most recent message.",
6 6
      "input": {
7 7
        "encoding": "application/json",
8 8
        "schema": {
9 9
          "properties": {
10 10
            "conversationId": {
11 11
              "type": "string"
12 +
            },
13 +
            "token": {
14 +
              "description": "Caller's push token. When supplied and bound to the viewer, the response carries the post-update device badge.",
15 +
              "type": "string"
12 16
            }
13 17
          },
14 18
          "required": [
15 19
            "conversationId"
16 20
          ],
17 21
          "type": "object"
18 22
        }
19 23
      },
20 24
      "output": {
21 25
        "encoding": "application/json",
22 26
        "schema": {
23 -
          "properties": {},
27 +
          "properties": {
28 +
            "badge": {
29 +
              "description": "Device-wide unread sum (notifications + chat) across every DID bound to the supplied token.",
30 +
              "minimum": 0,
31 +
              "type": "integer"
32 +
            }
33 +
          },
24 34
          "type": "object"
25 35
        }
26 36
      },
27 37
      "type": "procedure"
28 38
    }
29 39
  },
30 40
  "id": "app.didpic.chat.markRead",
31 41
  "lexicon": 1
32 42
}

Compare Other Versions

Lexicon Garden

@