toolsOzoneModerationQueryEvents top-level constant

Map<String, dynamic> const toolsOzoneModerationQueryEvents

tools.ozone.moderation.queryEvents

Implementation

const toolsOzoneModerationQueryEvents = <String, dynamic>{
  "lexicon": 1,
  "id": "tools.ozone.moderation.queryEvents",
  "defs": {
    "main": {
      "type": "query",
      "description": "List moderation events related to a subject.",
      "parameters": {
        "type": "params",
        "properties": {
          "types": {
            "type": "array",
            "description":
                "The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.",
            "items": {"type": "string"}
          },
          "createdBy": {"type": "string", "format": "did"},
          "sortDirection": {
            "type": "string",
            "description":
                "Sort direction for the events. Defaults to descending order of created at timestamp.",
            "default": "desc",
            "enum": ["asc", "desc"]
          },
          "createdAfter": {
            "type": "string",
            "format": "datetime",
            "description": "Retrieve events created after a given timestamp"
          },
          "createdBefore": {
            "type": "string",
            "format": "datetime",
            "description": "Retrieve events created before a given timestamp"
          },
          "subject": {"type": "string", "format": "uri"},
          "includeAllUserRecords": {
            "type": "boolean",
            "description":
                "If true, events on all record types (posts, lists, profile etc.) owned by the did are returned",
            "default": false
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "minimum": 1,
            "maximum": 100
          },
          "hasComment": {
            "type": "boolean",
            "description": "If true, only events with comments are returned"
          },
          "comment": {
            "type": "string",
            "description":
                "If specified, only events with comments containing the keyword are returned"
          },
          "addedLabels": {
            "type": "array",
            "description":
                "If specified, only events where all of these labels were added are returned",
            "items": {"type": "string"}
          },
          "removedLabels": {
            "type": "array",
            "description":
                "If specified, only events where all of these labels were removed are returned",
            "items": {"type": "string"}
          },
          "addedTags": {
            "type": "array",
            "description":
                "If specified, only events where all of these tags were added are returned",
            "items": {"type": "string"}
          },
          "removedTags": {
            "type": "array",
            "description":
                "If specified, only events where all of these tags were removed are returned",
            "items": {"type": "string"}
          },
          "reportTypes": {
            "type": "array",
            "items": {"type": "string"}
          },
          "cursor": {"type": "string"}
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["events"],
          "properties": {
            "cursor": {"type": "string"},
            "events": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "tools.ozone.moderation.defs#modEventView"
              }
            }
          }
        }
      }
    }
  }
};