{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trackingmcp-com/json-schema/trackingmcp-com-public-track-result-schema.json",
  "title": "PublicTrackResult",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trackingmcp-com-openapi.json#/components/schemas/PublicTrackResult",
  "type": "object",
  "properties": {
    "identifier": {
      "type": "string"
    },
    "identifier_type": {
      "type": "string",
      "enum": [
        "container_id",
        "bill_of_lading",
        "booking_number"
      ]
    },
    "carrier_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "carrier_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "eta": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "origin": {
      "type": [
        "string",
        "null"
      ]
    },
    "destination": {
      "type": [
        "string",
        "null"
      ]
    },
    "vessel": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "lat": {
          "type": [
            "number",
            "null"
          ]
        },
        "lng": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "datetime": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "actual": {
            "type": "boolean"
          },
          "event_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Machine readable event code such as GTIN, LOAD, DEPA, ARRI, DISC, GTOT. Null when the line gave none."
          },
          "unlocode": {
            "type": [
              "string",
              "null"
            ],
            "description": "Canonical UN/LOCODE of the place. Null when unknown."
          },
          "transport_mode": {
            "type": "string",
            "description": "How the box moved on this leg, as the line stated it. Omitted when the line did not say."
          }
        }
      }
    },
    "observability": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "lenses": {
          "type": "object",
          "properties": {
            "actuals": {
              "type": "boolean"
            },
            "position": {
              "type": "boolean"
            },
            "plan": {
              "type": "boolean"
            },
            "probability": {
              "type": "boolean"
            }
          }
        },
        "active_count": {
          "type": "integer"
        }
      }
    },
    "eta_is_estimated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "True when eta is an estimate, false when it is the actual arrival, null when there is no eta."
    },
    "equipment": {
      "type": "object",
      "properties": {
        "size_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Container size and type as the line wrote it."
        },
        "iso_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 6346 size and type code."
        },
        "seal_number": {
          "type": [
            "string",
            "null"
          ],
          "description": "Seal number."
        },
        "move_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Service or move type, for example CY/CY."
        },
        "vgm_kg": {
          "type": [
            "number",
            "null"
          ],
          "description": "Verified gross mass in kilograms."
        },
        "gross_weight_kg": {
          "type": [
            "number",
            "null"
          ],
          "description": "Gross cargo weight in kilograms."
        },
        "package_count": {
          "type": [
            "number",
            "null"
          ],
          "description": "Number of packages."
        },
        "package_unit": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unit of the package count."
        },
        "measurement_cbm": {
          "type": [
            "number",
            "null"
          ],
          "description": "Cargo volume in cubic metres."
        },
        "service_requirement": {
          "type": [
            "string",
            "null"
          ],
          "description": "Special service requirement stated by the line."
        }
      },
      "description": "Equipment and cargo facts. The whole key is omitted when every field is null."
    },
    "not_published_by_carrier": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Field name.",
        "enum": [
          "seal_number",
          "move_type",
          "vgm_kg",
          "gross_weight_kg",
          "package_count",
          "measurement_cbm",
          "service_requirement"
        ]
      },
      "description": "Equipment fields the line was asked for and did not publish. Omitted when empty or when equipment is omitted."
    },
    "demo": {
      "type": "boolean",
      "description": "True on a synthetic sample reference answered before the gate. Omitted otherwise."
    },
    "demo_state": {
      "type": "string",
      "description": "Present with demo.",
      "enum": [
        "synthetic"
      ]
    },
    "found": {
      "type": "boolean",
      "description": "Whether the line returned the shipment."
    },
    "answer": {
      "type": "string",
      "description": "What the line said.",
      "enum": [
        "found",
        "no_record",
        "no_answer"
      ]
    }
  }
}