{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Searches the Shop's works by title, author and subject: Standard Ebooks' editions first among equal matches, then the most downloaded. Nothing typed is stored. Public, no sign-in; answers may be cached for five minutes; limited per address.",
      "errors": [
        {
          "description": "Too many calls from this address in the last minute.",
          "name": "RateLimited"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "maxLength": 32,
              "type": "string"
            },
            "paused": {
              "description": "True while the Shop is paused on the server: Get and Notify me are shown disabled. Browsing keeps working.",
              "type": "boolean"
            },
            "works": {
              "items": {
                "ref": "ink.resenha.shop.getBrowse#workSummary",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "works",
            "paused"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "maxLength": 32,
            "type": "string"
          },
          "lang": {
            "description": "The reader's languages (BCP 47 codes; only the language part is compared). Without it, every language.",
            "items": {
              "maxLength": 16,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "limit": {
            "default": 25,
            "maximum": 25,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "maxLength": 200,
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ink.resenha.shop.search",
  "lexicon": 1
}
