{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "collectionStats": {
      "properties": {
        "collection": {
          "type": "string"
        },
        "records": {
          "type": "integer"
        },
        "unique_users": {
          "type": "integer"
        }
      },
      "required": [
        "collection",
        "records",
        "unique_users"
      ],
      "type": "object"
    },
    "main": {
      "description": "Get an overview of all indexed collections",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collections": {
              "items": {
                "ref": "#collectionStats",
                "type": "ref"
              },
              "type": "array"
            },
            "total_records": {
              "type": "integer"
            }
          },
          "required": [
            "total_records",
            "collections"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "rsvp.atmo.getOverview",
  "lexicon": 1
}
