{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "blockItem": {
      "properties": {
        "avatar": {
          "type": "string"
        },
        "blockUri": {
          "format": "at-uri",
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        }
      },
      "required": [
        "did",
        "blockUri"
      ],
      "type": "object"
    },
    "main": {
      "description": "Get the viewer's blocked users.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "items": {
              "items": {
                "ref": "social.grain.unspecced.getBlocks#blockItem",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.grain.unspecced.getBlocks",
  "lexicon": 1
}
