24 lines
561 B
TypeScript
24 lines
561 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;
|
|
}) => {};
|
|
};
|
|
'commands.run': {
|
|
POST: (params: { command: string; roomId: string; params: string; triggerId?: string; tmid?: string }) => {};
|
|
};
|
|
};
|