The Avatar object must have a type to be accepted by the API, this client does not have a type on the avatar object so it can't be set.
See Avatar object description here:
https://developers.intercom.com/reference#section-avatar-object
See dotnet and java references here that has the type field:
I will make pull request for this now.