{
  "openapi": "3.1.0",
  "info": {
    "title": "VectoKit Public Read API",
    "version": "1.0.0",
    "description": "Read-only endpoints for service status and published VectoKit editorial resources. Processing, account, billing, and download endpoints are intentionally not part of this public agent contract.",
    "termsOfService": "https://vectokit.com/terms",
    "contact": {
      "name": "VectoKit",
      "url": "https://vectokit.com/imprint",
      "email": "info@centerbit.co"
    }
  },
  "servers": [
    {
      "url": "https://vectokit.com"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "getServiceHealth",
        "summary": "Check whether VectoKit is available",
        "responses": {
          "200": {
            "description": "Service is available",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "ok"
                    }
                  },
                  "required": ["status"]
                }
              }
            }
          }
        }
      }
    },
    "/api/resources": {
      "get": {
        "operationId": "listPublishedResources",
        "summary": "List published editorial resources",
        "parameters": [
          {
            "name": "locale",
            "in": "query",
            "description": "Requested localized content variant.",
            "schema": {
              "type": "string",
              "enum": ["en", "de", "es", "fr", "it"],
              "default": "en"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of resources to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Result page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A paginated collection of published resources",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCollection"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Resource": {
        "type": "object",
        "properties": {
          "id": {
            "oneOf": [
              { "type": "integer" },
              { "type": "string" }
            ]
          },
          "articleKey": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "excerpt": {
            "type": "string"
          },
          "contentMarkdown": {
            "type": "string"
          },
          "publishedAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": ["id", "articleKey", "slug", "title", "description"]
      },
      "ResourceCollection": {
        "type": "object",
        "properties": {
          "docs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Resource"
            }
          },
          "totalDocs": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "totalPages": {
            "type": "integer"
          }
        },
        "required": ["docs", "totalDocs", "limit", "page", "totalPages"]
      }
    }
  }
}
