{ "lexicon": 1, "id": "social.grain.unspecced.getFollowing", "defs": { "main": { "type": "query", "description": "Get users that a given user follows.", "parameters": { "type": "params", "required": [ "actor" ], "properties": { "actor": { "type": "string", "format": "at-identifier" }, "viewer": { "type": "string", "format": "did" }, "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 }, "cursor": { "type": "string" } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "properties": { "totalCount": { "type": "integer" }, "items": { "type": "array", "items": { "type": "ref", "ref": "social.grain.unspecced.getFollowing#followingItem" } }, "cursor": { "type": "string" } } } } }, "followingItem": { "type": "object", "required": [ "did" ], "properties": { "did": { "type": "string", "format": "did" }, "handle": { "type": "string" }, "displayName": { "type": "string" }, "description": { "type": "string" }, "avatar": { "type": "string" }, "viewer": { "type": "ref", "ref": "social.grain.unspecced.getFollowing#viewerState" } } }, "viewerState": { "type": "object", "properties": { "following": { "type": "string", "format": "at-uri" } } } } }