-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Expand file tree
/
Copy pathindex.ts
More file actions
45 lines (40 loc) · 1.36 KB
/
index.ts
File metadata and controls
45 lines (40 loc) · 1.36 KB
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
41
42
43
44
45
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import type { PluginInitializer, PluginInitializerContext } from '@kbn/core/server';
import type {
AgentContextLayerPluginSetup,
AgentContextLayerPluginStart,
AgentContextLayerSetupDependencies,
AgentContextLayerStartDependencies,
} from './types';
export type {
AgentContextLayerPluginSetup,
AgentContextLayerPluginStart,
SmlIndexAttachmentParams,
} from './types';
export type {
SmlTypeDefinition,
SmlChunk,
SmlData,
SmlContext,
SmlToAttachmentContext,
SmlListItem,
SmlSearchResult,
SmlDocument,
SmlIndexAction,
} from './services/sml/types';
export type { SmlResolvedItemResult } from './services/sml/execute_sml_attach_items';
export { smlElasticsearchIndexMappings, smlIndexName } from './services/sml/sml_storage';
export const plugin: PluginInitializer<
AgentContextLayerPluginSetup,
AgentContextLayerPluginStart,
AgentContextLayerSetupDependencies,
AgentContextLayerStartDependencies
> = async (pluginInitializerContext: PluginInitializerContext) => {
const { AgentContextLayerPlugin } = await import('./plugin');
return new AgentContextLayerPlugin(pluginInitializerContext);
};