"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.plugin = exports.config = void 0; var _configSchema = require("@kbn/config-schema"); var _plugin = require("./plugin"); /* * 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. */ const plugin = ctx => new _plugin.WatcherServerPlugin(ctx); exports.plugin = plugin; const config = { schema: _configSchema.schema.object({ enabled: _configSchema.schema.conditional(_configSchema.schema.contextRef('serverless'), true, // Watcher is disabled in serverless; refer to the serverless.yml file as the source of truth // We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana _configSchema.schema.boolean({ defaultValue: true }), _configSchema.schema.never()) }) }; exports.config = config;