The ProjectAPI.addHook() method misses the functionality of adding a note-hook using this method. I tried to create a pull request for this - but unfortunately, I do not have write-permissions for this repo.