2017-05-28 02:35:40 -04:00
|
|
|
export interface 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-20 23:28:43 -05:00
|
|
|
requirements: IntegrationRequirement[];
|
|
|
|
isEncryptionSupported: boolean;
|
|
|
|
displayName: string;
|
|
|
|
avatarUrl: string;
|
|
|
|
description: string;
|
|
|
|
isEnabled: boolean;
|
|
|
|
isPublic: 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
|
|
|
|
2017-12-20 23:28:43 -05:00
|
|
|
export interface Widget extends Integration {
|
|
|
|
options: any;
|
2017-06-04 23:31:31 -04:00
|
|
|
}
|
|
|
|
|
2017-12-20 23:28:43 -05:00
|
|
|
export interface EtherpadWidget extends Widget {
|
|
|
|
options: {
|
|
|
|
defaultUrl: string;
|
|
|
|
};
|
2017-08-27 21:05:38 -04:00
|
|
|
}
|
|
|
|
|
2017-12-20 23:28:43 -05:00
|
|
|
export interface JitsiWidget extends Widget {
|
|
|
|
options: {
|
|
|
|
jitsiDomain: string;
|
|
|
|
scriptUrl: string;
|
|
|
|
};
|
2017-12-15 08:12:25 -05:00
|
|
|
}
|
|
|
|
|
2017-12-20 23:28:43 -05:00
|
|
|
export interface IntegrationRequirement {
|
|
|
|
condition: "publicRoom" | "canSendEventTypes";
|
|
|
|
argument: any;
|
|
|
|
expectedValue: any;
|
2017-12-10 02:59:36 -05:00
|
|
|
}
|