mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 04:12:50 +02:00
Enumerate child rooms with hierarchy endpoint
This commit is contained in:
parent
ff7af39802
commit
642be26313
3 changed files with 42 additions and 3 deletions
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue