"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.uiSettingsConfig = void 0; var _configSchema = require("@kbn/config-schema"); /* * 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 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ const deprecations = ({ unused, renameFromRoot }) => [unused('enabled', { level: 'warning' }), renameFromRoot('server.defaultRoute', 'uiSettings.overrides.defaultRoute', { level: 'warning' })]; const configSchema = _configSchema.schema.object({ overrides: _configSchema.schema.object({}, { unknowns: 'allow' }), publicApiEnabled: _configSchema.schema.conditional(_configSchema.schema.contextRef('serverless'), true, _configSchema.schema.boolean({ defaultValue: false }), _configSchema.schema.never()) }); const uiSettingsConfig = { path: 'uiSettings', schema: configSchema, deprecations }; exports.uiSettingsConfig = uiSettingsConfig;