{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-clustering-status-response-data-schema.json",
  "title": "ClusteringStatusResponseData",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-clusters-api-openapi.yml#/components/schemas/ClusteringStatusResponseData",
  "properties": {
    "data": {
      "$ref": "#/$defs/ClusteringStatusResponse"
    }
  },
  "required": [
    "data"
  ],
  "type": "object",
  "$defs": {
    "ClusterNode": {
      "properties": {
        "filename": {
          "description": "The corresponding source file of your embedded storage bucket that the node is from.",
          "type": "string"
        },
        "text": {
          "description": "The text of the node.",
          "type": "string"
        }
      },
      "required": [
        "filename",
        "text"
      ],
      "title": "ClusterNode",
      "type": "object"
    },
    "ClusteringStatusResponse": {
      "properties": {
        "bucket": {
          "type": "string"
        },
        "clusters": {
          "items": {
            "$ref": "#/$defs/RecursiveCluster"
          },
          "type": "array"
        },
        "status": {
          "$ref": "#/$defs/TaskStatus"
        }
      },
      "required": [
        "status",
        "bucket",
        "clusters"
      ],
      "title": "ClusteringStatusResponse",
      "type": "object"
    },
    "RecursiveCluster": {
      "properties": {
        "cluster_header": {
          "type": "string"
        },
        "cluster_id": {
          "type": "string"
        },
        "cluster_summary": {
          "type": "string"
        },
        "nodes": {
          "items": {
            "$ref": "#/$defs/ClusterNode"
          },
          "type": "array"
        },
        "subclusters": {
          "items": {
            "$ref": "#/$defs/RecursiveCluster"
          },
          "type": "array"
        },
        "total_number_of_nodes": {
          "type": "integer"
        }
      },
      "required": [
        "cluster_id",
        "cluster_summary",
        "total_number_of_nodes"
      ],
      "title": "RecursiveCluster",
      "type": "object"
    },
    "TaskStatus": {
      "enum": [
        "pending",
        "starting",
        "running",
        "completed",
        "failed"
      ],
      "title": "TaskStatus",
      "type": "string"
    }
  }
}