added enum types to api.rst