summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.d.ts
blob: 0ae474b1245db2105642bf2542f7b3590e5b28a2 (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
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;
}