Enumerate child rooms with hierarchy endpoint

This commit is contained in:
Cadence Ember 2024-03-26 01:10:29 +13:00
commit 642be26313
3 changed files with 42 additions and 3 deletions

17
types.d.ts vendored
View file

@ -257,6 +257,18 @@ export namespace R {
export type EventRedacted = {
event_id: string
}
export type Hierarchy = {
avatar_url?: string
canonical_alias?: string
children_state: {}
guest_can_join: boolean
join_rule?: string
name?: string
num_joined_members: number
room_id: string
room_type?: string
}
}
export type Pagination<T> = {
@ -264,3 +276,8 @@ export type Pagination<T> = {
next_batch?: string
prev_match?: string
}
export type HierarchyPagination<T> = {
rooms: T[]
next_batch?: string
}