import availableAgents_default from "./routes/availableAgents.js";
import cliAuth_default from "./routes/cliAuth.js";
import github_default from "./routes/github.js";
import routes_default from "./routes/index.js";
import invitations_default from "./routes/invitations.js";
import mcp_default from "./routes/mcp.js";
import mcpToolGithubAccess_default from "./routes/mcpToolGithubAccess.js";
import oauth_default from "./routes/oauth.js";
import passwordResetLinks_default from "./routes/passwordResetLinks.js";
import playgroundToken_default from "./routes/playgroundToken.js";
import projectFull_default from "./routes/projectFull.js";
import projectGithubAccess_default from "./routes/projectGithubAccess.js";
import signoz_default from "./routes/signoz.js";
import users_default from "./routes/users.js";
import { OpenAPIHono } from "@hono/zod-openapi";

//#region src/domains/manage/index.ts
function createManageRoutes() {
	const app = new OpenAPIHono();
	app.route("/api/users", users_default);
	app.route("/api/cli", cliAuth_default);
	app.route("/api/invitations", invitations_default);
	app.route("/tenants/:tenantId", routes_default);
	app.route("/tenants/:tenantId/password-reset-links", passwordResetLinks_default);
	app.route("/tenants/:tenantId/playground/token", playgroundToken_default);
	app.route("/tenants/:tenantId/signoz", signoz_default);
	app.route("/tenants/:tenantId/github", github_default);
	app.route("/tenants/:tenantId/projects/:projectId/github-access", projectGithubAccess_default);
	app.route("/tenants/:tenantId/projects/:projectId/tools/:toolId/github-access", mcpToolGithubAccess_default);
	app.route("/tenants/:tenantId", projectFull_default);
	app.route("/oauth", oauth_default);
	app.route("/mcp", mcp_default);
	app.route("/available-agents", availableAgents_default);
	return app;
}
const manageRoutes = createManageRoutes();

//#endregion
export { createManageRoutes, manageRoutes };