Limitint`json:"limit"`// Limit the number of results returned.
Sincestring`json:"since"`// A pagination token from a previous request, allowing clients to get the next (or previous) batch of rooms. The direction of pagination is specified solely by which token is supplied, rather than via an explicit flag.
Serverstring`json:"server"`// The server to fetch the public room lists from. Defaults to the local server.
FilterFilter`json:"filter"`// Filter to apply to the results.
IncludeAllNetworksbool`json:"include_all_networks"`// Whether or not to include all known networks/protocols from application services on the homeserver. Defaults to false.
ThirdPartyInstanceIDstring`json:"third_party_instance_id"`// The specific third party network/protocol to request from the homeserver. Can only be used if include_all_networks is false.
Chunk[]PublicRoomsChunk`json:"chunk"`// A paginated chunk of public rooms.
NextBatchstring`json:"next_batch,omitempty"`// A pagination token for the response. The absence of this token means there are no more results to fetch and the client should stop paginating.
PrevBatchstring`json:"prev_batch,omitempty"`// A pagination token that allows fetching previous results. The absence of this token means there are no results before this batch, i.e. this is the first batch.
TotalRoomCountEstimateint`json:"total_room_count_estimate,omitempty"`// An estimate on the total number of public rooms, if the server has an estimate.
}
typePublicRoomsChunkstruct{
Aliases[]string`json:"aliases,omitempty"`// Aliases of the room. May be empty.
CanonicalAliasstring`json:"canonical_alias,omitempty"`// The canonical alias of the room, if any.
Namestring`json:"name,omitempty"`// The name of the room, if any.
NumJoinedMembersint`json:"num_joined_members"`// Required. The number of members joined to the room.
RoomIDstring`json:"room_id"`// Required. The ID of the room.
Topicstring`json:"topic,omitempty"`// The topic of the room, if any.
WorldReadablebool`json:"world_readable"`// Required. Whether the room may be viewed by guest users without joining.
GuestCanJoinbool`json:"guest_can_join"`// Required. Whether guest users may join the room and participate in it. If they can, they will be subject to ordinary power level rules like any other user.
AvatarURLstring`json:"avatar_url,omitempty"`// The URL for the room's avatar, if one is set.
GenericSearchTermstring`json:"generic_search_term,omitempty"`// A string to search for in the room metadata, e.g. name, topic, canonical alias etc. (Optional).