{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/luniumpay-com/json-schema/luniumpay-com-agent-network-schema.json",
  "title": "AgentNetwork",
  "description": "A arvore abaixo de um agente. `network_volume` conta a arvore inteira (serve para reputacao); `reward_eligible_volume` conta so o que remunera.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/luniumpay-com-mesh-network-api-openapi.yml#/components/schemas/AgentNetwork",
  "type": "object",
  "properties": {
    "agent_id": {
      "type": "string"
    },
    "referred_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "depth": {
      "type": "integer"
    },
    "direct_children": {
      "type": "integer"
    },
    "total_descendants": {
      "type": "integer"
    },
    "own_volume_cents": {
      "type": "integer"
    },
    "own_transactions": {
      "type": "integer"
    },
    "network_volume_cents": {
      "type": "integer"
    },
    "network_transactions": {
      "type": "integer"
    },
    "reward_eligible_volume_cents": {
      "type": "integer"
    },
    "lifetime_rewards_cents": {
      "type": "integer"
    },
    "first_operation": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "production_since": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "children": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}