Where is the User JS API documentation? I’ve looked through this document several times and there doesn’t seem to be any documentation in the API reference describing the User model and its fields. I have the same question for Member and Sender.
According to the type declarations for the JS SDK, these types are exported but I cannot find any description of their fields, what kind of data to expect there or how to use them. In addition, the resource representation of the User in the platform API docs differs greatly from the type declaration so I don’t think any of that documentation is useful for the JS SDK. The User and Channel Metadata guide doesn’t help either.
This gives the impression that SDK users are expected to console.log whatever currentUser is and infer things like:
- what the difference is between
profileUrlandplainProfileUrl - what actual values are possible for
connectionStatuswhose type declaration only showsstring - what
getOriginalProfileUrl()does and how its return value differs from the other 2 profile URLs mentioned previously - etc.