full diff

com.suibari.nagi.putPreferences

suibari.com +26 −0
From
bafyreifiqhkpemehcnob5iaurabmtzc7rtltkzdl7j4hsaffxfdaprxrm4 indexed 2026-11-11 04:02 UTC View this version
To
bafyreiakxamqf5giae3s3qepu2dsprsf4cbfijxb6xenxvllkwxmbbxj3m indexed 2026-11-11 04:42 UTC View this version

Compatibility

breaking 1 breaking change, 11 non-breaking changes.

Breaking changes (1)
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead", src: "com.suibari.nagi.putPreferences:input.adventRead", tgt: "com.suibari.nagi.putPreferences:input.adventRead.year", kind: "prop", name: Some("year") }
Non-breaking changes (11)
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.getPreferences#adventRead" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead.lastSeenDay" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead.openedDay" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead.year" }
  • AddedVertex AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:output.adventRead" }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.putPreferences:input", tgt: "com.suibari.nagi.putPreferences:input.adventRead", kind: "prop", name: Some("adventRead") }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.putPreferences:input.adventRead", tgt: "com.suibari.nagi.putPreferences:input.adventRead.lastSeenDay", kind: "prop", name: Some("lastSeenDay") }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.putPreferences:input.adventRead", tgt: "com.suibari.nagi.putPreferences:input.adventRead.openedDay", kind: "prop", name: Some("openedDay") }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.putPreferences:output", tgt: "com.suibari.nagi.putPreferences:output.adventRead", kind: "prop", name: Some("adventRead") }
  • AddedEdge AddedEdge { src: "com.suibari.nagi.putPreferences:output.adventRead", tgt: "com.suibari.nagi.getPreferences#adventRead", kind: "ref", name: None }

Migration guidance

Added

  • AddedVertex { vertex_id: "com.suibari.nagi.getPreferences#adventRead" }
  • AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead" }
  • AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead.lastSeenDay" }
  • AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead.openedDay" }
  • AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead.year" }
  • AddedVertex { vertex_id: "com.suibari.nagi.putPreferences:output.adventRead" }

Notes

  • Breaking: RequiredEdgeAdded { vertex_id: "com.suibari.nagi.putPreferences:input.adventRead", src: "com.suibari.nagi.putPreferences:input.adventRead", tgt: "com.suibari.nagi.putPreferences:input.adventRead.year", kind: "prop", name: Some("year") }
  • Non-breaking: AddedEdge { src: "com.suibari.nagi.putPreferences:input", tgt: "com.suibari.nagi.putPreferences:input.adventRead", kind: "prop", name: Some("adventRead") }
  • Non-breaking: AddedEdge { src: "com.suibari.nagi.putPreferences:input.adventRead", tgt: "com.suibari.nagi.putPreferences:input.adventRead.lastSeenDay", kind: "prop", name: Some("lastSeenDay") }
  • Non-breaking: AddedEdge { src: "com.suibari.nagi.putPreferences:input.adventRead", tgt: "com.suibari.nagi.putPreferences:input.adventRead.openedDay", kind: "prop", name: Some("openedDay") }
  • Non-breaking: AddedEdge { src: "com.suibari.nagi.putPreferences:output", tgt: "com.suibari.nagi.putPreferences:output.adventRead", kind: "prop", name: Some("adventRead") }
  • Non-breaking: AddedEdge { src: "com.suibari.nagi.putPreferences:output.adventRead", tgt: "com.suibari.nagi.getPreferences#adventRead", kind: "ref", name: None }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "同期対象の本人設定を書き込む。既読位置は単調マージ、配列・言語・コンテンツ表示設定・通知設定・最後のブックマークフォルダは updatedAt による後勝ち。各項目は省略でき、送った分だけを更新する。",
