Enumerate child rooms with hierarchy endpoint
This commit is contained in:
17
types.d.ts
vendored
17
types.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user