UNPKG

@rocket.chat/apps-engine

Version:

The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.

22 lines (21 loc) 479 B
import type { RequestMethod } from '../accessors'; import type { IUser } from '../users'; export interface IApiRequest { method: RequestMethod; headers: { [key: string]: string; }; query: { [key: string]: string; }; params: { [key: string]: string; }; content: any; privateHash?: string; /** * The user that is making the request, as * authenticated by Rocket.Chat's strategy. */ user?: IUser; }