{
  "lexicon": 1,
  "id": "sh.tangled.spindle.countMembersBy",
  "defs": {
    "main": {
      "type": "query",
      "parameters": {
        "type": "params",
        "required": ["subject"],
        "properties": {
          "subject": {
            "type": "string",
            "format": "did",
            "description": "Actor DID whose spindle-member authorings to list."
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["count", "distinctAuthors"],
          "properties": {
            "count": {
              "type": "integer",
              "minimum": 0,
              "description": "Total number of matching records."
            },
            "distinctAuthors": {
              "type": "integer",
              "minimum": 0,
              "description": "Number of distinct authors among the matching records."
            }
          }
        }
      }
    }
  }
}
