This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / lexicons / feed / getTimeline.json
3.0 kB 98 lines
1{ 2 "lexicon": 1, 3 "id": "sh.tangled.feed.getTimeline", 4 "defs": { 5 "main": { 6 "type": "query", 7 "parameters": { 8 "type": "params", 9 "properties": { 10 "viewer": { 11 "type": "string", 12 "format": "did", 13 "description": "TODO: deprecate this and use auth instead." 14 }, 15 "followingOnly": { "type": "boolean" }, 16 "limit": { 17 "type": "integer", 18 "minimum": 1, 19 "maximum": 100, 20 "default": 50 21 }, 22 "cursor": { "type": "string" } 23 } 24 }, 25 "output": { 26 "encoding": "application/json", 27 "schema": { 28 "type": "object", 29 "required": ["feed"], 30 "properties": { 31 "feed": { 32 "type": "array", 33 "items": { "type": "ref", "ref": "#timelineItem" } 34 }, 35 "cursor": { "type": "string" } 36 } 37 } 38 }, 39 "errors": [] 40 }, 41 "timelineItem": { 42 "type": "object", 43 "required": ["eventAt", "event"], 44 "properties": { 45 "eventAt": { "type": "string", "format": "datetime" }, 46 "event": { 47 "type": "union", 48 "refs": ["#repoEvent", "#starEvent", "#followEvent"] 49 } 50 } 51 }, 52 "repoEvent": { 53 "type": "object", 54 "description": "A repository was created (or forked). The actor is repo.owner.", 55 "required": ["uri", "cid", "repo"], 56 "properties": { 57 "uri": { "type": "string", "format": "at-uri" }, 58 "cid": { "type": "string", "format": "cid" }, 59 "repo": { "type": "ref", "ref": "sh.tangled.repo.defs#repoViewBasic" }, 60 "source": { 61 "type": "ref", 62 "ref": "sh.tangled.repo.defs#repoViewBasic", 63 "description": "Fork parent, present only if this repo is a fork." 64 } 65 } 66 }, 67 "starEvent": { 68 "type": "object", 69 "description": "A repository was starred.", 70 "required": ["uri", "cid", "actor", "repo"], 71 "properties": { 72 "uri": { "type": "string", "format": "at-uri" }, 73 "cid": { "type": "string", "format": "cid" }, 74 "actor": { 75 "type": "ref", 76 "ref": "sh.tangled.actor.defs#profileViewBasic", 77 "description": "Who starred." 78 }, 79 "repo": { 80 "type": "ref", 81 "ref": "sh.tangled.repo.defs#repoViewBasic", 82 "description": "The starred repo." 83 } 84 } 85 }, 86 "followEvent": { 87 "type": "object", 88 "description": "A user followed another user.", 89 "required": ["uri", "cid", "actor", "subject"], 90 "properties": { 91 "uri": { "type": "string", "format": "at-uri" }, 92 "cid": { "type": "string", "format": "cid" }, 93 "actor": { "type": "ref", "ref": "sh.tangled.actor.defs#profileViewBasic" }, 94 "subject": { "type": "ref", "ref": "sh.tangled.actor.defs#profileViewDetailed" } 95 } 96 } 97 } 98}