2022-03-27 09:31:12 +00:00
|
|
|
import * as plugos from "../plugos/types";
|
2022-03-29 09:21:32 +00:00
|
|
|
import { EndpointHookT } from "../plugos/hooks/endpoint";
|
|
|
|
import { CronHookT } from "../plugos/hooks/node_cron";
|
|
|
|
import { EventHookT } from "../plugos/hooks/event";
|
|
|
|
import { CommandHookT } from "../webapp/hooks/command";
|
|
|
|
import { SlashCommandHookT } from "../webapp/hooks/slash_command";
|
2022-03-29 10:13:46 +00:00
|
|
|
import { CompleterHookT } from "../webapp/hooks/completer";
|
2022-03-29 09:21:32 +00:00
|
|
|
|
|
|
|
export type SilverBulletHooks = CommandHookT &
|
2022-03-29 10:13:46 +00:00
|
|
|
CompleterHookT &
|
2022-03-29 09:21:32 +00:00
|
|
|
SlashCommandHookT &
|
|
|
|
EndpointHookT &
|
|
|
|
CronHookT &
|
|
|
|
EventHookT;
|
2022-03-21 14:21:34 +00:00
|
|
|
|
2022-04-11 18:34:09 +00:00
|
|
|
export type SyntaxExtensions = {
|
|
|
|
syntax?: { [key: string]: NodeDef };
|
|
|
|
};
|
|
|
|
|
|
|
|
export type NodeDef = {
|
|
|
|
firstCharacters: string[];
|
|
|
|
regex: string;
|
|
|
|
styles: { [key: string]: string };
|
|
|
|
};
|
|
|
|
|
|
|
|
export type Manifest = plugos.Manifest<SilverBulletHooks> & SyntaxExtensions;
|