There are beginning to be many types of entities to refresh, and the partially-mutually-exclusive arguments are confusing. The synchronous version will be split into separate functions per entity, and the asynchronous version will go away.
also suggests making the function signature optional for the function refresh entry.
Small suggestion on PR, but otherwise +1.