at main 51 lines 1.6 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.actor.getSuggestedAuthors", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get author recommendations for the authenticated user.", 8 "parameters": { 9 "type": "params", 10 "properties": { 11 "limit": { "type": "integer", "minimum": 1, "maximum": 50, "default": 20 } 12 } 13 }, 14 "output": { 15 "encoding": "application/json", 16 "schema": { 17 "type": "object", 18 "required": ["authors"], 19 "properties": { 20 "authors": { 21 "type": "array", 22 "items": { 23 "type": "object", 24 "required": ["author", "reason"], 25 "properties": { 26 "author": { "type": "ref", "ref": "sh.weaver.actor.defs#profileView" }, 27 "reason": { 28 "type": "string", 29 "knownValues": [ 30 "similar-to-followed", 31 "writes-similar-content", 32 "popular-in-tags-you-read", 33 "followed-by-people-you-follow" 34 ] 35 }, 36 "mutualFollows": { 37 "type": "array", 38 "maxLength": 3, 39 "items": { "type": "ref", "ref": "sh.weaver.actor.defs#profileViewBasic" }, 40 "description": "People you follow who also follow this author." 41 }, 42 "notebookCount": { "type": "integer" } 43 } 44 } 45 } 46 } 47 } 48 } 49 } 50 } 51}