docs/api/src: fix scope of non-class enums