diff options
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.d.ts')
-rw-r--r-- | includes/external/matrix/node_modules/matrix-widget-api/lib/interfaces/StickerAction.d.ts | 29 |
1 files changed, 29 insertions, 0 deletions
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; +} |