from fastapi import APIRouter

from api.ai_report.report_html_route import router as report_html_router
from api.api_sql.ai_sql_trace_route import router as ai_sql_trace_router
from api.api_sql.sql_chat_route import router as sql_chat_router
# SQL & Insights
from api.api_sql.text_to_sql_route import router as text_to_sql_router
from api.api_sql.user_insight_route import router as user_insight_router
from api.cache.cache_route import router as cache_router
from api.common.auth_route import router as auth_router
# Core AI & Chatbot
from api.common.chatbot_route import router as chatbot_router
# Dashboards & Monitoring
from api.common.dashboard_route import router as dashboard_router
from api.common.faq_route import router as faq_router
from api.common.feedback_route import router as feedback_router
from api.common.insight_route import router as insight_router
# Testing & Simulation
from api.common.mock_api_route import router as mock_router
from api.common.n8n_api_route import router as n8n_router
from api.common.notification_route import router as notification_router
from api.common.prompt_route import router as prompt_router
from api.common.queue_route import router as queue_router
from api.common.tool_prompt_route import router as tool_prompt_router
from api.content_approval.content_approval_route import router as content_approval_router
from api.content_approval.templates_route import router as templates_router
from api.diagram_agent.ai_diagram_route import router as diagram_router
from api.experiment_log.experiment_links_route import router as experiment_links_router
from api.experiment_log.experiment_log_route import router as experiment_log_router
from api.fashion_matches.outfit_matches_route import router as outfit_matches_router
from api.fashion_matches.router import router as fashion_matches_router
from api.fashion_matches.simulator import router as fashion_matches_simulator_router
from api.feedback_agent.feedback_agent_route import router as feedback_agent_router
# History & Auth
from api.history.check_history_route import router as check_history_router
from api.history.conservation_route import router as conservation_router
from api.image_search.ai_image_search import router as ai_image_search_router
from api.lead_flow.lead_flow_route import router as lead_flow_router
from api.lead_flow.simulate_route import router as lead_flow_simulate_router
from api.limit.limit_route import router as limit_router
from api.live_monitor.live_monitor_route import router as live_monitor_router
from api.media_library.media_route import router as media_router
from api.merge_history.merge_history_route import router as merge_history_router
from api.mock_fe.mock_auth_route import router as mock_auth_router
from api.product.canifa_product_api import router as canifa_product_router
# Product & Stock
from api.product.product_route import router as product_router
from api.product.stock_route import router as stock_router
from api.product_desc.bulk_ops_route import router as bulk_ops_router
from api.product_desc.n8n_desc import router as n8n_desc_router
from api.product_desc.product_desc_route import router as product_desc_router
from api.product_desc.tags_direct_route import router as tags_direct_router
from api.prompt_optimizer.prompt_optimizer_route import router as prompt_optimizer_router
from api.reaction_simulator.reaction_simulator_route import router as reaction_simulator_router
from api.regression_test.regression_test_route import router as regression_test_router
from api.roadmap.roadmap_flow_route import router as roadmap_flow_router
from api.sku_search.ai_answer_sku import router as sku_search_router
# Content & Social
from api.social_inbox.social_inbox_route import router as social_inbox_router
from api.store_search.ai_store_search import router as ai_store_search_router
from api.stress_test.stress_test_route import router as stress_test_router
from api.user_simulator.user_simulator_route import router as user_simulator_router

# -------------------------------------------------------------------------
# Main API Router
# -------------------------------------------------------------------------
api_router = APIRouter()

# Core AI
api_router.include_router(chatbot_router)
api_router.include_router(prompt_router)
api_router.include_router(tool_prompt_router)
api_router.include_router(n8n_router)
api_router.include_router(feedback_router)
api_router.include_router(feedback_agent_router)
api_router.include_router(diagram_router)
api_router.include_router(sku_search_router)
api_router.include_router(insight_router)
# History & Auth
api_router.include_router(check_history_router)
api_router.include_router(conservation_router)
api_router.include_router(merge_history_router)
api_router.include_router(auth_router)
api_router.include_router(mock_auth_router)

# Product & Stock
api_router.include_router(product_router)
api_router.include_router(stock_router)
api_router.include_router(canifa_product_router)
api_router.include_router(product_desc_router)
api_router.include_router(n8n_desc_router)
api_router.include_router(bulk_ops_router)
api_router.include_router(tags_direct_router)
api_router.include_router(fashion_matches_router)
api_router.include_router(fashion_matches_simulator_router)
api_router.include_router(outfit_matches_router)
api_router.include_router(ai_store_search_router)
api_router.include_router(ai_image_search_router)

# SQL & Insights
api_router.include_router(text_to_sql_router)
api_router.include_router(sql_chat_router)
api_router.include_router(ai_sql_trace_router)
api_router.include_router(user_insight_router)

# Dashboards & Monitoring
api_router.include_router(dashboard_router)
api_router.include_router(faq_router)
api_router.include_router(cache_router)
api_router.include_router(live_monitor_router)
api_router.include_router(report_html_router)
api_router.include_router(experiment_links_router)
api_router.include_router(experiment_log_router)
api_router.include_router(roadmap_flow_router)

# Content & Social
api_router.include_router(social_inbox_router)
api_router.include_router(notification_router)
api_router.include_router(content_approval_router)
api_router.include_router(templates_router)
api_router.include_router(queue_router)
api_router.include_router(media_router)

# Testing & Simulation
api_router.include_router(mock_router)
api_router.include_router(prompt_optimizer_router)
api_router.include_router(user_simulator_router)
api_router.include_router(regression_test_router)
api_router.include_router(stress_test_router)
api_router.include_router(reaction_simulator_router)
api_router.include_router(lead_flow_router)
api_router.include_router(lead_flow_simulate_router)
api_router.include_router(limit_router)
