From ec481861799ed8dcced9cafd8112e5b26e641c54 Mon Sep 17 00:00:00 2001 From: Court Ewing Date: Thu, 7 Feb 2019 12:38:10 -0500 Subject: [PATCH] Move src/server to src/legacy/server --- .../server/config/__snapshots__/config.test.js.snap | 0 .../server/config/__tests__/deprecation_warnings.js | 0 .../__tests__/fixtures/run_kbn_server_startup.js | 0 src/{ => legacy}/server/config/complete.js | 0 src/{ => legacy}/server/config/complete.test.js | 0 src/{ => legacy}/server/config/config.js | 0 src/{ => legacy}/server/config/config.test.js | 0 .../server/config/deprecation_warnings.js | 0 src/{ => legacy}/server/config/explode_by.js | 0 src/{ => legacy}/server/config/explode_by.test.js | 0 src/{ => legacy}/server/config/index.js | 0 src/{ => legacy}/server/config/override.js | 0 src/{ => legacy}/server/config/override.test.js | 0 src/{ => legacy}/server/config/schema.js | 0 src/{ => legacy}/server/config/schema.test.js | 0 src/{ => legacy}/server/config/setup.js | 0 .../server/config/transform_deprecations.js | 0 .../server/config/transform_deprecations.test.js | 0 src/{ => legacy}/server/csp/index.test.ts | 0 src/{ => legacy}/server/csp/index.ts | 0 src/{ => legacy}/server/http/index.js | 0 .../http/integration_tests/max_payload_size.test.js | 0 .../http/integration_tests/version_check.test.js | 0 .../server/http/integration_tests/xsrf.test.js | 0 .../server/http/register_hapi_plugins.js | 0 src/{ => legacy}/server/http/secure_options.js | 0 src/{ => legacy}/server/http/secure_options.test.js | 0 .../server/http/setup_base_path_provider.js | 0 src/{ => legacy}/server/http/version_check.js | 0 src/{ => legacy}/server/http/xsrf.js | 0 src/{ => legacy}/server/i18n/index.js | 0 src/{ => legacy}/server/index_patterns/index.d.ts | 0 src/{ => legacy}/server/index_patterns/index.js | 0 src/{ => legacy}/server/index_patterns/mixin.d.ts | 0 src/{ => legacy}/server/index_patterns/mixin.js | 0 .../routes/fields_for_time_pattern_route.js | 0 .../routes/fields_for_wildcard_route.js | 0 .../server/index_patterns/routes/index.js | 0 .../server/index_patterns/service/index.d.ts | 0 .../server/index_patterns/service/index.js | 0 .../service/index_patterns_service.d.ts | 0 .../service/index_patterns_service.js | 0 .../server/index_patterns/service/lib/errors.js | 0 .../index_patterns/service/lib/errors.test.js | 0 .../server/index_patterns/service/lib/es_api.js | 0 .../index_patterns/service/lib/es_api.test.js | 0 .../__fixtures__/es_field_caps_response.json | 0 .../lib/field_capabilities/field_capabilities.js | 0 .../field_capabilities/field_capabilities.test.js | 0 .../lib/field_capabilities/field_caps_response.js | 0 .../field_capabilities/field_caps_response.test.js | 0 .../service/lib/field_capabilities/index.js | 0 .../service/lib/field_capabilities/overrides.js | 0 .../should_read_field_from_doc_values.js | 0 .../server/index_patterns/service/lib/index.js | 0 .../service/lib/resolve_time_pattern.js | 0 .../service/lib/resolve_time_pattern.test.js | 0 .../service/lib/time_pattern_to_wildcard.js | 0 .../service/lib/time_pattern_to_wildcard.test.js | 0 src/{ => legacy}/server/kbn_server.d.ts | 0 src/{ => legacy}/server/kbn_server.js | 0 src/{ => legacy}/server/keystore/errors.js | 0 src/{ => legacy}/server/keystore/index.js | 0 src/{ => legacy}/server/keystore/keystore.js | 0 src/{ => legacy}/server/keystore/keystore.test.js | 0 .../server/logging/apply_filters_to_keys.js | 0 .../server/logging/apply_filters_to_keys.test.js | 0 src/{ => legacy}/server/logging/configuration.js | 0 src/{ => legacy}/server/logging/index.js | 0 src/{ => legacy}/server/logging/log_format.js | 0 src/{ => legacy}/server/logging/log_format_json.js | 0 .../server/logging/log_format_json.test.js | 0 .../server/logging/log_format_string.js | 0 .../server/logging/log_format_string.test.js | 0 src/{ => legacy}/server/logging/log_interceptor.js | 0 .../server/logging/log_interceptor.test.js | 0 src/{ => legacy}/server/logging/log_reporter.js | 0 .../server/logging/log_with_metadata.js | 0 src/{ => legacy}/server/mappings/index.js | 0 .../server/mappings/lib/get_property.js | 0 .../server/mappings/lib/get_property.test.js | 0 .../server/mappings/lib/get_root_properties.js | 0 .../mappings/lib/get_root_properties_objects.js | 0 .../lib/get_root_properties_objects.test.js | 0 src/{ => legacy}/server/mappings/lib/get_types.js | 0 src/{ => legacy}/server/mappings/lib/index.js | 0 src/{ => legacy}/server/path/index.js | 0 src/{ => legacy}/server/path/index.test.js | 0 src/{ => legacy}/server/pid/index.js | 0 src/{ => legacy}/server/plugins/index.js | 0 src/{ => legacy}/server/plugins/initialize_mixin.js | 0 .../server/plugins/lib/call_plugin_hook.js | 0 .../server/plugins/lib/call_plugin_hook.test.js | 0 src/{ => legacy}/server/plugins/lib/index.js | 0 src/{ => legacy}/server/plugins/lib/plugin.js | 0 src/{ => legacy}/server/plugins/scan_mixin.js | 0 .../server/plugins/wait_for_plugins_init.js | 0 .../server/sample_data/data_set_schema.js | 0 .../data_sets/ecommerce/ecommerce.json.gz | Bin .../data_sets/ecommerce/field_mappings.js | 0 .../server/sample_data/data_sets/ecommerce/index.js | 0 .../data_sets/ecommerce/saved_objects.js | 0 .../sample_data/data_sets/flights/field_mappings.js | 0 .../sample_data/data_sets/flights/flights.json.gz | Bin .../server/sample_data/data_sets/flights/index.js | 0 .../sample_data/data_sets/flights/saved_objects.js | 0 .../server/sample_data/data_sets/index.js | 0 .../sample_data/data_sets/logs/field_mappings.js | 0 .../server/sample_data/data_sets/logs/index.js | 0 .../server/sample_data/data_sets/logs/logs.json.gz | Bin .../sample_data/data_sets/logs/saved_objects.js | 0 src/{ => legacy}/server/sample_data/index.js | 0 src/{ => legacy}/server/sample_data/routes/index.js | 0 .../server/sample_data/routes/install.js | 0 .../sample_data/routes/lib/create_index_name.js | 0 .../routes/lib/create_index_name.test.js | 0 .../server/sample_data/routes/lib/load_data.js | 0 .../server/sample_data/routes/lib/load_data.test.js | 0 .../sample_data/routes/lib/translate_timestamp.js | 0 .../routes/lib/translate_timestamp.test.js | 0 src/{ => legacy}/server/sample_data/routes/list.js | 0 .../server/sample_data/routes/uninstall.js | 0 .../server/sample_data/sample_data_mixin.js | 0 .../server/sass/__fixtures__/images/img.png | Bin .../server/sass/__fixtures__/index.scss | 0 src/{ => legacy}/server/sass/build.js | 0 src/{ => legacy}/server/sass/build.test.js | 0 src/{ => legacy}/server/sass/build_all.js | 0 src/{ => legacy}/server/sass/index.js | 0 src/{ => legacy}/server/saved_objects/index.d.ts | 0 src/{ => legacy}/server/saved_objects/index.js | 0 .../server/saved_objects/migrations/README.md | 0 .../build_active_mappings.test.ts.snap | 0 .../core/__snapshots__/elastic_index.test.ts.snap | 0 .../migrations/core/build_active_mappings.test.ts | 0 .../migrations/core/build_active_mappings.ts | 0 .../saved_objects/migrations/core/call_cluster.ts | 0 .../migrations/core/document_migrator.test.ts | 0 .../migrations/core/document_migrator.ts | 0 .../migrations/core/elastic_index.test.ts | 0 .../saved_objects/migrations/core/elastic_index.ts | 0 .../server/saved_objects/migrations/core/index.ts | 0 .../migrations/core/index_migrator.test.ts | 0 .../saved_objects/migrations/core/index_migrator.ts | 0 .../migrations/core/migrate_raw_docs.test.ts | 0 .../migrations/core/migrate_raw_docs.ts | 0 .../migrations/core/migration_context.ts | 0 .../migrations/core/migration_coordinator.test.ts | 0 .../migrations/core/migration_coordinator.ts | 0 .../migrations/core/migration_logger.ts | 0 .../server/saved_objects/migrations/index.ts | 0 .../__snapshots__/kibana_migrator.test.ts.snap | 0 .../server/saved_objects/migrations/kibana/index.ts | 0 .../migrations/kibana/kibana_migrator.test.ts | 0 .../migrations/kibana/kibana_migrator.ts | 0 .../server/saved_objects/routes/_mock_server.js | 0 .../server/saved_objects/routes/bulk_create.js | 0 .../server/saved_objects/routes/bulk_get.js | 0 .../server/saved_objects/routes/bulk_get.test.js | 0 .../server/saved_objects/routes/create.js | 0 .../server/saved_objects/routes/create.test.js | 0 .../server/saved_objects/routes/delete.js | 0 .../server/saved_objects/routes/delete.test.js | 0 .../server/saved_objects/routes/find.js | 0 .../server/saved_objects/routes/find.test.js | 0 src/{ => legacy}/server/saved_objects/routes/get.js | 0 .../server/saved_objects/routes/get.test.js | 0 .../server/saved_objects/routes/index.js | 0 .../server/saved_objects/routes/update.js | 0 .../server/saved_objects/routes/update.test.js | 0 .../server/saved_objects/saved_objects_mixin.js | 0 .../server/saved_objects/schema/index.ts | 0 .../server/saved_objects/schema/schema.test.ts | 0 .../server/saved_objects/schema/schema.ts | 0 .../server/saved_objects/serialization/index.ts | 0 .../serialization/serialization.test.ts | 0 .../service/create_saved_objects_service.d.ts | 0 .../service/create_saved_objects_service.js | 0 .../server/saved_objects/service/index.d.ts | 0 .../server/saved_objects/service/index.js | 0 .../__snapshots__/priority_collection.test.ts.snap | 0 .../lib/__snapshots__/repository.test.js.snap | 0 .../__snapshots__/repository_provider.test.js.snap | 0 .../scoped_client_provider.test.js.snap | 0 .../saved_objects/service/lib/decorate_es_error.js | 0 .../service/lib/decorate_es_error.test.js | 0 .../server/saved_objects/service/lib/errors.d.ts | 0 .../server/saved_objects/service/lib/errors.js | 0 .../server/saved_objects/service/lib/errors.test.js | 0 .../saved_objects/service/lib/included_fields.js | 0 .../service/lib/included_fields.test.js | 0 .../server/saved_objects/service/lib/index.d.ts | 0 .../server/saved_objects/service/lib/index.js | 0 .../service/lib/priority_collection.test.ts | 0 .../service/lib/priority_collection.ts | 0 .../saved_objects/service/lib/repository.d.ts | 0 .../server/saved_objects/service/lib/repository.js | 0 .../saved_objects/service/lib/repository.test.js | 0 .../service/lib/repository_provider.js | 0 .../service/lib/repository_provider.test.js | 0 .../service/lib/scoped_client_provider.d.ts | 0 .../service/lib/scoped_client_provider.js | 0 .../service/lib/scoped_client_provider.test.js | 0 .../__snapshots__/sorting_params.test.js.snap | 0 .../saved_objects/service/lib/search_dsl/index.js | 0 .../service/lib/search_dsl/query_params.js | 0 .../service/lib/search_dsl/query_params.test.js | 0 .../service/lib/search_dsl/search_dsl.js | 0 .../service/lib/search_dsl/search_dsl.test.js | 0 .../service/lib/search_dsl/sorting_params.js | 0 .../service/lib/search_dsl/sorting_params.test.js | 0 .../saved_objects/service/saved_objects_client.d.ts | 0 .../saved_objects/service/saved_objects_client.js | 0 .../service/saved_objects_client.test.js | 0 .../server/saved_objects/validation/index.ts | 0 .../server/saved_objects/validation/readme.md | 0 .../saved_objects/validation/validation.test.ts | 0 .../server/saved_objects/version/base64.ts | 0 .../version/decode_request_version.test.ts | 0 .../saved_objects/version/decode_request_version.ts | 0 .../saved_objects/version/decode_version.test.ts | 0 .../server/saved_objects/version/decode_version.ts | 0 .../version/encode_hit_version.test.ts | 0 .../saved_objects/version/encode_hit_version.ts | 0 .../saved_objects/version/encode_version.test.ts | 0 .../server/saved_objects/version/encode_version.ts | 0 .../server/saved_objects/version/index.ts | 0 .../add_memoized_factory_to_request.test.js | 0 src/{ => legacy}/server/server_extensions/index.js | 0 .../server_extensions/server_extensions_mixin.js | 0 .../status/collectors/get_ops_stats_collector.js | 0 src/{ => legacy}/server/status/collectors/index.js | 0 src/{ => legacy}/server/status/constants.js | 0 src/{ => legacy}/server/status/index.js | 0 .../server/status/lib/__mocks__/_fs_stubs.js | 0 src/{ => legacy}/server/status/lib/cgroup.js | 0 src/{ => legacy}/server/status/lib/cgroup.test.js | 0 .../server/status/lib/get_kibana_info_for_stats.js | 0 src/{ => legacy}/server/status/lib/get_os_info.js | 0 .../server/status/lib/get_os_info.test.js | 0 src/{ => legacy}/server/status/lib/index.js | 0 src/{ => legacy}/server/status/lib/metrics.js | 0 src/{ => legacy}/server/status/lib/metrics.test.js | 0 .../server/status/routes/api/register_stats.js | 0 .../server/status/routes/api/register_status.js | 0 src/{ => legacy}/server/status/routes/index.js | 0 .../server/status/routes/page/register_status.js | 0 src/{ => legacy}/server/status/samples.js | 0 src/{ => legacy}/server/status/server_status.js | 0 .../server/status/server_status.test.js | 0 src/{ => legacy}/server/status/states.js | 0 src/{ => legacy}/server/status/status.js | 0 src/{ => legacy}/server/status/status.test.js | 0 src/{ => legacy}/server/status/wrap_auth_config.js | 0 .../server/status/wrap_auth_config.test.js | 0 src/{ => legacy}/server/url_shortening/index.js | 0 .../server/url_shortening/routes/create_routes.js | 0 .../server/url_shortening/routes/goto.js | 0 .../routes/lib/short_url_assert_valid.js | 0 .../routes/lib/short_url_assert_valid.test.js | 0 .../url_shortening/routes/lib/short_url_error.js | 0 .../routes/lib/short_url_error.test.js | 0 .../url_shortening/routes/lib/short_url_lookup.js | 0 .../routes/lib/short_url_lookup.test.js | 0 .../server/url_shortening/routes/shorten_url.js | 0 .../server/url_shortening/url_shortening_mixin.js | 0 src/{ => legacy}/server/usage/README.md | 0 .../server/usage/classes/__tests__/collector_set.js | 0 src/{ => legacy}/server/usage/classes/collector.js | 0 .../server/usage/classes/collector_set.js | 0 src/{ => legacy}/server/usage/classes/index.js | 0 .../server/usage/classes/usage_collector.js | 0 src/{ => legacy}/server/usage/index.js | 0 .../server/usage/lib/get_collector_logger.js | 0 src/{ => legacy}/server/usage/lib/index.js | 0 src/{ => legacy}/server/utils/index.js | 0 src/{ => legacy}/server/utils/prompt.js | 0 src/{ => legacy}/server/utils/prompt.test.js | 0 src/{ => legacy}/server/views/index.pug | 0 src/{ => legacy}/server/warnings/index.js | 0 280 files changed, 0 insertions(+), 0 deletions(-) rename src/{ => legacy}/server/config/__snapshots__/config.test.js.snap (100%) rename src/{ => legacy}/server/config/__tests__/deprecation_warnings.js (100%) rename src/{ => legacy}/server/config/__tests__/fixtures/run_kbn_server_startup.js (100%) rename src/{ => legacy}/server/config/complete.js (100%) rename src/{ => legacy}/server/config/complete.test.js (100%) rename src/{ => legacy}/server/config/config.js (100%) rename src/{ => legacy}/server/config/config.test.js (100%) rename src/{ => legacy}/server/config/deprecation_warnings.js (100%) rename src/{ => legacy}/server/config/explode_by.js (100%) rename src/{ => legacy}/server/config/explode_by.test.js (100%) rename src/{ => legacy}/server/config/index.js (100%) rename src/{ => legacy}/server/config/override.js (100%) rename src/{ => legacy}/server/config/override.test.js (100%) rename src/{ => legacy}/server/config/schema.js (100%) rename src/{ => legacy}/server/config/schema.test.js (100%) rename src/{ => legacy}/server/config/setup.js (100%) rename src/{ => legacy}/server/config/transform_deprecations.js (100%) rename src/{ => legacy}/server/config/transform_deprecations.test.js (100%) rename src/{ => legacy}/server/csp/index.test.ts (100%) rename src/{ => legacy}/server/csp/index.ts (100%) rename src/{ => legacy}/server/http/index.js (100%) rename src/{ => legacy}/server/http/integration_tests/max_payload_size.test.js (100%) rename src/{ => legacy}/server/http/integration_tests/version_check.test.js (100%) rename src/{ => legacy}/server/http/integration_tests/xsrf.test.js (100%) rename src/{ => legacy}/server/http/register_hapi_plugins.js (100%) rename src/{ => legacy}/server/http/secure_options.js (100%) rename src/{ => legacy}/server/http/secure_options.test.js (100%) rename src/{ => legacy}/server/http/setup_base_path_provider.js (100%) rename src/{ => legacy}/server/http/version_check.js (100%) rename src/{ => legacy}/server/http/xsrf.js (100%) rename src/{ => legacy}/server/i18n/index.js (100%) rename src/{ => legacy}/server/index_patterns/index.d.ts (100%) rename src/{ => legacy}/server/index_patterns/index.js (100%) rename src/{ => legacy}/server/index_patterns/mixin.d.ts (100%) rename src/{ => legacy}/server/index_patterns/mixin.js (100%) rename src/{ => legacy}/server/index_patterns/routes/fields_for_time_pattern_route.js (100%) rename src/{ => legacy}/server/index_patterns/routes/fields_for_wildcard_route.js (100%) rename src/{ => legacy}/server/index_patterns/routes/index.js (100%) rename src/{ => legacy}/server/index_patterns/service/index.d.ts (100%) rename src/{ => legacy}/server/index_patterns/service/index.js (100%) rename src/{ => legacy}/server/index_patterns/service/index_patterns_service.d.ts (100%) rename src/{ => legacy}/server/index_patterns/service/index_patterns_service.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/errors.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/errors.test.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/es_api.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/es_api.test.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/field_capabilities/__fixtures__/es_field_caps_response.json (100%) rename src/{ => legacy}/server/index_patterns/service/lib/field_capabilities/field_capabilities.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/field_capabilities/field_capabilities.test.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/field_capabilities/field_caps_response.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/field_capabilities/field_caps_response.test.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/field_capabilities/index.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/field_capabilities/overrides.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/field_capabilities/should_read_field_from_doc_values.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/index.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/resolve_time_pattern.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/resolve_time_pattern.test.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/time_pattern_to_wildcard.js (100%) rename src/{ => legacy}/server/index_patterns/service/lib/time_pattern_to_wildcard.test.js (100%) rename src/{ => legacy}/server/kbn_server.d.ts (100%) rename src/{ => legacy}/server/kbn_server.js (100%) rename src/{ => legacy}/server/keystore/errors.js (100%) rename src/{ => legacy}/server/keystore/index.js (100%) rename src/{ => legacy}/server/keystore/keystore.js (100%) rename src/{ => legacy}/server/keystore/keystore.test.js (100%) rename src/{ => legacy}/server/logging/apply_filters_to_keys.js (100%) rename src/{ => legacy}/server/logging/apply_filters_to_keys.test.js (100%) rename src/{ => legacy}/server/logging/configuration.js (100%) rename src/{ => legacy}/server/logging/index.js (100%) rename src/{ => legacy}/server/logging/log_format.js (100%) rename src/{ => legacy}/server/logging/log_format_json.js (100%) rename src/{ => legacy}/server/logging/log_format_json.test.js (100%) rename src/{ => legacy}/server/logging/log_format_string.js (100%) rename src/{ => legacy}/server/logging/log_format_string.test.js (100%) rename src/{ => legacy}/server/logging/log_interceptor.js (100%) rename src/{ => legacy}/server/logging/log_interceptor.test.js (100%) rename src/{ => legacy}/server/logging/log_reporter.js (100%) rename src/{ => legacy}/server/logging/log_with_metadata.js (100%) rename src/{ => legacy}/server/mappings/index.js (100%) rename src/{ => legacy}/server/mappings/lib/get_property.js (100%) rename src/{ => legacy}/server/mappings/lib/get_property.test.js (100%) rename src/{ => legacy}/server/mappings/lib/get_root_properties.js (100%) rename src/{ => legacy}/server/mappings/lib/get_root_properties_objects.js (100%) rename src/{ => legacy}/server/mappings/lib/get_root_properties_objects.test.js (100%) rename src/{ => legacy}/server/mappings/lib/get_types.js (100%) rename src/{ => legacy}/server/mappings/lib/index.js (100%) rename src/{ => legacy}/server/path/index.js (100%) rename src/{ => legacy}/server/path/index.test.js (100%) rename src/{ => legacy}/server/pid/index.js (100%) rename src/{ => legacy}/server/plugins/index.js (100%) rename src/{ => legacy}/server/plugins/initialize_mixin.js (100%) rename src/{ => legacy}/server/plugins/lib/call_plugin_hook.js (100%) rename src/{ => legacy}/server/plugins/lib/call_plugin_hook.test.js (100%) rename src/{ => legacy}/server/plugins/lib/index.js (100%) rename src/{ => legacy}/server/plugins/lib/plugin.js (100%) rename src/{ => legacy}/server/plugins/scan_mixin.js (100%) rename src/{ => legacy}/server/plugins/wait_for_plugins_init.js (100%) rename src/{ => legacy}/server/sample_data/data_set_schema.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/ecommerce/ecommerce.json.gz (100%) rename src/{ => legacy}/server/sample_data/data_sets/ecommerce/field_mappings.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/ecommerce/index.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/ecommerce/saved_objects.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/flights/field_mappings.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/flights/flights.json.gz (100%) rename src/{ => legacy}/server/sample_data/data_sets/flights/index.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/flights/saved_objects.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/index.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/logs/field_mappings.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/logs/index.js (100%) rename src/{ => legacy}/server/sample_data/data_sets/logs/logs.json.gz (100%) rename src/{ => legacy}/server/sample_data/data_sets/logs/saved_objects.js (100%) rename src/{ => legacy}/server/sample_data/index.js (100%) rename src/{ => legacy}/server/sample_data/routes/index.js (100%) rename src/{ => legacy}/server/sample_data/routes/install.js (100%) rename src/{ => legacy}/server/sample_data/routes/lib/create_index_name.js (100%) rename src/{ => legacy}/server/sample_data/routes/lib/create_index_name.test.js (100%) rename src/{ => legacy}/server/sample_data/routes/lib/load_data.js (100%) rename src/{ => legacy}/server/sample_data/routes/lib/load_data.test.js (100%) rename src/{ => legacy}/server/sample_data/routes/lib/translate_timestamp.js (100%) rename src/{ => legacy}/server/sample_data/routes/lib/translate_timestamp.test.js (100%) rename src/{ => legacy}/server/sample_data/routes/list.js (100%) rename src/{ => legacy}/server/sample_data/routes/uninstall.js (100%) rename src/{ => legacy}/server/sample_data/sample_data_mixin.js (100%) rename src/{ => legacy}/server/sass/__fixtures__/images/img.png (100%) rename src/{ => legacy}/server/sass/__fixtures__/index.scss (100%) rename src/{ => legacy}/server/sass/build.js (100%) rename src/{ => legacy}/server/sass/build.test.js (100%) rename src/{ => legacy}/server/sass/build_all.js (100%) rename src/{ => legacy}/server/sass/index.js (100%) rename src/{ => legacy}/server/saved_objects/index.d.ts (100%) rename src/{ => legacy}/server/saved_objects/index.js (100%) rename src/{ => legacy}/server/saved_objects/migrations/README.md (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/__snapshots__/build_active_mappings.test.ts.snap (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/__snapshots__/elastic_index.test.ts.snap (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/build_active_mappings.test.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/build_active_mappings.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/call_cluster.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/document_migrator.test.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/document_migrator.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/elastic_index.test.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/elastic_index.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/index.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/index_migrator.test.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/index_migrator.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/migrate_raw_docs.test.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/migrate_raw_docs.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/migration_context.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/migration_coordinator.test.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/migration_coordinator.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/core/migration_logger.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/index.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/kibana/__snapshots__/kibana_migrator.test.ts.snap (100%) rename src/{ => legacy}/server/saved_objects/migrations/kibana/index.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/kibana/kibana_migrator.test.ts (100%) rename src/{ => legacy}/server/saved_objects/migrations/kibana/kibana_migrator.ts (100%) rename src/{ => legacy}/server/saved_objects/routes/_mock_server.js (100%) rename src/{ => legacy}/server/saved_objects/routes/bulk_create.js (100%) rename src/{ => legacy}/server/saved_objects/routes/bulk_get.js (100%) rename src/{ => legacy}/server/saved_objects/routes/bulk_get.test.js (100%) rename src/{ => legacy}/server/saved_objects/routes/create.js (100%) rename src/{ => legacy}/server/saved_objects/routes/create.test.js (100%) rename src/{ => legacy}/server/saved_objects/routes/delete.js (100%) rename src/{ => legacy}/server/saved_objects/routes/delete.test.js (100%) rename src/{ => legacy}/server/saved_objects/routes/find.js (100%) rename src/{ => legacy}/server/saved_objects/routes/find.test.js (100%) rename src/{ => legacy}/server/saved_objects/routes/get.js (100%) rename src/{ => legacy}/server/saved_objects/routes/get.test.js (100%) rename src/{ => legacy}/server/saved_objects/routes/index.js (100%) rename src/{ => legacy}/server/saved_objects/routes/update.js (100%) rename src/{ => legacy}/server/saved_objects/routes/update.test.js (100%) rename src/{ => legacy}/server/saved_objects/saved_objects_mixin.js (100%) rename src/{ => legacy}/server/saved_objects/schema/index.ts (100%) rename src/{ => legacy}/server/saved_objects/schema/schema.test.ts (100%) rename src/{ => legacy}/server/saved_objects/schema/schema.ts (100%) rename src/{ => legacy}/server/saved_objects/serialization/index.ts (100%) rename src/{ => legacy}/server/saved_objects/serialization/serialization.test.ts (100%) rename src/{ => legacy}/server/saved_objects/service/create_saved_objects_service.d.ts (100%) rename src/{ => legacy}/server/saved_objects/service/create_saved_objects_service.js (100%) rename src/{ => legacy}/server/saved_objects/service/index.d.ts (100%) rename src/{ => legacy}/server/saved_objects/service/index.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/__snapshots__/priority_collection.test.ts.snap (100%) rename src/{ => legacy}/server/saved_objects/service/lib/__snapshots__/repository.test.js.snap (100%) rename src/{ => legacy}/server/saved_objects/service/lib/__snapshots__/repository_provider.test.js.snap (100%) rename src/{ => legacy}/server/saved_objects/service/lib/__snapshots__/scoped_client_provider.test.js.snap (100%) rename src/{ => legacy}/server/saved_objects/service/lib/decorate_es_error.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/decorate_es_error.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/errors.d.ts (100%) rename src/{ => legacy}/server/saved_objects/service/lib/errors.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/errors.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/included_fields.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/included_fields.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/index.d.ts (100%) rename src/{ => legacy}/server/saved_objects/service/lib/index.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/priority_collection.test.ts (100%) rename src/{ => legacy}/server/saved_objects/service/lib/priority_collection.ts (100%) rename src/{ => legacy}/server/saved_objects/service/lib/repository.d.ts (100%) rename src/{ => legacy}/server/saved_objects/service/lib/repository.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/repository.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/repository_provider.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/repository_provider.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/scoped_client_provider.d.ts (100%) rename src/{ => legacy}/server/saved_objects/service/lib/scoped_client_provider.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/scoped_client_provider.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/search_dsl/__snapshots__/sorting_params.test.js.snap (100%) rename src/{ => legacy}/server/saved_objects/service/lib/search_dsl/index.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/search_dsl/query_params.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/search_dsl/query_params.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/search_dsl/search_dsl.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/search_dsl/search_dsl.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/search_dsl/sorting_params.js (100%) rename src/{ => legacy}/server/saved_objects/service/lib/search_dsl/sorting_params.test.js (100%) rename src/{ => legacy}/server/saved_objects/service/saved_objects_client.d.ts (100%) rename src/{ => legacy}/server/saved_objects/service/saved_objects_client.js (100%) rename src/{ => legacy}/server/saved_objects/service/saved_objects_client.test.js (100%) rename src/{ => legacy}/server/saved_objects/validation/index.ts (100%) rename src/{ => legacy}/server/saved_objects/validation/readme.md (100%) rename src/{ => legacy}/server/saved_objects/validation/validation.test.ts (100%) rename src/{ => legacy}/server/saved_objects/version/base64.ts (100%) rename src/{ => legacy}/server/saved_objects/version/decode_request_version.test.ts (100%) rename src/{ => legacy}/server/saved_objects/version/decode_request_version.ts (100%) rename src/{ => legacy}/server/saved_objects/version/decode_version.test.ts (100%) rename src/{ => legacy}/server/saved_objects/version/decode_version.ts (100%) rename src/{ => legacy}/server/saved_objects/version/encode_hit_version.test.ts (100%) rename src/{ => legacy}/server/saved_objects/version/encode_hit_version.ts (100%) rename src/{ => legacy}/server/saved_objects/version/encode_version.test.ts (100%) rename src/{ => legacy}/server/saved_objects/version/encode_version.ts (100%) rename src/{ => legacy}/server/saved_objects/version/index.ts (100%) rename src/{ => legacy}/server/server_extensions/add_memoized_factory_to_request.test.js (100%) rename src/{ => legacy}/server/server_extensions/index.js (100%) rename src/{ => legacy}/server/server_extensions/server_extensions_mixin.js (100%) rename src/{ => legacy}/server/status/collectors/get_ops_stats_collector.js (100%) rename src/{ => legacy}/server/status/collectors/index.js (100%) rename src/{ => legacy}/server/status/constants.js (100%) rename src/{ => legacy}/server/status/index.js (100%) rename src/{ => legacy}/server/status/lib/__mocks__/_fs_stubs.js (100%) rename src/{ => legacy}/server/status/lib/cgroup.js (100%) rename src/{ => legacy}/server/status/lib/cgroup.test.js (100%) rename src/{ => legacy}/server/status/lib/get_kibana_info_for_stats.js (100%) rename src/{ => legacy}/server/status/lib/get_os_info.js (100%) rename src/{ => legacy}/server/status/lib/get_os_info.test.js (100%) rename src/{ => legacy}/server/status/lib/index.js (100%) rename src/{ => legacy}/server/status/lib/metrics.js (100%) rename src/{ => legacy}/server/status/lib/metrics.test.js (100%) rename src/{ => legacy}/server/status/routes/api/register_stats.js (100%) rename src/{ => legacy}/server/status/routes/api/register_status.js (100%) rename src/{ => legacy}/server/status/routes/index.js (100%) rename src/{ => legacy}/server/status/routes/page/register_status.js (100%) rename src/{ => legacy}/server/status/samples.js (100%) rename src/{ => legacy}/server/status/server_status.js (100%) rename src/{ => legacy}/server/status/server_status.test.js (100%) rename src/{ => legacy}/server/status/states.js (100%) rename src/{ => legacy}/server/status/status.js (100%) rename src/{ => legacy}/server/status/status.test.js (100%) rename src/{ => legacy}/server/status/wrap_auth_config.js (100%) rename src/{ => legacy}/server/status/wrap_auth_config.test.js (100%) rename src/{ => legacy}/server/url_shortening/index.js (100%) rename src/{ => legacy}/server/url_shortening/routes/create_routes.js (100%) rename src/{ => legacy}/server/url_shortening/routes/goto.js (100%) rename src/{ => legacy}/server/url_shortening/routes/lib/short_url_assert_valid.js (100%) rename src/{ => legacy}/server/url_shortening/routes/lib/short_url_assert_valid.test.js (100%) rename src/{ => legacy}/server/url_shortening/routes/lib/short_url_error.js (100%) rename src/{ => legacy}/server/url_shortening/routes/lib/short_url_error.test.js (100%) rename src/{ => legacy}/server/url_shortening/routes/lib/short_url_lookup.js (100%) rename src/{ => legacy}/server/url_shortening/routes/lib/short_url_lookup.test.js (100%) rename src/{ => legacy}/server/url_shortening/routes/shorten_url.js (100%) rename src/{ => legacy}/server/url_shortening/url_shortening_mixin.js (100%) rename src/{ => legacy}/server/usage/README.md (100%) rename src/{ => legacy}/server/usage/classes/__tests__/collector_set.js (100%) rename src/{ => legacy}/server/usage/classes/collector.js (100%) rename src/{ => legacy}/server/usage/classes/collector_set.js (100%) rename src/{ => legacy}/server/usage/classes/index.js (100%) rename src/{ => legacy}/server/usage/classes/usage_collector.js (100%) rename src/{ => legacy}/server/usage/index.js (100%) rename src/{ => legacy}/server/usage/lib/get_collector_logger.js (100%) rename src/{ => legacy}/server/usage/lib/index.js (100%) rename src/{ => legacy}/server/utils/index.js (100%) rename src/{ => legacy}/server/utils/prompt.js (100%) rename src/{ => legacy}/server/utils/prompt.test.js (100%) rename src/{ => legacy}/server/views/index.pug (100%) rename src/{ => legacy}/server/warnings/index.js (100%) diff --git a/src/server/config/__snapshots__/config.test.js.snap b/src/legacy/server/config/__snapshots__/config.test.js.snap similarity index 100% rename from src/server/config/__snapshots__/config.test.js.snap rename to src/legacy/server/config/__snapshots__/config.test.js.snap diff --git a/src/server/config/__tests__/deprecation_warnings.js b/src/legacy/server/config/__tests__/deprecation_warnings.js similarity index 100% rename from src/server/config/__tests__/deprecation_warnings.js rename to src/legacy/server/config/__tests__/deprecation_warnings.js diff --git a/src/server/config/__tests__/fixtures/run_kbn_server_startup.js b/src/legacy/server/config/__tests__/fixtures/run_kbn_server_startup.js similarity index 100% rename from src/server/config/__tests__/fixtures/run_kbn_server_startup.js rename to src/legacy/server/config/__tests__/fixtures/run_kbn_server_startup.js diff --git a/src/server/config/complete.js b/src/legacy/server/config/complete.js similarity index 100% rename from src/server/config/complete.js rename to src/legacy/server/config/complete.js diff --git a/src/server/config/complete.test.js b/src/legacy/server/config/complete.test.js similarity index 100% rename from src/server/config/complete.test.js rename to src/legacy/server/config/complete.test.js diff --git a/src/server/config/config.js b/src/legacy/server/config/config.js similarity index 100% rename from src/server/config/config.js rename to src/legacy/server/config/config.js diff --git a/src/server/config/config.test.js b/src/legacy/server/config/config.test.js similarity index 100% rename from src/server/config/config.test.js rename to src/legacy/server/config/config.test.js diff --git a/src/server/config/deprecation_warnings.js b/src/legacy/server/config/deprecation_warnings.js similarity index 100% rename from src/server/config/deprecation_warnings.js rename to src/legacy/server/config/deprecation_warnings.js diff --git a/src/server/config/explode_by.js b/src/legacy/server/config/explode_by.js similarity index 100% rename from src/server/config/explode_by.js rename to src/legacy/server/config/explode_by.js diff --git a/src/server/config/explode_by.test.js b/src/legacy/server/config/explode_by.test.js similarity index 100% rename from src/server/config/explode_by.test.js rename to src/legacy/server/config/explode_by.test.js diff --git a/src/server/config/index.js b/src/legacy/server/config/index.js similarity index 100% rename from src/server/config/index.js rename to src/legacy/server/config/index.js diff --git a/src/server/config/override.js b/src/legacy/server/config/override.js similarity index 100% rename from src/server/config/override.js rename to src/legacy/server/config/override.js diff --git a/src/server/config/override.test.js b/src/legacy/server/config/override.test.js similarity index 100% rename from src/server/config/override.test.js rename to src/legacy/server/config/override.test.js diff --git a/src/server/config/schema.js b/src/legacy/server/config/schema.js similarity index 100% rename from src/server/config/schema.js rename to src/legacy/server/config/schema.js diff --git a/src/server/config/schema.test.js b/src/legacy/server/config/schema.test.js similarity index 100% rename from src/server/config/schema.test.js rename to src/legacy/server/config/schema.test.js diff --git a/src/server/config/setup.js b/src/legacy/server/config/setup.js similarity index 100% rename from src/server/config/setup.js rename to src/legacy/server/config/setup.js diff --git a/src/server/config/transform_deprecations.js b/src/legacy/server/config/transform_deprecations.js similarity index 100% rename from src/server/config/transform_deprecations.js rename to src/legacy/server/config/transform_deprecations.js diff --git a/src/server/config/transform_deprecations.test.js b/src/legacy/server/config/transform_deprecations.test.js similarity index 100% rename from src/server/config/transform_deprecations.test.js rename to src/legacy/server/config/transform_deprecations.test.js diff --git a/src/server/csp/index.test.ts b/src/legacy/server/csp/index.test.ts similarity index 100% rename from src/server/csp/index.test.ts rename to src/legacy/server/csp/index.test.ts diff --git a/src/server/csp/index.ts b/src/legacy/server/csp/index.ts similarity index 100% rename from src/server/csp/index.ts rename to src/legacy/server/csp/index.ts diff --git a/src/server/http/index.js b/src/legacy/server/http/index.js similarity index 100% rename from src/server/http/index.js rename to src/legacy/server/http/index.js diff --git a/src/server/http/integration_tests/max_payload_size.test.js b/src/legacy/server/http/integration_tests/max_payload_size.test.js similarity index 100% rename from src/server/http/integration_tests/max_payload_size.test.js rename to src/legacy/server/http/integration_tests/max_payload_size.test.js diff --git a/src/server/http/integration_tests/version_check.test.js b/src/legacy/server/http/integration_tests/version_check.test.js similarity index 100% rename from src/server/http/integration_tests/version_check.test.js rename to src/legacy/server/http/integration_tests/version_check.test.js diff --git a/src/server/http/integration_tests/xsrf.test.js b/src/legacy/server/http/integration_tests/xsrf.test.js similarity index 100% rename from src/server/http/integration_tests/xsrf.test.js rename to src/legacy/server/http/integration_tests/xsrf.test.js diff --git a/src/server/http/register_hapi_plugins.js b/src/legacy/server/http/register_hapi_plugins.js similarity index 100% rename from src/server/http/register_hapi_plugins.js rename to src/legacy/server/http/register_hapi_plugins.js diff --git a/src/server/http/secure_options.js b/src/legacy/server/http/secure_options.js similarity index 100% rename from src/server/http/secure_options.js rename to src/legacy/server/http/secure_options.js diff --git a/src/server/http/secure_options.test.js b/src/legacy/server/http/secure_options.test.js similarity index 100% rename from src/server/http/secure_options.test.js rename to src/legacy/server/http/secure_options.test.js diff --git a/src/server/http/setup_base_path_provider.js b/src/legacy/server/http/setup_base_path_provider.js similarity index 100% rename from src/server/http/setup_base_path_provider.js rename to src/legacy/server/http/setup_base_path_provider.js diff --git a/src/server/http/version_check.js b/src/legacy/server/http/version_check.js similarity index 100% rename from src/server/http/version_check.js rename to src/legacy/server/http/version_check.js diff --git a/src/server/http/xsrf.js b/src/legacy/server/http/xsrf.js similarity index 100% rename from src/server/http/xsrf.js rename to src/legacy/server/http/xsrf.js diff --git a/src/server/i18n/index.js b/src/legacy/server/i18n/index.js similarity index 100% rename from src/server/i18n/index.js rename to src/legacy/server/i18n/index.js diff --git a/src/server/index_patterns/index.d.ts b/src/legacy/server/index_patterns/index.d.ts similarity index 100% rename from src/server/index_patterns/index.d.ts rename to src/legacy/server/index_patterns/index.d.ts diff --git a/src/server/index_patterns/index.js b/src/legacy/server/index_patterns/index.js similarity index 100% rename from src/server/index_patterns/index.js rename to src/legacy/server/index_patterns/index.js diff --git a/src/server/index_patterns/mixin.d.ts b/src/legacy/server/index_patterns/mixin.d.ts similarity index 100% rename from src/server/index_patterns/mixin.d.ts rename to src/legacy/server/index_patterns/mixin.d.ts diff --git a/src/server/index_patterns/mixin.js b/src/legacy/server/index_patterns/mixin.js similarity index 100% rename from src/server/index_patterns/mixin.js rename to src/legacy/server/index_patterns/mixin.js diff --git a/src/server/index_patterns/routes/fields_for_time_pattern_route.js b/src/legacy/server/index_patterns/routes/fields_for_time_pattern_route.js similarity index 100% rename from src/server/index_patterns/routes/fields_for_time_pattern_route.js rename to src/legacy/server/index_patterns/routes/fields_for_time_pattern_route.js diff --git a/src/server/index_patterns/routes/fields_for_wildcard_route.js b/src/legacy/server/index_patterns/routes/fields_for_wildcard_route.js similarity index 100% rename from src/server/index_patterns/routes/fields_for_wildcard_route.js rename to src/legacy/server/index_patterns/routes/fields_for_wildcard_route.js diff --git a/src/server/index_patterns/routes/index.js b/src/legacy/server/index_patterns/routes/index.js similarity index 100% rename from src/server/index_patterns/routes/index.js rename to src/legacy/server/index_patterns/routes/index.js diff --git a/src/server/index_patterns/service/index.d.ts b/src/legacy/server/index_patterns/service/index.d.ts similarity index 100% rename from src/server/index_patterns/service/index.d.ts rename to src/legacy/server/index_patterns/service/index.d.ts diff --git a/src/server/index_patterns/service/index.js b/src/legacy/server/index_patterns/service/index.js similarity index 100% rename from src/server/index_patterns/service/index.js rename to src/legacy/server/index_patterns/service/index.js diff --git a/src/server/index_patterns/service/index_patterns_service.d.ts b/src/legacy/server/index_patterns/service/index_patterns_service.d.ts similarity index 100% rename from src/server/index_patterns/service/index_patterns_service.d.ts rename to src/legacy/server/index_patterns/service/index_patterns_service.d.ts diff --git a/src/server/index_patterns/service/index_patterns_service.js b/src/legacy/server/index_patterns/service/index_patterns_service.js similarity index 100% rename from src/server/index_patterns/service/index_patterns_service.js rename to src/legacy/server/index_patterns/service/index_patterns_service.js diff --git a/src/server/index_patterns/service/lib/errors.js b/src/legacy/server/index_patterns/service/lib/errors.js similarity index 100% rename from src/server/index_patterns/service/lib/errors.js rename to src/legacy/server/index_patterns/service/lib/errors.js diff --git a/src/server/index_patterns/service/lib/errors.test.js b/src/legacy/server/index_patterns/service/lib/errors.test.js similarity index 100% rename from src/server/index_patterns/service/lib/errors.test.js rename to src/legacy/server/index_patterns/service/lib/errors.test.js diff --git a/src/server/index_patterns/service/lib/es_api.js b/src/legacy/server/index_patterns/service/lib/es_api.js similarity index 100% rename from src/server/index_patterns/service/lib/es_api.js rename to src/legacy/server/index_patterns/service/lib/es_api.js diff --git a/src/server/index_patterns/service/lib/es_api.test.js b/src/legacy/server/index_patterns/service/lib/es_api.test.js similarity index 100% rename from src/server/index_patterns/service/lib/es_api.test.js rename to src/legacy/server/index_patterns/service/lib/es_api.test.js diff --git a/src/server/index_patterns/service/lib/field_capabilities/__fixtures__/es_field_caps_response.json b/src/legacy/server/index_patterns/service/lib/field_capabilities/__fixtures__/es_field_caps_response.json similarity index 100% rename from src/server/index_patterns/service/lib/field_capabilities/__fixtures__/es_field_caps_response.json rename to src/legacy/server/index_patterns/service/lib/field_capabilities/__fixtures__/es_field_caps_response.json diff --git a/src/server/index_patterns/service/lib/field_capabilities/field_capabilities.js b/src/legacy/server/index_patterns/service/lib/field_capabilities/field_capabilities.js similarity index 100% rename from src/server/index_patterns/service/lib/field_capabilities/field_capabilities.js rename to src/legacy/server/index_patterns/service/lib/field_capabilities/field_capabilities.js diff --git a/src/server/index_patterns/service/lib/field_capabilities/field_capabilities.test.js b/src/legacy/server/index_patterns/service/lib/field_capabilities/field_capabilities.test.js similarity index 100% rename from src/server/index_patterns/service/lib/field_capabilities/field_capabilities.test.js rename to src/legacy/server/index_patterns/service/lib/field_capabilities/field_capabilities.test.js diff --git a/src/server/index_patterns/service/lib/field_capabilities/field_caps_response.js b/src/legacy/server/index_patterns/service/lib/field_capabilities/field_caps_response.js similarity index 100% rename from src/server/index_patterns/service/lib/field_capabilities/field_caps_response.js rename to src/legacy/server/index_patterns/service/lib/field_capabilities/field_caps_response.js diff --git a/src/server/index_patterns/service/lib/field_capabilities/field_caps_response.test.js b/src/legacy/server/index_patterns/service/lib/field_capabilities/field_caps_response.test.js similarity index 100% rename from src/server/index_patterns/service/lib/field_capabilities/field_caps_response.test.js rename to src/legacy/server/index_patterns/service/lib/field_capabilities/field_caps_response.test.js diff --git a/src/server/index_patterns/service/lib/field_capabilities/index.js b/src/legacy/server/index_patterns/service/lib/field_capabilities/index.js similarity index 100% rename from src/server/index_patterns/service/lib/field_capabilities/index.js rename to src/legacy/server/index_patterns/service/lib/field_capabilities/index.js diff --git a/src/server/index_patterns/service/lib/field_capabilities/overrides.js b/src/legacy/server/index_patterns/service/lib/field_capabilities/overrides.js similarity index 100% rename from src/server/index_patterns/service/lib/field_capabilities/overrides.js rename to src/legacy/server/index_patterns/service/lib/field_capabilities/overrides.js diff --git a/src/server/index_patterns/service/lib/field_capabilities/should_read_field_from_doc_values.js b/src/legacy/server/index_patterns/service/lib/field_capabilities/should_read_field_from_doc_values.js similarity index 100% rename from src/server/index_patterns/service/lib/field_capabilities/should_read_field_from_doc_values.js rename to src/legacy/server/index_patterns/service/lib/field_capabilities/should_read_field_from_doc_values.js diff --git a/src/server/index_patterns/service/lib/index.js b/src/legacy/server/index_patterns/service/lib/index.js similarity index 100% rename from src/server/index_patterns/service/lib/index.js rename to src/legacy/server/index_patterns/service/lib/index.js diff --git a/src/server/index_patterns/service/lib/resolve_time_pattern.js b/src/legacy/server/index_patterns/service/lib/resolve_time_pattern.js similarity index 100% rename from src/server/index_patterns/service/lib/resolve_time_pattern.js rename to src/legacy/server/index_patterns/service/lib/resolve_time_pattern.js diff --git a/src/server/index_patterns/service/lib/resolve_time_pattern.test.js b/src/legacy/server/index_patterns/service/lib/resolve_time_pattern.test.js similarity index 100% rename from src/server/index_patterns/service/lib/resolve_time_pattern.test.js rename to src/legacy/server/index_patterns/service/lib/resolve_time_pattern.test.js diff --git a/src/server/index_patterns/service/lib/time_pattern_to_wildcard.js b/src/legacy/server/index_patterns/service/lib/time_pattern_to_wildcard.js similarity index 100% rename from src/server/index_patterns/service/lib/time_pattern_to_wildcard.js rename to src/legacy/server/index_patterns/service/lib/time_pattern_to_wildcard.js diff --git a/src/server/index_patterns/service/lib/time_pattern_to_wildcard.test.js b/src/legacy/server/index_patterns/service/lib/time_pattern_to_wildcard.test.js similarity index 100% rename from src/server/index_patterns/service/lib/time_pattern_to_wildcard.test.js rename to src/legacy/server/index_patterns/service/lib/time_pattern_to_wildcard.test.js diff --git a/src/server/kbn_server.d.ts b/src/legacy/server/kbn_server.d.ts similarity index 100% rename from src/server/kbn_server.d.ts rename to src/legacy/server/kbn_server.d.ts diff --git a/src/server/kbn_server.js b/src/legacy/server/kbn_server.js similarity index 100% rename from src/server/kbn_server.js rename to src/legacy/server/kbn_server.js diff --git a/src/server/keystore/errors.js b/src/legacy/server/keystore/errors.js similarity index 100% rename from src/server/keystore/errors.js rename to src/legacy/server/keystore/errors.js diff --git a/src/server/keystore/index.js b/src/legacy/server/keystore/index.js similarity index 100% rename from src/server/keystore/index.js rename to src/legacy/server/keystore/index.js diff --git a/src/server/keystore/keystore.js b/src/legacy/server/keystore/keystore.js similarity index 100% rename from src/server/keystore/keystore.js rename to src/legacy/server/keystore/keystore.js diff --git a/src/server/keystore/keystore.test.js b/src/legacy/server/keystore/keystore.test.js similarity index 100% rename from src/server/keystore/keystore.test.js rename to src/legacy/server/keystore/keystore.test.js diff --git a/src/server/logging/apply_filters_to_keys.js b/src/legacy/server/logging/apply_filters_to_keys.js similarity index 100% rename from src/server/logging/apply_filters_to_keys.js rename to src/legacy/server/logging/apply_filters_to_keys.js diff --git a/src/server/logging/apply_filters_to_keys.test.js b/src/legacy/server/logging/apply_filters_to_keys.test.js similarity index 100% rename from src/server/logging/apply_filters_to_keys.test.js rename to src/legacy/server/logging/apply_filters_to_keys.test.js diff --git a/src/server/logging/configuration.js b/src/legacy/server/logging/configuration.js similarity index 100% rename from src/server/logging/configuration.js rename to src/legacy/server/logging/configuration.js diff --git a/src/server/logging/index.js b/src/legacy/server/logging/index.js similarity index 100% rename from src/server/logging/index.js rename to src/legacy/server/logging/index.js diff --git a/src/server/logging/log_format.js b/src/legacy/server/logging/log_format.js similarity index 100% rename from src/server/logging/log_format.js rename to src/legacy/server/logging/log_format.js diff --git a/src/server/logging/log_format_json.js b/src/legacy/server/logging/log_format_json.js similarity index 100% rename from src/server/logging/log_format_json.js rename to src/legacy/server/logging/log_format_json.js diff --git a/src/server/logging/log_format_json.test.js b/src/legacy/server/logging/log_format_json.test.js similarity index 100% rename from src/server/logging/log_format_json.test.js rename to src/legacy/server/logging/log_format_json.test.js diff --git a/src/server/logging/log_format_string.js b/src/legacy/server/logging/log_format_string.js similarity index 100% rename from src/server/logging/log_format_string.js rename to src/legacy/server/logging/log_format_string.js diff --git a/src/server/logging/log_format_string.test.js b/src/legacy/server/logging/log_format_string.test.js similarity index 100% rename from src/server/logging/log_format_string.test.js rename to src/legacy/server/logging/log_format_string.test.js diff --git a/src/server/logging/log_interceptor.js b/src/legacy/server/logging/log_interceptor.js similarity index 100% rename from src/server/logging/log_interceptor.js rename to src/legacy/server/logging/log_interceptor.js diff --git a/src/server/logging/log_interceptor.test.js b/src/legacy/server/logging/log_interceptor.test.js similarity index 100% rename from src/server/logging/log_interceptor.test.js rename to src/legacy/server/logging/log_interceptor.test.js diff --git a/src/server/logging/log_reporter.js b/src/legacy/server/logging/log_reporter.js similarity index 100% rename from src/server/logging/log_reporter.js rename to src/legacy/server/logging/log_reporter.js diff --git a/src/server/logging/log_with_metadata.js b/src/legacy/server/logging/log_with_metadata.js similarity index 100% rename from src/server/logging/log_with_metadata.js rename to src/legacy/server/logging/log_with_metadata.js diff --git a/src/server/mappings/index.js b/src/legacy/server/mappings/index.js similarity index 100% rename from src/server/mappings/index.js rename to src/legacy/server/mappings/index.js diff --git a/src/server/mappings/lib/get_property.js b/src/legacy/server/mappings/lib/get_property.js similarity index 100% rename from src/server/mappings/lib/get_property.js rename to src/legacy/server/mappings/lib/get_property.js diff --git a/src/server/mappings/lib/get_property.test.js b/src/legacy/server/mappings/lib/get_property.test.js similarity index 100% rename from src/server/mappings/lib/get_property.test.js rename to src/legacy/server/mappings/lib/get_property.test.js diff --git a/src/server/mappings/lib/get_root_properties.js b/src/legacy/server/mappings/lib/get_root_properties.js similarity index 100% rename from src/server/mappings/lib/get_root_properties.js rename to src/legacy/server/mappings/lib/get_root_properties.js diff --git a/src/server/mappings/lib/get_root_properties_objects.js b/src/legacy/server/mappings/lib/get_root_properties_objects.js similarity index 100% rename from src/server/mappings/lib/get_root_properties_objects.js rename to src/legacy/server/mappings/lib/get_root_properties_objects.js diff --git a/src/server/mappings/lib/get_root_properties_objects.test.js b/src/legacy/server/mappings/lib/get_root_properties_objects.test.js similarity index 100% rename from src/server/mappings/lib/get_root_properties_objects.test.js rename to src/legacy/server/mappings/lib/get_root_properties_objects.test.js diff --git a/src/server/mappings/lib/get_types.js b/src/legacy/server/mappings/lib/get_types.js similarity index 100% rename from src/server/mappings/lib/get_types.js rename to src/legacy/server/mappings/lib/get_types.js diff --git a/src/server/mappings/lib/index.js b/src/legacy/server/mappings/lib/index.js similarity index 100% rename from src/server/mappings/lib/index.js rename to src/legacy/server/mappings/lib/index.js diff --git a/src/server/path/index.js b/src/legacy/server/path/index.js similarity index 100% rename from src/server/path/index.js rename to src/legacy/server/path/index.js diff --git a/src/server/path/index.test.js b/src/legacy/server/path/index.test.js similarity index 100% rename from src/server/path/index.test.js rename to src/legacy/server/path/index.test.js diff --git a/src/server/pid/index.js b/src/legacy/server/pid/index.js similarity index 100% rename from src/server/pid/index.js rename to src/legacy/server/pid/index.js diff --git a/src/server/plugins/index.js b/src/legacy/server/plugins/index.js similarity index 100% rename from src/server/plugins/index.js rename to src/legacy/server/plugins/index.js diff --git a/src/server/plugins/initialize_mixin.js b/src/legacy/server/plugins/initialize_mixin.js similarity index 100% rename from src/server/plugins/initialize_mixin.js rename to src/legacy/server/plugins/initialize_mixin.js diff --git a/src/server/plugins/lib/call_plugin_hook.js b/src/legacy/server/plugins/lib/call_plugin_hook.js similarity index 100% rename from src/server/plugins/lib/call_plugin_hook.js rename to src/legacy/server/plugins/lib/call_plugin_hook.js diff --git a/src/server/plugins/lib/call_plugin_hook.test.js b/src/legacy/server/plugins/lib/call_plugin_hook.test.js similarity index 100% rename from src/server/plugins/lib/call_plugin_hook.test.js rename to src/legacy/server/plugins/lib/call_plugin_hook.test.js diff --git a/src/server/plugins/lib/index.js b/src/legacy/server/plugins/lib/index.js similarity index 100% rename from src/server/plugins/lib/index.js rename to src/legacy/server/plugins/lib/index.js diff --git a/src/server/plugins/lib/plugin.js b/src/legacy/server/plugins/lib/plugin.js similarity index 100% rename from src/server/plugins/lib/plugin.js rename to src/legacy/server/plugins/lib/plugin.js diff --git a/src/server/plugins/scan_mixin.js b/src/legacy/server/plugins/scan_mixin.js similarity index 100% rename from src/server/plugins/scan_mixin.js rename to src/legacy/server/plugins/scan_mixin.js diff --git a/src/server/plugins/wait_for_plugins_init.js b/src/legacy/server/plugins/wait_for_plugins_init.js similarity index 100% rename from src/server/plugins/wait_for_plugins_init.js rename to src/legacy/server/plugins/wait_for_plugins_init.js diff --git a/src/server/sample_data/data_set_schema.js b/src/legacy/server/sample_data/data_set_schema.js similarity index 100% rename from src/server/sample_data/data_set_schema.js rename to src/legacy/server/sample_data/data_set_schema.js diff --git a/src/server/sample_data/data_sets/ecommerce/ecommerce.json.gz b/src/legacy/server/sample_data/data_sets/ecommerce/ecommerce.json.gz similarity index 100% rename from src/server/sample_data/data_sets/ecommerce/ecommerce.json.gz rename to src/legacy/server/sample_data/data_sets/ecommerce/ecommerce.json.gz diff --git a/src/server/sample_data/data_sets/ecommerce/field_mappings.js b/src/legacy/server/sample_data/data_sets/ecommerce/field_mappings.js similarity index 100% rename from src/server/sample_data/data_sets/ecommerce/field_mappings.js rename to src/legacy/server/sample_data/data_sets/ecommerce/field_mappings.js diff --git a/src/server/sample_data/data_sets/ecommerce/index.js b/src/legacy/server/sample_data/data_sets/ecommerce/index.js similarity index 100% rename from src/server/sample_data/data_sets/ecommerce/index.js rename to src/legacy/server/sample_data/data_sets/ecommerce/index.js diff --git a/src/server/sample_data/data_sets/ecommerce/saved_objects.js b/src/legacy/server/sample_data/data_sets/ecommerce/saved_objects.js similarity index 100% rename from src/server/sample_data/data_sets/ecommerce/saved_objects.js rename to src/legacy/server/sample_data/data_sets/ecommerce/saved_objects.js diff --git a/src/server/sample_data/data_sets/flights/field_mappings.js b/src/legacy/server/sample_data/data_sets/flights/field_mappings.js similarity index 100% rename from src/server/sample_data/data_sets/flights/field_mappings.js rename to src/legacy/server/sample_data/data_sets/flights/field_mappings.js diff --git a/src/server/sample_data/data_sets/flights/flights.json.gz b/src/legacy/server/sample_data/data_sets/flights/flights.json.gz similarity index 100% rename from src/server/sample_data/data_sets/flights/flights.json.gz rename to src/legacy/server/sample_data/data_sets/flights/flights.json.gz diff --git a/src/server/sample_data/data_sets/flights/index.js b/src/legacy/server/sample_data/data_sets/flights/index.js similarity index 100% rename from src/server/sample_data/data_sets/flights/index.js rename to src/legacy/server/sample_data/data_sets/flights/index.js diff --git a/src/server/sample_data/data_sets/flights/saved_objects.js b/src/legacy/server/sample_data/data_sets/flights/saved_objects.js similarity index 100% rename from src/server/sample_data/data_sets/flights/saved_objects.js rename to src/legacy/server/sample_data/data_sets/flights/saved_objects.js diff --git a/src/server/sample_data/data_sets/index.js b/src/legacy/server/sample_data/data_sets/index.js similarity index 100% rename from src/server/sample_data/data_sets/index.js rename to src/legacy/server/sample_data/data_sets/index.js diff --git a/src/server/sample_data/data_sets/logs/field_mappings.js b/src/legacy/server/sample_data/data_sets/logs/field_mappings.js similarity index 100% rename from src/server/sample_data/data_sets/logs/field_mappings.js rename to src/legacy/server/sample_data/data_sets/logs/field_mappings.js diff --git a/src/server/sample_data/data_sets/logs/index.js b/src/legacy/server/sample_data/data_sets/logs/index.js similarity index 100% rename from src/server/sample_data/data_sets/logs/index.js rename to src/legacy/server/sample_data/data_sets/logs/index.js diff --git a/src/server/sample_data/data_sets/logs/logs.json.gz b/src/legacy/server/sample_data/data_sets/logs/logs.json.gz similarity index 100% rename from src/server/sample_data/data_sets/logs/logs.json.gz rename to src/legacy/server/sample_data/data_sets/logs/logs.json.gz diff --git a/src/server/sample_data/data_sets/logs/saved_objects.js b/src/legacy/server/sample_data/data_sets/logs/saved_objects.js similarity index 100% rename from src/server/sample_data/data_sets/logs/saved_objects.js rename to src/legacy/server/sample_data/data_sets/logs/saved_objects.js diff --git a/src/server/sample_data/index.js b/src/legacy/server/sample_data/index.js similarity index 100% rename from src/server/sample_data/index.js rename to src/legacy/server/sample_data/index.js diff --git a/src/server/sample_data/routes/index.js b/src/legacy/server/sample_data/routes/index.js similarity index 100% rename from src/server/sample_data/routes/index.js rename to src/legacy/server/sample_data/routes/index.js diff --git a/src/server/sample_data/routes/install.js b/src/legacy/server/sample_data/routes/install.js similarity index 100% rename from src/server/sample_data/routes/install.js rename to src/legacy/server/sample_data/routes/install.js diff --git a/src/server/sample_data/routes/lib/create_index_name.js b/src/legacy/server/sample_data/routes/lib/create_index_name.js similarity index 100% rename from src/server/sample_data/routes/lib/create_index_name.js rename to src/legacy/server/sample_data/routes/lib/create_index_name.js diff --git a/src/server/sample_data/routes/lib/create_index_name.test.js b/src/legacy/server/sample_data/routes/lib/create_index_name.test.js similarity index 100% rename from src/server/sample_data/routes/lib/create_index_name.test.js rename to src/legacy/server/sample_data/routes/lib/create_index_name.test.js diff --git a/src/server/sample_data/routes/lib/load_data.js b/src/legacy/server/sample_data/routes/lib/load_data.js similarity index 100% rename from src/server/sample_data/routes/lib/load_data.js rename to src/legacy/server/sample_data/routes/lib/load_data.js diff --git a/src/server/sample_data/routes/lib/load_data.test.js b/src/legacy/server/sample_data/routes/lib/load_data.test.js similarity index 100% rename from src/server/sample_data/routes/lib/load_data.test.js rename to src/legacy/server/sample_data/routes/lib/load_data.test.js diff --git a/src/server/sample_data/routes/lib/translate_timestamp.js b/src/legacy/server/sample_data/routes/lib/translate_timestamp.js similarity index 100% rename from src/server/sample_data/routes/lib/translate_timestamp.js rename to src/legacy/server/sample_data/routes/lib/translate_timestamp.js diff --git a/src/server/sample_data/routes/lib/translate_timestamp.test.js b/src/legacy/server/sample_data/routes/lib/translate_timestamp.test.js similarity index 100% rename from src/server/sample_data/routes/lib/translate_timestamp.test.js rename to src/legacy/server/sample_data/routes/lib/translate_timestamp.test.js diff --git a/src/server/sample_data/routes/list.js b/src/legacy/server/sample_data/routes/list.js similarity index 100% rename from src/server/sample_data/routes/list.js rename to src/legacy/server/sample_data/routes/list.js diff --git a/src/server/sample_data/routes/uninstall.js b/src/legacy/server/sample_data/routes/uninstall.js similarity index 100% rename from src/server/sample_data/routes/uninstall.js rename to src/legacy/server/sample_data/routes/uninstall.js diff --git a/src/server/sample_data/sample_data_mixin.js b/src/legacy/server/sample_data/sample_data_mixin.js similarity index 100% rename from src/server/sample_data/sample_data_mixin.js rename to src/legacy/server/sample_data/sample_data_mixin.js diff --git a/src/server/sass/__fixtures__/images/img.png b/src/legacy/server/sass/__fixtures__/images/img.png similarity index 100% rename from src/server/sass/__fixtures__/images/img.png rename to src/legacy/server/sass/__fixtures__/images/img.png diff --git a/src/server/sass/__fixtures__/index.scss b/src/legacy/server/sass/__fixtures__/index.scss similarity index 100% rename from src/server/sass/__fixtures__/index.scss rename to src/legacy/server/sass/__fixtures__/index.scss diff --git a/src/server/sass/build.js b/src/legacy/server/sass/build.js similarity index 100% rename from src/server/sass/build.js rename to src/legacy/server/sass/build.js diff --git a/src/server/sass/build.test.js b/src/legacy/server/sass/build.test.js similarity index 100% rename from src/server/sass/build.test.js rename to src/legacy/server/sass/build.test.js diff --git a/src/server/sass/build_all.js b/src/legacy/server/sass/build_all.js similarity index 100% rename from src/server/sass/build_all.js rename to src/legacy/server/sass/build_all.js diff --git a/src/server/sass/index.js b/src/legacy/server/sass/index.js similarity index 100% rename from src/server/sass/index.js rename to src/legacy/server/sass/index.js diff --git a/src/server/saved_objects/index.d.ts b/src/legacy/server/saved_objects/index.d.ts similarity index 100% rename from src/server/saved_objects/index.d.ts rename to src/legacy/server/saved_objects/index.d.ts diff --git a/src/server/saved_objects/index.js b/src/legacy/server/saved_objects/index.js similarity index 100% rename from src/server/saved_objects/index.js rename to src/legacy/server/saved_objects/index.js diff --git a/src/server/saved_objects/migrations/README.md b/src/legacy/server/saved_objects/migrations/README.md similarity index 100% rename from src/server/saved_objects/migrations/README.md rename to src/legacy/server/saved_objects/migrations/README.md diff --git a/src/server/saved_objects/migrations/core/__snapshots__/build_active_mappings.test.ts.snap b/src/legacy/server/saved_objects/migrations/core/__snapshots__/build_active_mappings.test.ts.snap similarity index 100% rename from src/server/saved_objects/migrations/core/__snapshots__/build_active_mappings.test.ts.snap rename to src/legacy/server/saved_objects/migrations/core/__snapshots__/build_active_mappings.test.ts.snap diff --git a/src/server/saved_objects/migrations/core/__snapshots__/elastic_index.test.ts.snap b/src/legacy/server/saved_objects/migrations/core/__snapshots__/elastic_index.test.ts.snap similarity index 100% rename from src/server/saved_objects/migrations/core/__snapshots__/elastic_index.test.ts.snap rename to src/legacy/server/saved_objects/migrations/core/__snapshots__/elastic_index.test.ts.snap diff --git a/src/server/saved_objects/migrations/core/build_active_mappings.test.ts b/src/legacy/server/saved_objects/migrations/core/build_active_mappings.test.ts similarity index 100% rename from src/server/saved_objects/migrations/core/build_active_mappings.test.ts rename to src/legacy/server/saved_objects/migrations/core/build_active_mappings.test.ts diff --git a/src/server/saved_objects/migrations/core/build_active_mappings.ts b/src/legacy/server/saved_objects/migrations/core/build_active_mappings.ts similarity index 100% rename from src/server/saved_objects/migrations/core/build_active_mappings.ts rename to src/legacy/server/saved_objects/migrations/core/build_active_mappings.ts diff --git a/src/server/saved_objects/migrations/core/call_cluster.ts b/src/legacy/server/saved_objects/migrations/core/call_cluster.ts similarity index 100% rename from src/server/saved_objects/migrations/core/call_cluster.ts rename to src/legacy/server/saved_objects/migrations/core/call_cluster.ts diff --git a/src/server/saved_objects/migrations/core/document_migrator.test.ts b/src/legacy/server/saved_objects/migrations/core/document_migrator.test.ts similarity index 100% rename from src/server/saved_objects/migrations/core/document_migrator.test.ts rename to src/legacy/server/saved_objects/migrations/core/document_migrator.test.ts diff --git a/src/server/saved_objects/migrations/core/document_migrator.ts b/src/legacy/server/saved_objects/migrations/core/document_migrator.ts similarity index 100% rename from src/server/saved_objects/migrations/core/document_migrator.ts rename to src/legacy/server/saved_objects/migrations/core/document_migrator.ts diff --git a/src/server/saved_objects/migrations/core/elastic_index.test.ts b/src/legacy/server/saved_objects/migrations/core/elastic_index.test.ts similarity index 100% rename from src/server/saved_objects/migrations/core/elastic_index.test.ts rename to src/legacy/server/saved_objects/migrations/core/elastic_index.test.ts diff --git a/src/server/saved_objects/migrations/core/elastic_index.ts b/src/legacy/server/saved_objects/migrations/core/elastic_index.ts similarity index 100% rename from src/server/saved_objects/migrations/core/elastic_index.ts rename to src/legacy/server/saved_objects/migrations/core/elastic_index.ts diff --git a/src/server/saved_objects/migrations/core/index.ts b/src/legacy/server/saved_objects/migrations/core/index.ts similarity index 100% rename from src/server/saved_objects/migrations/core/index.ts rename to src/legacy/server/saved_objects/migrations/core/index.ts diff --git a/src/server/saved_objects/migrations/core/index_migrator.test.ts b/src/legacy/server/saved_objects/migrations/core/index_migrator.test.ts similarity index 100% rename from src/server/saved_objects/migrations/core/index_migrator.test.ts rename to src/legacy/server/saved_objects/migrations/core/index_migrator.test.ts diff --git a/src/server/saved_objects/migrations/core/index_migrator.ts b/src/legacy/server/saved_objects/migrations/core/index_migrator.ts similarity index 100% rename from src/server/saved_objects/migrations/core/index_migrator.ts rename to src/legacy/server/saved_objects/migrations/core/index_migrator.ts diff --git a/src/server/saved_objects/migrations/core/migrate_raw_docs.test.ts b/src/legacy/server/saved_objects/migrations/core/migrate_raw_docs.test.ts similarity index 100% rename from src/server/saved_objects/migrations/core/migrate_raw_docs.test.ts rename to src/legacy/server/saved_objects/migrations/core/migrate_raw_docs.test.ts diff --git a/src/server/saved_objects/migrations/core/migrate_raw_docs.ts b/src/legacy/server/saved_objects/migrations/core/migrate_raw_docs.ts similarity index 100% rename from src/server/saved_objects/migrations/core/migrate_raw_docs.ts rename to src/legacy/server/saved_objects/migrations/core/migrate_raw_docs.ts diff --git a/src/server/saved_objects/migrations/core/migration_context.ts b/src/legacy/server/saved_objects/migrations/core/migration_context.ts similarity index 100% rename from src/server/saved_objects/migrations/core/migration_context.ts rename to src/legacy/server/saved_objects/migrations/core/migration_context.ts diff --git a/src/server/saved_objects/migrations/core/migration_coordinator.test.ts b/src/legacy/server/saved_objects/migrations/core/migration_coordinator.test.ts similarity index 100% rename from src/server/saved_objects/migrations/core/migration_coordinator.test.ts rename to src/legacy/server/saved_objects/migrations/core/migration_coordinator.test.ts diff --git a/src/server/saved_objects/migrations/core/migration_coordinator.ts b/src/legacy/server/saved_objects/migrations/core/migration_coordinator.ts similarity index 100% rename from src/server/saved_objects/migrations/core/migration_coordinator.ts rename to src/legacy/server/saved_objects/migrations/core/migration_coordinator.ts diff --git a/src/server/saved_objects/migrations/core/migration_logger.ts b/src/legacy/server/saved_objects/migrations/core/migration_logger.ts similarity index 100% rename from src/server/saved_objects/migrations/core/migration_logger.ts rename to src/legacy/server/saved_objects/migrations/core/migration_logger.ts diff --git a/src/server/saved_objects/migrations/index.ts b/src/legacy/server/saved_objects/migrations/index.ts similarity index 100% rename from src/server/saved_objects/migrations/index.ts rename to src/legacy/server/saved_objects/migrations/index.ts diff --git a/src/server/saved_objects/migrations/kibana/__snapshots__/kibana_migrator.test.ts.snap b/src/legacy/server/saved_objects/migrations/kibana/__snapshots__/kibana_migrator.test.ts.snap similarity index 100% rename from src/server/saved_objects/migrations/kibana/__snapshots__/kibana_migrator.test.ts.snap rename to src/legacy/server/saved_objects/migrations/kibana/__snapshots__/kibana_migrator.test.ts.snap diff --git a/src/server/saved_objects/migrations/kibana/index.ts b/src/legacy/server/saved_objects/migrations/kibana/index.ts similarity index 100% rename from src/server/saved_objects/migrations/kibana/index.ts rename to src/legacy/server/saved_objects/migrations/kibana/index.ts diff --git a/src/server/saved_objects/migrations/kibana/kibana_migrator.test.ts b/src/legacy/server/saved_objects/migrations/kibana/kibana_migrator.test.ts similarity index 100% rename from src/server/saved_objects/migrations/kibana/kibana_migrator.test.ts rename to src/legacy/server/saved_objects/migrations/kibana/kibana_migrator.test.ts diff --git a/src/server/saved_objects/migrations/kibana/kibana_migrator.ts b/src/legacy/server/saved_objects/migrations/kibana/kibana_migrator.ts similarity index 100% rename from src/server/saved_objects/migrations/kibana/kibana_migrator.ts rename to src/legacy/server/saved_objects/migrations/kibana/kibana_migrator.ts diff --git a/src/server/saved_objects/routes/_mock_server.js b/src/legacy/server/saved_objects/routes/_mock_server.js similarity index 100% rename from src/server/saved_objects/routes/_mock_server.js rename to src/legacy/server/saved_objects/routes/_mock_server.js diff --git a/src/server/saved_objects/routes/bulk_create.js b/src/legacy/server/saved_objects/routes/bulk_create.js similarity index 100% rename from src/server/saved_objects/routes/bulk_create.js rename to src/legacy/server/saved_objects/routes/bulk_create.js diff --git a/src/server/saved_objects/routes/bulk_get.js b/src/legacy/server/saved_objects/routes/bulk_get.js similarity index 100% rename from src/server/saved_objects/routes/bulk_get.js rename to src/legacy/server/saved_objects/routes/bulk_get.js diff --git a/src/server/saved_objects/routes/bulk_get.test.js b/src/legacy/server/saved_objects/routes/bulk_get.test.js similarity index 100% rename from src/server/saved_objects/routes/bulk_get.test.js rename to src/legacy/server/saved_objects/routes/bulk_get.test.js diff --git a/src/server/saved_objects/routes/create.js b/src/legacy/server/saved_objects/routes/create.js similarity index 100% rename from src/server/saved_objects/routes/create.js rename to src/legacy/server/saved_objects/routes/create.js diff --git a/src/server/saved_objects/routes/create.test.js b/src/legacy/server/saved_objects/routes/create.test.js similarity index 100% rename from src/server/saved_objects/routes/create.test.js rename to src/legacy/server/saved_objects/routes/create.test.js diff --git a/src/server/saved_objects/routes/delete.js b/src/legacy/server/saved_objects/routes/delete.js similarity index 100% rename from src/server/saved_objects/routes/delete.js rename to src/legacy/server/saved_objects/routes/delete.js diff --git a/src/server/saved_objects/routes/delete.test.js b/src/legacy/server/saved_objects/routes/delete.test.js similarity index 100% rename from src/server/saved_objects/routes/delete.test.js rename to src/legacy/server/saved_objects/routes/delete.test.js diff --git a/src/server/saved_objects/routes/find.js b/src/legacy/server/saved_objects/routes/find.js similarity index 100% rename from src/server/saved_objects/routes/find.js rename to src/legacy/server/saved_objects/routes/find.js diff --git a/src/server/saved_objects/routes/find.test.js b/src/legacy/server/saved_objects/routes/find.test.js similarity index 100% rename from src/server/saved_objects/routes/find.test.js rename to src/legacy/server/saved_objects/routes/find.test.js diff --git a/src/server/saved_objects/routes/get.js b/src/legacy/server/saved_objects/routes/get.js similarity index 100% rename from src/server/saved_objects/routes/get.js rename to src/legacy/server/saved_objects/routes/get.js diff --git a/src/server/saved_objects/routes/get.test.js b/src/legacy/server/saved_objects/routes/get.test.js similarity index 100% rename from src/server/saved_objects/routes/get.test.js rename to src/legacy/server/saved_objects/routes/get.test.js diff --git a/src/server/saved_objects/routes/index.js b/src/legacy/server/saved_objects/routes/index.js similarity index 100% rename from src/server/saved_objects/routes/index.js rename to src/legacy/server/saved_objects/routes/index.js diff --git a/src/server/saved_objects/routes/update.js b/src/legacy/server/saved_objects/routes/update.js similarity index 100% rename from src/server/saved_objects/routes/update.js rename to src/legacy/server/saved_objects/routes/update.js diff --git a/src/server/saved_objects/routes/update.test.js b/src/legacy/server/saved_objects/routes/update.test.js similarity index 100% rename from src/server/saved_objects/routes/update.test.js rename to src/legacy/server/saved_objects/routes/update.test.js diff --git a/src/server/saved_objects/saved_objects_mixin.js b/src/legacy/server/saved_objects/saved_objects_mixin.js similarity index 100% rename from src/server/saved_objects/saved_objects_mixin.js rename to src/legacy/server/saved_objects/saved_objects_mixin.js diff --git a/src/server/saved_objects/schema/index.ts b/src/legacy/server/saved_objects/schema/index.ts similarity index 100% rename from src/server/saved_objects/schema/index.ts rename to src/legacy/server/saved_objects/schema/index.ts diff --git a/src/server/saved_objects/schema/schema.test.ts b/src/legacy/server/saved_objects/schema/schema.test.ts similarity index 100% rename from src/server/saved_objects/schema/schema.test.ts rename to src/legacy/server/saved_objects/schema/schema.test.ts diff --git a/src/server/saved_objects/schema/schema.ts b/src/legacy/server/saved_objects/schema/schema.ts similarity index 100% rename from src/server/saved_objects/schema/schema.ts rename to src/legacy/server/saved_objects/schema/schema.ts diff --git a/src/server/saved_objects/serialization/index.ts b/src/legacy/server/saved_objects/serialization/index.ts similarity index 100% rename from src/server/saved_objects/serialization/index.ts rename to src/legacy/server/saved_objects/serialization/index.ts diff --git a/src/server/saved_objects/serialization/serialization.test.ts b/src/legacy/server/saved_objects/serialization/serialization.test.ts similarity index 100% rename from src/server/saved_objects/serialization/serialization.test.ts rename to src/legacy/server/saved_objects/serialization/serialization.test.ts diff --git a/src/server/saved_objects/service/create_saved_objects_service.d.ts b/src/legacy/server/saved_objects/service/create_saved_objects_service.d.ts similarity index 100% rename from src/server/saved_objects/service/create_saved_objects_service.d.ts rename to src/legacy/server/saved_objects/service/create_saved_objects_service.d.ts diff --git a/src/server/saved_objects/service/create_saved_objects_service.js b/src/legacy/server/saved_objects/service/create_saved_objects_service.js similarity index 100% rename from src/server/saved_objects/service/create_saved_objects_service.js rename to src/legacy/server/saved_objects/service/create_saved_objects_service.js diff --git a/src/server/saved_objects/service/index.d.ts b/src/legacy/server/saved_objects/service/index.d.ts similarity index 100% rename from src/server/saved_objects/service/index.d.ts rename to src/legacy/server/saved_objects/service/index.d.ts diff --git a/src/server/saved_objects/service/index.js b/src/legacy/server/saved_objects/service/index.js similarity index 100% rename from src/server/saved_objects/service/index.js rename to src/legacy/server/saved_objects/service/index.js diff --git a/src/server/saved_objects/service/lib/__snapshots__/priority_collection.test.ts.snap b/src/legacy/server/saved_objects/service/lib/__snapshots__/priority_collection.test.ts.snap similarity index 100% rename from src/server/saved_objects/service/lib/__snapshots__/priority_collection.test.ts.snap rename to src/legacy/server/saved_objects/service/lib/__snapshots__/priority_collection.test.ts.snap diff --git a/src/server/saved_objects/service/lib/__snapshots__/repository.test.js.snap b/src/legacy/server/saved_objects/service/lib/__snapshots__/repository.test.js.snap similarity index 100% rename from src/server/saved_objects/service/lib/__snapshots__/repository.test.js.snap rename to src/legacy/server/saved_objects/service/lib/__snapshots__/repository.test.js.snap diff --git a/src/server/saved_objects/service/lib/__snapshots__/repository_provider.test.js.snap b/src/legacy/server/saved_objects/service/lib/__snapshots__/repository_provider.test.js.snap similarity index 100% rename from src/server/saved_objects/service/lib/__snapshots__/repository_provider.test.js.snap rename to src/legacy/server/saved_objects/service/lib/__snapshots__/repository_provider.test.js.snap diff --git a/src/server/saved_objects/service/lib/__snapshots__/scoped_client_provider.test.js.snap b/src/legacy/server/saved_objects/service/lib/__snapshots__/scoped_client_provider.test.js.snap similarity index 100% rename from src/server/saved_objects/service/lib/__snapshots__/scoped_client_provider.test.js.snap rename to src/legacy/server/saved_objects/service/lib/__snapshots__/scoped_client_provider.test.js.snap diff --git a/src/server/saved_objects/service/lib/decorate_es_error.js b/src/legacy/server/saved_objects/service/lib/decorate_es_error.js similarity index 100% rename from src/server/saved_objects/service/lib/decorate_es_error.js rename to src/legacy/server/saved_objects/service/lib/decorate_es_error.js diff --git a/src/server/saved_objects/service/lib/decorate_es_error.test.js b/src/legacy/server/saved_objects/service/lib/decorate_es_error.test.js similarity index 100% rename from src/server/saved_objects/service/lib/decorate_es_error.test.js rename to src/legacy/server/saved_objects/service/lib/decorate_es_error.test.js diff --git a/src/server/saved_objects/service/lib/errors.d.ts b/src/legacy/server/saved_objects/service/lib/errors.d.ts similarity index 100% rename from src/server/saved_objects/service/lib/errors.d.ts rename to src/legacy/server/saved_objects/service/lib/errors.d.ts diff --git a/src/server/saved_objects/service/lib/errors.js b/src/legacy/server/saved_objects/service/lib/errors.js similarity index 100% rename from src/server/saved_objects/service/lib/errors.js rename to src/legacy/server/saved_objects/service/lib/errors.js diff --git a/src/server/saved_objects/service/lib/errors.test.js b/src/legacy/server/saved_objects/service/lib/errors.test.js similarity index 100% rename from src/server/saved_objects/service/lib/errors.test.js rename to src/legacy/server/saved_objects/service/lib/errors.test.js diff --git a/src/server/saved_objects/service/lib/included_fields.js b/src/legacy/server/saved_objects/service/lib/included_fields.js similarity index 100% rename from src/server/saved_objects/service/lib/included_fields.js rename to src/legacy/server/saved_objects/service/lib/included_fields.js diff --git a/src/server/saved_objects/service/lib/included_fields.test.js b/src/legacy/server/saved_objects/service/lib/included_fields.test.js similarity index 100% rename from src/server/saved_objects/service/lib/included_fields.test.js rename to src/legacy/server/saved_objects/service/lib/included_fields.test.js diff --git a/src/server/saved_objects/service/lib/index.d.ts b/src/legacy/server/saved_objects/service/lib/index.d.ts similarity index 100% rename from src/server/saved_objects/service/lib/index.d.ts rename to src/legacy/server/saved_objects/service/lib/index.d.ts diff --git a/src/server/saved_objects/service/lib/index.js b/src/legacy/server/saved_objects/service/lib/index.js similarity index 100% rename from src/server/saved_objects/service/lib/index.js rename to src/legacy/server/saved_objects/service/lib/index.js diff --git a/src/server/saved_objects/service/lib/priority_collection.test.ts b/src/legacy/server/saved_objects/service/lib/priority_collection.test.ts similarity index 100% rename from src/server/saved_objects/service/lib/priority_collection.test.ts rename to src/legacy/server/saved_objects/service/lib/priority_collection.test.ts diff --git a/src/server/saved_objects/service/lib/priority_collection.ts b/src/legacy/server/saved_objects/service/lib/priority_collection.ts similarity index 100% rename from src/server/saved_objects/service/lib/priority_collection.ts rename to src/legacy/server/saved_objects/service/lib/priority_collection.ts diff --git a/src/server/saved_objects/service/lib/repository.d.ts b/src/legacy/server/saved_objects/service/lib/repository.d.ts similarity index 100% rename from src/server/saved_objects/service/lib/repository.d.ts rename to src/legacy/server/saved_objects/service/lib/repository.d.ts diff --git a/src/server/saved_objects/service/lib/repository.js b/src/legacy/server/saved_objects/service/lib/repository.js similarity index 100% rename from src/server/saved_objects/service/lib/repository.js rename to src/legacy/server/saved_objects/service/lib/repository.js diff --git a/src/server/saved_objects/service/lib/repository.test.js b/src/legacy/server/saved_objects/service/lib/repository.test.js similarity index 100% rename from src/server/saved_objects/service/lib/repository.test.js rename to src/legacy/server/saved_objects/service/lib/repository.test.js diff --git a/src/server/saved_objects/service/lib/repository_provider.js b/src/legacy/server/saved_objects/service/lib/repository_provider.js similarity index 100% rename from src/server/saved_objects/service/lib/repository_provider.js rename to src/legacy/server/saved_objects/service/lib/repository_provider.js diff --git a/src/server/saved_objects/service/lib/repository_provider.test.js b/src/legacy/server/saved_objects/service/lib/repository_provider.test.js similarity index 100% rename from src/server/saved_objects/service/lib/repository_provider.test.js rename to src/legacy/server/saved_objects/service/lib/repository_provider.test.js diff --git a/src/server/saved_objects/service/lib/scoped_client_provider.d.ts b/src/legacy/server/saved_objects/service/lib/scoped_client_provider.d.ts similarity index 100% rename from src/server/saved_objects/service/lib/scoped_client_provider.d.ts rename to src/legacy/server/saved_objects/service/lib/scoped_client_provider.d.ts diff --git a/src/server/saved_objects/service/lib/scoped_client_provider.js b/src/legacy/server/saved_objects/service/lib/scoped_client_provider.js similarity index 100% rename from src/server/saved_objects/service/lib/scoped_client_provider.js rename to src/legacy/server/saved_objects/service/lib/scoped_client_provider.js diff --git a/src/server/saved_objects/service/lib/scoped_client_provider.test.js b/src/legacy/server/saved_objects/service/lib/scoped_client_provider.test.js similarity index 100% rename from src/server/saved_objects/service/lib/scoped_client_provider.test.js rename to src/legacy/server/saved_objects/service/lib/scoped_client_provider.test.js diff --git a/src/server/saved_objects/service/lib/search_dsl/__snapshots__/sorting_params.test.js.snap b/src/legacy/server/saved_objects/service/lib/search_dsl/__snapshots__/sorting_params.test.js.snap similarity index 100% rename from src/server/saved_objects/service/lib/search_dsl/__snapshots__/sorting_params.test.js.snap rename to src/legacy/server/saved_objects/service/lib/search_dsl/__snapshots__/sorting_params.test.js.snap diff --git a/src/server/saved_objects/service/lib/search_dsl/index.js b/src/legacy/server/saved_objects/service/lib/search_dsl/index.js similarity index 100% rename from src/server/saved_objects/service/lib/search_dsl/index.js rename to src/legacy/server/saved_objects/service/lib/search_dsl/index.js diff --git a/src/server/saved_objects/service/lib/search_dsl/query_params.js b/src/legacy/server/saved_objects/service/lib/search_dsl/query_params.js similarity index 100% rename from src/server/saved_objects/service/lib/search_dsl/query_params.js rename to src/legacy/server/saved_objects/service/lib/search_dsl/query_params.js diff --git a/src/server/saved_objects/service/lib/search_dsl/query_params.test.js b/src/legacy/server/saved_objects/service/lib/search_dsl/query_params.test.js similarity index 100% rename from src/server/saved_objects/service/lib/search_dsl/query_params.test.js rename to src/legacy/server/saved_objects/service/lib/search_dsl/query_params.test.js diff --git a/src/server/saved_objects/service/lib/search_dsl/search_dsl.js b/src/legacy/server/saved_objects/service/lib/search_dsl/search_dsl.js similarity index 100% rename from src/server/saved_objects/service/lib/search_dsl/search_dsl.js rename to src/legacy/server/saved_objects/service/lib/search_dsl/search_dsl.js diff --git a/src/server/saved_objects/service/lib/search_dsl/search_dsl.test.js b/src/legacy/server/saved_objects/service/lib/search_dsl/search_dsl.test.js similarity index 100% rename from src/server/saved_objects/service/lib/search_dsl/search_dsl.test.js rename to src/legacy/server/saved_objects/service/lib/search_dsl/search_dsl.test.js diff --git a/src/server/saved_objects/service/lib/search_dsl/sorting_params.js b/src/legacy/server/saved_objects/service/lib/search_dsl/sorting_params.js similarity index 100% rename from src/server/saved_objects/service/lib/search_dsl/sorting_params.js rename to src/legacy/server/saved_objects/service/lib/search_dsl/sorting_params.js diff --git a/src/server/saved_objects/service/lib/search_dsl/sorting_params.test.js b/src/legacy/server/saved_objects/service/lib/search_dsl/sorting_params.test.js similarity index 100% rename from src/server/saved_objects/service/lib/search_dsl/sorting_params.test.js rename to src/legacy/server/saved_objects/service/lib/search_dsl/sorting_params.test.js diff --git a/src/server/saved_objects/service/saved_objects_client.d.ts b/src/legacy/server/saved_objects/service/saved_objects_client.d.ts similarity index 100% rename from src/server/saved_objects/service/saved_objects_client.d.ts rename to src/legacy/server/saved_objects/service/saved_objects_client.d.ts diff --git a/src/server/saved_objects/service/saved_objects_client.js b/src/legacy/server/saved_objects/service/saved_objects_client.js similarity index 100% rename from src/server/saved_objects/service/saved_objects_client.js rename to src/legacy/server/saved_objects/service/saved_objects_client.js diff --git a/src/server/saved_objects/service/saved_objects_client.test.js b/src/legacy/server/saved_objects/service/saved_objects_client.test.js similarity index 100% rename from src/server/saved_objects/service/saved_objects_client.test.js rename to src/legacy/server/saved_objects/service/saved_objects_client.test.js diff --git a/src/server/saved_objects/validation/index.ts b/src/legacy/server/saved_objects/validation/index.ts similarity index 100% rename from src/server/saved_objects/validation/index.ts rename to src/legacy/server/saved_objects/validation/index.ts diff --git a/src/server/saved_objects/validation/readme.md b/src/legacy/server/saved_objects/validation/readme.md similarity index 100% rename from src/server/saved_objects/validation/readme.md rename to src/legacy/server/saved_objects/validation/readme.md diff --git a/src/server/saved_objects/validation/validation.test.ts b/src/legacy/server/saved_objects/validation/validation.test.ts similarity index 100% rename from src/server/saved_objects/validation/validation.test.ts rename to src/legacy/server/saved_objects/validation/validation.test.ts diff --git a/src/server/saved_objects/version/base64.ts b/src/legacy/server/saved_objects/version/base64.ts similarity index 100% rename from src/server/saved_objects/version/base64.ts rename to src/legacy/server/saved_objects/version/base64.ts diff --git a/src/server/saved_objects/version/decode_request_version.test.ts b/src/legacy/server/saved_objects/version/decode_request_version.test.ts similarity index 100% rename from src/server/saved_objects/version/decode_request_version.test.ts rename to src/legacy/server/saved_objects/version/decode_request_version.test.ts diff --git a/src/server/saved_objects/version/decode_request_version.ts b/src/legacy/server/saved_objects/version/decode_request_version.ts similarity index 100% rename from src/server/saved_objects/version/decode_request_version.ts rename to src/legacy/server/saved_objects/version/decode_request_version.ts diff --git a/src/server/saved_objects/version/decode_version.test.ts b/src/legacy/server/saved_objects/version/decode_version.test.ts similarity index 100% rename from src/server/saved_objects/version/decode_version.test.ts rename to src/legacy/server/saved_objects/version/decode_version.test.ts diff --git a/src/server/saved_objects/version/decode_version.ts b/src/legacy/server/saved_objects/version/decode_version.ts similarity index 100% rename from src/server/saved_objects/version/decode_version.ts rename to src/legacy/server/saved_objects/version/decode_version.ts diff --git a/src/server/saved_objects/version/encode_hit_version.test.ts b/src/legacy/server/saved_objects/version/encode_hit_version.test.ts similarity index 100% rename from src/server/saved_objects/version/encode_hit_version.test.ts rename to src/legacy/server/saved_objects/version/encode_hit_version.test.ts diff --git a/src/server/saved_objects/version/encode_hit_version.ts b/src/legacy/server/saved_objects/version/encode_hit_version.ts similarity index 100% rename from src/server/saved_objects/version/encode_hit_version.ts rename to src/legacy/server/saved_objects/version/encode_hit_version.ts diff --git a/src/server/saved_objects/version/encode_version.test.ts b/src/legacy/server/saved_objects/version/encode_version.test.ts similarity index 100% rename from src/server/saved_objects/version/encode_version.test.ts rename to src/legacy/server/saved_objects/version/encode_version.test.ts diff --git a/src/server/saved_objects/version/encode_version.ts b/src/legacy/server/saved_objects/version/encode_version.ts similarity index 100% rename from src/server/saved_objects/version/encode_version.ts rename to src/legacy/server/saved_objects/version/encode_version.ts diff --git a/src/server/saved_objects/version/index.ts b/src/legacy/server/saved_objects/version/index.ts similarity index 100% rename from src/server/saved_objects/version/index.ts rename to src/legacy/server/saved_objects/version/index.ts diff --git a/src/server/server_extensions/add_memoized_factory_to_request.test.js b/src/legacy/server/server_extensions/add_memoized_factory_to_request.test.js similarity index 100% rename from src/server/server_extensions/add_memoized_factory_to_request.test.js rename to src/legacy/server/server_extensions/add_memoized_factory_to_request.test.js diff --git a/src/server/server_extensions/index.js b/src/legacy/server/server_extensions/index.js similarity index 100% rename from src/server/server_extensions/index.js rename to src/legacy/server/server_extensions/index.js diff --git a/src/server/server_extensions/server_extensions_mixin.js b/src/legacy/server/server_extensions/server_extensions_mixin.js similarity index 100% rename from src/server/server_extensions/server_extensions_mixin.js rename to src/legacy/server/server_extensions/server_extensions_mixin.js diff --git a/src/server/status/collectors/get_ops_stats_collector.js b/src/legacy/server/status/collectors/get_ops_stats_collector.js similarity index 100% rename from src/server/status/collectors/get_ops_stats_collector.js rename to src/legacy/server/status/collectors/get_ops_stats_collector.js diff --git a/src/server/status/collectors/index.js b/src/legacy/server/status/collectors/index.js similarity index 100% rename from src/server/status/collectors/index.js rename to src/legacy/server/status/collectors/index.js diff --git a/src/server/status/constants.js b/src/legacy/server/status/constants.js similarity index 100% rename from src/server/status/constants.js rename to src/legacy/server/status/constants.js diff --git a/src/server/status/index.js b/src/legacy/server/status/index.js similarity index 100% rename from src/server/status/index.js rename to src/legacy/server/status/index.js diff --git a/src/server/status/lib/__mocks__/_fs_stubs.js b/src/legacy/server/status/lib/__mocks__/_fs_stubs.js similarity index 100% rename from src/server/status/lib/__mocks__/_fs_stubs.js rename to src/legacy/server/status/lib/__mocks__/_fs_stubs.js diff --git a/src/server/status/lib/cgroup.js b/src/legacy/server/status/lib/cgroup.js similarity index 100% rename from src/server/status/lib/cgroup.js rename to src/legacy/server/status/lib/cgroup.js diff --git a/src/server/status/lib/cgroup.test.js b/src/legacy/server/status/lib/cgroup.test.js similarity index 100% rename from src/server/status/lib/cgroup.test.js rename to src/legacy/server/status/lib/cgroup.test.js diff --git a/src/server/status/lib/get_kibana_info_for_stats.js b/src/legacy/server/status/lib/get_kibana_info_for_stats.js similarity index 100% rename from src/server/status/lib/get_kibana_info_for_stats.js rename to src/legacy/server/status/lib/get_kibana_info_for_stats.js diff --git a/src/server/status/lib/get_os_info.js b/src/legacy/server/status/lib/get_os_info.js similarity index 100% rename from src/server/status/lib/get_os_info.js rename to src/legacy/server/status/lib/get_os_info.js diff --git a/src/server/status/lib/get_os_info.test.js b/src/legacy/server/status/lib/get_os_info.test.js similarity index 100% rename from src/server/status/lib/get_os_info.test.js rename to src/legacy/server/status/lib/get_os_info.test.js diff --git a/src/server/status/lib/index.js b/src/legacy/server/status/lib/index.js similarity index 100% rename from src/server/status/lib/index.js rename to src/legacy/server/status/lib/index.js diff --git a/src/server/status/lib/metrics.js b/src/legacy/server/status/lib/metrics.js similarity index 100% rename from src/server/status/lib/metrics.js rename to src/legacy/server/status/lib/metrics.js diff --git a/src/server/status/lib/metrics.test.js b/src/legacy/server/status/lib/metrics.test.js similarity index 100% rename from src/server/status/lib/metrics.test.js rename to src/legacy/server/status/lib/metrics.test.js diff --git a/src/server/status/routes/api/register_stats.js b/src/legacy/server/status/routes/api/register_stats.js similarity index 100% rename from src/server/status/routes/api/register_stats.js rename to src/legacy/server/status/routes/api/register_stats.js diff --git a/src/server/status/routes/api/register_status.js b/src/legacy/server/status/routes/api/register_status.js similarity index 100% rename from src/server/status/routes/api/register_status.js rename to src/legacy/server/status/routes/api/register_status.js diff --git a/src/server/status/routes/index.js b/src/legacy/server/status/routes/index.js similarity index 100% rename from src/server/status/routes/index.js rename to src/legacy/server/status/routes/index.js diff --git a/src/server/status/routes/page/register_status.js b/src/legacy/server/status/routes/page/register_status.js similarity index 100% rename from src/server/status/routes/page/register_status.js rename to src/legacy/server/status/routes/page/register_status.js diff --git a/src/server/status/samples.js b/src/legacy/server/status/samples.js similarity index 100% rename from src/server/status/samples.js rename to src/legacy/server/status/samples.js diff --git a/src/server/status/server_status.js b/src/legacy/server/status/server_status.js similarity index 100% rename from src/server/status/server_status.js rename to src/legacy/server/status/server_status.js diff --git a/src/server/status/server_status.test.js b/src/legacy/server/status/server_status.test.js similarity index 100% rename from src/server/status/server_status.test.js rename to src/legacy/server/status/server_status.test.js diff --git a/src/server/status/states.js b/src/legacy/server/status/states.js similarity index 100% rename from src/server/status/states.js rename to src/legacy/server/status/states.js diff --git a/src/server/status/status.js b/src/legacy/server/status/status.js similarity index 100% rename from src/server/status/status.js rename to src/legacy/server/status/status.js diff --git a/src/server/status/status.test.js b/src/legacy/server/status/status.test.js similarity index 100% rename from src/server/status/status.test.js rename to src/legacy/server/status/status.test.js diff --git a/src/server/status/wrap_auth_config.js b/src/legacy/server/status/wrap_auth_config.js similarity index 100% rename from src/server/status/wrap_auth_config.js rename to src/legacy/server/status/wrap_auth_config.js diff --git a/src/server/status/wrap_auth_config.test.js b/src/legacy/server/status/wrap_auth_config.test.js similarity index 100% rename from src/server/status/wrap_auth_config.test.js rename to src/legacy/server/status/wrap_auth_config.test.js diff --git a/src/server/url_shortening/index.js b/src/legacy/server/url_shortening/index.js similarity index 100% rename from src/server/url_shortening/index.js rename to src/legacy/server/url_shortening/index.js diff --git a/src/server/url_shortening/routes/create_routes.js b/src/legacy/server/url_shortening/routes/create_routes.js similarity index 100% rename from src/server/url_shortening/routes/create_routes.js rename to src/legacy/server/url_shortening/routes/create_routes.js diff --git a/src/server/url_shortening/routes/goto.js b/src/legacy/server/url_shortening/routes/goto.js similarity index 100% rename from src/server/url_shortening/routes/goto.js rename to src/legacy/server/url_shortening/routes/goto.js diff --git a/src/server/url_shortening/routes/lib/short_url_assert_valid.js b/src/legacy/server/url_shortening/routes/lib/short_url_assert_valid.js similarity index 100% rename from src/server/url_shortening/routes/lib/short_url_assert_valid.js rename to src/legacy/server/url_shortening/routes/lib/short_url_assert_valid.js diff --git a/src/server/url_shortening/routes/lib/short_url_assert_valid.test.js b/src/legacy/server/url_shortening/routes/lib/short_url_assert_valid.test.js similarity index 100% rename from src/server/url_shortening/routes/lib/short_url_assert_valid.test.js rename to src/legacy/server/url_shortening/routes/lib/short_url_assert_valid.test.js diff --git a/src/server/url_shortening/routes/lib/short_url_error.js b/src/legacy/server/url_shortening/routes/lib/short_url_error.js similarity index 100% rename from src/server/url_shortening/routes/lib/short_url_error.js rename to src/legacy/server/url_shortening/routes/lib/short_url_error.js diff --git a/src/server/url_shortening/routes/lib/short_url_error.test.js b/src/legacy/server/url_shortening/routes/lib/short_url_error.test.js similarity index 100% rename from src/server/url_shortening/routes/lib/short_url_error.test.js rename to src/legacy/server/url_shortening/routes/lib/short_url_error.test.js diff --git a/src/server/url_shortening/routes/lib/short_url_lookup.js b/src/legacy/server/url_shortening/routes/lib/short_url_lookup.js similarity index 100% rename from src/server/url_shortening/routes/lib/short_url_lookup.js rename to src/legacy/server/url_shortening/routes/lib/short_url_lookup.js diff --git a/src/server/url_shortening/routes/lib/short_url_lookup.test.js b/src/legacy/server/url_shortening/routes/lib/short_url_lookup.test.js similarity index 100% rename from src/server/url_shortening/routes/lib/short_url_lookup.test.js rename to src/legacy/server/url_shortening/routes/lib/short_url_lookup.test.js diff --git a/src/server/url_shortening/routes/shorten_url.js b/src/legacy/server/url_shortening/routes/shorten_url.js similarity index 100% rename from src/server/url_shortening/routes/shorten_url.js rename to src/legacy/server/url_shortening/routes/shorten_url.js diff --git a/src/server/url_shortening/url_shortening_mixin.js b/src/legacy/server/url_shortening/url_shortening_mixin.js similarity index 100% rename from src/server/url_shortening/url_shortening_mixin.js rename to src/legacy/server/url_shortening/url_shortening_mixin.js diff --git a/src/server/usage/README.md b/src/legacy/server/usage/README.md similarity index 100% rename from src/server/usage/README.md rename to src/legacy/server/usage/README.md diff --git a/src/server/usage/classes/__tests__/collector_set.js b/src/legacy/server/usage/classes/__tests__/collector_set.js similarity index 100% rename from src/server/usage/classes/__tests__/collector_set.js rename to src/legacy/server/usage/classes/__tests__/collector_set.js diff --git a/src/server/usage/classes/collector.js b/src/legacy/server/usage/classes/collector.js similarity index 100% rename from src/server/usage/classes/collector.js rename to src/legacy/server/usage/classes/collector.js diff --git a/src/server/usage/classes/collector_set.js b/src/legacy/server/usage/classes/collector_set.js similarity index 100% rename from src/server/usage/classes/collector_set.js rename to src/legacy/server/usage/classes/collector_set.js diff --git a/src/server/usage/classes/index.js b/src/legacy/server/usage/classes/index.js similarity index 100% rename from src/server/usage/classes/index.js rename to src/legacy/server/usage/classes/index.js diff --git a/src/server/usage/classes/usage_collector.js b/src/legacy/server/usage/classes/usage_collector.js similarity index 100% rename from src/server/usage/classes/usage_collector.js rename to src/legacy/server/usage/classes/usage_collector.js diff --git a/src/server/usage/index.js b/src/legacy/server/usage/index.js similarity index 100% rename from src/server/usage/index.js rename to src/legacy/server/usage/index.js diff --git a/src/server/usage/lib/get_collector_logger.js b/src/legacy/server/usage/lib/get_collector_logger.js similarity index 100% rename from src/server/usage/lib/get_collector_logger.js rename to src/legacy/server/usage/lib/get_collector_logger.js diff --git a/src/server/usage/lib/index.js b/src/legacy/server/usage/lib/index.js similarity index 100% rename from src/server/usage/lib/index.js rename to src/legacy/server/usage/lib/index.js diff --git a/src/server/utils/index.js b/src/legacy/server/utils/index.js similarity index 100% rename from src/server/utils/index.js rename to src/legacy/server/utils/index.js diff --git a/src/server/utils/prompt.js b/src/legacy/server/utils/prompt.js similarity index 100% rename from src/server/utils/prompt.js rename to src/legacy/server/utils/prompt.js diff --git a/src/server/utils/prompt.test.js b/src/legacy/server/utils/prompt.test.js similarity index 100% rename from src/server/utils/prompt.test.js rename to src/legacy/server/utils/prompt.test.js diff --git a/src/server/views/index.pug b/src/legacy/server/views/index.pug similarity index 100% rename from src/server/views/index.pug rename to src/legacy/server/views/index.pug diff --git a/src/server/warnings/index.js b/src/legacy/server/warnings/index.js similarity index 100% rename from src/server/warnings/index.js rename to src/legacy/server/warnings/index.js