{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-model-info-response-schema.json",
  "title": "ModelInfoResponse",
  "description": "Information about a model.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-connect-model-openapi.yml#/components/schemas/ModelInfoResponse",
  "required": [
    "entityCount",
    "hierarchyCount",
    "hierarchyTypes",
    "historyCount",
    "id",
    "ownerCount",
    "productCount",
    "psetDefCount",
    "layerCount",
    "trbSize",
    "versionId"
  ],
  "type": "object",
  "properties": {
    "trbSize": {
      "type": "integer",
      "description": "The TRB model size in bytes."
    },
    "id": {
      "minLength": 1,
      "type": "string",
      "description": "The model Id."
    },
    "versionId": {
      "minLength": 1,
      "type": "string",
      "description": "The versionId of the model."
    },
    "ownerCount": {
      "type": "integer",
      "description": "The total number of owners in the model."
    },
    "historyCount": {
      "type": "integer",
      "description": "The total number of History in the model."
    },
    "psetDefCount": {
      "type": "integer",
      "description": "The total number of property sets in the model."
    },
    "hierarchyCount": {
      "type": "integer",
      "description": "The total number of hierarchy relations in the model."
    },
    "productCount": {
      "type": "integer",
      "description": "The total number of products in the model."
    },
    "entityCount": {
      "type": "integer",
      "description": "The total number of entities in the model."
    },
    "layerCount": {
      "type": "integer",
      "description": "The total number of layers in the model."
    },
    "hierarchyTypes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HierarchyInfo"
      },
      "description": "Information about the hierarchy types in the model."
    },
    "metadata": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Metadata"
      },
      "description": "Metadata about the model."
    }
  },
  "$defs": {
    "HierarchyInfo": {
      "required": [
        "type",
        "count"
      ],
      "type": "object",
      "properties": {
        "type": {
          "minLength": 1,
          "type": "string",
          "description": "The hierarchy type."
        },
        "count": {
          "type": "integer",
          "description": "The count of entities below this(child entities count) in the hierarchy tree."
        }
      },
      "description": "Hierarchy type information."
    },
    "Metadata": {
      "required": [
        "key",
        "value"
      ],
      "type": "object",
      "properties": {
        "key": {
          "minLength": 1,
          "type": "string",
          "description": "The metadata's key."
        },
        "value": {
          "type": "string",
          "description": "The metadata's value."
        }
      },
      "description": "Hierarchy type information."
    }
  }
}