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;
|
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;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
};
|
2017-12-15 08:12:25 -05:00
|
|
|
}
|
|
|
|
|
2017-12-24 04:02:57 -05:00
|
|
|
export interface FE_IntegrationRequirement {
|
2017-12-20 23:28:43 -05:00
|
|
|
condition: "publicRoom" | "canSendEventTypes";
|
|
|
|
argument: any;
|
|
|
|
expectedValue: any;
|
2017-12-10 02:59:36 -05:00
|
|
|
}
|