{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xhostd-com/json-schema/xhostd-com-host-info-schema.json",
  "title": "HostInfo",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api.xhostd.com-openapi.json#/components/schemas/HostInfo",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "public_fqdn": {
      "type": "string",
      "title": "Public Fqdn"
    },
    "agent_endpoint": {
      "type": "string",
      "title": "Agent Endpoint"
    },
    "enrollment_state": {
      "type": "string",
      "title": "Enrollment State"
    },
    "last_seen_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Seen At"
    },
    "overlay_ip": {
      "type": "string",
      "title": "Overlay Ip"
    },
    "git_endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Git Endpoint"
    },
    "role": {
      "type": "string",
      "title": "Role"
    },
    "ingress_ip": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ingress Ip"
    },
    "wg_endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Wg Endpoint"
    },
    "wg_peers_converged": {
      "type": "boolean",
      "title": "Wg Peers Converged"
    },
    "machine_class": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Machine Class"
    },
    "mem_budget_mb": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mem Budget Mb"
    },
    "reserved_mem_mb": {
      "type": "integer",
      "title": "Reserved Mem Mb"
    },
    "users_by_plan": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Users By Plan"
    },
    "user_count": {
      "type": "integer",
      "title": "User Count"
    },
    "app_count": {
      "type": "integer",
      "title": "App Count"
    },
    "running_channels": {
      "type": "integer",
      "title": "Running Channels"
    },
    "total_channels": {
      "type": "integer",
      "title": "Total Channels"
    },
    "resident_databases": {
      "type": "integer",
      "title": "Resident Databases"
    },
    "code_stamp": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Code Stamp"
    },
    "agent_release": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Release"
    },
    "unit_releases": {
      "anyOf": [
        {
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Unit Releases"
    },
    "apply_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Apply Status"
    },
    "apply_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Apply Error"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "public_fqdn",
    "agent_endpoint",
    "enrollment_state",
    "last_seen_at",
    "overlay_ip",
    "git_endpoint",
    "role",
    "ingress_ip",
    "wg_endpoint",
    "wg_peers_converged",
    "machine_class",
    "mem_budget_mb",
    "reserved_mem_mb",
    "users_by_plan",
    "user_count",
    "app_count",
    "running_channels",
    "total_channels",
    "resident_databases",
    "code_stamp",
    "agent_release",
    "unit_releases",
    "apply_status",
    "apply_error"
  ]
}