update cpp api, unifying the enum naming