com.suibari.nagi.drawCard
Schema Diff
+4 -0
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
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
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
25
"description": "省略時は後方互換のためmy_nagi。anniversary は記念日カードの受け取りで、抽選枠を消費しない。",
22
26
"knownValues": [
23
27
"my_nagi",
24
28
"reaction",
25
29
"anniversary"
26
30
],
27
31
"type": "string"
28
32
}
29
33
},
30
34
"type": "object"
31
35
}
32
36
},
33
37
"output": {
34
38
"encoding": "application/json",
35
39
"schema": {
36
40
"properties": {
37
41
"alreadyDrawn": {
38
42
"description": "true なら本日は既に引き済みで、返しているのはそのカード。",
39
43
"type": "boolean"
40
44
},
41
45
"card": {
42
46
"description": "引いたカード(定義 + 所持情報)。botたんコメントは非同期生成なので初回は空。",
43
47
"type": "unknown"
44
48
},
45
49
"cards": {
46
50
"description": "source=anniversary のみ。同日に複数の記念日が重なることがあるので今回受け取ったぶんを全部返す。card はこの先頭と同じ。",
47
51
"items": {
48
52
"type": "unknown"
49
53
},
50
54
"type": "array"
51
55
},
52
56
"commentPending": {
53
57
"description": "true の間は botたんコメントを生成中。クライアントは getCards で取り直す。",
54
58
"type": "boolean"
55
59
},
56
60
"drawStatus": {
57
61
"type": "unknown"
58
62
},
59
63
"isNew": {
60
64
"description": "コレクション初登場なら true。既に持っているカードなら false。",
61
65
"type": "boolean"
62
66
},
63
67
"source": {
64
68
"knownValues": [
65
69
"my_nagi",
66
70
"reaction",
67
71
"anniversary"
68
72
],
69
73
"type": "string"
70
74
}
71
75
},
72
76
"required": [
73
77
"card",
74
78
"source",
75
79
"alreadyDrawn",
76
80
"drawStatus"
77
81
],
78
82
"type": "object"
79
83
}
80
84
},
81
85
"type": "procedure"
82
86
}
83
87
},
84
88
"id": "com.suibari.nagi.drawCard",
85
89
"lexicon": 1
86
90
}