full diff

tools.ozone.inbox.defs

From
bafyreidt5cwylevqwmjsuq7s6zqi33vttejv63zgufxrizdgqyugl2zwxm indexed 2026-10-07 18:19 UTC View this version
To
bafyreiedged2hwzoith3rlx3sgfgj23w5pemxzjnusmwuu64qe34og4fmy indexed 2026-10-14 15:12 UTC View this version

Compatibility

breaking 5 breaking changes, 7 non-breaking changes.

Breaking changes (5)
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "tools.ozone.inbox.defs#notificationPreferences", src: "tools.ozone.inbox.defs#notificationPreferences", tgt: "tools.ozone.inbox.defs#notificationPreferences.labels", kind: "prop", name: Some("labels") }
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "tools.ozone.inbox.defs#notificationPreferences", src: "tools.ozone.inbox.defs#notificationPreferences", tgt: "tools.ozone.inbox.defs#notificationPreferences.reports", kind: "prop", name: Some("reports") }
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "tools.ozone.inbox.defs#notificationPreferences", src: "tools.ozone.inbox.defs#notificationPreferences", tgt: "tools.ozone.inbox.defs#notificationPreferences.account", kind: "prop", name: Some("account") }
  • RequiredEdgeRemoved RequiredEdgeRemoved { vertex_id: "tools.ozone.inbox.defs#notificationPreferences", src: "tools.ozone.inbox.defs#notificationPreferences", tgt: "tools.ozone.inbox.defs#notificationPreferences.push", kind: "prop", name: Some("push") }
  • RemovedVertex RemovedVertex { vertex_id: "tools.ozone.inbox.defs#notificationPreferences.push" }
Non-breaking changes (7)
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.inbox.defs#appealView.outcome" }
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.inbox.defs#notificationPreferences.account" }
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.inbox.defs#notificationPreferences.labels" }
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.inbox.defs#notificationPreferences.reports" }
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.inbox.defs#subjectRef.appealOutcome" }
  • AddedEdge AddedEdge { src: "tools.ozone.inbox.defs#appealView", tgt: "tools.ozone.inbox.defs#appealView.outcome", kind: "prop", name: Some("outcome") }
  • AddedEdge AddedEdge { src: "tools.ozone.inbox.defs#subjectRef", tgt: "tools.ozone.inbox.defs#subjectRef.appealOutcome", kind: "prop", name: Some("appealOutcome") }

Migration guidance

Removed

  • RemovedVertex { vertex_id: "tools.ozone.inbox.defs#notificationPreferences.push" }

Added

  • AddedVertex { vertex_id: "tools.ozone.inbox.defs#appealView.outcome" }
  • AddedVertex { vertex_id: "tools.ozone.inbox.defs#notificationPreferences.account" }
  • AddedVertex { vertex_id: "tools.ozone.inbox.defs#notificationPreferences.labels" }
  • AddedVertex { vertex_id: "tools.ozone.inbox.defs#notificationPreferences.reports" }
  • AddedVertex { vertex_id: "tools.ozone.inbox.defs#subjectRef.appealOutcome" }

