Update ui_api_refactor.py

enum