{
  "openapi": "3.1.0",
  "info": {
    "title": "MVNDVS TERRARUM Agent Data",
    "version": "1.0.0",
    "description": "Static machine-readable JSON endpoints for the MVNDVS TERRARUM world atlas."
  },
  "servers": [
    {
      "url": "https://world.gjlmotea.com"
    }
  ],
  "paths": {
    "/data/agent/world-index.json": {
      "get": {
        "operationId": "getWorldAgentIndex",
        "summary": "Get dataset index",
        "responses": {
          "200": {
            "description": "Dataset index for AI agents",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDatasetIndex"
                }
              }
            }
          }
        }
      }
    },
    "/data/agent/{dataset}.json": {
      "get": {
        "operationId": "getWorldAgentDataset",
        "summary": "Get one normalized atlas dataset",
        "parameters": [
          {
            "name": "dataset",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "countries",
                "landmarks",
                "universities",
                "companies",
                "culture",
                "strategic"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized bilingual atlas records",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDataset"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AgentDatasetIndex": {
        "type": "object",
        "required": [
          "schemaVersion",
          "site",
          "datasets"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string"
          },
          "site": {
            "type": "object"
          },
          "datasets": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "AgentDataset": {
        "type": "object",
        "required": [
          "schemaVersion",
          "kind",
          "records"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "recordCount": {
            "type": "integer"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentRecord"
            }
          }
        }
      },
      "AgentRecord": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nameZh": {
            "type": "string"
          },
          "location": {
            "type": "object"
          },
          "summary": {
            "type": "object"
          },
          "description": {
            "type": "object"
          },
          "facts": {
            "type": "object"
          },
          "source": {
            "type": "object"
          }
        }
      }
    }
  }
}
