import { schema , TypeOf } from '@kbn/config-schema' ; import { PluginInitializerContext , PluginConfigDescriptor } from 'src/core/server' ; import { EnterpriseSearchPlugin } from './plugin' ; export const plugin = ( initializerContext ) => { return new EnterpriseSearchPlugin ( initializerContext ) ; } ; export const configSchema = schema . object ( { host : schema . maybe ( schema . string ( ) ) , accessCheckTimeout : schema . number ( { defaultValue : 5000 } ) , accessCheckTimeoutWarning : schema . number ( { defaultValue : 300 } ) , ssl : schema . object ( { certificateAuthorities : schema . maybe ( schema . oneOf ( [ schema . arrayOf ( schema . string ( ) , { minSize : 1 } ) , schema . string ( ) ] ) ) , verificationMode : schema . oneOf ( [ schema . literal ( 'none' ) , schema . literal ( 'certificate' ) , schema . literal ( 'full' ) ] , { defaultValue : 'full' } ) , } ) , } ) ; export type ConfigType = TypeOf < typeof configSchema > ; export const config = { schema : configSchema , exposeToBrowser : { host : true , } , } ;