full diff

tools.ozone.report.createActivity

From
bafyreidijd6r4ge7f63g32iwamgwyrtpzylghcjzzwej6l3pyjq2kj3ntm indexed 2026-10-03 21:31 UTC View this version
To
bafyreia52bbcdfwgikul2xw3bojnq4tc47m4s7pxobrsuiumd2yqxonwpe indexed 2026-11-19 20:57 UTC View this version

Compatibility

backward compatible Backward compatible. 2 non-breaking changes.

Non-breaking changes (2)
  • AddedVertex AddedVertex { vertex_id: "tools.ozone.report.createActivity:input.meta" }
  • AddedEdge AddedEdge { src: "tools.ozone.report.createActivity:input", tgt: "tools.ozone.report.createActivity:input.meta", kind: "prop", name: Some("meta") }

Migration guidance

Added

  • AddedVertex { vertex_id: "tools.ozone.report.createActivity:input.meta" }

Notes

  • Non-breaking: AddedEdge { src: "tools.ozone.report.createActivity:input", tgt: "tools.ozone.report.createActivity:input.meta", kind: "prop", name: Some("meta") }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Register an activity on a report. For state-change activity types, validates the transition and updates report.status atomically.",
66 "errors": [
77 {
88 "description": "No report exists with the given reportId or eventId",
99 "name": "ReportNotFound"
1010 },
1111 {
1212 "description": "The requested state transition is not permitted from the report's current status",
1313 "name": "InvalidStateTransition"
1414 },
1515 {
1616 "description": "The report is already in the status implied by this activity type",
1717 "name": "AlreadyInTargetState"
1818 }
1919 ],
2020 "input": {
2121 "encoding": "application/json",
2222 "schema": {
2323 "properties": {
2424 "activity": {
2525 "description": "The type of activity to record.",
2626 "refs": [
2727 "tools.ozone.report.defs#queueActivity",
2828 "tools.ozone.report.defs#assignmentActivity",
2929 "tools.ozone.report.defs#escalationActivity",
3030 "tools.ozone.report.defs#closeActivity",
3131 "tools.ozone.report.defs#reopenActivity",
3232 "tools.ozone.report.defs#noteActivity"
3333 ],
3434 "type": "union"
3535 },
3636 "eventId": {
3737 "description": "ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.",
3838 "type": "integer"
3939 },
4040 "internalNote": {
4141 "description": "Optional moderator-only note. Not visible to reporters.",
4242 "type": "string"
4343 },
4444 "isAutomated": {
4545 "default": false,
4646 "description": "Set true when this activity is triggered by an automated process. Defaults to false.",
4747 "type": "boolean"
4848 },
49 "meta": {
50 "description": "Optional metadata for the report activities. Lifecycle and resolution fields are controlled by the service.",
51 "type": "unknown"
52 },
4953 "publicNote": {
5054 "description": "Optional public-facing note, potentially visible to the reporter.",
5155 "type": "string"
5256 },
5357 "reportId": {
5458 "description": "ID of the report to record activity on. Exactly one of reportId or eventId must be provided.",
5559 "type": "integer"
5660 }
5761 },
5862 "required": [
5963 "activity"
6064 ],
6165 "type": "object"
6266 }
6367 },
6468 "output": {
6569 "encoding": "application/json",
6670 "schema": {
6771 "properties": {
6872 "activity": {
6973 "ref": "tools.ozone.report.defs#reportActivityView",
7074 "type": "ref"
7175 }
7276 },
7377 "required": [
7478 "activity"
7579 ],
7680 "type": "object"
7781 }
7882 },
7983 "type": "procedure"
8084 }
8185 },
8286 "id": "tools.ozone.report.createActivity",
8387 "lexicon": 1
8488}

Compare other versions