com.suibari.nagi.drawCard

suibari.com

Schema Diff

+43 -1

From

CID
bafyreihcj7ixfpz...
Indexed At
2026-07-25 10:15 UTC
View this version

To

CID
bafyreibgmer6i23...
Indexed At
2026-08-18 17:37 UTC
View this version

Compatibility Analysis

Breaking Changes Detected

1 breaking change, 13 non-breaking changes.

Breaking Changes (1)
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "com.suibari.nagi.drawCard:output", src: "com.suibari.nagi.drawCard:output", tgt: "com.suibari.nagi.drawCard:output.source", kind: "prop", name: Some("source") }
Non-Breaking Changes (13)
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input.guestToken" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input.reactionUri" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input.source" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.cards" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.cards:items" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.source" }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.drawCard", tgt: "com.suibari.nagi.drawCard:input", kind: "prop", name: Some("input") }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.drawCard:input", tgt: "com.suibari.nagi.drawCard:input.guestToken", kind: "prop", name: Some("guestToken") }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.drawCard:input", tgt: "com.suibari.nagi.drawCard:input.reactionUri", kind: "prop", name: Some("reactionUri") }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.drawCard:input", tgt: "com.suibari.nagi.drawCard:input.source", kind: "prop", name: Some("source") }
  • 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:input" }
  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input.guestToken" }
  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input.reactionUri" }
  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input.source" }
  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.cards" }
  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.cards:items" }
  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:output.source" }

Additional Notes

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

Compare Other Versions

Lexicon Garden

@