{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get scrobbles all scrobbles",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "scrobbles": {
              "items": {
                "ref": "app.rocksky.scrobble.defs#scrobbleViewBasic",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "The DID or handle of the actor",
            "format": "at-identifier",
            "type": "string"
          },
          "following": {
            "description": "If true, only return scrobbles from actors the viewer is following.",
            "type": "boolean"
          },
          "limit": {
            "description": "The maximum number of scrobbles to return",
            "minimum": 1,
            "type": "integer"
          },
          "offset": {
            "description": "The offset for pagination",
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.rocksky.scrobble.getScrobbles",
  "lexicon": 1
}
