full diff

tools.ozone.moderation.defs

From
bafyreie4vzhwikpfmgqq4l5io6cdsf5iw2fwq2pwbjv5usbgxuyllxvhea indexed 2026-10-03 21:31 UTC View this version
To
bafyreidon7bz3r3ouvshtbukdbyvjnwksvrgdtz265ze5ywmqz4jj6ya2a indexed 2026-10-07 18:19 UTC View this version

Compatibility

backward compatible Backward compatible. 8 non-breaking changes.

Non-breaking changes (8)
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.moderation.defs#modEventReport.appealActionId" }
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.moderation.defs#modEventReport.appealActionType" }
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.moderation.defs#modEventReport.appealLabel" }
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.moderation.defs#modEventReport.appealSubmittedBy" }
  • AddedEdge AddedEdge { src: "tools.ozone.moderation.defs#modEventReport", tgt: "tools.ozone.moderation.defs#modEventReport.appealActionId", kind: "prop", name: Some("appealActionId") }
  • AddedEdge AddedEdge { src: "tools.ozone.moderation.defs#modEventReport", tgt: "tools.ozone.moderation.defs#modEventReport.appealActionType", kind: "prop", name: Some("appealActionType") }
  • AddedEdge AddedEdge { src: "tools.ozone.moderation.defs#modEventReport", tgt: "tools.ozone.moderation.defs#modEventReport.appealLabel", kind: "prop", name: Some("appealLabel") }
  • AddedEdge AddedEdge { src: "tools.ozone.moderation.defs#modEventReport", tgt: "tools.ozone.moderation.defs#modEventReport.appealSubmittedBy", kind: "prop", name: Some("appealSubmittedBy") }

Migration guidance

Added

  • AddedVertex { vertex_id: "tools.ozone.moderation.defs#modEventReport.appealActionId" }
  • AddedVertex { vertex_id: "tools.ozone.moderation.defs#modEventReport.appealActionType" }
  • AddedVertex { vertex_id: "tools.ozone.moderation.defs#modEventReport.appealLabel" }
  • AddedVertex { vertex_id: "tools.ozone.moderation.defs#modEventReport.appealSubmittedBy" }

