# org.passingreads.book.event

> Published by [passingreads.org](https://lexicon.garden/identity/did:plc:oeipalbxet5jghoqe6b6ctu6)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:oeipalbxet5jghoqe6b6ctu6/org.passingreads.book.event)
- [Documentation](https://lexicon.garden/lexicon/did:plc:oeipalbxet5jghoqe6b6ctu6/org.passingreads.book.event/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:oeipalbxet5jghoqe6b6ctu6/org.passingreads.book.event/examples)

## Definitions

### `org.passingreads.book.event`

**Type**: `record`

The status of a book has changed.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `book` | `ref` → `com.atproto.repo.strongRef#main` | Yes | The book that was dropped (a org.passingreads.book.registration) |
| `event` | `string` | No | What event has occurred |
| `location` | `union` | Yes | Where this event occurred (an h3 cell, an OSM place, or a link to an outpost — org.passingreads.outpost.registration) |
| `occurredAt` | `string` (datetime) | Yes | Client-declared timestamp of when the book was dropped |
| `signatures` | `array` | Yes | Inline attestations binding this event to the book's keypair. |

### `org.passingreads.book.event#osmLocation`

**Type**: `object`

A physical location from OpenStreetMap.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | The name of the place from OpenStreetMap. |
| `osmId` | `string` | Yes | The OpenStreetMap element ID in interoperable format: N (node), W (way), or R (relation) prefix followed by numeric ID. Example: N123456789 |
| `value` | `string` | Yes | The H3 cell index for proximity queries. |
| `category` | `string` | No | The type of place (e.g., cafe, library, park). |

## Raw Schema

```json
{
  "id": "org.passingreads.book.event",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "book",
          "location",
          "signatures",
          "occurredAt"
        ],
        "properties": {
          "book": {
            "ref": "com.atproto.repo.strongRef#main",
            "type": "ref",
            "description": "The book that was dropped (a org.passingreads.book.registration)"
          },
          "event": {
            "type": "string",
            "description": "What event has occurred",
            "knownValues": [
              "org.passingreads.book.checkin",
              "org.passingreads.book.drop",
              "org.passingreads.book.find"
            ]
          },
          "location": {
            "refs": [
              "com.atproto.repo.strongRef#main",
              "community.lexicon.location.hthree#main",
              "#osmLocation"
            ],
            "type": "union",
            "description": "Where this event occurred (an h3 cell, an OSM place, or a link to an outpost — org.passingreads.outpost.registration)"
          },
          "occurredAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp of when the book was dropped"
          },
          "signatures": {
            "type": "array",
            "items": {
              "ref": "org.passingreads.signature.book#main",
              "type": "ref"
            },
            "minLength": 1,
            "description": "Inline attestations binding this event to the book's keypair."
          }
        }
      },
      "description": "The status of a book has changed."
    },
    "osmLocation": {
      "type": "object",
      "required": [
        "osmId",
        "name",
        "value"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the place from OpenStreetMap."
        },
        "osmId": {
          "type": "string",
          "description": "The OpenStreetMap element ID in interoperable format: N (node), W (way), or R (relation) prefix followed by numeric ID. Example: N123456789"
        },
        "value": {
          "type": "string",
          "description": "The H3 cell index for proximity queries."
        },
        "category": {
          "type": "string",
          "description": "The type of place (e.g., cafe, library, park)."
        }
      },
      "description": "A physical location from OpenStreetMap."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
