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": ["actor"],
11 "properties": {
12 "actor": { "type": "string", "format": "at-identifier" },
13 "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 },
14 "cursor": { "type": "string" }
15 }
16 },
17 "output": {
18 "encoding": "application/json",
19 "schema": {
20 "type": "object",
21 "required": ["subscriptions"],
22 "properties": {
23 "subscriptions": {
24 "type": "array",
25 "items": {
26 "type": "object",
27 "required": ["notebook", "subscribedAt"],
28 "properties": {
29 "notebook": { "type": "ref", "ref": "sh.weaver.notebook.defs#notebookView" },
30 "subscribedAt": { "type": "string", "format": "datetime" },
31 "hasUpdates": {
32 "type": "boolean",
33 "description": "True if notebook has new content since last visit."
34 },
35 "newEntryCount": {
36 "type": "integer",
37 "description": "Number of new entries since last visit."
38 }
39 }
40 }
41 },
42 "cursor": { "type": "string" }
43 }
44 }
45 }
46 }
47 }
48}