The Minetest engine give access to most of his API with the minetest global table (+300 fields).
Some functions except an enum, but the enum values are stored in the global table:
https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L5668-L5673
A way to make an enum out of specific values of a table should be added IMO.