{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "accountStats": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "loopCount": {
          "minimum": 0,
          "type": "integer"
        },
        "loopsConsumedCount": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "did",
        "loopCount",
        "loopsConsumedCount"
      ],
      "type": "object"
    },
    "main": {
      "description": "Canonical public earned and consumed loop totals for accounts.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "stats": {
              "items": {
                "ref": "#accountStats",
                "type": "ref"
              },
              "maxLength": 50,
              "type": "array"
            }
          },
          "required": [
            "stats"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "dids": {
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 50,
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "dids"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.getorbyt.video.getAccountLoopStats",
  "lexicon": 1
}
