This commit is contained in:
Mckay Wrigley
2023-04-04 09:41:24 -06:00
committed by GitHub
parent e8150e7195
commit e1f286efb8
19 changed files with 1685 additions and 267 deletions
+39
View File
@@ -0,0 +1,39 @@
import { KeyValuePair } from './data';
export interface Plugin {
id: PluginID;
name: PluginName;
requiredKeys: KeyValuePair[];
}
export interface PluginKey {
pluginId: PluginID;
requiredKeys: KeyValuePair[];
}
export enum PluginID {
GOOGLE_SEARCH = 'google-search',
}
export enum PluginName {
GOOGLE_SEARCH = 'Google Search',
}
export const Plugins: Record<PluginID, Plugin> = {
[PluginID.GOOGLE_SEARCH]: {
id: PluginID.GOOGLE_SEARCH,
name: PluginName.GOOGLE_SEARCH,
requiredKeys: [
{
key: 'GOOGLE_API_KEY',
value: '',
},
{
key: 'GOOGLE_CSE_ID',
value: '',
},
],
},
};
export const PluginList = Object.values(Plugins);