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";
|
2022-04-21 11:57:45 +00:00
|
|
|
import { CommandHookT } from "../silverbullet-webapp/hooks/command";
|
|
|
|
import { SlashCommandHookT } from "../silverbullet-webapp/hooks/slash_command";
|
2022-03-29 09:21:32 +00:00
|
|
|
|
|
|
|
export type SilverBulletHooks = CommandHookT &
|
|
|
|
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;
|