{
	"actorSpecification": 1,
	"name": "site-to-api",
	"title": "BXC Site-to-API Autonomous Indexer",
	"description": "Transforms any website (e-commerce, news, blogs, documentation) into a fully typed OpenAPI 3.1 REST API with JSON-LD, microdata, data tables, FTS5 search, and pagination.",
	"version": "1.0.0",
	"run": "bun run src/main.ts",
	"input": {
		"type": "object",
		"properties": {
			"startUrls": {
				"type": "array",
				"items": {
					"type": "string"
				},
				"description": "One or more starting URLs to crawl and transform into an API.",
				"prefill": ["https://news.ycombinator.com"]
			},
			"url": {
				"type": "string",
				"description": "Single URL fallback."
			},
			"maxPages": {
				"type": "integer",
				"default": 10,
				"minimum": 1,
				"maximum": 500,
				"description": "Maximum number of pages to crawl."
			},
			"maxDepth": {
				"type": "integer",
				"default": 2,
				"minimum": 0,
				"maximum": 10,
				"description": "Maximum link traversal depth."
			},
			"concurrency": {
				"type": "integer",
				"default": 5,
				"minimum": 1,
				"maximum": 50,
				"description": "Maximum concurrent HTTP requests."
			},
			"profile": {
				"type": "string",
				"enum": ["http", "static", "fast", "stealth"],
				"default": "http",
				"description": "Browser / HTTP engine profile to use."
			},
			"openApiVersion": {
				"type": "string",
				"enum": ["3.1.0", "3.0.0"],
				"default": "3.1.0",
				"description": "OpenAPI version standard to emit."
			},
			"generateTypes": {
				"type": "boolean",
				"default": true,
				"description": "Generate TypeScript declaration types (.d.ts) for the extracted API."
			},
			"exportSqlite": {
				"type": "boolean",
				"default": true,
				"description": "Export indexed pages and items into an SQLite database with FTS5 search."
			},
			"sqlitePath": {
				"type": "string",
				"description": "Custom SQLite database output path."
			},
			"serve": {
				"type": "boolean",
				"default": false,
				"description": "Start a live Elysia REST API server with interactive Swagger UI."
			},
			"port": {
				"type": "integer",
				"default": 3456,
				"description": "Port for the live REST API server."
			}
		},
		"required": []
	}
}
