# ink.resenha.ebook

> Published by [resenha.ink](https://lexicon.garden/identity/did:plc:v7itjf4h3sb5zuegiiskctqb)

✓ This is the authoritative definition for this NSID.

## Description

A book file the account keeps for reading in Resenha: an EPUB, a PDF or a comic archive. The file is a blob in the account's repository, which keeps it only while a record refers to it.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.ebook)
- [Documentation](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.ebook/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.ebook/examples)

## Definitions

### `ink.resenha.ebook`

**Type**: `record`

One per file. Deleting the record lets the account's server delete the file.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `authors` | `array` | No |  |
| `book` | `string` (at-uri) | No | The account's record for the same book, when the reader connected the file to their library: a buzz.bookhive.book, or a social.popfeed.feed.listItem for a book they keep in Popfeed. |
| `cover` | `blob` | No | A cover image for showing the book in a list, taken from the file. |
| `createdAt` | `string` (datetime) | Yes |  |
| `file` | `blob` | Yes | The book itself. |
| `format` | `string` | Yes | How to open the file. A comic archive is a zip of page images, read in file name order. |
| `title` | `string` | Yes | From the file's own metadata when it has some, otherwise from its file name. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One per file. Deleting the record lets the account's server delete the file.",
      "key": "tid",
      "record": {
        "properties": {
          "authors": {
            "items": {
              "maxGraphemes": 64,
              "maxLength": 640,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "book": {
            "description": "The account's record for the same book, when the reader connected the file to their library: a buzz.bookhive.book, or a social.popfeed.feed.listItem for a book they keep in Popfeed.",
            "format": "at-uri",
            "type": "string"
          },
          "cover": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "description": "A cover image for showing the book in a list, taken from the file.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "file": {
            "accept": [
              "application/epub+zip",
              "application/pdf",
              "application/vnd.comicbook+zip",
              "application/zip"
            ],
            "description": "The book itself.",
            "type": "blob"
          },
          "format": {
            "description": "How to open the file. A comic archive is a zip of page images, read in file name order.",
            "knownValues": [
              "epub",
              "pdf",
              "cbz"
            ],
            "type": "string"
          },
          "title": {
            "description": "From the file's own metadata when it has some, otherwise from its file name.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          }
        },
        "required": [
          "file",
          "format",
          "title",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A book file the account keeps for reading in Resenha: an EPUB, a PDF or a comic archive. The file is a blob in the account's repository, which keeps it only while a record refers to it.",
  "id": "ink.resenha.ebook",
  "lexicon": 1
}
```
