atproto blogging
at main 74 lines 1.7 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.graph.getBookmarkedBy", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get users who bookmarked a resource.", 8 "parameters": { 9 "type": "params", 10 "required": [ 11 "subject" 12 ], 13 "properties": { 14 "cursor": { 15 "type": "string" 16 }, 17 "limit": { 18 "type": "integer", 19 "default": 50, 20 "minimum": 1, 21 "maximum": 100 22 }, 23 "subject": { 24 "type": "string", 25 "format": "at-uri" 26 } 27 } 28 }, 29 "output": { 30 "encoding": "application/json", 31 "schema": { 32 "type": "object", 33 "required": [ 34 "uri", 35 "bookmarks" 36 ], 37 "properties": { 38 "bookmarks": { 39 "type": "array", 40 "items": { 41 "type": "object", 42 "required": [ 43 "actor", 44 "createdAt" 45 ], 46 "properties": { 47 "actor": { 48 "type": "ref", 49 "ref": "sh.weaver.actor.defs#profileViewBasic" 50 }, 51 "createdAt": { 52 "type": "string", 53 "format": "datetime" 54 } 55 } 56 } 57 }, 58 "cid": { 59 "type": "string", 60 "format": "cid" 61 }, 62 "cursor": { 63 "type": "string" 64 }, 65 "uri": { 66 "type": "string", 67 "format": "at-uri" 68 } 69 } 70 } 71 } 72 } 73 } 74}