"""
API v1 路由聚合
==============
"""

from fastapi import APIRouter

from app.api.v1 import (
    auth,
    bgm_music,
    caption,
    cover_background,
    events,
    image,
    materials,
    points,
    script,
    system,
    tasks,
    update,
    upload,
    vidu,
    voice,
)

api_router = APIRouter()

# 认证模块
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])

# SSE 事件推送模块
api_router.include_router(events.router, prefix="/events", tags=["Events"])

# 系统模块
api_router.include_router(system.router, prefix="/system", tags=["System"])

# 任务管理模块
api_router.include_router(tasks.router, prefix="/tasks", tags=["Tasks"])

# 脚本模块（生成 / 润色）
api_router.include_router(script.router, prefix="/script", tags=["Script"])

# 字幕生成模块（火山引擎-豆包语音）
api_router.include_router(caption.router, tags=["Caption"])

# 语音合成模块（TTS + 声音复刻）
api_router.include_router(voice.router, tags=["Voice"])

# 文件上传模块
api_router.include_router(upload.router, tags=["Upload"])

# Vidu 视频生成模块
api_router.include_router(vidu.router, tags=["Vidu"])

# 空镜素材模块
api_router.include_router(materials.router, prefix="/materials", tags=["Materials"])

# 封面背景图模块
api_router.include_router(cover_background.router, tags=["Cover Background"])

# 积分系统模块
api_router.include_router(points.router, tags=["Points"])

# 图片处理模块（上传 + 抠图）
api_router.include_router(image.router, tags=["Image"])

# 背景音乐模块
api_router.include_router(bgm_music.router, tags=["BGM Music"])

# 应用更新模块
api_router.include_router(update.router, prefix="/update", tags=["Update"])
