Rocket.Chat.ReactNative/app/definitions/rest/v1/commands.ts

24 lines
561 B
TypeScript
Raw Normal View History

import { IPreviewItem } from '../../ISlashCommand';
export type CommandsEndpoints = {
'commands.preview': {
GET: (params: { command: string; params: string; roomId: string }) => {
preview?: {
i18nTitle: string;
items: IPreviewItem[];
};
};
POST: (params: {
command: string;
params: string;
roomId: string;
previewItem: IPreviewItem;
triggerId: string;
tmid?: string;
}) => {};
};
'commands.run': {
POST: (params: { command: string; roomId: string; params: string; triggerId?: string; tmid?: string }) => {};
};
};