@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
13 lines (12 loc) • 478 B
TypeScript
/// <reference types="node" />
import type { IUpload } from '../uploads';
import type { IUploadDescriptor } from '../uploads/IUploadDescriptor';
export interface IUploadCreator {
/**
* Create an upload to a room
*
* @param buffer A Buffer with the file's content (See [here](https://nodejs.org/api/buffer.html)
* @param descriptor The metadata about the upload
*/
uploadBuffer(buffer: Buffer, descriptor: IUploadDescriptor): Promise<IUpload>;
}