{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-connector-stats-schema.json",
  "title": "ConnectorStats",
  "description": "Statistics for a connector's records",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-connector-instances-api-openapi.yml#/components/schemas/ConnectorStats",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "orgId": {
          "type": "string"
        },
        "connectorId": {
          "type": "string"
        },
        "origin": {
          "type": "string"
        },
        "stats": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer"
            },
            "indexingStatus": {
              "type": "object",
              "additionalProperties": {
                "type": "integer"
              }
            }
          }
        },
        "byRecordType": {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      }
    }
  }
}