{
  "openapi": "3.1.0",
  "info": {
    "title": "RoboInd Robotics Industry Data API",
    "version": "1.6.0",
    "description": "Public, read-only machine interfaces for RoboInd's robot supply graph, published module counts, and paginated industrial-site registry, with bounded graph search. Industrial sites are enabled public registry records; they do not by themselves prove current production, available capacity, or a supplier relationship. Graph candidate supplier records and external research relationships also have distinct semantics and must not be interpreted as verified procurement or model compatibility. The industrial-map atlas also exposes live company classification and registration-region summaries, filtered company results, and category-overlap queries; taxonomy overlap does not establish a commercial supply relationship."
  },
  "servers": [
    {
      "url": "https://www.roboind.com"
    }
  ],
  "paths": {
    "/industry-insight/network/": {
      "get": {
        "operationId": "getRobotSupplyGraph",
        "summary": "Read or search the robot supply graph",
        "description": "Without mode=search, returns the full graph snapshot and published module counts. With mode=search and q, returns up to limit matching nodes and up to 250 one-hop related edges/nodes. Default substring mode preserves broad recall. Optional smart mode applies token boundaries to 2-4 character ASCII queries and ranks identity fields first. The response is publicly cacheable for up to 15 minutes.",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": true,
            "description": "Select the machine-readable JSON representation.",
            "schema": {
              "type": "string",
              "const": "json"
            },
            "example": "json"
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Set to search to return a bounded matching subgraph instead of the full graph.",
            "schema": {
              "type": "string",
              "enum": [
                "search"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Required when mode=search; 2-160 characters. Default substring matching searches node ID, label and metadata.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 160
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Optional node type filter for search.",
            "schema": {
              "type": "string",
              "enum": [
                "oem",
                "product",
                "component",
                "supplier",
                "mall",
                "company"
              ]
            }
          },
          {
            "name": "match_mode",
            "in": "query",
            "required": false,
            "description": "Optional search mode. substring is the default. smart applies token boundaries to short ASCII queries and returns match rank/field details.",
            "schema": {
              "type": "string",
              "enum": [
                "substring",
                "smart"
              ],
              "default": "substring"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum matching nodes; defaults to 20 and is capped at 50. Related edges are capped at 250.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current graph snapshot.",
            "headers": {
              "Cache-Control": {
                "description": "Public cache lifetime, currently 900 seconds.",
                "schema": {
                  "type": "string",
                  "example": "public, max-age=900"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GraphSnapshot"
                    },
                    {
                      "$ref": "#/components/schemas/GraphSearchSnapshot"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Required graph data tables are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string",
                      "const": "graph_data_unavailable"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/industry-insight/industrial-map/sites.json": {
      "get": {
        "operationId": "listIndustrialMapSites",
        "summary": "List public industrial map site records",
        "description": "Returns one page of enabled public industrial-site registry records, ordered with verified or approved records first. Each page contains up to 100 records. Follow next_url until it is null to retrieve all pages. Records reflect the registry fields and evidence URL exposed by RoboInd; a listed site does not itself prove current production, available capacity, or a supplier relationship.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "1-based page number; values are clamped to the available page range.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the public industrial-site registry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndustrialSitesPage"
                }
              }
            }
          },
          "503": {
            "description": "The public industrial-site dataset is temporarily unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/industry-insight/industrial-map/": {
      "get": {
        "operationId": "queryIndustrialMapAtlas",
        "summary": "Query live industrial-map atlas data",
        "description": "Returns current company counts by supply-chain stage, taxonomy category, and registered administrative region; or filtered public company records; or the overlap between two leaf categories. Data is generated from active public company/category/area records. Region means company-profile registration region, not factory location. Category membership and category overlap do not prove procurement, sales, contracts, supplier qualification, or production capacity.",
        "parameters": [
          {
            "name": "atlas_data",
            "in": "query",
            "required": true,
            "description": "Select the machine-readable atlas operation.",
            "schema": {
              "type": "string",
              "enum": [
                "summary",
                "companies",
                "compare"
              ]
            }
          },
          {
            "name": "catid",
            "in": "query",
            "required": false,
            "description": "For companies: one valid leaf taxonomy category ID.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "catids",
            "in": "query",
            "required": false,
            "description": "For companies: comma-separated valid leaf taxonomy category IDs; used when catid is not selected.",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          },
          {
            "name": "top_area",
            "in": "query",
            "required": false,
            "description": "For companies: administrative area ID; includes its descendant regions.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "areaid",
            "in": "query",
            "required": false,
            "description": "For companies: exact registered administrative area ID.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "For companies: company-name substring, up to 80 characters.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "For companies: 1-based page number; up to 100 records per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "a",
            "in": "query",
            "required": false,
            "description": "For compare: first valid leaf taxonomy category ID; required with b.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "b",
            "in": "query",
            "required": false,
            "description": "For compare: second, distinct valid leaf taxonomy category ID; required with a.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Live atlas summary, filtered company page, or two-category overlap response depending on atlas_data.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/IndustrialMapAtlasSummary"
                    },
                    {
                      "$ref": "#/components/schemas/IndustrialMapCompaniesPage"
                    },
                    {
                      "$ref": "#/components/schemas/IndustrialMapCategoryComparison"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Required public data tables are unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "IndustrialSitesPage": {
        "type": "object",
        "required": [
          "dataset_name",
          "dataset_version",
          "page_url",
          "generated_at",
          "total_active_records",
          "page",
          "page_size",
          "total_pages",
          "has_more",
          "next_url",
          "data_definition",
          "data_definition_zh",
          "items"
        ],
        "properties": {
          "dataset_name": {
            "type": "string",
            "const": "RoboInd 中国机器人产业地图：已公开产业节点"
          },
          "dataset_version": {
            "type": "string",
            "const": "1.1"
          },
          "page_url": {
            "type": "string",
            "format": "uri"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Generation time including the server's timezone offset."
          },
          "total_active_records": {
            "type": "integer",
            "minimum": 0
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "page_size": {
            "type": "integer",
            "const": 100
          },
          "total_pages": {
            "type": "integer",
            "minimum": 1
          },
          "has_more": {
            "type": "boolean"
          },
          "next_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Absolute stable path URL for the next page, or null on the final page."
          },
          "data_definition": {
            "type": "string",
            "description": "Defines the record scope, stable site_id, meaning of record_verified_at_utc, and limits on production, capacity, supplier, and evidence-freshness claims."
          },
          "data_definition_zh": {
            "type": "string",
            "description": "Chinese definition of dataset scope, stable site identifier, verification timestamp semantics, and evidence limitations."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialSiteRecord"
            }
          }
        }
      },
      "IndustrialSiteRecord": {
        "type": "object",
        "required": [
          "site_id",
          "entity_name",
          "site_name",
          "site_type",
          "region",
          "geo_precision",
          "verification_status",
          "record_verified_at_utc",
          "evidence_url"
        ],
        "properties": {
          "site_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Stable unique RoboInd industrial-site registry identifier. Do not infer business meaning from the numeric value."
          },
          "entity_name": {
            "type": "string",
            "description": "Linked entity name, or 未关联实体 when no entity is linked."
          },
          "site_name": {
            "type": "string"
          },
          "site_type": {
            "type": "string"
          },
          "region": {
            "type": "object",
            "description": "Recorded region fields; province, city, and district are omitted when empty.",
            "properties": {
              "province": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "district": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "geo_precision": {
            "type": "string",
            "description": "Disclosed location precision label; this is not a coordinate."
          },
          "verification_status": {
            "type": "string",
            "description": "Registry verification label; it does not guarantee that the source or operating state remains current."
          },
          "record_verified_at_utc": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Verification timestamp stored for this RoboInd record, in UTC. It is not the source publication date and does not guarantee continued validity."
          },
          "evidence_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Public source URL when the stored URL uses HTTP or HTTPS; otherwise null."
          }
        }
      },
      "GraphSnapshot": {
        "type": "object",
        "required": [
          "schema_version",
          "generated_at_utc",
          "published_content_counts_as_of",
          "published_content_count_definition",
          "published_content_count_definitions",
          "published_content_counts",
          "node_type_semantics",
          "relationship_semantics",
          "source_provenance",
          "metrics_as_of",
          "metric_definitions",
          "nodes",
          "edges",
          "components",
          "metrics"
        ],
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "1.3"
          },
          "generated_at_utc": {
            "type": "string",
            "format": "date-time",
            "description": "UTC generation time for this request."
          },
          "published_content_counts_as_of": {
            "type": "string",
            "format": "date-time",
            "description": "The same UTC request snapshot time as generated_at_utc for the published module counts."
          },
          "published_content_count_definition": {
            "type": "string",
            "description": "Shared scope for module counts: status=3 and non-empty public linkurl."
          },
          "published_content_count_definitions": {
            "type": "object",
            "required": [
              "products",
              "industry_insights",
              "news",
              "applications"
            ],
            "properties": {
              "products": {
                "type": "string"
              },
              "industry_insights": {
                "type": "string"
              },
              "news": {
                "type": "string"
              },
              "applications": {
                "type": "string"
              }
            }
          },
          "published_content_counts": {
            "type": "object",
            "required": [
              "products",
              "industry_insights",
              "news",
              "applications"
            ],
            "properties": {
              "products": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "description": "Null only if the source module table is unavailable; zero is a real count."
              },
              "industry_insights": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "description": "Null only if the source module table is unavailable; zero is a real count."
              },
              "news": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "description": "Null only if the source module table is unavailable; zero is a real count."
              },
              "applications": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "description": "Null only if the source module table is unavailable; zero is a real count."
              }
            }
          },
          "node_type_semantics": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "relationship_semantics": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "source_provenance": {
            "type": "object",
            "description": "Source attribution and public citation availability by relationship data source.",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "metrics_as_of": {
            "type": "string"
          },
          "metric_definitions": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GraphNode"
            }
          },
          "edges": {
            "type": "array",
            "description": "Rendered graph edges are deduplicated by source, target, type, and label. Source-record metrics may therefore be larger than the number of matching emitted edges.",
            "items": {
              "$ref": "#/components/schemas/GraphEdge"
            }
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Component"
            }
          },
          "metrics": {
            "$ref": "#/components/schemas/GraphMetrics"
          }
        }
      },
      "GraphSearchSnapshot": {
        "type": "object",
        "required": [
          "schema_version",
          "mode",
          "query",
          "generated_at_utc",
          "result_limit",
          "total_matching_nodes",
          "matched_nodes",
          "related_nodes",
          "related_edges",
          "related_edges_truncated",
          "node_type_semantics",
          "relationship_semantics",
          "source_provenance"
        ],
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "1.4"
          },
          "mode": {
            "type": "string",
            "const": "search"
          },
          "query": {
            "type": "string"
          },
          "generated_at_utc": {
            "type": "string",
            "format": "date-time"
          },
          "result_limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "total_matching_nodes": {
            "type": "integer",
            "minimum": 0
          },
          "matched_nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GraphNode"
            }
          },
          "related_nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GraphNode"
            }
          },
          "related_edges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GraphEdge"
            }
          },
          "related_edges_truncated": {
            "type": "boolean"
          },
          "node_type_semantics": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "relationship_semantics": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "source_provenance": {
            "type": "object",
            "additionalProperties": true
          },
          "note": {
            "type": "string"
          },
          "match_mode": {
            "type": "string",
            "enum": [
              "substring",
              "smart"
            ]
          },
          "match_details": {
            "type": "object",
            "description": "Details for each matched node, keyed by node ID.",
            "additionalProperties": {
              "type": "object",
              "required": [
                "rank",
                "matched_fields"
              ],
              "properties": {
                "rank": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 3
                },
                "matched_fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "GraphNode": {
        "type": "object",
        "required": [
          "id",
          "type",
          "label",
          "weight",
          "meta"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "oem",
              "product",
              "component",
              "supplier",
              "mall",
              "company"
            ]
          },
          "label": {
            "type": "string"
          },
          "weight": {
            "type": "integer",
            "minimum": 1
          },
          "meta": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "GraphEdge": {
        "type": "object",
        "required": [
          "source",
          "target",
          "type",
          "label",
          "meta"
        ],
        "properties": {
          "source": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "meta": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "source_system": {
                "type": "string",
                "description": "Named source provider when known."
              },
              "source_url": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri",
                "description": "Per-record public source URL when present and validated; null means the public graph does not expose one."
              },
              "citation_status": {
                "type": "string",
                "enum": [
                  "no_public_source_url",
                  "url_present_only_when_validated_https_source_exists"
                ],
                "description": "Whether this edge has a directly accessible public citation URL in the graph payload."
              }
            }
          }
        }
      },
      "Component": {
        "type": "object",
        "required": [
          "key",
          "name"
        ],
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "GraphMetrics": {
        "type": "object",
        "required": [
          "entities",
          "products",
          "bridged_products",
          "component_items",
          "relations",
          "external_relations",
          "external_confirmed",
          "external_research"
        ],
        "properties": {
          "entities": {
            "type": "integer",
            "minimum": 0
          },
          "products": {
            "type": "integer",
            "minimum": 0
          },
          "bridged_products": {
            "type": "integer",
            "minimum": 0
          },
          "component_items": {
            "type": "integer",
            "minimum": 0
          },
          "relations": {
            "type": "integer",
            "minimum": 0,
            "description": "Accepted candidate relationship source-record count. A source row may produce multiple edge types; duplicate emitted edge tuples are removed. This is not the emitted edge count or proof of supply."
          },
          "external_relations": {
            "type": "integer",
            "minimum": 0,
            "description": "FactSet Revere relationship source-row count. The emitted external_relation edges are deduplicated by source, target, type, and label, and may be fewer. The current public dataset does not include per-record original public source URLs."
          },
          "external_confirmed": {
            "type": "integer",
            "minimum": 0,
            "description": "Source-row count tagged accepted_factset_supplychain; not a deduplicated edge count. This is the platform data review status, not proof that this API supplies a clickable original disclosure URL for each record."
          },
          "external_research": {
            "type": "integer",
            "minimum": 0,
            "description": "Source-row count tagged research_factset_relationship; not a deduplicated edge count and not a supply relationship count."
          }
        }
      },
      "IndustrialMapAtlasSummary": {
        "type": "object",
        "required": [
          "summary",
          "stages",
          "roots",
          "categories",
          "links",
          "regions",
          "regionPosition",
          "regionStagePosition",
          "regionRootPosition",
          "regionStageRootPosition"
        ],
        "properties": {
          "summary": {
            "type": "object",
            "required": [
              "generated",
              "active",
              "positioned",
              "positionPct",
              "areaCount"
            ],
            "properties": {
              "generated": {
                "type": "string"
              },
              "active": {
                "type": "integer",
                "minimum": 0
              },
              "positioned": {
                "type": "integer",
                "minimum": 0
              },
              "positionPct": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "areaCount": {
                "type": "integer",
                "minimum": 0
              }
            }
          },
          "stages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapStage"
            }
          },
          "roots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapRoot"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapCategory"
            }
          },
          "links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapTaxonomyLink"
            }
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapRegion"
            }
          },
          "regionPosition": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapRegionPosition"
            }
          },
          "regionStagePosition": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapRegionStagePosition"
            }
          },
          "regionRootPosition": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapRegionRootPosition"
            }
          },
          "regionStageRootPosition": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapRegionStageRootPosition"
            }
          }
        }
      },
      "IndustrialMapStage": {
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "value",
          "kind"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "upstream",
              "midstream",
              "downstream",
              "ecosystem"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "value": {
            "type": "integer",
            "minimum": 0
          },
          "kind": {
            "type": "string",
            "const": "stage"
          }
        }
      },
      "IndustrialMapRoot": {
        "type": "object",
        "required": [
          "id",
          "name",
          "value",
          "kind"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "integer",
            "minimum": 0
          },
          "kind": {
            "type": "string",
            "const": "root"
          }
        }
      },
      "IndustrialMapCategory": {
        "type": "object",
        "required": [
          "id",
          "catid",
          "name",
          "value",
          "kind",
          "root_id",
          "root_name",
          "stage_id",
          "stage_name"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "catid": {
            "type": "integer",
            "minimum": 1
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "integer",
            "minimum": 0
          },
          "kind": {
            "type": "string",
            "const": "category"
          },
          "root_id": {
            "type": "string"
          },
          "root_name": {
            "type": "string"
          },
          "stage_id": {
            "type": "string"
          },
          "stage_name": {
            "type": "string"
          }
        }
      },
      "IndustrialMapTaxonomyLink": {
        "type": "object",
        "required": [
          "source",
          "target",
          "value"
        ],
        "properties": {
          "source": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "value": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "IndustrialMapRegion": {
        "type": "object",
        "required": [
          "name",
          "areaid",
          "value",
          "children"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "areaid": {
            "type": "integer",
            "minimum": 1
          },
          "value": {
            "type": "integer",
            "minimum": 0
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapRegionChild"
            }
          }
        }
      },
      "IndustrialMapRegionChild": {
        "type": "object",
        "required": [
          "name",
          "areaid",
          "value"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "areaid": {
            "type": "integer",
            "minimum": 1
          },
          "value": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "IndustrialMapRegionPosition": {
        "type": "object",
        "required": [
          "areaid",
          "catid",
          "value"
        ],
        "properties": {
          "areaid": {
            "type": "integer",
            "minimum": 1
          },
          "catid": {
            "type": "integer",
            "minimum": 1
          },
          "value": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "IndustrialMapRegionStagePosition": {
        "type": "object",
        "required": [
          "areaid",
          "stage_id",
          "value"
        ],
        "properties": {
          "areaid": {
            "type": "integer",
            "minimum": 1
          },
          "stage_id": {
            "type": "string"
          },
          "value": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "IndustrialMapRegionRootPosition": {
        "type": "object",
        "required": [
          "areaid",
          "root_id",
          "value"
        ],
        "properties": {
          "areaid": {
            "type": "integer",
            "minimum": 1
          },
          "root_id": {
            "type": "string"
          },
          "value": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "IndustrialMapRegionStageRootPosition": {
        "type": "object",
        "required": [
          "areaid",
          "stage_id",
          "root_id",
          "value"
        ],
        "properties": {
          "areaid": {
            "type": "integer",
            "minimum": 1
          },
          "stage_id": {
            "type": "string"
          },
          "root_id": {
            "type": "string"
          },
          "value": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "IndustrialMapCompaniesPage": {
        "type": "object",
        "required": [
          "total",
          "page",
          "page_size",
          "items"
        ],
        "properties": {
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "page_size": {
            "type": "integer",
            "const": 100
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapCompany"
            }
          }
        }
      },
      "IndustrialMapCompany": {
        "type": "object",
        "required": [
          "itemid",
          "username",
          "title",
          "linkurl",
          "domain",
          "areaid",
          "areaname",
          "positions"
        ],
        "properties": {
          "itemid": {
            "type": "integer",
            "minimum": 1
          },
          "username": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "linkurl": {
            "type": "string",
            "description": "Public company/member URL. May be empty if no public destination is available."
          },
          "domain": {
            "type": "string"
          },
          "areaid": {
            "type": "integer",
            "minimum": 0
          },
          "areaname": {
            "type": "string"
          },
          "positions": {
            "type": "string"
          }
        }
      },
      "IndustrialMapCategoryComparison": {
        "type": "object",
        "required": [
          "a",
          "b",
          "totalA",
          "totalB",
          "common",
          "items"
        ],
        "properties": {
          "a": {
            "type": "integer",
            "minimum": 1
          },
          "b": {
            "type": "integer",
            "minimum": 1
          },
          "totalA": {
            "type": "integer",
            "minimum": 0
          },
          "totalB": {
            "type": "integer",
            "minimum": 0
          },
          "common": {
            "type": "integer",
            "minimum": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustrialMapCompany"
            }
          }
        }
      }
    }
  }
}