66 "errors": [
77 {
88 "name": "AuthRequired"
99 },
1010 {
1111 "name": "InvalidRequest"
1212 }
1313 ],
1414 "input": {
1515 "encoding": "application/json",
1616 "schema": {
1717 "properties": {
18 "adventRead": {
19 "description": "送った項目だけを進める。既読の日は戻らず、開封済みの日は消えない。",
20 "properties": {
21 "lastSeenDay": {
22 "maximum": 25,
23 "minimum": 0,
24 "type": "integer"
25 },
26 "openedDay": {
27 "maximum": 25,
28 "minimum": 1,
29 "type": "integer"
30 },
31 "year": {
32 "type": "integer"
33 }
34 },
35 "required": [
36 "year"
37 ],
38 "type": "object"
39 },
1840 "chronicleReadYears": {
1941 "description": "年ごとの既読ハッシュ。過去の版は蓄積せず、現在の年表内容と一致する版だけを保存する。",
2042 "items": {
2143 "ref": "com.suibari.nagi.getChronicle#readYear",
2244 "type": "ref"
2345 },
2446 "maxLength": 100,
2547 "type": "array"
2648 },
2749 "detectedTimezone": {
2850 "description": "Nagi を開いたときにブラウザが検出したタイムゾーン(IANA 名)。手動で選んでいる間は送らない。UTC や Etc/* は受け取っても使わない。",
2951 "maxLength": 64,
3052 "type": "string"
3153 },
3254 "diaryDay": {
3355 "description": "日記の1日の区切り。送った項目だけを変える。",
3456 "properties": {
3557 "startHour": {
3658 "description": "区切りの時刻(18〜23, 0〜6)。",
3759 "maximum": 23,
3860 "minimum": 0,
3961 "type": "integer"
4062 },
4163 "timezone": {
4264 "description": "手動のタイムゾーン。null を送ると自動検出に戻す。",
4365 "maxLength": 64,
4466 "type": "string"
4567 }
4668 },
4769 "type": "object"
4870 },
4971 "emojiFavorites": {
5072 "items": {
5173 "type": "unknown"
5274 },
5375 "maxLength": 32,
5476 "type": "array"
5577 },
5678 "emojiFavoritesUpdatedAt": {
5779 "description": "emojiFavorites を送るときは必須。保存済みより古ければ書き込まない。",
5880 "format": "datetime",
5981 "type": "string"
6082 },
6183 "feedTabs": {
6284 "items": {
6385 "ref": "com.suibari.nagi.getPreferences#feedTab",
6486 "type": "ref"
6587 },
6688 "maxLength": 16,
6789 "type": "array"
6890 },
6991 "feedTabsUpdatedAt": {
7092 "description": "feedTabs を送るときは必須。保存済みより古ければ書き込まない。",
7193 "format": "datetime",
7294 "type": "string"
7395 },
7496 "languagePreferences": {
7597 "ref": "com.suibari.nagi.getPreferences#languagePreferences",
7698 "type": "ref"
7799 },
78100 "languagePreferencesUpdatedAt": {
79101 "format": "datetime",
80102 "type": "string"
81103 },
82104 "lastBookmarkFolderId": {
83105 "maxLength": 64,
84106 "nullable": true,
85107 "type": "string"
86108 },
87109 "lastBookmarkFolderUpdatedAt": {
88110 "format": "datetime",
89111 "type": "string"
90112 },
91113 "moderationPreferences": {
92114 "ref": "com.suibari.nagi.getPreferences#moderationPreferences",
93115 "type": "ref"
94116 },
95117 "moderationPreferencesUpdatedAt": {
96118 "format": "datetime",
97119 "type": "string"
98120 },
99121 "notificationPreferences": {
100122 "description": "全カテゴリ分を丸ごと置き換える。",
101123 "ref": "com.suibari.nagi.getPreferences#notificationPreferences",
102124 "type": "ref"
103125 },
104126 "notificationPreferencesUpdatedAt": {
105127 "description": "notificationPreferences を送るときは必須。保存済みより古ければ書き込まない。",
106128 "format": "datetime",
107129 "type": "string"
108130 },
109131 "preferredName": {
110132 "description": "botたんに呼んでほしい名前。空文字を送ると登録を解除し、表示名に戻す。送らなければ変更しない。",
111133 "maxGraphemes": 40,
112134 "maxLength": 120,
113135 "type": "string"
114136 },
115137 "readPositions": {
116138 "items": {
117139 "ref": "com.suibari.nagi.getPreferences#readPosition",
118140 "type": "ref"
119141 },
120142 "maxLength": 16,
121143 "type": "array"
122144 },
123145 "replyFreq": {
124146 "description": "botたんからの返信確率(0〜100%)。送らなければ変更しない。",
125147 "maximum": 100,
126148 "minimum": 0,
127149 "type": "integer"
128150 },
129151 "tagFavorites": {
130152 "items": {
131153 "maxLength": 64,
132154 "type": "string"
133155 },
134156 "maxLength": 32,
135157 "type": "array"
136158 },
137159 "tagFavoritesUpdatedAt": {
138160 "description": "tagFavorites を送るときは必須。保存済みより古ければ書き込まない。",
139161 "format": "datetime",
140162 "type": "string"
141163 }
142164 },
143165 "type": "object"
144166 }
145167 },
146168 "output": {
147169 "encoding": "application/json",
148170 "schema": {
149171 "properties": {
172 "adventRead": {
173 "ref": "com.suibari.nagi.getPreferences#adventRead",
174 "type": "ref"
175 },
150176 "chronicleReadYears": {
151177 "description": "年ごとの既読ハッシュ。過去の版は蓄積せず、現在の年表内容と一致する版だけを保存する。",
152178 "items": {
153179 "ref": "com.suibari.nagi.getChronicle#readYear",
154180 "type": "ref"
155181 },
156182 "type": "array"
157183 },
158184 "emojiFavorites": {
159185 "items": {
160186 "type": "unknown"
161187 },
162188 "maxLength": 32,
163189 "type": "array"
164190 },
165191 "emojiFavoritesUpdatedAt": {
166192 "format": "datetime",
167193 "type": "string"
168194 },
169195 "feedTabs": {
170196 "items": {
171197 "ref": "com.suibari.nagi.getPreferences#feedTab",
172198 "type": "ref"
173199 },
174200 "maxLength": 16,
175201 "type": "array"
176202 },
177203 "feedTabsUpdatedAt": {
178204 "format": "datetime",
179205 "type": "string"
180206 },
181207 "languagePreferences": {
182208 "ref": "com.suibari.nagi.getPreferences#languagePreferences",
183209 "type": "ref"
184210 },
185211 "languagePreferencesUpdatedAt": {
186212 "format": "datetime",
187213 "type": "string"
188214 },
189215 "lastBookmarkFolderId": {
190216 "maxLength": 64,
191217 "type": "string"
192218 },
193219 "lastBookmarkFolderUpdatedAt": {
194220 "format": "datetime",
195221 "type": "string"
196222 },
197223 "moderationPreferences": {
198224 "ref": "com.suibari.nagi.getPreferences#moderationPreferences",
199225 "type": "ref"
200226 },
201227 "moderationPreferencesUpdatedAt": {
202228 "format": "datetime",
203229 "type": "string"
204230 },
205231 "notificationPreferences": {
206232 "ref": "com.suibari.nagi.getPreferences#notificationPreferences",
207233 "type": "ref"
208234 },
209235 "notificationPreferencesUpdatedAt": {
210236 "format": "datetime",
211237 "type": "string"
212238 },
213239 "preferredName": {
214240 "description": "botたんに呼んでほしい名前。省略時は未設定=表示名で呼ばれる。",
215241 "maxGraphemes": 40,
216242 "maxLength": 120,
217243 "type": "string"
218244 },
219245 "readPositions": {
220246 "description": "マージ後の確定値。送った位置が負けた場合は保存済みの方が返る。",
221247 "items": {
222248 "ref": "com.suibari.nagi.getPreferences#readPosition",
223249 "type": "ref"
224250 },
225251 "type": "array"
226252 },
227253 "replyFreq": {
228254 "description": "botたんからの返信確率(0〜100%)。",
229255 "maximum": 100,
230256 "minimum": 0,
231257 "type": "integer"
232258 },
233259 "tagFavorites": {
234260 "items": {
235261 "maxLength": 64,
236262 "type": "string"
237263 },
238264 "maxLength": 32,
239265 "type": "array"
240266 },
241267 "tagFavoritesUpdatedAt": {
242268 "format": "datetime",
243269 "type": "string"
244270 }
245271 },
246272 "required": [
247273 "readPositions",
248274 "emojiFavorites"
249275 ],
250276 "type": "object"
251277 }
252278 },
253279 "type": "procedure"
254280 }
255281 },
256282 "id": "com.suibari.nagi.putPreferences",
257283 "lexicon": 1
258284}

Compare other versions