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