toolsOzoneReportCloseReports top-level constant
tools.ozone.report.closeReports
Implementation
const toolsOzoneReportCloseReports = <String, dynamic>{
"lexicon": 1,
"id": "tools.ozone.report.closeReports",
"defs": {
"main": {
"type": "procedure",
"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": {
"type": "object",
"required": ["subject"],
"properties": {
"subject": {
"type": "string",
"format": "uri",
"description":
"Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.",
},
"includeAllOwned": {
"type": "boolean",
"description":
"If true, also close reports on all subjects owned by the account, including records, messages, and conversations. Only valid when subject is an account DID.",
"default": false,
},
"reportTypes": {
"type": "array",
"description":
"If nonempty, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted or empty, all non-closed reports in the requested subject scope are targeted, except excludedReportTypes.",
"items": {"type": "string"},
},
"excludedReportTypes": {
"type": "array",
"description":
"Reports of these types (fully qualified reason NSIDs) are excluded from closure and left unchanged. When omitted or empty, no report types are excluded.",
"items": {"type": "string"},
},
"internalNote": {
"type": "string",
"description":
"Optional moderator-only note recorded on each close activity. Not visible to reporters.",
},
"isAutomated": {
"type": "boolean",
"description":
"Set true when this action is triggered by an automated process. Defaults to false.",
"default": false,
},
"meta": {
"type": "unknown",
"description":
"Optional metadata for the report activities. Lifecycle and resolution fields are controlled by the service.",
},
},
},
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["closedCount", "reportIds"],
"properties": {
"closedCount": {
"type": "integer",
"description":
"Number of reports that were transitioned to closed.",
},
"reportIds": {
"type": "array",
"description": "IDs of the reports that were closed.",
"items": {"type": "integer"},
},
},
},
},
},
},
};