Client API for model-driven apps