@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
25 lines (24 loc) • 1.06 kB
TypeScript
import type { IMessage } from '../messages';
import type { IRoom } from '../rooms';
import type { IUser } from '../users';
import type { IUIKitIncomingInteractionActionButton } from './IUIKitIncomingInteractionActionButton';
import type { IUIKitIncomingInteractionMessageContainer, IUIKitIncomingInteractionModalContainer } from './UIKitIncomingInteractionContainer';
export declare enum UIKitIncomingInteractionType {
BLOCK = "blockAction",
VIEW_SUBMIT = "viewSubmit",
VIEW_CLOSED = "viewClosed",
ACTION_BUTTON = "actionButton"
}
/** @deprecated use UIKitIncomingInteraction instead */
export interface IUIKitIncomingInteraction {
type: 'blockAction' | 'viewSubmit' | 'viewClosed';
container: IUIKitIncomingInteractionModalContainer | IUIKitIncomingInteractionMessageContainer;
user: IUser;
appId: string;
payload: object;
actionId?: string;
triggerId?: string;
room?: IRoom;
message?: IMessage;
}
export type UIKitIncomingInteraction = IUIKitIncomingInteraction | IUIKitIncomingInteractionActionButton;