blob: f9e38410765f10ab080c8ca49b4d3b92dd2659f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
}
|