# ink.resenha.book.resolve

> Every key Resenha's index knows for a book, and its other editions, from one key: a BookHive ID, an ISBN-13, an Amazon number or an Open Library work. Learned from BookHive's catalogue, readers' own links between their records in different apps, and Open Library. Public, no sign-in: any book app can fill the slots its records leave empty, such as Popfeed's hiveId or BookHive's ISBN. Answers come from the index alone; nothing is asked of any catalogue for them.

- Kind: query
- Authority: book.resenha.ink
- Lexicon: 1
- Published by [resenha.ink](https://lexicon.garden/identity/did:plc:v7itjf4h3sb5zuegiiskctqb), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.book.resolve)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.book.resolve/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.book.resolve/analytics)

## Query (`ink.resenha.book.resolve`)

Type: query · GET

### Parameters (query string)

- `asin` (string)
  - Constraints: maxLength: 16
- `hiveId` (string)
  - Constraints: maxLength: 64
- `isbn13` (string)
  - Constraints: maxLength: 13
- `openLibraryWork` (string)
  - Constraints: maxLength: 32

### Output (application/json)

- `authors` (string)
  - Constraints: maxLength: 1024
- `editions` (array, required): Other editions of the same book, surest first.
  - `items` (ref)
    - Reference: `#edition`
- `identifiers` (ref, required): The edition asked about, in every key known.
  - Reference: `ink.resenha.defs#bookIdentifiers`
- `title` (string)
  - Constraints: maxLength: 512

## #edition (`ink.resenha.book.resolve#edition`)

Type: object

### Properties

- `confidence` (string, required): sure: tied by BookHive's catalogue, a reader's link or Open Library's work. likely: the same title and first author after normalising.
  - Constraints: knownValues: sure | likely
- `identifiers` (ref, required)
  - Reference: `ink.resenha.defs#bookIdentifiers`
- `sources` (array)
  - `items` (string)
    - Constraints: knownValues: catalogue | bookhive | reader | match | openlibrary | title
- `title` (string)
  - Constraints: maxLength: 512

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "edition": {
      "properties": {
        "confidence": {
          "description": "sure: tied by BookHive's catalogue, a reader's link or Open Library's work. likely: the same title and first author after normalising.",
          "knownValues": [
            "sure",
            "likely"
          ],
          "type": "string"
        },
        "identifiers": {
          "ref": "ink.resenha.defs#bookIdentifiers",
          "type": "ref"
        },
        "sources": {
          "items": {
            "knownValues": [
              "catalogue",
              "bookhive",
              "reader",
              "match",
              "openlibrary",
              "title"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "title": {
          "maxLength": 512,
          "type": "string"
        }
      },
      "required": [
        "identifiers",
        "confidence"
      ],
      "type": "object"
    },
    "main": {
      "description": "Every key Resenha's index knows for a book, and its other editions, from one key: a BookHive ID, an ISBN-13, an Amazon number or an Open Library work. Learned from BookHive's catalogue, readers' own links between their records in different apps, and Open Library. Public, no sign-in: any book app can fill the slots its records leave empty, such as Popfeed's hiveId or BookHive's ISBN. Answers come from the index alone; nothing is asked of any catalogue for them.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "authors": {
              "maxLength": 1024,
              "type": "string"
            },
            "editions": {
              "description": "Other editions of the same book, surest first.",
              "items": {
                "ref": "#edition",
                "type": "ref"
              },
              "type": "array"
            },
            "identifiers": {
              "description": "The edition asked about, in every key known.",
              "ref": "ink.resenha.defs#bookIdentifiers",
              "type": "ref"
            },
            "title": {
              "maxLength": 512,
              "type": "string"
            }
          },
          "required": [
            "identifiers",
            "editions"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "asin": {
            "maxLength": 16,
            "type": "string"
          },
          "hiveId": {
            "maxLength": 64,
            "type": "string"
          },
          "isbn13": {
            "maxLength": 13,
            "type": "string"
          },
          "openLibraryWork": {
            "maxLength": 32,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ink.resenha.book.resolve",
  "lexicon": 1
}
```
