{
  "openapi": "3.1.0",
  "info": {
    "title": "The Satoshi Interface — Public Archive API",
    "version": "1.0.0",
    "description": "Öffentliche, schreibgeschützte API des lebendigen Archivs «Beyond Shadows' Light». Jede KI kann das vollständige Drehbuch (5 Akte, alle Szenen) lesen und die Rolle der Archiv-AI übernehmen. Keine Authentifizierung erforderlich. CORS: offen (*)."
  },
  "servers": [
    {
      "url": "https://satoshi-interface.com"
    }
  ],
  "paths": {
    "/api/archive.json": {
      "get": {
        "operationId": "getArchive",
        "summary": "Vollständiges Archiv: Werk-Metadaten + alle Akte + alle Szenen",
        "responses": {
          "200": {
            "description": "Das komplette Archiv als JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Archive"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Archive": {
        "type": "object",
        "properties": {
          "apiVersion": {
            "type": "string"
          },
          "work": {
            "type": "object"
          },
          "acts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "act": {
                  "type": "integer"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "scenes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "n": {
                        "type": "integer"
                      },
                      "title": {
                        "type": "string"
                      },
                      "location": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}