com.suibari.nagi.drawCard

suibari.com

Schema Diff

+4 -0

From

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

To

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

Compatibility Analysis

Backward Compatible

Backward compatible. 2 non-breaking changes.

Non-Breaking Changes (2)
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input.guestToken" }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.drawCard:input", tgt: "com.suibari.nagi.drawCard:input.guestToken", kind: "prop", name: Some("guestToken") }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "com.suibari.nagi.drawCard:input.guestToken" }

Additional Notes

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

Compare Other Versions

Lexicon Garden

@