kibana/x-pack/plugins/features/server/index.ts
2022-04-16 01:37:30 -05:00

27 lines
1.1 KiB
TypeScript

/*
* 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 } from '@kbn/core/server';
import { FeaturesPlugin } from './plugin';
// These exports are part of public Features plugin contract, any change in signature of exported
// functions or removal of exports should be considered as a breaking change. Ideally we should
// reduce number of such exports to zero and provide everything we want to expose via Setup/Start
// run-time contracts.
export { uiCapabilitiesRegex } from './feature_schema';
export type {
KibanaFeatureConfig,
FeatureKibanaPrivileges,
ElasticsearchFeatureConfig,
FeatureElasticsearchPrivileges,
} from '../common';
export { KibanaFeature, ElasticsearchFeature } from '../common';
export type { PluginSetupContract, PluginStartContract } from './plugin';
export const plugin = (initializerContext: PluginInitializerContext) =>
new FeaturesPlugin(initializerContext);