atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.graph.getActorBookmarks",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get resources an actor has bookmarked.",
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": ["bookmarks"],
22 "properties": {
23 "bookmarks": {
24 "type": "array",
25 "items": {
26 "type": "object",
27 "required": ["subject", "createdAt"],
28 "properties": {
29 "subject": {
30 "type": "union",
31 "refs": [
32 "sh.weaver.notebook.defs#notebookView",
33 "sh.weaver.notebook.defs#entryView"
34 ]
35 },
36 "note": { "type": "string" },
37 "createdAt": { "type": "string", "format": "datetime" }
38 }
39 }
40 },
41 "cursor": { "type": "string" }
42 }
43 }
44 }
45 }
46 }
47}