Notes

  • Non-breaking: AddedEdge { src: "tools.ozone.moderation.defs#modEventReport", tgt: "tools.ozone.moderation.defs#modEventReport.appealActionId", kind: "prop", name: Some("appealActionId") }
  • Non-breaking: AddedEdge { src: "tools.ozone.moderation.defs#modEventReport", tgt: "tools.ozone.moderation.defs#modEventReport.appealActionType", kind: "prop", name: Some("appealActionType") }
  • Non-breaking: AddedEdge { src: "tools.ozone.moderation.defs#modEventReport", tgt: "tools.ozone.moderation.defs#modEventReport.appealLabel", kind: "prop", name: Some("appealLabel") }
  • Non-breaking: AddedEdge { src: "tools.ozone.moderation.defs#modEventReport", tgt: "tools.ozone.moderation.defs#modEventReport.appealSubmittedBy", kind: "prop", name: Some("appealSubmittedBy") }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "accountEvent": {
55 "description": "Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",
66 "properties": {
77 "active": {
88 "description": "Indicates that the account has a repository which can be fetched from the host that emitted this event.",
99 "type": "boolean"
1010 },
1111 "comment": {
1212 "type": "string"
1313 },
1414 "status": {
1515 "knownValues": [
1616 "unknown",
1717 "deactivated",
1818 "deleted",
1919 "takendown",
2020 "suspended",
2121 "tombstoned"
2222 ],
2323 "type": "string"
2424 },
2525 "timestamp": {
2626 "format": "datetime",
2727 "type": "string"
2828 }
2929 },
3030 "required": [
3131 "timestamp",
3232 "active"
3333 ],
3434 "type": "object"
3535 },
3636 "accountHosting": {
3737 "properties": {
3838 "createdAt": {
3939 "format": "datetime",
4040 "type": "string"
4141 },
4242 "deactivatedAt": {
4343 "format": "datetime",
4444 "type": "string"
4545 },
4646 "deletedAt": {
4747 "format": "datetime",
4848 "type": "string"
4949 },
5050 "reactivatedAt": {
5151 "format": "datetime",
5252 "type": "string"
5353 },
5454 "status": {
5555 "knownValues": [
5656 "takendown",
5757 "suspended",
5858 "deleted",
5959 "deactivated",
6060 "unknown"
6161 ],
6262 "type": "string"
6363 },
6464 "updatedAt": {
6565 "format": "datetime",
6666 "type": "string"
6767 }
6868 },
6969 "required": [
7070 "status"
7171 ],
7272 "type": "object"
7373 },
7474 "accountStats": {
7575 "description": "Statistics about a particular account subject",
7676 "properties": {
7777 "appealCount": {
7878 "description": "Total number of appeals against a moderation action on the account",
7979 "type": "integer"
8080 },
8181 "escalateCount": {
8282 "description": "Number of times the account was escalated",
8383 "type": "integer"
8484 },
8585 "reportCount": {
8686 "description": "Total number of reports on the account",
8787 "type": "integer"
8888 },
8989 "suspendCount": {
9090 "description": "Number of times the account was suspended",
9191 "type": "integer"
9292 },
9393 "takedownCount": {
9494 "description": "Number of times the account was taken down",
9595 "type": "integer"
9696 }
9797 },
9898 "type": "object"
9999 },
100100 "accountStrike": {
101101 "description": "Strike information for an account",
102102 "properties": {
103103 "activeStrikeCount": {
104104 "description": "Current number of active strikes (excluding expired strikes)",
105105 "type": "integer"
106106 },
107107 "firstStrikeAt": {
108108 "description": "Timestamp of the first strike received",
109109 "format": "datetime",
110110 "type": "string"
111111 },
112112 "lastStrikeAt": {
113113 "description": "Timestamp of the most recent strike received",
114114 "format": "datetime",
115115 "type": "string"
116116 },
117117 "totalStrikeCount": {
118118 "description": "Total number of strikes ever received (including expired strikes)",
119119 "type": "integer"
120120 }
121121 },
122122 "type": "object"
123123 },
124124 "ageAssuranceEvent": {
125125 "description": "Age assurance info coming directly from users. Only works on DID subjects.",
126126 "properties": {
127127 "access": {
128128 "ref": "app.bsky.ageassurance.defs#access",
129129 "type": "ref"
130130 },
131131 "attemptId": {
132132 "description": "The unique identifier for this instance of the age assurance flow, in UUID format.",
133133 "type": "string"
134134 },
135135 "completeIp": {
136136 "description": "The IP address used when completing the AA flow.",
137137 "type": "string"
138138 },
139139 "completeUa": {
140140 "description": "The user agent used when completing the AA flow.",
141141 "type": "string"
142142 },
143143 "countryCode": {
144144 "description": "The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.",
145145 "type": "string"
146146 },
147147 "createdAt": {
148148 "description": "The date and time of this write operation.",
149149 "format": "datetime",
150150 "type": "string"
151151 },
152152 "initIp": {
153153 "description": "The IP address used when initiating the AA flow.",
154154 "type": "string"
155155 },
156156 "initUa": {
157157 "description": "The user agent used when initiating the AA flow.",
158158 "type": "string"
159159 },
160160 "regionCode": {
161161 "description": "The ISO 3166-2 region code provided when beginning the Age Assurance flow.",
162162 "type": "string"
163163 },
164164 "status": {
165165 "description": "The status of the Age Assurance process.",
166166 "knownValues": [
167167 "unknown",
168168 "pending",
169169 "assured"
170170 ],
171171 "type": "string"
172172 }
173173 },
174174 "required": [
175175 "createdAt",
176176 "status",
177177 "attemptId"
178178 ],
179179 "type": "object"
180180 },
181181 "ageAssuranceOverrideEvent": {
182182 "description": "Age assurance status override by moderators. Only works on DID subjects.",
183183 "properties": {
184184 "access": {
185185 "ref": "app.bsky.ageassurance.defs#access",
186186 "type": "ref"
187187 },
188188 "comment": {
189189 "description": "Comment describing the reason for the override.",
190190 "minLength": 1,
191191 "type": "string"
192192 },
193193 "status": {
194194 "description": "The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.",
195195 "knownValues": [
196196 "assured",
197197 "reset",
198198 "blocked"
199199 ],
200200 "type": "string"
201201 }
202202 },
203203 "required": [
204204 "comment",
205205 "status"
206206 ],
207207 "type": "object"
208208 },
209209 "ageAssurancePurgeEvent": {
210210 "description": "Purges all age assurance events for the subject. Only works on DID subjects. Moderator-only.",
211211 "properties": {
212212 "comment": {
213213 "description": "Comment describing the reason for the purge.",
214214 "minLength": 1,
215215 "type": "string"
216216 }
217217 },
218218 "required": [
219219 "comment"
220220 ],
221221 "type": "object"
222222 },
223223 "blobView": {
224224 "properties": {
225225 "cid": {
226226 "format": "cid",
227227 "type": "string"
228228 },
229229 "createdAt": {
230230 "format": "datetime",
231231 "type": "string"
232232 },
233233 "details": {
234234 "refs": [
235235 "#imageDetails",
236236 "#videoDetails"
237237 ],
238238 "type": "union"
239239 },
240240 "mimeType": {
241241 "type": "string"
242242 },
243243 "moderation": {
244244 "ref": "#moderation",
245245 "type": "ref"
246246 },
247247 "size": {
248248 "type": "integer"
249249 }
250250 },
251251 "required": [
252252 "cid",
253253 "mimeType",
254254 "size",
255255 "createdAt"
256256 ],
257257 "type": "object"
258258 },
259259 "cancelScheduledTakedownEvent": {
260260 "description": "Logs cancellation of a scheduled takedown action for an account.",
261261 "properties": {
262262 "comment": {
263263 "type": "string"
264264 }
265265 },
266266 "type": "object"
267267 },
268268 "convoView": {
269269 "properties": {
270270 "convoId": {
271271 "type": "string"
272272 },
273273 "did": {
274274 "format": "did",
275275 "type": "string"
276276 }
277277 },
278278 "required": [
279279 "did",
280280 "convoId"
281281 ],
282282 "type": "object"
283283 },
284284 "identityEvent": {
285285 "description": "Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",
286286 "properties": {
287287 "comment": {
288288 "type": "string"
289289 },
290290 "handle": {
291291 "format": "handle",
292292 "type": "string"
293293 },
294294 "pdsHost": {
295295 "format": "uri",
296296 "type": "string"
297297 },
298298 "timestamp": {
299299 "format": "datetime",
300300 "type": "string"
301301 },
302302 "tombstone": {
303303 "type": "boolean"
304304 }
305305 },
306306 "required": [
307307 "timestamp"
308308 ],
309309 "type": "object"
310310 },
311311 "imageDetails": {
312312 "properties": {
313313 "height": {
314314 "type": "integer"
315315 },
316316 "width": {
317317 "type": "integer"
318318 }
319319 },
320320 "required": [
321321 "width",
322322 "height"
323323 ],
324324 "type": "object"
325325 },
326326 "modEventAcknowledge": {
327327 "properties": {
328328 "acknowledgeAccountSubjects": {
329329 "description": "If true, all other reports on content authored by this account will be resolved (acknowledged).",
330330 "type": "boolean"
331331 },
332332 "comment": {
333333 "type": "string"
334334 }
335335 },
336336 "type": "object"
337337 },
338338 "modEventComment": {
339339 "description": "Add a comment to a subject. An empty comment will clear any previously set sticky comment.",
340340 "properties": {
341341 "comment": {
342342 "type": "string"
343343 },
344344 "sticky": {
345345 "description": "Make the comment persistent on the subject",
346346 "type": "boolean"
347347 }
348348 },
349349 "type": "object"
350350 },
351351 "modEventDivert": {
352352 "description": "Divert a record's blobs to a 3rd party service for further scanning/tagging",
353353 "properties": {
354354 "comment": {
355355 "type": "string"
356356 }
357357 },
358358 "type": "object"
359359 },
360360 "modEventEmail": {
361361 "description": "Keep a log of outgoing email to a user",
362362 "properties": {
363363 "comment": {
364364 "description": "Additional comment about the outgoing comm.",
365365 "type": "string"
366366 },
367367 "content": {
368368 "description": "The content of the email sent to the user.",
369369 "type": "string"
370370 },
371371 "isDelivered": {
372372 "description": "Indicates whether the email was successfully delivered to the user's inbox.",
373373 "type": "boolean"
374374 },
375375 "policies": {
376376 "description": "Names/Keywords of the policies that necessitated the email.",
377377 "items": {
378378 "type": "string"
379379 },
380380 "maxLength": 5,
381381 "type": "array"
382382 },
383383 "severityLevel": {
384384 "description": "Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense",
385385 "type": "string"
386386 },
387387 "strikeCount": {
388388 "description": "Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense.",
389389 "type": "integer"
390390 },
391391 "strikeExpiresAt": {
392392 "description": "When the strike should expire. If not provided, the strike never expires.",
393393 "format": "datetime",
394394 "type": "string"
395395 },
396396 "subjectLine": {
397397 "description": "The subject line of the email sent to the user.",
398398 "type": "string"
399399 }
400400 },
401401 "required": [
402402 "subjectLine"
403403 ],
404404 "type": "object"
405405 },
406406 "modEventEscalate": {
407407 "properties": {
408408 "comment": {
409409 "type": "string"
410410 }
411411 },
412412 "type": "object"
413413 },
414414 "modEventLabel": {
415415 "description": "Apply/Negate labels on a subject",
416416 "properties": {
417417 "comment": {
418418 "type": "string"
419419 },
420420 "createLabelVals": {
421421 "items": {
422422 "type": "string"
423423 },
424424 "type": "array"
425425 },
426426 "durationInHours": {
427427 "description": "Indicates how long the label will remain on the subject. Only applies on labels that are being added.",
428428 "type": "integer"
429429 },
430430 "negateLabelVals": {
431431 "items": {
432432 "type": "string"
433433 },
434434 "type": "array"
435435 }
436436 },
437437 "required": [
438438 "createLabelVals",
439439 "negateLabelVals"
440440 ],
441441 "type": "object"
442442 },
443443 "modEventMute": {
444444 "description": "Mute incoming reports on a subject",
445445 "properties": {
446446 "comment": {
447447 "type": "string"
448448 },
449449 "durationInHours": {
450450 "description": "Indicates how long the subject should remain muted.",
451451 "type": "integer"
452452 }
453453 },
454454 "required": [
455455 "durationInHours"
456456 ],
457457 "type": "object"
458458 },
459459 "modEventMuteReporter": {
460460 "description": "Mute incoming reports from an account",
461461 "properties": {
462462 "comment": {
463463 "type": "string"
464464 },
465465 "durationInHours": {
466466 "description": "Indicates how long the account should remain muted. Falsy value here means a permanent mute.",
467467 "type": "integer"
468468 }
469469 },
470470 "type": "object"
471471 },
472472 "modEventPriorityScore": {
473473 "description": "Set priority score of the subject. Higher score means higher priority.",
474474 "properties": {
475475 "comment": {
476476 "type": "string"
477477 },
478478 "score": {
479479 "maximum": 100,
480480 "minimum": 0,
481481 "type": "integer"
482482 }
483483 },
484484 "required": [
485485 "score"
486486 ],
487487 "type": "object"
488488 },
489489 "modEventReport": {
490490 "description": "Report a subject",
491491 "properties": {
492 "appealActionId": {
493 "type": "integer"
494 },
495 "appealActionType": {
496 "description": "Action reference type recorded when this appeal was submitted.",
497 "type": "string"
498 },
499 "appealLabel": {
500 "type": "string"
501 },
502 "appealSubmittedBy": {
503 "description": "Moderator who submitted this appeal on behalf of the affected account. Returned by moderator event APIs.",
504 "format": "did",
505 "type": "string"
506 },
492507 "comment": {
493508 "type": "string"
494509 },
495510 "isReporterMuted": {
496511 "description": "Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject.",
497512 "type": "boolean"
498513 },
499514 "reportType": {
500515 "ref": "com.atproto.moderation.defs#reasonType",
501516 "type": "ref"
502517 }
503518 },
504519 "required": [
505520 "reportType"
506521 ],
507522 "type": "object"
508523 },
509524 "modEventResolveAppeal": {
510525 "description": "Resolve appeal on a subject",
511526 "properties": {
512527 "comment": {
513528 "description": "Describe resolution.",
514529 "type": "string"
515530 }
516531 },
517532 "type": "object"
518533 },
519534 "modEventReverseTakedown": {
520535 "description": "Revert take down action on a subject",
521536 "properties": {
522537 "comment": {
523538 "description": "Describe reasoning behind the reversal.",
524539 "type": "string"
525540 },
526541 "policies": {
527542 "description": "Names/Keywords of the policy infraction for which takedown is being reversed.",
528543 "items": {
529544 "type": "string"
530545 },
531546 "maxLength": 5,
532547 "type": "array"
533548 },
534549 "severityLevel": {
535550 "description": "Severity level of the violation. Usually set from the last policy infraction's severity.",
536551 "type": "string"
537552 },
538553 "strikeCount": {
539554 "description": "Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity.",
540555 "type": "integer"
541556 }
542557 },
543558 "type": "object"
544559 },
545560 "modEventTag": {
546561 "description": "Add/Remove a tag on a subject",
547562 "properties": {
548563 "add": {
549564 "description": "Tags to be added to the subject. If already exists, won't be duplicated.",
550565 "items": {
551566 "type": "string"
552567 },
553568 "type": "array"
554569 },
555570 "comment": {
556571 "description": "Additional comment about added/removed tags.",
557572 "type": "string"
558573 },
559574 "durationInHours": {
560575 "description": "Indicates how long the tags being added should remain before automatically being removed. Only applies to tags being added.",
561576 "type": "integer"
562577 },
563578 "remove": {
564579 "description": "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated.",
565580 "items": {
566581 "type": "string"
567582 },
568583 "type": "array"
569584 }
570585 },
571586 "required": [
572587 "add",
573588 "remove"
574589 ],
575590 "type": "object"
576591 },
577592 "modEventTakedown": {
578593 "description": "Take down a subject permanently or temporarily",
579594 "properties": {
580595 "acknowledgeAccountSubjects": {
581596 "description": "If true, all other reports on content authored by this account will be resolved (acknowledged).",
582597 "type": "boolean"
583598 },
584599 "comment": {
585600 "type": "string"
586601 },
587602 "durationInHours": {
588603 "description": "Indicates how long the takedown should be in effect before automatically expiring.",
589604 "type": "integer"
590605 },
591606 "policies": {
592607 "description": "Names/Keywords of the policies that drove the decision.",
593608 "items": {
594609 "type": "string"
595610 },
596611 "maxLength": 5,
597612 "type": "array"
598613 },
599614 "severityLevel": {
600615 "description": "Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).",
601616 "type": "string"
602617 },
603618 "strikeCount": {
604619 "description": "Number of strikes to assign to the user for this violation.",
605620 "type": "integer"
606621 },
607622 "strikeExpiresAt": {
608623 "description": "When the strike should expire. If not provided, the strike never expires.",
609624 "format": "datetime",
610625 "type": "string"
611626 },
612627 "targetServices": {
613628 "description": "List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services.",
614629 "items": {
615630 "knownValues": [
616631 "appview",
617632 "pds"
618633 ],
619634 "type": "string"
620635 },
621636 "type": "array"
622637 }
623638 },
624639 "type": "object"
625640 },
626641 "modEventUnmute": {
627642 "description": "Unmute action on a subject",
628643 "properties": {
629644 "comment": {
630645 "description": "Describe reasoning behind the reversal.",
631646 "type": "string"
632647 }
633648 },
634649 "type": "object"
635650 },
636651 "modEventUnmuteReporter": {
637652 "description": "Unmute incoming reports from an account",
638653 "properties": {
639654 "comment": {
640655 "description": "Describe reasoning behind the reversal.",
641656 "type": "string"
642657 }
643658 },
644659 "type": "object"
645660 },
646661 "modEventView": {
647662 "properties": {
648663 "createdAt": {
649664 "format": "datetime",
650665 "type": "string"
651666 },
652667 "createdBy": {
653668 "format": "did",
654669 "type": "string"
655670 },
656671 "creatorHandle": {
657672 "type": "string"
658673 },
659674 "event": {
660675 "refs": [
661676 "#modEventTakedown",
662677 "#modEventReverseTakedown",
663678 "#modEventComment",
664679 "#modEventReport",
665680 "#modEventLabel",
666681 "#modEventAcknowledge",
667682 "#modEventEscalate",
668683 "#modEventMute",
669684 "#modEventUnmute",
670685 "#modEventMuteReporter",
671686 "#modEventUnmuteReporter",
672687 "#modEventEmail",
673688 "#modEventResolveAppeal",
674689 "#modEventDivert",
675690 "#modEventTag",
676691 "#accountEvent",
677692 "#identityEvent",
678693 "#recordEvent",
679694 "#modEventPriorityScore",
680695 "#ageAssuranceEvent",
681696 "#ageAssuranceOverrideEvent",
682697 "#ageAssurancePurgeEvent",
683698 "#revokeAccountCredentialsEvent",
684699 "#scheduleTakedownEvent",
685700 "#cancelScheduledTakedownEvent"
686701 ],
687702 "type": "union"
688703 },
689704 "id": {
690705 "type": "integer"
691706 },
692707 "modTool": {
693708 "ref": "#modTool",
694709 "type": "ref"
695710 },
696711 "subject": {
697712 "refs": [
698713 "com.atproto.admin.defs#repoRef",
699714 "com.atproto.repo.strongRef",
700715 "chat.bsky.convo.defs#messageRef",
701716 "chat.bsky.convo.defs#convoRef"
702717 ],
703718 "type": "union"
704719 },
705720 "subjectBlobCids": {
706721 "items": {
707722 "type": "string"
708723 },
709724 "type": "array"
710725 },
711726 "subjectHandle": {
712727 "type": "string"
713728 }
714729 },
715730 "required": [
716731 "id",
717732 "event",
718733 "subject",
719734 "subjectBlobCids",
720735 "createdBy",
721736 "createdAt"
722737 ],
723738 "type": "object"
724739 },
725740 "modEventViewDetail": {
726741 "properties": {
727742 "createdAt": {
728743 "format": "datetime",
729744 "type": "string"
730745 },
731746 "createdBy": {
732747 "format": "did",
733748 "type": "string"
734749 },
735750 "event": {
736751 "refs": [
737752 "#modEventTakedown",
738753 "#modEventReverseTakedown",
739754 "#modEventComment",
740755 "#modEventReport",
741756 "#modEventLabel",
742757 "#modEventAcknowledge",
743758 "#modEventEscalate",
744759 "#modEventMute",
745760 "#modEventUnmute",
746761 "#modEventMuteReporter",
747762 "#modEventUnmuteReporter",
748763 "#modEventEmail",
749764 "#modEventResolveAppeal",
750765 "#modEventDivert",
751766 "#modEventTag",
752767 "#accountEvent",
753768 "#identityEvent",
754769 "#recordEvent",
755770 "#modEventPriorityScore",
756771 "#ageAssuranceEvent",
757772 "#ageAssuranceOverrideEvent",
758773 "#ageAssurancePurgeEvent",
759774 "#revokeAccountCredentialsEvent",
760775 "#scheduleTakedownEvent",
761776 "#cancelScheduledTakedownEvent"
762777 ],
763778 "type": "union"
764779 },
765780 "id": {
766781 "type": "integer"
767782 },
768783 "modTool": {
769784 "ref": "#modTool",
770785 "type": "ref"
771786 },
772787 "subject": {
773788 "refs": [
774789 "#repoView",
775790 "#repoViewNotFound",
776791 "#recordView",
777792 "#recordViewNotFound",
778793 "#convoView"
779794 ],
780795 "type": "union"
781796 },
782797 "subjectBlobs": {
783798 "items": {
784799 "ref": "#blobView",
785800 "type": "ref"
786801 },
787802 "type": "array"
788803 }
789804 },
790805 "required": [
791806 "id",
792807 "event",
793808 "subject",
794809 "subjectBlobs",
795810 "createdBy",
796811 "createdAt"
797812 ],
798813 "type": "object"
799814 },
800815 "modTool": {
801816 "description": "Moderation tool information for tracing the source of the action",
802817 "properties": {
803818 "meta": {
804819 "description": "Additional arbitrary metadata about the source",
805820 "type": "unknown"
806821 },
807822 "name": {
808823 "description": "Name/identifier of the source (e.g., 'automod', 'ozone/workspace')",
809824 "type": "string"
810825 }
811826 },
812827 "required": [
813828 "name"
814829 ],
815830 "type": "object"
816831 },
817832 "moderation": {
818833 "properties": {
819834 "subjectStatus": {
820835 "ref": "#subjectStatusView",
821836 "type": "ref"
822837 }
823838 },
824839 "type": "object"
825840 },
826841 "moderationDetail": {
827842 "properties": {
828843 "subjectStatus": {
829844 "ref": "#subjectStatusView",
830845 "type": "ref"
831846 }
832847 },
833848 "type": "object"
834849 },
835850 "recordEvent": {
836851 "description": "Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",
837852 "properties": {
838853 "cid": {
839854 "format": "cid",
840855 "type": "string"
841856 },
842857 "comment": {
843858 "type": "string"
844859 },
845860 "op": {
846861 "knownValues": [
847862 "create",
848863 "update",
849864 "delete"
850865 ],
851866 "type": "string"
852867 },
853868 "timestamp": {
854869 "format": "datetime",
855870 "type": "string"
856871 }
857872 },
858873 "required": [
859874 "timestamp",
860875 "op"
861876 ],
862877 "type": "object"
863878 },
864879 "recordHosting": {
865880 "properties": {
866881 "createdAt": {
867882 "format": "datetime",
868883 "type": "string"
869884 },
870885 "deletedAt": {
871886 "format": "datetime",
872887 "type": "string"
873888 },
874889 "status": {
875890 "knownValues": [
876891 "deleted",
877892 "unknown"
878893 ],
879894 "type": "string"
880895 },
881896 "updatedAt": {
882897 "format": "datetime",
883898 "type": "string"
884899 }
885900 },
886901 "required": [
887902 "status"
888903 ],
889904 "type": "object"
890905 },
891906 "recordView": {
892907 "properties": {
893908 "blobCids": {
894909 "items": {
895910 "format": "cid",
896911 "type": "string"
897912 },
898913 "type": "array"
899914 },
900915 "cid": {
901916 "format": "cid",
902917 "type": "string"
903918 },
904919 "indexedAt": {
905920 "format": "datetime",
906921 "type": "string"
907922 },
908923 "moderation": {
909924 "ref": "#moderation",
910925 "type": "ref"
911926 },
912927 "repo": {
913928 "ref": "#repoView",
914929 "type": "ref"
915930 },
916931 "uri": {
917932 "format": "at-uri",
918933 "type": "string"
919934 },
920935 "value": {
921936 "type": "unknown"
922937 }
923938 },
924939 "required": [
925940 "uri",
926941 "cid",
927942 "value",
928943 "blobCids",
929944 "indexedAt",
930945 "moderation",
931946 "repo"
932947 ],
933948 "type": "object"
934949 },
935950 "recordViewDetail": {
936951 "properties": {
937952 "blobs": {
938953 "items": {
939954 "ref": "#blobView",
940955 "type": "ref"
941956 },
942957 "type": "array"
943958 },
944959 "cid": {
945960 "format": "cid",
946961 "type": "string"
947962 },
948963 "indexedAt": {
949964 "format": "datetime",
950965 "type": "string"
951966 },
952967 "labels": {
953968 "items": {
954969 "ref": "com.atproto.label.defs#label",
955970 "type": "ref"
956971 },
957972 "type": "array"
958973 },
959974 "moderation": {
960975 "ref": "#moderationDetail",
961976 "type": "ref"
962977 },
963978 "repo": {
964979 "ref": "#repoView",
965980 "type": "ref"
966981 },
967982 "uri": {
968983 "format": "at-uri",
969984 "type": "string"
970985 },
971986 "value": {
972987 "type": "unknown"
973988 }
974989 },
975990 "required": [
976991 "uri",
977992 "cid",
978993 "value",
979994 "blobs",
980995 "indexedAt",
981996 "moderation",
982997 "repo"
983998 ],
984999 "type": "object"
9851000 },
9861001 "recordViewNotFound": {
9871002 "properties": {
9881003 "uri": {
9891004 "format": "at-uri",
9901005 "type": "string"
9911006 }
9921007 },
9931008 "required": [
9941009 "uri"
9951010 ],
9961011 "type": "object"
9971012 },
9981013 "recordsStats": {
9991014 "description": "Statistics about a set of record subject items",
10001015 "properties": {
10011016 "appealedCount": {
10021017 "description": "Number of items that were appealed at least once",
10031018 "type": "integer"
10041019 },
10051020 "escalatedCount": {
10061021 "description": "Number of items that were escalated at least once",
10071022 "type": "integer"
10081023 },
10091024 "pendingCount": {
10101025 "description": "Number of item currently in \"reviewOpen\" or \"reviewEscalated\" state",
10111026 "type": "integer"
10121027 },
10131028 "processedCount": {
10141029 "description": "Number of item currently in \"reviewNone\" or \"reviewClosed\" state",
10151030 "type": "integer"
10161031 },
10171032 "reportedCount": {
10181033 "description": "Number of items that were reported at least once",
10191034 "type": "integer"
10201035 },
10211036 "subjectCount": {
10221037 "description": "Total number of item in the set",
10231038 "type": "integer"
10241039 },
10251040 "takendownCount": {
10261041 "description": "Number of item currently taken down",
10271042 "type": "integer"
10281043 },
10291044 "totalReports": {
10301045 "description": "Cumulative sum of the number of reports on the items in the set",
10311046 "type": "integer"
10321047 }
10331048 },
10341049 "type": "object"
10351050 },
10361051 "repoView": {
10371052 "properties": {
10381053 "deactivatedAt": {
10391054 "format": "datetime",
10401055 "type": "string"
10411056 },
10421057 "did": {
10431058 "format": "did",
10441059 "type": "string"
10451060 },
10461061 "email": {
10471062 "type": "string"
10481063 },
10491064 "handle": {
10501065 "format": "handle",
10511066 "type": "string"
10521067 },
10531068 "indexedAt": {
10541069 "format": "datetime",
10551070 "type": "string"
10561071 },
10571072 "inviteNote": {
10581073 "type": "string"
10591074 },
10601075 "invitedBy": {
10611076 "ref": "com.atproto.server.defs#inviteCode",
10621077 "type": "ref"
10631078 },
10641079 "invitesDisabled": {
10651080 "type": "boolean"
10661081 },
10671082 "moderation": {
10681083 "ref": "#moderation",
10691084 "type": "ref"
10701085 },
10711086 "relatedRecords": {
10721087 "items": {
10731088 "type": "unknown"
10741089 },
10751090 "type": "array"
10761091 },
10771092 "threatSignatures": {
10781093 "items": {
10791094 "ref": "com.atproto.admin.defs#threatSignature",
10801095 "type": "ref"
10811096 },
10821097 "type": "array"
10831098 }
10841099 },
10851100 "required": [
10861101 "did",
10871102 "handle",
10881103 "relatedRecords",
10891104 "indexedAt",
10901105 "moderation"
10911106 ],
10921107 "type": "object"
10931108 },
10941109 "repoViewDetail": {
10951110 "properties": {
10961111 "deactivatedAt": {
10971112 "format": "datetime",
10981113 "type": "string"
10991114 },
11001115 "did": {
11011116 "format": "did",
11021117 "type": "string"
11031118 },
11041119 "email": {
11051120 "type": "string"
11061121 },
11071122 "emailConfirmedAt": {
11081123 "format": "datetime",
11091124 "type": "string"
11101125 },
11111126 "handle": {
11121127 "format": "handle",
11131128 "type": "string"
11141129 },
11151130 "indexedAt": {
11161131 "format": "datetime",
11171132 "type": "string"
11181133 },
11191134 "inviteNote": {
11201135 "type": "string"
11211136 },
11221137 "invitedBy": {
11231138 "ref": "com.atproto.server.defs#inviteCode",
11241139 "type": "ref"
11251140 },
11261141 "invites": {
11271142 "items": {
11281143 "ref": "com.atproto.server.defs#inviteCode",
11291144 "type": "ref"
11301145 },
11311146 "type": "array"
11321147 },
11331148 "invitesDisabled": {
11341149 "type": "boolean"
11351150 },
11361151 "labels": {
11371152 "items": {
11381153 "ref": "com.atproto.label.defs#label",
11391154 "type": "ref"
11401155 },
11411156 "type": "array"
11421157 },
11431158 "moderation": {
11441159 "ref": "#moderationDetail",
11451160 "type": "ref"
11461161 },
11471162 "relatedRecords": {
11481163 "items": {
11491164 "type": "unknown"
11501165 },
11511166 "type": "array"
11521167 },
11531168 "threatSignatures": {
11541169 "items": {
11551170 "ref": "com.atproto.admin.defs#threatSignature",
11561171 "type": "ref"
11571172 },
11581173 "type": "array"
11591174 }
11601175 },
11611176 "required": [
11621177 "did",
11631178 "handle",
11641179 "relatedRecords",
11651180 "indexedAt",
11661181 "moderation"
11671182 ],
11681183 "type": "object"
11691184 },
11701185 "repoViewNotFound": {
11711186 "properties": {
11721187 "did": {
11731188 "format": "did",
11741189 "type": "string"
11751190 }
11761191 },
11771192 "required": [
11781193 "did"
11791194 ],
11801195 "type": "object"
11811196 },
11821197 "reporterStats": {
11831198 "properties": {
11841199 "accountReportCount": {
11851200 "description": "The total number of reports made by the user on accounts.",
11861201 "type": "integer"
11871202 },
11881203 "did": {
11891204 "format": "did",
11901205 "type": "string"
11911206 },
11921207 "labeledAccountCount": {
11931208 "description": "The total number of accounts labeled as a result of the user's reports.",
11941209 "type": "integer"
11951210 },
11961211 "labeledRecordCount": {
11971212 "description": "The total number of records labeled as a result of the user's reports.",
11981213 "type": "integer"
11991214 },
12001215 "recordReportCount": {
12011216 "description": "The total number of reports made by the user on records.",
12021217 "type": "integer"
12031218 },
12041219 "reportedAccountCount": {
12051220 "description": "The total number of accounts reported by the user.",
12061221 "type": "integer"
12071222 },
12081223 "reportedRecordCount": {
12091224 "description": "The total number of records reported by the user.",
12101225 "type": "integer"
12111226 },
12121227 "takendownAccountCount": {
12131228 "description": "The total number of accounts taken down as a result of the user's reports.",
12141229 "type": "integer"
12151230 },
12161231 "takendownRecordCount": {
12171232 "description": "The total number of records taken down as a result of the user's reports.",
12181233 "type": "integer"
12191234 }
12201235 },
12211236 "required": [
12221237 "did",
12231238 "accountReportCount",
12241239 "recordReportCount",
12251240 "reportedAccountCount",
12261241 "reportedRecordCount",
12271242 "takendownAccountCount",
12281243 "takendownRecordCount",
12291244 "labeledAccountCount",
12301245 "labeledRecordCount"
12311246 ],
12321247 "type": "object"
12331248 },
12341249 "reviewClosed": {
12351250 "description": "Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator",
12361251 "type": "token"
12371252 },
12381253 "reviewEscalated": {
12391254 "description": "Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator",
12401255 "type": "token"
12411256 },
12421257 "reviewNone": {
12431258 "description": "Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it",
12441259 "type": "token"
12451260 },
12461261 "reviewOpen": {
12471262 "description": "Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator",
12481263 "type": "token"
12491264 },
12501265 "revokeAccountCredentialsEvent": {
12511266 "description": "Account credentials revocation by moderators. Only works on DID subjects.",
12521267 "properties": {
12531268 "comment": {
12541269 "description": "Comment describing the reason for the revocation.",
12551270 "minLength": 1,
12561271 "type": "string"
12571272 }
12581273 },
12591274 "required": [
12601275 "comment"
12611276 ],
12621277 "type": "object"
12631278 },
12641279 "scheduleTakedownEvent": {
12651280 "description": "Logs a scheduled takedown action for an account.",
12661281 "properties": {
12671282 "comment": {
12681283 "type": "string"
12691284 },
12701285 "executeAfter": {
12711286 "format": "datetime",
12721287 "type": "string"
12731288 },
12741289 "executeAt": {
12751290 "format": "datetime",
12761291 "type": "string"
12771292 },
12781293 "executeUntil": {
12791294 "format": "datetime",
12801295 "type": "string"
12811296 }
12821297 },
12831298 "type": "object"
12841299 },
12851300 "scheduledActionView": {
12861301 "description": "View of a scheduled moderation action",
12871302 "properties": {
12881303 "action": {
12891304 "description": "Type of action to be executed",
12901305 "knownValues": [
12911306 "takedown"
12921307 ],
12931308 "type": "string"
12941309 },
12951310 "createdAt": {
12961311 "description": "When the scheduled action was created",
12971312 "format": "datetime",
12981313 "type": "string"
12991314 },
13001315 "createdBy": {
13011316 "description": "DID of the user who created this scheduled action",
13021317 "format": "did",
13031318 "type": "string"
13041319 },
13051320 "did": {
13061321 "description": "Subject DID for the action",
13071322 "format": "did",
13081323 "type": "string"
13091324 },
13101325 "eventData": {
13111326 "description": "Serialized event object that will be propagated to the event when performed",
13121327 "type": "unknown"
13131328 },
13141329 "executeAfter": {
13151330 "description": "Earliest time to execute the action (for randomized scheduling)",
13161331 "format": "datetime",
13171332 "type": "string"
13181333 },
13191334 "executeAt": {
13201335 "description": "Exact time to execute the action",
13211336 "format": "datetime",
13221337 "type": "string"
13231338 },
13241339 "executeUntil": {
13251340 "description": "Latest time to execute the action (for randomized scheduling)",
13261341 "format": "datetime",
13271342 "type": "string"
13281343 },
13291344 "executionEventId": {
13301345 "description": "ID of the moderation event created when action was successfully executed",
13311346 "type": "integer"
13321347 },
13331348 "id": {
13341349 "description": "Auto-incrementing row ID",
13351350 "type": "integer"
13361351 },
13371352 "lastExecutedAt": {
13381353 "description": "When the action was last attempted to be executed",
13391354 "format": "datetime",
13401355 "type": "string"
13411356 },
13421357 "lastFailureReason": {
13431358 "description": "Reason for the last execution failure",
13441359 "type": "string"
13451360 },
13461361 "randomizeExecution": {
13471362 "description": "Whether execution time should be randomized within the specified range",
13481363 "type": "boolean"
13491364 },
13501365 "status": {
13511366 "description": "Current status of the scheduled action",
13521367 "knownValues": [
13531368 "pending",
13541369 "executed",
13551370 "cancelled",
13561371 "failed"
13571372 ],
13581373 "type": "string"
13591374 },
13601375 "updatedAt": {
13611376 "description": "When the scheduled action was last updated",
13621377 "format": "datetime",
13631378 "type": "string"
13641379 }
13651380 },
13661381 "required": [
13671382 "id",
13681383 "action",
13691384 "did",
13701385 "createdBy",
13711386 "createdAt",
13721387 "status"
13731388 ],
13741389 "type": "object"
13751390 },
13761391 "subjectReviewState": {
13771392 "knownValues": [
13781393 "tools.ozone.moderation.defs#reviewOpen",
13791394 "tools.ozone.moderation.defs#reviewEscalated",
13801395 "tools.ozone.moderation.defs#reviewClosed",
13811396 "tools.ozone.moderation.defs#reviewNone"
13821397 ],
13831398 "type": "string"
13841399 },
13851400 "subjectStatusView": {
13861401 "properties": {
13871402 "accountStats": {
13881403 "description": "Statistics related to the account subject",
13891404 "ref": "#accountStats",
13901405 "type": "ref"
13911406 },
13921407 "accountStrike": {
13931408 "description": "Strike information for the account (account-level only)",
13941409 "ref": "#accountStrike",
13951410 "type": "ref"
13961411 },
13971412 "ageAssuranceState": {
13981413 "description": "Current age assurance state of the subject.",
13991414 "knownValues": [
14001415 "pending",
14011416 "assured",
14021417 "unknown",
14031418 "reset",
14041419 "blocked"
14051420 ],
14061421 "type": "string"
14071422 },
14081423 "ageAssuranceUpdatedBy": {
14091424 "description": "Whether or not the last successful update to age assurance was made by the user or admin.",
14101425 "knownValues": [
14111426 "admin",
14121427 "user"
14131428 ],
14141429 "type": "string"
14151430 },
14161431 "appealed": {
14171432 "description": "True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators.",
14181433 "type": "boolean"
14191434 },
14201435 "comment": {
14211436 "description": "Sticky comment on the subject.",
14221437 "type": "string"
14231438 },
14241439 "createdAt": {
14251440 "description": "Timestamp referencing the first moderation status impacting event was emitted on the subject",
14261441 "format": "datetime",
14271442 "type": "string"
14281443 },
14291444 "hosting": {
14301445 "refs": [
14311446 "#accountHosting",
14321447 "#recordHosting"
14331448 ],
14341449 "type": "union"
14351450 },
14361451 "id": {
14371452 "type": "integer"
14381453 },
14391454 "lastAppealedAt": {
14401455 "description": "Timestamp referencing when the author of the subject appealed a moderation action",
14411456 "format": "datetime",
14421457 "type": "string"
14431458 },
14441459 "lastReportedAt": {
14451460 "format": "datetime",
14461461 "type": "string"
14471462 },
14481463 "lastReviewedAt": {
14491464 "format": "datetime",
14501465 "type": "string"
14511466 },
14521467 "lastReviewedBy": {
14531468 "format": "did",
14541469 "type": "string"
14551470 },
14561471 "muteReportingUntil": {
14571472 "format": "datetime",
14581473 "type": "string"
14591474 },
14601475 "muteUntil": {
14611476 "format": "datetime",
14621477 "type": "string"
14631478 },
14641479 "priorityScore": {
14651480 "description": "Numeric value representing the level of priority. Higher score means higher priority.",
14661481 "maximum": 100,
14671482 "minimum": 0,
14681483 "type": "integer"
14691484 },
14701485 "recordsStats": {
14711486 "description": "Statistics related to the record subjects authored by the subject's account",
14721487 "ref": "#recordsStats",
14731488 "type": "ref"
14741489 },
14751490 "reviewState": {
14761491 "ref": "#subjectReviewState",
14771492 "type": "ref"
14781493 },
14791494 "subject": {
14801495 "refs": [
14811496 "com.atproto.admin.defs#repoRef",
14821497 "com.atproto.repo.strongRef",
14831498 "chat.bsky.convo.defs#messageRef",
14841499 "chat.bsky.convo.defs#convoRef"
14851500 ],
14861501 "type": "union"
14871502 },
14881503 "subjectBlobCids": {
14891504 "items": {
14901505 "format": "cid",
14911506 "type": "string"
14921507 },
14931508 "type": "array"
14941509 },
14951510 "subjectRepoHandle": {
14961511 "type": "string"
14971512 },
14981513 "suspendUntil": {
14991514 "format": "datetime",
15001515 "type": "string"
15011516 },
15021517 "tags": {
15031518 "items": {
15041519 "type": "string"
15051520 },
15061521 "type": "array"
15071522 },
15081523 "takendown": {
15091524 "type": "boolean"
15101525 },
15111526 "updatedAt": {
15121527 "description": "Timestamp referencing when the last update was made to the moderation status of the subject",
15131528 "format": "datetime",
15141529 "type": "string"
15151530 }
15161531 },
15171532 "required": [
15181533 "id",
15191534 "subject",
15201535 "createdAt",
15211536 "updatedAt",
15221537 "reviewState"
15231538 ],
15241539 "type": "object"
15251540 },
15261541 "subjectView": {
15271542 "description": "Detailed view of a subject. For record subjects, the author's repo and profile will be returned.",
15281543 "properties": {
15291544 "profile": {
15301545 "refs": [],
15311546 "type": "union"
15321547 },
15331548 "record": {
15341549 "ref": "#recordViewDetail",
15351550 "type": "ref"
15361551 },
15371552 "repo": {
15381553 "ref": "#repoViewDetail",
15391554 "type": "ref"
15401555 },
15411556 "status": {
15421557 "ref": "#subjectStatusView",
15431558 "type": "ref"
15441559 },
15451560 "subject": {
15461561 "type": "string"
15471562 },
15481563 "type": {
15491564 "ref": "com.atproto.moderation.defs#subjectType",
15501565 "type": "ref"
15511566 }
15521567 },
15531568 "required": [
15541569 "type",
15551570 "subject"
15561571 ],
15571572 "type": "object"
15581573 },
15591574 "timelineEventPlcCreate": {
15601575 "description": "Moderation event timeline event for a PLC create operation",
15611576 "type": "token"
15621577 },
15631578 "timelineEventPlcOperation": {
15641579 "description": "Moderation event timeline event for generic PLC operation",
15651580 "type": "token"
15661581 },
15671582 "timelineEventPlcTombstone": {
15681583 "description": "Moderation event timeline event for a PLC tombstone operation",
15691584 "type": "token"
15701585 },
15711586 "videoDetails": {
15721587 "properties": {
15731588 "height": {
15741589 "type": "integer"
15751590 },
15761591 "length": {
15771592 "type": "integer"
15781593 },
15791594 "width": {
15801595 "type": "integer"
15811596 }
15821597 },
15831598 "required": [
15841599 "width",
15851600 "height",
15861601 "length"
15871602 ],
15881603 "type": "object"
15891604 }
15901605 },
15911606 "id": "tools.ozone.moderation.defs",
15921607 "lexicon": 1
15931608}

Compare other versions