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