{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buckheadenergy-com/json-schema/buckheadenergy-com-operator-envelope-schema.json",
  "title": "OperatorEnvelope",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buckheadenergy-com-openapi.json#/components/schemas/OperatorEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "profile": {
          "$ref": "#/$defs/OperatorProfile"
        },
        "wells": {
          "type": "object",
          "nullable": false,
          "properties": {
            "totalWells": {
              "type": "integer"
            },
            "producingWells": {
              "type": "integer"
            },
            "statesActive": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "topFormation": {
              "type": [
                "string",
                "null"
              ]
            },
            "topCountyByState": {
              "type": "array",
              "maxItems": 25,
              "items": {
                "type": "object",
                "properties": {
                  "county": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "properties": {
        "apiVersion": {
          "type": "string"
        },
        "dataAsOf": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "Date the underlying metrics were last refreshed"
        },
        "source": {
          "type": "string",
          "description": "Attribution"
        }
      }
    },
    "OperatorProfile": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "companyName": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}