vn-verdnaturachat/app/definitions/rest/v1/commands.ts

21 lines
426 B
TypeScript

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;
}) => {};
};
};