ink.resenha.shop.setRequest
Requires the caller's service token. Turning a request off works while the Shop is paused.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | shop.resenha.ink |
| Commit rev | 3n25adnkgs72b |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.formatNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Requires the caller's service token. Turning a request off works while the Shop is paused.",
"errors": [
{
"description": "The Shop is paused; no new requests.",
"name": "ShopOff"
},
{
"description": "The account has made 30 requests today (UTC).",
"name": "RequestCap"
},
{
"description": "The Shop already has the book in that format.",
"name": "Available"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"book": {
"description": "The book page's key: its BookHive ID. Stand-in keys (popfeed-, isbn-, resenha-) are refused, and a shop- page always has the book.",
"maxLength": 128,
"type": "string"
},
"format": {
"knownValues": [
"ebook",
"audiobook"
],
"type": "string"
},
"on": {
"type": "boolean"
}
},
"required": [
"book",
"format",
"on"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"on": {
"type": "boolean"
}
},
"required": [
"on"
],
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Notify me: asks to be told when the Shop has a book in a format, or stops asking. The server keeps the request against the book's Open Library work when one resolves, else its BookHive ID, with the page it was asked on and the book's title, until it is cancelled, delivered and cleared, or the account is deleted.",
"id": "ink.resenha.shop.setRequest",
"lexicon": 1
}