Spaces:
Runtime error
Runtime error
File size: 715 Bytes
a28cd69 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
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);
|