com.livtet.listShelvesWithBooks

List shelf records, each hydrated with a preview of the books on it. At most `booksPerShelf` books are returned per shelf; read a full shelf with `listBooksOnShelf`. Answers are cut at a fixed deadline rather than holding the request open, so a shelf under load may come back with fewer books than asked for.

Details · query
Kindquery
Authoritylivtet.com
Commit rev3n3l6g7y3gqtv
Indexed
cid bafyreie4s6xsmyq2zgxehcokushmkpr2h6uoknbrigcf33xbdekcyo3cwq

Checks

Valid
  • missing-primary-description defs.mainThe query has no description.
  • unlimited-string defs.main.parameters.properties.cursorNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.output.schema.properties.cursorNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "shelves": {
              "items": {
                "ref": "com.livtet.defs#shelfWithBooksView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "shelves"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "booksPerShelf": {
            "default": 25,
            "description": "Maximum number of books to hydrate per shelf. This query is a preview: `listBooksOnShelf` is the complete, paginated listing for one shelf.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "cursor": {
            "description": "Opaque pagination cursor.",
            "type": "string"
          },
          "did": {
            "description": "Scope the read to one account's shelves. Omitted, the read is network-wide across every account.",
            "format": "did",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "description": "Maximum number of shelves to return.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "List shelf records, each hydrated with a preview of the books on it. At most `booksPerShelf` books are returned per shelf; read a full shelf with `listBooksOnShelf`. Answers are cut at a fixed deadline rather than holding the request open, so a shelf under load may come back with fewer books than asked for.",
  "id": "com.livtet.listShelvesWithBooks",
  "lexicon": 1
}