diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 4e6b5d30cbc64..e0e120c6820ba 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -99,7 +99,7 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ /^x-pack\/solutions\/observability\/plugins\/observability_onboarding/, - /^x-pack\/plugins\/fleet/, + /^x-pack\/platform\/plugins\/shared\/fleet/, ])) || GITHUB_PR_LABELS.includes('ci:all-cypress-suites') ) { @@ -116,7 +116,7 @@ const getPipeline = (filename: string, removeSteps = true) => { } if ( - (await doAnyChangesMatch([/^x-pack\/plugins\/fleet/, /^x-pack\/test\/fleet_cypress/])) || + (await doAnyChangesMatch([/^x-pack\/platform\/plugins\/shared\/fleet/, /^x-pack\/test\/fleet_cypress/])) || GITHUB_PR_LABELS.includes('ci:all-cypress-suites') ) { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/fleet_cypress.yml')); diff --git a/.buildkite/scripts/steps/functional/fleet_cypress.sh b/.buildkite/scripts/steps/functional/fleet_cypress.sh index e050b73a91c3e..35241f3ee61dc 100755 --- a/.buildkite/scripts/steps/functional/fleet_cypress.sh +++ b/.buildkite/scripts/steps/functional/fleet_cypress.sh @@ -9,7 +9,7 @@ export KIBANA_INSTALL_DIR=${KIBANA_BUILD_LOCATION} echo "--- Fleet Cypress tests (Chrome)" -cd x-pack/plugins/fleet +cd x-pack/platform/plugins/shared/fleet set +e yarn cypress:run:reporter; status=$?; yarn cypress_space_awareness:run:reporter; space_status=$?; yarn junit:merge || :; [ "$status" -ne 0 ] && exit $status || [ "$space_status" -ne 0 ] && exit $space_status || exit 0 diff --git a/.eslintrc.js b/.eslintrc.js index b0db71e492bbe..3c0d81855427d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1029,7 +1029,7 @@ module.exports = { * Fleet overrides */ { - files: ['x-pack/plugins/fleet/**/*.{js,mjs,ts,tsx}'], + files: ['x-pack/platform/plugins/shared/fleet/**/*.{js,mjs,ts,tsx}'], plugins: ['testing-library'], rules: { 'testing-library/await-async-utils': 'error', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9f6a71d8ae1a4..72b9005c096bc 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -858,6 +858,7 @@ x-pack/platform/plugins/shared/data_quality @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/dataset_quality @elastic/obs-ux-logs-team x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/platform/plugins/shared/fields_metadata @elastic/obs-ux-logs-team +x-pack/platform/plugins/shared/fleet @elastic/fleet x-pack/platform/plugins/shared/index_management @elastic/kibana-management x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management @@ -890,7 +891,6 @@ x-pack/plugins/enterprise_search @elastic/search-kibana x-pack/plugins/event_log @elastic/response-ops x-pack/plugins/features @elastic/kibana-core x-pack/plugins/file_upload @elastic/kibana-presentation @elastic/ml-ui -x-pack/plugins/fleet @elastic/fleet x-pack/plugins/global_search @elastic/appex-sharedux x-pack/plugins/global_search_bar @elastic/appex-sharedux x-pack/plugins/global_search_providers @elastic/appex-sharedux @@ -1383,7 +1383,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql /x-pack/test/fleet_cypress @elastic/fleet /x-pack/test/fleet_functional @elastic/fleet /src/dev/build/tasks/bundle_fleet_packages.ts @elastic/fleet @elastic/kibana-operations -/x-pack/plugins/fleet/server/services/elastic_agent_manifest.ts @elastic/fleet @elastic/obs-cloudnative-monitoring +/x-pack/platform/plugins/shared/fleet/server/services/elastic_agent_manifest.ts @elastic/fleet @elastic/obs-cloudnative-monitoring /x-pack/test_serverless/**/test_suites/**/fleet/ @elastic/fleet # APM @@ -2506,10 +2506,10 @@ x-pack/solutions/security/plugins/security_solution/public/cloud_defend @elastic x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture @elastic/kibana-cloud-security-posture x-pack/solutions/security/plugins/security_solution/public/kubernetes @elastic/kibana-cloud-security-posture ## Fleet plugin (co-owned with Fleet team) -x-pack/plugins/fleet/public/components/cloud_security_posture @elastic/fleet @elastic/kibana-cloud-security-posture -x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture @elastic/fleet @elastic/kibana-cloud-security-posture -x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.* @elastic/fleet @elastic/kibana-cloud-security-posture -x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.* @elastic/fleet @elastic/kibana-cloud-security-posture +x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture @elastic/fleet @elastic/kibana-cloud-security-posture +x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture @elastic/fleet @elastic/kibana-cloud-security-posture +x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.* @elastic/fleet @elastic/kibana-cloud-security-posture +x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.* @elastic/fleet @elastic/kibana-cloud-security-posture ## Kubernetes Security tests x-pack/test/functional/es_archives/kubernetes_security @elastic/kibana-cloud-security-posture x-pack/test/kubernetes_security @elastic/kibana-cloud-security-posture @@ -2542,7 +2542,7 @@ x-pack/solutions/security/plugins/security_solution/server/lib/security_integrat **/*.scss @elastic/kibana-design # Observability design -/x-pack/plugins/fleet/**/*.scss @elastic/observability-design +/x-pack/platform/plugins/shared/fleet/**/*.scss @elastic/observability-design /x-pack/plugins/monitoring/**/*.scss @elastic/observability-design # Ent. Search design @@ -2653,7 +2653,7 @@ oas_docs/kibana.info.yaml @elastic/platform-docs # maintaining ESOs has been documented and consuming teams have acclimated to ZDT changes. x-pack/plugins/actions/server/saved_objects/index.ts @elastic/response-ops @elastic/kibana-security x-pack/plugins/alerting/server/saved_objects/index.ts @elastic/response-ops @elastic/kibana-security -x-pack/plugins/fleet/server/saved_objects/index.ts @elastic/fleet @elastic/kibana-security +x-pack/platform/plugins/shared/fleet/server/saved_objects/index.ts @elastic/fleet @elastic/kibana-security x-pack/plugins/observability_solution/synthetics/server/saved_objects/saved_objects.ts @elastic/obs-ux-management-team @elastic/kibana-security x-pack/plugins/observability_solution/synthetics/server/saved_objects/synthetics_monitor.ts @elastic/obs-ux-management-team @elastic/kibana-security x-pack/plugins/observability_solution/synthetics/server/saved_objects/synthetics_param.ts @elastic/obs-ux-management-team @elastic/kibana-security diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml index 3077ac0f51674..07cf26a5eb249 100644 --- a/.github/codeql/codeql-config.yml +++ b/.github/codeql/codeql-config.yml @@ -77,7 +77,7 @@ paths-ignore: - x-pack/solutions/security/plugins/cloud_security_posture/common/scripts - x-pack/solutions/security/plugins/elastic_assistant/scripts - x-pack/plugins/event_log/scripts - - x-pack/plugins/fleet/scripts + - x-pack/platform/plugins/shared/fleet/scripts - x-pack/solutions/security/plugins/lists/scripts - x-pack/solutions/security/plugins/lists/server/scripts - x-pack/plugins/observability_solution/*/scripts diff --git a/.github/paths-labeller.yml b/.github/paths-labeller.yml index bc67d3a6f6d93..dda4e12f526b2 100644 --- a/.github/paths-labeller.yml +++ b/.github/paths-labeller.yml @@ -16,7 +16,7 @@ - 'packages/kbn-apm-utils/**/*.*' - 'x-pack/solutions/observability/plugins/ux/**/*.*' - 'Team:Fleet': - - 'x-pack/plugins/fleet/**/*.*' + - 'x-pack/platform/plugins/shared/fleet/**/*.*' - 'x-pack/test/fleet_api_integration/**/*.*' - 'Team:obs-ux-management': - 'x-pack/solutions/observability/plugins/observability/**/*.*' diff --git a/.gitignore b/.gitignore index 18382409725a1..f2e141e5a4f9b 100644 --- a/.gitignore +++ b/.gitignore @@ -96,8 +96,8 @@ npm-debug.log* /x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/service_map/snapshots/*.diff.png # transpiled cypress config -x-pack/plugins/fleet/cypress.config.d.ts -x-pack/plugins/fleet/cypress.config.js +x-pack/platform/plugins/shared/fleet/cypress.config.d.ts +x-pack/platform/plugins/shared/fleet/cypress.config.js x-pack/platform/plugins/shared/osquery/cypress.config.d.ts x-pack/platform/plugins/shared/osquery/cypress.config.js x-pack/plugins/enterprise_search/cypress.config.d.ts diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 30db34dd6d2f6..da869dd1b772f 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -605,7 +605,7 @@ activities. |WARNING: Missing README. -|{kib-repo}blob/{branch}/x-pack/plugins/fleet/README.md[fleet] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/fleet/README.md[fleet] |Fleet provides a web-based UI in Kibana for centrally managing Elastic Agents and their policies. diff --git a/package.json b/package.json index 1f2cf56b2df6d..ba19411241ab6 100644 --- a/package.json +++ b/package.json @@ -536,7 +536,7 @@ "@kbn/files-example-plugin": "link:examples/files_example", "@kbn/files-management-plugin": "link:src/plugins/files_management", "@kbn/files-plugin": "link:src/plugins/files", - "@kbn/fleet-plugin": "link:x-pack/plugins/fleet", + "@kbn/fleet-plugin": "link:x-pack/platform/plugins/shared/fleet", "@kbn/flot-charts": "link:packages/kbn-flot-charts", "@kbn/foo-plugin": "link:x-pack/test/ui_capabilities/common/plugins/foo_plugin", "@kbn/formatters": "link:packages/kbn-formatters", diff --git a/run_fleet_setup_parallel.sh b/run_fleet_setup_parallel.sh index e7ab3f5d33338..48df819821613 100755 --- a/run_fleet_setup_parallel.sh +++ b/run_fleet_setup_parallel.sh @@ -1,7 +1,7 @@ -node scripts/jest_integration.js x-pack/plugins/fleet/server/integration_tests/es.test.ts & +node scripts/jest_integration.js x-pack/platform/plugins/shared/fleet/server/integration_tests/es.test.ts & sleep 5 -node scripts/jest_integration.js x-pack/plugins/fleet/server/integration_tests/fleet_setup.test.ts & -node scripts/jest_integration.js x-pack/plugins/fleet/server/integration_tests/fleet_setup.test.ts & -node scripts/jest_integration.js x-pack/plugins/fleet/server/integration_tests/fleet_setup.test.ts & +node scripts/jest_integration.js x-pack/platform/plugins/shared/fleet/server/integration_tests/fleet_setup.test.ts & +node scripts/jest_integration.js x-pack/platform/plugins/shared/fleet/server/integration_tests/fleet_setup.test.ts & +node scripts/jest_integration.js x-pack/platform/plugins/shared/fleet/server/integration_tests/fleet_setup.test.ts & exit 0 \ No newline at end of file diff --git a/src/dev/build/lib/archive_utils.ts b/src/dev/build/lib/archive_utils.ts index 4c886096426c0..9accec17c7b37 100644 --- a/src/dev/build/lib/archive_utils.ts +++ b/src/dev/build/lib/archive_utils.ts @@ -12,7 +12,7 @@ import yauzl from 'yauzl'; import yazl from 'yazl'; // The utilities in this file are largely copied with minor modifications from -// `x-pack/plugins/fleet/server/services/epm/extract.ts`. We can't import them directly +// `x-pack/platform/plugins/shared/fleet/server/services/epm/extract.ts`. We can't import them directly // in the bundled package task due to tsconfig limitation, so they're copied here instead. export interface ZipEntry { @@ -63,7 +63,7 @@ export async function createZipFile(entries: ZipEntry[], destination: string): P }); } -// Copied over some utilities from x-pack/plugins/fleet/server/services/epm/archive/extract.ts since we can't +// Copied over some utilities from x-pack/platform/plugins/shared/fleet/server/services/epm/archive/extract.ts since we can't // import them directly due to `tsconfig` limitations in the `kibana/src/` directory. function yauzlFromBuffer(buffer: Buffer, opts: yauzl.Options): Promise { return new Promise((resolve, reject) => diff --git a/src/dev/build/tasks/fetch_agent_versions_list.ts b/src/dev/build/tasks/fetch_agent_versions_list.ts index 2a65fe124c92b..3f0e83332d9cf 100644 --- a/src/dev/build/tasks/fetch_agent_versions_list.ts +++ b/src/dev/build/tasks/fetch_agent_versions_list.ts @@ -71,7 +71,7 @@ export const FetchAgentVersionsList: Task = { } const versionsList = await getAvailableVersions(log); - const AGENT_VERSION_BUILD_FILE = 'x-pack/plugins/fleet/target/agent_versions_list.json'; + const AGENT_VERSION_BUILD_FILE = 'x-pack/platform/plugins/shared/fleet/target/agent_versions_list.json'; if (versionsList.length !== 0) { log.info(`Writing versions list to ${AGENT_VERSION_BUILD_FILE}`); diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index 28897457278eb..34412c30154bc 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -31,7 +31,7 @@ export const IGNORE_FILE_GLOBS = [ 'x-pack/plugins/canvas/server/templates/assets/*.{png,jpg,svg}', 'x-pack/plugins/cases/docs/**/*', 'x-pack/plugins/monitoring/public/lib/jquery_flot/**/*', - 'x-pack/plugins/fleet/cypress/packages/*.zip', + 'x-pack/platform/plugins/shared/fleet/cypress/packages/*.zip', '**/apm-diagnostics-*.json', '**/.*', '**/__mocks__/**/*', diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index 1040f0d78c7fd..91aee60a1433e 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -43,7 +43,7 @@ export const storybookAliases = { expression_reveal_image: 'src/plugins/expression_reveal_image/.storybook', expression_shape: 'src/plugins/expression_shape/.storybook', expression_tagcloud: 'src/plugins/chart_expressions/expression_tagcloud/.storybook', - fleet: 'x-pack/plugins/fleet/.storybook', + fleet: 'x-pack/platform/plugins/shared/fleet/.storybook', grouping: 'packages/kbn-grouping/.storybook', home: 'src/plugins/home/.storybook', infra: 'x-pack/solutions/observability/plugins/infra/.storybook', diff --git a/tsconfig.base.json b/tsconfig.base.json index 83174dd6190ed..6d2f86bb48360 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -964,8 +964,8 @@ "@kbn/files-plugin/*": ["src/plugins/files/*"], "@kbn/find-used-node-modules": ["packages/kbn-find-used-node-modules"], "@kbn/find-used-node-modules/*": ["packages/kbn-find-used-node-modules/*"], - "@kbn/fleet-plugin": ["x-pack/plugins/fleet"], - "@kbn/fleet-plugin/*": ["x-pack/plugins/fleet/*"], + "@kbn/fleet-plugin": ["x-pack/platform/plugins/shared/fleet"], + "@kbn/fleet-plugin/*": ["x-pack/platform/plugins/shared/fleet/*"], "@kbn/flot-charts": ["packages/kbn-flot-charts"], "@kbn/flot-charts/*": ["packages/kbn-flot-charts/*"], "@kbn/foo-plugin": ["x-pack/test/ui_capabilities/common/plugins/foo_plugin"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index d16d9f150d662..137350d3c59e4 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -63,7 +63,7 @@ "xpack.logsDataAccess": "platform/plugins/shared/logs_data_access", "xpack.logsExplorer": "solutions/observability/plugins/logs_explorer", "xpack.logsShared": "platform/plugins/shared/logs_shared", - "xpack.fleet": "plugins/fleet", + "xpack.fleet": "platform/plugins/shared/fleet", "xpack.ingestPipelines": "platform/plugins/shared/ingest_pipelines", "xpack.integrationAssistant": "platform/plugins/shared/integration_assistant", "xpack.inference": "platform/plugins/shared/inference", diff --git a/x-pack/plugins/fleet/.gitignore b/x-pack/platform/plugins/shared/fleet/.gitignore similarity index 100% rename from x-pack/plugins/fleet/.gitignore rename to x-pack/platform/plugins/shared/fleet/.gitignore diff --git a/x-pack/plugins/fleet/.storybook/context/application.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/application.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/application.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/application.ts diff --git a/x-pack/plugins/fleet/.storybook/context/chrome.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/chrome.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/chrome.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/chrome.ts diff --git a/x-pack/plugins/fleet/.storybook/context/cloud.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/cloud.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/cloud.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/cloud.ts diff --git a/x-pack/plugins/fleet/.storybook/context/custom_branding.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/custom_branding.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/custom_branding.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/custom_branding.ts diff --git a/x-pack/plugins/fleet/.storybook/context/doc_links.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/doc_links.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/doc_links.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/doc_links.ts diff --git a/x-pack/plugins/fleet/.storybook/context/execution_context.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/execution_context.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/execution_context.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/execution_context.ts diff --git a/x-pack/plugins/fleet/.storybook/context/fixtures/categories.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/categories.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/fixtures/categories.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/categories.ts diff --git a/x-pack/plugins/fleet/.storybook/context/fixtures/integration.nginx.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/integration.nginx.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/fixtures/integration.nginx.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/integration.nginx.ts diff --git a/x-pack/plugins/fleet/.storybook/context/fixtures/integration.okta.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/integration.okta.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/fixtures/integration.okta.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/integration.okta.ts diff --git a/x-pack/plugins/fleet/.storybook/context/fixtures/packages.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/packages.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/fixtures/packages.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/packages.ts diff --git a/x-pack/plugins/fleet/.storybook/context/fixtures/readme.nginx.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/readme.nginx.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/fixtures/readme.nginx.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/readme.nginx.ts diff --git a/x-pack/plugins/fleet/.storybook/context/fixtures/readme.okta.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/readme.okta.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/fixtures/readme.okta.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/readme.okta.ts diff --git a/x-pack/plugins/fleet/.storybook/context/fixtures/replacement_integrations.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/replacement_integrations.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/fixtures/replacement_integrations.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/fixtures/replacement_integrations.ts diff --git a/x-pack/plugins/fleet/.storybook/context/http.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/http.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/http.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/http.ts diff --git a/x-pack/plugins/fleet/.storybook/context/index.tsx b/x-pack/platform/plugins/shared/fleet/.storybook/context/index.tsx similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/index.tsx rename to x-pack/platform/plugins/shared/fleet/.storybook/context/index.tsx diff --git a/x-pack/plugins/fleet/.storybook/context/notifications.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/notifications.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/notifications.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/notifications.ts diff --git a/x-pack/plugins/fleet/.storybook/context/share.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/share.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/share.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/share.ts diff --git a/x-pack/plugins/fleet/.storybook/context/stubs.tsx b/x-pack/platform/plugins/shared/fleet/.storybook/context/stubs.tsx similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/stubs.tsx rename to x-pack/platform/plugins/shared/fleet/.storybook/context/stubs.tsx diff --git a/x-pack/plugins/fleet/.storybook/context/ui_settings.ts b/x-pack/platform/plugins/shared/fleet/.storybook/context/ui_settings.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/context/ui_settings.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/context/ui_settings.ts diff --git a/x-pack/plugins/fleet/.storybook/decorator.tsx b/x-pack/platform/plugins/shared/fleet/.storybook/decorator.tsx similarity index 100% rename from x-pack/plugins/fleet/.storybook/decorator.tsx rename to x-pack/platform/plugins/shared/fleet/.storybook/decorator.tsx diff --git a/x-pack/plugins/fleet/.storybook/main.ts b/x-pack/platform/plugins/shared/fleet/.storybook/main.ts similarity index 100% rename from x-pack/plugins/fleet/.storybook/main.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/main.ts diff --git a/x-pack/plugins/fleet/.storybook/manager.ts b/x-pack/platform/plugins/shared/fleet/.storybook/manager.ts similarity index 94% rename from x-pack/plugins/fleet/.storybook/manager.ts rename to x-pack/platform/plugins/shared/fleet/.storybook/manager.ts index 193364f06a62e..7e77a6dd29e2d 100644 --- a/x-pack/plugins/fleet/.storybook/manager.ts +++ b/x-pack/platform/plugins/shared/fleet/.storybook/manager.ts @@ -13,7 +13,7 @@ addons.setConfig({ theme: create({ base: 'light', brandTitle: 'Kibana Fleet Storybook', - brandUrl: 'https://github.com/elastic/kibana/tree/main/x-pack/plugins/fleet', + brandUrl: 'https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/fleet', }), showPanel: true.valueOf, selectedPanel: PANEL_ID, diff --git a/x-pack/plugins/fleet/.storybook/preview.tsx b/x-pack/platform/plugins/shared/fleet/.storybook/preview.tsx similarity index 100% rename from x-pack/plugins/fleet/.storybook/preview.tsx rename to x-pack/platform/plugins/shared/fleet/.storybook/preview.tsx diff --git a/x-pack/plugins/fleet/.storybook/smoke.test.tsx b/x-pack/platform/plugins/shared/fleet/.storybook/smoke.test.tsx similarity index 100% rename from x-pack/plugins/fleet/.storybook/smoke.test.tsx rename to x-pack/platform/plugins/shared/fleet/.storybook/smoke.test.tsx diff --git a/x-pack/plugins/fleet/CHANGELOG.md b/x-pack/platform/plugins/shared/fleet/CHANGELOG.md similarity index 100% rename from x-pack/plugins/fleet/CHANGELOG.md rename to x-pack/platform/plugins/shared/fleet/CHANGELOG.md diff --git a/x-pack/plugins/fleet/README.md b/x-pack/platform/plugins/shared/fleet/README.md similarity index 94% rename from x-pack/plugins/fleet/README.md rename to x-pack/platform/plugins/shared/fleet/README.md index d033e857b5ebd..f20d22625e776 100644 --- a/x-pack/plugins/fleet/README.md +++ b/x-pack/platform/plugins/shared/fleet/README.md @@ -8,7 +8,7 @@ Official documentation: https://www.elastic.co/guide/en/fleet/current/index.html The Fleet plugin is enabled by default. The Fleet API and UI can be disabled by setting the `xpack.fleet.agents.enabled` Kibana setting to `false`. -Available Fleet settings are listed in the [official documentation](https://www.elastic.co/guide/en/kibana/current/fleet-settings-kb.html). For an exhaustive list including internal settings, refer to the [FleetConfigType](https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/common/types/index.ts) type definition. +Available Fleet settings are listed in the [official documentation](https://www.elastic.co/guide/en/kibana/current/fleet-settings-kb.html). For an exhaustive list including internal settings, refer to the [FleetConfigType](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/common/types/index.ts) type definition. This plugin follows the `common`, `server`, `public` structure described in the [Kibana Developer Guide](https://docs.elastic.dev/kibana-dev-docs/key-concepts/platform-intro). Refer to [The anatomy of a plugin](https://docs.elastic.dev/kibana-dev-docs/key-concepts/anatomy-of-a-plugin) in the guide for further details. @@ -130,13 +130,13 @@ Note: if you need to do simultaneous Kibana and Fleet Server development, refer Kibana primarily uses Jest for unit testing. Each plugin or package defines a `jest.config.js` that extends a preset provided by the `@kbn/test` package. Unless you intend to run all unit tests within the project, you should provide the Jest configuration for Fleet. The following command runs all Fleet unit tests: ```sh -yarn jest --config x-pack/plugins/fleet/jest.config.js +yarn jest --config x-pack/platform/plugins/shared/fleet/jest.config.js ``` You can also run a specific test by passing the filepath as an argument, e.g.: ```sh -yarn jest --config x-pack/plugins/fleet/jest.config.js x-pack/plugins/fleet/common/services/validate_package_policy.test.ts +yarn jest --config x-pack/platform/plugins/shared/fleet/jest.config.js x-pack/platform/plugins/shared/fleet/common/services/validate_package_policy.test.ts ``` #### API integration tests (stateful) @@ -213,13 +213,13 @@ Note: Docker needs to be running to run these tests. Run the tests from the Kibana root folder with: ```sh -node scripts/jest_integration.js x-pack/plugins/fleet/server/integration_tests/ +node scripts/jest_integration.js x-pack/platform/plugins/shared/fleet/server/integration_tests/ ``` Running the tests with [Node Inspector](https://nodejs.org/en/learn/getting-started/debugging) allows inspecting Elasticsearch indices. To do this, add a `debugger;` statement in the test (cf. [Jest documentation](https://jestjs.io/docs/troubleshooting)) and run `node` with `--inspect` or `--inspect-brk`: ```sh -node --inspect scripts/jest_integration.js x-pack/plugins/fleet/server/integration_tests/ +node --inspect scripts/jest_integration.js x-pack/platform/plugins/shared/fleet/server/integration_tests/ ``` ### Storybook @@ -250,7 +250,7 @@ The projects below are dependent on Fleet, most using Fleet API as well. In case Fleet supports shipping integrations as `.zip` archives with Kibana's source code through a concept referred to as _bundled packages_. This allows integrations like APM, which is enabled by default in Cloud, to reliably provide upgrade paths without internet access, and generally improves stability around Fleet's installation/setup processes for several common integrations. -The set of bundled packages included with Kibana is dictated by a top-level `fleet_packages.json` file in the Kibana repo. This file includes a list of packages with a pinned version that Kibana will consider bundled. When the Kibana distributable is built, a [build task](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/bundle_fleet_packages.ts) will resolve these packages from the Elastic Package Registry, download the appropriate version as a `.zip` archive, and place it in a directory configurable by a `xpack.fleet.bundledPackageLocation` value in `kibana.yml`. By default, these archives are stored in `x-pack/plugins/fleet/.target/bundled_packages/`. In CI/CD, we [override](https://github.com/elastic/kibana/blob/main/x-pack/test/fleet_api_integration/config.ts#L20) this default with `/tmp/fleet_bundled_packages`. +The set of bundled packages included with Kibana is dictated by a top-level `fleet_packages.json` file in the Kibana repo. This file includes a list of packages with a pinned version that Kibana will consider bundled. When the Kibana distributable is built, a [build task](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/bundle_fleet_packages.ts) will resolve these packages from the Elastic Package Registry, download the appropriate version as a `.zip` archive, and place it in a directory configurable by a `xpack.fleet.bundledPackageLocation` value in `kibana.yml`. By default, these archives are stored in `x-pack/platform/plugins/shared/fleet/.target/bundled_packages/`. In CI/CD, we [override](https://github.com/elastic/kibana/blob/main/x-pack/test/fleet_api_integration/config.ts#L20) this default with `/tmp/fleet_bundled_packages`. Until further automation is added, this `fleet_packages.json` file should be updated as part of the release process to ensure the latest compatible version of each bundled package is included with that Kibana version. **This must be done before the final BC for a release is built.** Tracking issues should be opened and tracked by the Fleet UI team. See https://github.com/elastic/kibana/issues/129309 as an example. @@ -258,7 +258,7 @@ Tracking issues should be opened and tracked by the Fleet UI team. See https://g As part of the bundled package update process, we'll likely also need to update the pinned Docker image that runs in Kibana's test environment. We configure this pinned registry image in - `x-pack/test/fleet_api_integration/config.ts` -- `x-pack/plugins/fleet/server/integration_tests/helpers/docker_registry_helper.ts` +- `x-pack/platform/plugins/shared/fleet/server/integration_tests/helpers/docker_registry_helper.ts` - `x-pack/test/functional/config.base.js` To update this registry image, pull the digest SHA from the package storage Jenkins pipeline at https://beats-ci.elastic.co/blue/organizations/jenkins/Ingest-manager%2Fpackage-storage/activity and update the files above. The digest value should appear in the "publish Docker image" step as part of the `docker push` command in the logs. diff --git a/x-pack/plugins/fleet/common/authz.test.ts b/x-pack/platform/plugins/shared/fleet/common/authz.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/authz.test.ts rename to x-pack/platform/plugins/shared/fleet/common/authz.test.ts diff --git a/x-pack/plugins/fleet/common/authz.ts b/x-pack/platform/plugins/shared/fleet/common/authz.ts similarity index 100% rename from x-pack/plugins/fleet/common/authz.ts rename to x-pack/platform/plugins/shared/fleet/common/authz.ts diff --git a/x-pack/plugins/fleet/common/constants/agent.ts b/x-pack/platform/plugins/shared/fleet/common/constants/agent.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/agent.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/agent.ts diff --git a/x-pack/plugins/fleet/common/constants/agent_policy.ts b/x-pack/platform/plugins/shared/fleet/common/constants/agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/agent_policy.ts diff --git a/x-pack/plugins/fleet/common/constants/agentless.ts b/x-pack/platform/plugins/shared/fleet/common/constants/agentless.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/agentless.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/agentless.ts diff --git a/x-pack/plugins/fleet/common/constants/authz.ts b/x-pack/platform/plugins/shared/fleet/common/constants/authz.ts similarity index 97% rename from x-pack/plugins/fleet/common/constants/authz.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/authz.ts index 1c9ab5a402789..4cbc52cabf683 100644 --- a/x-pack/plugins/fleet/common/constants/authz.ts +++ b/x-pack/platform/plugins/shared/fleet/common/constants/authz.ts @@ -21,7 +21,7 @@ export interface PrivilegeMapObject { * defines endpoint package privileges * the key is the name of the packagePrivilege (ie. 'readSecuritySolution') * the value object is for mapping kibana privileges and capabilities - * see x-pack/plugins/fleet/server/services/security/security.ts for example of how object values are used + * see x-pack/platform/plugins/shared/fleet/server/services/security/security.ts for example of how object values are used */ export const ENDPOINT_PRIVILEGES: Record = deepFreeze({ readSecuritySolution: { diff --git a/x-pack/plugins/fleet/common/constants/download_source.ts b/x-pack/platform/plugins/shared/fleet/common/constants/download_source.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/download_source.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/download_source.ts diff --git a/x-pack/plugins/fleet/common/constants/enrollment_api_key.ts b/x-pack/platform/plugins/shared/fleet/common/constants/enrollment_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/enrollment_api_key.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/enrollment_api_key.ts diff --git a/x-pack/plugins/fleet/common/constants/epm.ts b/x-pack/platform/plugins/shared/fleet/common/constants/epm.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/epm.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/epm.ts diff --git a/x-pack/plugins/fleet/common/constants/file_storage.ts b/x-pack/platform/plugins/shared/fleet/common/constants/file_storage.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/file_storage.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/file_storage.ts diff --git a/x-pack/plugins/fleet/common/constants/fleet_server_policy_config.ts b/x-pack/platform/plugins/shared/fleet/common/constants/fleet_server_policy_config.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/fleet_server_policy_config.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/fleet_server_policy_config.ts diff --git a/x-pack/plugins/fleet/common/constants/index.ts b/x-pack/platform/plugins/shared/fleet/common/constants/index.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/index.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/index.ts diff --git a/x-pack/plugins/fleet/common/constants/locators.ts b/x-pack/platform/plugins/shared/fleet/common/constants/locators.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/locators.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/locators.ts diff --git a/x-pack/plugins/fleet/common/constants/mappings.ts b/x-pack/platform/plugins/shared/fleet/common/constants/mappings.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/mappings.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/mappings.ts diff --git a/x-pack/plugins/fleet/common/constants/message_signing_keys.ts b/x-pack/platform/plugins/shared/fleet/common/constants/message_signing_keys.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/message_signing_keys.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/message_signing_keys.ts diff --git a/x-pack/plugins/fleet/common/constants/output.ts b/x-pack/platform/plugins/shared/fleet/common/constants/output.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/output.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/output.ts diff --git a/x-pack/plugins/fleet/common/constants/package_policy.ts b/x-pack/platform/plugins/shared/fleet/common/constants/package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/package_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/package_policy.ts diff --git a/x-pack/plugins/fleet/common/constants/plugin.ts b/x-pack/platform/plugins/shared/fleet/common/constants/plugin.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/plugin.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/plugin.ts diff --git a/x-pack/plugins/fleet/common/constants/preconfiguration.ts b/x-pack/platform/plugins/shared/fleet/common/constants/preconfiguration.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/preconfiguration.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/preconfiguration.ts diff --git a/x-pack/plugins/fleet/common/constants/routes.ts b/x-pack/platform/plugins/shared/fleet/common/constants/routes.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/routes.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/routes.ts diff --git a/x-pack/plugins/fleet/common/constants/saved_objects.ts b/x-pack/platform/plugins/shared/fleet/common/constants/saved_objects.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/saved_objects.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/saved_objects.ts diff --git a/x-pack/plugins/fleet/common/constants/secrets.ts b/x-pack/platform/plugins/shared/fleet/common/constants/secrets.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/secrets.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/secrets.ts diff --git a/x-pack/plugins/fleet/common/constants/settings.ts b/x-pack/platform/plugins/shared/fleet/common/constants/settings.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/settings.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/settings.ts diff --git a/x-pack/plugins/fleet/common/constants/space_awareness.ts b/x-pack/platform/plugins/shared/fleet/common/constants/space_awareness.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/space_awareness.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/space_awareness.ts diff --git a/x-pack/plugins/fleet/common/constants/uninstall_token.ts b/x-pack/platform/plugins/shared/fleet/common/constants/uninstall_token.ts similarity index 100% rename from x-pack/plugins/fleet/common/constants/uninstall_token.ts rename to x-pack/platform/plugins/shared/fleet/common/constants/uninstall_token.ts diff --git a/x-pack/plugins/fleet/common/errors.ts b/x-pack/platform/plugins/shared/fleet/common/errors.ts similarity index 100% rename from x-pack/plugins/fleet/common/errors.ts rename to x-pack/platform/plugins/shared/fleet/common/errors.ts diff --git a/x-pack/plugins/fleet/common/experimental_features.ts b/x-pack/platform/plugins/shared/fleet/common/experimental_features.ts similarity index 100% rename from x-pack/plugins/fleet/common/experimental_features.ts rename to x-pack/platform/plugins/shared/fleet/common/experimental_features.ts diff --git a/x-pack/plugins/fleet/common/http_authorization_header.ts b/x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts similarity index 100% rename from x-pack/plugins/fleet/common/http_authorization_header.ts rename to x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts diff --git a/x-pack/plugins/fleet/common/index.ts b/x-pack/platform/plugins/shared/fleet/common/index.ts similarity index 100% rename from x-pack/plugins/fleet/common/index.ts rename to x-pack/platform/plugins/shared/fleet/common/index.ts diff --git a/x-pack/plugins/fleet/common/mocks.ts b/x-pack/platform/plugins/shared/fleet/common/mocks.ts similarity index 100% rename from x-pack/plugins/fleet/common/mocks.ts rename to x-pack/platform/plugins/shared/fleet/common/mocks.ts diff --git a/x-pack/plugins/fleet/common/openapi/README.md b/x-pack/platform/plugins/shared/fleet/common/openapi/README.md similarity index 90% rename from x-pack/plugins/fleet/common/openapi/README.md rename to x-pack/platform/plugins/shared/fleet/common/openapi/README.md index 92977d6602761..c3d02d42c77fc 100644 --- a/x-pack/plugins/fleet/common/openapi/README.md +++ b/x-pack/platform/plugins/shared/fleet/common/openapi/README.md @@ -3,7 +3,7 @@ There is a new way to generate openapi docs from the route definition in code. When adding a new route/modifying request/response parameters, make sure to add/update schema definitions when registering the route. -[Example](https://github.com/elastic/kibana/blob/5ea1ab0b8a21764aa54a5ef9650a0d8046f3f0a8/x-pack/plugins/fleet/server/routes/agent/index.ts#L96-L123) +[Example](https://github.com/elastic/kibana/blob/5ea1ab0b8a21764aa54a5ef9650a0d8046f3f0a8/x-pack/platform/plugins/shared/fleet/server/routes/agent/index.ts#L96-L123) Read more: https://docs.elastic.dev/kibana-dev-docs/genereating-oas-for-http-apis diff --git a/x-pack/plugins/fleet/common/services/__snapshots__/package_to_package_policy.test.ts.snap b/x-pack/platform/plugins/shared/fleet/common/services/__snapshots__/package_to_package_policy.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/common/services/__snapshots__/package_to_package_policy.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/common/services/__snapshots__/package_to_package_policy.test.ts.snap diff --git a/x-pack/plugins/fleet/common/services/__snapshots__/simplified_package_policy_helper.test.ts.snap b/x-pack/platform/plugins/shared/fleet/common/services/__snapshots__/simplified_package_policy_helper.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/common/services/__snapshots__/simplified_package_policy_helper.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/common/services/__snapshots__/simplified_package_policy_helper.test.ts.snap diff --git a/x-pack/plugins/fleet/common/services/__snapshots__/validate_package_policy.test.ts.snap b/x-pack/platform/plugins/shared/fleet/common/services/__snapshots__/validate_package_policy.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/common/services/__snapshots__/validate_package_policy.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/common/services/__snapshots__/validate_package_policy.test.ts.snap diff --git a/x-pack/plugins/fleet/common/services/agent_cm_to_yaml.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_cm_to_yaml.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_cm_to_yaml.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_cm_to_yaml.ts diff --git a/x-pack/plugins/fleet/common/services/agent_policies_helper.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_policies_helper.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_policies_helper.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_policies_helper.test.ts diff --git a/x-pack/plugins/fleet/common/services/agent_policies_helpers.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_policies_helpers.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_policies_helpers.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_policies_helpers.ts diff --git a/x-pack/plugins/fleet/common/services/agent_policy_config.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_policy_config.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_policy_config.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_policy_config.test.ts diff --git a/x-pack/plugins/fleet/common/services/agent_policy_config.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_policy_config.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_policy_config.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_policy_config.ts diff --git a/x-pack/plugins/fleet/common/services/agent_status.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_status.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_status.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_status.test.ts diff --git a/x-pack/plugins/fleet/common/services/agent_status.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_status.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_status.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_status.ts diff --git a/x-pack/plugins/fleet/common/services/agent_statuses_to_summary.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_statuses_to_summary.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_statuses_to_summary.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_statuses_to_summary.test.ts diff --git a/x-pack/plugins/fleet/common/services/agent_statuses_to_summary.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_statuses_to_summary.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_statuses_to_summary.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_statuses_to_summary.ts diff --git a/x-pack/plugins/fleet/common/services/agent_utils.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_utils.test.ts diff --git a/x-pack/plugins/fleet/common/services/agent_utils.ts b/x-pack/platform/plugins/shared/fleet/common/services/agent_utils.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agent_utils.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agent_utils.ts diff --git a/x-pack/plugins/fleet/common/services/agentless_policy_helper.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/agentless_policy_helper.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agentless_policy_helper.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agentless_policy_helper.test.ts diff --git a/x-pack/plugins/fleet/common/services/agentless_policy_helper.ts b/x-pack/platform/plugins/shared/fleet/common/services/agentless_policy_helper.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/agentless_policy_helper.ts rename to x-pack/platform/plugins/shared/fleet/common/services/agentless_policy_helper.ts diff --git a/x-pack/plugins/fleet/common/services/check_fleet_server_versions.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/check_fleet_server_versions.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/check_fleet_server_versions.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/check_fleet_server_versions.test.ts diff --git a/x-pack/plugins/fleet/common/services/check_fleet_server_versions.ts b/x-pack/platform/plugins/shared/fleet/common/services/check_fleet_server_versions.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/check_fleet_server_versions.ts rename to x-pack/platform/plugins/shared/fleet/common/services/check_fleet_server_versions.ts diff --git a/x-pack/plugins/fleet/common/services/datastream_es_name.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/datastream_es_name.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/datastream_es_name.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/datastream_es_name.test.ts diff --git a/x-pack/plugins/fleet/common/services/datastream_es_name.ts b/x-pack/platform/plugins/shared/fleet/common/services/datastream_es_name.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/datastream_es_name.ts rename to x-pack/platform/plugins/shared/fleet/common/services/datastream_es_name.ts diff --git a/x-pack/plugins/fleet/common/services/file_storage.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/file_storage.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/file_storage.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/file_storage.test.ts diff --git a/x-pack/plugins/fleet/common/services/file_storage.ts b/x-pack/platform/plugins/shared/fleet/common/services/file_storage.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/file_storage.ts rename to x-pack/platform/plugins/shared/fleet/common/services/file_storage.ts diff --git a/x-pack/plugins/fleet/common/services/fixtures/aws_package.ts b/x-pack/platform/plugins/shared/fleet/common/services/fixtures/aws_package.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/fixtures/aws_package.ts rename to x-pack/platform/plugins/shared/fleet/common/services/fixtures/aws_package.ts diff --git a/x-pack/plugins/fleet/common/services/full_agent_policy_to_yaml.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/full_agent_policy_to_yaml.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/full_agent_policy_to_yaml.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/full_agent_policy_to_yaml.test.ts diff --git a/x-pack/plugins/fleet/common/services/full_agent_policy_to_yaml.ts b/x-pack/platform/plugins/shared/fleet/common/services/full_agent_policy_to_yaml.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/full_agent_policy_to_yaml.ts rename to x-pack/platform/plugins/shared/fleet/common/services/full_agent_policy_to_yaml.ts diff --git a/x-pack/plugins/fleet/common/services/generate_new_agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/generate_new_agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/generate_new_agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/generate_new_agent_policy.test.ts diff --git a/x-pack/plugins/fleet/common/services/generate_new_agent_policy.ts b/x-pack/platform/plugins/shared/fleet/common/services/generate_new_agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/generate_new_agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/services/generate_new_agent_policy.ts diff --git a/x-pack/plugins/fleet/common/services/get_min_max_version.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/get_min_max_version.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/get_min_max_version.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/get_min_max_version.test.ts diff --git a/x-pack/plugins/fleet/common/services/get_min_max_version.ts b/x-pack/platform/plugins/shared/fleet/common/services/get_min_max_version.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/get_min_max_version.ts rename to x-pack/platform/plugins/shared/fleet/common/services/get_min_max_version.ts diff --git a/x-pack/plugins/fleet/common/services/hosts_utils.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/hosts_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/hosts_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/hosts_utils.test.ts diff --git a/x-pack/plugins/fleet/common/services/hosts_utils.ts b/x-pack/platform/plugins/shared/fleet/common/services/hosts_utils.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/hosts_utils.ts rename to x-pack/platform/plugins/shared/fleet/common/services/hosts_utils.ts diff --git a/x-pack/plugins/fleet/common/services/index.ts b/x-pack/platform/plugins/shared/fleet/common/services/index.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/index.ts rename to x-pack/platform/plugins/shared/fleet/common/services/index.ts diff --git a/x-pack/plugins/fleet/common/services/is_agent_request_diagnostics_supported.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/is_agent_request_diagnostics_supported.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/is_agent_request_diagnostics_supported.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/is_agent_request_diagnostics_supported.test.ts diff --git a/x-pack/plugins/fleet/common/services/is_agent_request_diagnostics_supported.ts b/x-pack/platform/plugins/shared/fleet/common/services/is_agent_request_diagnostics_supported.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/is_agent_request_diagnostics_supported.ts rename to x-pack/platform/plugins/shared/fleet/common/services/is_agent_request_diagnostics_supported.ts diff --git a/x-pack/plugins/fleet/common/services/is_agent_upgradeable.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/is_agent_upgradeable.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/is_agent_upgradeable.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/is_agent_upgradeable.test.ts diff --git a/x-pack/plugins/fleet/common/services/is_agent_upgradeable.ts b/x-pack/platform/plugins/shared/fleet/common/services/is_agent_upgradeable.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/is_agent_upgradeable.ts rename to x-pack/platform/plugins/shared/fleet/common/services/is_agent_upgradeable.ts diff --git a/x-pack/plugins/fleet/common/services/is_diff_path_protocol.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/is_diff_path_protocol.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/is_diff_path_protocol.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/is_diff_path_protocol.test.ts diff --git a/x-pack/plugins/fleet/common/services/is_diff_path_protocol.ts b/x-pack/platform/plugins/shared/fleet/common/services/is_diff_path_protocol.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/is_diff_path_protocol.ts rename to x-pack/platform/plugins/shared/fleet/common/services/is_diff_path_protocol.ts diff --git a/x-pack/plugins/fleet/common/services/is_valid_namespace.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/is_valid_namespace.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/is_valid_namespace.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/is_valid_namespace.test.ts diff --git a/x-pack/plugins/fleet/common/services/is_valid_namespace.ts b/x-pack/platform/plugins/shared/fleet/common/services/is_valid_namespace.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/is_valid_namespace.ts rename to x-pack/platform/plugins/shared/fleet/common/services/is_valid_namespace.ts diff --git a/x-pack/plugins/fleet/common/services/license.ts b/x-pack/platform/plugins/shared/fleet/common/services/license.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/license.ts rename to x-pack/platform/plugins/shared/fleet/common/services/license.ts diff --git a/x-pack/plugins/fleet/common/services/limited_package.ts b/x-pack/platform/plugins/shared/fleet/common/services/limited_package.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/limited_package.ts rename to x-pack/platform/plugins/shared/fleet/common/services/limited_package.ts diff --git a/x-pack/plugins/fleet/common/services/max_package_name.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/max_package_name.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/max_package_name.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/max_package_name.test.ts diff --git a/x-pack/plugins/fleet/common/services/max_package_name.ts b/x-pack/platform/plugins/shared/fleet/common/services/max_package_name.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/max_package_name.ts rename to x-pack/platform/plugins/shared/fleet/common/services/max_package_name.ts diff --git a/x-pack/plugins/fleet/common/services/output_helpers.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/output_helpers.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/output_helpers.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/output_helpers.test.ts diff --git a/x-pack/plugins/fleet/common/services/output_helpers.ts b/x-pack/platform/plugins/shared/fleet/common/services/output_helpers.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/output_helpers.ts rename to x-pack/platform/plugins/shared/fleet/common/services/output_helpers.ts diff --git a/x-pack/plugins/fleet/common/services/package_helpers.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/package_helpers.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/package_helpers.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/package_helpers.test.ts diff --git a/x-pack/plugins/fleet/common/services/package_helpers.ts b/x-pack/platform/plugins/shared/fleet/common/services/package_helpers.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/package_helpers.ts rename to x-pack/platform/plugins/shared/fleet/common/services/package_helpers.ts diff --git a/x-pack/plugins/fleet/common/services/package_prerelease.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/package_prerelease.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/package_prerelease.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/package_prerelease.test.ts diff --git a/x-pack/plugins/fleet/common/services/package_prerelease.ts b/x-pack/platform/plugins/shared/fleet/common/services/package_prerelease.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/package_prerelease.ts rename to x-pack/platform/plugins/shared/fleet/common/services/package_prerelease.ts diff --git a/x-pack/plugins/fleet/common/services/package_to_package_policy.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/package_to_package_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/package_to_package_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/package_to_package_policy.test.ts diff --git a/x-pack/plugins/fleet/common/services/package_to_package_policy.ts b/x-pack/platform/plugins/shared/fleet/common/services/package_to_package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/package_to_package_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/services/package_to_package_policy.ts diff --git a/x-pack/plugins/fleet/common/services/packages_with_integrations.ts b/x-pack/platform/plugins/shared/fleet/common/services/packages_with_integrations.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/packages_with_integrations.ts rename to x-pack/platform/plugins/shared/fleet/common/services/packages_with_integrations.ts diff --git a/x-pack/plugins/fleet/common/services/policy_template.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/policy_template.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/policy_template.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/policy_template.test.ts diff --git a/x-pack/plugins/fleet/common/services/policy_template.ts b/x-pack/platform/plugins/shared/fleet/common/services/policy_template.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/policy_template.ts rename to x-pack/platform/plugins/shared/fleet/common/services/policy_template.ts diff --git a/x-pack/plugins/fleet/common/services/route.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/route.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/route.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/route.test.ts diff --git a/x-pack/plugins/fleet/common/services/routes.ts b/x-pack/platform/plugins/shared/fleet/common/services/routes.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/routes.ts rename to x-pack/platform/plugins/shared/fleet/common/services/routes.ts diff --git a/x-pack/plugins/fleet/common/services/simplified_package_policy_helper.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/simplified_package_policy_helper.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/simplified_package_policy_helper.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/simplified_package_policy_helper.test.ts diff --git a/x-pack/plugins/fleet/common/services/simplified_package_policy_helper.ts b/x-pack/platform/plugins/shared/fleet/common/services/simplified_package_policy_helper.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/simplified_package_policy_helper.ts rename to x-pack/platform/plugins/shared/fleet/common/services/simplified_package_policy_helper.ts diff --git a/x-pack/plugins/fleet/common/services/split_pkg_key.ts b/x-pack/platform/plugins/shared/fleet/common/services/split_pkg_key.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/split_pkg_key.ts rename to x-pack/platform/plugins/shared/fleet/common/services/split_pkg_key.ts diff --git a/x-pack/plugins/fleet/common/services/validate_package_policy.test.ts b/x-pack/platform/plugins/shared/fleet/common/services/validate_package_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/validate_package_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/common/services/validate_package_policy.test.ts diff --git a/x-pack/plugins/fleet/common/services/validate_package_policy.ts b/x-pack/platform/plugins/shared/fleet/common/services/validate_package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/common/services/validate_package_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/services/validate_package_policy.ts diff --git a/x-pack/plugins/fleet/common/settings/agent_policy_settings.tsx b/x-pack/platform/plugins/shared/fleet/common/settings/agent_policy_settings.tsx similarity index 100% rename from x-pack/plugins/fleet/common/settings/agent_policy_settings.tsx rename to x-pack/platform/plugins/shared/fleet/common/settings/agent_policy_settings.tsx diff --git a/x-pack/plugins/fleet/common/settings/index.ts b/x-pack/platform/plugins/shared/fleet/common/settings/index.ts similarity index 100% rename from x-pack/plugins/fleet/common/settings/index.ts rename to x-pack/platform/plugins/shared/fleet/common/settings/index.ts diff --git a/x-pack/plugins/fleet/common/settings/types.ts b/x-pack/platform/plugins/shared/fleet/common/settings/types.ts similarity index 100% rename from x-pack/plugins/fleet/common/settings/types.ts rename to x-pack/platform/plugins/shared/fleet/common/settings/types.ts diff --git a/x-pack/plugins/fleet/common/types/index.ts b/x-pack/platform/plugins/shared/fleet/common/types/index.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/index.ts rename to x-pack/platform/plugins/shared/fleet/common/types/index.ts diff --git a/x-pack/plugins/fleet/common/types/models/agent.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/agent.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/agent.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/agent.ts diff --git a/x-pack/plugins/fleet/common/types/models/agent_cm.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/agent_cm.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/agent_cm.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/agent_cm.ts diff --git a/x-pack/plugins/fleet/common/types/models/agent_policy.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/agent_policy.ts similarity index 98% rename from x-pack/plugins/fleet/common/types/models/agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/agent_policy.ts index b3b5611116837..27406b406d38b 100644 --- a/x-pack/plugins/fleet/common/types/models/agent_policy.ts +++ b/x-pack/platform/plugins/shared/fleet/common/types/models/agent_policy.ts @@ -16,7 +16,7 @@ import type { Output } from './output'; export type AgentPolicyStatus = typeof agentPolicyStatuses; // adding a property here? If it should be cloned when duplicating a policy, add it to `agentPolicyService.copy` -// x-pack/plugins/fleet/server/services/agent_policy.ts#L571 +// x-pack/platform/plugins/shared/fleet/server/services/agent_policy.ts#L571 export interface NewAgentPolicy { id?: string; name: string; diff --git a/x-pack/plugins/fleet/common/types/models/data_stream.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/data_stream.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/data_stream.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/data_stream.ts diff --git a/x-pack/plugins/fleet/common/types/models/download_sources.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/download_sources.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/download_sources.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/download_sources.ts diff --git a/x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/enrollment_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/enrollment_api_key.ts diff --git a/x-pack/plugins/fleet/common/types/models/epm.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/epm.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/epm.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/epm.ts diff --git a/x-pack/plugins/fleet/common/types/models/fleet_proxy.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/fleet_proxy.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/fleet_proxy.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/fleet_proxy.ts diff --git a/x-pack/plugins/fleet/common/types/models/fleet_server_policy_config.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/fleet_server_policy_config.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/fleet_server_policy_config.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/fleet_server_policy_config.ts diff --git a/x-pack/plugins/fleet/common/types/models/fleet_setup_lock.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/fleet_setup_lock.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/fleet_setup_lock.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/fleet_setup_lock.ts diff --git a/x-pack/plugins/fleet/common/types/models/index.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/index.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/index.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/index.ts diff --git a/x-pack/plugins/fleet/common/types/models/output.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/output.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/output.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/output.ts diff --git a/x-pack/plugins/fleet/common/types/models/package_policy.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/package_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/package_policy.ts diff --git a/x-pack/plugins/fleet/common/types/models/package_spec.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/package_spec.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/package_spec.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/package_spec.ts diff --git a/x-pack/plugins/fleet/common/types/models/preconfiguration.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/preconfiguration.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/preconfiguration.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/preconfiguration.ts diff --git a/x-pack/plugins/fleet/common/types/models/secret.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/secret.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/secret.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/secret.ts diff --git a/x-pack/plugins/fleet/common/types/models/settings.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/settings.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/settings.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/settings.ts diff --git a/x-pack/plugins/fleet/common/types/models/setup_technology.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/setup_technology.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/setup_technology.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/setup_technology.ts diff --git a/x-pack/plugins/fleet/common/types/models/transform_api_key.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/transform_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/transform_api_key.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/transform_api_key.ts diff --git a/x-pack/plugins/fleet/common/types/models/uninstall_token.ts b/x-pack/platform/plugins/shared/fleet/common/types/models/uninstall_token.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/models/uninstall_token.ts rename to x-pack/platform/plugins/shared/fleet/common/types/models/uninstall_token.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/agent.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/agent.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/agent.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/agent.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/agent_policy.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/app.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/app.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/app.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/app.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/common.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/common.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/common.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/common.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/data_stream.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/data_stream.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/data_stream.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/data_stream.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/download_sources.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/download_sources.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/download_sources.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/download_sources.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/enrollment_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/enrollment_api_key.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/epm.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/epm.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/epm.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/epm.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/error.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/error.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/error.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/error.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/fleet_proxies.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/fleet_proxies.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/fleet_proxies.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/fleet_proxies.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/fleet_server_hosts.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/fleet_server_hosts.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/fleet_server_hosts.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/fleet_server_hosts.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/fleet_setup.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/fleet_setup.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/health_check.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/health_check.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/health_check.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/health_check.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/index.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/index.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/index.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/index.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/output.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/output.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/output.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/output.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/package_policy.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/settings.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/settings.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/settings.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/settings.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/standalone_agent_api_key.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/standalone_agent_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/standalone_agent_api_key.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/standalone_agent_api_key.ts diff --git a/x-pack/plugins/fleet/common/types/rest_spec/uninstall_token.ts b/x-pack/platform/plugins/shared/fleet/common/types/rest_spec/uninstall_token.ts similarity index 100% rename from x-pack/plugins/fleet/common/types/rest_spec/uninstall_token.ts rename to x-pack/platform/plugins/shared/fleet/common/types/rest_spec/uninstall_token.ts diff --git a/x-pack/plugins/fleet/cypress.config.space_awareness.ts b/x-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts similarity index 89% rename from x-pack/plugins/fleet/cypress.config.space_awareness.ts rename to x-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts index 6efda828e6fbc..236f17c3b5cc7 100644 --- a/x-pack/plugins/fleet/cypress.config.space_awareness.ts +++ b/x-pack/platform/plugins/shared/fleet/cypress.config.space_awareness.ts @@ -23,10 +23,10 @@ export default defineCypressConfig({ grepFilterSpecs: false, }, - screenshotsFolder: '../../../target/kibana-fleet/cypress/screenshots', + screenshotsFolder: '../../../../../target/kibana-fleet/cypress/screenshots', trashAssetsBeforeRuns: false, video: false, - videosFolder: '../../../target/kibana-fleet/cypress/videos', + videosFolder: '../../../../../target/kibana-fleet/cypress/videos', viewportHeight: 900, viewportWidth: 1440, screenshotOnRunFailure: true, diff --git a/x-pack/plugins/fleet/cypress.config.ts b/x-pack/platform/plugins/shared/fleet/cypress.config.ts similarity index 89% rename from x-pack/plugins/fleet/cypress.config.ts rename to x-pack/platform/plugins/shared/fleet/cypress.config.ts index 2082142e23d7f..328fdcc66d274 100644 --- a/x-pack/plugins/fleet/cypress.config.ts +++ b/x-pack/platform/plugins/shared/fleet/cypress.config.ts @@ -22,10 +22,10 @@ export default defineCypressConfig({ grepFilterSpecs: false, }, - screenshotsFolder: '../../../target/kibana-fleet/cypress/screenshots', + screenshotsFolder: '../../../../../target/kibana-fleet/cypress/screenshots', trashAssetsBeforeRuns: false, video: false, - videosFolder: '../../../target/kibana-fleet/cypress/videos', + videosFolder: '../../../../../target/kibana-fleet/cypress/videos', viewportHeight: 900, viewportWidth: 1440, screenshotOnRunFailure: true, diff --git a/x-pack/plugins/fleet/cypress/README.md b/x-pack/platform/plugins/shared/fleet/cypress/README.md similarity index 90% rename from x-pack/plugins/fleet/cypress/README.md rename to x-pack/platform/plugins/shared/fleet/cypress/README.md index 8300ec26ede37..aced5dc6a1b9a 100644 --- a/x-pack/plugins/fleet/cypress/README.md +++ b/x-pack/platform/plugins/shared/fleet/cypress/README.md @@ -51,7 +51,7 @@ yarn kbn bootstrap node scripts/build_kibana_platform_plugins # launch the cypress test runner -cd x-pack/plugins/fleet +cd x-pack/platform/plugins/shared/fleet yarn cypress:run ``` @@ -67,7 +67,7 @@ yarn kbn bootstrap node scripts/build_kibana_platform_plugins # launch the cypress test runner -cd x-pack/plugins/fleet +cd x-pack/platform/plugins/shared/fleet yarn cypress:open ``` @@ -116,16 +116,16 @@ We use es_archiver to manage the data that our Cypress tests need. 1. Set up a clean instance of kibana and elasticsearch (if this is not possible, try to clean/minimize the data that you are going to archive). 2. With the kibana and elasticsearch instance up and running, create the data that you need for your test. -3. When you are sure that you have all the data you need run the following command from: `x-pack/plugins/fleet` +3. When you are sure that you have all the data you need run the following command from: `x-pack/platform/plugins/shared/fleet` ```sh -node ../../../scripts/es_archiver save --dir ../../test/fleet_cypress/es_archives --config ../../../test/functional/config.base.js --es-url http://:@: +node ../../../../../scripts/es_archiver save --dir ../../test/fleet_cypress/es_archives --config ../../../test/functional/config.base.js --es-url http://:@: ``` Example: ```sh -node ../../../scripts/es_archiver save custom_rules ".kibana",".siem-signal*" --dir ../../test/fleet_cypress/es_archives --config ../../../test/functional/config.base.js --es-url http://elastic:changeme@localhost:9220 +node ../../../../../scripts/es_archiver save custom_rules ".kibana",".siem-signal*" --dir ../../test/fleet_cypress/es_archives --config ../../../test/functional/config.base.js --es-url http://elastic:changeme@localhost:9220 ``` Note that the command will create the folder if it does not exist. diff --git a/x-pack/plugins/fleet/cypress/e2e/a11y/home_page.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/a11y/home_page.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/a11y/home_page.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/a11y/home_page.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/agent_binary_download_source.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/agent_binary_download_source.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/agent_binary_download_source.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/agent_binary_download_source.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/agent_policy.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/agent_policy.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/agent_policy.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/agent_policy.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/agents/agent_list.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/agents/agent_list.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/agents/agent_list.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/agents/agent_list.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/agents/agentless.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/agents/agentless.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/agents/agentless.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/agents/agentless.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/assets_integration_with_ml_and_transforms.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/assets_integration_with_ml_and_transforms.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/assets_integration_with_ml_and_transforms.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/assets_integration_with_ml_and_transforms.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/enrollment_token.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/enrollment_token.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/enrollment_token.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/enrollment_token.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/fleet_agent_flyout.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/fleet_agent_flyout.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/fleet_agent_flyout.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/fleet_agent_flyout.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/fleet_settings.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/fleet_settings.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/fleet_settings.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/fleet_settings.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/fleet_settings_outputs.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/fleet_settings_outputs.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/fleet_settings_outputs.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/fleet_settings_outputs.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/fleet_startup.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/fleet_startup.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/fleet_startup.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/fleet_startup.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/install_assets.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/install_assets.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/install_assets.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/install_assets.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/integrations_automatic_import.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/integrations_automatic_import.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/integrations_automatic_import.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/integrations_automatic_import.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/integrations_mock.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/integrations_mock.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/integrations_mock.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/integrations_mock.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/integrations_real.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/integrations_real.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/integrations_real.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/integrations_real.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/package_policy.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/package_policy.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/package_policy.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/package_policy.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/package_policy_pipelines_and_mappings_real.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/package_policy_pipelines_and_mappings_real.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/package_policy_pipelines_and_mappings_real.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/package_policy_pipelines_and_mappings_real.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/privilages_fleet_agents_read_integrations_none.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/privilages_fleet_agents_read_integrations_none.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/privilages_fleet_agents_read_integrations_none.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/privilages_fleet_agents_read_integrations_none.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/privileges_editor_role.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_editor_role.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/privileges_editor_role.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_editor_role.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/privileges_fleet_all_integrations_none.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_fleet_all_integrations_none.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/privileges_fleet_all_integrations_none.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_fleet_all_integrations_none.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/privileges_fleet_all_integrations_read.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_fleet_all_integrations_read.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/privileges_fleet_all_integrations_read.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_fleet_all_integrations_read.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/privileges_fleet_none_integrations_all.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_fleet_none_integrations_all.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/privileges_fleet_none_integrations_all.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_fleet_none_integrations_all.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/privileges_integrations_automatic_import.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_integrations_automatic_import.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/privileges_integrations_automatic_import.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_integrations_automatic_import.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/privileges_integrations_automatic_import_license.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_integrations_automatic_import_license.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/privileges_integrations_automatic_import_license.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_integrations_automatic_import_license.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/privileges_viewer_role.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_viewer_role.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/privileges_viewer_role.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/privileges_viewer_role.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/space_awareness/policies.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/space_awareness/policies.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/space_awareness/policies.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/space_awareness/policies.cy.ts diff --git a/x-pack/plugins/fleet/cypress/e2e/uninstall_token.cy.ts b/x-pack/platform/plugins/shared/fleet/cypress/e2e/uninstall_token.cy.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/e2e/uninstall_token.cy.ts rename to x-pack/platform/plugins/shared/fleet/cypress/e2e/uninstall_token.cy.ts diff --git a/x-pack/plugins/fleet/cypress/fixtures/example.json b/x-pack/platform/plugins/shared/fleet/cypress/fixtures/example.json similarity index 100% rename from x-pack/plugins/fleet/cypress/fixtures/example.json rename to x-pack/platform/plugins/shared/fleet/cypress/fixtures/example.json diff --git a/x-pack/plugins/fleet/cypress/fixtures/teleport.ndjson b/x-pack/platform/plugins/shared/fleet/cypress/fixtures/teleport.ndjson similarity index 100% rename from x-pack/plugins/fleet/cypress/fixtures/teleport.ndjson rename to x-pack/platform/plugins/shared/fleet/cypress/fixtures/teleport.ndjson diff --git a/x-pack/plugins/fleet/cypress/packages/input_package-1.0.0.zip b/x-pack/platform/plugins/shared/fleet/cypress/packages/input_package-1.0.0.zip similarity index 100% rename from x-pack/plugins/fleet/cypress/packages/input_package-1.0.0.zip rename to x-pack/platform/plugins/shared/fleet/cypress/packages/input_package-1.0.0.zip diff --git a/x-pack/plugins/fleet/cypress/packages/logs_int_no_dataset-1.0.0.zip b/x-pack/platform/plugins/shared/fleet/cypress/packages/logs_int_no_dataset-1.0.0.zip similarity index 100% rename from x-pack/plugins/fleet/cypress/packages/logs_int_no_dataset-1.0.0.zip rename to x-pack/platform/plugins/shared/fleet/cypress/packages/logs_int_no_dataset-1.0.0.zip diff --git a/x-pack/plugins/fleet/cypress/packages/logs_integration-1.0.0.zip b/x-pack/platform/plugins/shared/fleet/cypress/packages/logs_integration-1.0.0.zip similarity index 100% rename from x-pack/plugins/fleet/cypress/packages/logs_integration-1.0.0.zip rename to x-pack/platform/plugins/shared/fleet/cypress/packages/logs_integration-1.0.0.zip diff --git a/x-pack/plugins/fleet/cypress/plugins/index.ts b/x-pack/platform/plugins/shared/fleet/cypress/plugins/index.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/plugins/index.ts rename to x-pack/platform/plugins/shared/fleet/cypress/plugins/index.ts diff --git a/x-pack/platform/plugins/shared/fleet/cypress/reporter_config.json b/x-pack/platform/plugins/shared/fleet/cypress/reporter_config.json new file mode 100644 index 0000000000000..b6f55d0ecfe95 --- /dev/null +++ b/x-pack/platform/plugins/shared/fleet/cypress/reporter_config.json @@ -0,0 +1,10 @@ +{ + "reporterEnabled": "mochawesome, mocha-junit-reporter", + "reporterOptions": { + "html": false, + "json": true, + "mochaFile": "../../../../../target/kibana-fleet/cypress/results/TEST-fleet-cypress-[hash].xml", + "overwrite": false, + "reportDir": "../../../../../target/kibana-fleet/cypress/results" + } +} diff --git a/x-pack/plugins/fleet/cypress/screens/fleet.ts b/x-pack/platform/plugins/shared/fleet/cypress/screens/fleet.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/screens/fleet.ts rename to x-pack/platform/plugins/shared/fleet/cypress/screens/fleet.ts diff --git a/x-pack/plugins/fleet/cypress/screens/fleet_outputs.ts b/x-pack/platform/plugins/shared/fleet/cypress/screens/fleet_outputs.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/screens/fleet_outputs.ts rename to x-pack/platform/plugins/shared/fleet/cypress/screens/fleet_outputs.ts diff --git a/x-pack/plugins/fleet/cypress/screens/integrations.ts b/x-pack/platform/plugins/shared/fleet/cypress/screens/integrations.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/screens/integrations.ts rename to x-pack/platform/plugins/shared/fleet/cypress/screens/integrations.ts diff --git a/x-pack/plugins/fleet/cypress/screens/integrations_automatic_import.ts b/x-pack/platform/plugins/shared/fleet/cypress/screens/integrations_automatic_import.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/screens/integrations_automatic_import.ts rename to x-pack/platform/plugins/shared/fleet/cypress/screens/integrations_automatic_import.ts diff --git a/x-pack/plugins/fleet/cypress/screens/navigation.ts b/x-pack/platform/plugins/shared/fleet/cypress/screens/navigation.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/screens/navigation.ts rename to x-pack/platform/plugins/shared/fleet/cypress/screens/navigation.ts diff --git a/x-pack/plugins/fleet/cypress/support/commands.ts b/x-pack/platform/plugins/shared/fleet/cypress/support/commands.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/support/commands.ts rename to x-pack/platform/plugins/shared/fleet/cypress/support/commands.ts diff --git a/x-pack/plugins/fleet/cypress/support/e2e.ts b/x-pack/platform/plugins/shared/fleet/cypress/support/e2e.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/support/e2e.ts rename to x-pack/platform/plugins/shared/fleet/cypress/support/e2e.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/agents.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/agents.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/agents.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/agents.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/api_calls/connectors.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/api_calls/connectors.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/api_calls/connectors.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/api_calls/connectors.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/api_calls/graph_results.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/api_calls/graph_results.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/api_calls/graph_results.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/api_calls/graph_results.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/cleanup.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/cleanup.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/cleanup.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/cleanup.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/common.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/common.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/common.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/common.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/fleet.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/fleet.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/fleet.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/fleet.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/fleet_server.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/fleet_server.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/fleet_server.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/fleet_server.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/integrations.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/integrations.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/integrations.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/integrations.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/login.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/login.ts similarity index 99% rename from x-pack/plugins/fleet/cypress/tasks/login.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/login.ts index 0a1b20b186764..67234ca20df55 100644 --- a/x-pack/plugins/fleet/cypress/tasks/login.ts +++ b/x-pack/platform/plugins/shared/fleet/cypress/tasks/login.ts @@ -18,7 +18,7 @@ import { request } from './common'; * Credentials in the `kibana.dev.yml` config file will be used to authenticate * with Kibana when credentials are not provided via environment variables */ -const KIBANA_DEV_YML_PATH = '../../../config/kibana.dev.yml'; +const KIBANA_DEV_YML_PATH = '../../../../../config/kibana.dev.yml'; /** * The configuration path in `kibana.dev.yml` to the username to be used when diff --git a/x-pack/plugins/fleet/cypress/tasks/navigation.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/navigation.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/navigation.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/navigation.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/privileges.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/privileges.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/privileges.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/privileges.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/spaces.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/spaces.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/spaces.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/spaces.ts diff --git a/x-pack/plugins/fleet/cypress/tasks/ui_settings.ts b/x-pack/platform/plugins/shared/fleet/cypress/tasks/ui_settings.ts similarity index 100% rename from x-pack/plugins/fleet/cypress/tasks/ui_settings.ts rename to x-pack/platform/plugins/shared/fleet/cypress/tasks/ui_settings.ts diff --git a/x-pack/plugins/fleet/cypress/tsconfig.json b/x-pack/platform/plugins/shared/fleet/cypress/tsconfig.json similarity index 89% rename from x-pack/plugins/fleet/cypress/tsconfig.json rename to x-pack/platform/plugins/shared/fleet/cypress/tsconfig.json index 5427996c27f17..bfacb16c3ce63 100644 --- a/x-pack/plugins/fleet/cypress/tsconfig.json +++ b/x-pack/platform/plugins/shared/fleet/cypress/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "include": [ "**/*", "../cypress.config.ts", "../cypress.config.space_awareness.ts", - "../../../../typings/**/*" + "../../../../../../typings/**/*" ], "exclude": [ "target/**/*" diff --git a/x-pack/plugins/fleet/dev_docs/api_integration_tests.md b/x-pack/platform/plugins/shared/fleet/dev_docs/api_integration_tests.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/api_integration_tests.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/api_integration_tests.md diff --git a/x-pack/plugins/fleet/dev_docs/api_keys.md b/x-pack/platform/plugins/shared/fleet/dev_docs/api_keys.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/api_keys.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/api_keys.md diff --git a/x-pack/plugins/fleet/dev_docs/apm_tracing.md b/x-pack/platform/plugins/shared/fleet/dev_docs/apm_tracing.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/apm_tracing.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/apm_tracing.md diff --git a/x-pack/plugins/fleet/dev_docs/data_model.md b/x-pack/platform/plugins/shared/fleet/dev_docs/data_model.md similarity index 94% rename from x-pack/plugins/fleet/dev_docs/data_model.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/data_model.md index 44183cb597ae2..6f4477da61f19 100644 --- a/x-pack/plugins/fleet/dev_docs/data_model.md +++ b/x-pack/platform/plugins/shared/fleet/dev_docs/data_model.md @@ -17,7 +17,7 @@ registry on Kibana nightly snapshot builds, and the 'prod' registry for release can be configured by setting the `xpack.fleet.registryUrl` in the `kibana.yml` file. The code that integrates with this registry API is contained in the -[`x-pack/plugins/fleet/server/services/epm/registry`](../server/services/epm/registry) directory. +[`x-pack/platform/plugins/shared/fleet/server/services/epm/registry`](../server/services/epm/registry) directory. ## `.fleet-*` Indices @@ -37,7 +37,7 @@ Each document in this index tracks an individual Elastic Agent's enrollment in t assigned to, its check in status, which packages are currently installed, and other metadata about the Agent. All of the code that interacts with this index is currently located in -[`x-pack/plugins/fleet/server/services/agents/crud.ts`](../server/services/agents/crud.ts) and the schema of these +[`x-pack/platform/plugins/shared/fleet/server/services/agents/crud.ts`](../server/services/agents/crud.ts) and the schema of these documents is maintained by the `FleetServerAgent` TypeScript interface. - Cleanup model: N/A @@ -65,12 +65,12 @@ The total schema for actions is represented by the `FleetServerAgentAction` type ### `.fleet-enrollment-api-keys` - Cleanup model: Deleteable via Fleet UI/API, deleted when an agent policy is deleted -- [Source](https://github.com/elastic/kibana/blob/7a35748cb43f2c73623ffda6fa02b91c3cb4c689/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts#L102) +- [Source](https://github.com/elastic/kibana/blob/7a35748cb43f2c73623ffda6fa02b91c3cb4c689/x-pack/platform/plugins/shared/fleet/server/services/api_keys/enrollment_api_key.ts#L102) ### `.fleet-policies` - Cleanup model: Deleted when a corresponding agent policy is deleted in the Fleet UI or API -- [Source](https://github.com/elastic/kibana/blob/976b1b2331371f4a1325f6947d38d1f4de7a7254/x-pack/plugins/fleet/server/services/agent_policy.ts#L699-L701) +- [Source](https://github.com/elastic/kibana/blob/976b1b2331371f4a1325f6947d38d1f4de7a7254/x-pack/platform/plugins/shared/fleet/server/services/agent_policy.ts#L699-L701) ### `.fleet-policies-leader` diff --git a/x-pack/plugins/fleet/dev_docs/data_streams.md b/x-pack/platform/plugins/shared/fleet/dev_docs/data_streams.md similarity index 92% rename from x-pack/plugins/fleet/dev_docs/data_streams.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/data_streams.md index 82899c6b6fe32..e0fd14984fe6b 100644 --- a/x-pack/plugins/fleet/dev_docs/data_streams.md +++ b/x-pack/platform/plugins/shared/fleet/dev_docs/data_streams.md @@ -41,7 +41,7 @@ example: ## Making Changes to Template Structure -When making changes to the template structure (e.g [#124013](https://github.com/elastic/kibana/pull/124013)), this will need to be applied to all installed packages on upgrade to retain consistency. On startup we have [a check](https://github.com/elastic/kibana/blob/a52ba7cefe1a04ef6eafa32d5e410a3a901169b2/x-pack/plugins/fleet/server/services/setup.ts#L151) to see if any of the global assets have changed. If they have changed then we attempt to reinstall every package. This will in most cases cause a rollover of all datastreams so shouldn't be treated lightly. +When making changes to the template structure (e.g [#124013](https://github.com/elastic/kibana/pull/124013)), this will need to be applied to all installed packages on upgrade to retain consistency. On startup we have [a check](https://github.com/elastic/kibana/blob/a52ba7cefe1a04ef6eafa32d5e410a3a901169b2/x-pack/platform/plugins/shared/fleet/server/services/setup.ts#L151) to see if any of the global assets have changed. If they have changed then we attempt to reinstall every package. This will in most cases cause a rollover of all datastreams so shouldn't be treated lightly. ## Pre 8.2 Template Structure diff --git a/x-pack/plugins/fleet/dev_docs/definitions.md b/x-pack/platform/plugins/shared/fleet/dev_docs/definitions.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/definitions.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/definitions.md diff --git a/x-pack/plugins/fleet/dev_docs/diagrams/README.md b/x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/README.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/diagrams/README.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/README.md diff --git a/x-pack/plugins/fleet/dev_docs/diagrams/architecture_overview/architecture_overview.excalidraw b/x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/architecture_overview/architecture_overview.excalidraw similarity index 100% rename from x-pack/plugins/fleet/dev_docs/diagrams/architecture_overview/architecture_overview.excalidraw rename to x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/architecture_overview/architecture_overview.excalidraw diff --git a/x-pack/plugins/fleet/dev_docs/diagrams/architecture_overview/architecture_overview.png b/x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/architecture_overview/architecture_overview.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/diagrams/architecture_overview/architecture_overview.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/architecture_overview/architecture_overview.png diff --git a/x-pack/plugins/fleet/dev_docs/diagrams/policy_lifecycle/policy_lifecycle.excalidraw b/x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/policy_lifecycle/policy_lifecycle.excalidraw similarity index 100% rename from x-pack/plugins/fleet/dev_docs/diagrams/policy_lifecycle/policy_lifecycle.excalidraw rename to x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/policy_lifecycle/policy_lifecycle.excalidraw diff --git a/x-pack/plugins/fleet/dev_docs/diagrams/policy_lifecycle/policy_lifecycle.png b/x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/policy_lifecycle/policy_lifecycle.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/diagrams/policy_lifecycle/policy_lifecycle.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/policy_lifecycle/policy_lifecycle.png diff --git a/x-pack/plugins/fleet/dev_docs/diagrams/secrets/secret_storage_architecture.png b/x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/secrets/secret_storage_architecture.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/diagrams/secrets/secret_storage_architecture.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/diagrams/secrets/secret_storage_architecture.png diff --git a/x-pack/plugins/fleet/dev_docs/epm.md b/x-pack/platform/plugins/shared/fleet/dev_docs/epm.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/epm.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/epm.md diff --git a/x-pack/plugins/fleet/dev_docs/fleet_agent_communication.md b/x-pack/platform/plugins/shared/fleet/dev_docs/fleet_agent_communication.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/fleet_agent_communication.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/fleet_agent_communication.md diff --git a/x-pack/plugins/fleet/dev_docs/fleet_agents_interactions_detailed.md b/x-pack/platform/plugins/shared/fleet/dev_docs/fleet_agents_interactions_detailed.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/fleet_agents_interactions_detailed.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/fleet_agents_interactions_detailed.md diff --git a/x-pack/plugins/fleet/dev_docs/fleet_debugger.md b/x-pack/platform/plugins/shared/fleet/dev_docs/fleet_debugger.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/fleet_debugger.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/fleet_debugger.md diff --git a/x-pack/plugins/fleet/dev_docs/fleet_router.md b/x-pack/platform/plugins/shared/fleet/dev_docs/fleet_router.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/fleet_router.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/fleet_router.md diff --git a/x-pack/plugins/fleet/dev_docs/fleet_ui_extensions.md b/x-pack/platform/plugins/shared/fleet/dev_docs/fleet_ui_extensions.md similarity index 93% rename from x-pack/plugins/fleet/dev_docs/fleet_ui_extensions.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/fleet_ui_extensions.md index d361a425450d6..c63a12f04b9ea 100644 --- a/x-pack/plugins/fleet/dev_docs/fleet_ui_extensions.md +++ b/x-pack/platform/plugins/shared/fleet/dev_docs/fleet_ui_extensions.md @@ -63,7 +63,7 @@ export class Plugin { > The code above lives in `x-pack/solutions/security/plugins/security_solution/public/plugin.tsx` -For a list of supported Fleet UI extensions, see the `UIExtensionPoint` and associated Union types defined here: `x-pack/plugins/fleet/public/types/ui_extensions.ts`. +For a list of supported Fleet UI extensions, see the `UIExtensionPoint` and associated Union types defined here: `x-pack/platform/plugins/shared/fleet/public/types/ui_extensions.ts`. @@ -100,4 +100,4 @@ const LinkToAgentEnroll = () => { } ``` -For a list of supported Fleet pages, see the type `AnyIntraAppRouteState` and its associated Union types in `x-pack/plugins/fleet/public/types/intra_app_route_state.ts` +For a list of supported Fleet pages, see the type `AnyIntraAppRouteState` and its associated Union types in `x-pack/platform/plugins/shared/fleet/public/types/intra_app_route_state.ts` diff --git a/x-pack/plugins/fleet/dev_docs/indexing_strategy.md b/x-pack/platform/plugins/shared/fleet/dev_docs/indexing_strategy.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/indexing_strategy.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/indexing_strategy.md diff --git a/x-pack/plugins/fleet/dev_docs/input_packages.md b/x-pack/platform/plugins/shared/fleet/dev_docs/input_packages.md similarity index 96% rename from x-pack/plugins/fleet/dev_docs/input_packages.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/input_packages.md index 3242cffe8db55..9f0f7a977ed48 100644 --- a/x-pack/plugins/fleet/dev_docs/input_packages.md +++ b/x-pack/platform/plugins/shared/fleet/dev_docs/input_packages.md @@ -16,7 +16,7 @@ An example of an input package is the `logs` package. Currently, the dataset is the only way that a user can customize an input only integration, the user can specify a new or existing dataset and the data will be sent there. -To allow this customization, kibana only creates the index and component templates at package policy creation time (as opposed to at package install time as with integration packages). Related code [here](https://github.com/hop-dev/kibana/blob/08d44fe52b3900c80242d2446feef7b7a7f9e2af/x-pack/plugins/fleet/server/services/epm/packages/_install_package.ts#L219) +To allow this customization, kibana only creates the index and component templates at package policy creation time (as opposed to at package install time as with integration packages). Related code [here](https://github.com/hop-dev/kibana/blob/08d44fe52b3900c80242d2446feef7b7a7f9e2af/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/_install_package.ts#L219) The index templates etc are only created if the user selected to send to a datastream which doesn't currently exist. diff --git a/x-pack/plugins/fleet/dev_docs/integrations_overview.md b/x-pack/platform/plugins/shared/fleet/dev_docs/integrations_overview.md similarity index 98% rename from x-pack/plugins/fleet/dev_docs/integrations_overview.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/integrations_overview.md index 19d0564cf6f2a..8d90617ddc844 100644 --- a/x-pack/plugins/fleet/dev_docs/integrations_overview.md +++ b/x-pack/platform/plugins/shared/fleet/dev_docs/integrations_overview.md @@ -115,7 +115,7 @@ stack component. These assets are usually YML or JSON files that Fleet passes of These files represent two ingest pipelines that ship with the Nginx integration to provide out-of-the-box mappings, field processing, etc for Nginx data. -For more information on data streams, see Fleet's dev docs [here](https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/dev_docs/data_streams.md). +For more information on data streams, see Fleet's dev docs [here](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/dev_docs/data_streams.md). ### `agent/stream` directory diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/agentless.md b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/agentless.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/agentless.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/agentless.md diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/developing_kibana_and_fleet_server.md b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/developing_kibana_and_fleet_server.md similarity index 98% rename from x-pack/plugins/fleet/dev_docs/local_setup/developing_kibana_and_fleet_server.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/developing_kibana_and_fleet_server.md index da0ebf8bd2eca..3a343c99c9711 100644 --- a/x-pack/plugins/fleet/dev_docs/local_setup/developing_kibana_and_fleet_server.md +++ b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/developing_kibana_and_fleet_server.md @@ -243,7 +243,7 @@ xpack.fleet.agentPolicies: frozen: true ``` -Some packages are bundled with kibana e.g. apm, elastic_agent (see [bundled packages doc](https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/README.md#bundled-packages)). To use the latest versions, download the latest kibana distributable from [here](https://artifacts-api.elastic.co/v1/versions/latest), extract, and set the `bundledPackageLocation` in kibana config. +Some packages are bundled with kibana e.g. apm, elastic_agent (see [bundled packages doc](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/README.md#bundled-packages)). To use the latest versions, download the latest kibana distributable from [here](https://artifacts-api.elastic.co/v1/versions/latest), extract, and set the `bundledPackageLocation` in kibana config. Alternatively, turn on beta integrations on the UI, to use the newest prerelease versions from the registry. diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/developing_kibana_in_serverless.md b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/developing_kibana_in_serverless.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/developing_kibana_in_serverless.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/developing_kibana_in_serverless.md diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/enrolling_agents.md b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/enrolling_agents.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/enrolling_agents.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/enrolling_agents.md diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/run_dockerized_elastic_agent.sh b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/run_dockerized_elastic_agent.sh similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/run_dockerized_elastic_agent.sh rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/run_dockerized_elastic_agent.sh diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/sample_kibana_dev_yml.md b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/sample_kibana_dev_yml.md similarity index 95% rename from x-pack/plugins/fleet/dev_docs/local_setup/sample_kibana_dev_yml.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/sample_kibana_dev_yml.md index 3750250cf8c03..89760bbbd8aab 100644 --- a/x-pack/plugins/fleet/dev_docs/local_setup/sample_kibana_dev_yml.md +++ b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/sample_kibana_dev_yml.md @@ -29,8 +29,8 @@ logging: # =================== Fleet Settings =================== # Official Fleet settings documentation: https://www.elastic.co/guide/en/kibana/current/fleet-settings-kb.html -# FleetConfigType definition: https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/common/types/index.ts -# PluginConfigDescriptor definition: https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/server/config.ts +# FleetConfigType definition: https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/common/types/index.ts +# PluginConfigDescriptor definition: https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/server/config.ts # xpack.fleet.registryUrl: https://localhost:8080 diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/docker_add_agent_1.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/docker_add_agent_1.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/docker_add_agent_1.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/docker_add_agent_1.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/docker_add_agent_2.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/docker_add_agent_2.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/docker_add_agent_2.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/docker_add_agent_2.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/docker_fleet_server.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/docker_fleet_server.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/docker_fleet_server.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/docker_fleet_server.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/docker_fleet_settings.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/docker_fleet_settings.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/docker_fleet_settings.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/docker_fleet_settings.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/no_fleet_server.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/no_fleet_server.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/no_fleet_server.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/no_fleet_server.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_add_agent_1.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_add_agent_1.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_add_agent_1.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_add_agent_1.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_add_agent_2.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_add_agent_2.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_add_agent_2.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_add_agent_2.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_1.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_1.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_1.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_1.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_2.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_2.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_2.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_2.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_3.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_3.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_3.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_fleet_server_3.png diff --git a/x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_fleet_settings.png b/x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_fleet_settings.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/local_setup/screenshots/vm_fleet_settings.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/screenshots/vm_fleet_settings.png diff --git a/x-pack/plugins/fleet/dev_docs/react_query.md b/x-pack/platform/plugins/shared/fleet/dev_docs/react_query.md similarity index 96% rename from x-pack/plugins/fleet/dev_docs/react_query.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/react_query.md index 1ae8fbadcf448..3984559e31216 100644 --- a/x-pack/plugins/fleet/dev_docs/react_query.md +++ b/x-pack/platform/plugins/shared/fleet/dev_docs/react_query.md @@ -11,7 +11,7 @@ This document seeks to outline the Fleet + Integrations apps' usage of [`@tansta ## How Fleet/Integrations uses custom data fetching hooks -Historically, Fleet/Integrations have used homegrown data fetching hooks in a common folder at [`public/hooks/use_request`](https://github.com/elastic/kibana/tree/main/x-pack/plugins/fleet/public/hooks/use_request). Each `.ts` file in this directory contains one or more data fetching hooks related to a particular resource or concept. For example, here's what some data fetching hooks for `packages` and `categories` might look like: +Historically, Fleet/Integrations have used homegrown data fetching hooks in a common folder at [`public/hooks/use_request`](https://github.com/elastic/kibana/tree/main/x-pack/platform/plugins/shared/fleet/public/hooks/use_request). Each `.ts` file in this directory contains one or more data fetching hooks related to a particular resource or concept. For example, here's what some data fetching hooks for `packages` and `categories` might look like: ```ts // use_request/epm.ts diff --git a/x-pack/plugins/fleet/dev_docs/schema/agent_checkin.mml b/x-pack/platform/plugins/shared/fleet/dev_docs/schema/agent_checkin.mml similarity index 100% rename from x-pack/plugins/fleet/dev_docs/schema/agent_checkin.mml rename to x-pack/platform/plugins/shared/fleet/dev_docs/schema/agent_checkin.mml diff --git a/x-pack/plugins/fleet/dev_docs/schema/agent_checkin.png b/x-pack/platform/plugins/shared/fleet/dev_docs/schema/agent_checkin.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/schema/agent_checkin.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/schema/agent_checkin.png diff --git a/x-pack/plugins/fleet/dev_docs/schema/agent_enroll.mml b/x-pack/platform/plugins/shared/fleet/dev_docs/schema/agent_enroll.mml similarity index 100% rename from x-pack/plugins/fleet/dev_docs/schema/agent_enroll.mml rename to x-pack/platform/plugins/shared/fleet/dev_docs/schema/agent_enroll.mml diff --git a/x-pack/plugins/fleet/dev_docs/schema/agent_enroll.png b/x-pack/platform/plugins/shared/fleet/dev_docs/schema/agent_enroll.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/schema/agent_enroll.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/schema/agent_enroll.png diff --git a/x-pack/plugins/fleet/dev_docs/schema/saved_objects.mml b/x-pack/platform/plugins/shared/fleet/dev_docs/schema/saved_objects.mml similarity index 100% rename from x-pack/plugins/fleet/dev_docs/schema/saved_objects.mml rename to x-pack/platform/plugins/shared/fleet/dev_docs/schema/saved_objects.mml diff --git a/x-pack/plugins/fleet/dev_docs/schema/saved_objects.png b/x-pack/platform/plugins/shared/fleet/dev_docs/schema/saved_objects.png similarity index 100% rename from x-pack/plugins/fleet/dev_docs/schema/saved_objects.png rename to x-pack/platform/plugins/shared/fleet/dev_docs/schema/saved_objects.png diff --git a/x-pack/plugins/fleet/dev_docs/secrets.md b/x-pack/platform/plugins/shared/fleet/dev_docs/secrets.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/secrets.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/secrets.md diff --git a/x-pack/plugins/fleet/dev_docs/space_awareness.md b/x-pack/platform/plugins/shared/fleet/dev_docs/space_awareness.md similarity index 100% rename from x-pack/plugins/fleet/dev_docs/space_awareness.md rename to x-pack/platform/plugins/shared/fleet/dev_docs/space_awareness.md diff --git a/x-pack/plugins/fleet/jest.config.js b/x-pack/platform/plugins/shared/fleet/jest.config.js similarity index 67% rename from x-pack/plugins/fleet/jest.config.js rename to x-pack/platform/plugins/shared/fleet/jest.config.js index 0841e48e59468..e69224d45d9a4 100644 --- a/x-pack/plugins/fleet/jest.config.js +++ b/x-pack/platform/plugins/shared/fleet/jest.config.js @@ -7,12 +7,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/fleet'], + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/fleet'], transform: { '^.+\\.stories\\.tsx?$': '@storybook/addon-storyshots/injectFileName', }, - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/fleet', + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/fleet', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/fleet/{common,public,server}/**/*.{ts,tsx}'], + collectCoverageFrom: ['/x-pack/platform/plugins/shared/fleet/{common,public,server}/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/fleet/jest.integration.config.js b/x-pack/platform/plugins/shared/fleet/jest.integration.config.js similarity index 77% rename from x-pack/plugins/fleet/jest.integration.config.js rename to x-pack/platform/plugins/shared/fleet/jest.integration.config.js index f1b9ee2f5f7e0..f313ecd7ac499 100644 --- a/x-pack/plugins/fleet/jest.integration.config.js +++ b/x-pack/platform/plugins/shared/fleet/jest.integration.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test/jest_integration', - rootDir: '../../..', - roots: ['/x-pack/plugins/fleet'], + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/fleet'], }; diff --git a/x-pack/plugins/fleet/kibana.jsonc b/x-pack/platform/plugins/shared/fleet/kibana.jsonc similarity index 100% rename from x-pack/plugins/fleet/kibana.jsonc rename to x-pack/platform/plugins/shared/fleet/kibana.jsonc diff --git a/x-pack/plugins/fleet/package.json b/x-pack/platform/plugins/shared/fleet/package.json similarity index 52% rename from x-pack/plugins/fleet/package.json rename to x-pack/platform/plugins/shared/fleet/package.json index 0dfbd1f0ded73..72b5154b1c9c0 100644 --- a/x-pack/plugins/fleet/package.json +++ b/x-pack/platform/plugins/shared/fleet/package.json @@ -5,15 +5,15 @@ "private": true, "license": "Elastic License 2.0", "scripts": { - "cypress_space_awareness": "NODE_OPTIONS=--openssl-legacy-provider node ../../solutions/security/plugins/security_solution/scripts/start_cypress_parallel --config-file ../../plugins/fleet/cypress.config.space_awareness.ts --ftr-config-file ../../../x-pack/test/fleet_cypress/cli_config.space_awareness", + "cypress_space_awareness": "NODE_OPTIONS=--openssl-legacy-provider node ../../solutions/security/plugins/security_solution/scripts/start_cypress_parallel --config-file ../../platform/plugins/shared/fleet/cypress.config.space_awareness.ts --ftr-config-file ../../../../../x-pack/test/fleet_cypress/cli_config.space_awareness", "cypress_space_awareness:open": "yarn cypress_space_awareness open", "cypress_space_awareness:run": "yarn cypress_space_awareness run", - "cypress_space_awareness:run:reporter": "yarn cypress_space_awareness run --reporter ../../../node_modules/cypress-multi-reporters --reporter-options configFile=cypress/reporter_config.json", - "cypress": "NODE_OPTIONS=--openssl-legacy-provider node ../../solutions/security/plugins/security_solution/scripts/start_cypress_parallel --config-file ../../plugins/fleet/cypress.config.ts --ftr-config-file ../../../x-pack/test/fleet_cypress/cli_config", + "cypress_space_awareness:run:reporter": "yarn cypress_space_awareness run --reporter ../../../../../node_modules/cypress-multi-reporters --reporter-options configFile=cypress/reporter_config.json", + "cypress": "NODE_OPTIONS=--openssl-legacy-provider node ../../solutions/security/plugins/security_solution/scripts/start_cypress_parallel --config-file ../../platform/plugins/shared/fleet/cypress.config.ts --ftr-config-file ../../../../../x-pack/test/fleet_cypress/cli_config", "cypress:open": "yarn cypress open", "cypress:run": "yarn cypress run", - "cypress:run:reporter": "yarn cypress run --reporter ../../../node_modules/cypress-multi-reporters --reporter-options configFile=cypress/reporter_config.json", - "junit:merge": "../../../node_modules/.bin/mochawesome-merge ../../../target/kibana-fleet/cypress/results/mochawesome*.json > ../../../target/kibana-fleet/cypress/results/output.json && ../../../node_modules/.bin/marge ../../../target/kibana-fleet/cypress/results/output.json --reportDir ../../../target/kibana-fleet/cypress/results && mkdir -p ../../../target/junit && cp ../../../target/kibana-fleet/cypress/results/*.xml ../../../target/junit/", + "cypress:run:reporter": "yarn cypress run --reporter ../../../../../node_modules/cypress-multi-reporters --reporter-options configFile=cypress/reporter_config.json", + "junit:merge": "../../../../../node_modules/.bin/mochawesome-merge ../../../target/kibana-fleet/cypress/results/mochawesome*.json > ../../../target/kibana-fleet/cypress/results/output.json && ../../../node_modules/.bin/marge ../../../target/kibana-fleet/cypress/results/output.json --reportDir ../../../target/kibana-fleet/cypress/results && mkdir -p ../../../target/junit && cp ../../../target/kibana-fleet/cypress/results/*.xml ../../../target/junit/", "openapi:build": "npx @redocly/openapi-cli bundle --ext yaml --output ./common/openapi/bundled.yaml ./common/openapi/entrypoint.yaml && npx @redocly/openapi-cli bundle --ext json --output ./common/openapi/bundled.json ./common/openapi/entrypoint.yaml", "openapi:lint": "npx @redocly/cli lint ./common/openapi/bundled.yaml", "openapi:speccy": "npx speccy lint ./common/openapi/bundled.yaml" diff --git a/x-pack/plugins/fleet/public/applications/fleet/app.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/app.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/app.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/app.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/app.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/app.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/app.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/app.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/advanced_tab.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/advanced_tab.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/advanced_tab.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/advanced_tab.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/components/fleet_server_hosts_form.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/components/fleet_server_hosts_form.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/components/fleet_server_hosts_form.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/components/fleet_server_hosts_form.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/flyout.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/flyout.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/flyout.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/flyout.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_advanced_form.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_advanced_form.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_advanced_form.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_advanced_form.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_fleet_server_host.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_fleet_server_host.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_fleet_server_host.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_fleet_server_host.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_latest_fleet_servers.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_latest_fleet_servers.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_latest_fleet_servers.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_latest_fleet_servers.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_quick_start_form.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_quick_start_form.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_quick_start_form.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_quick_start_form.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_select_fleet_server_policy.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_select_fleet_server_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_select_fleet_server_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_select_fleet_server_policy.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_select_fleet_server_policy.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_select_fleet_server_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_select_fleet_server_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_select_fleet_server_policy.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_wait_for_fleet_server.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_wait_for_fleet_server.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_wait_for_fleet_server.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/hooks/use_wait_for_fleet_server.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/instructions.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/instructions.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/instructions.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/instructions.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/quick_start_tab.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/quick_start_tab.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/quick_start_tab.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/quick_start_tab.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/add_fleet_server_host.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/add_fleet_server_host.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/add_fleet_server_host.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/add_fleet_server_host.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/confirm_fleet_server_connection.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/confirm_fleet_server_connection.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/confirm_fleet_server_connection.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/confirm_fleet_server_connection.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/create_service_token.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/create_service_token.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/create_service_token.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/create_service_token.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/get_started.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/get_started.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/get_started.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/get_started.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/install_fleet_server.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/install_fleet_server.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/install_fleet_server.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/install_fleet_server.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/select_agent_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/select_agent_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/select_agent_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/select_agent_policy.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/set_deployment_mode.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/set_deployment_mode.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/steps/set_deployment_mode.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/steps/set_deployment_mode.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/utils/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/utils/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/utils/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/utils/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/utils/install_command_utils.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/utils/install_command_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/utils/install_command_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/utils/install_command_utils.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/utils/install_command_utils.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/utils/install_command_utils.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/fleet_server_instructions/utils/install_command_utils.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/fleet_server_instructions/utils/install_command_utils.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/form_settings/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/form_settings/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/form_settings/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/form_settings/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/form_settings/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/form_settings/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/form_settings/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/form_settings/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/form_settings/settings_field_group.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/form_settings/settings_field_group.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/form_settings/settings_field_group.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/form_settings/settings_field_group.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/form_settings/settings_field_wrapper.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/form_settings/settings_field_wrapper.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/form_settings/settings_field_wrapper.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/form_settings/settings_field_wrapper.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/generate_service_token.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/generate_service_token.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/generate_service_token.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/generate_service_token.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/search_bar.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/search_bar.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/search_bar.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/search_bar.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/components/search_bar.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/constants/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/constants/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/constants/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/constants/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/hooks/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/hooks/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/hooks/use_apm_service_href.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_apm_service_href.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/hooks/use_apm_service_href.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_apm_service_href.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/hooks/use_apm_service_href.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_apm_service_href.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/hooks/use_apm_service_href.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_apm_service_href.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/hooks/use_breadcrumbs.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_breadcrumbs.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/hooks/use_breadcrumbs.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_breadcrumbs.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/hooks/use_check_permissions.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_check_permissions.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/hooks/use_check_permissions.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_check_permissions.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/hooks/use_service_token.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_service_token.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/hooks/use_service_token.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/hooks/use_service_token.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/layouts/default/default.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/default/default.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/layouts/default/default.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/default/default.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/layouts/default/default_page_title.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/default/default_page_title.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/layouts/default/default_page_title.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/default/default_page_title.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/layouts/default/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/default/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/layouts/default/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/default/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/layouts/error.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/error.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/layouts/error.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/error.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/layouts/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/layouts/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/layouts/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/actions_menu.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/actions_menu.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/actions_menu.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/actions_menu.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/actions_menu.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/actions_menu.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/actions_menu.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/actions_menu.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/advanced_monitoring.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/advanced_monitoring.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/advanced_monitoring.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/advanced_monitoring.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/global_data_tags_table.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/global_data_tags_table.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/global_data_tags_table.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/global_data_tags_table.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/global_data_tags_table.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/global_data_tags_table.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/global_data_tags_table.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/global_data_tags_table.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/custom_fields/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/hooks.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/hooks.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/hooks.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/hooks.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/hooks.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/hooks.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/hooks.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/hooks.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/space_selector.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/space_selector.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/space_selector.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/space_selector.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/space_selector.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/space_selector.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/space_selector.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/space_selector.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_copy_provider.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_copy_provider.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_copy_provider.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_copy_provider.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_create_inline.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_create_inline.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_create_inline.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_create_inline.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_delete_provider.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_delete_provider.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_delete_provider.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_delete_provider.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_general_fields.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_general_fields.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_general_fields.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_general_fields.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_integration.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_integration.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_integration.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_integration.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_system_monitoring_field.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_system_monitoring_field.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_system_monitoring_field.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_system_monitoring_field.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_validation.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_validation.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_validation.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_validation.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_validation.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_validation.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_validation.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_validation.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_yaml_flyout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_yaml_flyout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_yaml_flyout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_yaml_flyout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/confirm_deploy_modal.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/confirm_deploy_modal.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/confirm_deploy_modal.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/confirm_deploy_modal.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/confirm_deploy_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/confirm_deploy_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/confirm_deploy_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/confirm_deploy_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_hooks.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_hooks.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_hooks.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_hooks.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_hooks.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_hooks.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_hooks.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_hooks.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_mappings.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_mappings.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_mappings.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_mappings.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_pipelines.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_pipelines.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_pipelines.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_pipelines.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_pipelines.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_pipelines.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_pipelines.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/datastream_pipelines.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/integration_breadcrumb.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/integration_breadcrumb.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/integration_breadcrumb.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/integration_breadcrumb.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/agent_policy_multi_select.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/agent_policy_multi_select.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/agent_policy_multi_select.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/agent_policy_multi_select.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/agent_policy_options.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/agent_policy_options.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/agent_policy_options.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/agent_policy_options.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/dataset_component.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/dataset_component.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/dataset_component.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/dataset_component.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/dataset_component.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/dataset_component.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/dataset_component.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/dataset_component.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/hooks.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/hooks.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/hooks.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/hooks.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/multi_text_input.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/multi_text_input.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/multi_text_input.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/multi_text_input.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/multi_text_input.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/multi_text_input.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/multi_text_input.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/multi_text_input.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_config.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_config.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_config.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_config.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_config.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_config.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_config.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_config.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_panel.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_panel.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_panel.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_panel.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_panel.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_panel.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_panel.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_panel.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_var_field.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_var_field.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_var_field.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_var_field.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/sort_datastreams.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/sort_datastreams.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/sort_datastreams.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/sort_datastreams.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/sort_datastreams.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/sort_datastreams.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/sort_datastreams.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/sort_datastreams.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/use_policies.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/use_policies.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/use_policies.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/use_policies.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_configure_package.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_configure_package.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_configure_package.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_configure_package.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_configure_package.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_configure_package.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_configure_package.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_configure_package.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_agent_policy.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_agent_policy.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_agent_policy.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_agent_policy.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_agent_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_agent_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_agent_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_agent_policy.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_hosts.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_hosts.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_hosts.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_hosts.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_hosts.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_hosts.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_hosts.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_select_hosts.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/hooks/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/hooks/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/hooks/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/hooks/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/hooks/navigation.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/hooks/navigation.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/hooks/navigation.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/hooks/navigation.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/add_first_integration_splash.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/add_first_integration_splash.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/add_first_integration_splash.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/add_first_integration_splash.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/bottom_bar.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/bottom_bar.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/bottom_bar.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/bottom_bar.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirm_incoming_data_timeout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirm_incoming_data_timeout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirm_incoming_data_timeout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirm_incoming_data_timeout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirm_incoming_data_with_preview.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirm_incoming_data_with_preview.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirm_incoming_data_with_preview.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirm_incoming_data_with_preview.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirming_incoming_data_standalone.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirming_incoming_data_standalone.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirming_incoming_data_standalone.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/confirming_incoming_data_standalone.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/horizontal_page_steps.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/horizontal_page_steps.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/horizontal_page_steps.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/horizontal_page_steps.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/multi_page_steps_layout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/multi_page_steps_layout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/multi_page_steps_layout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/multi_page_steps_layout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/add_integration.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/add_integration.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/add_integration.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/add_integration.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/confirm_data.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/confirm_data.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/confirm_data.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/confirm_data.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/install_agent_managed.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/install_agent_managed.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/install_agent_managed.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/install_agent_managed.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/install_agent_standalone.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/install_agent_standalone.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/install_agent_standalone.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/install_agent_standalone.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/types.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/types.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/types.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/page_steps/install_agent/types.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/standalone_mode_warning_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/standalone_mode_warning_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/standalone_mode_warning_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/components/standalone_mode_warning_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/send_generate_package_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/send_generate_package_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/send_generate_package_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/send_generate_package_policy.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/use_get_agent_policy_or_default.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/use_get_agent_policy_or_default.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/use_get_agent_policy_or_default.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/use_get_agent_policy_or_default.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/use_get_logs_discover_link.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/use_get_logs_discover_link.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/use_get_logs_discover_link.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/hooks/use_get_logs_discover_link.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/types.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/types.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/types.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/multi_page_layout/types.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/has_invalid_but_required_var.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/has_invalid_but_required_var.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/has_invalid_but_required_var.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/has_invalid_but_required_var.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/has_invalid_but_required_var.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/has_invalid_but_required_var.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/has_invalid_but_required_var.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/has_invalid_but_required_var.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/is_advanced_var.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/is_advanced_var.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/is_advanced_var.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/is_advanced_var.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/is_advanced_var.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/is_advanced_var.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/is_advanced_var.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/is_advanced_var.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/prepare_input_pkg_policy_dataset.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/prepare_input_pkg_policy_dataset.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/prepare_input_pkg_policy_dataset.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/prepare_input_pkg_policy_dataset.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/prepare_input_pkg_policy_dataset.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/prepare_input_pkg_policy_dataset.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/prepare_input_pkg_policy_dataset.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/services/prepare_input_pkg_policy_dataset.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_azure_arm_template_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_azure_arm_template_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_azure_arm_template_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_azure_arm_template_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_cloud_formation_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_cloud_formation_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_cloud_formation_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_cloud_formation_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_google_cloud_shell_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_google_cloud_shell_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_google_cloud_shell_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/cloud_security_posture/post_install_google_cloud_shell_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/layout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/layout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/layout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/layout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/post_install_add_agent_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/post_install_add_agent_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/post_install_add_agent_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/post_install_add_agent_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/setup_technology_selector.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/setup_technology_selector.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/setup_technology_selector.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/components/setup_technology_selector.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/devtools_request.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/devtools_request.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/devtools_request.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/devtools_request.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/form.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/form.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/form.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/form.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/form.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/form.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/form.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/form.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/root_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/root_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/root_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/root_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/types.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/types.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/types.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/types.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/append_on_save_query_params.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/append_on_save_query_params.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/append_on_save_query_params.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/append_on_save_query_params.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/append_on_save_query_params.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/append_on_save_query_params.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/append_on_save_query_params.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/append_on_save_query_params.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/package_has_at_least_one_secret.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/package_has_at_least_one_secret.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/package_has_at_least_one_secret.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/package_has_at_least_one_secret.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/package_has_at_least_one_secret.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/package_has_at_least_one_secret.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/package_has_at_least_one_secret.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/utils/package_has_at_least_one_secret.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/left_content.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/left_content.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/left_content.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/left_content.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/no_package_policies.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/no_package_policies.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/no_package_policies.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/no_package_policies.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/package_policies_table.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/package_policies_table.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/package_policies_table.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/package_policies/package_policies_table.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/settings/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/settings/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/settings/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/components/settings/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/hooks/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/hooks/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/hooks/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/hooks/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/hooks/use_agent_status.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/hooks/use_agent_status.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/hooks/use_agent_status.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/hooks/use_agent_status.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/details_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/upgrade.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/upgrade.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/upgrade.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/upgrade.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_history_block.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_history_block.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_history_block.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_history_block.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_history_block.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_history_block.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_history_block.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_history_block.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy_steps.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy_steps.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy_steps.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/hooks/use_package_policy_steps.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/fix_apm_duration_vars.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/fix_apm_duration_vars.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/fix_apm_duration_vars.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/fix_apm_duration_vars.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/fix_apm_duration_vars.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/fix_apm_duration_vars.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/fix_apm_duration_vars.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/fix_apm_duration_vars.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/get_new_secrets.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/get_new_secrets.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/get_new_secrets.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/get_new_secrets.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/get_new_secrets.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/get_new_secrets.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/get_new_secrets.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/get_new_secrets.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/has_upgrade_available.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/has_upgrade_available.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/has_upgrade_available.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/has_upgrade_available.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/utils/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/components/create_agent_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/list_page/components/create_agent_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/components/create_agent_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/list_page/components/create_agent_policy.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/list_page/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/list_page/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/list_page/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/list_page/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/list_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/list_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/services/devtools_request.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/services/devtools_request.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/services/devtools_request.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/services/devtools_request.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/services/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/services/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/services/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/services/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/upgrade_package_policy_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/upgrade_package_policy_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/upgrade_package_policy_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/upgrade_package_policy_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/action_menu.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/action_menu.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/action_menu.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/action_menu.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/actions_menu.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/actions_menu.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/actions_menu.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/actions_menu.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_dashboard_link.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_dashboard_link.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_dashboard_link.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_dashboard_link.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_dashboard_link.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_dashboard_link.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_dashboard_link.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_dashboard_link.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_input_status.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_input_status.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_input_status.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_input_status.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_inputs.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_inputs.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_inputs.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_inputs.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_inputs.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_inputs.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_inputs.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integration_inputs.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integrations.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integrations.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integrations.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_integrations.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_overview.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_overview.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_overview.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/agent_details_overview.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_status_utils.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_status_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_status_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_status_utils.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_status_utils.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_status_utils.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_status_utils.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_status_utils.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_type_utils.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_type_utils.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_type_utils.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details/input_type_utils.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details_json_flyout.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details_json_flyout.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details_json_flyout.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details_json_flyout.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details_json_flyout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details_json_flyout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details_json_flyout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_details_json_flyout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_diagnostics/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_diagnostics/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_diagnostics/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_diagnostics/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/agent_logs.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/build_query.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/build_query.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/build_query.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/build_query.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/build_query.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/build_query.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/build_query.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/build_query.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/constants.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/constants.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/constants.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/constants.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_dataset.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_log_level.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_log_level.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_log_level.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/filter_log_level.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/query_bar.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/view_logs_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/view_logs_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/view_logs_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/agent_logs/view_logs_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/hooks/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/hooks/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/hooks/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/hooks/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/hooks/use_agent.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/hooks/use_agent.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/hooks/use_agent.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/hooks/use_agent.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_details_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_details_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_badge.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_badge.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_badge.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_badge.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/activity_item.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/activity_item.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/activity_item.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/activity_item.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/activity_section.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/activity_section.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/activity_section.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/activity_section.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/agent_activity_helper.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/agent_activity_helper.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/agent_activity_helper.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/agent_activity_helper.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/agent_activity_helper.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/agent_activity_helper.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/agent_activity_helper.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/agent_activity_helper.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/flyout_body.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/flyout_body.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/flyout_body.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/flyout_body.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/go_to_date.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/go_to_date.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/go_to_date.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/go_to_date.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/helpers.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/helpers.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/helpers.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/helpers.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/upgrade_in_progress_activity_item.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/upgrade_in_progress_activity_item.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/upgrade_in_progress_activity_item.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/upgrade_in_progress_activity_item.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/view_agents_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/view_agents_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/view_agents_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout/view_agents_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_export_csv_tour.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_export_csv_tour.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_export_csv_tour.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_export_csv_tour.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_list_table.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_list_table.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_list_table.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_list_table.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_policy_outputs_summary.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_policy_outputs_summary.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_policy_outputs_summary.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_policy_outputs_summary.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_policy_outputs_summary.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_policy_outputs_summary.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_policy_outputs_summary.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_policy_outputs_summary.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_soft_limit_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_soft_limit_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_soft_limit_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_soft_limit_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_status_filter.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_status_filter.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_status_filter.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_status_filter.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_status_filter.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_status_filter.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_status_filter.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_status_filter.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_upgrade_status.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_upgrade_status.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_upgrade_status.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_upgrade_status.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_upgrade_status.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_upgrade_status.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_upgrade_status.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_upgrade_status.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agents_selection_status.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agents_selection_status.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agents_selection_status.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agents_selection_status.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agents_selection_status.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agents_selection_status.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agents_selection_status.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agents_selection_status.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/dashboards_buttons.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/dashboards_buttons.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/dashboards_buttons.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/dashboards_buttons.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/empty_prompt.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/empty_prompt.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/empty_prompt.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/empty_prompt.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/agent_policy_filter.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/agent_policy_filter.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/agent_policy_filter.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/agent_policy_filter.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/tags_filter.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/tags_filter.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/tags_filter.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/tags_filter.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/tags_filter.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/tags_filter.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/tags_filter.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/filter_bar/tags_filter.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_badges.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_badges.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_badges.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_badges.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_bar.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_bar.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_bar.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_bar.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_bar.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_bar.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_bar.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/status_bar.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_header.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_header.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_header.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_header.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_row_actions.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_row_actions.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_row_actions.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_row_actions.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_row_actions.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_row_actions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_row_actions.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/table_row_actions.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tag_options.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tag_options.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tag_options.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tag_options.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tag_options.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tag_options.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tag_options.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tag_options.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/types.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/types.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/types.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/types.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/view_errors.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/view_errors.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/view_errors.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/view_errors.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/view_errors.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/view_errors.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/view_errors.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/components/view_errors.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/export_csv.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/export_csv.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/export_csv.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/export_csv.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/export_csv.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/export_csv.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/export_csv.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/export_csv.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_agent_soft_limit.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_agent_soft_limit.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_agent_soft_limit.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_agent_soft_limit.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_agent_soft_limit.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_agent_soft_limit.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_agent_soft_limit.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_agent_soft_limit.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_last_seen_inactive_agents_count.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_last_seen_inactive_agents_count.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_last_seen_inactive_agents_count.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_last_seen_inactive_agents_count.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_missing_encryption_key_callout.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_missing_encryption_key_callout.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_missing_encryption_key_callout.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_missing_encryption_key_callout.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_update_tags.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_update_tags.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_update_tags.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_update_tags.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_update_tags.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_update_tags.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_update_tags.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_update_tags.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_common_tags.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_common_tags.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_common_tags.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_common_tags.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_common_tags.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_common_tags.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_common_tags.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_common_tags.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_kuery.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_kuery.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_kuery.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_kuery.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_kuery.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_kuery.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_kuery.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/get_kuery.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/sanitize_tag.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/sanitize_tag.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/sanitize_tag.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/sanitize_tag.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/sanitize_tag.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/sanitize_tag.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/sanitize_tag.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/sanitize_tag.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/truncate_tag.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/truncate_tag.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/truncate_tag.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_list_page/utils/truncate_tag.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/enrollment_recommendation.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/enrollment_recommendation.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/enrollment_recommendation.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/enrollment_recommendation.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/fleet_server_cloud_instructions.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/fleet_server_cloud_instructions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/fleet_server_cloud_instructions.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/fleet_server_cloud_instructions.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/components/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/es_requirements_page.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/es_requirements_page.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/es_requirements_page.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/es_requirements_page.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/fleet_server_requirement_page.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/fleet_server_requirement_page.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/fleet_server_requirement_page.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/fleet_server_requirement_page.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_requirements_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/agent_requirements_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_export_csv_modal/columns.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_export_csv_modal/columns.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_export_csv_modal/columns.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_export_csv_modal/columns.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_export_csv_modal/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_export_csv_modal/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_export_csv_modal/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_export_csv_modal/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_health.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_health.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_health.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_health.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_health.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_health.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_health.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_health.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_policy_created_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_policy_created_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_policy_created_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_policy_created_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_reassign_policy_modal/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_reassign_policy_modal/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_reassign_policy_modal/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_reassign_policy_modal/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_request_diagnostics_modal/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_request_diagnostics_modal/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_request_diagnostics_modal/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_request_diagnostics_modal/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_request_diagnostics_modal/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_request_diagnostics_modal/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_request_diagnostics_modal/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_request_diagnostics_modal/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_unenroll_modal/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_unenroll_modal/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_unenroll_modal/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_unenroll_modal/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/constants.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/constants.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/constants.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/constants.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/hooks.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/hooks.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/hooks.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/hooks.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/hooks.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/hooks.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/hooks.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/hooks.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_cloud_unhealthy_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_cloud_unhealthy_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_cloud_unhealthy_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_cloud_unhealthy_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_encryption_key_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_encryption_key_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_encryption_key_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_encryption_key_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_es_privileges.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_es_privileges.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_es_privileges.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_es_privileges.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_kbn_privileges.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_kbn_privileges.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_kbn_privileges.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_missing_kbn_privileges.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_on_prem_required_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_on_prem_required_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_on_prem_required_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_on_prem_required_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_on_prem_unhealthy_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_on_prem_unhealthy_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_on_prem_unhealthy_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/fleet_server_on_prem_unhealthy_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/index.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/index.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/index.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/index.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/fleet_server_callouts/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/loading.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/loading.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/loading.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/loading.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/metric_non_available.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/metric_non_available.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/metric_non_available.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/metric_non_available.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/tags.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/tags.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/tags.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/tags.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/tags.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/tags.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/tags.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/components/tags.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/components/confirm_delete_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/components/confirm_delete_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/components/confirm_delete_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/components/confirm_delete_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/error_pages/components/no_data_layout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/error_pages/components/no_data_layout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/error_pages/components/no_data_layout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/error_pages/components/no_data_layout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/error_pages/no_access.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/error_pages/no_access.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/error_pages/no_access.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/error_pages/no_access.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/hooks/use_fleet_server_unhealthy.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/hooks/use_fleet_server_unhealthy.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/hooks/use_fleet_server_unhealthy.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/hooks/use_fleet_server_unhealthy.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/hooks/use_fleet_server_unhealthy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/hooks/use_fleet_server_unhealthy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/hooks/use_fleet_server_unhealthy.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/hooks/use_fleet_server_unhealthy.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/agent_metrics.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/agent_metrics.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/agent_metrics.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/agent_metrics.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/agent_metrics.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/agent_metrics.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/agent_metrics.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/agent_metrics.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/agent_status.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/agent_status.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/agent_status.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/agent_status.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/dashboard_helper.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/dashboard_helper.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/dashboard_helper.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/dashboard_helper.test.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/dashboard_helpers.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/dashboard_helpers.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/services/dashboard_helpers.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/services/dashboard_helpers.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/translations.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/translations.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/translations.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agents/uninstall_token_list_page/translations.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/data_stream/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/data_stream/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/data_stream/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/data_stream/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/data_stream/list_page/components/data_stream_row_actions.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/data_stream/list_page/components/data_stream_row_actions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/data_stream/list_page/components/data_stream_row_actions.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/data_stream/list_page/components/data_stream_row_actions.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/data_stream/list_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/data_stream/list_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/data_stream/list_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/data_stream/list_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/agent_policy_debugger.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/agent_policy_debugger.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/agent_policy_debugger.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/agent_policy_debugger.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/code_block.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/code_block.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/code_block.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/code_block.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/fleet_index_debugger.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/fleet_index_debugger.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/fleet_index_debugger.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/fleet_index_debugger.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/health_check_panel.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/health_check_panel.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/health_check_panel.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/health_check_panel.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/integration_debugger.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/integration_debugger.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/integration_debugger.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/integration_debugger.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/orphaned_integration_policy_debugger.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/orphaned_integration_policy_debugger.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/orphaned_integration_policy_debugger.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/orphaned_integration_policy_debugger.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/preconfiguration_debugger.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/preconfiguration_debugger.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/preconfiguration_debugger.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/preconfiguration_debugger.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/saved_object_debugger.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/saved_object_debugger.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/saved_object_debugger.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/saved_object_debugger.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/saved_object_names_combo.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/saved_object_names_combo.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/components/saved_object_names_combo.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/components/saved_object_names_combo.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/debug/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/debug/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/debug/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/confirm_update.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/confirm_update.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/confirm_update.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/confirm_update.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/services/get_count.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/services/get_count.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/services/get_count.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/services/get_count.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/services/get_count.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/services/get_count.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/services/get_count.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/services/get_count.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_delete_download_source.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_delete_download_source.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_delete_download_source.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_delete_download_source.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_download_source_flyout_form.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_download_source_flyout_form.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_download_source_flyout_form.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_download_source_flyout_form.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_download_source_flyout_form.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_download_source_flyout_form.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_download_source_flyout_form.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_flyout/use_download_source_flyout_form.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_table/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_table/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/download_source_table/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/download_source_table/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/use_fleet_proxy_form.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/use_fleet_proxy_form.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/use_fleet_proxy_form.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/use_fleet_proxy_form.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/use_fleet_proxy_form.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/use_fleet_proxy_form.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/use_fleet_proxy_form.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_fleet_proxy_flyout/use_fleet_proxy_form.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/advanced_options_section.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/advanced_options_section.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/advanced_options_section.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/advanced_options_section.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/confirm_update.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/confirm_update.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/confirm_update.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/confirm_update.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/encryption_key_required_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/encryption_key_required_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/encryption_key_required_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/encryption_key_required_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_elasticsearch.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_elasticsearch.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_elasticsearch.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_elasticsearch.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_authentication.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_authentication.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_authentication.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_authentication.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_broker.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_broker.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_broker.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_broker.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_compression.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_compression.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_compression.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_compression.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_headers.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_headers.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_headers.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_headers.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_partitioning.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_partitioning.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_partitioning.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_partitioning.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_topics.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_topics.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_topics.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_kafka_topics.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_logstash.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_logstash.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_logstash.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_logstash.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_remote_es.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_remote_es.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_remote_es.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_remote_es.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_secret_form_row.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_secret_form_row.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_secret_form_row.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_secret_form_row.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_secret_form_row.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_secret_form_row.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_secret_form_row.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_secret_form_row.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_validators.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_validators.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_validators.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_validators.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_validators.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_validators.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_validators.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_form_validators.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_health.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_health.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_health.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_health.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_health.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_health.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_health.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/output_health.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/use_output_form.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/use_output_form.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/use_output_form.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/use_output_form.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/use_output_form.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/use_output_form.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/use_output_form.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/use_output_form.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/yaml_code_editor_with_placeholder.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/yaml_code_editor_with_placeholder.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/yaml_code_editor_with_placeholder.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/yaml_code_editor_with_placeholder.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/yaml_code_editor_with_placeholder.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/yaml_code_editor_with_placeholder.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/yaml_code_editor_with_placeholder.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/edit_output_flyout/yaml_code_editor_with_placeholder.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_proxies_table/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_proxies_table/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_proxies_table/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_proxies_table/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_proxies_table/proxy_warning.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_proxies_table/proxy_warning.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_proxies_table/proxy_warning.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_proxies_table/proxy_warning.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/index.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/index.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/index.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/index.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/use_fleet_server_host_form.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/use_fleet_server_host_form.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/use_fleet_server_host_form.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/use_fleet_server_host_form.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/use_fleet_server_host_form.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/use_fleet_server_host_form.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/use_fleet_server_host_form.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_flyout/use_fleet_server_host_form.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_table/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_table/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_table/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/fleet_server_hosts_table/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/form/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/form/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/form/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/form/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/helpers.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/helpers.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/helpers.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/helpers.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/hooks.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/hooks.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/hooks.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/hooks.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/logstash_instructions/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/multi_row_input/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/outputs_table/badges.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/outputs_table/badges.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/outputs_table/badges.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/outputs_table/badges.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/outputs_table/badges.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/outputs_table/badges.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/outputs_table/badges.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/outputs_table/badges.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/outputs_table/index.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/outputs_table/index.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/outputs_table/index.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/outputs_table/index.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/outputs_table/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/outputs_table/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/outputs_table/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/outputs_table/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/advanced_section.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/advanced_section.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/advanced_section.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/advanced_section.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/agent_binary_section.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/agent_binary_section.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/agent_binary_section.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/agent_binary_section.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/fleet_proxies_section.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/fleet_proxies_section.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/fleet_proxies_section.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/fleet_proxies_section.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/fleet_server_hosts_section.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/fleet_server_hosts_section.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/fleet_server_hosts_section.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/fleet_server_hosts_section.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/output_section.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/output_section.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/components/settings_page/output_section.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/components/settings_page/output_section.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/use_confirm_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/use_confirm_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/use_confirm_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/use_confirm_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/use_delete_fleet_server_host.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/use_delete_fleet_server_host.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/use_delete_fleet_server_host.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/use_delete_fleet_server_host.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/use_delete_output.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/use_delete_output.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/use_delete_output.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/use_delete_output.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/use_delete_proxy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/use_delete_proxy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/hooks/use_delete_proxy.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/hooks/use_delete_proxy.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/settings/services/agent_and_policies_count.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/services/agent_and_policies_count.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/sections/settings/services/agent_and_policies_count.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/settings/services/agent_and_policies_count.tsx diff --git a/x-pack/plugins/fleet/public/applications/fleet/services/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/services/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/services/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/services/index.ts diff --git a/x-pack/plugins/fleet/public/applications/fleet/types/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/types/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/fleet/types/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/fleet/types/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/app.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/app.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/app.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/app.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/components/confirm_open_unverified_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/confirm_open_unverified_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/components/confirm_open_unverified_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/confirm_open_unverified_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/components/header/deployment_details.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/header/deployment_details.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/components/header/deployment_details.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/header/deployment_details.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/components/header/header.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/header/header.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/components/header/header.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/header/header.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/components/header/header_portal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/header/header_portal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/components/header/header_portal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/header/header_portal.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/components/header/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/header/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/components/header/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/header/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/components/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/constants.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/constants.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/constants.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/constants.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_agent_policy_context.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_agent_policy_context.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_agent_policy_context.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_agent_policy_context.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_breadcrumbs.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_breadcrumbs.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_breadcrumbs.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_breadcrumbs.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_confirm_force_install.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_confirm_force_install.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_confirm_force_install.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_confirm_force_install.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_confirm_open_unverified.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_confirm_open_unverified.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_confirm_open_unverified.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_confirm_open_unverified.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_integrations_state.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_integrations_state.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_integrations_state.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_integrations_state.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_links.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_links.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_links.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_links.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_local_search.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_local_search.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_local_search.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_local_search.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_merge_epr_with_replacements.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_merge_epr_with_replacements.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_merge_epr_with_replacements.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_merge_epr_with_replacements.test.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_merge_epr_with_replacements.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_merge_epr_with_replacements.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_merge_epr_with_replacements.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_merge_epr_with_replacements.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_package_install.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_package_install.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_package_install.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_package_install.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_package_install.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_package_install.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_package_install.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_package_install.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/hooks/use_read_only_context.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_read_only_context.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/hooks/use_read_only_context.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/hooks/use_read_only_context.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/layouts/default.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/layouts/default.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/layouts/default.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/layouts/default.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/layouts/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/layouts/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/layouts/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/layouts/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/icons.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/icons.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/icons.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/icons.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/installation_status.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/installation_status.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/installation_status.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/installation_status.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/installation_status.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/installation_status.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/installation_status.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/installation_status.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/integration_preference.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/integration_preference.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/integration_preference.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/integration_preference.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/integration_preference.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/integration_preference.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/integration_preference.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/integration_preference.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_card.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_card.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_card.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_card.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_card.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_card.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_card.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_card.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_card.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_card.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_card.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_card.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/controls.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/controls.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/controls.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/controls.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/grid.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/grid.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/grid.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/grid.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/index.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/index.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/index.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/index.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/missing_integrations.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/missing_integrations.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/missing_integrations.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/missing_integrations.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/search_box.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/search_box.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/package_list_grid/search_box.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/package_list_grid/search_box.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/requirements.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/requirements.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/requirements.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/requirements.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/requirements.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/requirements.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/requirements.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/requirements.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/side_bar_column.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/side_bar_column.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/side_bar_column.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/side_bar_column.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/utils/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/utils/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/utils/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/utils/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/utils/promote_featured_integrations.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/utils/promote_featured_integrations.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/utils/promote_featured_integrations.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/utils/promote_featured_integrations.test.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/utils/promote_featured_integrations.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/utils/promote_featured_integrations.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/utils/promote_featured_integrations.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/utils/promote_featured_integrations.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/version.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/version.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/components/version.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/components/version.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/constants.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/constants.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/constants.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/constants.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/create/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/create/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/create/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/create/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets_accordion.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets_accordion.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets_accordion.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets_accordion.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_assets_accordion.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_assets_accordion.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_assets_accordion.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_assets_accordion.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_assets_warning.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_assets_warning.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_assets_warning.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_assets_warning.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_transforms_accordion.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_transforms_accordion.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_transforms_accordion.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/deferred_transforms_accordion.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/install_kibana_assets_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/install_kibana_assets_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/install_kibana_assets_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/assets/install_kibana_assets_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/add_integration_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/add_integration_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/add_integration_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/add_integration_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/back_link.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/back_link.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/back_link.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/back_link.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/back_link.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/back_link.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/back_link.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/back_link.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/bidirectional_integrations_callout.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/bidirectional_integrations_callout.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/bidirectional_integrations_callout.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/bidirectional_integrations_callout.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/bidirectional_integrations_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/bidirectional_integrations_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/bidirectional_integrations_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/bidirectional_integrations_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/cloud_posture_third_party_support_callout.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/icon_panel.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/icon_panel.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/icon_panel.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/icon_panel.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/integration_agent_policy_count.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/integration_agent_policy_count.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/integration_agent_policy_count.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/integration_agent_policy_count.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/keep_policies_up_to_date_switch.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/keep_policies_up_to_date_switch.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/keep_policies_up_to_date_switch.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/keep_policies_up_to_date_switch.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/update_icon.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/update_icon.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/components/update_icon.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/components/update_icon.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/configs/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/configs/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/configs/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/configs/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/configs/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/configs/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/configs/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/configs/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/custom/custom.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/custom/custom.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/custom/custom.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/custom/custom.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/custom/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/custom/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/custom/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/custom/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/custom_languages_overview.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/custom_languages_overview.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/custom_languages_overview.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/custom_languages_overview.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/detail.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/detail.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/detail.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/detail.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/documentation/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/documentation/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/documentation/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/documentation/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/hooks/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/hooks/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/hooks/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/hooks/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/hooks/use_is_first_time_agent_user.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/hooks/use_is_first_time_agent_user.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/hooks/use_is_first_time_agent_user.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/hooks/use_is_first_time_agent_user.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.scss b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/index.scss similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.scss rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/index.scss diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/index.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/details.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/details.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/details.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/details.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/license_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/license_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/license_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/license_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/markdown_renderers.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/markdown_renderers.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/markdown_renderers.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/markdown_renderers.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/notice_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/notice_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/notice_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/notice_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/overview.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/overview.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/overview.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/overview.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/readme.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/readme.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/readme.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/readme.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/readme.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/readme.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/readme.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/readme.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/requirements.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/requirements.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/requirements.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/requirements.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/screenshots.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/screenshots.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/overview/screenshots.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/overview/screenshots.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agent_based_table.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agent_based_table.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agent_based_table.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agent_based_table.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agent_based_table.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agent_based_table.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agent_based_table.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agent_based_table.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agentless_table.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agentless_table.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agentless_table.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agentless_table.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agentless_table.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agentless_table.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agentless_table.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/agentless_table.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/package_policy_agents_cell.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/package_policy_agents_cell.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/package_policy_agents_cell.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/package_policy_agents_cell.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/package_policy_agents_cell.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/package_policy_agents_cell.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/package_policy_agents_cell.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/components/package_policy_agents_cell.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/package_policies.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/package_policies.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/package_policies.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/package_policies.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/persona.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/persona.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/persona.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/persona.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/use_package_policies_with_agent_policy.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/use_package_policies_with_agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/policies/use_package_policies_with_agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/policies/use_package_policies_with_agent_policy.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/changelog_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/changelog_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/changelog_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/changelog_modal.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/confirm_package_install.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/confirm_package_install.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/confirm_package_install.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/confirm_package_install.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/confirm_package_uninstall.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/confirm_package_uninstall.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/confirm_package_uninstall.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/confirm_package_uninstall.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/install_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/install_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/install_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/install_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/reinstall_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/reinstall_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/reinstall_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/reinstall_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/settings.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/settings.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/settings.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/settings.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/uninstall_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/uninstall_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/uninstall_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/uninstall_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/update_button.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/update_button.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/settings/update_button.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/settings/update_button.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/changelog_utils.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/changelog_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/changelog_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/changelog_utils.test.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/changelog_utils.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/changelog_utils.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/changelog_utils.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/changelog_utils.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/get_install_route_options.test.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/get_install_route_options.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/get_install_route_options.test.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/get_install_route_options.test.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/get_install_route_options.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/get_install_route_options.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/get_install_route_options.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/get_install_route_options.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/utils/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/detail/utils/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/available_packages.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/available_packages.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/available_packages.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/available_packages.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.test.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/category_facets.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/category_facets.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/category_facets.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/category_facets.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/home.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/home.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/home.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/home.stories.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/hooks/use_available_packages.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/hooks/use_available_packages.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/hooks/use_available_packages.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/hooks/use_available_packages.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/hooks/use_build_integrations_url.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/hooks/use_build_integrations_url.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/hooks/use_build_integrations_url.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/hooks/use_build_integrations_url.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/installed_packages.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/installed_packages.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/installed_packages.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/installed_packages.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/util.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/util.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/util.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/util.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/policy/index.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/policy/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/policy/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/policy/index.tsx diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/sections/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/services/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/services/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/services/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/services/index.ts diff --git a/x-pack/plugins/fleet/public/applications/integrations/types/index.ts b/x-pack/platform/plugins/shared/fleet/public/applications/integrations/types/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/applications/integrations/types/index.ts rename to x-pack/platform/plugins/shared/fleet/public/applications/integrations/types/index.ts diff --git a/x-pack/plugins/fleet/public/assets/1_install_agent.svg b/x-pack/platform/plugins/shared/fleet/public/assets/1_install_agent.svg similarity index 100% rename from x-pack/plugins/fleet/public/assets/1_install_agent.svg rename to x-pack/platform/plugins/shared/fleet/public/assets/1_install_agent.svg diff --git a/x-pack/plugins/fleet/public/assets/2_add_integration.svg b/x-pack/platform/plugins/shared/fleet/public/assets/2_add_integration.svg similarity index 100% rename from x-pack/plugins/fleet/public/assets/2_add_integration.svg rename to x-pack/platform/plugins/shared/fleet/public/assets/2_add_integration.svg diff --git a/x-pack/plugins/fleet/public/assets/3_confirm_data.svg b/x-pack/platform/plugins/shared/fleet/public/assets/3_confirm_data.svg similarity index 100% rename from x-pack/plugins/fleet/public/assets/3_confirm_data.svg rename to x-pack/platform/plugins/shared/fleet/public/assets/3_confirm_data.svg diff --git a/x-pack/plugins/fleet/public/assets/announcement.jpg b/x-pack/platform/plugins/shared/fleet/public/assets/announcement.jpg similarity index 100% rename from x-pack/plugins/fleet/public/assets/announcement.jpg rename to x-pack/platform/plugins/shared/fleet/public/assets/announcement.jpg diff --git a/x-pack/plugins/fleet/public/assets/arrow_right_curve_over.svg b/x-pack/platform/plugins/shared/fleet/public/assets/arrow_right_curve_over.svg similarity index 100% rename from x-pack/plugins/fleet/public/assets/arrow_right_curve_over.svg rename to x-pack/platform/plugins/shared/fleet/public/assets/arrow_right_curve_over.svg diff --git a/x-pack/plugins/fleet/public/assets/arrow_right_curve_under.svg b/x-pack/platform/plugins/shared/fleet/public/assets/arrow_right_curve_under.svg similarity index 100% rename from x-pack/plugins/fleet/public/assets/arrow_right_curve_under.svg rename to x-pack/platform/plugins/shared/fleet/public/assets/arrow_right_curve_under.svg diff --git a/x-pack/plugins/fleet/public/components/add_agent_help_popover.tsx b/x-pack/platform/plugins/shared/fleet/public/components/add_agent_help_popover.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/add_agent_help_popover.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/add_agent_help_popover.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/advanced_agent_authentication_settings.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/advanced_agent_authentication_settings.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/advanced_agent_authentication_settings.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/advanced_agent_authentication_settings.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.mocks.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.mocks.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.mocks.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.mocks.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_policy_select_create.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_policy_select_create.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_policy_select_create.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_policy_select_create.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.test.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/agent_policy_selection.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/confirm_agent_enrollment.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/confirm_agent_enrollment.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/confirm_agent_enrollment.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/confirm_agent_enrollment.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/confirm_incoming_data.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/confirm_incoming_data.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/confirm_incoming_data.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/confirm_incoming_data.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/default_missing_requirements.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/default_missing_requirements.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/default_missing_requirements.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/default_missing_requirements.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/hooks.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/hooks.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/hooks.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/hooks.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/index.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/installation_message.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/installation_message.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/installation_message.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/installation_message.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/instructions.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/instructions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/instructions.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/instructions.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/kubernetes_instructions.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/kubernetes_instructions.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/kubernetes_instructions.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/kubernetes_instructions.test.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/kubernetes_instructions.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/kubernetes_instructions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/kubernetes_instructions.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/kubernetes_instructions.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/missing_fleet_server_host_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/missing_fleet_server_host_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/missing_fleet_server_host_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/missing_fleet_server_host_callout.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/agent_enrollment_confirmation_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/agent_enrollment_confirmation_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/agent_enrollment_confirmation_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/agent_enrollment_confirmation_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/agent_enrollment_key_selection_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/agent_enrollment_key_selection_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/agent_enrollment_key_selection_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/agent_enrollment_key_selection_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/agent_policy_selection_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/agent_policy_selection_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/agent_policy_selection_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/agent_policy_selection_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/compute_steps.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/compute_steps.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/compute_steps.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/compute_steps.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/configure_standalone_agent_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/configure_standalone_agent_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/configure_standalone_agent_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/configure_standalone_agent_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/incoming_data_confirmation_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/incoming_data_confirmation_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/incoming_data_confirmation_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/incoming_data_confirmation_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/index.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/install_managed_agent_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/install_managed_agent_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/install_managed_agent_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/install_managed_agent_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/install_standalone_agent_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/install_standalone_agent_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/install_standalone_agent_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/install_standalone_agent_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/installation_mode_selection_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/installation_mode_selection_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/installation_mode_selection_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/installation_mode_selection_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/run_k8s_apply_command_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/run_k8s_apply_command_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps/run_k8s_apply_command_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/steps/run_k8s_apply_command_step.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/types.ts b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/types.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/types.ts rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/types.ts diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/use_get_agent_incoming_data.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/use_get_agent_incoming_data.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_enrollment_flyout/use_get_agent_incoming_data.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_enrollment_flyout/use_get_agent_incoming_data.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_policy_package_badge.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_policy_package_badge.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_policy_package_badge.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_policy_package_badge.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_policy_package_badges.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_policy_package_badges.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_policy_package_badges.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_policy_package_badges.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_policy_summary_line.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_policy_summary_line.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_policy_summary_line.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_policy_summary_line.test.tsx diff --git a/x-pack/plugins/fleet/public/components/agent_policy_summary_line.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agent_policy_summary_line.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agent_policy_summary_line.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agent_policy_summary_line.tsx diff --git a/x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/index.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/index.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/index.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/index.test.tsx diff --git a/x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/index.tsx diff --git a/x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/next_steps.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/next_steps.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/next_steps.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/next_steps.tsx diff --git a/x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/step_confirm_data.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/step_confirm_data.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/step_confirm_data.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/step_confirm_data.tsx diff --git a/x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/step_confirm_enrollment.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/step_confirm_enrollment.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/agentless_enrollment_flyout/step_confirm_enrollment.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/step_confirm_enrollment.tsx diff --git a/x-pack/plugins/fleet/public/components/api_key_field.tsx b/x-pack/platform/plugins/shared/fleet/public/components/api_key_field.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/api_key_field.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/api_key_field.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/azure_arm_template_guide.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/azure_arm_template_guide.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/azure_arm_template_guide.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/azure_arm_template_guide.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/azure_arm_template_instructions.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/azure_arm_template_instructions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/azure_arm_template_instructions.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/azure_arm_template_instructions.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/cloud_formation_guide.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/cloud_formation_guide.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/cloud_formation_guide.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/cloud_formation_guide.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/cloud_formation_instructions.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/cloud_formation_instructions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/cloud_formation_instructions.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/cloud_formation_instructions.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/google_cloud_shell_guide.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/google_cloud_shell_guide.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/google_cloud_shell_guide.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/google_cloud_shell_guide.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/google_cloud_shell_instructions.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/google_cloud_shell_instructions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/google_cloud_shell_instructions.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/google_cloud_shell_instructions.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/hooks/index.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/hooks/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/hooks/index.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/hooks/index.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/hooks/use_create_azure_arm_template_url.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/hooks/use_create_azure_arm_template_url.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/hooks/use_create_azure_arm_template_url.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/hooks/use_create_azure_arm_template_url.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/hooks/use_create_cloud_formation_url.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/hooks/use_create_cloud_formation_url.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/hooks/use_create_cloud_formation_url.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/hooks/use_create_cloud_formation_url.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/hooks/use_create_cloud_shell_url.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/hooks/use_create_cloud_shell_url.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/hooks/use_create_cloud_shell_url.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/hooks/use_create_cloud_shell_url.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/index.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/index.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/index.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/install_azure_arm_template_managed_agent_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/install_azure_arm_template_managed_agent_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/install_azure_arm_template_managed_agent_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/install_azure_arm_template_managed_agent_step.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/install_cloud_formation_managed_agent_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/install_cloud_formation_managed_agent_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/install_cloud_formation_managed_agent_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/install_cloud_formation_managed_agent_step.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/install_google_cloud_shell_managed_agent_step.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/install_google_cloud_shell_managed_agent_step.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/install_google_cloud_shell_managed_agent_step.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/install_google_cloud_shell_managed_agent_step.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_azure_arm_props_from_package_policy.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_azure_arm_props_from_package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_azure_arm_props_from_package_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_azure_arm_props_from_package_policy.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_formation_props_from_package_policy.test.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_formation_props_from_package_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_formation_props_from_package_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_formation_props_from_package_policy.test.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_formation_props_from_package_policy.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_formation_props_from_package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_formation_props_from_package_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_formation_props_from_package_policy.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_agent_policy.test.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_agent_policy.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_agent_policy.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_package_policy.test.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_package_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_package_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_package_policy.test.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_package_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_package_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_package_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_cloud_shell_url_from_package_policy.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_agent_policy.test.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_agent_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_agent_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_agent_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_agent_policy.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_package_policy.test.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_package_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_package_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_package_policy.test.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_package_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_package_policy.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_package_policy.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_gcp_integration_details_from_package_policy.tsx diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_template_url_from_agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_template_url_from_agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_template_url_from_agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_template_url_from_agent_policy.test.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_template_url_from_agent_policy.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_template_url_from_agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_template_url_from_agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_template_url_from_agent_policy.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_template_url_from_package_info.test.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_template_url_from_package_info.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_template_url_from_package_info.test.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_template_url_from_package_info.test.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_template_url_from_package_info.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_template_url_from_package_info.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/get_template_url_from_package_info.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/get_template_url_from_package_info.ts diff --git a/x-pack/plugins/fleet/public/components/cloud_security_posture/services/index.ts b/x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/cloud_security_posture/services/index.ts rename to x-pack/platform/plugins/shared/fleet/public/components/cloud_security_posture/services/index.ts diff --git a/x-pack/plugins/fleet/public/components/confirm_force_install_modal.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/components/confirm_force_install_modal.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/confirm_force_install_modal.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/confirm_force_install_modal.stories.tsx diff --git a/x-pack/plugins/fleet/public/components/confirm_force_install_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/components/confirm_force_install_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/confirm_force_install_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/confirm_force_install_modal.tsx diff --git a/x-pack/plugins/fleet/public/components/context_menu_actions.tsx b/x-pack/platform/plugins/shared/fleet/public/components/context_menu_actions.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/context_menu_actions.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/context_menu_actions.tsx diff --git a/x-pack/plugins/fleet/public/components/custom_assets_accordion.tsx b/x-pack/platform/plugins/shared/fleet/public/components/custom_assets_accordion.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/custom_assets_accordion.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/custom_assets_accordion.tsx diff --git a/x-pack/plugins/fleet/public/components/danger_eui_context_menu_item.tsx b/x-pack/platform/plugins/shared/fleet/public/components/danger_eui_context_menu_item.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/danger_eui_context_menu_item.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/danger_eui_context_menu_item.tsx diff --git a/x-pack/plugins/fleet/public/components/devtools_request_flyout/devtools_request_flyout.tsx b/x-pack/platform/plugins/shared/fleet/public/components/devtools_request_flyout/devtools_request_flyout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/devtools_request_flyout/devtools_request_flyout.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/devtools_request_flyout/devtools_request_flyout.tsx diff --git a/x-pack/plugins/fleet/public/components/devtools_request_flyout/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/devtools_request_flyout/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/devtools_request_flyout/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/devtools_request_flyout/index.tsx diff --git a/x-pack/plugins/fleet/public/components/enrollment_instructions/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/enrollment_instructions/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/index.tsx diff --git a/x-pack/plugins/fleet/public/components/enrollment_instructions/install_section.tsx b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/install_section.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/enrollment_instructions/install_section.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/install_section.tsx diff --git a/x-pack/plugins/fleet/public/components/enrollment_instructions/manual/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/manual/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/enrollment_instructions/manual/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/manual/index.tsx diff --git a/x-pack/plugins/fleet/public/components/enrollment_instructions/root_privileges_callout.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/root_privileges_callout.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/enrollment_instructions/root_privileges_callout.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/root_privileges_callout.test.tsx diff --git a/x-pack/plugins/fleet/public/components/enrollment_instructions/root_privileges_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/root_privileges_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/enrollment_instructions/root_privileges_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/root_privileges_callout.tsx diff --git a/x-pack/plugins/fleet/public/components/enrollment_instructions/standalone/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/standalone/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/enrollment_instructions/standalone/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/standalone/index.tsx diff --git a/x-pack/plugins/fleet/public/components/enrollment_instructions/unprivileged_info.tsx b/x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/unprivileged_info.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/enrollment_instructions/unprivileged_info.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/enrollment_instructions/unprivileged_info.tsx diff --git a/x-pack/plugins/fleet/public/components/error.tsx b/x-pack/platform/plugins/shared/fleet/public/components/error.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/error.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/error.tsx diff --git a/x-pack/plugins/fleet/public/components/eui_button_with_tooltip.tsx b/x-pack/platform/plugins/shared/fleet/public/components/eui_button_with_tooltip.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/eui_button_with_tooltip.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/eui_button_with_tooltip.tsx diff --git a/x-pack/plugins/fleet/public/components/extension_wrapper.tsx b/x-pack/platform/plugins/shared/fleet/public/components/extension_wrapper.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/extension_wrapper.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/extension_wrapper.tsx diff --git a/x-pack/plugins/fleet/public/components/fleet_setup_loading.tsx b/x-pack/platform/plugins/shared/fleet/public/components/fleet_setup_loading.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/fleet_setup_loading.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/fleet_setup_loading.tsx diff --git a/x-pack/plugins/fleet/public/components/header.tsx b/x-pack/platform/plugins/shared/fleet/public/components/header.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/header.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/header.tsx diff --git a/x-pack/plugins/fleet/public/components/home_integration/index.tsx b/x-pack/platform/plugins/shared/fleet/public/components/home_integration/index.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/home_integration/index.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/home_integration/index.tsx diff --git a/x-pack/plugins/fleet/public/components/home_integration/tutorial_directory_header_link.tsx b/x-pack/platform/plugins/shared/fleet/public/components/home_integration/tutorial_directory_header_link.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/home_integration/tutorial_directory_header_link.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/home_integration/tutorial_directory_header_link.tsx diff --git a/x-pack/plugins/fleet/public/components/home_integration/tutorial_module_notice.tsx b/x-pack/platform/plugins/shared/fleet/public/components/home_integration/tutorial_module_notice.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/home_integration/tutorial_module_notice.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/home_integration/tutorial_module_notice.tsx diff --git a/x-pack/plugins/fleet/public/components/index.ts b/x-pack/platform/plugins/shared/fleet/public/components/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/index.ts rename to x-pack/platform/plugins/shared/fleet/public/components/index.ts diff --git a/x-pack/plugins/fleet/public/components/linked_agent_count.tsx b/x-pack/platform/plugins/shared/fleet/public/components/linked_agent_count.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/linked_agent_count.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/linked_agent_count.tsx diff --git a/x-pack/plugins/fleet/public/components/loading.tsx b/x-pack/platform/plugins/shared/fleet/public/components/loading.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/loading.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/loading.tsx diff --git a/x-pack/plugins/fleet/public/components/manage_agent_policies_modal.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/manage_agent_policies_modal.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/manage_agent_policies_modal.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/manage_agent_policies_modal.test.tsx diff --git a/x-pack/plugins/fleet/public/components/manage_agent_policies_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/components/manage_agent_policies_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/manage_agent_policies_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/manage_agent_policies_modal.tsx diff --git a/x-pack/plugins/fleet/public/components/missing_privileges_tooltip.tsx b/x-pack/platform/plugins/shared/fleet/public/components/missing_privileges_tooltip.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/missing_privileges_tooltip.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/missing_privileges_tooltip.tsx diff --git a/x-pack/plugins/fleet/public/components/multiple_agent_policy_summary_line.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/multiple_agent_policy_summary_line.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/multiple_agent_policy_summary_line.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/multiple_agent_policy_summary_line.test.tsx diff --git a/x-pack/plugins/fleet/public/components/multiple_agent_policy_summary_line.tsx b/x-pack/platform/plugins/shared/fleet/public/components/multiple_agent_policy_summary_line.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/multiple_agent_policy_summary_line.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/multiple_agent_policy_summary_line.tsx diff --git a/x-pack/plugins/fleet/public/components/new_enrollment_key_modal.tsx b/x-pack/platform/plugins/shared/fleet/public/components/new_enrollment_key_modal.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/new_enrollment_key_modal.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/new_enrollment_key_modal.tsx diff --git a/x-pack/plugins/fleet/public/components/package_icon.tsx b/x-pack/platform/plugins/shared/fleet/public/components/package_icon.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/package_icon.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/package_icon.tsx diff --git a/x-pack/plugins/fleet/public/components/package_policy_actions_menu.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/package_policy_actions_menu.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/package_policy_actions_menu.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/package_policy_actions_menu.test.tsx diff --git a/x-pack/plugins/fleet/public/components/package_policy_actions_menu.tsx b/x-pack/platform/plugins/shared/fleet/public/components/package_policy_actions_menu.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/package_policy_actions_menu.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/package_policy_actions_menu.tsx diff --git a/x-pack/plugins/fleet/public/components/package_policy_delete_provider.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/package_policy_delete_provider.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/package_policy_delete_provider.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/package_policy_delete_provider.test.tsx diff --git a/x-pack/plugins/fleet/public/components/package_policy_delete_provider.tsx b/x-pack/platform/plugins/shared/fleet/public/components/package_policy_delete_provider.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/package_policy_delete_provider.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/package_policy_delete_provider.tsx diff --git a/x-pack/plugins/fleet/public/components/platform_selector.tsx b/x-pack/platform/plugins/shared/fleet/public/components/platform_selector.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/platform_selector.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/platform_selector.tsx diff --git a/x-pack/plugins/fleet/public/components/release_badge.tsx b/x-pack/platform/plugins/shared/fleet/public/components/release_badge.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/release_badge.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/release_badge.tsx diff --git a/x-pack/plugins/fleet/public/components/transform_install_as_current_user_callout.tsx b/x-pack/platform/plugins/shared/fleet/public/components/transform_install_as_current_user_callout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/transform_install_as_current_user_callout.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/transform_install_as_current_user_callout.tsx diff --git a/x-pack/plugins/fleet/public/components/uninstall_command_flyout/empty_policy_name_hint.tsx b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/empty_policy_name_hint.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/uninstall_command_flyout/empty_policy_name_hint.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/empty_policy_name_hint.tsx diff --git a/x-pack/plugins/fleet/public/components/uninstall_command_flyout/index.ts b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/uninstall_command_flyout/index.ts rename to x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/index.ts diff --git a/x-pack/plugins/fleet/public/components/uninstall_command_flyout/types.ts b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/types.ts similarity index 100% rename from x-pack/plugins/fleet/public/components/uninstall_command_flyout/types.ts rename to x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/types.ts diff --git a/x-pack/plugins/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.stories.tsx b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.stories.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.stories.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.stories.tsx diff --git a/x-pack/plugins/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.test.tsx b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.test.tsx diff --git a/x-pack/plugins/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.tsx b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_command_flyout.tsx diff --git a/x-pack/plugins/fleet/public/components/uninstall_command_flyout/uninstall_commands_per_platform.tsx b/x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_commands_per_platform.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/uninstall_command_flyout/uninstall_commands_per_platform.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/uninstall_command_flyout/uninstall_commands_per_platform.tsx diff --git a/x-pack/plugins/fleet/public/components/with_guided_onboarding_tour.tsx b/x-pack/platform/plugins/shared/fleet/public/components/with_guided_onboarding_tour.tsx similarity index 100% rename from x-pack/plugins/fleet/public/components/with_guided_onboarding_tour.tsx rename to x-pack/platform/plugins/shared/fleet/public/components/with_guided_onboarding_tour.tsx diff --git a/x-pack/plugins/fleet/public/constants/index.ts b/x-pack/platform/plugins/shared/fleet/public/constants/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/constants/index.ts rename to x-pack/platform/plugins/shared/fleet/public/constants/index.ts diff --git a/x-pack/plugins/fleet/public/constants/page_paths.ts b/x-pack/platform/plugins/shared/fleet/public/constants/page_paths.ts similarity index 100% rename from x-pack/plugins/fleet/public/constants/page_paths.ts rename to x-pack/platform/plugins/shared/fleet/public/constants/page_paths.ts diff --git a/x-pack/plugins/fleet/public/custom_logs_assets_extension.tsx b/x-pack/platform/plugins/shared/fleet/public/custom_logs_assets_extension.tsx similarity index 100% rename from x-pack/plugins/fleet/public/custom_logs_assets_extension.tsx rename to x-pack/platform/plugins/shared/fleet/public/custom_logs_assets_extension.tsx diff --git a/x-pack/plugins/fleet/public/deep_links.ts b/x-pack/platform/plugins/shared/fleet/public/deep_links.ts similarity index 100% rename from x-pack/plugins/fleet/public/deep_links.ts rename to x-pack/platform/plugins/shared/fleet/public/deep_links.ts diff --git a/x-pack/plugins/fleet/public/hooks/index.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/index.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/index.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_agent_enrollment_flyout.data.test.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_enrollment_flyout.data.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_agent_enrollment_flyout.data.test.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_enrollment_flyout.data.test.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_agent_enrollment_flyout_data.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_enrollment_flyout_data.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_agent_enrollment_flyout_data.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_enrollment_flyout_data.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_agent_policy_refresh.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_policy_refresh.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_agent_policy_refresh.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_policy_refresh.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_agent_version.test.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_version.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_agent_version.test.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_version.test.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_agent_version.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_version.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_agent_version.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_agent_version.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_authz.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_authz.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_authz.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_authz.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_config.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_config.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_config.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_config.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_core.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_core.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_core.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_core.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_debounce.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_debounce.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_debounce.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_debounce.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_dismissable_tour.test.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_dismissable_tour.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_dismissable_tour.test.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_dismissable_tour.test.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_dismissable_tour.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_dismissable_tour.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_dismissable_tour.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_dismissable_tour.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_fleet_server_agents.test.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_agents.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_fleet_server_agents.test.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_agents.test.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_fleet_server_agents.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_agents.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_fleet_server_agents.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_agents.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_fleet_server_hosts_for_policy.test.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_hosts_for_policy.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_fleet_server_hosts_for_policy.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_hosts_for_policy.test.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_fleet_server_hosts_for_policy.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_hosts_for_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_fleet_server_hosts_for_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_hosts_for_policy.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_fleet_server_standalone.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_standalone.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_fleet_server_standalone.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_server_standalone.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_fleet_status.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_status.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_fleet_status.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_fleet_status.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_flyout_context.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_flyout_context.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_flyout_context.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_flyout_context.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_input.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_input.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_input.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_input.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_intra_app_state.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_intra_app_state.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_intra_app_state.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_intra_app_state.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_is_guided_onboarding_active.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_is_guided_onboarding_active.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_is_guided_onboarding_active.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_is_guided_onboarding_active.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_is_package_policy_upgradable.test.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_is_package_policy_upgradable.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_is_package_policy_upgradable.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_is_package_policy_upgradable.test.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_is_package_policy_upgradable.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_is_package_policy_upgradable.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_is_package_policy_upgradable.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_is_package_policy_upgradable.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_kibana_link.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_kibana_link.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_kibana_link.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_kibana_link.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_kibana_version.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_kibana_version.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_kibana_version.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_kibana_version.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_license.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_license.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_license.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_license.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_link.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_link.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_link.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_link.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_locator.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_locator.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_locator.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_locator.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_multiple_agent_policies.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_multiple_agent_policies.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_multiple_agent_policies.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_multiple_agent_policies.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_package_icon_type.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_package_icon_type.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_package_icon_type.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_package_icon_type.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_pagination.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_pagination.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_pagination.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_pagination.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_platform.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_platform.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_platform.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_platform.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_request/agent_policy.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/agent_policy.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/agents.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/agents.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/agents.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/agents.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/app.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/app.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/app.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/app.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/data_stream.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/data_stream.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/data_stream.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/data_stream.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/download_source.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/download_source.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/download_source.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/download_source.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/enrollment_api_keys.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/enrollment_api_keys.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/enrollment_api_keys.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/enrollment_api_keys.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/epm.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/epm.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/epm.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/epm.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/fleet_proxies.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/fleet_proxies.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/fleet_proxies.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/fleet_proxies.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/fleet_server_hosts.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/fleet_server_hosts.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/fleet_server_hosts.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/fleet_server_hosts.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/health_check.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/health_check.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/health_check.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/health_check.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/index.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/index.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/index.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/index_management.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/index_management.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/index_management.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/index_management.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/k8s.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/k8s.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/k8s.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/k8s.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/outputs.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/outputs.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/outputs.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/outputs.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/package_policy.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/package_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/package_policy.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/settings.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/settings.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/settings.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/settings.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/setup.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/setup.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/setup.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/setup.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/spaces.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/spaces.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/spaces.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/spaces.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/standalone_agent_api_key.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/standalone_agent_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/standalone_agent_api_key.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/standalone_agent_api_key.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/uninstall_tokens.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/uninstall_tokens.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/uninstall_tokens.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/uninstall_tokens.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_request/use_request.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_request/use_request.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_request/use_request.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_request/use_request.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_sorting.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_sorting.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_sorting.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_sorting.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_space_settings_context.test.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_space_settings_context.test.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_space_settings_context.test.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_space_settings_context.test.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_space_settings_context.tsx b/x-pack/platform/plugins/shared/fleet/public/hooks/use_space_settings_context.tsx similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_space_settings_context.tsx rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_space_settings_context.tsx diff --git a/x-pack/plugins/fleet/public/hooks/use_ui_extension.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_ui_extension.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_ui_extension.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_ui_extension.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_url_pagination.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_url_pagination.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_url_pagination.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_url_pagination.ts diff --git a/x-pack/plugins/fleet/public/hooks/use_url_params.ts b/x-pack/platform/plugins/shared/fleet/public/hooks/use_url_params.ts similarity index 100% rename from x-pack/plugins/fleet/public/hooks/use_url_params.ts rename to x-pack/platform/plugins/shared/fleet/public/hooks/use_url_params.ts diff --git a/x-pack/plugins/fleet/public/index.ts b/x-pack/platform/plugins/shared/fleet/public/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/index.ts rename to x-pack/platform/plugins/shared/fleet/public/index.ts diff --git a/x-pack/plugins/fleet/public/layouts/index.ts b/x-pack/platform/plugins/shared/fleet/public/layouts/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/layouts/index.ts rename to x-pack/platform/plugins/shared/fleet/public/layouts/index.ts diff --git a/x-pack/plugins/fleet/public/layouts/with_header.tsx b/x-pack/platform/plugins/shared/fleet/public/layouts/with_header.tsx similarity index 100% rename from x-pack/plugins/fleet/public/layouts/with_header.tsx rename to x-pack/platform/plugins/shared/fleet/public/layouts/with_header.tsx diff --git a/x-pack/plugins/fleet/public/layouts/without_header.tsx b/x-pack/platform/plugins/shared/fleet/public/layouts/without_header.tsx similarity index 100% rename from x-pack/plugins/fleet/public/layouts/without_header.tsx rename to x-pack/platform/plugins/shared/fleet/public/layouts/without_header.tsx diff --git a/x-pack/plugins/fleet/public/lazy_custom_logs_assets_extension.tsx b/x-pack/platform/plugins/shared/fleet/public/lazy_custom_logs_assets_extension.tsx similarity index 100% rename from x-pack/plugins/fleet/public/lazy_custom_logs_assets_extension.tsx rename to x-pack/platform/plugins/shared/fleet/public/lazy_custom_logs_assets_extension.tsx diff --git a/x-pack/plugins/fleet/public/mock/create_test_renderer.tsx b/x-pack/platform/plugins/shared/fleet/public/mock/create_test_renderer.tsx similarity index 100% rename from x-pack/plugins/fleet/public/mock/create_test_renderer.tsx rename to x-pack/platform/plugins/shared/fleet/public/mock/create_test_renderer.tsx diff --git a/x-pack/plugins/fleet/public/mock/fleet_start_services.tsx b/x-pack/platform/plugins/shared/fleet/public/mock/fleet_start_services.tsx similarity index 100% rename from x-pack/plugins/fleet/public/mock/fleet_start_services.tsx rename to x-pack/platform/plugins/shared/fleet/public/mock/fleet_start_services.tsx diff --git a/x-pack/plugins/fleet/public/mock/index.ts b/x-pack/platform/plugins/shared/fleet/public/mock/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/mock/index.ts rename to x-pack/platform/plugins/shared/fleet/public/mock/index.ts diff --git a/x-pack/plugins/fleet/public/mock/plugin_configuration.ts b/x-pack/platform/plugins/shared/fleet/public/mock/plugin_configuration.ts similarity index 100% rename from x-pack/plugins/fleet/public/mock/plugin_configuration.ts rename to x-pack/platform/plugins/shared/fleet/public/mock/plugin_configuration.ts diff --git a/x-pack/plugins/fleet/public/mock/plugin_dependencies.ts b/x-pack/platform/plugins/shared/fleet/public/mock/plugin_dependencies.ts similarity index 100% rename from x-pack/plugins/fleet/public/mock/plugin_dependencies.ts rename to x-pack/platform/plugins/shared/fleet/public/mock/plugin_dependencies.ts diff --git a/x-pack/plugins/fleet/public/mock/plugin_interfaces.ts b/x-pack/platform/plugins/shared/fleet/public/mock/plugin_interfaces.ts similarity index 100% rename from x-pack/plugins/fleet/public/mock/plugin_interfaces.ts rename to x-pack/platform/plugins/shared/fleet/public/mock/plugin_interfaces.ts diff --git a/x-pack/plugins/fleet/public/mock/types.ts b/x-pack/platform/plugins/shared/fleet/public/mock/types.ts similarity index 100% rename from x-pack/plugins/fleet/public/mock/types.ts rename to x-pack/platform/plugins/shared/fleet/public/mock/types.ts diff --git a/x-pack/plugins/fleet/public/mocks.ts b/x-pack/platform/plugins/shared/fleet/public/mocks.ts similarity index 100% rename from x-pack/plugins/fleet/public/mocks.ts rename to x-pack/platform/plugins/shared/fleet/public/mocks.ts diff --git a/x-pack/plugins/fleet/public/plugin.ts b/x-pack/platform/plugins/shared/fleet/public/plugin.ts similarity index 100% rename from x-pack/plugins/fleet/public/plugin.ts rename to x-pack/platform/plugins/shared/fleet/public/plugin.ts diff --git a/x-pack/plugins/fleet/public/search_provider.test.ts b/x-pack/platform/plugins/shared/fleet/public/search_provider.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/search_provider.test.ts rename to x-pack/platform/plugins/shared/fleet/public/search_provider.test.ts diff --git a/x-pack/plugins/fleet/public/search_provider.ts b/x-pack/platform/plugins/shared/fleet/public/search_provider.ts similarity index 100% rename from x-pack/plugins/fleet/public/search_provider.ts rename to x-pack/platform/plugins/shared/fleet/public/search_provider.ts diff --git a/x-pack/plugins/fleet/public/services/custom_integrations.ts b/x-pack/platform/plugins/shared/fleet/public/services/custom_integrations.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/custom_integrations.ts rename to x-pack/platform/plugins/shared/fleet/public/services/custom_integrations.ts diff --git a/x-pack/plugins/fleet/public/services/experimental_features.ts b/x-pack/platform/plugins/shared/fleet/public/services/experimental_features.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/experimental_features.ts rename to x-pack/platform/plugins/shared/fleet/public/services/experimental_features.ts diff --git a/x-pack/plugins/fleet/public/services/has_deferred_installations.test.ts b/x-pack/platform/plugins/shared/fleet/public/services/has_deferred_installations.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/has_deferred_installations.test.ts rename to x-pack/platform/plugins/shared/fleet/public/services/has_deferred_installations.test.ts diff --git a/x-pack/plugins/fleet/public/services/has_deferred_installations.ts b/x-pack/platform/plugins/shared/fleet/public/services/has_deferred_installations.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/has_deferred_installations.ts rename to x-pack/platform/plugins/shared/fleet/public/services/has_deferred_installations.ts diff --git a/x-pack/plugins/fleet/public/services/icons.ts b/x-pack/platform/plugins/shared/fleet/public/services/icons.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/icons.ts rename to x-pack/platform/plugins/shared/fleet/public/services/icons.ts diff --git a/x-pack/plugins/fleet/public/services/increment_policy_name.test.ts b/x-pack/platform/plugins/shared/fleet/public/services/increment_policy_name.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/increment_policy_name.test.ts rename to x-pack/platform/plugins/shared/fleet/public/services/increment_policy_name.test.ts diff --git a/x-pack/plugins/fleet/public/services/increment_policy_name.ts b/x-pack/platform/plugins/shared/fleet/public/services/increment_policy_name.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/increment_policy_name.ts rename to x-pack/platform/plugins/shared/fleet/public/services/increment_policy_name.ts diff --git a/x-pack/plugins/fleet/public/services/index.ts b/x-pack/platform/plugins/shared/fleet/public/services/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/index.ts rename to x-pack/platform/plugins/shared/fleet/public/services/index.ts diff --git a/x-pack/plugins/fleet/public/services/is_package_updatable.ts b/x-pack/platform/plugins/shared/fleet/public/services/is_package_updatable.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/is_package_updatable.ts rename to x-pack/platform/plugins/shared/fleet/public/services/is_package_updatable.ts diff --git a/x-pack/plugins/fleet/public/services/package_verification.test.ts b/x-pack/platform/plugins/shared/fleet/public/services/package_verification.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/package_verification.test.ts rename to x-pack/platform/plugins/shared/fleet/public/services/package_verification.test.ts diff --git a/x-pack/plugins/fleet/public/services/package_verification.ts b/x-pack/platform/plugins/shared/fleet/public/services/package_verification.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/package_verification.ts rename to x-pack/platform/plugins/shared/fleet/public/services/package_verification.ts diff --git a/x-pack/plugins/fleet/public/services/pkg_key_from_package_info.ts b/x-pack/platform/plugins/shared/fleet/public/services/pkg_key_from_package_info.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/pkg_key_from_package_info.ts rename to x-pack/platform/plugins/shared/fleet/public/services/pkg_key_from_package_info.ts diff --git a/x-pack/plugins/fleet/public/services/ui_extensions.test.ts b/x-pack/platform/plugins/shared/fleet/public/services/ui_extensions.test.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/ui_extensions.test.ts rename to x-pack/platform/plugins/shared/fleet/public/services/ui_extensions.test.ts diff --git a/x-pack/plugins/fleet/public/services/ui_extensions.ts b/x-pack/platform/plugins/shared/fleet/public/services/ui_extensions.ts similarity index 100% rename from x-pack/plugins/fleet/public/services/ui_extensions.ts rename to x-pack/platform/plugins/shared/fleet/public/services/ui_extensions.ts diff --git a/x-pack/plugins/fleet/public/types/in_memory_package_policy.ts b/x-pack/platform/plugins/shared/fleet/public/types/in_memory_package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/public/types/in_memory_package_policy.ts rename to x-pack/platform/plugins/shared/fleet/public/types/in_memory_package_policy.ts diff --git a/x-pack/plugins/fleet/public/types/index.ts b/x-pack/platform/plugins/shared/fleet/public/types/index.ts similarity index 100% rename from x-pack/plugins/fleet/public/types/index.ts rename to x-pack/platform/plugins/shared/fleet/public/types/index.ts diff --git a/x-pack/plugins/fleet/public/types/intra_app_route_state.ts b/x-pack/platform/plugins/shared/fleet/public/types/intra_app_route_state.ts similarity index 100% rename from x-pack/plugins/fleet/public/types/intra_app_route_state.ts rename to x-pack/platform/plugins/shared/fleet/public/types/intra_app_route_state.ts diff --git a/x-pack/plugins/fleet/public/types/ui_extensions.ts b/x-pack/platform/plugins/shared/fleet/public/types/ui_extensions.ts similarity index 100% rename from x-pack/plugins/fleet/public/types/ui_extensions.ts rename to x-pack/platform/plugins/shared/fleet/public/types/ui_extensions.ts diff --git a/x-pack/plugins/fleet/scripts/create_agent_policies/create_agent_policies.ts b/x-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/create_agent_policies.ts similarity index 100% rename from x-pack/plugins/fleet/scripts/create_agent_policies/create_agent_policies.ts rename to x-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/create_agent_policies.ts diff --git a/x-pack/plugins/fleet/scripts/create_agent_policies/fixtures.ts b/x-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/fixtures.ts similarity index 100% rename from x-pack/plugins/fleet/scripts/create_agent_policies/fixtures.ts rename to x-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/fixtures.ts diff --git a/x-pack/plugins/fleet/scripts/create_agent_policies/index.js b/x-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/index.js similarity index 79% rename from x-pack/plugins/fleet/scripts/create_agent_policies/index.js rename to x-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/index.js index a61ed0e7e54d4..ea4670c46fe3d 100644 --- a/x-pack/plugins/fleet/scripts/create_agent_policies/index.js +++ b/x-pack/platform/plugins/shared/fleet/scripts/create_agent_policies/index.js @@ -5,13 +5,13 @@ * 2.0. */ -require('../../../../../src/setup_node_env'); +require('../../../../../../../src/setup_node_env'); require('./create_agent_policies').run(); /* Usage: -cd x-pack/plugins/fleet +cd x-pack/platform/plugins/shared/fleet node scripts/create_agent_policies/index.js */ diff --git a/x-pack/plugins/fleet/scripts/create_agents/create_agents.ts b/x-pack/platform/plugins/shared/fleet/scripts/create_agents/create_agents.ts similarity index 100% rename from x-pack/plugins/fleet/scripts/create_agents/create_agents.ts rename to x-pack/platform/plugins/shared/fleet/scripts/create_agents/create_agents.ts diff --git a/x-pack/plugins/fleet/scripts/create_agents/index.js b/x-pack/platform/plugins/shared/fleet/scripts/create_agents/index.js similarity index 78% rename from x-pack/plugins/fleet/scripts/create_agents/index.js rename to x-pack/platform/plugins/shared/fleet/scripts/create_agents/index.js index 62614b67ea69b..7970b26088c4b 100644 --- a/x-pack/plugins/fleet/scripts/create_agents/index.js +++ b/x-pack/platform/plugins/shared/fleet/scripts/create_agents/index.js @@ -5,13 +5,13 @@ * 2.0. */ -require('../../../../../src/setup_node_env'); +require('../../../../../../../src/setup_node_env'); require('./create_agents').run(); /* Usage: -cd x-pack/plugins/fleet +cd x-pack/platform/plugins/shared/fleet node scripts/create_agents/index.js */ diff --git a/x-pack/plugins/fleet/scripts/get_all_packages/get_all_packages.ts b/x-pack/platform/plugins/shared/fleet/scripts/get_all_packages/get_all_packages.ts similarity index 100% rename from x-pack/plugins/fleet/scripts/get_all_packages/get_all_packages.ts rename to x-pack/platform/plugins/shared/fleet/scripts/get_all_packages/get_all_packages.ts diff --git a/x-pack/plugins/fleet/scripts/get_all_packages/index.js b/x-pack/platform/plugins/shared/fleet/scripts/get_all_packages/index.js similarity index 84% rename from x-pack/plugins/fleet/scripts/get_all_packages/index.js rename to x-pack/platform/plugins/shared/fleet/scripts/get_all_packages/index.js index 447b09c6b1b3f..3ebec2543bff5 100644 --- a/x-pack/plugins/fleet/scripts/get_all_packages/index.js +++ b/x-pack/platform/plugins/shared/fleet/scripts/get_all_packages/index.js @@ -5,5 +5,5 @@ * 2.0. */ -require('../../../../../src/setup_node_env'); +require('../../../../../../../src/setup_node_env'); require('./get_all_packages').run(); diff --git a/x-pack/plugins/fleet/scripts/install_all_packages/index.js b/x-pack/platform/plugins/shared/fleet/scripts/install_all_packages/index.js similarity index 85% rename from x-pack/plugins/fleet/scripts/install_all_packages/index.js rename to x-pack/platform/plugins/shared/fleet/scripts/install_all_packages/index.js index aa620c4ea6a04..70cba67b9e40d 100644 --- a/x-pack/plugins/fleet/scripts/install_all_packages/index.js +++ b/x-pack/platform/plugins/shared/fleet/scripts/install_all_packages/index.js @@ -5,5 +5,5 @@ * 2.0. */ -require('../../../../../src/setup_node_env'); +require('../../../../../../../src/setup_node_env'); require('./install_all_packages').run(); diff --git a/x-pack/plugins/fleet/scripts/install_all_packages/install_all_packages.ts b/x-pack/platform/plugins/shared/fleet/scripts/install_all_packages/install_all_packages.ts similarity index 100% rename from x-pack/plugins/fleet/scripts/install_all_packages/install_all_packages.ts rename to x-pack/platform/plugins/shared/fleet/scripts/install_all_packages/install_all_packages.ts diff --git a/x-pack/plugins/fleet/scripts/verify_test_packages/index.js b/x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/index.js similarity index 85% rename from x-pack/plugins/fleet/scripts/verify_test_packages/index.js rename to x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/index.js index 2c3f64739962b..b344a7bd8dd13 100644 --- a/x-pack/plugins/fleet/scripts/verify_test_packages/index.js +++ b/x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/index.js @@ -5,5 +5,5 @@ * 2.0. */ -require('../../../../../src/setup_node_env'); +require('../../../../../../../src/setup_node_env'); require('./verify_test_packages').run(); diff --git a/x-pack/plugins/fleet/scripts/verify_test_packages/verify_test_packages.test.ts b/x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.test.ts similarity index 100% rename from x-pack/plugins/fleet/scripts/verify_test_packages/verify_test_packages.test.ts rename to x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.test.ts diff --git a/x-pack/plugins/fleet/scripts/verify_test_packages/verify_test_packages.ts b/x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts similarity index 92% rename from x-pack/plugins/fleet/scripts/verify_test_packages/verify_test_packages.ts rename to x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts index ff7347e599ee6..33ac12a6cade3 100644 --- a/x-pack/plugins/fleet/scripts/verify_test_packages/verify_test_packages.ts +++ b/x-pack/platform/plugins/shared/fleet/scripts/verify_test_packages/verify_test_packages.ts @@ -22,9 +22,9 @@ import { const readFileAsync = promisify(readFile); const TEST_PACKAGE_DIRECTORIES = [ - '../../../../test/fleet_api_integration/apis/fixtures/bundled_packages', - '../../../../test/fleet_api_integration/apis/fixtures/test_packages', - '../../../../test/fleet_api_integration/apis/fixtures/package_verification/packages', + '../../../../../../test/fleet_api_integration/apis/fixtures/bundled_packages', + '../../../../../../test/fleet_api_integration/apis/fixtures/test_packages', + '../../../../../../test/fleet_api_integration/apis/fixtures/package_verification/packages', ]; const getAllPathsFromDir = (dir: string): string[] => diff --git a/x-pack/plugins/fleet/server/collectors/agent_collectors.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/agent_collectors.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/agent_collectors.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/agent_collectors.ts diff --git a/x-pack/plugins/fleet/server/collectors/agent_logs_panics.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/agent_logs_panics.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/agent_logs_panics.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/agent_logs_panics.ts diff --git a/x-pack/plugins/fleet/server/collectors/agent_logs_top_errors.test.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/agent_logs_top_errors.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/agent_logs_top_errors.test.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/agent_logs_top_errors.test.ts diff --git a/x-pack/plugins/fleet/server/collectors/agent_logs_top_errors.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/agent_logs_top_errors.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/agent_logs_top_errors.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/agent_logs_top_errors.ts diff --git a/x-pack/plugins/fleet/server/collectors/agent_policies.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/agent_policies.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/agent_policies.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/agent_policies.ts diff --git a/x-pack/plugins/fleet/server/collectors/agents_per_output.test.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/agents_per_output.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/agents_per_output.test.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/agents_per_output.test.ts diff --git a/x-pack/plugins/fleet/server/collectors/agents_per_output.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/agents_per_output.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/agents_per_output.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/agents_per_output.ts diff --git a/x-pack/plugins/fleet/server/collectors/config_collectors.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/config_collectors.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/config_collectors.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/config_collectors.ts diff --git a/x-pack/plugins/fleet/server/collectors/fleet_server_collector.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/fleet_server_collector.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/fleet_server_collector.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/fleet_server_collector.ts diff --git a/x-pack/plugins/fleet/server/collectors/get_all_fleet_server_agents.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/get_all_fleet_server_agents.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/get_all_fleet_server_agents.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/get_all_fleet_server_agents.ts diff --git a/x-pack/plugins/fleet/server/collectors/helpers.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/helpers.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/helpers.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/helpers.ts diff --git a/x-pack/plugins/fleet/server/collectors/integrations_collector.test.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/integrations_collector.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/integrations_collector.test.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/integrations_collector.test.ts diff --git a/x-pack/plugins/fleet/server/collectors/integrations_collector.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/integrations_collector.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/integrations_collector.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/integrations_collector.ts diff --git a/x-pack/plugins/fleet/server/collectors/package_collectors.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/package_collectors.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/package_collectors.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/package_collectors.ts diff --git a/x-pack/plugins/fleet/server/collectors/register.ts b/x-pack/platform/plugins/shared/fleet/server/collectors/register.ts similarity index 100% rename from x-pack/plugins/fleet/server/collectors/register.ts rename to x-pack/platform/plugins/shared/fleet/server/collectors/register.ts diff --git a/x-pack/plugins/fleet/server/config.test.ts b/x-pack/platform/plugins/shared/fleet/server/config.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/config.test.ts rename to x-pack/platform/plugins/shared/fleet/server/config.test.ts diff --git a/x-pack/plugins/fleet/server/config.ts b/x-pack/platform/plugins/shared/fleet/server/config.ts similarity index 100% rename from x-pack/plugins/fleet/server/config.ts rename to x-pack/platform/plugins/shared/fleet/server/config.ts diff --git a/x-pack/plugins/fleet/server/constants/fleet_es_assets.ts b/x-pack/platform/plugins/shared/fleet/server/constants/fleet_es_assets.ts similarity index 100% rename from x-pack/plugins/fleet/server/constants/fleet_es_assets.ts rename to x-pack/platform/plugins/shared/fleet/server/constants/fleet_es_assets.ts diff --git a/x-pack/plugins/fleet/server/constants/index.ts b/x-pack/platform/plugins/shared/fleet/server/constants/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/constants/index.ts rename to x-pack/platform/plugins/shared/fleet/server/constants/index.ts diff --git a/x-pack/plugins/fleet/server/constants/max_concurrency_constants.ts b/x-pack/platform/plugins/shared/fleet/server/constants/max_concurrency_constants.ts similarity index 100% rename from x-pack/plugins/fleet/server/constants/max_concurrency_constants.ts rename to x-pack/platform/plugins/shared/fleet/server/constants/max_concurrency_constants.ts diff --git a/x-pack/plugins/fleet/server/errors/handlers.test.ts b/x-pack/platform/plugins/shared/fleet/server/errors/handlers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/errors/handlers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/errors/handlers.test.ts diff --git a/x-pack/plugins/fleet/server/errors/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/errors/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/errors/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/errors/handlers.ts diff --git a/x-pack/plugins/fleet/server/errors/index.ts b/x-pack/platform/plugins/shared/fleet/server/errors/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/errors/index.ts rename to x-pack/platform/plugins/shared/fleet/server/errors/index.ts diff --git a/x-pack/plugins/fleet/server/errors/utils.ts b/x-pack/platform/plugins/shared/fleet/server/errors/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/errors/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/errors/utils.ts diff --git a/x-pack/plugins/fleet/server/index.ts b/x-pack/platform/plugins/shared/fleet/server/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/index.ts rename to x-pack/platform/plugins/shared/fleet/server/index.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/cloud_preconfiguration.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/cloud_preconfiguration.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/cloud_preconfiguration.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/enable_space_awareness.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/enable_space_awareness.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/enable_space_awareness.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/enable_space_awareness.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/es.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/es.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/es.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/es.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/fixtures/cloud_kibana_config.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/fixtures/cloud_kibana_config.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/fixtures/cloud_kibana_config.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/fixtures/cloud_kibana_config.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/fixtures/cloud_kibana_config_without_apm.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/fixtures/cloud_kibana_config_without_apm.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/fixtures/cloud_kibana_config_without_apm.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/fixtures/cloud_kibana_config_without_apm.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/fixtures/cloud_kibana_config_without_policy_id.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/fixtures/cloud_kibana_config_without_policy_id.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/fixtures/cloud_kibana_config_without_policy_id.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/fixtures/cloud_kibana_config_without_policy_id.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/fixtures/index.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/fixtures/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/fixtures/index.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/fixtures/index.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/fleet_setup.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/fleet_setup.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/fleet_setup.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/fleet_setup.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/fleet_usage_telemetry.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/fleet_usage_telemetry.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/fleet_usage_telemetry.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/fleet_usage_telemetry.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/ha_setup.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/ha_setup.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/ha_setup.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/ha_setup.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/helpers/docker_registry_helper.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/helpers/docker_registry_helper.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/helpers/docker_registry_helper.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/helpers/docker_registry_helper.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/helpers/index.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/helpers/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/helpers/index.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/helpers/index.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/output_preconfiguration.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/output_preconfiguration.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/output_preconfiguration.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/output_preconfiguration.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/reset_preconfiguration.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/reset_preconfiguration.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/reset_preconfiguration.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/reset_preconfiguration.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/upgrade_agent_policy_schema_version.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/upgrade_agent_policy_schema_version.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/upgrade_agent_policy_schema_version.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/upgrade_agent_policy_schema_version.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/upgrade_package_install_version.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/upgrade_package_install_version.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/upgrade_package_install_version.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/upgrade_package_install_version.test.ts diff --git a/x-pack/plugins/fleet/server/integration_tests/validate_bundled_packages.test.ts b/x-pack/platform/plugins/shared/fleet/server/integration_tests/validate_bundled_packages.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/integration_tests/validate_bundled_packages.test.ts rename to x-pack/platform/plugins/shared/fleet/server/integration_tests/validate_bundled_packages.test.ts diff --git a/x-pack/plugins/fleet/server/mocks/index.ts b/x-pack/platform/plugins/shared/fleet/server/mocks/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/mocks/index.ts rename to x-pack/platform/plugins/shared/fleet/server/mocks/index.ts diff --git a/x-pack/plugins/fleet/server/mocks/package_policy.mocks.ts b/x-pack/platform/plugins/shared/fleet/server/mocks/package_policy.mocks.ts similarity index 100% rename from x-pack/plugins/fleet/server/mocks/package_policy.mocks.ts rename to x-pack/platform/plugins/shared/fleet/server/mocks/package_policy.mocks.ts diff --git a/x-pack/plugins/fleet/server/plugin.ts b/x-pack/platform/plugins/shared/fleet/server/plugin.ts similarity index 100% rename from x-pack/plugins/fleet/server/plugin.ts rename to x-pack/platform/plugins/shared/fleet/server/plugin.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/actions_handlers.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/actions_handlers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/actions_handlers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/actions_handlers.test.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/actions_handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/actions_handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/actions_handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/actions_handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/handlers.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/handlers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/handlers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/handlers.test.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/index.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/request_diagnostics_handler.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/request_diagnostics_handler.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/request_diagnostics_handler.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/request_diagnostics_handler.test.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/request_diagnostics_handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/request_diagnostics_handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/request_diagnostics_handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/request_diagnostics_handler.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/source_uri_utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/source_uri_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/source_uri_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/source_uri_utils.test.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/source_uri_utils.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/source_uri_utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/source_uri_utils.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/source_uri_utils.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/unenroll_handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/unenroll_handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/unenroll_handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/unenroll_handler.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/upgrade_handler.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/upgrade_handler.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/upgrade_handler.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/upgrade_handler.test.ts diff --git a/x-pack/plugins/fleet/server/routes/agent/upgrade_handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent/upgrade_handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent/upgrade_handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent/upgrade_handler.ts diff --git a/x-pack/plugins/fleet/server/routes/agent_policy/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent_policy/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent_policy/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent_policy/handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/agent_policy/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent_policy/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent_policy/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent_policy/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/agent_policy/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/agent_policy/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/agent_policy/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/agent_policy/index.ts diff --git a/x-pack/plugins/fleet/server/routes/app/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/app/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/app/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/app/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/app/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/app/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/app/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/app/index.ts diff --git a/x-pack/plugins/fleet/server/routes/data_streams/get_data_streams_query_metadata.ts b/x-pack/platform/plugins/shared/fleet/server/routes/data_streams/get_data_streams_query_metadata.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/data_streams/get_data_streams_query_metadata.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/data_streams/get_data_streams_query_metadata.ts diff --git a/x-pack/plugins/fleet/server/routes/data_streams/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/data_streams/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/data_streams/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/data_streams/handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/data_streams/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/data_streams/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/data_streams/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/data_streams/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/data_streams/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/data_streams/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/data_streams/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/data_streams/index.ts diff --git a/x-pack/plugins/fleet/server/routes/debug/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/debug/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/debug/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/debug/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/debug/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/debug/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/debug/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/debug/index.ts diff --git a/x-pack/plugins/fleet/server/routes/download_source/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/download_source/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/download_source/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/download_source/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/download_source/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/download_source/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/download_source/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/download_source/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/download_source/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/download_source/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/download_source/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/download_source/index.ts diff --git a/x-pack/plugins/fleet/server/routes/enrollment_api_key/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/enrollment_api_key/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/enrollment_api_key/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/enrollment_api_key/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/enrollment_api_key/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/enrollment_api_key/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/enrollment_api_key/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/enrollment_api_key/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/enrollment_api_key/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/enrollment_api_key/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/enrollment_api_key/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/enrollment_api_key/index.ts diff --git a/x-pack/plugins/fleet/server/routes/epm/file_handler.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/epm/file_handler.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/epm/file_handler.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/epm/file_handler.test.ts diff --git a/x-pack/plugins/fleet/server/routes/epm/file_handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/epm/file_handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/epm/file_handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/epm/file_handler.ts diff --git a/x-pack/plugins/fleet/server/routes/epm/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/epm/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/epm/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/epm/handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/epm/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/epm/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/epm/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/epm/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/epm/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/epm/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/epm/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/epm/index.ts diff --git a/x-pack/plugins/fleet/server/routes/epm/kibana_assets_handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/epm/kibana_assets_handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/epm/kibana_assets_handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/epm/kibana_assets_handler.ts diff --git a/x-pack/plugins/fleet/server/routes/fleet_proxies/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/fleet_proxies/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/fleet_proxies/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/fleet_proxies/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/fleet_proxies/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/fleet_proxies/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/fleet_proxies/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/fleet_proxies/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/fleet_proxies/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/fleet_proxies/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/fleet_proxies/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/fleet_proxies/index.ts diff --git a/x-pack/plugins/fleet/server/routes/fleet_server_hosts/handler.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/fleet_server_hosts/handler.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/fleet_server_hosts/handler.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/fleet_server_hosts/handler.test.ts diff --git a/x-pack/plugins/fleet/server/routes/fleet_server_hosts/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/fleet_server_hosts/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/fleet_server_hosts/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/fleet_server_hosts/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/fleet_server_hosts/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/fleet_server_hosts/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/fleet_server_hosts/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/fleet_server_hosts/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/fleet_server_hosts/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/fleet_server_hosts/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/fleet_server_hosts/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/fleet_server_hosts/index.ts diff --git a/x-pack/plugins/fleet/server/routes/health_check/handler.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/health_check/handler.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/health_check/handler.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/health_check/handler.test.ts diff --git a/x-pack/plugins/fleet/server/routes/health_check/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/health_check/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/health_check/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/health_check/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/health_check/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/health_check/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/health_check/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/health_check/index.ts diff --git a/x-pack/plugins/fleet/server/routes/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/index.ts diff --git a/x-pack/plugins/fleet/server/routes/message_signing_service/handlers.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/message_signing_service/handlers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/message_signing_service/handlers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/message_signing_service/handlers.test.ts diff --git a/x-pack/plugins/fleet/server/routes/message_signing_service/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/message_signing_service/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/message_signing_service/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/message_signing_service/handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/message_signing_service/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/message_signing_service/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/message_signing_service/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/message_signing_service/index.ts diff --git a/x-pack/plugins/fleet/server/routes/output/handler.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/output/handler.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/output/handler.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/output/handler.test.ts diff --git a/x-pack/plugins/fleet/server/routes/output/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/output/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/output/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/output/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/output/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/output/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/output/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/output/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/output/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/output/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/output/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/output/index.ts diff --git a/x-pack/plugins/fleet/server/routes/package_policy/handlers.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/package_policy/handlers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/package_policy/handlers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/package_policy/handlers.test.ts diff --git a/x-pack/plugins/fleet/server/routes/package_policy/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/package_policy/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/package_policy/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/package_policy/handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/package_policy/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/package_policy/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/package_policy/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/package_policy/index.ts diff --git a/x-pack/plugins/fleet/server/routes/package_policy/utils/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/package_policy/utils/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/package_policy/utils/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/package_policy/utils/index.test.ts diff --git a/x-pack/plugins/fleet/server/routes/package_policy/utils/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/package_policy/utils/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/package_policy/utils/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/package_policy/utils/index.ts diff --git a/x-pack/plugins/fleet/server/routes/preconfiguration/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/preconfiguration/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/preconfiguration/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/preconfiguration/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/preconfiguration/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/preconfiguration/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/preconfiguration/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/preconfiguration/index.ts diff --git a/x-pack/plugins/fleet/server/routes/schema/errors.ts b/x-pack/platform/plugins/shared/fleet/server/routes/schema/errors.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/schema/errors.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/schema/errors.ts diff --git a/x-pack/plugins/fleet/server/routes/schema/utils.ts b/x-pack/platform/plugins/shared/fleet/server/routes/schema/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/schema/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/schema/utils.ts diff --git a/x-pack/plugins/fleet/server/routes/settings/enrollment_settings_handler.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/settings/enrollment_settings_handler.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/settings/enrollment_settings_handler.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/settings/enrollment_settings_handler.test.ts diff --git a/x-pack/plugins/fleet/server/routes/settings/enrollment_settings_handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/settings/enrollment_settings_handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/settings/enrollment_settings_handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/settings/enrollment_settings_handler.ts diff --git a/x-pack/plugins/fleet/server/routes/settings/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/settings/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/settings/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/settings/index.ts diff --git a/x-pack/plugins/fleet/server/routes/settings/settings_handler.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/settings/settings_handler.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/settings/settings_handler.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/settings/settings_handler.test.ts diff --git a/x-pack/plugins/fleet/server/routes/settings/settings_handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/settings/settings_handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/settings/settings_handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/settings/settings_handler.ts diff --git a/x-pack/plugins/fleet/server/routes/setup/handlers.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/setup/handlers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/setup/handlers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/setup/handlers.test.ts diff --git a/x-pack/plugins/fleet/server/routes/setup/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/setup/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/setup/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/setup/handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/setup/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/setup/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/setup/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/setup/index.ts diff --git a/x-pack/plugins/fleet/server/routes/standalone_agent_api_key/handler.ts b/x-pack/platform/plugins/shared/fleet/server/routes/standalone_agent_api_key/handler.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/standalone_agent_api_key/handler.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/standalone_agent_api_key/handler.ts diff --git a/x-pack/plugins/fleet/server/routes/standalone_agent_api_key/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/standalone_agent_api_key/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/standalone_agent_api_key/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/standalone_agent_api_key/index.ts diff --git a/x-pack/plugins/fleet/server/routes/uninstall_token/handlers.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/uninstall_token/handlers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/uninstall_token/handlers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/uninstall_token/handlers.test.ts diff --git a/x-pack/plugins/fleet/server/routes/uninstall_token/handlers.ts b/x-pack/platform/plugins/shared/fleet/server/routes/uninstall_token/handlers.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/uninstall_token/handlers.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/uninstall_token/handlers.ts diff --git a/x-pack/plugins/fleet/server/routes/uninstall_token/index.ts b/x-pack/platform/plugins/shared/fleet/server/routes/uninstall_token/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/uninstall_token/index.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/uninstall_token/index.ts diff --git a/x-pack/plugins/fleet/server/routes/utils/filter_utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/utils/filter_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/utils/filter_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/utils/filter_utils.test.ts diff --git a/x-pack/plugins/fleet/server/routes/utils/filter_utils.ts b/x-pack/platform/plugins/shared/fleet/server/routes/utils/filter_utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/utils/filter_utils.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/utils/filter_utils.ts diff --git a/x-pack/plugins/fleet/server/routes/utils/filter_utils_real_queries.test.ts b/x-pack/platform/plugins/shared/fleet/server/routes/utils/filter_utils_real_queries.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/routes/utils/filter_utils_real_queries.test.ts rename to x-pack/platform/plugins/shared/fleet/server/routes/utils/filter_utils_real_queries.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/bump_agent_policies.md b/x-pack/platform/plugins/shared/fleet/server/saved_objects/bump_agent_policies.md similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/bump_agent_policies.md rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/bump_agent_policies.md diff --git a/x-pack/plugins/fleet/server/saved_objects/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/index.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/index.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/cloud_security_posture/index.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/cloud_security_posture/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/cloud_security_posture/index.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/cloud_security_posture/index.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/cloud_security_posture/to_v8_11_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/cloud_security_posture/to_v8_11_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/cloud_security_posture/to_v8_11_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/cloud_security_posture/to_v8_11_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/cloud_security_posture/to_v8_11_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/cloud_security_posture/to_v8_11_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/cloud_security_posture/to_v8_11_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/cloud_security_posture/to_v8_11_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/index.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/index.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/index.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_11_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_11_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_11_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_11_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_11_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_11_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_11_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_11_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_12_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_12_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_12_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_12_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_12_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_12_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_12_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_12_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_13_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_13_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_13_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_13_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_13_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_13_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_13_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_13_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_14_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_14_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_14_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_14_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_14_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_14_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_14_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_14_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_15_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_15_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_15_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_15_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_15_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_15_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_15_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_15_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_16_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_16_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_16_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_16_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_16_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_16_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v7_16_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v7_16_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_10_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_10_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_10_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_10_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_10_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_10_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_10_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_10_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0_2.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0_2.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0_2.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0_2.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0_2.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0_2.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0_2.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_11_0_2.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_14_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_14_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_14_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_14_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_14_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_14_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_14_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_14_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_2_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_2_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_2_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_2_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_2_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_2_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_2_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_2_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_3_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_3_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_3_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_3_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_3_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_3_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_3_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_3_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_4_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_4_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_4_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_4_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_4_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_4_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_4_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_4_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_5_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_5_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_5_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_5_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_5_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_5_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_5_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_5_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_6_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_6_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_6_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_6_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_6_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_6_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_6_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_6_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_7_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_7_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_7_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_7_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_7_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_7_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_7_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_7_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_8_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_8_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_8_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_8_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_8_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_8_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/security_solution/to_v8_8_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/security_solution/to_v8_8_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/fixtures/8.7.0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/fixtures/8.7.0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/fixtures/8.7.0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/fixtures/8.7.0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/index.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/index.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/index.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_10_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_10_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_10_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_10_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_10_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_10_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_10_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_10_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_12_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_12_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_12_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_12_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_12_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_12_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_12_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_12_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_8_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_8_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_8_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_8_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_8_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_8_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/synthetics/to_v8_8_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/synthetics/to_v8_8_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_10_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_10_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_10_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_10_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_11_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_11_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_11_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_11_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_12_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_12_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_12_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_12_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_13_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_13_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_13_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_13_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_14_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_14_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_14_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_14_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_15_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_15_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_15_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_15_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_16_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_16_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v7_16_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v7_16_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_0_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_0_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_0_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_0_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_10_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_10_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_10_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_10_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_10_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_10_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_10_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_10_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_15_0.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_15_0.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_15_0.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_15_0.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_15_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_15_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_15_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_15_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_2_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_2_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_2_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_2_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_3_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_3_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_3_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_3_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_4_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_4_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_4_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_4_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_5_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_5_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_5_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_5_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_6_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_6_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_6_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_6_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_8_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_8_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_8_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_8_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_9_0.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_9_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/migrations/to_v8_9_0.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/migrations/to_v8_9_0.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/agent_policy_v4.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/agent_policy_v4.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/agent_policy_v4.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/agent_policy_v4.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/agent_policy_v4.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/agent_policy_v4.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/agent_policy_v4.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/agent_policy_v4.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/outputs.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/outputs.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/outputs.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/outputs.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/index.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/index.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/index.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/v10_on_write_scan_fix.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/v10_on_write_scan_fix.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/v10_on_write_scan_fix.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/v10_on_write_scan_fix.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/v10_on_write_scan_fix.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/v10_on_write_scan_fix.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/v10_on_write_scan_fix.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/v10_on_write_scan_fix.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/v13_advanced_package_policy_fields.test.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/v13_advanced_package_policy_fields.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/v13_advanced_package_policy_fields.test.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/v13_advanced_package_policy_fields.test.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/v13_advanced_package_policy_fields.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/v13_advanced_package_policy_fields.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/security_solution/v13_advanced_package_policy_fields.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/security_solution/v13_advanced_package_policy_fields.ts diff --git a/x-pack/plugins/fleet/server/saved_objects/model_versions/settings_v1.ts b/x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/settings_v1.ts similarity index 100% rename from x-pack/plugins/fleet/server/saved_objects/model_versions/settings_v1.ts rename to x-pack/platform/plugins/shared/fleet/server/saved_objects/model_versions/settings_v1.ts diff --git a/x-pack/plugins/fleet/server/services/actions/actions.ts b/x-pack/platform/plugins/shared/fleet/server/services/actions/actions.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/actions/actions.ts rename to x-pack/platform/plugins/shared/fleet/server/services/actions/actions.ts diff --git a/x-pack/plugins/fleet/server/services/actions/client.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/actions/client.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/actions/client.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/actions/client.test.ts diff --git a/x-pack/plugins/fleet/server/services/actions/client.ts b/x-pack/platform/plugins/shared/fleet/server/services/actions/client.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/actions/client.ts rename to x-pack/platform/plugins/shared/fleet/server/services/actions/client.ts diff --git a/x-pack/plugins/fleet/server/services/actions/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/actions/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/actions/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/actions/index.ts diff --git a/x-pack/plugins/fleet/server/services/actions/mocks.ts b/x-pack/platform/plugins/shared/fleet/server/services/actions/mocks.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/actions/mocks.ts rename to x-pack/platform/plugins/shared/fleet/server/services/actions/mocks.ts diff --git a/x-pack/plugins/fleet/server/services/actions/types.ts b/x-pack/platform/plugins/shared/fleet/server/services/actions/types.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/actions/types.ts rename to x-pack/platform/plugins/shared/fleet/server/services/actions/types.ts diff --git a/x-pack/plugins/fleet/server/services/actions/utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/actions/utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/actions/utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/actions/utils.test.ts diff --git a/x-pack/plugins/fleet/server/services/actions/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/actions/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/actions/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/actions/utils.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/__snapshots__/full_agent_policy.test.ts.snap b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/__snapshots__/full_agent_policy.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/__snapshots__/full_agent_policy.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/__snapshots__/full_agent_policy.test.ts.snap diff --git a/x-pack/plugins/fleet/server/services/agent_policies/__snapshots__/monitoring_permissions.test.ts.snap b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/__snapshots__/monitoring_permissions.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/__snapshots__/monitoring_permissions.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/__snapshots__/monitoring_permissions.test.ts.snap diff --git a/x-pack/plugins/fleet/server/services/agent_policies/agent_policies_to_agent_ids.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/agent_policies_to_agent_ids.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/agent_policies_to_agent_ids.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/agent_policies_to_agent_ids.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/agent_policies_to_agent_ids.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/agent_policies_to_agent_ids.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/agent_policies_to_agent_ids.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/agent_policies_to_agent_ids.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/agent_policy_agent_count.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/agent_policy_agent_count.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/agent_policy_agent_count.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/agent_policy_agent_count.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/agent_policy_agent_count.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/agent_policy_agent_count.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/agent_policy_agent_count.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/agent_policy_agent_count.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/bump_agent_policies_task.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/bump_agent_policies_task.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/bump_agent_policies_task.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/bump_agent_policies_task.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/bump_agent_policies_task.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/bump_agent_policies_task.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/bump_agent_policies_task.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/bump_agent_policies_task.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/deploy_agent_policies_task.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/deploy_agent_policies_task.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/deploy_agent_policies_task.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/deploy_agent_policies_task.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/full_agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/full_agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/full_agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/full_agent_policy.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/full_agent_policy.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/full_agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/full_agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/full_agent_policy.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/index.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/monitoring_permissions.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/monitoring_permissions.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/monitoring_permissions.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/monitoring_permissions.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/monitoring_permissions.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/monitoring_permissions.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/monitoring_permissions.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/monitoring_permissions.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/output_helpers.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/output_helpers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/output_helpers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/output_helpers.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/outputs_helpers.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/outputs_helpers.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/outputs_helpers.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/outputs_helpers.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/package_policies_to_agent_inputs.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_inputs.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/package_policies_to_agent_inputs.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_inputs.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/package_policies_to_agent_inputs.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_inputs.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/package_policies_to_agent_inputs.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_inputs.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/package_policies_to_agent_permissions.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_permissions.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/package_policies_to_agent_permissions.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_permissions.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/package_policies_to_agent_permissions.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_permissions.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/package_policies_to_agent_permissions.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/package_policies_to_agent_permissions.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/related_saved_objects.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/related_saved_objects.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/related_saved_objects.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/related_saved_objects.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policies/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policies/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policies/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policies/utils.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policy.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policy.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policy.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policy_create.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_create.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policy_create.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policy_create.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policy_create.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_create.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policy_create.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policy_create.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policy_update.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_update.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policy_update.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policy_update.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policy_watch.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policy_watch.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.test.ts diff --git a/x-pack/plugins/fleet/server/services/agent_policy_watch.ts b/x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agent_policy_watch.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agent_policy_watch.ts diff --git a/x-pack/plugins/fleet/server/services/agents/__snapshots__/uploads.test.ts.snap b/x-pack/platform/plugins/shared/fleet/server/services/agents/__snapshots__/uploads.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/__snapshots__/uploads.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/server/services/agents/__snapshots__/uploads.test.ts.snap diff --git a/x-pack/plugins/fleet/server/services/agents/action.mock.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/action.mock.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/action.mock.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/action.mock.ts diff --git a/x-pack/plugins/fleet/server/services/agents/action_runner.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/action_runner.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/action_runner.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/action_runner.ts diff --git a/x-pack/plugins/fleet/server/services/agents/action_status.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/action_status.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/action_status.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/action_status.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/action_status.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/action_status.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/action_status.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/action_status.ts diff --git a/x-pack/plugins/fleet/server/services/agents/actions.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/actions.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/actions.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/actions.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/actions.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/actions.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/actions.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/actions.ts diff --git a/x-pack/plugins/fleet/server/services/agents/agent_metrics.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/agent_metrics.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/agent_metrics.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/agent_metrics.ts diff --git a/x-pack/plugins/fleet/server/services/agents/agent_service.mock.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/agent_service.mock.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/agent_service.mock.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/agent_service.mock.ts diff --git a/x-pack/plugins/fleet/server/services/agents/agent_service.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/agent_service.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/agent_service.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/agent_service.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/agent_service.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/agent_service.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/agent_service.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/agent_service.ts diff --git a/x-pack/plugins/fleet/server/services/agents/agentless_agent.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/agentless_agent.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/agentless_agent.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/agentless_agent.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/agentless_agent.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/agentless_agent.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/agentless_agent.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/agentless_agent.ts diff --git a/x-pack/plugins/fleet/server/services/agents/build_status_runtime_field.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/build_status_runtime_field.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/build_status_runtime_field.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/build_status_runtime_field.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/build_status_runtime_field.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/build_status_runtime_field.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/build_status_runtime_field.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/build_status_runtime_field.ts diff --git a/x-pack/plugins/fleet/server/services/agents/bulk_action_types.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/bulk_action_types.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/bulk_action_types.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/bulk_action_types.ts diff --git a/x-pack/plugins/fleet/server/services/agents/bulk_actions_resolver.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/bulk_actions_resolver.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/bulk_actions_resolver.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/bulk_actions_resolver.ts diff --git a/x-pack/plugins/fleet/server/services/agents/crud.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/crud.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/crud.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/crud.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/crud.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/crud.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/crud.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/crud.ts diff --git a/x-pack/plugins/fleet/server/services/agents/filter_hosted_agents.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/filter_hosted_agents.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/filter_hosted_agents.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/filter_hosted_agents.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/filter_hosted_agents.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/filter_hosted_agents.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/filter_hosted_agents.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/filter_hosted_agents.ts diff --git a/x-pack/plugins/fleet/server/services/agents/helpers.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/helpers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/helpers.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/helpers.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.ts diff --git a/x-pack/plugins/fleet/server/services/agents/hosted_agent.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/hosted_agent.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/hosted_agent.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/hosted_agent.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/hosted_agent.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/hosted_agent.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/hosted_agent.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/hosted_agent.ts diff --git a/x-pack/plugins/fleet/server/services/agents/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/index.ts diff --git a/x-pack/plugins/fleet/server/services/agents/reassign.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/reassign.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/reassign.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/reassign.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/reassign.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/reassign.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/reassign.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/reassign.ts diff --git a/x-pack/plugins/fleet/server/services/agents/reassign_action_runner.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/reassign_action_runner.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/reassign_action_runner.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/reassign_action_runner.ts diff --git a/x-pack/plugins/fleet/server/services/agents/request_diagnostics.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/request_diagnostics.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/request_diagnostics.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/request_diagnostics.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/request_diagnostics.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/request_diagnostics.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/request_diagnostics.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/request_diagnostics.ts diff --git a/x-pack/plugins/fleet/server/services/agents/request_diagnostics_action_runner.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/request_diagnostics_action_runner.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/request_diagnostics_action_runner.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/request_diagnostics_action_runner.ts diff --git a/x-pack/plugins/fleet/server/services/agents/retry_helper.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/retry_helper.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/retry_helper.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/retry_helper.ts diff --git a/x-pack/plugins/fleet/server/services/agents/status.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/status.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/status.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/status.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/status.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/status.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/status.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/status.ts diff --git a/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/unenroll.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/unenroll.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/unenroll.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/unenroll.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/unenroll.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/unenroll.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/unenroll.ts diff --git a/x-pack/plugins/fleet/server/services/agents/unenroll_action_runner.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/unenroll_action_runner.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/unenroll_action_runner.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/unenroll_action_runner.ts diff --git a/x-pack/plugins/fleet/server/services/agents/update.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/update.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/update.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/update.ts diff --git a/x-pack/plugins/fleet/server/services/agents/update_agent_tags.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/update_agent_tags.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/update_agent_tags.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/update_agent_tags.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/update_agent_tags.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/update_agent_tags.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/update_agent_tags.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/update_agent_tags.ts diff --git a/x-pack/plugins/fleet/server/services/agents/update_agent_tags_action_runner.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/update_agent_tags_action_runner.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/update_agent_tags_action_runner.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/update_agent_tags_action_runner.ts diff --git a/x-pack/plugins/fleet/server/services/agents/upgrade.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/upgrade.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/upgrade.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/upgrade.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/upgrade.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/upgrade.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/upgrade.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/upgrade.ts diff --git a/x-pack/plugins/fleet/server/services/agents/upgrade_action_runner.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/upgrade_action_runner.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/upgrade_action_runner.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/upgrade_action_runner.ts diff --git a/x-pack/plugins/fleet/server/services/agents/uploads.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/uploads.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/uploads.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/uploads.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/uploads.test_fixtures.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/uploads.test_fixtures.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/uploads.test_fixtures.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/uploads.test_fixtures.ts diff --git a/x-pack/plugins/fleet/server/services/agents/uploads.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/uploads.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/uploads.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/uploads.ts diff --git a/x-pack/plugins/fleet/server/services/agents/versions.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/versions.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/agents/versions.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/versions.test.ts diff --git a/x-pack/plugins/fleet/server/services/agents/versions.ts b/x-pack/platform/plugins/shared/fleet/server/services/agents/versions.ts similarity index 98% rename from x-pack/plugins/fleet/server/services/agents/versions.ts rename to x-pack/platform/plugins/shared/fleet/server/services/agents/versions.ts index fb42c3af2a50d..00a38ca037c81 100644 --- a/x-pack/plugins/fleet/server/services/agents/versions.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/agents/versions.ts @@ -24,7 +24,7 @@ import { differsOnlyInPatch } from '../../../common/services'; import { appContextService } from '..'; const MINIMUM_SUPPORTED_VERSION = '7.17.0'; -const AGENT_VERSION_BUILD_FILE = 'x-pack/plugins/fleet/target/agent_versions_list.json'; +const AGENT_VERSION_BUILD_FILE = 'x-pack/platform/plugins/shared/fleet/target/agent_versions_list.json'; // Endpoint maintained by the web-team and hosted on the elastic website const PRODUCT_VERSIONS_URL = 'https://www.elastic.co/api/product_versions'; diff --git a/x-pack/plugins/fleet/server/services/api_keys/create_standalone_agent_api_key.ts b/x-pack/platform/plugins/shared/fleet/server/services/api_keys/create_standalone_agent_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/api_keys/create_standalone_agent_api_key.ts rename to x-pack/platform/plugins/shared/fleet/server/services/api_keys/create_standalone_agent_api_key.ts diff --git a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/api_keys/enrollment_api_key.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/api_keys/enrollment_api_key.test.ts diff --git a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts b/x-pack/platform/plugins/shared/fleet/server/services/api_keys/enrollment_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts rename to x-pack/platform/plugins/shared/fleet/server/services/api_keys/enrollment_api_key.ts diff --git a/x-pack/plugins/fleet/server/services/api_keys/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/api_keys/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/api_keys/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/api_keys/index.ts diff --git a/x-pack/plugins/fleet/server/services/api_keys/logstash_api_keys.ts b/x-pack/platform/plugins/shared/fleet/server/services/api_keys/logstash_api_keys.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/api_keys/logstash_api_keys.ts rename to x-pack/platform/plugins/shared/fleet/server/services/api_keys/logstash_api_keys.ts diff --git a/x-pack/plugins/fleet/server/services/api_keys/security.ts b/x-pack/platform/plugins/shared/fleet/server/services/api_keys/security.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/api_keys/security.ts rename to x-pack/platform/plugins/shared/fleet/server/services/api_keys/security.ts diff --git a/x-pack/plugins/fleet/server/services/api_keys/transform_api_keys.ts b/x-pack/platform/plugins/shared/fleet/server/services/api_keys/transform_api_keys.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/api_keys/transform_api_keys.ts rename to x-pack/platform/plugins/shared/fleet/server/services/api_keys/transform_api_keys.ts diff --git a/x-pack/plugins/fleet/server/services/app_context.ts b/x-pack/platform/plugins/shared/fleet/server/services/app_context.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/app_context.ts rename to x-pack/platform/plugins/shared/fleet/server/services/app_context.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/artifacts.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/artifacts.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/artifacts.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/artifacts.test.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/artifacts.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/artifacts.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/artifacts.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/artifacts.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/client.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/client.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/client.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/client.test.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/client.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/client.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/client.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/client.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/constants.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/constants.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/constants.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/constants.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/index.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/mappings.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/mappings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/mappings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/mappings.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/mocks.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/mocks.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/mocks.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/mocks.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/types.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/types.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/types.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/types.ts diff --git a/x-pack/plugins/fleet/server/services/artifacts/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/artifacts/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/artifacts/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/artifacts/utils.ts diff --git a/x-pack/plugins/fleet/server/services/audit_logging.ts b/x-pack/platform/plugins/shared/fleet/server/services/audit_logging.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/audit_logging.ts rename to x-pack/platform/plugins/shared/fleet/server/services/audit_logging.ts diff --git a/x-pack/plugins/fleet/server/services/backfill_agentless.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/backfill_agentless.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/backfill_agentless.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/backfill_agentless.test.ts diff --git a/x-pack/plugins/fleet/server/services/backfill_agentless.ts b/x-pack/platform/plugins/shared/fleet/server/services/backfill_agentless.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/backfill_agentless.ts rename to x-pack/platform/plugins/shared/fleet/server/services/backfill_agentless.ts diff --git a/x-pack/plugins/fleet/server/services/check_allowed_packages.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/check_allowed_packages.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/check_allowed_packages.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/check_allowed_packages.test.ts diff --git a/x-pack/plugins/fleet/server/services/check_allowed_packages.ts b/x-pack/platform/plugins/shared/fleet/server/services/check_allowed_packages.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/check_allowed_packages.ts rename to x-pack/platform/plugins/shared/fleet/server/services/check_allowed_packages.ts diff --git a/x-pack/plugins/fleet/server/services/config.ts b/x-pack/platform/plugins/shared/fleet/server/services/config.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/config.ts rename to x-pack/platform/plugins/shared/fleet/server/services/config.ts diff --git a/x-pack/plugins/fleet/server/services/data_streams.ts b/x-pack/platform/plugins/shared/fleet/server/services/data_streams.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/data_streams.ts rename to x-pack/platform/plugins/shared/fleet/server/services/data_streams.ts diff --git a/x-pack/plugins/fleet/server/services/debug/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/debug/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/debug/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/debug/index.ts diff --git a/x-pack/plugins/fleet/server/services/download_source.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/download_source.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/download_source.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/download_source.test.ts diff --git a/x-pack/plugins/fleet/server/services/download_source.ts b/x-pack/platform/plugins/shared/fleet/server/services/download_source.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/download_source.ts rename to x-pack/platform/plugins/shared/fleet/server/services/download_source.ts diff --git a/x-pack/plugins/fleet/server/services/elastic_agent_manifest.ts b/x-pack/platform/plugins/shared/fleet/server/services/elastic_agent_manifest.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/elastic_agent_manifest.ts rename to x-pack/platform/plugins/shared/fleet/server/services/elastic_agent_manifest.ts diff --git a/x-pack/plugins/fleet/server/services/epm/agent/agent.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/agent/agent.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/agent/agent.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/agent/agent.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/agent/agent.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/agent/agent.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/agent/agent.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/agent/agent.ts diff --git a/x-pack/plugins/fleet/server/services/epm/airgapped.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/airgapped.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/airgapped.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/airgapped.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/archive_iterator.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/archive_iterator.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/archive_iterator.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/archive_iterator.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/cache.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/cache.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/cache.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/cache.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/extract.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/extract.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/extract.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/extract.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/index.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/parse.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/parse.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/parse.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/parse.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/parse.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/parse.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/parse.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/parse.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/storage.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/storage.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/storage.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/storage.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/archive/storage.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/archive/storage.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/archive/storage.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/archive/storage.ts diff --git a/x-pack/plugins/fleet/server/services/epm/data_streams/get.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/data_streams/get.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/data_streams/get.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/data_streams/get.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/data_streams/get.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/data_streams/get.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/data_streams/get.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/data_streams/get.ts diff --git a/x-pack/plugins/fleet/server/services/epm/data_streams/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/data_streams/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/data_streams/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/data_streams/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/datastream_ilm/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/datastream_ilm/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/datastream_ilm/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/datastream_ilm/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/datastream_ilm/remove.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/datastream_ilm/remove.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/datastream_ilm/remove.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/datastream_ilm/remove.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ilm/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ilm/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ilm/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ilm/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/index/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/index/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/index/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/index/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/index/update_settings.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/index/update_settings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/index/update_settings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/index/update_settings.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/helpers.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/helpers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/helpers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/helpers.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/helpers.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/helpers.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/helpers.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/helpers.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/remove.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/remove.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/remove.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/remove.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipeline_template.json b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipeline_template.json similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipeline_template.json rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipeline_template.json diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/no_replacement.json b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/no_replacement.json similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/no_replacement.json rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/no_replacement.json diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/no_replacement.yml b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/no_replacement.yml similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/no_replacement.yml rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/no_replacement.yml diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_beats.json b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_beats.json similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_beats.json rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_beats.json diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_beats.yml b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_beats.yml similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_beats.yml rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_beats.yml diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_standard.json b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_standard.json similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_standard.json rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_standard.json diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_standard.yml b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_standard.yml similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_standard.yml rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_input_standard.yml diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_output.json b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_output.json similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_output.json rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_output.json diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_output.yml b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_output.yml similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_output.yml rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/tests/ingest_pipelines/real_output.yml diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/types.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/types.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/types.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ingest_pipeline/types.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/meta.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/meta.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/meta.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/meta.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/meta.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/meta.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/meta.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/meta.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ml_model/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ml_model/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ml_model/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ml_model/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ml_model/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ml_model/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ml_model/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ml_model/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ml_model/remove.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ml_model/remove.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/ml_model/remove.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/ml_model/remove.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/retry.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/retry.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/retry.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/retry.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/retry.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/retry.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/retry.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/retry.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/default_settings.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/default_settings.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/default_settings.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/default_settings.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/default_settings.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/default_settings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/default_settings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/default_settings.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/install.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/install.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/mappings.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/mappings.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/mappings.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/mappings.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/mappings.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/mappings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/mappings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/mappings.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/remove_legacy.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/remove_legacy.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/remove_legacy.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/remove_legacy.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/remove_legacy.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/remove_legacy.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/remove_legacy.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/remove_legacy.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/template.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/template.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/template.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/template.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/utils.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/template/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/template/utils.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/common.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/common.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/common.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/common.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/legacy_transforms.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/legacy_transforms.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/legacy_transforms.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/legacy_transforms.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/mappings.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/mappings.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/mappings.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/mappings.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/mappings.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/mappings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/mappings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/mappings.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/reauthorize.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/reauthorize.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/reauthorize.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/reauthorize.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/remove.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/remove.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/remove.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/remove.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/remove.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/remove.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/remove.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/remove.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform_utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/transform_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/transform_utils.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform_utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/transform_utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform_utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/transform_utils.ts diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transforms.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/transforms.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transforms.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/transforms.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/fields/__snapshots__/field.test.ts.snap b/x-pack/platform/plugins/shared/fleet/server/services/epm/fields/__snapshots__/field.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/fields/__snapshots__/field.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/server/services/epm/fields/__snapshots__/field.test.ts.snap diff --git a/x-pack/plugins/fleet/server/services/epm/fields/field.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/fields/field.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/fields/field.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/fields/field.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/fields/field.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/fields/field.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/fields/field.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/fields/field.ts diff --git a/x-pack/plugins/fleet/server/services/epm/fields/tests/base.yml b/x-pack/platform/plugins/shared/fleet/server/services/epm/fields/tests/base.yml similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/fields/tests/base.yml rename to x-pack/platform/plugins/shared/fleet/server/services/epm/fields/tests/base.yml diff --git a/x-pack/plugins/fleet/server/services/epm/fields/tests/cockroachdb_dynamic_templates.yml b/x-pack/platform/plugins/shared/fleet/server/services/epm/fields/tests/cockroachdb_dynamic_templates.yml similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/fields/tests/cockroachdb_dynamic_templates.yml rename to x-pack/platform/plugins/shared/fleet/server/services/epm/fields/tests/cockroachdb_dynamic_templates.yml diff --git a/x-pack/plugins/fleet/server/services/epm/fields/tests/coredns.logs.yml b/x-pack/platform/plugins/shared/fleet/server/services/epm/fields/tests/coredns.logs.yml similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/fields/tests/coredns.logs.yml rename to x-pack/platform/plugins/shared/fleet/server/services/epm/fields/tests/coredns.logs.yml diff --git a/x-pack/plugins/fleet/server/services/epm/fields/tests/system.yml b/x-pack/platform/plugins/shared/fleet/server/services/epm/fields/tests/system.yml similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/fields/tests/system.yml rename to x-pack/platform/plugins/shared/fleet/server/services/epm/fields/tests/system.yml diff --git a/x-pack/plugins/fleet/server/services/epm/filtered_packages.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/filtered_packages.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/filtered_packages.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/filtered_packages.ts diff --git a/x-pack/plugins/fleet/server/services/epm/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/assets/install.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/install.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/assets/install.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/install.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/assets/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/assets/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/assets/install_with_streaming.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/install_with_streaming.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/assets/install_with_streaming.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/install_with_streaming.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/assets/saved_object.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/saved_object.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/assets/saved_object.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/saved_object.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/assets/saved_objects.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/saved_objects.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/assets/saved_objects.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/saved_objects.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/assets/tag_assets.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/tag_assets.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/assets/tag_assets.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/tag_assets.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/assets/tag_assets.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/tag_assets.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/assets/tag_assets.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/tag_assets.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/index_pattern/install.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/index_pattern/install.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/index_pattern/install.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/index_pattern/install.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/kibana/index_pattern/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/index_pattern/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/kibana/index_pattern/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/index_pattern/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/package_service.mock.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/package_service.mock.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/package_service.mock.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/package_service.mock.ts diff --git a/x-pack/plugins/fleet/server/services/epm/package_service.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/package_service.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/package_service.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/package_service.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/package_service.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/package_service.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/package_service.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/package_service.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/__fixtures__/docker_2_11_0.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__fixtures__/docker_2_11_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/__fixtures__/docker_2_11_0.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__fixtures__/docker_2_11_0.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/__fixtures__/logs_2_3_0.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__fixtures__/logs_2_3_0.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/__fixtures__/logs_2_3_0.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__fixtures__/logs_2_3_0.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/__fixtures__/redis_1_18_0_package_info.json b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__fixtures__/redis_1_18_0_package_info.json similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/__fixtures__/redis_1_18_0_package_info.json rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__fixtures__/redis_1_18_0_package_info.json diff --git a/x-pack/plugins/fleet/server/services/epm/packages/__fixtures__/redis_1_18_0_streams_template.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__fixtures__/redis_1_18_0_streams_template.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/__fixtures__/redis_1_18_0_streams_template.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__fixtures__/redis_1_18_0_streams_template.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/__snapshots__/get_templates_inputs.test.ts.snap b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__snapshots__/get_templates_inputs.test.ts.snap similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/__snapshots__/get_templates_inputs.test.ts.snap rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/__snapshots__/get_templates_inputs.test.ts.snap diff --git a/x-pack/plugins/fleet/server/services/epm/packages/assets.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/assets.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/assets.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/assets.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/assets.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/assets.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/assets.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/assets.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/bulk_install_packages.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/bulk_install_packages.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/bulk_install_packages.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/bulk_install_packages.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/bulk_install_packages.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/bulk_install_packages.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/bulk_install_packages.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/bulk_install_packages.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/bundled_packages.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/bundled_packages.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/bundled_packages.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/bundled_packages.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/bundled_packages.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/bundled_packages.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/bundled_packages.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/bundled_packages.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/cache.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/cache.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/cache.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/cache.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/cache.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/cache.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/cache.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/cache.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/cleanup.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/cleanup.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/cleanup.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/cleanup.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/cleanup.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/cleanup.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/cleanup.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/cleanup.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/dataset/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/dataset/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/dataset/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/dataset/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/dataset/ingest_pipeline.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/dataset/ingest_pipeline.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/dataset/ingest_pipeline.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/dataset/ingest_pipeline.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/dataset/manifest.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/dataset/manifest.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/dataset/manifest.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/dataset/manifest.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/dataset/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/dataset/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/dataset/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/dataset/utils.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/generate.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/generate.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/generate.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/generate.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/manifest.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/manifest.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/assets/manifest.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/assets/manifest.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/constants.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/constants.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/constants.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/constants.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/utils.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/utils.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/validation/check_dataset_name_format.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/validation/check_dataset_name_format.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/validation/check_dataset_name_format.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/validation/check_dataset_name_format.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/validation/check_naming_collision.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/validation/check_naming_collision.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/custom_integrations/validation/check_naming_collision.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/custom_integrations/validation/check_naming_collision.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/es_assets_reference.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/es_assets_reference.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/es_assets_reference.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/es_assets_reference.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/get.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/get.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/get.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/get.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/get_bulk_assets.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_bulk_assets.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/get_bulk_assets.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_bulk_assets.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/get_install_type.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_install_type.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/get_install_type.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_install_type.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/get_prerelease_setting.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_prerelease_setting.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/get_prerelease_setting.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_prerelease_setting.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/get_template_inputs.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_template_inputs.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/get_template_inputs.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_template_inputs.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/get_templates_inputs.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_templates_inputs.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/get_templates_inputs.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/get_templates_inputs.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_errors_helpers.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_errors_helpers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_errors_helpers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_errors_helpers.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_errors_helpers.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_errors_helpers.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_errors_helpers.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_errors_helpers.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_index_template_pipeline.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_index_template_pipeline.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_index_template_pipeline.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_index_template_pipeline.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/_state_machine_package_install.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/_state_machine_package_install.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/_state_machine_package_install.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/_state_machine_package_install.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/_state_machine_package_install.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/_state_machine_package_install.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/_state_machine_package_install.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/_state_machine_package_install.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/state_machine.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/state_machine.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/state_machine.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/state_machine.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/state_machine.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/state_machine.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/state_machine.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/state_machine.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_create_restart_installation.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_create_restart_installation.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_create_restart_installation.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_create_restart_installation.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_create_restart_installation.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_create_restart_installation.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_create_restart_installation.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_create_restart_installation.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_delete_previous_pipelines.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_delete_previous_pipelines.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_delete_previous_pipelines.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_delete_previous_pipelines.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_delete_previous_pipelines.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_delete_previous_pipelines.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_delete_previous_pipelines.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_delete_previous_pipelines.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_ilm_policies.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_ilm_policies.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_ilm_policies.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_ilm_policies.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_ilm_policies.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_ilm_policies.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_ilm_policies.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_ilm_policies.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_index_template_pipelines.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_index_template_pipelines.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_index_template_pipelines.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_index_template_pipelines.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_index_template_pipelines.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_index_template_pipelines.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_index_template_pipelines.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_index_template_pipelines.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_kibana_assets.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_kibana_assets.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_kibana_assets.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_kibana_assets.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_kibana_assets.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_kibana_assets.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_kibana_assets.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_kibana_assets.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_mlmodel.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_mlmodel.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_mlmodel.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_mlmodel.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_mlmodel.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_mlmodel.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_mlmodel.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_mlmodel.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_transforms.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_transforms.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_transforms.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_transforms.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_transforms.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_transforms.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_install_transforms.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_install_transforms.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_remove_legacy_templates.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_remove_legacy_templates.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_remove_legacy_templates.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_remove_legacy_templates.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_remove_legacy_templates.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_remove_legacy_templates.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_remove_legacy_templates.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_remove_legacy_templates.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_resolve_kibana_promise.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_resolve_kibana_promise.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_resolve_kibana_promise.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_resolve_kibana_promise.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_save_archive_entries.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_save_archive_entries.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_save_archive_entries.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_save_archive_entries.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_save_archive_entries.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_save_archive_entries.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_save_archive_entries.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_save_archive_entries.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_save_system_object.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_save_system_object.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_save_system_object.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_save_system_object.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_save_system_object.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_save_system_object.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_save_system_object.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_save_system_object.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_update_current_write_indices.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_update_current_write_indices.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_update_current_write_indices.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_update_current_write_indices.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_update_current_write_indices.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_update_current_write_indices.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/step_update_current_write_indices.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/step_update_current_write_indices.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/update_latest_executed_state.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/update_latest_executed_state.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/update_latest_executed_state.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/update_latest_executed_state.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/update_latest_executed_state.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/update_latest_executed_state.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/install_state_machine/steps/update_latest_executed_state.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/install_state_machine/steps/update_latest_executed_state.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/package_verification.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/package_verification.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/package_verification.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/package_verification.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/package_verification.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/package_verification.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/package_verification.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/package_verification.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/reinstall.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/reinstall.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/reinstall.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/reinstall.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/reinstall.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/reinstall.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/reinstall.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/reinstall.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/remove.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/remove.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/remove.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/remove.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/remove.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/remove.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/remove.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/remove.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/update.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/update.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/update.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/update.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/update.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/update.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/update.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/update.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/utils.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/packages/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/packages/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/packages/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/packages/utils.ts diff --git a/x-pack/plugins/fleet/server/services/epm/registry/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/registry/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/registry/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/registry/index.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/registry/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/registry/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/registry/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/registry/index.ts diff --git a/x-pack/plugins/fleet/server/services/epm/registry/proxy.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/registry/proxy.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/registry/proxy.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/registry/proxy.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/registry/proxy.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/registry/proxy.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/registry/proxy.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/registry/proxy.ts diff --git a/x-pack/plugins/fleet/server/services/epm/registry/registry_url.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/registry/registry_url.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/registry/registry_url.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/registry/registry_url.ts diff --git a/x-pack/plugins/fleet/server/services/epm/registry/requests.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/registry/requests.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/registry/requests.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/registry/requests.test.ts diff --git a/x-pack/plugins/fleet/server/services/epm/registry/requests.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/registry/requests.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/registry/requests.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/registry/requests.ts diff --git a/x-pack/plugins/fleet/server/services/epm/streams.ts b/x-pack/platform/plugins/shared/fleet/server/services/epm/streams.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/epm/streams.ts rename to x-pack/platform/plugins/shared/fleet/server/services/epm/streams.ts diff --git a/x-pack/plugins/fleet/server/services/experimental_datastream_features_helper.ts b/x-pack/platform/plugins/shared/fleet/server/services/experimental_datastream_features_helper.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/experimental_datastream_features_helper.ts rename to x-pack/platform/plugins/shared/fleet/server/services/experimental_datastream_features_helper.ts diff --git a/x-pack/plugins/fleet/server/services/files/client_from_host.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/client_from_host.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/client_from_host.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/client_from_host.test.ts diff --git a/x-pack/plugins/fleet/server/services/files/client_from_host.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/client_from_host.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/client_from_host.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/client_from_host.ts diff --git a/x-pack/plugins/fleet/server/services/files/client_to_host.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/client_to_host.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/client_to_host.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/client_to_host.test.ts diff --git a/x-pack/plugins/fleet/server/services/files/client_to_host.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/client_to_host.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/client_to_host.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/client_to_host.ts diff --git a/x-pack/plugins/fleet/server/services/files/get_files_client_factory.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/get_files_client_factory.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/get_files_client_factory.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/get_files_client_factory.test.ts diff --git a/x-pack/plugins/fleet/server/services/files/get_files_client_factory.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/get_files_client_factory.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/get_files_client_factory.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/get_files_client_factory.ts diff --git a/x-pack/plugins/fleet/server/services/files/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/index.test.ts diff --git a/x-pack/plugins/fleet/server/services/files/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/index.ts diff --git a/x-pack/plugins/fleet/server/services/files/mocks.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/mocks.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/mocks.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/mocks.ts diff --git a/x-pack/plugins/fleet/server/services/files/types.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/types.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/types.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/types.ts diff --git a/x-pack/plugins/fleet/server/services/files/utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/utils.test.ts diff --git a/x-pack/plugins/fleet/server/services/files/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/files/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/files/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/files/utils.ts diff --git a/x-pack/plugins/fleet/server/services/fleet_proxies.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/fleet_proxies.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/fleet_proxies.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/fleet_proxies.test.ts diff --git a/x-pack/plugins/fleet/server/services/fleet_proxies.ts b/x-pack/platform/plugins/shared/fleet/server/services/fleet_proxies.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/fleet_proxies.ts rename to x-pack/platform/plugins/shared/fleet/server/services/fleet_proxies.ts diff --git a/x-pack/plugins/fleet/server/services/fleet_server/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/fleet_server/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/fleet_server/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/fleet_server/index.test.ts diff --git a/x-pack/plugins/fleet/server/services/fleet_server/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/fleet_server/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/fleet_server/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/fleet_server/index.ts diff --git a/x-pack/plugins/fleet/server/services/fleet_server_host.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/fleet_server_host.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/fleet_server_host.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/fleet_server_host.test.ts diff --git a/x-pack/plugins/fleet/server/services/fleet_server_host.ts b/x-pack/platform/plugins/shared/fleet/server/services/fleet_server_host.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/fleet_server_host.ts rename to x-pack/platform/plugins/shared/fleet/server/services/fleet_server_host.ts diff --git a/x-pack/plugins/fleet/server/services/fleet_usage_logger.ts b/x-pack/platform/plugins/shared/fleet/server/services/fleet_usage_logger.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/fleet_usage_logger.ts rename to x-pack/platform/plugins/shared/fleet/server/services/fleet_usage_logger.ts diff --git a/x-pack/plugins/fleet/server/services/form_settings/form_settings.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/form_settings/form_settings.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/form_settings/form_settings.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/form_settings/form_settings.test.ts diff --git a/x-pack/plugins/fleet/server/services/form_settings/form_settings.ts b/x-pack/platform/plugins/shared/fleet/server/services/form_settings/form_settings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/form_settings/form_settings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/form_settings/form_settings.ts diff --git a/x-pack/plugins/fleet/server/services/form_settings/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/form_settings/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/form_settings/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/form_settings/index.ts diff --git a/x-pack/plugins/fleet/server/services/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/index.ts diff --git a/x-pack/plugins/fleet/server/services/license.ts b/x-pack/platform/plugins/shared/fleet/server/services/license.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/license.ts rename to x-pack/platform/plugins/shared/fleet/server/services/license.ts diff --git a/x-pack/plugins/fleet/server/services/metrics/fetch_agent_metrics.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/metrics/fetch_agent_metrics.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/metrics/fetch_agent_metrics.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/metrics/fetch_agent_metrics.test.ts diff --git a/x-pack/plugins/fleet/server/services/metrics/fetch_agent_metrics.ts b/x-pack/platform/plugins/shared/fleet/server/services/metrics/fetch_agent_metrics.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/metrics/fetch_agent_metrics.ts rename to x-pack/platform/plugins/shared/fleet/server/services/metrics/fetch_agent_metrics.ts diff --git a/x-pack/plugins/fleet/server/services/metrics/fleet_metrics_task.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/metrics/fleet_metrics_task.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/metrics/fleet_metrics_task.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/metrics/fleet_metrics_task.test.ts diff --git a/x-pack/plugins/fleet/server/services/metrics/fleet_metrics_task.ts b/x-pack/platform/plugins/shared/fleet/server/services/metrics/fleet_metrics_task.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/metrics/fleet_metrics_task.ts rename to x-pack/platform/plugins/shared/fleet/server/services/metrics/fleet_metrics_task.ts diff --git a/x-pack/plugins/fleet/server/services/output.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/output.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/output.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/output.test.ts diff --git a/x-pack/plugins/fleet/server/services/output.ts b/x-pack/platform/plugins/shared/fleet/server/services/output.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/output.ts rename to x-pack/platform/plugins/shared/fleet/server/services/output.ts diff --git a/x-pack/plugins/fleet/server/services/output_client.mock.ts b/x-pack/platform/plugins/shared/fleet/server/services/output_client.mock.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/output_client.mock.ts rename to x-pack/platform/plugins/shared/fleet/server/services/output_client.mock.ts diff --git a/x-pack/plugins/fleet/server/services/output_client.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/output_client.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/output_client.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/output_client.test.ts diff --git a/x-pack/plugins/fleet/server/services/output_client.ts b/x-pack/platform/plugins/shared/fleet/server/services/output_client.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/output_client.ts rename to x-pack/platform/plugins/shared/fleet/server/services/output_client.ts diff --git a/x-pack/plugins/fleet/server/services/outputs/so_helpers.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/outputs/so_helpers.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/outputs/so_helpers.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/outputs/so_helpers.test.ts diff --git a/x-pack/plugins/fleet/server/services/outputs/so_helpers.ts b/x-pack/platform/plugins/shared/fleet/server/services/outputs/so_helpers.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/outputs/so_helpers.ts rename to x-pack/platform/plugins/shared/fleet/server/services/outputs/so_helpers.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/experimental_datastream_features.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/experimental_datastream_features.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/experimental_datastream_features.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/experimental_datastream_features.test.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/experimental_datastream_features.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/experimental_datastream_features.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/experimental_datastream_features.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/experimental_datastream_features.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/fixtures/package_info/nginx_1.5.0.json b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/fixtures/package_info/nginx_1.5.0.json similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/fixtures/package_info/nginx_1.5.0.json rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/fixtures/package_info/nginx_1.5.0.json diff --git a/x-pack/plugins/fleet/server/services/package_policies/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/index.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/package_policy_name_helper.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/package_policy_name_helper.test.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/package_policy_name_helper.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/package_policy_name_helper.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/populate_package_policy_assigned_agent_count.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/populate_package_policy_assigned_agent_count.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/populate_package_policy_assigned_agent_count.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/populate_package_policy_assigned_agent_count.test.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/populate_package_policy_assigned_agents_count.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/populate_package_policy_assigned_agents_count.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/populate_package_policy_assigned_agents_count.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/populate_package_policy_assigned_agents_count.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/utils.test.ts diff --git a/x-pack/plugins/fleet/server/services/package_policies/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policies/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policies/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policies/utils.ts diff --git a/x-pack/plugins/fleet/server/services/package_policy.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policy.test.ts diff --git a/x-pack/plugins/fleet/server/services/package_policy.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policy.ts diff --git a/x-pack/plugins/fleet/server/services/package_policy_service.ts b/x-pack/platform/plugins/shared/fleet/server/services/package_policy_service.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/package_policy_service.ts rename to x-pack/platform/plugins/shared/fleet/server/services/package_policy_service.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration.test.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/delete_unenrolled_agent_setting.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/delete_unenrolled_agent_setting.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/delete_unenrolled_agent_setting.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/delete_unenrolled_agent_setting.test.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/delete_unenrolled_agent_setting.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/delete_unenrolled_agent_setting.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/delete_unenrolled_agent_setting.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/delete_unenrolled_agent_setting.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/fleet_proxies.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/fleet_proxies.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/fleet_proxies.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/fleet_proxies.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/fleet_server_host.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/fleet_server_host.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/fleet_server_host.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/fleet_server_host.test.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/fleet_server_host.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/fleet_server_host.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/fleet_server_host.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/fleet_server_host.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/outputs.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/outputs.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/outputs.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/outputs.test.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/outputs.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/outputs.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/outputs.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/outputs.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/reset_agent_policies.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/reset_agent_policies.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/reset_agent_policies.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/reset_agent_policies.test.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/reset_agent_policies.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/reset_agent_policies.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/reset_agent_policies.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/reset_agent_policies.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/space_settings.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/space_settings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/space_settings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/space_settings.ts diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/preconfiguration/utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/preconfiguration/utils.ts diff --git a/x-pack/plugins/fleet/server/services/register_fields_metadata_extractors.ts b/x-pack/platform/plugins/shared/fleet/server/services/register_fields_metadata_extractors.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/register_fields_metadata_extractors.ts rename to x-pack/platform/plugins/shared/fleet/server/services/register_fields_metadata_extractors.ts diff --git a/x-pack/plugins/fleet/server/services/request_store.ts b/x-pack/platform/plugins/shared/fleet/server/services/request_store.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/request_store.ts rename to x-pack/platform/plugins/shared/fleet/server/services/request_store.ts diff --git a/x-pack/plugins/fleet/server/services/saved_object.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/saved_object.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/saved_object.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/saved_object.test.ts diff --git a/x-pack/plugins/fleet/server/services/saved_object.ts b/x-pack/platform/plugins/shared/fleet/server/services/saved_object.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/saved_object.ts rename to x-pack/platform/plugins/shared/fleet/server/services/saved_object.ts diff --git a/x-pack/plugins/fleet/server/services/secrets.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/secrets.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/secrets.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/secrets.test.ts diff --git a/x-pack/plugins/fleet/server/services/secrets.ts b/x-pack/platform/plugins/shared/fleet/server/services/secrets.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/secrets.ts rename to x-pack/platform/plugins/shared/fleet/server/services/secrets.ts diff --git a/x-pack/plugins/fleet/server/services/security/fleet_router.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/fleet_router.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/fleet_router.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/fleet_router.test.ts diff --git a/x-pack/plugins/fleet/server/services/security/fleet_router.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/fleet_router.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/fleet_router.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/fleet_router.ts diff --git a/x-pack/plugins/fleet/server/services/security/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/index.ts diff --git a/x-pack/plugins/fleet/server/services/security/message_signing_service.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/message_signing_service.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/message_signing_service.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/message_signing_service.test.ts diff --git a/x-pack/plugins/fleet/server/services/security/message_signing_service.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/message_signing_service.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/message_signing_service.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/message_signing_service.ts diff --git a/x-pack/plugins/fleet/server/services/security/route_required_authz.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/route_required_authz.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/route_required_authz.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/route_required_authz.ts diff --git a/x-pack/plugins/fleet/server/services/security/security.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/security.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/security.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/security.test.ts diff --git a/x-pack/plugins/fleet/server/services/security/security.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/security.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/security.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/security.ts diff --git a/x-pack/plugins/fleet/server/services/security/types.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/types.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/types.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/types.ts diff --git a/x-pack/plugins/fleet/server/services/security/uninstall_token_service/index.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/uninstall_token_service/index.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/uninstall_token_service/index.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/uninstall_token_service/index.test.ts diff --git a/x-pack/plugins/fleet/server/services/security/uninstall_token_service/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/security/uninstall_token_service/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/security/uninstall_token_service/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/security/uninstall_token_service/index.ts diff --git a/x-pack/plugins/fleet/server/services/settings.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/settings.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/settings.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/settings.test.ts diff --git a/x-pack/plugins/fleet/server/services/settings.ts b/x-pack/platform/plugins/shared/fleet/server/services/settings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/settings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/settings.ts diff --git a/x-pack/plugins/fleet/server/services/setup.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup.test.ts diff --git a/x-pack/plugins/fleet/server/services/setup.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup.ts diff --git a/x-pack/plugins/fleet/server/services/setup/clean_old_fleet_indices.test.tsx b/x-pack/platform/plugins/shared/fleet/server/services/setup/clean_old_fleet_indices.test.tsx similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/clean_old_fleet_indices.test.tsx rename to x-pack/platform/plugins/shared/fleet/server/services/setup/clean_old_fleet_indices.test.tsx diff --git a/x-pack/plugins/fleet/server/services/setup/clean_old_fleet_indices.tsx b/x-pack/platform/plugins/shared/fleet/server/services/setup/clean_old_fleet_indices.tsx similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/clean_old_fleet_indices.tsx rename to x-pack/platform/plugins/shared/fleet/server/services/setup/clean_old_fleet_indices.tsx diff --git a/x-pack/plugins/fleet/server/services/setup/fleet_server_policies_enrollment_keys.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup/fleet_server_policies_enrollment_keys.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/fleet_server_policies_enrollment_keys.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup/fleet_server_policies_enrollment_keys.test.ts diff --git a/x-pack/plugins/fleet/server/services/setup/fleet_server_policies_enrollment_keys.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup/fleet_server_policies_enrollment_keys.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/fleet_server_policies_enrollment_keys.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup/fleet_server_policies_enrollment_keys.ts diff --git a/x-pack/plugins/fleet/server/services/setup/index.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/index.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup/index.ts diff --git a/x-pack/plugins/fleet/server/services/setup/managed_package_policies.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup/managed_package_policies.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/managed_package_policies.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup/managed_package_policies.test.ts diff --git a/x-pack/plugins/fleet/server/services/setup/managed_package_policies.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup/managed_package_policies.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/managed_package_policies.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup/managed_package_policies.ts diff --git a/x-pack/plugins/fleet/server/services/setup/upgrade_agent_policy_schema_version.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup/upgrade_agent_policy_schema_version.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/upgrade_agent_policy_schema_version.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup/upgrade_agent_policy_schema_version.ts diff --git a/x-pack/plugins/fleet/server/services/setup/upgrade_package_install_version.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup/upgrade_package_install_version.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/upgrade_package_install_version.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup/upgrade_package_install_version.test.ts diff --git a/x-pack/plugins/fleet/server/services/setup/upgrade_package_install_version.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup/upgrade_package_install_version.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup/upgrade_package_install_version.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup/upgrade_package_install_version.ts diff --git a/x-pack/plugins/fleet/server/services/setup_utils.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup_utils.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup_utils.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup_utils.test.ts diff --git a/x-pack/plugins/fleet/server/services/setup_utils.ts b/x-pack/platform/plugins/shared/fleet/server/services/setup_utils.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/setup_utils.ts rename to x-pack/platform/plugins/shared/fleet/server/services/setup_utils.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/agent_namespaces.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/agent_namespaces.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/agent_namespaces.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/agent_namespaces.test.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/agent_namespaces.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/agent_namespaces.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/agent_namespaces.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/agent_namespaces.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/agent_policy.test.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/agent_policy.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/agent_policy.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/enable_space_awareness.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/enable_space_awareness.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/enable_space_awareness.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/enable_space_awareness.test.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/enable_space_awareness.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/enable_space_awareness.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/enable_space_awareness.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/enable_space_awareness.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/get_current_namespace.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/get_current_namespace.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/get_current_namespace.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/get_current_namespace.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/helper.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/helper.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/helper.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/helper.test.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/helpers.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/helpers.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/helpers.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/helpers.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/package_policy.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/package_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/package_policy.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/policy_namespaces.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/policy_namespaces.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/policy_namespaces.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/policy_namespaces.test.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/policy_namespaces.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/policy_namespaces.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/policy_namespaces.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/policy_namespaces.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/query_namespaces_filtering.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/query_namespaces_filtering.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/query_namespaces_filtering.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/query_namespaces_filtering.test.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/query_namespaces_filtering.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/query_namespaces_filtering.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/query_namespaces_filtering.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/query_namespaces_filtering.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/space_settings.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/space_settings.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/space_settings.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/space_settings.test.ts diff --git a/x-pack/plugins/fleet/server/services/spaces/space_settings.ts b/x-pack/platform/plugins/shared/fleet/server/services/spaces/space_settings.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/spaces/space_settings.ts rename to x-pack/platform/plugins/shared/fleet/server/services/spaces/space_settings.ts diff --git a/x-pack/plugins/fleet/server/services/telemetry/fleet_usage_sender.ts b/x-pack/platform/plugins/shared/fleet/server/services/telemetry/fleet_usage_sender.ts similarity index 98% rename from x-pack/plugins/fleet/server/services/telemetry/fleet_usage_sender.ts rename to x-pack/platform/plugins/shared/fleet/server/services/telemetry/fleet_usage_sender.ts index d2ea4cab6ce3c..1bd4f97700d89 100644 --- a/x-pack/plugins/fleet/server/services/telemetry/fleet_usage_sender.ts +++ b/x-pack/platform/plugins/shared/fleet/server/services/telemetry/fleet_usage_sender.ts @@ -183,7 +183,7 @@ export class FleetUsageSender { } /** - * took schema from [here](https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/server/collectors/register.ts#L53) and adapted to EBT format + * took schema from [here](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/server/collectors/register.ts#L53) and adapted to EBT format */ private registerTelemetryEventType(core: CoreSetup): void { core.analytics.registerEventType({ diff --git a/x-pack/plugins/fleet/server/services/telemetry/fleet_usages_schema.ts b/x-pack/platform/plugins/shared/fleet/server/services/telemetry/fleet_usages_schema.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/telemetry/fleet_usages_schema.ts rename to x-pack/platform/plugins/shared/fleet/server/services/telemetry/fleet_usages_schema.ts diff --git a/x-pack/plugins/fleet/server/services/upgrade_sender.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/upgrade_sender.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/upgrade_sender.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/upgrade_sender.test.ts diff --git a/x-pack/plugins/fleet/server/services/upgrade_sender.ts b/x-pack/platform/plugins/shared/fleet/server/services/upgrade_sender.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/upgrade_sender.ts rename to x-pack/platform/plugins/shared/fleet/server/services/upgrade_sender.ts diff --git a/x-pack/plugins/fleet/server/services/utils/agentless.test.ts b/x-pack/platform/plugins/shared/fleet/server/services/utils/agentless.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/utils/agentless.test.ts rename to x-pack/platform/plugins/shared/fleet/server/services/utils/agentless.test.ts diff --git a/x-pack/plugins/fleet/server/services/utils/agentless.ts b/x-pack/platform/plugins/shared/fleet/server/services/utils/agentless.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/utils/agentless.ts rename to x-pack/platform/plugins/shared/fleet/server/services/utils/agentless.ts diff --git a/x-pack/plugins/fleet/server/services/utils/create_es_search_iterable.ts b/x-pack/platform/plugins/shared/fleet/server/services/utils/create_es_search_iterable.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/utils/create_es_search_iterable.ts rename to x-pack/platform/plugins/shared/fleet/server/services/utils/create_es_search_iterable.ts diff --git a/x-pack/plugins/fleet/server/services/utils/create_so_find_iterable.ts b/x-pack/platform/plugins/shared/fleet/server/services/utils/create_so_find_iterable.ts similarity index 100% rename from x-pack/plugins/fleet/server/services/utils/create_so_find_iterable.ts rename to x-pack/platform/plugins/shared/fleet/server/services/utils/create_so_find_iterable.ts diff --git a/x-pack/plugins/fleet/server/tasks/check_deleted_files_task.test.ts b/x-pack/platform/plugins/shared/fleet/server/tasks/check_deleted_files_task.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/tasks/check_deleted_files_task.test.ts rename to x-pack/platform/plugins/shared/fleet/server/tasks/check_deleted_files_task.test.ts diff --git a/x-pack/plugins/fleet/server/tasks/check_deleted_files_task.ts b/x-pack/platform/plugins/shared/fleet/server/tasks/check_deleted_files_task.ts similarity index 100% rename from x-pack/plugins/fleet/server/tasks/check_deleted_files_task.ts rename to x-pack/platform/plugins/shared/fleet/server/tasks/check_deleted_files_task.ts diff --git a/x-pack/plugins/fleet/server/tasks/delete_unenrolled_agents_task.test.ts b/x-pack/platform/plugins/shared/fleet/server/tasks/delete_unenrolled_agents_task.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/tasks/delete_unenrolled_agents_task.test.ts rename to x-pack/platform/plugins/shared/fleet/server/tasks/delete_unenrolled_agents_task.test.ts diff --git a/x-pack/plugins/fleet/server/tasks/delete_unenrolled_agents_task.ts b/x-pack/platform/plugins/shared/fleet/server/tasks/delete_unenrolled_agents_task.ts similarity index 100% rename from x-pack/plugins/fleet/server/tasks/delete_unenrolled_agents_task.ts rename to x-pack/platform/plugins/shared/fleet/server/tasks/delete_unenrolled_agents_task.ts diff --git a/x-pack/plugins/fleet/server/tasks/unenroll_inactive_agents_task.test.ts b/x-pack/platform/plugins/shared/fleet/server/tasks/unenroll_inactive_agents_task.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/tasks/unenroll_inactive_agents_task.test.ts rename to x-pack/platform/plugins/shared/fleet/server/tasks/unenroll_inactive_agents_task.test.ts diff --git a/x-pack/plugins/fleet/server/tasks/unenroll_inactive_agents_task.ts b/x-pack/platform/plugins/shared/fleet/server/tasks/unenroll_inactive_agents_task.ts similarity index 100% rename from x-pack/plugins/fleet/server/tasks/unenroll_inactive_agents_task.ts rename to x-pack/platform/plugins/shared/fleet/server/tasks/unenroll_inactive_agents_task.ts diff --git a/x-pack/plugins/fleet/server/telemetry/__mocks__/index.ts b/x-pack/platform/plugins/shared/fleet/server/telemetry/__mocks__/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/telemetry/__mocks__/index.ts rename to x-pack/platform/plugins/shared/fleet/server/telemetry/__mocks__/index.ts diff --git a/x-pack/plugins/fleet/server/telemetry/queue.test.ts b/x-pack/platform/plugins/shared/fleet/server/telemetry/queue.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/telemetry/queue.test.ts rename to x-pack/platform/plugins/shared/fleet/server/telemetry/queue.test.ts diff --git a/x-pack/plugins/fleet/server/telemetry/queue.ts b/x-pack/platform/plugins/shared/fleet/server/telemetry/queue.ts similarity index 100% rename from x-pack/plugins/fleet/server/telemetry/queue.ts rename to x-pack/platform/plugins/shared/fleet/server/telemetry/queue.ts diff --git a/x-pack/plugins/fleet/server/telemetry/sender.test.ts b/x-pack/platform/plugins/shared/fleet/server/telemetry/sender.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/telemetry/sender.test.ts rename to x-pack/platform/plugins/shared/fleet/server/telemetry/sender.test.ts diff --git a/x-pack/plugins/fleet/server/telemetry/sender.ts b/x-pack/platform/plugins/shared/fleet/server/telemetry/sender.ts similarity index 100% rename from x-pack/plugins/fleet/server/telemetry/sender.ts rename to x-pack/platform/plugins/shared/fleet/server/telemetry/sender.ts diff --git a/x-pack/plugins/fleet/server/telemetry/types.ts b/x-pack/platform/plugins/shared/fleet/server/telemetry/types.ts similarity index 100% rename from x-pack/plugins/fleet/server/telemetry/types.ts rename to x-pack/platform/plugins/shared/fleet/server/telemetry/types.ts diff --git a/x-pack/plugins/fleet/server/types/extensions.ts b/x-pack/platform/plugins/shared/fleet/server/types/extensions.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/extensions.ts rename to x-pack/platform/plugins/shared/fleet/server/types/extensions.ts diff --git a/x-pack/plugins/fleet/server/types/index.tsx b/x-pack/platform/plugins/shared/fleet/server/types/index.tsx similarity index 100% rename from x-pack/plugins/fleet/server/types/index.tsx rename to x-pack/platform/plugins/shared/fleet/server/types/index.tsx diff --git a/x-pack/plugins/fleet/server/types/models/agent.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/agent.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/agent.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/agent.ts diff --git a/x-pack/plugins/fleet/server/types/models/agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/agent_policy.test.ts diff --git a/x-pack/plugins/fleet/server/types/models/agent_policy.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/agent_policy.ts diff --git a/x-pack/plugins/fleet/server/types/models/download_sources.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/download_sources.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/download_sources.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/download_sources.ts diff --git a/x-pack/plugins/fleet/server/types/models/enrollment_api_key.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/enrollment_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/enrollment_api_key.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/enrollment_api_key.ts diff --git a/x-pack/plugins/fleet/server/types/models/index.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/index.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/index.ts diff --git a/x-pack/plugins/fleet/server/types/models/output.test.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/output.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/output.test.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/output.test.ts diff --git a/x-pack/plugins/fleet/server/types/models/output.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/output.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/output.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/output.ts diff --git a/x-pack/plugins/fleet/server/types/models/package_policy.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/package_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/package_policy.ts diff --git a/x-pack/plugins/fleet/server/types/models/preconfiguration.test.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/preconfiguration.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/preconfiguration.test.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/preconfiguration.test.ts diff --git a/x-pack/plugins/fleet/server/types/models/preconfiguration.ts b/x-pack/platform/plugins/shared/fleet/server/types/models/preconfiguration.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/models/preconfiguration.ts rename to x-pack/platform/plugins/shared/fleet/server/types/models/preconfiguration.ts diff --git a/x-pack/plugins/fleet/server/types/request_context.ts b/x-pack/platform/plugins/shared/fleet/server/types/request_context.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/request_context.ts rename to x-pack/platform/plugins/shared/fleet/server/types/request_context.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/agent.test.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/agent.test.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.test.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/agent.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/agent.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/agent_policy.test.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent_policy.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/agent_policy.test.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent_policy.test.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/agent_policy.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/agent_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/agent_policy.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/check_permissions.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/check_permissions.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/check_permissions.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/check_permissions.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/common.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/common.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/common.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/common.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/debug.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/debug.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/debug.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/debug.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/download_sources.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/download_sources.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/download_sources.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/download_sources.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/enrollment_api_key.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/enrollment_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/enrollment_api_key.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/enrollment_api_key.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/epm.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/epm.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/epm.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/epm.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/fleet_proxies.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/fleet_proxies.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/fleet_proxies.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/fleet_proxies.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/fleet_server_policy_config.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/fleet_server_policy_config.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/fleet_server_policy_config.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/fleet_server_policy_config.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/health_check.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/health_check.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/health_check.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/health_check.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/index.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/index.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/index.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/index.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/message_signing_service.test.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/message_signing_service.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/message_signing_service.test.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/message_signing_service.test.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/message_signing_service.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/message_signing_service.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/message_signing_service.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/message_signing_service.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/output.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/output.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/output.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/output.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/package_policy.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/package_policy.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/package_policy.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/package_policy.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/preconfiguration.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/preconfiguration.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/preconfiguration.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/preconfiguration.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/settings.test.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/settings.test.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/settings.test.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/settings.test.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/settings.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/settings.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/settings.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/settings.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/setup.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/setup.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/setup.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/setup.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/standalone_agent_api_key.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/standalone_agent_api_key.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/standalone_agent_api_key.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/standalone_agent_api_key.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/tags.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/tags.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/tags.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/tags.ts diff --git a/x-pack/plugins/fleet/server/types/rest_spec/uninstall_token.ts b/x-pack/platform/plugins/shared/fleet/server/types/rest_spec/uninstall_token.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/rest_spec/uninstall_token.ts rename to x-pack/platform/plugins/shared/fleet/server/types/rest_spec/uninstall_token.ts diff --git a/x-pack/plugins/fleet/server/types/so_attributes.ts b/x-pack/platform/plugins/shared/fleet/server/types/so_attributes.ts similarity index 100% rename from x-pack/plugins/fleet/server/types/so_attributes.ts rename to x-pack/platform/plugins/shared/fleet/server/types/so_attributes.ts diff --git a/x-pack/plugins/fleet/tsconfig.json b/x-pack/platform/plugins/shared/fleet/tsconfig.json similarity index 95% rename from x-pack/plugins/fleet/tsconfig.json rename to x-pack/platform/plugins/shared/fleet/tsconfig.json index 7499f980d5ebf..1bb5ad420ccda 100644 --- a/x-pack/plugins/fleet/tsconfig.json +++ b/x-pack/platform/plugins/shared/fleet/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -19,11 +19,11 @@ "package.json", "cypress.config.ts", "cypress.config.space_awareness.ts", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", - { "path": "../../../src/setup_node_env/tsconfig.json" }, + { "path": "../../../../../src/setup_node_env/tsconfig.json" }, // add references to other TypeScript projects the plugin depends on // requiredPlugins from ./kibana.json diff --git a/x-pack/plugins/fleet/cypress/reporter_config.json b/x-pack/plugins/fleet/cypress/reporter_config.json deleted file mode 100644 index 26d5fb471de1b..0000000000000 --- a/x-pack/plugins/fleet/cypress/reporter_config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "reporterEnabled": "mochawesome, mocha-junit-reporter", - "reporterOptions": { - "html": false, - "json": true, - "mochaFile": "../../../target/kibana-fleet/cypress/results/TEST-fleet-cypress-[hash].xml", - "overwrite": false, - "reportDir": "../../../target/kibana-fleet/cypress/results" - } -} diff --git a/x-pack/solutions/security/packages/navigation/src/constants.ts b/x-pack/solutions/security/packages/navigation/src/constants.ts index 9d998622f0807..c211adfba1b03 100644 --- a/x-pack/solutions/security/packages/navigation/src/constants.ts +++ b/x-pack/solutions/security/packages/navigation/src/constants.ts @@ -63,7 +63,7 @@ export enum ExternalPageName { // Ref: src/platform/packages/private/default-nav/devtools/default_navigation.ts devTools = 'dev_tools:', // Fleet - // Ref: x-pack/plugins/fleet/public/deep_links.ts + // Ref: x-pack/platform/plugins/shared/fleet/public/deep_links.ts fleet = 'fleet:', fleetAgents = 'fleet:agents', fleetPolicies = 'fleet:policies', diff --git a/x-pack/solutions/security/plugins/elastic_assistant/server/services/app_context.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/services/app_context.ts index 6648b12ddb02e..9708602db7f29 100644 --- a/x-pack/solutions/security/plugins/elastic_assistant/server/services/app_context.ts +++ b/x-pack/solutions/security/plugins/elastic_assistant/server/services/app_context.ts @@ -21,7 +21,7 @@ export interface ElasticAssistantAppContext { /** * Service for managing context specific to the Elastic Assistant * - * Inspired by `AppContextService` impl from fleet plugin: x-pack/plugins/fleet/server/services/app_context.ts + * Inspired by `AppContextService` impl from fleet plugin: x-pack/platform/plugins/shared/fleet/server/services/app_context.ts */ class AppContextService { private logger: Logger | undefined; diff --git a/x-pack/solutions/security/plugins/security_solution/README.md b/x-pack/solutions/security/plugins/security_solution/README.md index ebaaf6d7f347b..34d94cbb99283 100644 --- a/x-pack/solutions/security/plugins/security_solution/README.md +++ b/x-pack/solutions/security/plugins/security_solution/README.md @@ -97,7 +97,7 @@ PACKAGE_REGISTRY_URL_OVERRIDE= { const hit = this.generateEsHit(); // The mapping below is identical to `searchHitToAgent()` located in - // `x-pack/plugins/fleet/server/services/agents/helpers.ts:19` + // `x-pack/platform/plugins/shared/fleet/server/services/agents/helpers.ts:19` return merge( { // Casting here is needed because several of the attributes in `FleetServerAgent` are @@ -200,7 +200,7 @@ export class FleetAgentGenerator extends BaseDataGenerator { const esHit = this.generateEsHit(overrides); // Basically: reverse engineer the Fleet agent status runtime field: - // https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/server/services/agents/build_status_runtime_field.ts + // https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/server/services/agents/build_status_runtime_field.ts // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const fleetServerAgent = esHit._source!; @@ -226,7 +226,7 @@ export class FleetAgentGenerator extends BaseDataGenerator { case 'inactive': case 'offline': // current fleet timeout interface for offline is 5 minutes - // https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/common/services/agent_status.ts#L11 + // https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/common/services/agent_status.ts#L11 fleetServerAgent.last_checkin = moment().subtract(6, 'minutes').toISOString(); break; diff --git a/x-pack/solutions/security/plugins/security_solution/server/endpoint/utils/fleet_agent_status_to_endpoint_host_status.ts b/x-pack/solutions/security/plugins/security_solution/server/endpoint/utils/fleet_agent_status_to_endpoint_host_status.ts index 5afcc96ba34b2..8cbce1d39958e 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/endpoint/utils/fleet_agent_status_to_endpoint_host_status.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/endpoint/utils/fleet_agent_status_to_endpoint_host_status.ts @@ -9,7 +9,7 @@ import type { AgentStatus } from '@kbn/fleet-plugin/common'; import { HostStatus } from '../../../common/endpoint/types'; // For an understanding of how fleet agent status is calculated: -// @see `x-pack/plugins/fleet/common/services/agent_status.ts` +// @see `x-pack/platform/plugins/shared/fleet/common/services/agent_status.ts` const STATUS_MAPPING: ReadonlyMap = new Map([ ['online', HostStatus.HEALTHY], ['offline', HostStatus.OFFLINE], diff --git a/yarn.lock b/yarn.lock index 8f639285325fe..2a4c163fde4bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5745,7 +5745,7 @@ version "0.0.0" uid "" -"@kbn/fleet-plugin@link:x-pack/plugins/fleet": +"@kbn/fleet-plugin@link:x-pack/platform/plugins/shared/fleet": version "0.0.0" uid ""