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