{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a profile's info. Does not require authentication.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "activity": {
              "description": "The user's activity",
              "items": {
                "ref": "buzz.bookhive.defs#activity",
                "type": "ref"
              },
              "type": "array"
            },
            "books": {
              "description": "All books in the user's library",
              "items": {
                "ref": "buzz.bookhive.defs#userBook",
                "type": "ref"
              },
              "type": "array"
            },
            "friendActivity": {
              "description": "The user's friend activity",
              "items": {
                "ref": "buzz.bookhive.defs#userBook",
                "type": "ref"
              },
              "type": "array"
            },
            "profile": {
              "description": "The user's profile",
              "ref": "buzz.bookhive.defs#profile",
              "type": "ref"
            }
          },
          "required": [
            "books",
            "profile",
            "activity",
            "friendActivity"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "The user's DID to get the profile of",
            "type": "string"
          },
          "handle": {
            "description": "The user's handle to get the profile of",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "buzz.bookhive.getProfile",
  "lexicon": 1
}
