2021-06-02 17:54:04 +00:00
|
|
|
type ChatType = 'disabled' | 'builtin-prosody' | 'builtin-converse' | 'external-uri'
|
2021-11-18 10:08:12 +00:00
|
|
|
type ConverseJSTheme = 'peertube' | 'default' | 'concord'
|
2021-06-02 17:54:04 +00:00
|
|
|
|
2021-06-11 23:16:57 +00:00
|
|
|
interface ProsodyListRoomsResultError {
|
|
|
|
ok: false
|
|
|
|
error: string
|
|
|
|
}
|
|
|
|
|
2021-08-05 16:25:27 +00:00
|
|
|
interface ProsodyListRoomsResultRoom {
|
|
|
|
jid: string
|
|
|
|
localpart: string
|
|
|
|
name: string
|
|
|
|
lang: string
|
|
|
|
description: string
|
|
|
|
lasttimestamp?: number
|
|
|
|
channel?: {
|
|
|
|
id: number
|
|
|
|
name: string
|
|
|
|
displayName: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-11 23:16:57 +00:00
|
|
|
interface ProsodyListRoomsResultSuccess {
|
|
|
|
ok: true
|
2021-08-05 16:25:27 +00:00
|
|
|
rooms: ProsodyListRoomsResultRoom[]
|
2021-06-11 23:16:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProsodyListRoomsResult = ProsodyListRoomsResultError | ProsodyListRoomsResultSuccess
|
|
|
|
|
2021-06-02 17:54:04 +00:00
|
|
|
export {
|
2021-06-11 23:16:57 +00:00
|
|
|
ChatType,
|
2021-11-18 10:08:12 +00:00
|
|
|
ConverseJSTheme,
|
2021-08-05 16:25:27 +00:00
|
|
|
ProsodyListRoomsResult,
|
|
|
|
ProsodyListRoomsResultRoom
|
2021-06-02 17:54:04 +00:00
|
|
|
}
|