mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
4965b61f2d
This still doesn't allow editing, but it supports showing the widgets at least.
40 lines
871 B
TypeScript
40 lines
871 B
TypeScript
export interface Integration {
|
|
category: "bot" | "complex-bot" | "bridge" | "widget";
|
|
type: string;
|
|
requirements: IntegrationRequirement[];
|
|
isEncryptionSupported: boolean;
|
|
displayName: string;
|
|
avatarUrl: string;
|
|
description: string;
|
|
isEnabled: boolean;
|
|
isPublic: boolean;
|
|
|
|
// Used by us
|
|
_inRoom: boolean;
|
|
_isUpdating: boolean;
|
|
_isSupported: boolean;
|
|
_notSupportedReason: string;
|
|
}
|
|
|
|
export interface Widget extends Integration {
|
|
options: any;
|
|
}
|
|
|
|
export interface EtherpadWidget extends Widget {
|
|
options: {
|
|
defaultUrl: string;
|
|
};
|
|
}
|
|
|
|
export interface JitsiWidget extends Widget {
|
|
options: {
|
|
jitsiDomain: string;
|
|
scriptUrl: string;
|
|
};
|
|
}
|
|
|
|
export interface IntegrationRequirement {
|
|
condition: "publicRoom" | "canSendEventTypes";
|
|
argument: any;
|
|
expectedValue: any;
|
|
} |