2020-10-01 02:09:23 +00:00
|
|
|
/*
|
2022-08-30 19:13:39 +00:00
|
|
|
* Copyright 2020-2022 The Matrix.org Foundation C.I.C.
|
2020-10-01 02:09:23 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2020-11-02 22:17:05 +00:00
|
|
|
import { IWidgetApiRequest } from "matrix-widget-api";
|
|
|
|
|
2020-10-01 02:09:23 +00:00
|
|
|
export enum ElementWidgetActions {
|
2022-09-16 15:12:27 +00:00
|
|
|
// All of these actions are currently specific to Jitsi and Element Call
|
2022-03-22 22:14:11 +00:00
|
|
|
JoinCall = "io.element.join",
|
2020-10-01 02:09:23 +00:00
|
|
|
HangupCall = "im.vector.hangup",
|
2022-03-22 22:14:11 +00:00
|
|
|
CallParticipants = "io.element.participants",
|
|
|
|
MuteAudio = "io.element.mute_audio",
|
|
|
|
UnmuteAudio = "io.element.unmute_audio",
|
|
|
|
MuteVideo = "io.element.mute_video",
|
|
|
|
UnmuteVideo = "io.element.unmute_video",
|
2021-03-02 15:20:54 +00:00
|
|
|
StartLiveStream = "im.vector.start_live_stream",
|
2022-10-24 17:54:24 +00:00
|
|
|
|
2022-06-27 20:45:13 +00:00
|
|
|
// Actions for switching layouts
|
|
|
|
TileLayout = "io.element.tile_layout",
|
|
|
|
SpotlightLayout = "io.element.spotlight_layout",
|
|
|
|
|
2020-10-01 02:09:23 +00:00
|
|
|
OpenIntegrationManager = "integration_manager_open",
|
2020-12-29 19:35:48 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @deprecated Use MSC2931 instead
|
|
|
|
*/
|
2020-11-02 22:17:05 +00:00
|
|
|
ViewRoom = "io.element.view_room",
|
|
|
|
}
|
|
|
|
|
2022-05-26 14:14:13 +00:00
|
|
|
export interface IHangupCallApiRequest extends IWidgetApiRequest {
|
|
|
|
data: {
|
|
|
|
errorMessage?: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-12-29 19:35:48 +00:00
|
|
|
/**
|
|
|
|
* @deprecated Use MSC2931 instead
|
|
|
|
*/
|
2020-11-02 22:17:05 +00:00
|
|
|
export interface IViewRoomApiRequest extends IWidgetApiRequest {
|
|
|
|
data: {
|
2020-11-03 04:38:59 +00:00
|
|
|
room_id: string; // eslint-disable-line camelcase
|
2020-11-02 22:17:05 +00:00
|
|
|
};
|
2020-10-01 02:09:23 +00:00
|
|
|
}
|