atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.notebook.updateReadingProgress",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Update reading progress for a notebook (appview-side state).",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "notebook"
14 ],
15 "properties": {
16 "currentEntry": {
17 "type": "string",
18 "description": "The entry the user is currently on.",
19 "format": "at-uri"
20 },
21 "notebook": {
22 "type": "string",
23 "format": "at-uri"
24 },
25 "percentComplete": {
26 "type": "integer",
27 "minimum": 0,
28 "maximum": 100
29 },
30 "status": {
31 "type": "string",
32 "knownValues": [
33 "reading",
34 "finished",
35 "abandoned",
36 "want-to-read"
37 ]
38 }
39 }
40 }
41 },
42 "output": {
43 "encoding": "application/json",
44 "schema": {
45 "type": "object",
46 "required": [
47 "progress"
48 ],
49 "properties": {
50 "progress": {
51 "type": "ref",
52 "ref": "sh.weaver.notebook.defs#readingProgress"
53 }
54 }
55 }
56 }
57 }
58 }
59}