toolsOzoneInboxListNotifications top-level constant

Map<String, dynamic> const toolsOzoneInboxListNotifications

tools.ozone.inbox.listNotifications

Implementation

const toolsOzoneInboxListNotifications = <String, dynamic>{
  "lexicon": 1,
  "id": "tools.ozone.inbox.listNotifications",
  "defs": {
    "main": {
      "type": "query",
      "parameters": {
        "type": "params",
        "properties": {
          "section": {
            "type": "string",
            "knownValues": ["reports", "subjects", "accountStatus"],
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string",
              "knownValues": [
                "reportResolved",
                "reportReopened",
                "actionTaken",
                "actionReversed",
                "appealResolved",
                "standingChanged",
              ],
            },
          },
          "unreadOnly": {"type": "boolean", "default": false},
          "limit": {
            "type": "integer",
            "default": 50,
            "minimum": 1,
            "maximum": 100,
          },
          "cursor": {"type": "string"},
          "did": {
            "type": "string",
            "format": "did",
            "description":
                "Account to preview. Only Ozone staff can read another account; this does not change its read state.",
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["notifications"],
          "properties": {
            "cursor": {"type": "string"},
            "notifications": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "tools.ozone.inbox.defs#notification",
              },
            },
          },
        },
      },
    },
  },
};