com.suibari.nagi.drawCard

suibari.com

Schema Diff

+13 -4

From

CID
bafyreid7oykvpxe...
Indexed At
2026-08-15 17:15 UTC
View this version

To

CID
bafyreibnekfzbfh...
Indexed At
2026-08-18 15:21 UTC
View this version

Compatibility Analysis

Breaking Changes Detected

2 breaking changes, 4 non-breaking changes.

Breaking Changes (2)
  • ConstraintTightened ConstraintTightened { vertex_id: "com.suibari.nagi.drawCard:input.source", sort: "knownValues", old_value: "[\"my_nagi\",\"reaction\"]", new_value: "[\"my_nagi\",\"reaction\",\"anniversary\"]" }
  • ConstraintTightened ConstraintTightened { vertex_id: "com.suibari.nagi.drawCard:output.source", sort: "knownValues", old_value: "[\"my_nagi\",\"reaction\"]", new_value: "[\"my_nagi\",\"reaction\",\"anniversary\"]" }
Non-Breaking Changes (4)
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.cards" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.cards:items" }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.drawCard:output", tgt: "com.suibari.nagi.drawCard:output.cards", kind: "prop", name: Some("cards") }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.drawCard:output.cards", tgt: "com.suibari.nagi.drawCard:output.cards:items", kind: "items", name: None }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.cards" }
  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.cards:items" }

Constraint Changes

  • ConstraintTightened ConstraintTightened { vertex_id: "com.suibari.nagi.drawCard:output.source", sort: "knownValues", old_value: "[\"my_nagi\",\"reaction\"]", new_value: "[\"my_nagi\",\"reaction\",\"anniversary\"]" }
  • ConstraintTightened ConstraintTightened { vertex_id: "com.suibari.nagi.drawCard:input.source", sort: "knownValues", old_value: "[\"my_nagi\",\"reaction\"]", new_value: "[\"my_nagi\",\"reaction\",\"anniversary\"]" }

Additional Notes

  • Non-breaking: AddedEdge { src: "com.suibari.nagi.drawCard:output", tgt: "com.suibari.nagi.drawCard:output.cards", kind: "prop", name: Some("cards") }
  • Non-breaking: AddedEdge { src: "com.suibari.nagi.drawCard:output.cards", tgt: "com.suibari.nagi.drawCard:output.cards:items", kind: "items", name: None }
1 1
{
2 2
  "$type": "com.atproto.lexicon.schema",
3 3
  "defs": {
4 4
    "main": {
5 -
      "description": "全肯定カードを1枚引く。my Nagiの通常枠と他ユーザーへのリアクション枠を1日各1回利用できる(JST 4:00 が日付境界)。同じ枠を既に引いている場合は、そのカードをそのまま返す(冪等)。抽選はサーバ側で行う。",
5 +
      "description": "全肯定カードを1枚引く。my Nagiの通常枠と他ユーザーへのリアクション枠を1日各1回利用できる(JST 4:00 が日付境界)。同じ枠を既に引いている場合は、そのカードをそのまま返す(冪等)。抽選はサーバ側で行う。source=anniversary は抽選ではなく、その日が記念日の人へ未受領ぶんを一括で配る(同じ記念日は1年に1枚)。",
6 6
      "errors": [
7 7
        {
8 8
          "name": "AuthRequired"
9 9
        }
10 10
      ],
11 11
      "input": {
12 12
        "encoding": "application/json",
13 13
        "schema": {
14 14
          "properties": {
15 15
            "reactionUri": {
16 16
              "description": "source=reaction のとき必須。本人が当日作成した他ユーザー宛てリアクション。",
17 17
              "format": "at-uri",
18 18
              "type": "string"
19 19
            },
20 20
            "source": {
21 -
              "description": "省略時は後方互換のためmy_nagi。",
21 +
              "description": "省略時は後方互換のためmy_nagi。anniversary は記念日カードの受け取りで、抽選枠を消費しない。",
22 22
              "knownValues": [
23 23
                "my_nagi",
24 -
                "reaction"
24 +
                "reaction",
25 +
                "anniversary"
25 26
              ],
26 27
              "type": "string"
27 28
            }
28 29
          },
29 30
          "type": "object"
30 31
        }
31 32
      },
32 33
      "output": {
33 34
        "encoding": "application/json",
34 35
        "schema": {
35 36
          "properties": {
36 37
            "alreadyDrawn": {
37 38
              "description": "true なら本日は既に引き済みで、返しているのはそのカード。",
38 39
              "type": "boolean"
39 40
            },
40 41
            "card": {
41 42
              "description": "引いたカード(定義 + 所持情報)。botたんコメントは非同期生成なので初回は空。",
42 43
              "type": "unknown"
43 44
            },
45 +
            "cards": {
46 +
              "description": "source=anniversary のみ。同日に複数の記念日が重なることがあるので今回受け取ったぶんを全部返す。card はこの先頭と同じ。",
47 +
              "items": {
48 +
                "type": "unknown"
49 +
              },
50 +
              "type": "array"
51 +
            },
44 52
            "commentPending": {
45 53
              "description": "true の間は botたんコメントを生成中。クライアントは getCards で取り直す。",
46 54
              "type": "boolean"
47 55
            },
48 56
            "drawStatus": {
49 57
              "type": "unknown"
50 58
            },
51 59
            "isNew": {
52 60
              "description": "コレクション初登場なら true。既に持っているカードなら false。",
53 61
              "type": "boolean"
54 62
            },
55 63
            "source": {
56 64
              "knownValues": [
57 65
                "my_nagi",
58 -
                "reaction"
66 +
                "reaction",
67 +
                "anniversary"
59 68
              ],
60 69
              "type": "string"
61 70
            }
62 71
          },
63 72
          "required": [
64 73
            "card",
65 74
            "source",
66 75
            "alreadyDrawn",
67 76
            "drawStatus"
68 77
          ],
69 78
          "type": "object"
70 79
        }
71 80
      },
72 81
      "type": "procedure"
73 82
    }
74 83
  },
75 84
  "id": "com.suibari.nagi.drawCard",
76 85
  "lexicon": 1
77 86
}

Compare Other Versions

Lexicon Garden

@