{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Orbyt accounts the viewer follows on the connected network, as of their last follow sync: the find-friends list. Requires service auth.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidCursor"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "friends": {
              "items": {
                "ref": "com.getorbyt.actor.defs#profileView",
                "type": "ref"
              },
              "maxLength": 100,
              "type": "array"
            },
            "syncedAt": {
              "description": "When the viewer's network follows were last read. Absent before the first sync.",
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "friends"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "filter": {
            "default": "all",
            "description": "Legacy: `notFollowed` is for older builds' Follow All. It leaves out accounts the viewer already follows with the deprecated Orbyt follow or has unfollowed after an import, which is the set an import would follow.",
            "knownValues": [
              "all",
              "notFollowed"
            ],
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.getorbyt.graph.getNetworkFriends",
  "lexicon": 1
}
