The extension name to go under 'extensions' in the request body.
The JSON key.
OptionalonAn optional function which is called once per sync response, after onResponse has been called on all of
the extensions (of the same when() stage) which were present in the response. It is called even if this
extension was not itself present in the response.
This allows extensions which need to combine their data with that of other extensions (such as e2ee and
to_device) to act once the whole response has been seen.
Controls when onResponse should be called.
The state when it should be called.
An interface that must be satisfied to register extensions