"""DMS plugin — folders, files, preview, OnlyOffice, internal sharing, search, bulk ops."""

from __future__ import annotations

from app.plugins.base import BasePlugin
from app.plugins.manifest import PluginManifest, PluginRouteDef


class DmsPlugin(BasePlugin):
    """DMS plugin for document management: folders, files, preview, sharing."""

    manifest = PluginManifest(
        name="dms",
        version="1.0.0",
        display_name="DMS",
        description="Document management: folder hierarchy, file upload, PDF preview, OnlyOffice edit sessions, internal sharing, search, bulk ops.",
        dependencies=["permissions"],
        routes=[
            PluginRouteDef(
                path="/api/v1/dms",
                module="app.plugins.builtins.dms.routes",
                router_attr="router",
            ),
        ],
        events=[],
        migrations=["0001_initial.sql"],
        permissions=[],
    )
