# com.livtet.bookStatus

> One status event for one catalog edition: a record is written when the reader sets a status, and again for every later change, so a reread is a second `read` record. The current status is the newest record for the book. Records live in the reader's own repo and name both the edition they are about and the shelf it sits on.

- Kind: record
- Record key: any
- Authority: livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.bookStatus)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.bookStatus/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.bookStatus/analytics)

## Record (`com.livtet.bookStatus`)

Type: record · key any

### Properties

- `book` (ref, required): The catalog edition, as a strong reference so the index can prove the record it read.
  - Reference: `#strongRef`
- `createdAt` (string · datetime, required): When the record's *current* status was set. A status change stamps now; it is not a generic record timestamp.
- `metadata` (ref, required)
  - Reference: `#metadata`
- `shelf` (string · at-uri, required): The `biblio.shelf` record this book sits on. A built-in status shelf keys it by the status name.
- `updatedAt` (string · datetime, required)

## #contributor (`com.livtet.bookStatus#contributor`)

Type: object

### Properties

- `name` (string, required)
  - Constraints: maxGraphemes: 300
- `uri` (string, required)

## #metadata (`com.livtet.bookStatus#metadata`)

Type: object

### Properties

- `status` (string, required): The reading status this shelf stands for.
  - Constraints: knownValues: reading | read | to-read | dnf

## #strongRef (`com.livtet.bookStatus#strongRef`)

Type: object

### Properties

- `cid` (string · cid)
- `contributors` (array)
  - `items` (ref)
    - Reference: `#contributor`
- `title` (string): The edition's title as the writer knew it, so a shelf page renders without a catalog read.
  - Constraints: maxGraphemes: 300
- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "contributor": {
      "properties": {
        "name": {
          "maxGraphemes": 300,
          "type": "string"
        },
        "uri": {
          "type": "string"
        }
      },
      "required": [
        "uri",
        "name"
      ],
      "type": "object"
    },
    "main": {
      "description": "One status event for one catalog edition: a record is written when the reader sets a status, and again for every later change, so a reread is a second `read` record. The current status is the newest record for the book. Records live in the reader's own repo and name both the edition they are about and the shelf it sits on.",
      "key": "any",
      "record": {
        "properties": {
          "book": {
            "description": "The catalog edition, as a strong reference so the index can prove the record it read.",
            "ref": "#strongRef",
            "type": "ref"
          },
          "createdAt": {
            "description": "When the record's *current* status was set. A status change stamps now; it is not a generic record timestamp.",
            "format": "datetime",
            "type": "string"
          },
          "metadata": {
            "ref": "#metadata",
            "type": "ref"
          },
          "shelf": {
            "description": "The `biblio.shelf` record this book sits on. A built-in status shelf keys it by the status name.",
            "format": "at-uri",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "shelf",
          "book",
          "metadata",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "metadata": {
      "properties": {
        "status": {
          "description": "The reading status this shelf stands for.",
          "knownValues": [
            "reading",
            "read",
            "to-read",
            "dnf"
          ],
          "type": "string"
        }
      },
      "required": [
        "status"
      ],
      "type": "object"
    },
    "strongRef": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "contributors": {
          "items": {
            "ref": "#contributor",
            "type": "ref"
          },
          "type": "array"
        },
        "title": {
          "description": "The edition's title as the writer knew it, so a shelf page renders without a catalog read.",
          "maxGraphemes": 300,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "id": "com.livtet.bookStatus",
  "lexicon": 1
}
```
