summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-24 14:03:36 +0200
committerRaindropsSys <contact@minteck.org>2023-04-24 14:03:36 +0200
commit633c92eae865e957121e08de634aeee11a8b3992 (patch)
tree09d881bee1dae0b6eee49db1dfaf0f500240606c /includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces
parentc4657e4509733699c0f26a3c900bab47e915d5a0 (diff)
downloadpluralconnect-633c92eae865e957121e08de634aeee11a8b3992.tar.gz
pluralconnect-633c92eae865e957121e08de634aeee11a8b3992.tar.bz2
pluralconnect-633c92eae865e957121e08de634aeee11a8b3992.zip
Updated 18 files, added 1692 files and deleted includes/system/compare.inc (automated)
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces')
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.d.ts17
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js48
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/Capabilities.d.ts42
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js74
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.d.ts34
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.d.ts10
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.d.ts26
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.js30
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.d.ts10
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.d.ts19
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.d.ts10
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.d.ts3
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidget.d.ts50
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidget.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.d.ts10
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.js30
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.d.ts15
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.d.ts9
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.d.ts7
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.js32
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.d.ts55
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.js28
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.d.ts13
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.d.ts17
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.d.ts22
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.d.ts26
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.d.ts13
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.d.ts32
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.d.ts34
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.d.ts15
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.d.ts29
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickyAction.d.ts16
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickyAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.d.ts14
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.d.ts31
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.d.ts22
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.d.ts13
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.d.ts49
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js62
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.d.ts5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.js40
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.d.ts11
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.js5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.d.ts5
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.js30
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetType.d.ts6
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetType.js30
68 files changed, 1214 insertions, 0 deletions
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.d.ts
new file mode 100644
index 0000000..1234c5b
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.d.ts
@@ -0,0 +1,17 @@
+export declare enum MatrixApiVersion {
+ Prerelease1 = "0.0.1",
+ Prerelease2 = "0.0.2"
+}
+export declare enum UnstableApiVersion {
+ MSC2762 = "org.matrix.msc2762",
+ MSC2871 = "org.matrix.msc2871",
+ MSC2931 = "org.matrix.msc2931",
+ MSC2974 = "org.matrix.msc2974",
+ MSC2876 = "org.matrix.msc2876",
+ MSC3819 = "org.matrix.msc3819",
+ MSC3846 = "town.robin.msc3846",
+ MSC3869 = "org.matrix.msc3869",
+ MSC3973 = "org.matrix.msc3973"
+}
+export declare type ApiVersion = MatrixApiVersion | UnstableApiVersion | string;
+export declare const CurrentApiVersions: ApiVersion[];
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js
new file mode 100644
index 0000000..2454c0a
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js
@@ -0,0 +1,48 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.UnstableApiVersion = exports.MatrixApiVersion = exports.CurrentApiVersions = void 0;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var MatrixApiVersion;
+exports.MatrixApiVersion = MatrixApiVersion;
+
+(function (MatrixApiVersion) {
+ MatrixApiVersion["Prerelease1"] = "0.0.1";
+ MatrixApiVersion["Prerelease2"] = "0.0.2";
+})(MatrixApiVersion || (exports.MatrixApiVersion = MatrixApiVersion = {}));
+
+var UnstableApiVersion;
+exports.UnstableApiVersion = UnstableApiVersion;
+
+(function (UnstableApiVersion) {
+ UnstableApiVersion["MSC2762"] = "org.matrix.msc2762";
+ UnstableApiVersion["MSC2871"] = "org.matrix.msc2871";
+ UnstableApiVersion["MSC2931"] = "org.matrix.msc2931";
+ UnstableApiVersion["MSC2974"] = "org.matrix.msc2974";
+ UnstableApiVersion["MSC2876"] = "org.matrix.msc2876";
+ UnstableApiVersion["MSC3819"] = "org.matrix.msc3819";
+ UnstableApiVersion["MSC3846"] = "town.robin.msc3846";
+ UnstableApiVersion["MSC3869"] = "org.matrix.msc3869";
+ UnstableApiVersion["MSC3973"] = "org.matrix.msc3973";
+})(UnstableApiVersion || (exports.UnstableApiVersion = UnstableApiVersion = {}));
+
+var CurrentApiVersions = [MatrixApiVersion.Prerelease1, MatrixApiVersion.Prerelease2, //MatrixApiVersion.V010,
+UnstableApiVersion.MSC2762, UnstableApiVersion.MSC2871, UnstableApiVersion.MSC2931, UnstableApiVersion.MSC2974, UnstableApiVersion.MSC2876, UnstableApiVersion.MSC3819, UnstableApiVersion.MSC3846, UnstableApiVersion.MSC3869, UnstableApiVersion.MSC3973];
+exports.CurrentApiVersions = CurrentApiVersions; \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/Capabilities.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/Capabilities.d.ts
new file mode 100644
index 0000000..941e359
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/Capabilities.d.ts
@@ -0,0 +1,42 @@
+import { Symbols } from "../Symbols";
+export declare enum MatrixCapabilities {
+ Screenshots = "m.capability.screenshot",
+ StickerSending = "m.sticker",
+ AlwaysOnScreen = "m.always_on_screen",
+ /**
+ * @deprecated It is not recommended to rely on this existing - it can be removed without notice.
+ * Ask Element to not give the option to move the widget into a separate tab.
+ */
+ RequiresClient = "io.element.requires_client",
+ /**
+ * @deprecated It is not recommended to rely on this existing - it can be removed without notice.
+ */
+ MSC2931Navigate = "org.matrix.msc2931.navigate",
+ MSC3846TurnServers = "town.robin.msc3846.turn_servers",
+ /**
+ * @deprecated It is not recommended to rely on this existing - it can be removed without notice.
+ */
+ MSC3973UserDirectorySearch = "org.matrix.msc3973.user_directory_search"
+}
+export declare type Capability = MatrixCapabilities | string;
+export declare const StickerpickerCapabilities: Capability[];
+export declare const VideoConferenceCapabilities: Capability[];
+/**
+ * Determines if a capability is a capability for a timeline.
+ * @param {Capability} capability The capability to test.
+ * @returns {boolean} True if a timeline capability, false otherwise.
+ */
+export declare function isTimelineCapability(capability: Capability): boolean;
+/**
+ * Determines if a capability is a timeline capability for the given room.
+ * @param {Capability} capability The capability to test.
+ * @param {string | Symbols.AnyRoom} roomId The room ID, or `Symbols.AnyRoom` for that designation.
+ * @returns {boolean} True if a matching capability, false otherwise.
+ */
+export declare function isTimelineCapabilityFor(capability: Capability, roomId: string | Symbols.AnyRoom): boolean;
+/**
+ * Gets the room ID described by a timeline capability.
+ * @param {string} capability The capability to parse.
+ * @returns {string} The room ID.
+ */
+export declare function getTimelineRoomIDFromCapability(capability: Capability): string;
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js
new file mode 100644
index 0000000..110b91a
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js
@@ -0,0 +1,74 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.VideoConferenceCapabilities = exports.StickerpickerCapabilities = exports.MatrixCapabilities = void 0;
+exports.getTimelineRoomIDFromCapability = getTimelineRoomIDFromCapability;
+exports.isTimelineCapability = isTimelineCapability;
+exports.isTimelineCapabilityFor = isTimelineCapabilityFor;
+
+/*
+ * Copyright 2020 - 2021 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var MatrixCapabilities;
+exports.MatrixCapabilities = MatrixCapabilities;
+
+(function (MatrixCapabilities) {
+ MatrixCapabilities["Screenshots"] = "m.capability.screenshot";
+ MatrixCapabilities["StickerSending"] = "m.sticker";
+ MatrixCapabilities["AlwaysOnScreen"] = "m.always_on_screen";
+ MatrixCapabilities["RequiresClient"] = "io.element.requires_client";
+ MatrixCapabilities["MSC2931Navigate"] = "org.matrix.msc2931.navigate";
+ MatrixCapabilities["MSC3846TurnServers"] = "town.robin.msc3846.turn_servers";
+ MatrixCapabilities["MSC3973UserDirectorySearch"] = "org.matrix.msc3973.user_directory_search";
+})(MatrixCapabilities || (exports.MatrixCapabilities = MatrixCapabilities = {}));
+
+var StickerpickerCapabilities = [MatrixCapabilities.StickerSending];
+exports.StickerpickerCapabilities = StickerpickerCapabilities;
+var VideoConferenceCapabilities = [MatrixCapabilities.AlwaysOnScreen];
+/**
+ * Determines if a capability is a capability for a timeline.
+ * @param {Capability} capability The capability to test.
+ * @returns {boolean} True if a timeline capability, false otherwise.
+ */
+
+exports.VideoConferenceCapabilities = VideoConferenceCapabilities;
+
+function isTimelineCapability(capability) {
+ // TODO: Change when MSC2762 becomes stable.
+ return capability === null || capability === void 0 ? void 0 : capability.startsWith("org.matrix.msc2762.timeline:");
+}
+/**
+ * Determines if a capability is a timeline capability for the given room.
+ * @param {Capability} capability The capability to test.
+ * @param {string | Symbols.AnyRoom} roomId The room ID, or `Symbols.AnyRoom` for that designation.
+ * @returns {boolean} True if a matching capability, false otherwise.
+ */
+
+
+function isTimelineCapabilityFor(capability, roomId) {
+ return capability === "org.matrix.msc2762.timeline:".concat(roomId);
+}
+/**
+ * Gets the room ID described by a timeline capability.
+ * @param {string} capability The capability to parse.
+ * @returns {string} The room ID.
+ */
+
+
+function getTimelineRoomIDFromCapability(capability) {
+ return capability.substring(capability.indexOf(":") + 1);
+} \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.d.ts
new file mode 100644
index 0000000..c8fb957
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.d.ts
@@ -0,0 +1,34 @@
+import { IWidgetApiRequest, IWidgetApiRequestData, IWidgetApiRequestEmptyData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction, WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { Capability } from "./Capabilities";
+import { IWidgetApiAcknowledgeResponseData, IWidgetApiResponseData } from "./IWidgetApiResponse";
+export interface ICapabilitiesActionRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.Capabilities;
+ data: IWidgetApiRequestEmptyData;
+}
+export interface ICapabilitiesActionResponseData extends IWidgetApiResponseData {
+ capabilities: Capability[];
+}
+export interface ICapabilitiesActionResponse extends ICapabilitiesActionRequest {
+ response: ICapabilitiesActionResponseData;
+}
+export interface INotifyCapabilitiesActionRequestData extends IWidgetApiRequestData {
+ requested: Capability[];
+ approved: Capability[];
+}
+export interface INotifyCapabilitiesActionRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.NotifyCapabilities;
+ data: INotifyCapabilitiesActionRequestData;
+}
+export interface INotifyCapabilitiesActionResponse extends INotifyCapabilitiesActionRequest {
+ response: IWidgetApiAcknowledgeResponseData;
+}
+export interface IRenegotiateCapabilitiesActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.MSC2974RenegotiateCapabilities;
+ data: IRenegotiateCapabilitiesRequestData;
+}
+export interface IRenegotiateCapabilitiesRequestData extends IWidgetApiResponseData {
+ capabilities: Capability[];
+}
+export interface IRenegotiateCapabilitiesActionResponse extends IRenegotiateCapabilitiesActionRequest {
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.d.ts
new file mode 100644
index 0000000..65a768c
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.d.ts
@@ -0,0 +1,10 @@
+import { IWidgetApiRequest, IWidgetApiRequestEmptyData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiAcknowledgeResponseData } from "./IWidgetApiResponse";
+export interface IContentLoadedActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.ContentLoaded;
+ data: IWidgetApiRequestEmptyData;
+}
+export interface IContentLoadedActionResponse extends IContentLoadedActionRequest {
+ response: IWidgetApiAcknowledgeResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.d.ts
new file mode 100644
index 0000000..0b090f9
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.d.ts
@@ -0,0 +1,26 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+export declare enum OpenIDRequestState {
+ Allowed = "allowed",
+ Blocked = "blocked",
+ PendingUserConfirmation = "request"
+}
+export interface IOpenIDCredentials {
+ access_token?: string;
+ expires_in?: number;
+ matrix_server_name?: string;
+ token_type?: "Bearer" | string;
+}
+export interface IGetOpenIDActionRequestData extends IWidgetApiRequestData {
+}
+export interface IGetOpenIDActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.GetOpenIDCredentials;
+ data: IGetOpenIDActionRequestData;
+}
+export interface IGetOpenIDActionResponseData extends IWidgetApiResponseData, IOpenIDCredentials {
+ state: OpenIDRequestState;
+}
+export interface IGetOpenIDActionResponse extends IGetOpenIDActionRequest {
+ response: IGetOpenIDActionResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.js
new file mode 100644
index 0000000..4a38dfa
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.js
@@ -0,0 +1,30 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.OpenIDRequestState = void 0;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var OpenIDRequestState;
+exports.OpenIDRequestState = OpenIDRequestState;
+
+(function (OpenIDRequestState) {
+ OpenIDRequestState["Allowed"] = "allowed";
+ OpenIDRequestState["Blocked"] = "blocked";
+ OpenIDRequestState["PendingUserConfirmation"] = "request";
+})(OpenIDRequestState || (exports.OpenIDRequestState = OpenIDRequestState = {})); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.d.ts
new file mode 100644
index 0000000..862ab54
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.d.ts
@@ -0,0 +1,10 @@
+import { IWidgetData } from "./IWidget";
+/**
+ * Widget data for m.custom specifically.
+ */
+export interface ICustomWidgetData extends IWidgetData {
+ /**
+ * The URL for the widget if the templated URL is not exactly what will be loaded.
+ */
+ url?: string;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.d.ts
new file mode 100644
index 0000000..695b322
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.d.ts
@@ -0,0 +1,19 @@
+import { IWidgetData } from "./IWidget";
+/**
+ * Widget data for m.jitsi widgets.
+ */
+export interface IJitsiWidgetData extends IWidgetData {
+ /**
+ * The domain where the Jitsi Meet conference is being held.
+ */
+ domain: string;
+ /**
+ * The conference ID (also known as the room name) where the conference is being held.
+ */
+ conferenceId: string;
+ /**
+ * Optional. True to indicate that the conference should be without video, false
+ * otherwise (default).
+ */
+ isAudioOnly?: boolean;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.d.ts
new file mode 100644
index 0000000..15b258c
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.d.ts
@@ -0,0 +1,10 @@
+export interface IRoomEvent {
+ type: string;
+ sender: string;
+ event_id: string;
+ room_id: string;
+ state_key?: string;
+ origin_server_ts: number;
+ content: unknown;
+ unsigned: unknown;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.d.ts
new file mode 100644
index 0000000..5188bab
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.d.ts
@@ -0,0 +1,3 @@
+import { IWidgetData } from "./IWidget";
+export interface IStickerpickerWidgetData extends IWidgetData {
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidget.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidget.d.ts
new file mode 100644
index 0000000..fbc3d90
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidget.d.ts
@@ -0,0 +1,50 @@
+import { WidgetType } from "./WidgetType";
+/**
+ * Widget data.
+ */
+export interface IWidgetData {
+ /**
+ * Optional title for the widget.
+ */
+ title?: string;
+ /**
+ * Custom keys for inclusion in the template URL.
+ */
+ [key: string]: unknown;
+}
+/**
+ * Common properties of a widget.
+ * https://matrix.org/docs/spec/widgets/latest#widgetcommonproperties-schema
+ */
+export interface IWidget {
+ /**
+ * The ID of the widget.
+ */
+ id: string;
+ /**
+ * The user ID who originally created the widget.
+ */
+ creatorUserId: string;
+ /**
+ * Optional name for the widget.
+ */
+ name?: string;
+ /**
+ * The type of widget.
+ */
+ type: WidgetType;
+ /**
+ * The URL for the widget, with template variables.
+ */
+ url: string;
+ /**
+ * Optional flag to indicate whether or not the client should initiate communication
+ * right after the iframe loads (default, true) or when the widget indicates it is
+ * ready (false).
+ */
+ waitForIframeLoad?: boolean;
+ /**
+ * Data for the widget.
+ */
+ data?: IWidgetData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidget.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidget.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidget.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.d.ts
new file mode 100644
index 0000000..af8105f
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.d.ts
@@ -0,0 +1,10 @@
+import { IWidgetApiResponse, IWidgetApiResponseData } from "./IWidgetApiResponse";
+export interface IWidgetApiErrorResponseData extends IWidgetApiResponseData {
+ error: {
+ message: string;
+ };
+}
+export interface IWidgetApiErrorResponse extends IWidgetApiResponse {
+ response: IWidgetApiErrorResponseData;
+}
+export declare function isErrorResponse(responseData: IWidgetApiResponseData): boolean;
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.js
new file mode 100644
index 0000000..e20ea22
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.js
@@ -0,0 +1,30 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.isErrorResponse = isErrorResponse;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+function isErrorResponse(responseData) {
+ if ("error" in responseData) {
+ var err = responseData;
+ return !!err.error.message;
+ }
+
+ return false;
+} \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.d.ts
new file mode 100644
index 0000000..1e43391
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.d.ts
@@ -0,0 +1,15 @@
+import { WidgetApiDirection } from "./WidgetApiDirection";
+import { WidgetApiAction } from "./WidgetApiAction";
+export interface IWidgetApiRequestData {
+ [key: string]: unknown;
+}
+export interface IWidgetApiRequestEmptyData extends IWidgetApiRequestData {
+}
+export interface IWidgetApiRequest {
+ api: WidgetApiDirection;
+ requestId: string;
+ action: WidgetApiAction;
+ widgetId: string;
+ data: IWidgetApiRequestData;
+ visible?: any;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.d.ts
new file mode 100644
index 0000000..df28eac
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.d.ts
@@ -0,0 +1,9 @@
+import { IWidgetApiRequest } from "./IWidgetApiRequest";
+export interface IWidgetApiResponseData {
+ [key: string]: unknown;
+}
+export interface IWidgetApiAcknowledgeResponseData extends IWidgetApiResponseData {
+}
+export interface IWidgetApiResponse extends IWidgetApiRequest {
+ response: IWidgetApiResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.d.ts
new file mode 100644
index 0000000..71c9feb
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.d.ts
@@ -0,0 +1,7 @@
+export declare enum ModalButtonKind {
+ Primary = "m.primary",
+ Secondary = "m.secondary",
+ Warning = "m.warning",
+ Danger = "m.danger",
+ Link = "m.link"
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.js
new file mode 100644
index 0000000..25d3b66
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.js
@@ -0,0 +1,32 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.ModalButtonKind = void 0;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var ModalButtonKind;
+exports.ModalButtonKind = ModalButtonKind;
+
+(function (ModalButtonKind) {
+ ModalButtonKind["Primary"] = "m.primary";
+ ModalButtonKind["Secondary"] = "m.secondary";
+ ModalButtonKind["Warning"] = "m.warning";
+ ModalButtonKind["Danger"] = "m.danger";
+ ModalButtonKind["Link"] = "m.link";
+})(ModalButtonKind || (exports.ModalButtonKind = ModalButtonKind = {})); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.d.ts
new file mode 100644
index 0000000..52089b8
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.d.ts
@@ -0,0 +1,55 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction, WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiAcknowledgeResponseData, IWidgetApiResponse } from "./IWidgetApiResponse";
+import { IWidget } from "./IWidget";
+import { ModalButtonKind } from "./ModalButtonKind";
+export declare enum BuiltInModalButtonID {
+ Close = "m.close"
+}
+export declare type ModalButtonID = BuiltInModalButtonID | string;
+export interface IModalWidgetCreateData extends IWidgetApiRequestData {
+ [key: string]: unknown;
+}
+export interface IModalWidgetReturnData {
+ [key: string]: unknown;
+}
+export interface IModalWidgetOpenRequestDataButton {
+ id: ModalButtonID;
+ label: string;
+ kind: ModalButtonKind | string;
+ disabled?: boolean;
+}
+export interface IModalWidgetOpenRequestData extends IModalWidgetCreateData, Omit<IWidget, "id" | "creatorUserId"> {
+ buttons?: IModalWidgetOpenRequestDataButton[];
+}
+export interface IModalWidgetOpenRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.OpenModalWidget;
+ data: IModalWidgetOpenRequestData;
+}
+export interface IModalWidgetOpenResponse extends IWidgetApiResponse {
+ response: IWidgetApiAcknowledgeResponseData;
+}
+export interface IModalWidgetButtonClickedRequestData extends IWidgetApiRequestData {
+ id: IModalWidgetOpenRequestDataButton["id"];
+}
+export interface IModalWidgetButtonClickedRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.ButtonClicked;
+ data: IModalWidgetButtonClickedRequestData;
+}
+export interface IModalWidgetButtonClickedResponse extends IWidgetApiResponse {
+ response: IWidgetApiAcknowledgeResponseData;
+}
+export interface IModalWidgetCloseRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.CloseModalWidget;
+ data: IModalWidgetReturnData;
+}
+export interface IModalWidgetCloseResponse extends IWidgetApiResponse {
+ response: IWidgetApiAcknowledgeResponseData;
+}
+export interface IModalWidgetCloseNotificationRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.CloseModalWidget;
+ data: IModalWidgetReturnData;
+}
+export interface IModalWidgetCloseNotificationResponse extends IWidgetApiResponse {
+ response: IWidgetApiAcknowledgeResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.js
new file mode 100644
index 0000000..39dc434
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.js
@@ -0,0 +1,28 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.BuiltInModalButtonID = void 0;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var BuiltInModalButtonID;
+exports.BuiltInModalButtonID = BuiltInModalButtonID;
+
+(function (BuiltInModalButtonID) {
+ BuiltInModalButtonID["Close"] = "m.close";
+})(BuiltInModalButtonID || (exports.BuiltInModalButtonID = BuiltInModalButtonID = {})); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.d.ts
new file mode 100644
index 0000000..a0447dd
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.d.ts
@@ -0,0 +1,13 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiAcknowledgeResponseData } from "./IWidgetApiResponse";
+export interface INavigateActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.MSC2931Navigate;
+ data: INavigateActionRequestData;
+}
+export interface INavigateActionRequestData extends IWidgetApiRequestData {
+ uri: string;
+}
+export interface INavigateActionResponse extends INavigateActionRequest {
+ response: IWidgetApiAcknowledgeResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.d.ts
new file mode 100644
index 0000000..7cd0410
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.d.ts
@@ -0,0 +1,17 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+import { IOpenIDCredentials, OpenIDRequestState } from "./GetOpenIDAction";
+export interface IOpenIDCredentialsActionRequestData extends IWidgetApiRequestData, IOpenIDCredentials {
+ state: OpenIDRequestState;
+ original_request_id: string;
+}
+export interface IOpenIDCredentialsActionRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.OpenIDCredentials;
+ data: IOpenIDCredentialsActionRequestData;
+}
+export interface IOpenIDCredentialsActionResponseData extends IWidgetApiResponseData {
+}
+export interface IOpenIDCredentialsIDActionResponse extends IOpenIDCredentialsActionRequest {
+ response: IOpenIDCredentialsActionResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.d.ts
new file mode 100644
index 0000000..807f9be
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.d.ts
@@ -0,0 +1,22 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+import { IRoomEvent } from "./IRoomEvent";
+import { Symbols } from "../Symbols";
+export interface IReadEventFromWidgetRequestData extends IWidgetApiRequestData {
+ state_key?: string | boolean;
+ msgtype?: string;
+ type: string;
+ limit?: number;
+ room_ids?: Symbols.AnyRoom | string[];
+}
+export interface IReadEventFromWidgetActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.MSC2876ReadEvents;
+ data: IReadEventFromWidgetRequestData;
+}
+export interface IReadEventFromWidgetResponseData extends IWidgetApiResponseData {
+ events: IRoomEvent[];
+}
+export interface IReadEventFromWidgetActionResponse extends IReadEventFromWidgetActionRequest {
+ response: IReadEventFromWidgetResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.d.ts
new file mode 100644
index 0000000..0d15dfe
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.d.ts
@@ -0,0 +1,26 @@
+import { IRoomEvent } from "./IRoomEvent";
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+export interface IReadRelationsFromWidgetRequestData extends IWidgetApiRequestData {
+ event_id: string;
+ rel_type?: string;
+ event_type?: string;
+ room_id?: string;
+ limit?: number;
+ from?: string;
+ to?: string;
+ direction?: 'f' | 'b';
+}
+export interface IReadRelationsFromWidgetActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.MSC3869ReadRelations;
+ data: IReadRelationsFromWidgetRequestData;
+}
+export interface IReadRelationsFromWidgetResponseData extends IWidgetApiResponseData {
+ chunk: IRoomEvent[];
+ next_batch?: string;
+ prev_batch?: string;
+}
+export interface IReadRelationsFromWidgetActionResponse extends IReadRelationsFromWidgetActionRequest {
+ response: IReadRelationsFromWidgetResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.d.ts
new file mode 100644
index 0000000..7f0f62a
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.d.ts
@@ -0,0 +1,13 @@
+import { IWidgetApiRequest, IWidgetApiRequestEmptyData } from "./IWidgetApiRequest";
+import { WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+export interface IScreenshotActionRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.TakeScreenshot;
+ data: IWidgetApiRequestEmptyData;
+}
+export interface IScreenshotActionResponseData extends IWidgetApiResponseData {
+ screenshot: Blob;
+}
+export interface IScreenshotActionResponse extends IScreenshotActionRequest {
+ response: IScreenshotActionResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.d.ts
new file mode 100644
index 0000000..cb27110
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.d.ts
@@ -0,0 +1,32 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction, WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+import { IRoomEvent } from "./IRoomEvent";
+export interface ISendEventFromWidgetRequestData extends IWidgetApiRequestData {
+ state_key?: string;
+ type: string;
+ content: unknown;
+ room_id?: string;
+}
+export interface ISendEventFromWidgetActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.SendEvent;
+ data: ISendEventFromWidgetRequestData;
+}
+export interface ISendEventFromWidgetResponseData extends IWidgetApiResponseData {
+ room_id: string;
+ event_id: string;
+}
+export interface ISendEventFromWidgetActionResponse extends ISendEventFromWidgetActionRequest {
+ response: ISendEventFromWidgetResponseData;
+}
+export interface ISendEventToWidgetRequestData extends IWidgetApiRequestData, IRoomEvent {
+}
+export interface ISendEventToWidgetActionRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.SendEvent;
+ data: ISendEventToWidgetRequestData;
+}
+export interface ISendEventToWidgetResponseData extends IWidgetApiResponseData {
+}
+export interface ISendEventToWidgetActionResponse extends ISendEventToWidgetActionRequest {
+ response: ISendEventToWidgetResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.d.ts
new file mode 100644
index 0000000..f9e3841
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.d.ts
@@ -0,0 +1,34 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction, WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+import { IRoomEvent } from "./IRoomEvent";
+export interface ISendToDeviceFromWidgetRequestData extends IWidgetApiRequestData {
+ type: string;
+ encrypted: boolean;
+ messages: {
+ [userId: string]: {
+ [deviceId: string]: object;
+ };
+ };
+}
+export interface ISendToDeviceFromWidgetActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.SendToDevice;
+ data: ISendToDeviceFromWidgetRequestData;
+}
+export interface ISendToDeviceFromWidgetResponseData extends IWidgetApiResponseData {
+}
+export interface ISendToDeviceFromWidgetActionResponse extends ISendToDeviceFromWidgetActionRequest {
+ response: ISendToDeviceFromWidgetResponseData;
+}
+export interface ISendToDeviceToWidgetRequestData extends IWidgetApiRequestData, IRoomEvent {
+ encrypted: boolean;
+}
+export interface ISendToDeviceToWidgetActionRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.SendToDevice;
+ data: ISendToDeviceToWidgetRequestData;
+}
+export interface ISendToDeviceToWidgetResponseData extends IWidgetApiResponseData {
+}
+export interface ISendToDeviceToWidgetActionResponse extends ISendToDeviceToWidgetActionRequest {
+ response: ISendToDeviceToWidgetResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.d.ts
new file mode 100644
index 0000000..177dfce
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.d.ts
@@ -0,0 +1,15 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiAcknowledgeResponseData } from "./IWidgetApiResponse";
+import { ModalButtonID } from "./ModalWidgetActions";
+export interface ISetModalButtonEnabledActionRequestData extends IWidgetApiRequestData {
+ enabled: boolean;
+ button: ModalButtonID;
+}
+export interface ISetModalButtonEnabledActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.SetModalButtonEnabled;
+ data: ISetModalButtonEnabledActionRequestData;
+}
+export interface ISetModalButtonEnabledActionResponse extends ISetModalButtonEnabledActionRequest {
+ response: IWidgetApiAcknowledgeResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.d.ts
new file mode 100644
index 0000000..0ae474b
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.d.ts
@@ -0,0 +1,29 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiAcknowledgeResponseData } from "./IWidgetApiResponse";
+export interface IStickerActionRequestData extends IWidgetApiRequestData {
+ name: string;
+ description?: string;
+ content: {
+ url: string;
+ info?: {
+ h?: number;
+ w?: number;
+ mimetype?: string;
+ size?: number;
+ thumbnail_info?: {
+ h?: number;
+ w?: number;
+ mimetype?: string;
+ size?: number;
+ };
+ };
+ };
+}
+export interface IStickerActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.SendSticker;
+ data: IStickerActionRequestData;
+}
+export interface IStickerActionResponse extends IStickerActionRequest {
+ response: IWidgetApiAcknowledgeResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickyAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickyAction.d.ts
new file mode 100644
index 0000000..bb6faa4
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickyAction.d.ts
@@ -0,0 +1,16 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+export interface IStickyActionRequestData extends IWidgetApiRequestData {
+ value: boolean;
+}
+export interface IStickyActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.UpdateAlwaysOnScreen;
+ data: IStickyActionRequestData;
+}
+export interface IStickyActionResponseData extends IWidgetApiResponseData {
+ success: boolean;
+}
+export interface IStickyActionResponse extends IStickyActionRequest {
+ response: IStickyActionResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickyAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickyAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickyAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.d.ts
new file mode 100644
index 0000000..3e1dd13
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.d.ts
@@ -0,0 +1,14 @@
+import { IWidgetApiRequest, IWidgetApiRequestEmptyData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction, WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { ApiVersion } from "./ApiVersion";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+export interface ISupportedVersionsActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.SupportedApiVersions | WidgetApiToWidgetAction.SupportedApiVersions;
+ data: IWidgetApiRequestEmptyData;
+}
+export interface ISupportedVersionsActionResponseData extends IWidgetApiResponseData {
+ supported_versions: ApiVersion[];
+}
+export interface ISupportedVersionsActionResponse extends ISupportedVersionsActionRequest {
+ response: ISupportedVersionsActionResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.d.ts
new file mode 100644
index 0000000..55d5b3d
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.d.ts
@@ -0,0 +1,31 @@
+import { IWidgetApiRequest, IWidgetApiRequestData, IWidgetApiRequestEmptyData } from "./IWidgetApiRequest";
+import { WidgetApiFromWidgetAction, WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiAcknowledgeResponseData, IWidgetApiResponse } from "./IWidgetApiResponse";
+export interface ITurnServer {
+ uris: string[];
+ username: string;
+ password: string;
+}
+export interface IWatchTurnServersRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.WatchTurnServers;
+ data: IWidgetApiRequestEmptyData;
+}
+export interface IWatchTurnServersResponse extends IWidgetApiResponse {
+ response: IWidgetApiAcknowledgeResponseData;
+}
+export interface IUnwatchTurnServersRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.UnwatchTurnServers;
+ data: IWidgetApiRequestEmptyData;
+}
+export interface IUnwatchTurnServersResponse extends IWidgetApiResponse {
+ response: IWidgetApiAcknowledgeResponseData;
+}
+export interface IUpdateTurnServersRequestData extends IWidgetApiRequestData, ITurnServer {
+}
+export interface IUpdateTurnServersRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.UpdateTurnServers;
+ data: IUpdateTurnServersRequestData;
+}
+export interface IUpdateTurnServersResponse extends IWidgetApiResponse {
+ response: IWidgetApiAcknowledgeResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.d.ts
new file mode 100644
index 0000000..923cfa1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.d.ts
@@ -0,0 +1,22 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { IWidgetApiResponseData } from "./IWidgetApiResponse";
+import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
+export interface IUserDirectorySearchFromWidgetRequestData extends IWidgetApiRequestData {
+ search_term: string;
+ limit?: number;
+}
+export interface IUserDirectorySearchFromWidgetActionRequest extends IWidgetApiRequest {
+ action: WidgetApiFromWidgetAction.MSC3973UserDirectorySearch;
+ data: IUserDirectorySearchFromWidgetRequestData;
+}
+export interface IUserDirectorySearchFromWidgetResponseData extends IWidgetApiResponseData {
+ limited: boolean;
+ results: Array<{
+ user_id: string;
+ display_name?: string;
+ avatar_url?: string;
+ }>;
+}
+export interface IUserDirectorySearchFromWidgetActionResponse extends IUserDirectorySearchFromWidgetActionRequest {
+ response: IUserDirectorySearchFromWidgetResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.d.ts
new file mode 100644
index 0000000..814f9e9
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.d.ts
@@ -0,0 +1,13 @@
+import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
+import { WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiAcknowledgeResponseData } from "./IWidgetApiResponse";
+export interface IVisibilityActionRequestData extends IWidgetApiRequestData {
+ visible: boolean;
+}
+export interface IVisibilityActionRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.UpdateVisibility;
+ data: IVisibilityActionRequestData;
+}
+export interface IVisibilityActionResponse extends IVisibilityActionRequest {
+ response: IWidgetApiAcknowledgeResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.d.ts
new file mode 100644
index 0000000..0e67d07
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.d.ts
@@ -0,0 +1,49 @@
+export declare enum WidgetApiToWidgetAction {
+ SupportedApiVersions = "supported_api_versions",
+ Capabilities = "capabilities",
+ NotifyCapabilities = "notify_capabilities",
+ TakeScreenshot = "screenshot",
+ UpdateVisibility = "visibility",
+ OpenIDCredentials = "openid_credentials",
+ WidgetConfig = "widget_config",
+ CloseModalWidget = "close_modal",
+ ButtonClicked = "button_clicked",
+ SendEvent = "send_event",
+ SendToDevice = "send_to_device",
+ UpdateTurnServers = "update_turn_servers"
+}
+export declare enum WidgetApiFromWidgetAction {
+ SupportedApiVersions = "supported_api_versions",
+ ContentLoaded = "content_loaded",
+ SendSticker = "m.sticker",
+ UpdateAlwaysOnScreen = "set_always_on_screen",
+ GetOpenIDCredentials = "get_openid",
+ CloseModalWidget = "close_modal",
+ OpenModalWidget = "open_modal",
+ SetModalButtonEnabled = "set_button_enabled",
+ SendEvent = "send_event",
+ SendToDevice = "send_to_device",
+ WatchTurnServers = "watch_turn_servers",
+ UnwatchTurnServers = "unwatch_turn_servers",
+ /**
+ * @deprecated It is not recommended to rely on this existing - it can be removed without notice.
+ */
+ MSC2876ReadEvents = "org.matrix.msc2876.read_events",
+ /**
+ * @deprecated It is not recommended to rely on this existing - it can be removed without notice.
+ */
+ MSC2931Navigate = "org.matrix.msc2931.navigate",
+ /**
+ * @deprecated It is not recommended to rely on this existing - it can be removed without notice.
+ */
+ MSC2974RenegotiateCapabilities = "org.matrix.msc2974.request_capabilities",
+ /**
+ * @deprecated It is not recommended to rely on this existing - it can be removed without notice.
+ */
+ MSC3869ReadRelations = "org.matrix.msc3869.read_relations",
+ /**
+ * @deprecated It is not recommended to rely on this existing - it can be removed without notice.
+ */
+ MSC3973UserDirectorySearch = "org.matrix.msc3973.user_directory_search"
+}
+export declare type WidgetApiAction = WidgetApiToWidgetAction | WidgetApiFromWidgetAction | string;
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js
new file mode 100644
index 0000000..2a2aede
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js
@@ -0,0 +1,62 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.WidgetApiToWidgetAction = exports.WidgetApiFromWidgetAction = void 0;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var WidgetApiToWidgetAction;
+exports.WidgetApiToWidgetAction = WidgetApiToWidgetAction;
+
+(function (WidgetApiToWidgetAction) {
+ WidgetApiToWidgetAction["SupportedApiVersions"] = "supported_api_versions";
+ WidgetApiToWidgetAction["Capabilities"] = "capabilities";
+ WidgetApiToWidgetAction["NotifyCapabilities"] = "notify_capabilities";
+ WidgetApiToWidgetAction["TakeScreenshot"] = "screenshot";
+ WidgetApiToWidgetAction["UpdateVisibility"] = "visibility";
+ WidgetApiToWidgetAction["OpenIDCredentials"] = "openid_credentials";
+ WidgetApiToWidgetAction["WidgetConfig"] = "widget_config";
+ WidgetApiToWidgetAction["CloseModalWidget"] = "close_modal";
+ WidgetApiToWidgetAction["ButtonClicked"] = "button_clicked";
+ WidgetApiToWidgetAction["SendEvent"] = "send_event";
+ WidgetApiToWidgetAction["SendToDevice"] = "send_to_device";
+ WidgetApiToWidgetAction["UpdateTurnServers"] = "update_turn_servers";
+})(WidgetApiToWidgetAction || (exports.WidgetApiToWidgetAction = WidgetApiToWidgetAction = {}));
+
+var WidgetApiFromWidgetAction;
+exports.WidgetApiFromWidgetAction = WidgetApiFromWidgetAction;
+
+(function (WidgetApiFromWidgetAction) {
+ WidgetApiFromWidgetAction["SupportedApiVersions"] = "supported_api_versions";
+ WidgetApiFromWidgetAction["ContentLoaded"] = "content_loaded";
+ WidgetApiFromWidgetAction["SendSticker"] = "m.sticker";
+ WidgetApiFromWidgetAction["UpdateAlwaysOnScreen"] = "set_always_on_screen";
+ WidgetApiFromWidgetAction["GetOpenIDCredentials"] = "get_openid";
+ WidgetApiFromWidgetAction["CloseModalWidget"] = "close_modal";
+ WidgetApiFromWidgetAction["OpenModalWidget"] = "open_modal";
+ WidgetApiFromWidgetAction["SetModalButtonEnabled"] = "set_button_enabled";
+ WidgetApiFromWidgetAction["SendEvent"] = "send_event";
+ WidgetApiFromWidgetAction["SendToDevice"] = "send_to_device";
+ WidgetApiFromWidgetAction["WatchTurnServers"] = "watch_turn_servers";
+ WidgetApiFromWidgetAction["UnwatchTurnServers"] = "unwatch_turn_servers";
+ WidgetApiFromWidgetAction["MSC2876ReadEvents"] = "org.matrix.msc2876.read_events";
+ WidgetApiFromWidgetAction["MSC2931Navigate"] = "org.matrix.msc2931.navigate";
+ WidgetApiFromWidgetAction["MSC2974RenegotiateCapabilities"] = "org.matrix.msc2974.request_capabilities";
+ WidgetApiFromWidgetAction["MSC3869ReadRelations"] = "org.matrix.msc3869.read_relations";
+ WidgetApiFromWidgetAction["MSC3973UserDirectorySearch"] = "org.matrix.msc3973.user_directory_search";
+})(WidgetApiFromWidgetAction || (exports.WidgetApiFromWidgetAction = WidgetApiFromWidgetAction = {})); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.d.ts
new file mode 100644
index 0000000..19e58f4
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.d.ts
@@ -0,0 +1,5 @@
+export declare enum WidgetApiDirection {
+ ToWidget = "toWidget",
+ FromWidget = "fromWidget"
+}
+export declare function invertedDirection(dir: WidgetApiDirection): WidgetApiDirection;
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.js
new file mode 100644
index 0000000..69f296c
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.js
@@ -0,0 +1,40 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.WidgetApiDirection = void 0;
+exports.invertedDirection = invertedDirection;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var WidgetApiDirection;
+exports.WidgetApiDirection = WidgetApiDirection;
+
+(function (WidgetApiDirection) {
+ WidgetApiDirection["ToWidget"] = "toWidget";
+ WidgetApiDirection["FromWidget"] = "fromWidget";
+})(WidgetApiDirection || (exports.WidgetApiDirection = WidgetApiDirection = {}));
+
+function invertedDirection(dir) {
+ if (dir === WidgetApiDirection.ToWidget) {
+ return WidgetApiDirection.FromWidget;
+ } else if (dir === WidgetApiDirection.FromWidget) {
+ return WidgetApiDirection.ToWidget;
+ } else {
+ throw new Error("Invalid direction");
+ }
+} \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.d.ts
new file mode 100644
index 0000000..1d23330
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.d.ts
@@ -0,0 +1,11 @@
+import { IWidgetApiRequest } from "./IWidgetApiRequest";
+import { WidgetApiToWidgetAction } from "./WidgetApiAction";
+import { IWidgetApiAcknowledgeResponseData, IWidgetApiResponse } from "./IWidgetApiResponse";
+import { IModalWidgetOpenRequestData } from "./ModalWidgetActions";
+export interface IWidgetConfigRequest extends IWidgetApiRequest {
+ action: WidgetApiToWidgetAction.WidgetConfig;
+ data: IModalWidgetOpenRequestData;
+}
+export interface IWidgetConfigResponse extends IWidgetApiResponse {
+ response: IWidgetApiAcknowledgeResponseData;
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.js
new file mode 100644
index 0000000..430afc1
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.js
@@ -0,0 +1,5 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+}); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.d.ts
new file mode 100644
index 0000000..ee039b8
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.d.ts
@@ -0,0 +1,5 @@
+export declare enum WidgetKind {
+ Room = "room",
+ Account = "account",
+ Modal = "modal"
+}
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.js
new file mode 100644
index 0000000..1f0c622
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.js
@@ -0,0 +1,30 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.WidgetKind = void 0;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var WidgetKind;
+exports.WidgetKind = WidgetKind;
+
+(function (WidgetKind) {
+ WidgetKind["Room"] = "room";
+ WidgetKind["Account"] = "account";
+ WidgetKind["Modal"] = "modal";
+})(WidgetKind || (exports.WidgetKind = WidgetKind = {})); \ No newline at end of file
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetType.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetType.d.ts
new file mode 100644
index 0000000..87cb6c2
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetType.d.ts
@@ -0,0 +1,6 @@
+export declare enum MatrixWidgetType {
+ Custom = "m.custom",
+ JitsiMeet = "m.jitsi",
+ Stickerpicker = "m.stickerpicker"
+}
+export declare type WidgetType = MatrixWidgetType | string;
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetType.js b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetType.js
new file mode 100644
index 0000000..5a96344
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/WidgetType.js
@@ -0,0 +1,30 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.MatrixWidgetType = void 0;
+
+/*
+ * Copyright 2020 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var MatrixWidgetType;
+exports.MatrixWidgetType = MatrixWidgetType;
+
+(function (MatrixWidgetType) {
+ MatrixWidgetType["Custom"] = "m.custom";
+ MatrixWidgetType["JitsiMeet"] = "m.jitsi";
+ MatrixWidgetType["Stickerpicker"] = "m.stickerpicker";
+})(MatrixWidgetType || (exports.MatrixWidgetType = MatrixWidgetType = {})); \ No newline at end of file