{
  "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",
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "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"
              }
            }
          }
        }
      }
    }
  }
}

