{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Add a book from the personal library to a personal shelf.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "contentHash": {
              "description": "SHA-256 hash of the book file content",
              "type": "string"
            },
            "shelfId": {
              "description": "ID of the shelf to add the book to",
              "type": "integer"
            }
          },
          "required": [
            "shelfId",
            "contentHash"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "buzz.bookhive.addToPersonalShelf",
  "lexicon": 1
}
