{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onclarity-com/json-schema/onclarity-com-people-response-schema.json",
  "title": "PeopleResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onclarity-com-agent-usage-api-openapi.yml#/components/schemas/PeopleResponse",
  "properties": {
    "range": {
      "$ref": "#/$defs/src__agent_usage__schemas__DateRange"
    },
    "members_total": {
      "type": "integer",
      "title": "Members Total",
      "default": 0
    },
    "active_count": {
      "type": "integer",
      "title": "Active Count",
      "default": 0
    },
    "new_count": {
      "type": "integer",
      "title": "New Count",
      "default": 0
    },
    "lapsed_count": {
      "type": "integer",
      "title": "Lapsed Count",
      "default": 0
    },
    "me": {
      "anyOf": [
        {
          "$ref": "#/$defs/PersonRow"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "range"
  ],
  "$defs": {
    "PersonRow": {
      "properties": {
        "user_id": {
          "type": "integer",
          "title": "User Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email"
        },
        "is_former": {
          "type": "boolean",
          "title": "Is Former",
          "default": false
        },
        "conversations": {
          "type": "integer",
          "title": "Conversations",
          "default": 0
        },
        "agent_turns": {
          "type": "integer",
          "title": "Agent Turns",
          "default": 0
        },
        "agent_hours": {
          "type": "number",
          "title": "Agent Hours",
          "default": 0.0
        },
        "last_active": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Active"
        },
        "is_new": {
          "type": "boolean",
          "title": "Is New",
          "default": false
        },
        "is_lapsed": {
          "type": "boolean",
          "title": "Is Lapsed",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "user_id"
      ],
      "title": "PersonRow"
    },
    "src__agent_usage__schemas__DateRange": {
      "properties": {
        "from": {
          "type": "string",
          "format": "date",
          "title": "From"
        },
        "to": {
          "type": "string",
          "format": "date",
          "title": "To"
        }
      },
      "type": "object",
      "required": [
        "from",
        "to"
      ],
      "title": "DateRange",
      "description": "Effective (post-clamp) INCLUSIVE date range a response covers."
    }
  }
}