tools.ozone.report.closeReports

ozone-lexicons.bsky.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Close all reports on a subject matching the given criteria. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "internalNote": {
              "description": "Optional moderator-only note recorded on each close activity. Not visible to reporters.",
              "type": "string"
            },
            "isAutomated": {
              "default": false,
              "description": "Set true when this action is triggered by an automated process. Defaults to false.",
              "type": "boolean"
            },
            "reportTypes": {
              "description": "If specified, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted, all non-closed reports on the subject are targeted.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "subject": {
              "description": "Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.",
              "format": "uri",
              "type": "string"
            }
          },
          "required": [
            "subject"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "closedCount": {
              "description": "Number of reports that were transitioned to closed.",
              "type": "integer"
            },
            "reportIds": {
              "description": "IDs of the reports that were closed.",
              "items": {
                "type": "integer"
              },
              "type": "array"
            }
          },
          "required": [
            "closedCount",
            "reportIds"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.report.closeReports",
  "lexicon": 1
}

Validate Record

Validate a record against tools.ozone.report.closeReports

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:33dt5kftu3jq2h5h4jjlqezt
CID
bafyreihqkycesh2y2n777bojwgjhnhlk4zdlgumyjhzjdrbiwwyyyzd6i4
Indexed At
2026-10-03 21:31 UTC
AT-URI
at://did:plc:33dt5kftu3jq2h5h4jjlqezt/com.atproto.lexicon.schema/tools.ozone.report.closeReports

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Close a report without acting on the subject. Valid from `open` (fast-path obvious junk) and from `underReview`. Writes a single `reportDismissed` audit row. Fast-path dismissal directly from `open` does NOT emit a `rep…

  • View moderation reports. Reports are individual instances of content being reported, as opposed to subject statuses which aggregate reports at the subject level.

Lexicon Garden

@