Notes

  • Breaking: RequiredEdgeAdded { vertex_id: "tools.ozone.inbox.defs#notificationPreferences", src: "tools.ozone.inbox.defs#notificationPreferences", tgt: "tools.ozone.inbox.defs#notificationPreferences.labels", kind: "prop", name: Some("labels") }
  • Breaking: RequiredEdgeAdded { vertex_id: "tools.ozone.inbox.defs#notificationPreferences", src: "tools.ozone.inbox.defs#notificationPreferences", tgt: "tools.ozone.inbox.defs#notificationPreferences.reports", kind: "prop", name: Some("reports") }
  • Breaking: RequiredEdgeAdded { vertex_id: "tools.ozone.inbox.defs#notificationPreferences", src: "tools.ozone.inbox.defs#notificationPreferences", tgt: "tools.ozone.inbox.defs#notificationPreferences.account", kind: "prop", name: Some("account") }
  • Breaking: RequiredEdgeRemoved { vertex_id: "tools.ozone.inbox.defs#notificationPreferences", src: "tools.ozone.inbox.defs#notificationPreferences", tgt: "tools.ozone.inbox.defs#notificationPreferences.push", kind: "prop", name: Some("push") }
  • Non-breaking: AddedEdge { src: "tools.ozone.inbox.defs#appealView", tgt: "tools.ozone.inbox.defs#appealView.outcome", kind: "prop", name: Some("outcome") }
  • Non-breaking: AddedEdge { src: "tools.ozone.inbox.defs#subjectRef", tgt: "tools.ozone.inbox.defs#subjectRef.appealOutcome", kind: "prop", name: Some("appealOutcome") }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "actionView": {
55 "description": "A single moderation action taken against a subject.",
66 "properties": {
77 "createdAt": {
88 "format": "datetime",
99 "type": "string"
1010 },
1111 "expiresAt": {
1212 "format": "datetime",
1313 "type": "string"
1414 },
1515 "id": {
1616 "description": "Action ID (moderation event ID).",
1717 "type": "integer"
1818 },
1919 "labels": {
2020 "description": "Label values, for labelApplied/labelRemoved.",
2121 "items": {
2222 "type": "string"
2323 },
2424 "type": "array"
2525 },
2626 "policies": {
2727 "description": "Policies applied by a takedown action.",
2828 "items": {
2929 "ref": "#policyView",
3030 "type": "ref"
3131 },
3232 "type": "array"
3333 },
3434 "reversedAt": {
3535 "format": "datetime",
3636 "type": "string"
3737 },
3838 "scope": {
3939 "knownValues": [
4040 "network",
4141 "app",
4242 "labelOnly"
4343 ],
4444 "type": "string"
4545 },
4646 "type": {
4747 "description": "Public action type.",
4848 "type": "string"
4949 }
5050 },
5151 "required": [
5252 "id",
5353 "type",
5454 "createdAt"
5555 ],
5656 "type": "object"
5757 },
5858 "appealView": {
5959 "description": "The state of the viewer's appeal against the actions on a subject.",
6060 "properties": {
6161 "appealableUntil": {
6262 "format": "datetime",
6363 "type": "string"
6464 },
6565 "appealedAt": {
6666 "format": "datetime",
6767 "type": "string"
6868 },
69 "outcome": {
70 "description": "Decision on a resolved appeal.",
71 "knownValues": [
72 "approved",
73 "denied"
74 ],
75 "type": "string"
76 },
6977 "resolvedAt": {
7078 "description": "When the appeal's report was closed.",
7179 "format": "datetime",
7280 "type": "string"
7381 },
7482 "state": {
7583 "knownValues": [
7684 "none",
7785 "pending",
7886 "resolved",
7987 "superseded",
8088 "expired"
8189 ],
8290 "type": "string"
8391 }
8492 },
8593 "required": [
8694 "state"
8795 ],
8896 "type": "object"
8997 },
9098 "enforcementView": {
9199 "description": "The current enforcement state of a subject.",
92100 "properties": {
93101 "expiresAt": {
94102 "format": "datetime",
95103 "type": "string"
96104 },
97105 "labels": {
98106 "description": "Active label values on the subject, excluding negated and expired labels.",
99107 "items": {
100108 "type": "string"
101109 },
102110 "type": "array"
103111 },
104112 "scope": {
105113 "knownValues": [
106114 "network",
107115 "app",
108116 "labelOnly"
109117 ],
110118 "type": "string"
111119 },
112120 "state": {
113121 "knownValues": [
114122 "none",
115123 "labeled",
116124 "removed",
117125 "suspended",
118126 "takendown"
119127 ],
120128 "type": "string"
121129 }
122130 },
123131 "required": [
124132 "state"
125133 ],
126134 "type": "object"
127135 },
128136 "notification": {
129137 "properties": {
130138 "createdAt": {
131139 "format": "datetime",
132140 "type": "string"
133141 },
134142 "id": {
135143 "type": "integer"
136144 },
137145 "isRead": {
138146 "type": "boolean"
139147 },
140148 "reason": {
141149 "knownValues": [
142150 "reportResolved",
143151 "reportReopened",
144152 "actionTaken",
145153 "actionReversed",
146154 "appealResolved",
147155 "standingChanged"
148156 ],
149157 "type": "string"
150158 },
151159 "target": {
152160 "refs": [
153161 "#reportRef",
154162 "#subjectRef",
155163 "#standingRef"
156164 ],
157165 "type": "union"
158166 }
159167 },
160168 "required": [
161169 "id",
162170 "reason",
163171 "target",
164172 "isRead",
165173 "createdAt"
166174 ],
167175 "type": "object"
168176 },
169177 "notificationPreferences": {
178 "description": "Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled.",
170179 "properties": {
171 "push": {
180 "account": {
181 "description": "Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels.",
182 "type": "boolean"
183 },
184 "labels": {
185 "description": "Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions).",
186 "type": "boolean"
187 },
188 "reports": {
189 "description": "Notify about outcomes of reports filed by the account (reportResolved and reportReopened).",
172190 "type": "boolean"
173191 }
174192 },
175193 "required": [
176 "push"
194 "reports",
195 "account",
196 "labels"
177197 ],
178198 "type": "object"
179199 },
180200 "policyView": {
181201 "properties": {
182202 "displayName": {
183203 "type": "string"
184204 },
185205 "key": {
186206 "type": "string"
187207 },
188208 "link": {
189209 "format": "uri",
190210 "type": "string"
191211 }
192212 },
193213 "required": [
194214 "key",
195215 "displayName",
196216 "link"
197217 ],
198218 "type": "object"
199219 },
200220 "reportRef": {
201221 "description": "Reference to a report by its report table ID, as used by getReport and Ozone's report detail page.",
202222 "properties": {
203223 "reportId": {
204224 "type": "integer"
205225 },
206226 "status": {
207227 "knownValues": [
208228 "pending",
209229 "resolved"
210230 ],
211231 "type": "string"
212232 },
213233 "subject": {
214234 "refs": [
215235 "com.atproto.admin.defs#repoRef",
216236 "com.atproto.repo.strongRef"
217237 ],
218238 "type": "union"
219239 }
220240 },
221241 "required": [
222242 "reportId"
223243 ],
224244 "type": "object"
225245 },
226246 "reportsSummary": {
227247 "description": "Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities.",
228248 "properties": {
229249 "firstReportedOn": {
230250 "description": "Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful.",
231251 "format": "datetime",
232252 "type": "string"
233253 },
234254 "lastReportedOn": {
235255 "description": "Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful.",
236256 "format": "datetime",
237257 "type": "string"
238258 },
239259 "reasonTypes": {
240260 "description": "Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal.",
241261 "items": {
242262 "type": "string"
243263 },
244264 "type": "array"
245265 }
246266 },
247267 "required": [
248268 "reasonTypes",
249269 "firstReportedOn",
250270 "lastReportedOn"
251271 ],
252272 "type": "object"
253273 },
254274 "standingRef": {
255275 "properties": {
256276 "previousStanding": {
257277 "knownValues": [
258278 "good",
259279 "warning",
260280 "atRisk"
261281 ],
262282 "type": "string"
263283 },
264284 "standing": {
265285 "knownValues": [
266286 "good",
267287 "warning",
268288 "atRisk"
269289 ],
270290 "type": "string"
271291 }
272292 },
273293 "required": [
274294 "standing"
275295 ],
276296 "type": "object"
277297 },
278298 "subjectRef": {
279299 "properties": {
280300 "actionId": {
281301 "type": "integer"
282302 },
283303 "actionType": {
284304 "type": "string"
285305 },
306 "appealOutcome": {
307 "description": "Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown.",
308 "knownValues": [
309 "approved",
310 "denied"
311 ],
312 "type": "string"
313 },
286314 "subject": {
287315 "refs": [
288316 "com.atproto.admin.defs#repoRef",
289317 "com.atproto.repo.strongRef"
290318 ],
291319 "type": "union"
292320 }
293321 },
294322 "required": [
295323 "subject"
296324 ],
297325 "type": "object"
298326 },
299327 "subjectView": {
300328 "description": "A subject belonging to the viewer that has moderation actions against it.",
301329 "properties": {
302330 "actionCount": {
303331 "type": "integer"
304332 },
305333 "appeal": {
306334 "ref": "#appealView",
307335 "type": "ref"
308336 },
309337 "availableActions": {
310338 "items": {
311339 "knownValues": [
312340 "appeal"
313341 ],
314342 "type": "string"
315343 },
316344 "type": "array"
317345 },
318346 "createdAt": {
319347 "format": "datetime",
320348 "type": "string"
321349 },
322350 "enforcement": {
323351 "ref": "#enforcementView",
324352 "type": "ref"
325353 },
326354 "isRead": {
327355 "type": "boolean"
328356 },
329357 "latestAction": {
330358 "ref": "#actionView",
331359 "type": "ref"
332360 },
333361 "src": {
334362 "description": "DID of the moderation service that took the actions.",
335363 "format": "did",
336364 "type": "string"
337365 },
338366 "subject": {
339367 "refs": [
340368 "com.atproto.admin.defs#repoRef",
341369 "com.atproto.repo.strongRef"
342370 ],
343371 "type": "union"
344372 },
345373 "updatedAt": {
346374 "format": "datetime",
347375 "type": "string"
348376 }
349377 },
350378 "required": [
351379 "src",
352380 "subject",
353381 "enforcement",
354382 "isRead",
355383 "createdAt",
356384 "updatedAt"
357385 ],
358386 "type": "object"
359387 },
360388 "subjectViewDetail": {
361389 "description": "A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page.",
362390 "properties": {
363391 "actions": {
364392 "description": "A page of action history, most recent first. Reversal timestamps include changes outside this page.",
365393 "items": {
366394 "ref": "#actionView",
367395 "type": "ref"
368396 },
369397 "maxLength": 100,
370398 "type": "array"
371399 },
372400 "appeal": {
373401 "ref": "#appealView",
374402 "type": "ref"
375403 },
376404 "availableActions": {
377405 "items": {
378406 "knownValues": [
379407 "appeal"
380408 ],
381409 "type": "string"
382410 },
383411 "type": "array"
384412 },
385413 "createdAt": {
386414 "format": "datetime",
387415 "type": "string"
388416 },
389417 "cursor": {
390418 "description": "Cursor for the next page of action history. Omitted when no older actions remain.",
391419 "type": "string"
392420 },
393421 "enforcement": {
394422 "ref": "#enforcementView",
395423 "type": "ref"
396424 },
397425 "isRead": {
398426 "type": "boolean"
399427 },
400428 "record": {
401429 "description": "Raw record JSON for the subject, when the subject is a record and the record is available.",
402430 "type": "unknown"
403431 },
404432 "reports": {
405433 "description": "Omitted when the subject has never been reported, e.g. proactive enforcement.",
406434 "ref": "#reportsSummary",
407435 "type": "ref"
408436 },
409437 "src": {
410438 "format": "did",
411439 "type": "string"
412440 },
413441 "subject": {
414442 "refs": [
415443 "com.atproto.admin.defs#repoRef",
416444 "com.atproto.repo.strongRef"
417445 ],
418446 "type": "union"
419447 },
420448 "updatedAt": {
421449 "format": "datetime",
422450 "type": "string"
423451 }
424452 },
425453 "required": [
426454 "src",
427455 "subject",
428456 "enforcement",
429457 "isRead",
430458 "actions",
431459 "createdAt",
432460 "updatedAt"
433461 ],
434462 "type": "object"
435463 }
436464 },
437465 "id": "tools.ozone.inbox.defs",
438466 "lexicon": 1
439467}

Compare other versions