import Fastify from 'fastify';
import { registerGraphApiRoutes } from '../../routes/graph-api.js';
export const openGraphAuthService = {
    hasUsers: () => false,
    getUserFolders: () => [],
    getFolderUsers: () => [],
    getFolderMembers: () => [],
    getFolderRole: () => null,
};
export async function buildGraphApiTestApp(options) {
    const app = Fastify({ logger: false });
    await registerGraphApiRoutes(app, options.workspaceManager, (options.authService ?? openGraphAuthService), options.wsHub, options.sessionManager);
    await app.ready();
    return app;
}
//# sourceMappingURL=graph-api.js.map