RoomIDstring`json:"room_id"`// Information about the newly created room.
}
typeGetLoginReplystruct{
Flows[]Flow// The homeserver's supported login types
}
typeLoginReplystruct{
AccessTokenstring`json:"access_token"`
HomeServerstring`json:"home_server,omitempty"`// TODO: check api
UserIDstring`json:"user_id"`
}
typeSyncReplystruct{
NextBatchstring`json:"next_batch"`// Required. The batch token to supply in the since param of the next /sync request.
RoomsRoomsSyncReply`json:"rooms"`// Updates to rooms.
PresencePresence`json:"presence"`// The updates to the presence status of other users.
AccountDataAccountData`json:"account_data"`// The global private data created by this user.
ToDeviceToDevice`json:"to_device"`// Information on the send-to-device messages for the client device, as defined in Send-to-Device messaging.
DeviceListsDeviceLists`json:"device_lists"`// Information on end-to-end device updates, as specified in End-to-end encryption.
DeviceOneTimeKeysCountmap[string]int`json:"device_one_time_keys_count"`// Information on end-to-end encryption keys, as specified in End-to-end encryption.
}
typeRoomsSyncReplystruct{
Joinmap[string]JoinedRoom`json:"join"`// The rooms that the user has joined.
Invitemap[string]InvitedRoom`json:"invite"`// The rooms that the user has been invited to.
Leavemap[string]LeftRoom`json:"leave"`// The rooms that the user has left or been banned from.
UserIDstring`json:"user_id"`// Required. The fully-qualified Matrix user ID (MXID) that has been registered. Any user ID returned by this API must conform to the grammar given in the Matrix specification.
AccessTokenstring`json:"access_token,omitempty"`// An access token for the account. This access token can then be used to authorize other requests. Required if the inhibit_login option is false.
DeviceIDstring`json:"device_id,omitempty"`// ID of the registered device. Will be the same as the corresponding parameter in the request, if one was specified. Required if the inhibit_login option is false.