from flask import Blueprint from flask_restx import Namespace from libs.device_flow_security import attach_anti_framing from libs.external_api import ExternalApi bp = Blueprint("openapi", __name__, url_prefix="/openapi/v1") attach_anti_framing(bp) api = ExternalApi( bp, version="1.0", title="OpenAPI", description="User-scoped programmatic API (bearer auth)", ) openapi_ns = Namespace("openapi", description="User-scoped operations", path="/") from . import ( account, app_info, chat_messages, completion_messages, index, oauth_device, oauth_device_sso, workflow_run, workspaces, ) __all__ = [ "account", "app_info", "chat_messages", "completion_messages", "index", "oauth_device", "oauth_device_sso", "workflow_run", "workspaces", ] api.add_namespace(openapi_ns)