2017-12-24 09:02:57 +00:00
|
|
|
export interface FE_Integration {
|
2017-12-21 04:28:43 +00:00
|
|
|
category: "bot" | "complex-bot" | "bridge" | "widget";
|
2017-05-28 06:35:40 +00:00
|
|
|
type: string;
|
2017-12-24 09:02:57 +00:00
|
|
|
requirements: FE_IntegrationRequirement[];
|
2017-12-21 04:28:43 +00:00
|
|
|
isEncryptionSupported: boolean;
|
|
|
|
displayName: string;
|
|
|
|
avatarUrl: string;
|
|
|
|
description: string;
|
|
|
|
isEnabled: boolean;
|
|
|
|
isPublic: boolean;
|
2019-04-13 22:31:02 +00:00
|
|
|
isOnline: boolean;
|
2017-12-10 10:17:33 +00:00
|
|
|
|
2017-12-21 04:28:43 +00:00
|
|
|
// Used by us
|
|
|
|
_inRoom: boolean;
|
|
|
|
_isUpdating: boolean;
|
|
|
|
_isSupported: boolean;
|
|
|
|
_notSupportedReason: string;
|
2017-05-27 07:27:36 +00:00
|
|
|
}
|
2017-05-29 04:51:04 +00:00
|
|
|
|
2018-03-25 06:45:57 +00:00
|
|
|
export interface FE_SimpleBot extends FE_Integration {
|
|
|
|
userId: string;
|
|
|
|
}
|
|
|
|
|
2018-03-26 03:01:05 +00:00
|
|
|
export interface FE_ComplexBot<T> extends FE_Integration {
|
|
|
|
notificationUserId: string;
|
|
|
|
botUserId?: string;
|
|
|
|
config: T;
|
|
|
|
}
|
|
|
|
|
2018-03-31 01:22:15 +00:00
|
|
|
export interface FE_Bridge<T> extends FE_Integration {
|
|
|
|
config: T;
|
|
|
|
}
|
|
|
|
|
2018-05-13 03:55:02 +00:00
|
|
|
export interface FE_StickerPack extends FE_Integration {
|
|
|
|
id: number;
|
|
|
|
author: {
|
|
|
|
type: "none" | "twitter" | "mx-user";
|
|
|
|
name: string;
|
|
|
|
reference: string;
|
|
|
|
};
|
|
|
|
license: {
|
|
|
|
name: string;
|
|
|
|
urlPath: string;
|
|
|
|
};
|
|
|
|
stickers: FE_Sticker[];
|
|
|
|
}
|
|
|
|
|
2018-05-13 05:51:31 +00:00
|
|
|
export interface FE_UserStickerPack extends FE_StickerPack {
|
|
|
|
isSelected: boolean;
|
|
|
|
}
|
|
|
|
|
2018-05-13 03:55:02 +00:00
|
|
|
export interface FE_Sticker {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
description: string;
|
|
|
|
image: {
|
|
|
|
mxc: string;
|
|
|
|
mimetype: string;
|
|
|
|
};
|
|
|
|
thumbnail: {
|
|
|
|
mxc: string;
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-07-23 21:10:27 +00:00
|
|
|
export interface FE_BigBlueButtonJoin {
|
|
|
|
// The meeting URL the client should load to join the meeting
|
|
|
|
url: string;
|
|
|
|
}
|
|
|
|
|
2021-05-04 08:38:44 +00:00
|
|
|
export interface FE_BigBlueButtonCreateAndJoinMeeting {
|
|
|
|
// The meeting URL the client should load to join the meeting
|
|
|
|
url: string;
|
|
|
|
}
|
|
|
|
|
2019-03-21 05:53:10 +00:00
|
|
|
export interface FE_StickerConfig {
|
|
|
|
enabled: boolean;
|
|
|
|
stickerBot: string;
|
|
|
|
managerUrl: string;
|
|
|
|
}
|
|
|
|
|
2017-12-24 09:02:57 +00:00
|
|
|
export interface FE_Widget extends FE_Integration {
|
2017-12-21 04:28:43 +00:00
|
|
|
options: any;
|
2017-06-05 03:31:31 +00:00
|
|
|
}
|
|
|
|
|
2017-12-24 09:02:57 +00:00
|
|
|
export interface FE_EtherpadWidget extends FE_Widget {
|
2017-12-21 04:28:43 +00:00
|
|
|
options: {
|
|
|
|
defaultUrl: string;
|
|
|
|
};
|
2017-08-28 01:05:38 +00:00
|
|
|
}
|
|
|
|
|
2017-12-24 09:02:57 +00:00
|
|
|
export interface FE_JitsiWidget extends FE_Widget {
|
2017-12-21 04:28:43 +00:00
|
|
|
options: {
|
|
|
|
jitsiDomain: string;
|
|
|
|
scriptUrl: string;
|
2018-12-23 02:30:25 +00:00
|
|
|
useDomainAsDefault: boolean;
|
2017-12-21 04:28:43 +00:00
|
|
|
};
|
2017-12-15 13:12:25 +00:00
|
|
|
}
|
|
|
|
|
2020-07-23 21:10:27 +00:00
|
|
|
export interface FE_BigBlueButtonWidget extends FE_Widget {
|
|
|
|
options: {
|
|
|
|
conferenceUrl: string;
|
2021-05-05 19:37:19 +00:00
|
|
|
createMeeting: boolean;
|
2020-07-23 21:10:27 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-09-02 08:05:50 +00:00
|
|
|
export interface FE_WhiteBoardWidget extends FE_Widget {
|
|
|
|
options: {
|
|
|
|
defaultUrl: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-12-24 09:02:57 +00:00
|
|
|
export interface FE_IntegrationRequirement {
|
2018-03-31 01:22:15 +00:00
|
|
|
condition: "publicRoom" | "canSendEventTypes" | "userInRoom";
|
2017-12-21 04:28:43 +00:00
|
|
|
argument: any;
|
|
|
|
expectedValue: any;
|
2020-07-23 21:10:27 +00:00
|
|
|
}
|