@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
24 lines (23 loc) • 578 B
TypeScript
import type { IRoom } from '../rooms';
import type { IUser } from '../users';
export interface IUploadDescriptor {
/**
* Full filename of the file, including extension name
*/
filename: string;
/**
* The room where the file to be uploaded
*/
room: IRoom;
/**
* The user that performed the upload
*
* NOTE: please ignore this property if you are going
* to assign a livechat visitor to perform upload.
*/
user?: IUser | null;
/**
* The token of a Livechat visitor
*/
visitorToken?: string;
}