{
  "openapi": "3.1.0",
  "info": {
    "title": "iLang 运行文件（ilang.cn）",
    "version": "1.0.0",
    "description": "ilang.cn 上的只读静态接口：iLang 运行文件的国内副本和它的清单。每周从正典（github.com/ilang-ai/ilang-spec）同步一次，和正典逐字节相同。无需认证。"
  },
  "servers": [
    {
      "url": "https://ilang.cn"
    }
  ],
  "paths": {
    "/runtime/manifest.json": {
      "get": {
        "operationId": "getRuntimeManifest",
        "summary": "运行文件清单：版本号和各文件的 sha256",
        "responses": {
          "200": {
            "description": "清单",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "bundles": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "version",
                    "bundles"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/runtime/ilang-latest.md": {
      "get": {
        "operationId": "getRuntime",
        "summary": "iLang 运行文件（core）",
        "responses": {
          "200": {
            "description": "运行文件正文，sha256 等于清单里的 bundles.core.sha256",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
