-
Notifications
You must be signed in to change notification settings - Fork 8.3k
/
Copy pathindex.ts
52 lines (48 loc) · 1.75 KB
/
index.ts
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
46
47
48
49
50
51
52
/*
* 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 { PluginInitializerContext, PluginConfigDescriptor } from '../../../../src/core/server';
import { Plugin, PluginSetup, PluginStart } from './plugin';
import { configSchema, ConfigType } from './config';
import { SIGNALS_INDEX_KEY } from '../common/constants';
import { AppClient } from './types';
export const plugin = (context: PluginInitializerContext) => {
return new Plugin(context);
};
export const config: PluginConfigDescriptor<ConfigType> = {
exposeToBrowser: {
enableExperimental: true,
},
schema: configSchema,
deprecations: ({ deprecate, renameFromRoot }) => [
deprecate('enabled', '8.0.0'),
renameFromRoot('xpack.siem.enabled', 'xpack.securitySolution.enabled'),
renameFromRoot(
'xpack.siem.maxRuleImportExportSize',
'xpack.securitySolution.maxRuleImportExportSize'
),
renameFromRoot(
'xpack.siem.maxRuleImportPayloadBytes',
'xpack.securitySolution.maxRuleImportPayloadBytes'
),
renameFromRoot(
'xpack.siem.maxTimelineImportExportSize',
'xpack.securitySolution.maxTimelineImportExportSize'
),
renameFromRoot(
'xpack.siem.maxTimelineImportPayloadBytes',
'xpack.securitySolution.maxTimelineImportPayloadBytes'
),
renameFromRoot(
`xpack.siem.${SIGNALS_INDEX_KEY}`,
`xpack.securitySolution.${SIGNALS_INDEX_KEY}`
),
],
};
export { ConfigType, Plugin, PluginSetup, PluginStart };
export { AppClient };
export type { AppRequestContext } from './types';
export { EndpointError } from './endpoint/errors';