26 lines
497 B
TypeScript
Raw Normal View History

type ChatType = 'disabled' | 'builtin-prosody' | 'builtin-converse' | 'external-uri'
2021-06-12 01:16:57 +02:00
interface ProsodyListRoomsResultError {
ok: false
error: string
}
interface ProsodyListRoomsResultSuccess {
ok: true
rooms: Array<{
2021-06-12 03:52:45 +02:00
jid: string
localpart: string
2021-06-12 01:16:57 +02:00
name: string
2021-06-12 03:52:45 +02:00
lang: string
description: string
2021-07-19 16:51:51 +02:00
lasttimestamp?: number
2021-06-12 01:16:57 +02:00
}>
}
type ProsodyListRoomsResult = ProsodyListRoomsResultError | ProsodyListRoomsResultSuccess
export {
2021-06-12 01:16:57 +02:00
ChatType,
ProsodyListRoomsResult
}