{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-zoom-map-response-schema.json",
  "title": "ZoomMapResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-c4-api-openapi.yml#/components/schemas/ZoomMapResponse",
  "properties": {
    "root_id": {
      "type": "string",
      "title": "Root Id"
    },
    "project_name": {
      "type": "string",
      "title": "Project Name"
    },
    "total_files": {
      "type": "integer",
      "title": "Total Files"
    },
    "unclaimed_files": {
      "type": "integer",
      "title": "Unclaimed Files",
      "default": 0
    },
    "max_depth": {
      "type": "integer",
      "title": "Max Depth"
    },
    "truncated": {
      "type": "boolean",
      "title": "Truncated",
      "default": false
    },
    "nodes": {
      "items": {
        "$ref": "#/$defs/ZoomNodeResponse"
      },
      "type": "array",
      "title": "Nodes"
    },
    "relations": {
      "items": {
        "$ref": "#/$defs/ZoomRelationResponse"
      },
      "type": "array",
      "title": "Relations"
    }
  },
  "type": "object",
  "required": [
    "root_id",
    "project_name",
    "total_files",
    "max_depth",
    "nodes",
    "relations"
  ],
  "$defs": {
    "ZoomMetricsResponse": {
      "properties": {
        "file_count": {
          "type": "integer",
          "title": "File Count",
          "default": 0
        },
        "descendant_count": {
          "type": "integer",
          "title": "Descendant Count",
          "default": 0
        },
        "hotspot_count": {
          "type": "integer",
          "title": "Hotspot Count",
          "default": 0
        },
        "dead_count": {
          "type": "integer",
          "title": "Dead Count",
          "default": 0
        },
        "entry_point_count": {
          "type": "integer",
          "title": "Entry Point Count",
          "default": 0
        },
        "on_flow_count": {
          "type": "integer",
          "title": "On Flow Count",
          "default": 0
        }
      },
      "type": "object",
      "title": "ZoomMetricsResponse"
    },
    "ZoomNodeResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "parent_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Parent Id"
        },
        "level": {
          "type": "integer",
          "title": "Level"
        },
        "kind": {
          "type": "string",
          "title": "Kind"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "path": {
          "type": "string",
          "title": "Path",
          "default": ""
        },
        "children": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Children"
        },
        "importance": {
          "type": "number",
          "title": "Importance",
          "default": 0.0
        },
        "sibling_rank": {
          "type": "integer",
          "title": "Sibling Rank",
          "default": 0
        },
        "metrics": {
          "$ref": "#/$defs/ZoomMetricsResponse"
        },
        "summary": {
          "type": "string",
          "title": "Summary",
          "default": ""
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language"
        },
        "page_id": {
          "type": "string",
          "title": "Page Id",
          "default": ""
        },
        "health_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Health Score"
        },
        "is_entry_point": {
          "type": "boolean",
          "title": "Is Entry Point",
          "default": false
        },
        "is_hotspot": {
          "type": "boolean",
          "title": "Is Hotspot",
          "default": false
        },
        "is_dead": {
          "type": "boolean",
          "title": "Is Dead",
          "default": false
        },
        "is_test": {
          "type": "boolean",
          "title": "Is Test",
          "default": false
        },
        "on_flow": {
          "type": "boolean",
          "title": "On Flow",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "id",
        "level",
        "kind",
        "name"
      ],
      "title": "ZoomNodeResponse"
    },
    "ZoomRelationResponse": {
      "properties": {
        "parent_id": {
          "type": "string",
          "title": "Parent Id"
        },
        "source_id": {
          "type": "string",
          "title": "Source Id"
        },
        "target_id": {
          "type": "string",
          "title": "Target Id"
        },
        "label": {
          "type": "string",
          "title": "Label",
          "default": ""
        },
        "edge_count": {
          "type": "integer",
          "title": "Edge Count",
          "default": 1
        },
        "coupling": {
          "type": "string",
          "title": "Coupling",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "parent_id",
        "source_id",
        "target_id"
      ],
      "title": "ZoomRelationResponse"
    }
  }
}