atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.graph.getActorSubscriptions",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get notebooks an actor is subscribed to (accepted subscriptions only).",
8 "parameters": {
9 "type": "params",
10 "required": [
11 "actor"
12 ],
13 "properties": {
14 "actor": {
15 "type": "string",
16 "format": "at-identifier"
17 },
18 "cursor": {
19 "type": "string"
20 },
21 "limit": {
22 "type": "integer",
23 "default": 50,
24 "minimum": 1,
25 "maximum": 100
26 }
27 }
28 },
29 "output": {
30 "encoding": "application/json",
31 "schema": {
32 "type": "object",
33 "required": [
34 "subscriptions"
35 ],
36 "properties": {
37 "cursor": {
38 "type": "string"
39 },
40 "subscriptions": {
41 "type": "array",
42 "items": {
43 "type": "object",
44 "required": [
45 "notebook",
46 "subscribedAt"
47 ],
48 "properties": {
49 "hasUpdates": {
50 "type": "boolean",
51 "description": "True if notebook has new content since last visit."
52 },
53 "newEntryCount": {
54 "type": "integer",
55 "description": "Number of new entries since last visit."
56 },
57 "notebook": {
58 "type": "ref",
59 "ref": "sh.weaver.notebook.defs#notebookView"
60 },
61 "subscribedAt": {
62 "type": "string",
63 "format": "datetime"
64 }
65 }
66 }
67 }
68 }
69 }
70 }
71 }
72 }
73}