@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
19 lines (18 loc) • 1.33 kB
TypeScript
import type { IUIKitContextualBarResponse, IUIKitErrorResponse, IUIKitModalResponse, IUIKitResponse } from './IUIKitInteractionType';
import type { IUIKitSurface } from './IUIKitSurface';
import type { IUIKitBaseIncomingInteraction } from './UIKitIncomingInteractionTypes';
import type { Omit } from '../../lib/utils';
import type { IUIKitErrorInteractionParam } from '../accessors/IUIController';
export type IUIKitModalViewParam = Omit<IUIKitSurface, 'appId' | 'id' | 'type'> & Partial<Pick<IUIKitSurface, 'id'>>;
export type IUIKitContextualBarViewParam = Omit<IUIKitSurface, 'appId' | 'id' | 'type'> & Partial<Pick<IUIKitSurface, 'id'>>;
export declare class UIKitInteractionResponder {
private readonly baseContext;
constructor(baseContext: IUIKitBaseIncomingInteraction);
successResponse(): IUIKitResponse;
errorResponse(): IUIKitResponse;
openModalViewResponse(viewData: IUIKitModalViewParam): IUIKitModalResponse;
updateModalViewResponse(viewData: IUIKitModalViewParam): IUIKitModalResponse;
openContextualBarViewResponse(viewData: IUIKitContextualBarViewParam): IUIKitContextualBarResponse;
updateContextualBarViewResponse(viewData: IUIKitContextualBarViewParam): IUIKitContextualBarResponse;
viewErrorResponse(errorInteraction: IUIKitErrorInteractionParam): IUIKitErrorResponse;
}