diff --git a/.buildkite/pipelines/flaky_tests/groups.json b/.buildkite/pipelines/flaky_tests/groups.json
new file mode 100644
index 0000000000000..b47ccf16a0184
--- /dev/null
+++ b/.buildkite/pipelines/flaky_tests/groups.json
@@ -0,0 +1,34 @@
+{
+ "groups": [
+ {
+ "key": "oss/cigroup",
+ "name": "OSS CI Group",
+ "ciGroups": 12
+ },
+ {
+ "key": "oss/firefox",
+ "name": "OSS Firefox"
+ },
+ {
+ "key": "oss/accessibility",
+ "name": "OSS Accessibility"
+ },
+ {
+ "key": "xpack/cigroup",
+ "name": "Default CI Group",
+ "ciGroups": 27
+ },
+ {
+ "key": "xpack/cigroup/Docker",
+ "name": "Default CI Group Docker"
+ },
+ {
+ "key": "xpack/firefox",
+ "name": "Default Firefox"
+ },
+ {
+ "key": "xpack/accessibility",
+ "name": "Default Accessibility"
+ }
+ ]
+}
diff --git a/.buildkite/pipelines/flaky_tests/pipeline.js b/.buildkite/pipelines/flaky_tests/pipeline.js
index bf4abb9ff4c89..cb5c37bf58348 100644
--- a/.buildkite/pipelines/flaky_tests/pipeline.js
+++ b/.buildkite/pipelines/flaky_tests/pipeline.js
@@ -1,3 +1,15 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+const groups = /** @type {Array<{key: string, name: string, ciGroups: number }>} */ (
+ require('./groups.json').groups
+);
+
const stepInput = (key, nameOfSuite) => {
return {
key: `ftsr-suite/${key}`,
@@ -7,38 +19,31 @@ const stepInput = (key, nameOfSuite) => {
};
};
-const OSS_CI_GROUPS = 12;
-const XPACK_CI_GROUPS = 27;
-
const inputs = [
{
key: 'ftsr-override-count',
text: 'Override for all suites',
- default: 0,
+ default: '0',
required: true,
},
];
-for (let i = 1; i <= OSS_CI_GROUPS; i++) {
- inputs.push(stepInput(`oss/cigroup/${i}`, `OSS CI Group ${i}`));
+for (const group of groups) {
+ if (!group.ciGroups) {
+ inputs.push(stepInput(group.key, group.name));
+ } else {
+ for (let i = 1; i <= group.ciGroups; i++) {
+ inputs.push(stepInput(`${group.key}/${i}`, `${group.name} ${i}`));
+ }
+ }
}
-inputs.push(stepInput(`oss/firefox`, 'OSS Firefox'));
-inputs.push(stepInput(`oss/accessibility`, 'OSS Accessibility'));
-
-for (let i = 1; i <= XPACK_CI_GROUPS; i++) {
- inputs.push(stepInput(`xpack/cigroup/${i}`, `Default CI Group ${i}`));
-}
-
-inputs.push(stepInput(`xpack/cigroup/Docker`, 'Default CI Group Docker'));
-inputs.push(stepInput(`xpack/firefox`, 'Default Firefox'));
-inputs.push(stepInput(`xpack/accessibility`, 'Default Accessibility'));
-
const pipeline = {
steps: [
{
input: 'Number of Runs - Click Me',
fields: inputs,
+ if: `build.env('KIBANA_FLAKY_TEST_RUNNER_CONFIG') == null`,
},
{
wait: '~',
diff --git a/.buildkite/pipelines/flaky_tests/runner.js b/.buildkite/pipelines/flaky_tests/runner.js
index 0c2db5c724f7b..8529181644fd7 100644
--- a/.buildkite/pipelines/flaky_tests/runner.js
+++ b/.buildkite/pipelines/flaky_tests/runner.js
@@ -1,37 +1,93 @@
-const { execSync } = require('child_process');
-
-const keys = execSync('buildkite-agent meta-data keys')
- .toString()
- .split('\n')
- .filter((k) => k.startsWith('ftsr-suite/'));
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
-const overrideCount = parseInt(
- execSync(`buildkite-agent meta-data get 'ftsr-override-count'`).toString().trim()
-);
+const { execSync } = require('child_process');
const concurrency = 25;
+const defaultCount = concurrency * 2;
const initialJobs = 3;
-let totalJobs = initialJobs;
+function getTestSuitesFromMetadata() {
+ const keys = execSync('buildkite-agent meta-data keys')
+ .toString()
+ .split('\n')
+ .filter((k) => k.startsWith('ftsr-suite/'));
+
+ const overrideCount = execSync(`buildkite-agent meta-data get 'ftsr-override-count'`)
+ .toString()
+ .trim();
+
+ const testSuites = [];
+ for (const key of keys) {
+ if (!key) {
+ continue;
+ }
+
+ const value =
+ overrideCount || execSync(`buildkite-agent meta-data get '${key}'`).toString().trim();
+
+ const count = value === '' ? defaultCount : parseInt(value);
+ testSuites.push({
+ key: key.replace('ftsr-suite/', ''),
+ count: count,
+ });
+ }
-const testSuites = [];
-for (const key of keys) {
- if (!key) {
- continue;
+ return testSuites;
+}
+
+function getTestSuitesFromJson(json) {
+ const fail = (errorMsg) => {
+ console.error('+++ Invalid test config provided');
+ console.error(`${errorMsg}: ${json}`);
+ process.exit(1);
+ };
+
+ let parsed;
+ try {
+ parsed = JSON.parse(json);
+ } catch (error) {
+ fail(`JSON test config did not parse correctly`);
}
- const value =
- overrideCount || execSync(`buildkite-agent meta-data get '${key}'`).toString().trim();
+ if (!Array.isArray(parsed)) {
+ fail(`JSON test config must be an array`);
+ }
- const count = value === '' ? defaultCount : parseInt(value);
- totalJobs += count;
+ /** @type {Array<{ key: string, count: number }>} */
+ const testSuites = [];
+ for (const item of parsed) {
+ if (typeof item !== 'object' || item === null) {
+ fail(`testSuites must be objects`);
+ }
+ const key = item.key;
+ if (typeof key !== 'string') {
+ fail(`testSuite.key must be a string`);
+ }
+ const count = item.count;
+ if (typeof count !== 'number') {
+ fail(`testSuite.count must be a number`);
+ }
+ testSuites.push({
+ key,
+ count,
+ });
+ }
- testSuites.push({
- key: key.replace('ftsr-suite/', ''),
- count: count,
- });
+ return testSuites;
}
+const testSuites = process.env.KIBANA_FLAKY_TEST_RUNNER_CONFIG
+ ? getTestSuitesFromJson(process.env.KIBANA_FLAKY_TEST_RUNNER_CONFIG)
+ : getTestSuitesFromMetadata();
+
+const totalJobs = testSuites.reduce((acc, t) => acc + t.count, initialJobs);
+
if (totalJobs > 500) {
console.error('+++ Too many tests');
console.error(
diff --git a/.buildkite/scripts/lifecycle/annotate_test_failures.js b/.buildkite/scripts/lifecycle/annotate_test_failures.js
index caf1e08c2bb4d..068ca4b8329f1 100644
--- a/.buildkite/scripts/lifecycle/annotate_test_failures.js
+++ b/.buildkite/scripts/lifecycle/annotate_test_failures.js
@@ -1,3 +1,12 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+// eslint-disable-next-line import/no-unresolved
const { TestFailures } = require('kibana-buildkite-library');
(async () => {
diff --git a/.buildkite/scripts/lifecycle/build_status.js b/.buildkite/scripts/lifecycle/build_status.js
index f2a5024c96013..6658cc4647864 100644
--- a/.buildkite/scripts/lifecycle/build_status.js
+++ b/.buildkite/scripts/lifecycle/build_status.js
@@ -1,3 +1,12 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+// eslint-disable-next-line import/no-unresolved
const { BuildkiteClient } = require('kibana-buildkite-library');
(async () => {
diff --git a/.buildkite/scripts/lifecycle/ci_stats_complete.js b/.buildkite/scripts/lifecycle/ci_stats_complete.js
index d9411178799ab..b8347fa606ebe 100644
--- a/.buildkite/scripts/lifecycle/ci_stats_complete.js
+++ b/.buildkite/scripts/lifecycle/ci_stats_complete.js
@@ -1,3 +1,12 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+// eslint-disable-next-line import/no-unresolved
const { CiStats } = require('kibana-buildkite-library');
(async () => {
diff --git a/.buildkite/scripts/lifecycle/ci_stats_start.js b/.buildkite/scripts/lifecycle/ci_stats_start.js
index ec0e4c713499e..ea23b2bc7ad32 100644
--- a/.buildkite/scripts/lifecycle/ci_stats_start.js
+++ b/.buildkite/scripts/lifecycle/ci_stats_start.js
@@ -1,3 +1,12 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+// eslint-disable-next-line import/no-unresolved
const { CiStats } = require('kibana-buildkite-library');
(async () => {
diff --git a/.buildkite/scripts/lifecycle/print_agent_links.js b/.buildkite/scripts/lifecycle/print_agent_links.js
index 59613946c1db4..f1cbff29398d9 100644
--- a/.buildkite/scripts/lifecycle/print_agent_links.js
+++ b/.buildkite/scripts/lifecycle/print_agent_links.js
@@ -1,3 +1,12 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+// eslint-disable-next-line import/no-unresolved
const { BuildkiteClient } = require('kibana-buildkite-library');
(async () => {
diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.js b/.buildkite/scripts/pipelines/pull_request/pipeline.js
index ab125d4f73377..1df3b5f64b1df 100644
--- a/.buildkite/scripts/pipelines/pull_request/pipeline.js
+++ b/.buildkite/scripts/pipelines/pull_request/pipeline.js
@@ -1,5 +1,14 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
const execSync = require('child_process').execSync;
const fs = require('fs');
+// eslint-disable-next-line import/no-unresolved
const { areChangesSkippable, doAnyChangesMatch } = require('kibana-buildkite-library');
const SKIPPABLE_PATHS = [
@@ -77,20 +86,14 @@ const uploadPipeline = (pipelineContent) => {
}
if (
- (await doAnyChangesMatch([
- /^x-pack\/plugins\/fleet/,
- /^x-pack\/test\/fleet_cypress/,
- ])) ||
+ (await doAnyChangesMatch([/^x-pack\/plugins\/fleet/, /^x-pack\/test\/fleet_cypress/])) ||
process.env.GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/fleet_cypress.yml'));
}
if (
- (await doAnyChangesMatch([
- /^x-pack\/plugins\/osquery/,
- /^x-pack\/test\/osquery_cypress/,
- ])) ||
+ (await doAnyChangesMatch([/^x-pack\/plugins\/osquery/, /^x-pack\/test\/osquery_cypress/])) ||
process.env.GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/osquery_cypress.yml'));
diff --git a/.buildkite/scripts/steps/es_snapshots/bucket_config.js b/.buildkite/scripts/steps/es_snapshots/bucket_config.js
index a18d1182c4a89..6bbe80b60e764 100644
--- a/.buildkite/scripts/steps/es_snapshots/bucket_config.js
+++ b/.buildkite/scripts/steps/es_snapshots/bucket_config.js
@@ -1,3 +1,11 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
module.exports = {
BASE_BUCKET_DAILY: 'kibana-ci-es-snapshots-daily',
BASE_BUCKET_PERMANENT: 'kibana-ci-es-snapshots-permanent',
diff --git a/.buildkite/scripts/steps/es_snapshots/create_manifest.js b/.buildkite/scripts/steps/es_snapshots/create_manifest.js
index 3173737e984e8..cb4ea29a9c534 100644
--- a/.buildkite/scripts/steps/es_snapshots/create_manifest.js
+++ b/.buildkite/scripts/steps/es_snapshots/create_manifest.js
@@ -1,3 +1,11 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
const fs = require('fs');
const { execSync } = require('child_process');
const { BASE_BUCKET_DAILY } = require('./bucket_config.js');
@@ -47,7 +55,7 @@ const { BASE_BUCKET_DAILY } = require('./bucket_config.js');
version: parts[1],
platform: parts[3],
architecture: parts[4].split('.')[0],
- license: parts[0] == 'oss' ? 'oss' : 'default',
+ license: parts[0] === 'oss' ? 'oss' : 'default',
};
});
diff --git a/.buildkite/scripts/steps/es_snapshots/promote_manifest.js b/.buildkite/scripts/steps/es_snapshots/promote_manifest.js
index ce14935dd1b84..d7ff670755712 100644
--- a/.buildkite/scripts/steps/es_snapshots/promote_manifest.js
+++ b/.buildkite/scripts/steps/es_snapshots/promote_manifest.js
@@ -1,3 +1,11 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
const fs = require('fs');
const { execSync } = require('child_process');
const { BASE_BUCKET_DAILY, BASE_BUCKET_PERMANENT } = require('./bucket_config.js');
diff --git a/.buildkite/scripts/steps/storybooks/build_and_upload.js b/.buildkite/scripts/steps/storybooks/build_and_upload.js
index 89958fe08d6cc..86bfb4eeebf94 100644
--- a/.buildkite/scripts/steps/storybooks/build_and_upload.js
+++ b/.buildkite/scripts/steps/storybooks/build_and_upload.js
@@ -1,3 +1,11 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
const execSync = require('child_process').execSync;
const fs = require('fs');
const path = require('path');
@@ -73,7 +81,7 @@ const upload = () => {
.trim()
.split('\n')
.map((path) => path.replace('/', ''))
- .filter((path) => path != 'composite');
+ .filter((path) => path !== 'composite');
const listHtml = storybooks
.map((storybook) => `
${storybook} `)
diff --git a/.buildkite/yarn.lock b/.buildkite/yarn.lock
index 0b92d21c87e26..2c3ce924b22ea 100644
--- a/.buildkite/yarn.lock
+++ b/.buildkite/yarn.lock
@@ -23,9 +23,9 @@
universal-user-agent "^6.0.0"
"@octokit/endpoint@^6.0.1":
- version "6.0.6"
- resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.6.tgz#4f09f2b468976b444742a1d5069f6fa45826d999"
- integrity sha512-7Cc8olaCoL/mtquB7j/HTbPM+sY6Ebr4k2X2y4JoXpVKQ7r5xB4iGQE0IoO58wIPsUk4AzoT65AMEpymSbWTgQ==
+ version "6.0.9"
+ resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.9.tgz#c6a772e024202b1bd19ab69f90e0536a2598b13e"
+ integrity sha512-3VPLbcCuqji4IFTclNUtGdp9v7g+nspWdiCUbK3+iPMjJCZ6LEhn1ts626bWLOn0GiDb6j+uqGvPpqLnY7pBgw==
dependencies:
"@octokit/types" "^5.0.0"
is-plain-object "^5.0.0"
@@ -71,9 +71,9 @@
deprecation "^2.3.1"
"@octokit/request-error@^2.0.0":
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.2.tgz#0e76b83f5d8fdda1db99027ea5f617c2e6ba9ed0"
- integrity sha512-2BrmnvVSV1MXQvEkrb9zwzP0wXFNbPJij922kYBTLIlIafukrGOb+ABBT2+c6wZiuyWDH1K1zmjGQ0toN/wMWw==
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.3.tgz#b51b200052bf483f6fa56c9e7e3aa51ead36ecd8"
+ integrity sha512-GgD5z8Btm301i2zfvJLk/mkhvGCdjQ7wT8xF9ov5noQY8WbKZDH9cOBqXzoeKd1mLr1xH2FwbtGso135zGBgTA==
dependencies:
"@octokit/types" "^5.0.1"
deprecation "^2.0.0"
@@ -169,9 +169,9 @@ deprecation@^2.0.0, deprecation@^2.3.1:
integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==
follow-redirects@^1.14.0:
- version "1.14.4"
- resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.4.tgz#838fdf48a8bbdd79e52ee51fb1c94e3ed98b9379"
- integrity sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==
+ version "1.14.3"
+ resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.3.tgz#6ada78118d8d24caee595595accdc0ac6abd022e"
+ integrity sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==
is-plain-object@^5.0.0:
version "5.0.0"
@@ -180,15 +180,17 @@ is-plain-object@^5.0.0:
kibana-buildkite-library@elastic/kibana-buildkite-library:
version "1.0.0"
- resolved "https://codeload.github.com/elastic/kibana-buildkite-library/tar.gz/ee34f75c00712b639124cbef60f68132fa662643"
+ resolved "https://codeload.github.com/elastic/kibana-buildkite-library/tar.gz/f67122968ea54ba14036b55c9f99906d96a3733d"
dependencies:
"@octokit/rest" "^18.10.0"
axios "^0.21.4"
node-fetch@^2.6.1:
- version "2.6.1"
- resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
- integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
+ version "2.6.5"
+ resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.5.tgz#42735537d7f080a7e5f78b6c549b7146be1742fd"
+ integrity sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==
+ dependencies:
+ whatwg-url "^5.0.0"
once@^1.4.0:
version "1.4.0"
@@ -197,11 +199,29 @@ once@^1.4.0:
dependencies:
wrappy "1"
+tr46@~0.0.3:
+ version "0.0.3"
+ resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
+ integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=
+
universal-user-agent@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee"
integrity sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==
+webidl-conversions@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
+ integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=
+
+whatwg-url@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
+ integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0=
+ dependencies:
+ tr46 "~0.0.3"
+ webidl-conversions "^3.0.0"
+
wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
diff --git a/.eslintignore b/.eslintignore
index 040662604358f..5ae3fe7b0967d 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -17,6 +17,7 @@ snapshots.js
!/.ci
!/.eslintrc.js
!.storybook
+!.buildkite
# plugin overrides
/src/core/lib/kbn_internal_native_observable
diff --git a/api_docs/alerting.json b/api_docs/alerting.json
index 3626f39cd4222..ff7962fd64dd9 100644
--- a/api_docs/alerting.json
+++ b/api_docs/alerting.json
@@ -1492,7 +1492,9 @@
"label": "search",
"description": [],
"signature": [
- "(query: ",
+ "(query: ",
+ "SearchRequest",
+ " | ",
"SearchRequest",
", options?: ",
"TransportRequestOptions",
@@ -1500,7 +1502,7 @@
"TransportResult",
"<",
"SearchResponse",
- ", unknown>>"
+ ", TContext>>"
],
"path": "x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts",
"deprecated": false,
@@ -1508,11 +1510,13 @@
{
"parentPluginId": "alerting",
"id": "def-server.IAbortableEsClient.search.$1",
- "type": "Object",
+ "type": "CompoundType",
"tags": [],
"label": "query",
"description": [],
"signature": [
+ "SearchRequest",
+ " | ",
"SearchRequest"
],
"path": "x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts",
@@ -3446,10 +3450,10 @@
},
{
"parentPluginId": "alerting",
- "id": "def-common.AlertingFrameworkHealth.alertingFrameworkHeath",
+ "id": "def-common.AlertingFrameworkHealth.alertingFrameworkHealth",
"type": "Object",
"tags": [],
- "label": "alertingFrameworkHeath",
+ "label": "alertingFrameworkHealth",
"description": [],
"signature": [
{
diff --git a/api_docs/apm.json b/api_docs/apm.json
index 0440281c56f6b..ada0d56871958 100644
--- a/api_docs/apm.json
+++ b/api_docs/apm.json
@@ -186,7 +186,7 @@
"APMPluginSetupDependencies",
") => { config$: ",
"Observable",
- "; autoCreateApmDataView: boolean; serviceMapEnabled: boolean; serviceMapFingerprintBucketSize: number; serviceMapTraceIdBucketSize: number; serviceMapFingerprintGlobalBucketSize: number; serviceMapTraceIdGlobalBucketSize: number; serviceMapMaxTracesPerRequest: number; ui: Readonly<{} & { enabled: boolean; transactionGroupBucketSize: number; maxTraceItems: number; }>; searchAggregatedTransactions: ",
+ "; autoCreateApmDataView: boolean; serviceMapEnabled: boolean; serviceMapFingerprintBucketSize: number; serviceMapTraceIdBucketSize: number; serviceMapFingerprintGlobalBucketSize: number; serviceMapTraceIdGlobalBucketSize: number; serviceMapMaxTracesPerRequest: number; ui: Readonly<{} & { enabled: boolean; transactionGroupBucketSize: number; maxTraceItems: number; }>; searchAggregatedTransactions: ",
"SearchAggregatedTransactionSetting",
"; telemetryCollectionEnabled: boolean; metricsInterval: number; profilingEnabled: boolean; agent: Readonly<{} & { migrations: Readonly<{} & { enabled: boolean; }>; }>; }>>; getApmIndices: () => Promise<",
"ApmIndicesConfig",
@@ -378,7 +378,7 @@
"label": "config",
"description": [],
"signature": [
- "{ readonly indices: Readonly<{} & { error: string; metric: string; span: string; transaction: string; sourcemap: string; onboarding: string; }>; readonly autoCreateApmDataView: boolean; readonly serviceMapEnabled: boolean; readonly serviceMapFingerprintBucketSize: number; readonly serviceMapTraceIdBucketSize: number; readonly serviceMapFingerprintGlobalBucketSize: number; readonly serviceMapTraceIdGlobalBucketSize: number; readonly serviceMapMaxTracesPerRequest: number; readonly ui: Readonly<{} & { enabled: boolean; transactionGroupBucketSize: number; maxTraceItems: number; }>; readonly searchAggregatedTransactions: ",
+ "{ readonly indices: Readonly<{} & { error: string; span: string; metric: string; transaction: string; sourcemap: string; onboarding: string; }>; readonly autoCreateApmDataView: boolean; readonly serviceMapEnabled: boolean; readonly serviceMapFingerprintBucketSize: number; readonly serviceMapTraceIdBucketSize: number; readonly serviceMapFingerprintGlobalBucketSize: number; readonly serviceMapTraceIdGlobalBucketSize: number; readonly serviceMapMaxTracesPerRequest: number; readonly ui: Readonly<{} & { enabled: boolean; transactionGroupBucketSize: number; maxTraceItems: number; }>; readonly searchAggregatedTransactions: ",
"SearchAggregatedTransactionSetting",
"; readonly telemetryCollectionEnabled: boolean; readonly metricsInterval: number; readonly profilingEnabled: boolean; readonly agent: Readonly<{} & { migrations: Readonly<{} & { enabled: boolean; }>; }>; }"
],
@@ -765,7 +765,7 @@
"label": "APMConfig",
"description": [],
"signature": [
- "{ readonly indices: Readonly<{} & { error: string; metric: string; span: string; transaction: string; sourcemap: string; onboarding: string; }>; readonly autoCreateApmDataView: boolean; readonly serviceMapEnabled: boolean; readonly serviceMapFingerprintBucketSize: number; readonly serviceMapTraceIdBucketSize: number; readonly serviceMapFingerprintGlobalBucketSize: number; readonly serviceMapTraceIdGlobalBucketSize: number; readonly serviceMapMaxTracesPerRequest: number; readonly ui: Readonly<{} & { enabled: boolean; transactionGroupBucketSize: number; maxTraceItems: number; }>; readonly searchAggregatedTransactions: ",
+ "{ readonly indices: Readonly<{} & { error: string; span: string; metric: string; transaction: string; sourcemap: string; onboarding: string; }>; readonly autoCreateApmDataView: boolean; readonly serviceMapEnabled: boolean; readonly serviceMapFingerprintBucketSize: number; readonly serviceMapTraceIdBucketSize: number; readonly serviceMapFingerprintGlobalBucketSize: number; readonly serviceMapTraceIdGlobalBucketSize: number; readonly serviceMapMaxTracesPerRequest: number; readonly ui: Readonly<{} & { enabled: boolean; transactionGroupBucketSize: number; maxTraceItems: number; }>; readonly searchAggregatedTransactions: ",
"SearchAggregatedTransactionSetting",
"; readonly telemetryCollectionEnabled: boolean; readonly metricsInterval: number; readonly profilingEnabled: boolean; readonly agent: Readonly<{} & { migrations: Readonly<{} & { enabled: boolean; }>; }>; }"
],
@@ -781,7 +781,7 @@
"label": "ApmIndicesConfigName",
"description": [],
"signature": [
- "\"error\" | \"metric\" | \"span\" | \"transaction\" | \"sourcemap\" | \"onboarding\""
+ "\"error\" | \"span\" | \"metric\" | \"transaction\" | \"sourcemap\" | \"onboarding\""
],
"path": "x-pack/plugins/apm/server/index.ts",
"deprecated": false,
@@ -4146,7 +4146,7 @@
"section": "def-server.APMRouteHandlerResources",
"text": "APMRouteHandlerResources"
},
- ", { apmIndexSettings: { configurationName: \"error\" | \"metric\" | \"span\" | \"transaction\" | \"sourcemap\" | \"onboarding\"; defaultValue: string; savedValue: string | undefined; }[]; }, ",
+ ", { apmIndexSettings: { configurationName: \"error\" | \"span\" | \"metric\" | \"transaction\" | \"sourcemap\" | \"onboarding\"; defaultValue: string; savedValue: string | undefined; }[]; }, ",
"APMRouteCreateOptions",
">; } & { \"GET /internal/apm/settings/apm-indices\": ",
{
@@ -5559,7 +5559,7 @@
"description": [],
"signature": [
"Observable",
- "; autoCreateApmDataView: boolean; serviceMapEnabled: boolean; serviceMapFingerprintBucketSize: number; serviceMapTraceIdBucketSize: number; serviceMapFingerprintGlobalBucketSize: number; serviceMapTraceIdGlobalBucketSize: number; serviceMapMaxTracesPerRequest: number; ui: Readonly<{} & { enabled: boolean; transactionGroupBucketSize: number; maxTraceItems: number; }>; searchAggregatedTransactions: ",
+ "; autoCreateApmDataView: boolean; serviceMapEnabled: boolean; serviceMapFingerprintBucketSize: number; serviceMapTraceIdBucketSize: number; serviceMapFingerprintGlobalBucketSize: number; serviceMapTraceIdGlobalBucketSize: number; serviceMapMaxTracesPerRequest: number; ui: Readonly<{} & { enabled: boolean; transactionGroupBucketSize: number; maxTraceItems: number; }>; searchAggregatedTransactions: ",
"SearchAggregatedTransactionSetting",
"; telemetryCollectionEnabled: boolean; metricsInterval: number; profilingEnabled: boolean; agent: Readonly<{} & { migrations: Readonly<{} & { enabled: boolean; }>; }>; }>>"
],
diff --git a/api_docs/data.json b/api_docs/data.json
index 583b3a07be346..6ed1326bcb218 100644
--- a/api_docs/data.json
+++ b/api_docs/data.json
@@ -10911,6 +10911,20 @@
],
"path": "src/plugins/data_views/common/types.ts",
"deprecated": false
+ },
+ {
+ "parentPluginId": "data",
+ "id": "def-public.GetFieldsOptions.filter",
+ "type": "Object",
+ "tags": [],
+ "label": "filter",
+ "description": [],
+ "signature": [
+ "QueryDslQueryContainer",
+ " | undefined"
+ ],
+ "path": "src/plugins/data_views/common/types.ts",
+ "deprecated": false
}
],
"initialIsOpen": false
@@ -13419,7 +13433,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -13443,7 +13465,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -14883,7 +14913,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -14907,7 +14945,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -20245,7 +20291,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -20269,7 +20323,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -20446,7 +20508,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -20470,7 +20540,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -27159,7 +27237,9 @@
"\n Get a list of field objects for an index pattern that may contain wildcards\n"
],
"signature": [
- "(options: { pattern: string | string[]; metaFields?: string[] | undefined; fieldCapsOptions?: { allow_no_indices: boolean; } | undefined; type?: string | undefined; rollupIndex?: string | undefined; }) => Promise<",
+ "(options: { pattern: string | string[]; metaFields?: string[] | undefined; fieldCapsOptions?: { allow_no_indices: boolean; } | undefined; type?: string | undefined; rollupIndex?: string | undefined; filter?: ",
+ "QueryDslQueryContainer",
+ " | undefined; }) => Promise<",
{
"pluginId": "dataViews",
"scope": "server",
@@ -27246,6 +27326,20 @@
],
"path": "src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts",
"deprecated": false
+ },
+ {
+ "parentPluginId": "data",
+ "id": "def-server.IndexPatternsFetcher.getFieldsForWildcard.$1.filter",
+ "type": "Object",
+ "tags": [],
+ "label": "filter",
+ "description": [],
+ "signature": [
+ "QueryDslQueryContainer",
+ " | undefined"
+ ],
+ "path": "src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts",
+ "deprecated": false
}
]
}
@@ -33805,7 +33899,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise"
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>"
],
"path": "src/plugins/data_views/common/data_views/data_views.ts",
"deprecated": false,
@@ -33869,7 +33971,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise"
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>"
],
"path": "src/plugins/data_views/common/data_views/data_views.ts",
"deprecated": false,
@@ -42552,6 +42662,20 @@
],
"path": "src/plugins/data_views/common/types.ts",
"deprecated": false
+ },
+ {
+ "parentPluginId": "data",
+ "id": "def-common.GetFieldsOptions.filter",
+ "type": "Object",
+ "tags": [],
+ "label": "filter",
+ "description": [],
+ "signature": [
+ "QueryDslQueryContainer",
+ " | undefined"
+ ],
+ "path": "src/plugins/data_views/common/types.ts",
+ "deprecated": false
}
],
"initialIsOpen": false
@@ -45179,7 +45303,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -45203,7 +45335,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -46497,7 +46637,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -46521,7 +46669,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
diff --git a/api_docs/data.mdx b/api_docs/data.mdx
index cd9aa319436d0..d4f90f5a9f2ac 100644
--- a/api_docs/data.mdx
+++ b/api_docs/data.mdx
@@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 3334 | 39 | 2933 | 26 |
+| 3337 | 39 | 2936 | 26 |
## Client
diff --git a/api_docs/data_autocomplete.mdx b/api_docs/data_autocomplete.mdx
index 7de170e4442ae..a360f356765a2 100644
--- a/api_docs/data_autocomplete.mdx
+++ b/api_docs/data_autocomplete.mdx
@@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 3334 | 39 | 2933 | 26 |
+| 3337 | 39 | 2936 | 26 |
## Client
diff --git a/api_docs/data_query.mdx b/api_docs/data_query.mdx
index 7948f30e22018..3bd8b466b8a04 100644
--- a/api_docs/data_query.mdx
+++ b/api_docs/data_query.mdx
@@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 3334 | 39 | 2933 | 26 |
+| 3337 | 39 | 2936 | 26 |
## Client
diff --git a/api_docs/data_search.mdx b/api_docs/data_search.mdx
index 57c85f95a254d..21174684af5f8 100644
--- a/api_docs/data_search.mdx
+++ b/api_docs/data_search.mdx
@@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 3334 | 39 | 2933 | 26 |
+| 3337 | 39 | 2936 | 26 |
## Client
diff --git a/api_docs/data_ui.mdx b/api_docs/data_ui.mdx
index b2257691ea28a..cfb91331ff3ed 100644
--- a/api_docs/data_ui.mdx
+++ b/api_docs/data_ui.mdx
@@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 3334 | 39 | 2933 | 26 |
+| 3337 | 39 | 2936 | 26 |
## Client
diff --git a/api_docs/data_views.json b/api_docs/data_views.json
index d68cbc20ce129..900042d09177a 100644
--- a/api_docs/data_views.json
+++ b/api_docs/data_views.json
@@ -2138,7 +2138,7 @@
"label": "getFieldsForWildcard",
"description": [],
"signature": [
- "({ pattern, metaFields, type, rollupIndex, allowNoIndex }: ",
+ "({ pattern, metaFields, type, rollupIndex, allowNoIndex, filter, }: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -2156,7 +2156,7 @@
"id": "def-public.DataViewsApiClient.getFieldsForWildcard.$1",
"type": "Object",
"tags": [],
- "label": "{ pattern, metaFields, type, rollupIndex, allowNoIndex }",
+ "label": "{\n pattern,\n metaFields,\n type,\n rollupIndex,\n allowNoIndex,\n filter,\n }",
"description": [],
"signature": [
{
@@ -2830,7 +2830,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise"
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>"
],
"path": "src/plugins/data_views/common/data_views/data_views.ts",
"deprecated": false,
@@ -2894,7 +2902,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise"
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>"
],
"path": "src/plugins/data_views/common/data_views/data_views.ts",
"deprecated": false,
@@ -9350,7 +9366,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -9374,7 +9398,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -9592,7 +9624,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -9616,7 +9656,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -10335,7 +10383,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -10359,7 +10415,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -10849,7 +10913,9 @@
"\n Get a list of field objects for an index pattern that may contain wildcards\n"
],
"signature": [
- "(options: { pattern: string | string[]; metaFields?: string[] | undefined; fieldCapsOptions?: { allow_no_indices: boolean; } | undefined; type?: string | undefined; rollupIndex?: string | undefined; }) => Promise<",
+ "(options: { pattern: string | string[]; metaFields?: string[] | undefined; fieldCapsOptions?: { allow_no_indices: boolean; } | undefined; type?: string | undefined; rollupIndex?: string | undefined; filter?: ",
+ "QueryDslQueryContainer",
+ " | undefined; }) => Promise<",
{
"pluginId": "dataViews",
"scope": "server",
@@ -10936,6 +11002,20 @@
],
"path": "src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts",
"deprecated": false
+ },
+ {
+ "parentPluginId": "dataViews",
+ "id": "def-server.IndexPatternsFetcher.getFieldsForWildcard.$1.filter",
+ "type": "Object",
+ "tags": [],
+ "label": "filter",
+ "description": [],
+ "signature": [
+ "QueryDslQueryContainer",
+ " | undefined"
+ ],
+ "path": "src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts",
+ "deprecated": false
}
]
}
@@ -15105,7 +15185,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise"
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>"
],
"path": "src/plugins/data_views/common/data_views/data_views.ts",
"deprecated": false,
@@ -15169,7 +15257,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise"
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>"
],
"path": "src/plugins/data_views/common/data_views/data_views.ts",
"deprecated": false,
@@ -21765,6 +21861,20 @@
],
"path": "src/plugins/data_views/common/types.ts",
"deprecated": false
+ },
+ {
+ "parentPluginId": "dataViews",
+ "id": "def-common.GetFieldsOptions.filter",
+ "type": "Object",
+ "tags": [],
+ "label": "filter",
+ "description": [],
+ "signature": [
+ "QueryDslQueryContainer",
+ " | undefined"
+ ],
+ "path": "src/plugins/data_views/common/types.ts",
+ "deprecated": false
}
],
"initialIsOpen": false
@@ -24694,7 +24804,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -24718,7 +24836,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -25291,7 +25417,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- ") => Promise; getFieldsForIndexPattern: (indexPattern: ",
+ ") => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; getFieldsForIndexPattern: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
@@ -25315,7 +25449,15 @@
"section": "def-common.GetFieldsOptions",
"text": "GetFieldsOptions"
},
- " | undefined) => Promise; refreshFields: (indexPattern: ",
+ " | undefined) => Promise<",
+ {
+ "pluginId": "dataViews",
+ "scope": "common",
+ "docId": "kibDataViewsPluginApi",
+ "section": "def-common.FieldSpec",
+ "text": "FieldSpec"
+ },
+ "[]>; refreshFields: (indexPattern: ",
{
"pluginId": "dataViews",
"scope": "common",
diff --git a/api_docs/data_views.mdx b/api_docs/data_views.mdx
index 4ca2d2c7af419..0c5cf43119410 100644
--- a/api_docs/data_views.mdx
+++ b/api_docs/data_views.mdx
@@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 712 | 3 | 564 | 6 |
+| 714 | 3 | 566 | 6 |
## Client
diff --git a/api_docs/deprecations_by_api.mdx b/api_docs/deprecations_by_api.mdx
index 76fd699a02ec9..4f9b5ee71b326 100644
--- a/api_docs/deprecations_by_api.mdx
+++ b/api_docs/deprecations_by_api.mdx
@@ -153,90 +153,90 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
Safe to remove.
-| Deprecated API |
-| ---------------|
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
-| |
\ No newline at end of file
+| Deprecated API | Plugin Id |
+| ---------------|------------|
+| | dashboard |
+| | dashboard |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | data |
+| | dataViews |
+| | dataViews |
+| | dataViews |
+| | dataViews |
+| | dataViews |
+| | expressions |
+| | expressions |
+| | expressions |
+| | expressions |
+| | expressions |
+| | expressions |
+| | expressions |
+| | expressions |
+| | expressions |
+| | expressions |
+| | screenshotMode |
+| | screenshotMode |
+| | screenshotMode |
+| | licensing |
+| | licensing |
+| | licensing |
+| | licensing |
+| | core |
+| | core |
+| | core |
+| | core |
+| | core |
+| | core |
+| | core |
+| | @kbn/es-query |
+| | @kbn/es-query |
\ No newline at end of file
diff --git a/api_docs/event_log.json b/api_docs/event_log.json
index 0a160ee9b1022..e89398e3d7bd5 100644
--- a/api_docs/event_log.json
+++ b/api_docs/event_log.json
@@ -892,7 +892,7 @@
"label": "data",
"description": [],
"signature": [
- "(Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}> | undefined)[]"
+ "(Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}> | undefined)[]"
],
"path": "x-pack/plugins/event_log/server/es/cluster_client_adapter.ts",
"deprecated": false
@@ -911,7 +911,7 @@
"label": "IEvent",
"description": [],
"signature": [
- "DeepPartial | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}>>> | undefined"
+ "DeepPartial | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}>>> | undefined"
],
"path": "x-pack/plugins/event_log/generated/schemas.ts",
"deprecated": false,
@@ -925,7 +925,7 @@
"label": "IValidatedEvent",
"description": [],
"signature": [
- "Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}> | undefined"
+ "Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}> | undefined"
],
"path": "x-pack/plugins/event_log/generated/schemas.ts",
"deprecated": false,
diff --git a/api_docs/expression_shape.json b/api_docs/expression_shape.json
index 879f590da1c91..4ea44f1d380d2 100644
--- a/api_docs/expression_shape.json
+++ b/api_docs/expression_shape.json
@@ -636,7 +636,7 @@
"label": "strokeLinecap",
"description": [],
"signature": [
- "\"inherit\" | \"butt\" | \"round\" | \"square\" | undefined"
+ "\"square\" | \"inherit\" | \"butt\" | \"round\" | undefined"
],
"path": "src/plugins/expression_shape/public/components/reusable/types.tsx",
"deprecated": false
diff --git a/api_docs/expressions.json b/api_docs/expressions.json
index b0c68ac5b8191..6307b0ebf5ad9 100644
--- a/api_docs/expressions.json
+++ b/api_docs/expressions.json
@@ -39819,7 +39819,7 @@
"label": "options",
"description": [],
"signature": [
- "(\"min\" | \"max\" | \"sum\" | \"average\")[]"
+ "(\"sum\" | \"max\" | \"min\" | \"average\")[]"
],
"path": "src/plugins/expressions/common/expression_functions/specs/overall_metric.ts",
"deprecated": false
diff --git a/api_docs/fleet.json b/api_docs/fleet.json
index 8c6489f3b71bb..07cc158a92943 100644
--- a/api_docs/fleet.json
+++ b/api_docs/fleet.json
@@ -15576,7 +15576,7 @@
"label": "[RegistryVarsEntryKeys.type]",
"description": [],
"signature": [
- "\"string\" | \"text\" | \"yaml\" | \"integer\" | \"bool\" | \"password\""
+ "\"string\" | \"text\" | \"integer\" | \"yaml\" | \"bool\" | \"password\""
],
"path": "x-pack/plugins/fleet/common/types/models/epm.ts",
"deprecated": false
@@ -18813,7 +18813,7 @@
"label": "RegistryVarType",
"description": [],
"signature": [
- "\"string\" | \"text\" | \"yaml\" | \"integer\" | \"bool\" | \"password\""
+ "\"string\" | \"text\" | \"integer\" | \"yaml\" | \"bool\" | \"password\""
],
"path": "x-pack/plugins/fleet/common/types/models/epm.ts",
"deprecated": false,
diff --git a/api_docs/kbn_es_query.json b/api_docs/kbn_es_query.json
index 653cd4b3dc164..1c209df745cc9 100644
--- a/api_docs/kbn_es_query.json
+++ b/api_docs/kbn_es_query.json
@@ -3392,7 +3392,7 @@
"label": "function",
"description": [],
"signature": [
- "\"nested\" | \"is\" | \"exists\" | \"range\" | \"and\" | \"or\" | \"not\""
+ "\"nested\" | \"is\" | \"exists\" | \"and\" | \"or\" | \"range\" | \"not\""
],
"path": "packages/kbn-es-query/src/kuery/node_types/types.ts",
"deprecated": false
diff --git a/api_docs/kbn_interpreter.json b/api_docs/kbn_interpreter.json
new file mode 100644
index 0000000000000..654d1fc5b9037
--- /dev/null
+++ b/api_docs/kbn_interpreter.json
@@ -0,0 +1,510 @@
+{
+ "id": "@kbn/interpreter",
+ "client": {
+ "classes": [],
+ "functions": [],
+ "interfaces": [],
+ "enums": [],
+ "misc": [],
+ "objects": []
+ },
+ "server": {
+ "classes": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry",
+ "type": "Class",
+ "tags": [],
+ "label": "Registry",
+ "description": [],
+ "signature": [
+ {
+ "pluginId": "@kbn/interpreter",
+ "scope": "server",
+ "docId": "kibKbnInterpreterPluginApi",
+ "section": "def-server.Registry",
+ "text": "Registry"
+ },
+ ""
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.Unnamed",
+ "type": "Function",
+ "tags": [],
+ "label": "Constructor",
+ "description": [],
+ "signature": [
+ "any"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.Unnamed.$1",
+ "type": "string",
+ "tags": [],
+ "label": "prop",
+ "description": [],
+ "signature": [
+ "string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": []
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.wrapper",
+ "type": "Function",
+ "tags": [],
+ "label": "wrapper",
+ "description": [],
+ "signature": [
+ "(obj: ItemSpec) => Item"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.wrapper.$1",
+ "type": "Uncategorized",
+ "tags": [],
+ "label": "obj",
+ "description": [],
+ "signature": [
+ "ItemSpec"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": []
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.register",
+ "type": "Function",
+ "tags": [],
+ "label": "register",
+ "description": [],
+ "signature": [
+ "(fn: () => ItemSpec) => void"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.register.$1",
+ "type": "Function",
+ "tags": [],
+ "label": "fn",
+ "description": [],
+ "signature": [
+ "() => ItemSpec"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": []
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.toJS",
+ "type": "Function",
+ "tags": [],
+ "label": "toJS",
+ "description": [],
+ "signature": [
+ "() => { [key: string]: any; }"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [],
+ "returnComment": []
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.toArray",
+ "type": "Function",
+ "tags": [],
+ "label": "toArray",
+ "description": [],
+ "signature": [
+ "() => Item[]"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [],
+ "returnComment": []
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.get",
+ "type": "Function",
+ "tags": [],
+ "label": "get",
+ "description": [],
+ "signature": [
+ "(name: string) => Item"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.get.$1",
+ "type": "string",
+ "tags": [],
+ "label": "name",
+ "description": [],
+ "signature": [
+ "string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": []
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.getProp",
+ "type": "Function",
+ "tags": [],
+ "label": "getProp",
+ "description": [],
+ "signature": [
+ "() => string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [],
+ "returnComment": []
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Registry.reset",
+ "type": "Function",
+ "tags": [],
+ "label": "reset",
+ "description": [],
+ "signature": [
+ "() => void"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/registry.ts",
+ "deprecated": false,
+ "children": [],
+ "returnComment": []
+ }
+ ],
+ "initialIsOpen": false
+ }
+ ],
+ "functions": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.fromExpression",
+ "type": "Function",
+ "tags": [],
+ "label": "fromExpression",
+ "description": [],
+ "signature": [
+ "(expression: string, type: string) => ",
+ {
+ "pluginId": "@kbn/interpreter",
+ "scope": "server",
+ "docId": "kibKbnInterpreterPluginApi",
+ "section": "def-server.Ast",
+ "text": "Ast"
+ }
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.fromExpression.$1",
+ "type": "string",
+ "tags": [],
+ "label": "expression",
+ "description": [],
+ "signature": [
+ "string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "isRequired": true
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.fromExpression.$2",
+ "type": "string",
+ "tags": [],
+ "label": "type",
+ "description": [],
+ "signature": [
+ "string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": [],
+ "initialIsOpen": false
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.getType",
+ "type": "Function",
+ "tags": [],
+ "label": "getType",
+ "description": [],
+ "signature": [
+ "(node: any) => string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/get_type.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.getType.$1",
+ "type": "Any",
+ "tags": [],
+ "label": "node",
+ "description": [],
+ "signature": [
+ "any"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/get_type.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": [],
+ "initialIsOpen": false
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.safeElementFromExpression",
+ "type": "Function",
+ "tags": [],
+ "label": "safeElementFromExpression",
+ "description": [],
+ "signature": [
+ "(expression: string) => ",
+ {
+ "pluginId": "@kbn/interpreter",
+ "scope": "server",
+ "docId": "kibKbnInterpreterPluginApi",
+ "section": "def-server.Ast",
+ "text": "Ast"
+ }
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.safeElementFromExpression.$1",
+ "type": "string",
+ "tags": [],
+ "label": "expression",
+ "description": [],
+ "signature": [
+ "string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": [],
+ "initialIsOpen": false
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.toExpression",
+ "type": "Function",
+ "tags": [],
+ "label": "toExpression",
+ "description": [],
+ "signature": [
+ "(astObj: ",
+ {
+ "pluginId": "@kbn/interpreter",
+ "scope": "server",
+ "docId": "kibKbnInterpreterPluginApi",
+ "section": "def-server.Ast",
+ "text": "Ast"
+ },
+ ", type: string) => string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.toExpression.$1",
+ "type": "Object",
+ "tags": [],
+ "label": "astObj",
+ "description": [],
+ "signature": [
+ {
+ "pluginId": "@kbn/interpreter",
+ "scope": "server",
+ "docId": "kibKbnInterpreterPluginApi",
+ "section": "def-server.Ast",
+ "text": "Ast"
+ }
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "isRequired": true
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.toExpression.$2",
+ "type": "string",
+ "tags": [],
+ "label": "type",
+ "description": [],
+ "signature": [
+ "string"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": [],
+ "initialIsOpen": false
+ }
+ ],
+ "interfaces": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Ast",
+ "type": "Interface",
+ "tags": [],
+ "label": "Ast",
+ "description": [],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Ast.type",
+ "type": "string",
+ "tags": [],
+ "label": "type",
+ "description": [],
+ "signature": [
+ "\"expression\""
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.Ast.chain",
+ "type": "Array",
+ "tags": [],
+ "label": "chain",
+ "description": [],
+ "signature": [
+ {
+ "pluginId": "@kbn/interpreter",
+ "scope": "server",
+ "docId": "kibKbnInterpreterPluginApi",
+ "section": "def-server.ExpressionFunctionAST",
+ "text": "ExpressionFunctionAST"
+ },
+ "[]"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false
+ }
+ ],
+ "initialIsOpen": false
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.ExpressionFunctionAST",
+ "type": "Interface",
+ "tags": [],
+ "label": "ExpressionFunctionAST",
+ "description": [],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.ExpressionFunctionAST.type",
+ "type": "string",
+ "tags": [],
+ "label": "type",
+ "description": [],
+ "signature": [
+ "\"function\""
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.ExpressionFunctionAST.function",
+ "type": "string",
+ "tags": [],
+ "label": "function",
+ "description": [],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/interpreter",
+ "id": "def-server.ExpressionFunctionAST.arguments",
+ "type": "Object",
+ "tags": [],
+ "label": "arguments",
+ "description": [],
+ "signature": [
+ "{ [key: string]: ",
+ "ExpressionArgAST",
+ "[]; }"
+ ],
+ "path": "packages/kbn-interpreter/src/common/lib/ast.ts",
+ "deprecated": false
+ }
+ ],
+ "initialIsOpen": false
+ }
+ ],
+ "enums": [],
+ "misc": [],
+ "objects": []
+ },
+ "common": {
+ "classes": [],
+ "functions": [],
+ "interfaces": [],
+ "enums": [],
+ "misc": [],
+ "objects": []
+ }
+}
\ No newline at end of file
diff --git a/api_docs/kbn_interpreter.mdx b/api_docs/kbn_interpreter.mdx
new file mode 100644
index 0000000000000..19d302bb306f5
--- /dev/null
+++ b/api_docs/kbn_interpreter.mdx
@@ -0,0 +1,33 @@
+---
+id: kibKbnInterpreterPluginApi
+slug: /kibana-dev-docs/api/kbn-interpreter
+title: "@kbn/interpreter"
+image: https://source.unsplash.com/400x175/?github
+summary: API docs for the @kbn/interpreter plugin
+date: 2020-11-16
+tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/interpreter']
+warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
+---
+import kbnInterpreterObj from './kbn_interpreter.json';
+
+
+
+Contact [Owner missing] for questions regarding this plugin.
+
+**Code health stats**
+
+| Public API count | Any count | Items lacking comments | Missing exports |
+|-------------------|-----------|------------------------|-----------------|
+| 30 | 1 | 30 | 1 |
+
+## Server
+
+### Functions
+
+
+### Classes
+
+
+### Interfaces
+
+
diff --git a/api_docs/kbn_securitysolution_autocomplete.json b/api_docs/kbn_securitysolution_autocomplete.json
index 3ef34109833db..fd327f5dfacaf 100644
--- a/api_docs/kbn_securitysolution_autocomplete.json
+++ b/api_docs/kbn_securitysolution_autocomplete.json
@@ -262,9 +262,9 @@
"\nGiven an array of lists and optionally a field this will return all\nthe lists that match against the field based on the types from the field\n\nNOTE: That we support one additional property from \"FieldSpec\" located here:\nsrc/plugins/data/common/index_patterns/fields/types.ts\nThis type property is esTypes. If it exists and is on there we will read off the esTypes."
],
"signature": [
- "(lists: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[], field?: (",
+ "(lists: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }[], field?: (",
"DataViewFieldBase",
- " & { esTypes?: string[] | undefined; }) | undefined) => { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]"
+ " & { esTypes?: string[] | undefined; }) | undefined) => { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }[]"
],
"path": "packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts",
"deprecated": false,
@@ -279,7 +279,7 @@
"The lists to match against the field"
],
"signature": [
- "{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]"
+ "{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }[]"
],
"path": "packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts",
"deprecated": false,
@@ -734,13 +734,7 @@
"label": "operatorType",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- }
+ "ListOperatorTypeEnum"
],
"path": "packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts",
"deprecated": false
diff --git a/api_docs/kbn_securitysolution_hook_utils.json b/api_docs/kbn_securitysolution_hook_utils.json
index 9bae8013f197f..08146af045fab 100644
--- a/api_docs/kbn_securitysolution_hook_utils.json
+++ b/api_docs/kbn_securitysolution_hook_utils.json
@@ -30,7 +30,13 @@
],
"signature": [
"(fn: (...args: Args) => Promise) => ",
- "Task",
+ {
+ "pluginId": "@kbn/securitysolution-hook-utils",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
+ "section": "def-common.Task",
+ "text": "Task"
+ },
""
],
"path": "packages/kbn-securitysolution-hook-utils/src/use_async/index.ts",
@@ -91,7 +97,13 @@
"(fn: (...args: Args) => ",
"Observable",
") => ",
- "Task",
+ {
+ "pluginId": "@kbn/securitysolution-hook-utils",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
+ "section": "def-common.Task",
+ "text": "Task"
+ },
""
],
"path": "packages/kbn-securitysolution-hook-utils/src/use_observable/index.ts",
@@ -167,7 +179,99 @@
"initialIsOpen": false
}
],
- "interfaces": [],
+ "interfaces": [
+ {
+ "parentPluginId": "@kbn/securitysolution-hook-utils",
+ "id": "def-common.Task",
+ "type": "Interface",
+ "tags": [],
+ "label": "Task",
+ "description": [
+ "\nRepresents the state of an asynchronous task, along with an initiator\nfunction to kick off the work."
+ ],
+ "signature": [
+ {
+ "pluginId": "@kbn/securitysolution-hook-utils",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
+ "section": "def-common.Task",
+ "text": "Task"
+ },
+ ""
+ ],
+ "path": "packages/kbn-securitysolution-hook-utils/src/types.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/securitysolution-hook-utils",
+ "id": "def-common.Task.loading",
+ "type": "boolean",
+ "tags": [],
+ "label": "loading",
+ "description": [],
+ "path": "packages/kbn-securitysolution-hook-utils/src/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-hook-utils",
+ "id": "def-common.Task.error",
+ "type": "Unknown",
+ "tags": [],
+ "label": "error",
+ "description": [],
+ "signature": [
+ "unknown"
+ ],
+ "path": "packages/kbn-securitysolution-hook-utils/src/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-hook-utils",
+ "id": "def-common.Task.result",
+ "type": "Uncategorized",
+ "tags": [],
+ "label": "result",
+ "description": [],
+ "signature": [
+ "Result | undefined"
+ ],
+ "path": "packages/kbn-securitysolution-hook-utils/src/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-hook-utils",
+ "id": "def-common.Task.start",
+ "type": "Function",
+ "tags": [],
+ "label": "start",
+ "description": [],
+ "signature": [
+ "(...args: Args) => void"
+ ],
+ "path": "packages/kbn-securitysolution-hook-utils/src/types.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/securitysolution-hook-utils",
+ "id": "def-common.Task.start.$1",
+ "type": "Uncategorized",
+ "tags": [],
+ "label": "args",
+ "description": [],
+ "signature": [
+ "Args"
+ ],
+ "path": "packages/kbn-securitysolution-hook-utils/src/types.ts",
+ "deprecated": false,
+ "isRequired": true
+ }
+ ],
+ "returnComment": []
+ }
+ ],
+ "initialIsOpen": false
+ }
+ ],
"enums": [],
"misc": [
{
diff --git a/api_docs/kbn_securitysolution_hook_utils.mdx b/api_docs/kbn_securitysolution_hook_utils.mdx
index 892b06d90b024..7a85565573e3a 100644
--- a/api_docs/kbn_securitysolution_hook_utils.mdx
+++ b/api_docs/kbn_securitysolution_hook_utils.mdx
@@ -18,13 +18,16 @@ Contact [Owner missing] for questions regarding this plugin.
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 8 | 0 | 1 | 1 |
+| 14 | 0 | 6 | 0 |
## Common
### Functions
+### Interfaces
+
+
### Consts, variables and types
diff --git a/api_docs/kbn_securitysolution_io_ts_list_types.json b/api_docs/kbn_securitysolution_io_ts_list_types.json
index ae25c6ee17565..6616f1a8d96aa 100644
--- a/api_docs/kbn_securitysolution_io_ts_list_types.json
+++ b/api_docs/kbn_securitysolution_io_ts_list_types.json
@@ -27,7 +27,7 @@
"label": "updateExceptionListItemValidate",
"description": [],
"signature": [
- "(schema: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) => string[]"
+ "(schema: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) => string[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/update_exception_list_item_validation/index.ts",
"deprecated": false,
@@ -40,7 +40,7 @@
"label": "schema",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/update_exception_list_item_validation/index.ts",
"deprecated": false,
@@ -58,7 +58,7 @@
"label": "validateComments",
"description": [],
"signature": [
- "(item: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) => string[]"
+ "(item: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) => string[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/update_exception_list_item_validation/index.ts",
"deprecated": false,
@@ -71,7 +71,7 @@
"label": "item",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/update_exception_list_item_validation/index.ts",
"deprecated": false,
@@ -153,7 +153,7 @@
"label": "listItem",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/typescript_types/index.ts",
"deprecated": false
@@ -1216,7 +1216,7 @@
"label": "listItem",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/typescript_types/index.ts",
"deprecated": false
@@ -1307,7 +1307,7 @@
"label": "exceptions",
"description": [],
"signature": [
- "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]"
+ "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/typescript_types/index.ts",
"deprecated": false
@@ -1914,7 +1914,7 @@
"label": "CreateEndpointListItemSchemaDecoded",
"description": [],
"signature": [
- "Omit<{ description: string; entries: ({ field: string; operator: \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; comments: { comment: string; }[] | undefined; item_id: string | undefined; meta: object | undefined; os_types: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\" | \"item_id\" | \"os_types\"> & { comments: { comment: string; }[]; tags: string[]; item_id: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
+ "Omit<{ description: string; entries: ({ field: string; operator: \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; comments: { comment: string; }[] | undefined; item_id: string | undefined; meta: object | undefined; os_types: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\" | \"item_id\" | \"os_types\"> & { comments: { comment: string; }[]; tags: string[]; item_id: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/create_endpoint_list_item_schema/index.ts",
"deprecated": false,
@@ -1942,7 +1942,7 @@
"label": "CreateExceptionListItemSchema",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/create_exception_list_item_schema/index.ts",
"deprecated": false,
@@ -1956,7 +1956,7 @@
"label": "CreateExceptionListItemSchemaDecoded",
"description": [],
"signature": [
- "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; comments: { comment: string; }[] | undefined; item_id: string | undefined; meta: object | undefined; namespace_type: \"single\" | \"agnostic\" | undefined; os_types: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\" | \"item_id\" | \"namespace_type\"> & { comments: { comment: string; }[]; tags: string[]; item_id: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
+ "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; comments: { comment: string; }[] | undefined; item_id: string | undefined; meta: object | undefined; namespace_type: \"single\" | \"agnostic\" | undefined; os_types: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\" | \"item_id\" | \"namespace_type\"> & { comments: { comment: string; }[]; tags: string[]; item_id: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/create_exception_list_item_schema/index.ts",
"deprecated": false,
@@ -2026,7 +2026,7 @@
"label": "CreateListSchema",
"description": [],
"signature": [
- "{ description: string; name: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; } & { deserializer?: string | undefined; id?: string | undefined; meta?: object | undefined; serializer?: string | undefined; version?: number | undefined; }"
+ "{ description: string; name: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; } & { deserializer?: string | undefined; id?: string | undefined; meta?: object | undefined; serializer?: string | undefined; version?: number | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/create_list_schema/index.ts",
"deprecated": false,
@@ -2040,7 +2040,7 @@
"label": "CreateListSchemaDecoded",
"description": [],
"signature": [
- "{ type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; id: string | undefined; description: string; name: string; meta: object | undefined; serializer: string | undefined; deserializer: string | undefined; } & { version: number; }"
+ "{ type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; id: string | undefined; description: string; name: string; meta: object | undefined; serializer: string | undefined; deserializer: string | undefined; } & { version: number; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/create_list_schema/index.ts",
"deprecated": false,
@@ -2334,7 +2334,7 @@
"label": "EntriesArray",
"description": [],
"signature": [
- "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]"
+ "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/entries/index.ts",
"deprecated": false,
@@ -2348,7 +2348,7 @@
"label": "EntriesArrayOrUndefined",
"description": [],
"signature": [
- "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[] | undefined"
+ "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[] | undefined"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/entries/index.ts",
"deprecated": false,
@@ -2362,7 +2362,7 @@
"label": "Entry",
"description": [],
"signature": [
- "{ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; }"
+ "{ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/entries/index.ts",
"deprecated": false,
@@ -2390,7 +2390,7 @@
"label": "EntryList",
"description": [],
"signature": [
- "{ field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; }"
+ "{ field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/entries_list/index.ts",
"deprecated": false,
@@ -2460,7 +2460,7 @@
"label": "ExceptionListItemSchema",
"description": [],
"signature": [
- "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
+ "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/exception_list_item_schema/index.ts",
"deprecated": false,
@@ -2782,7 +2782,7 @@
"label": "FoundExceptionListItemSchema",
"description": [],
"signature": [
- "{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; }"
+ "{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/found_exception_list_item_schema/index.ts",
"deprecated": false,
@@ -2810,7 +2810,7 @@
"label": "FoundListItemSchema",
"description": [],
"signature": [
- "{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; page: number; per_page: number; total: number; }"
+ "{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]; page: number; per_page: number; total: number; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/found_list_item_schema/index.ts",
"deprecated": false,
@@ -2824,7 +2824,7 @@
"label": "FoundListSchema",
"description": [],
"signature": [
- "{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }"
+ "{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/found_list_schema/index.ts",
"deprecated": false,
@@ -2894,7 +2894,7 @@
"label": "ImportExceptionListItemSchema",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; item_id: string; list_id: string; name: string; type: \"simple\"; } & { id?: string | undefined; comments?: { comment: string; }[] | undefined; created_at?: string | undefined; updated_at?: string | undefined; created_by?: string | undefined; updated_by?: string | undefined; _version?: string | undefined; tie_breaker_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; item_id: string; list_id: string; name: string; type: \"simple\"; } & { id?: string | undefined; comments?: { comment: string; }[] | undefined; created_at?: string | undefined; updated_at?: string | undefined; created_by?: string | undefined; updated_by?: string | undefined; _version?: string | undefined; tie_breaker_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/import_exception_item_schema/index.ts",
"deprecated": false,
@@ -2908,7 +2908,7 @@
"label": "ImportExceptionListItemSchemaDecoded",
"description": [],
"signature": [
- "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; item_id: string; list_id: string; name: string; type: \"simple\"; } & { id?: string | undefined; comments?: { comment: string; }[] | undefined; created_at?: string | undefined; updated_at?: string | undefined; created_by?: string | undefined; updated_by?: string | undefined; _version?: string | undefined; tie_breaker_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\" | \"item_id\" | \"namespace_type\"> & { comments: { comment: string; }[]; tags: string[]; item_id: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
+ "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; item_id: string; list_id: string; name: string; type: \"simple\"; } & { id?: string | undefined; comments?: { comment: string; }[] | undefined; created_at?: string | undefined; updated_at?: string | undefined; created_by?: string | undefined; updated_by?: string | undefined; _version?: string | undefined; tie_breaker_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\" | \"item_id\" | \"namespace_type\"> & { comments: { comment: string; }[]; tags: string[]; item_id: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/import_exception_item_schema/index.ts",
"deprecated": false,
@@ -2964,7 +2964,7 @@
"label": "ImportListItemQuerySchema",
"description": [],
"signature": [
- "{ deserializer: string | undefined; list_id: string | undefined; serializer: string | undefined; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\" | undefined; }"
+ "{ deserializer: string | undefined; list_id: string | undefined; serializer: string | undefined; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\" | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/import_list_item_query_schema/index.ts",
"deprecated": false,
@@ -2978,7 +2978,7 @@
"label": "ImportListItemQuerySchemaEncoded",
"description": [],
"signature": [
- "{ deserializer?: string | undefined; list_id?: string | undefined; serializer?: string | undefined; type?: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\" | undefined; }"
+ "{ deserializer?: string | undefined; list_id?: string | undefined; serializer?: string | undefined; type?: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\" | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/import_list_item_query_schema/index.ts",
"deprecated": false,
@@ -3090,7 +3090,7 @@
"label": "ListArraySchema",
"description": [],
"signature": [
- "{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]"
+ "{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/list_schema/index.ts",
"deprecated": false,
@@ -3132,7 +3132,7 @@
"label": "ListItemArraySchema",
"description": [],
"signature": [
- "{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]"
+ "{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/list_item_schema/index.ts",
"deprecated": false,
@@ -3160,7 +3160,7 @@
"label": "ListItemSchema",
"description": [],
"signature": [
- "{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }"
+ "{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/list_item_schema/index.ts",
"deprecated": false,
@@ -3188,7 +3188,7 @@
"label": "ListSchema",
"description": [],
"signature": [
- "{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }"
+ "{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/list_schema/index.ts",
"deprecated": false,
@@ -3370,7 +3370,7 @@
"label": "NonEmptyEntriesArray",
"description": [],
"signature": [
- "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]"
+ "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/non_empty_entries_array/index.ts",
"deprecated": false,
@@ -3384,7 +3384,7 @@
"label": "NonEmptyEntriesArrayDecoded",
"description": [],
"signature": [
- "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]"
+ "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/non_empty_entries_array/index.ts",
"deprecated": false,
@@ -3706,7 +3706,7 @@
"label": "SearchListItemArraySchema",
"description": [],
"signature": [
- "{ items: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; value: unknown; }[]"
+ "{ items: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]; value: unknown; }[]"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/search_list_item_schema/index.ts",
"deprecated": false,
@@ -3720,7 +3720,7 @@
"label": "SearchListItemSchema",
"description": [],
"signature": [
- "{ items: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; value: unknown; }"
+ "{ items: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]; value: unknown; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/response/search_list_item_schema/index.ts",
"deprecated": false,
@@ -3860,7 +3860,7 @@
"label": "Type",
"description": [],
"signature": [
- "\"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\""
+ "\"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\""
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/type/index.ts",
"deprecated": false,
@@ -3874,7 +3874,7 @@
"label": "TypeOrUndefined",
"description": [],
"signature": [
- "\"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\" | undefined"
+ "\"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\" | undefined"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/type/index.ts",
"deprecated": false,
@@ -3930,7 +3930,7 @@
"label": "UpdateEndpointListItemSchema",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/update_endpoint_list_item_schema/index.ts",
"deprecated": false,
@@ -3944,7 +3944,7 @@
"label": "UpdateEndpointListItemSchemaDecoded",
"description": [],
"signature": [
- "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; _version: string | undefined; comments: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id: string | undefined; item_id: string | undefined; meta: object | undefined; os_types: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\"> & { comments: ({ comment: string; } & { id?: string | undefined; })[]; tags: string[]; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
+ "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; _version: string | undefined; comments: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id: string | undefined; item_id: string | undefined; meta: object | undefined; os_types: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\"> & { comments: ({ comment: string; } & { id?: string | undefined; })[]; tags: string[]; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/update_endpoint_list_item_schema/index.ts",
"deprecated": false,
@@ -3958,7 +3958,7 @@
"label": "UpdateExceptionListItemSchema",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/update_exception_list_item_schema/index.ts",
"deprecated": false,
@@ -3972,7 +3972,7 @@
"label": "UpdateExceptionListItemSchemaDecoded",
"description": [],
"signature": [
- "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; _version: string | undefined; comments: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id: string | undefined; item_id: string | undefined; meta: object | undefined; namespace_type: \"single\" | \"agnostic\" | undefined; os_types: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\" | \"namespace_type\" | \"os_types\"> & { comments: ({ comment: string; } & { id?: string | undefined; })[]; tags: string[]; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
+ "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; _version: string | undefined; comments: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id: string | undefined; item_id: string | undefined; meta: object | undefined; namespace_type: \"single\" | \"agnostic\" | undefined; os_types: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags: string[] | undefined; }, \"tags\" | \"comments\" | \"entries\" | \"namespace_type\" | \"os_types\"> & { comments: ({ comment: string; } & { id?: string | undefined; })[]; tags: string[]; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[]; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; }"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/request/update_exception_list_item_schema/index.ts",
"deprecated": false,
@@ -4505,7 +4505,7 @@
"StringC",
"; entries: ",
"Type",
- "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>; list_id: ",
+ "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>; list_id: ",
"Type",
"; name: ",
"StringC",
@@ -5998,21 +5998,9 @@
"<{ filter: ",
"StringC",
"; page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; per_page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; sort_field: ",
"StringC",
"; sort_order: ",
@@ -6047,21 +6035,9 @@
"; namespace_type: ",
"Type",
"<(\"single\" | \"agnostic\")[], string | null | undefined, unknown>; page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; per_page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; sort_field: ",
"StringC",
"; sort_order: ",
@@ -6088,21 +6064,9 @@
"; namespace_type: ",
"Type",
"<(\"single\" | \"agnostic\")[], string | null | undefined, unknown>; page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; per_page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; sort_field: ",
"StringC",
"; sort_order: ",
@@ -6137,21 +6101,9 @@
"; filter: ",
"StringC",
"; page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; per_page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; sort_field: ",
"StringC",
"; sort_order: ",
@@ -6178,21 +6130,9 @@
"; filter: ",
"StringC",
"; page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; per_page: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsTypesPluginApi",
- "section": "def-common.StringToPositiveNumberC",
- "text": "StringToPositiveNumberC"
- },
+ "StringToPositiveNumberC",
"; sort_field: ",
"StringC",
"; sort_order: ",
@@ -6681,7 +6621,7 @@
"StringC",
"; entries: ",
"Type",
- "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>; item_id: ",
+ "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>; item_id: ",
"Type",
"; list_id: ",
"Type",
@@ -7580,7 +7520,7 @@
],
"signature": [
"Type",
- "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>"
+ "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>"
],
"path": "packages/kbn-securitysolution-io-ts-list-types/src/common/non_empty_entries_array/index.ts",
"deprecated": false,
@@ -8405,7 +8345,7 @@
"StringC",
"; entries: ",
"Type",
- "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>; name: ",
+ "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>; name: ",
"StringC",
"; type: ",
"KeyofC",
@@ -8458,7 +8398,7 @@
"StringC",
"; entries: ",
"Type",
- "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>; name: ",
+ "<({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; })[]; field: string; type: \"nested\"; })[], unknown>; name: ",
"StringC",
"; type: ",
"KeyofC",
diff --git a/api_docs/kbn_securitysolution_list_api.json b/api_docs/kbn_securitysolution_list_api.json
index 905190ee1eb16..b4ccd4cd6e1c1 100644
--- a/api_docs/kbn_securitysolution_list_api.json
+++ b/api_docs/kbn_securitysolution_list_api.json
@@ -28,13 +28,7 @@
"description": [],
"signature": [
"({ http, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.AddEndpointExceptionListProps",
- "text": "AddEndpointExceptionListProps"
- },
+ "AddEndpointExceptionListProps",
") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; } | {}>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
@@ -48,13 +42,7 @@
"label": "{\n http,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.AddEndpointExceptionListProps",
- "text": "AddEndpointExceptionListProps"
- }
+ "AddEndpointExceptionListProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -73,14 +61,8 @@
"description": [],
"signature": [
"({ http, listItem, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.AddExceptionListItemProps",
- "text": "AddExceptionListItemProps"
- },
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
+ "AddExceptionListItemProps",
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -93,13 +75,7 @@
"label": "{\n http,\n listItem,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.AddExceptionListItemProps",
- "text": "AddExceptionListItemProps"
- }
+ "AddExceptionListItemProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -118,13 +94,7 @@
"description": [],
"signature": [
"({ http, list, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.AddExceptionListProps",
- "text": "AddExceptionListProps"
- },
+ "AddExceptionListProps",
") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
@@ -138,13 +108,7 @@
"label": "{\n http,\n list,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.AddExceptionListProps",
- "text": "AddExceptionListProps"
- }
+ "AddExceptionListProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -163,7 +127,13 @@
"description": [],
"signature": [
"({ http, signal, }: ",
- "ApiParams",
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ },
") => Promise<{ acknowledged: boolean; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
@@ -177,7 +147,13 @@
"label": "{\n http,\n signal,\n}",
"description": [],
"signature": [
- "ApiParams"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ }
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -196,13 +172,7 @@
"description": [],
"signature": [
"({ http, id, namespaceType, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByIdProps",
- "text": "ApiCallByIdProps"
- },
+ "ApiCallByIdProps",
") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
@@ -216,13 +186,7 @@
"label": "{\n http,\n id,\n namespaceType,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByIdProps",
- "text": "ApiCallByIdProps"
- }
+ "ApiCallByIdProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -241,14 +205,8 @@
"description": [],
"signature": [
"({ http, id, namespaceType, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByIdProps",
- "text": "ApiCallByIdProps"
- },
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
+ "ApiCallByIdProps",
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -261,13 +219,7 @@
"label": "{\n http,\n id,\n namespaceType,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByIdProps",
- "text": "ApiCallByIdProps"
- }
+ "ApiCallByIdProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -286,8 +238,14 @@
"description": [],
"signature": [
"({ deleteReferences, http, id, ignoreReferences, signal, }: ",
- "DeleteListParams",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.DeleteListParams",
+ "text": "DeleteListParams"
+ },
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -300,7 +258,13 @@
"label": "{\n deleteReferences,\n http,\n id,\n ignoreReferences,\n signal,\n}",
"description": [],
"signature": [
- "DeleteListParams"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.DeleteListParams",
+ "text": "DeleteListParams"
+ }
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -323,13 +287,7 @@
],
"signature": [
"({ http, id, listId, namespaceType, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ExportExceptionListProps",
- "text": "ExportExceptionListProps"
- },
+ "ExportExceptionListProps",
") => Promise"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
@@ -343,13 +301,7 @@
"label": "{\n http,\n id,\n listId,\n namespaceType,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ExportExceptionListProps",
- "text": "ExportExceptionListProps"
- }
+ "ExportExceptionListProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -368,7 +320,13 @@
"description": [],
"signature": [
"({ http, listId, signal, }: ",
- "ExportListParams",
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ExportListParams",
+ "text": "ExportListParams"
+ },
") => Promise"
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
@@ -382,7 +340,13 @@
"label": "{\n http,\n listId,\n signal,\n}",
"description": [],
"signature": [
- "ExportListParams"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ExportListParams",
+ "text": "ExportListParams"
+ }
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -401,13 +365,7 @@
"description": [],
"signature": [
"({ http, id, namespaceType, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByIdProps",
- "text": "ApiCallByIdProps"
- },
+ "ApiCallByIdProps",
") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
@@ -421,13 +379,7 @@
"label": "{\n http,\n id,\n namespaceType,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByIdProps",
- "text": "ApiCallByIdProps"
- }
+ "ApiCallByIdProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -446,14 +398,8 @@
"description": [],
"signature": [
"({ http, id, namespaceType, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByIdProps",
- "text": "ApiCallByIdProps"
- },
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
+ "ApiCallByIdProps",
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -466,13 +412,7 @@
"label": "{\n http,\n id,\n namespaceType,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByIdProps",
- "text": "ApiCallByIdProps"
- }
+ "ApiCallByIdProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -491,14 +431,8 @@
"description": [],
"signature": [
"({ filterOptions, http, listIds, namespaceTypes, pagination, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByListIdProps",
- "text": "ApiCallByListIdProps"
- },
- ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; }>"
+ "ApiCallByListIdProps",
+ ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -511,13 +445,7 @@
"label": "{\n filterOptions,\n http,\n listIds,\n namespaceTypes,\n pagination,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallByListIdProps",
- "text": "ApiCallByListIdProps"
- }
+ "ApiCallByListIdProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -536,13 +464,7 @@
"description": [],
"signature": [
"({ filters, http, namespaceTypes, pagination, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallFetchExceptionListsProps",
- "text": "ApiCallFetchExceptionListsProps"
- },
+ "ApiCallFetchExceptionListsProps",
") => Promise<{ data: { _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
@@ -556,13 +478,7 @@
"label": "{\n filters,\n http,\n namespaceTypes,\n pagination,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallFetchExceptionListsProps",
- "text": "ApiCallFetchExceptionListsProps"
- }
+ "ApiCallFetchExceptionListsProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -581,8 +497,14 @@
"description": [],
"signature": [
"({ cursor, http, pageIndex, pageSize, signal, }: ",
- "FindListsParams",
- ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.FindListsParams",
+ "text": "FindListsParams"
+ },
+ ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -595,7 +517,13 @@
"label": "{\n cursor,\n http,\n pageIndex,\n pageSize,\n signal,\n}",
"description": [],
"signature": [
- "FindListsParams"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.FindListsParams",
+ "text": "FindListsParams"
+ }
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -614,8 +542,14 @@
"description": [],
"signature": [
"({ file, http, listId, type, signal, }: ",
- "ImportListParams",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ImportListParams",
+ "text": "ImportListParams"
+ },
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -628,7 +562,13 @@
"label": "{\n file,\n http,\n listId,\n type,\n signal,\n}",
"description": [],
"signature": [
- "ImportListParams"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ImportListParams",
+ "text": "ImportListParams"
+ }
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -647,7 +587,13 @@
"description": [],
"signature": [
"({ http, signal, }: ",
- "ApiParams",
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ },
") => Promise<{ list_index: boolean; list_item_index: boolean; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
@@ -661,7 +607,13 @@
"label": "{\n http,\n signal,\n}",
"description": [],
"signature": [
- "ApiParams"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ }
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -680,7 +632,13 @@
"description": [],
"signature": [
"({ http, signal }: ",
- "ApiParams",
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ },
") => Promise"
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
@@ -694,7 +652,13 @@
"label": "{ http, signal }",
"description": [],
"signature": [
- "ApiParams"
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ }
],
"path": "packages/kbn-securitysolution-list-api/src/list_api/index.ts",
"deprecated": false,
@@ -778,14 +742,8 @@
"description": [],
"signature": [
"({ http, listItem, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.UpdateExceptionListItemProps",
- "text": "UpdateExceptionListItemProps"
- },
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
+ "UpdateExceptionListItemProps",
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -798,13 +756,7 @@
"label": "{\n http,\n listItem,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.UpdateExceptionListItemProps",
- "text": "UpdateExceptionListItemProps"
- }
+ "UpdateExceptionListItemProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -823,13 +775,7 @@
"description": [],
"signature": [
"({ http, list, signal, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.UpdateExceptionListProps",
- "text": "UpdateExceptionListProps"
- },
+ "UpdateExceptionListProps",
") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
@@ -843,13 +789,7 @@
"label": "{\n http,\n list,\n signal,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.UpdateExceptionListProps",
- "text": "UpdateExceptionListProps"
- }
+ "UpdateExceptionListProps"
],
"path": "packages/kbn-securitysolution-list-api/src/api/index.ts",
"deprecated": false,
@@ -860,7 +800,291 @@
"initialIsOpen": false
}
],
- "interfaces": [],
+ "interfaces": [
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ApiParams",
+ "type": "Interface",
+ "tags": [],
+ "label": "ApiParams",
+ "description": [],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ApiParams.http",
+ "type": "Object",
+ "tags": [],
+ "label": "http",
+ "description": [],
+ "signature": [
+ "HttpStart"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ApiParams.signal",
+ "type": "Object",
+ "tags": [],
+ "label": "signal",
+ "description": [],
+ "signature": [
+ "AbortSignal"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ }
+ ],
+ "initialIsOpen": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.DeleteListParams",
+ "type": "Interface",
+ "tags": [],
+ "label": "DeleteListParams",
+ "description": [],
+ "signature": [
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.DeleteListParams",
+ "text": "DeleteListParams"
+ },
+ " extends ",
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ }
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.DeleteListParams.deleteReferences",
+ "type": "CompoundType",
+ "tags": [],
+ "label": "deleteReferences",
+ "description": [],
+ "signature": [
+ "boolean | undefined"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.DeleteListParams.id",
+ "type": "string",
+ "tags": [],
+ "label": "id",
+ "description": [],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.DeleteListParams.ignoreReferences",
+ "type": "CompoundType",
+ "tags": [],
+ "label": "ignoreReferences",
+ "description": [],
+ "signature": [
+ "boolean | undefined"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ }
+ ],
+ "initialIsOpen": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ExportListParams",
+ "type": "Interface",
+ "tags": [],
+ "label": "ExportListParams",
+ "description": [],
+ "signature": [
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ExportListParams",
+ "text": "ExportListParams"
+ },
+ " extends ",
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ }
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ExportListParams.listId",
+ "type": "string",
+ "tags": [],
+ "label": "listId",
+ "description": [],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ }
+ ],
+ "initialIsOpen": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.FindListsParams",
+ "type": "Interface",
+ "tags": [],
+ "label": "FindListsParams",
+ "description": [],
+ "signature": [
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.FindListsParams",
+ "text": "FindListsParams"
+ },
+ " extends ",
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ }
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.FindListsParams.cursor",
+ "type": "string",
+ "tags": [],
+ "label": "cursor",
+ "description": [],
+ "signature": [
+ "string | undefined"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.FindListsParams.pageSize",
+ "type": "number",
+ "tags": [],
+ "label": "pageSize",
+ "description": [],
+ "signature": [
+ "number | undefined"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.FindListsParams.pageIndex",
+ "type": "number",
+ "tags": [],
+ "label": "pageIndex",
+ "description": [],
+ "signature": [
+ "number | undefined"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ }
+ ],
+ "initialIsOpen": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ImportListParams",
+ "type": "Interface",
+ "tags": [],
+ "label": "ImportListParams",
+ "description": [],
+ "signature": [
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ImportListParams",
+ "text": "ImportListParams"
+ },
+ " extends ",
+ {
+ "pluginId": "@kbn/securitysolution-list-api",
+ "scope": "common",
+ "docId": "kibKbnSecuritysolutionListApiPluginApi",
+ "section": "def-common.ApiParams",
+ "text": "ApiParams"
+ }
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false,
+ "children": [
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ImportListParams.file",
+ "type": "Object",
+ "tags": [],
+ "label": "file",
+ "description": [],
+ "signature": [
+ "File"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ImportListParams.listId",
+ "type": "string",
+ "tags": [],
+ "label": "listId",
+ "description": [],
+ "signature": [
+ "string | undefined"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ },
+ {
+ "parentPluginId": "@kbn/securitysolution-list-api",
+ "id": "def-common.ImportListParams.type",
+ "type": "CompoundType",
+ "tags": [],
+ "label": "type",
+ "description": [],
+ "signature": [
+ "\"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\" | undefined"
+ ],
+ "path": "packages/kbn-securitysolution-list-api/src/list_api/types.ts",
+ "deprecated": false
+ }
+ ],
+ "initialIsOpen": false
+ }
+ ],
"enums": [],
"misc": [],
"objects": []
diff --git a/api_docs/kbn_securitysolution_list_api.mdx b/api_docs/kbn_securitysolution_list_api.mdx
index d43e81cad311d..93c6d9d1f1eb5 100644
--- a/api_docs/kbn_securitysolution_list_api.mdx
+++ b/api_docs/kbn_securitysolution_list_api.mdx
@@ -18,10 +18,13 @@ Contact [Owner missing] for questions regarding this plugin.
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 42 | 0 | 41 | 5 |
+| 59 | 0 | 58 | 0 |
## Common
### Functions
+### Interfaces
+
+
diff --git a/api_docs/kbn_securitysolution_list_hooks.json b/api_docs/kbn_securitysolution_list_hooks.json
index cda9a39f7e0c3..f850c93307660 100644
--- a/api_docs/kbn_securitysolution_list_hooks.json
+++ b/api_docs/kbn_securitysolution_list_hooks.json
@@ -29,7 +29,7 @@
"\nThis adds an id to the incoming exception item entries as ReactJS prefers to have\nan id added to them for use as a stable id. Later if we decide to change the data\nmodel to have id's within the array then this code should be removed. If not, then\nthis code should stay as an adapter for ReactJS.\n\nThis does break the type system slightly as we are lying a bit to the type system as we return\nthe same exceptionItem as we have previously but are augmenting the arrays with an id which TypeScript\ndoesn't mind us doing here. However, downstream you will notice that you have an id when the type\ndoes not indicate it. In that case use (ExceptionItem & { id: string }) temporarily if you're using the id. If you're not,\nyou can ignore the id and just use the normal TypeScript with ReactJS.\n"
],
"signature": [
- "(exceptionItem: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }) => { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
+ "(exceptionItem: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }) => { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -44,7 +44,7 @@
"The exceptionItem to add an id to the threat matches."
],
"signature": [
- "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
+ "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -66,7 +66,7 @@
"\nThis removes an id from the exceptionItem entries as ReactJS prefers to have\nan id added to them for use as a stable id. Later if we decide to change the data\nmodel to have id's within the array then this code should be removed. If not, then\nthis code should stay as an adapter for ReactJS.\n"
],
"signature": [
- "(exceptionItem: T) => T"
+ "(exceptionItem: T) => T"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -103,7 +103,7 @@
"\nTransforms the output of rules to compensate for technical debt or UI concerns such as\nReactJS preferences for having ids within arrays if the data is not modeled that way.\n\nIf you add a new transform of the input called \"myNewTransform\" do it\nin the form of:\nflow(addIdToExceptionItemEntries, myNewTransform)(exceptionItem)\n"
],
"signature": [
- "(exceptionItem: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }) => { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
+ "(exceptionItem: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }) => { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -118,7 +118,7 @@
"The exceptionItem to transform the output of"
],
"signature": [
- "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
+ "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -138,7 +138,7 @@
"label": "transformNewItemOutput",
"description": [],
"signature": [
- "(exceptionItem: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) => { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "(exceptionItem: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) => { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -151,7 +151,7 @@
"label": "exceptionItem",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -171,7 +171,7 @@
"\nTransforms the output of exception items to compensate for technical debt or UI concerns such as\nReactJS preferences for having ids within arrays if the data is not modeled that way.\n\nIf you add a new transform of the output called \"myNewTransform\" do it\nin the form of:\nflow(removeIdFromExceptionItemsEntries, myNewTransform)(exceptionItem)\n"
],
"signature": [
- "(exceptionItem: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; })) => { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; })"
+ "(exceptionItem: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; })) => { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; })"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -186,7 +186,7 @@
"The exceptionItem to transform the output of"
],
"signature": [
- "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; })"
+ "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; })"
],
"path": "packages/kbn-securitysolution-list-hooks/src/transforms/index.ts",
"deprecated": false,
@@ -247,13 +247,7 @@
"() => ",
"Task",
"<[args: ",
- {
- "pluginId": "@kbn/securitysolution-hook-utils",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
- "section": "def-common.OptionalSignalArgs",
- "text": "OptionalSignalArgs"
- },
+ "OptionalSignalArgs",
"<",
"ApiParams",
">], { acknowledged: boolean; }>"
@@ -320,16 +314,10 @@
"() => ",
"Task",
"<[args: ",
- {
- "pluginId": "@kbn/securitysolution-hook-utils",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
- "section": "def-common.OptionalSignalArgs",
- "text": "OptionalSignalArgs"
- },
+ "OptionalSignalArgs",
"<",
"DeleteListParams",
- ">], { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>"
+ ">], { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_delete_list/index.ts",
"deprecated": false,
@@ -348,13 +336,7 @@
],
"signature": [
"({ http, lists, pagination, filterOptions, showDetectionsListsOnly, showEndpointListsOnly, matchFilters, onError, onSuccess, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.UseExceptionListProps",
- "text": "UseExceptionListProps"
- },
+ "UseExceptionListProps",
") => ",
{
"pluginId": "@kbn/securitysolution-list-hooks",
@@ -375,13 +357,7 @@
"label": "{\n http,\n lists,\n pagination = {\n page: 1,\n perPage: 20,\n total: 0,\n },\n filterOptions,\n showDetectionsListsOnly,\n showEndpointListsOnly,\n matchFilters,\n onError,\n onSuccess,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.UseExceptionListProps",
- "text": "UseExceptionListProps"
- }
+ "UseExceptionListProps"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_exception_list_items/index.ts",
"deprecated": false,
@@ -402,13 +378,7 @@
],
"signature": [
"({ errorMessage, http, initialPagination, filterOptions, namespaceTypes, notifications, showTrustedApps, showEventFilters, showHostIsolationExceptions, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.UseExceptionListsProps",
- "text": "UseExceptionListsProps"
- },
+ "UseExceptionListsProps",
") => ",
{
"pluginId": "@kbn/securitysolution-list-hooks",
@@ -429,13 +399,7 @@
"label": "{\n errorMessage,\n http,\n initialPagination = DEFAULT_PAGINATION,\n filterOptions = {},\n namespaceTypes,\n notifications,\n showTrustedApps = false,\n showEventFilters = false,\n showHostIsolationExceptions = false,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.UseExceptionListsProps",
- "text": "UseExceptionListsProps"
- }
+ "UseExceptionListsProps"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_exception_lists/index.ts",
"deprecated": false,
@@ -456,13 +420,7 @@
"() => ",
"Task",
"<[args: ",
- {
- "pluginId": "@kbn/securitysolution-hook-utils",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
- "section": "def-common.OptionalSignalArgs",
- "text": "OptionalSignalArgs"
- },
+ "OptionalSignalArgs",
"<",
"ExportListParams",
">], Blob>"
@@ -484,16 +442,10 @@
"() => ",
"Task",
"<[args: ",
- {
- "pluginId": "@kbn/securitysolution-hook-utils",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
- "section": "def-common.OptionalSignalArgs",
- "text": "OptionalSignalArgs"
- },
+ "OptionalSignalArgs",
"<",
"FindListsParams",
- ">], { cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>"
+ ">], { cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_find_lists/index.ts",
"deprecated": false,
@@ -512,16 +464,10 @@
"() => ",
"Task",
"<[args: ",
- {
- "pluginId": "@kbn/securitysolution-hook-utils",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
- "section": "def-common.OptionalSignalArgs",
- "text": "OptionalSignalArgs"
- },
+ "OptionalSignalArgs",
"<",
"ImportListParams",
- ">], { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>"
+ ">], { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_import_list/index.ts",
"deprecated": false,
@@ -540,13 +486,7 @@
],
"signature": [
"({ http, onError, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.PersistHookProps",
- "text": "PersistHookProps"
- },
+ "PersistHookProps",
") => ",
{
"pluginId": "@kbn/securitysolution-list-hooks",
@@ -567,13 +507,7 @@
"label": "{\n http,\n onError,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.PersistHookProps",
- "text": "PersistHookProps"
- }
+ "PersistHookProps"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_persist_exception_item/index.ts",
"deprecated": false,
@@ -594,13 +528,7 @@
],
"signature": [
"({ http, onError, }: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.PersistHookProps",
- "text": "PersistHookProps"
- },
+ "PersistHookProps",
") => ",
{
"pluginId": "@kbn/securitysolution-list-hooks",
@@ -621,13 +549,7 @@
"label": "{\n http,\n onError,\n}",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.PersistHookProps",
- "text": "PersistHookProps"
- }
+ "PersistHookProps"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_persist_exception_list/index.ts",
"deprecated": false,
@@ -648,13 +570,7 @@
"() => ",
"Task",
"<[args: ",
- {
- "pluginId": "@kbn/securitysolution-hook-utils",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
- "section": "def-common.OptionalSignalArgs",
- "text": "OptionalSignalArgs"
- },
+ "OptionalSignalArgs",
"<",
"ApiParams",
">], { list_index: boolean; list_item_index: boolean; }>"
@@ -676,13 +592,7 @@
"() => ",
"Task",
"<[args: ",
- {
- "pluginId": "@kbn/securitysolution-hook-utils",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionHookUtilsPluginApi",
- "section": "def-common.OptionalSignalArgs",
- "text": "OptionalSignalArgs"
- },
+ "OptionalSignalArgs",
"<",
"ApiParams",
">], unknown>"
@@ -713,7 +623,7 @@
"label": "addExceptionListItem",
"description": [],
"signature": [
- "(arg: { listItem: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }; }) => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
+ "(arg: { listItem: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }; }) => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false,
@@ -736,7 +646,7 @@
"label": "listItem",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false
@@ -754,7 +664,7 @@
"label": "updateExceptionListItem",
"description": [],
"signature": [
- "(arg: { listItem: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }; }) => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
+ "(arg: { listItem: { description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }; }) => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false,
@@ -777,7 +687,7 @@
"label": "listItem",
"description": [],
"signature": [
- "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
+ "{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false
@@ -796,13 +706,7 @@
"description": [],
"signature": [
"(arg: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallMemoProps",
- "text": "ApiCallMemoProps"
- },
+ "ApiCallMemoProps",
") => Promise"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
@@ -816,13 +720,7 @@
"label": "arg",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallMemoProps",
- "text": "ApiCallMemoProps"
- }
+ "ApiCallMemoProps"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false,
@@ -840,13 +738,7 @@
"description": [],
"signature": [
"(arg: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallMemoProps",
- "text": "ApiCallMemoProps"
- },
+ "ApiCallMemoProps",
") => Promise"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
@@ -860,13 +752,7 @@
"label": "arg",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallMemoProps",
- "text": "ApiCallMemoProps"
- }
+ "ApiCallMemoProps"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false,
@@ -884,14 +770,8 @@
"description": [],
"signature": [
"(arg: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallMemoProps",
- "text": "ApiCallMemoProps"
- },
- " & { onSuccess: (arg: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }) => void; }) => Promise"
+ "ApiCallMemoProps",
+ " & { onSuccess: (arg: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }) => void; }) => Promise"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false,
@@ -904,14 +784,8 @@
"label": "arg",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallMemoProps",
- "text": "ApiCallMemoProps"
- },
- " & { onSuccess: (arg: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }) => void; }"
+ "ApiCallMemoProps",
+ " & { onSuccess: (arg: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }) => void; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false,
@@ -929,13 +803,7 @@
"description": [],
"signature": [
"(arg: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallMemoProps",
- "text": "ApiCallMemoProps"
- },
+ "ApiCallMemoProps",
" & { onSuccess: (arg: { _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; }) => void; }) => Promise"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
@@ -949,13 +817,7 @@
"label": "arg",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallMemoProps",
- "text": "ApiCallMemoProps"
- },
+ "ApiCallMemoProps",
" & { onSuccess: (arg: { _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; }) => void; }"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
@@ -974,13 +836,7 @@
"description": [],
"signature": [
"(arg: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallFindListsItemsMemoProps",
- "text": "ApiCallFindListsItemsMemoProps"
- },
+ "ApiCallFindListsItemsMemoProps",
") => Promise"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
@@ -994,13 +850,7 @@
"label": "arg",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiCallFindListsItemsMemoProps",
- "text": "ApiCallFindListsItemsMemoProps"
- }
+ "ApiCallFindListsItemsMemoProps"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false,
@@ -1018,13 +868,7 @@
"description": [],
"signature": [
"(arg: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiListExportProps",
- "text": "ApiListExportProps"
- },
+ "ApiListExportProps",
") => Promise"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
@@ -1038,13 +882,7 @@
"label": "arg",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ApiListExportProps",
- "text": "ApiListExportProps"
- }
+ "ApiListExportProps"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_api/index.ts",
"deprecated": false,
@@ -1116,14 +954,8 @@
"label": "ReturnExceptionListAndItems",
"description": [],
"signature": [
- "[boolean, { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[], ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.Pagination",
- "text": "Pagination"
- },
+ "[boolean, { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[], ",
+ "Pagination",
", Func | null]"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_exception_list_items/index.ts",
@@ -1139,21 +971,9 @@
"description": [],
"signature": [
"[loading: boolean, exceptionLists: { _version: string | undefined; created_at: string; created_by: string; description: string; id: string; immutable: boolean; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"endpoint\" | \"detection\" | \"endpoint_trusted_apps\" | \"endpoint_events\" | \"endpoint_host_isolation_exceptions\"; updated_at: string; updated_by: string; version: number; }[], pagination: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.Pagination",
- "text": "Pagination"
- },
+ "Pagination",
", setPagination: React.Dispatch>, fetchLists: ",
{
"pluginId": "@kbn/securitysolution-list-hooks",
@@ -1176,7 +996,7 @@
"label": "ReturnPersistExceptionItem",
"description": [],
"signature": [
- "[PersistReturnExceptionItem, React.Dispatch<({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) | null>]"
+ "[PersistReturnExceptionItem, React.Dispatch<({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; name: string; type: \"simple\"; } & { _version?: string | undefined; comments?: ({ comment: string; } & { id?: string | undefined; })[] | undefined; id?: string | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }) | null>]"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_persist_exception_item/index.ts",
"deprecated": false,
@@ -1191,13 +1011,7 @@
"description": [],
"signature": [
"[PersistReturnExceptionList, React.Dispatch<",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.AddExceptionList",
- "text": "AddExceptionList"
- },
+ "AddExceptionList",
" | null>]"
],
"path": "packages/kbn-securitysolution-list-hooks/src/use_persist_exception_list/index.ts",
diff --git a/api_docs/kbn_securitysolution_list_utils.json b/api_docs/kbn_securitysolution_list_utils.json
index a66dd4f7d7534..85f12ba4c30c9 100644
--- a/api_docs/kbn_securitysolution_list_utils.json
+++ b/api_docs/kbn_securitysolution_list_utils.json
@@ -27,7 +27,7 @@
"label": "addIdToEntries",
"description": [],
"signature": [
- "(entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]) => ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
+ "(entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]) => ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
],
"path": "packages/kbn-securitysolution-list-utils/src/helpers/index.ts",
"deprecated": false,
@@ -40,7 +40,7 @@
"label": "entries",
"description": [],
"signature": [
- "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
+ "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
],
"path": "packages/kbn-securitysolution-list-utils/src/helpers/index.ts",
"deprecated": false,
@@ -58,7 +58,7 @@
"label": "buildExceptionFilter",
"description": [],
"signature": [
- "({ lists, excludeExceptions, chunkSize, }: { lists: ({ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }))[]; excludeExceptions: boolean; chunkSize: number; }) => ",
+ "({ lists, excludeExceptions, chunkSize, }: { lists: ({ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }))[]; excludeExceptions: boolean; chunkSize: number; }) => ",
"Filter",
" | undefined"
],
@@ -83,7 +83,7 @@
"label": "lists",
"description": [],
"signature": [
- "({ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }))[]"
+ "({ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }))[]"
],
"path": "packages/kbn-securitysolution-list-utils/src/build_exception_filter/index.ts",
"deprecated": false
@@ -690,7 +690,7 @@
"section": "def-common.ExceptionsBuilderExceptionItem",
"text": "ExceptionsBuilderExceptionItem"
},
- "[]) => ({ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }))[]"
+ "[]) => ({ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }))[]"
],
"path": "packages/kbn-securitysolution-list-utils/src/helpers/index.ts",
"deprecated": false,
@@ -944,7 +944,7 @@
"section": "def-common.FormattedBuilderEntry",
"text": "FormattedBuilderEntry"
},
- ") => ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; }) & { id?: string | undefined; }"
+ ") => ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; }) & { id?: string | undefined; }"
],
"path": "packages/kbn-securitysolution-list-utils/src/helpers/index.ts",
"deprecated": false,
@@ -1086,7 +1086,7 @@
"section": "def-common.FormattedBuilderEntry",
"text": "FormattedBuilderEntry"
},
- ", newField: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }) => { index: number; updatedEntry: ",
+ ", newField: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }) => { index: number; updatedEntry: ",
{
"pluginId": "@kbn/securitysolution-list-utils",
"scope": "common",
@@ -1131,7 +1131,7 @@
"- newly selected list"
],
"signature": [
- "{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }"
+ "{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }"
],
"path": "packages/kbn-securitysolution-list-utils/src/helpers/index.ts",
"deprecated": false,
@@ -1916,13 +1916,7 @@
"description": [],
"signature": [
"(filters: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ExceptionListFilter",
- "text": "ExceptionListFilter"
- },
+ "ExceptionListFilter",
", namespaceTypes: ",
{
"pluginId": "@kbn/securitysolution-list-utils",
@@ -1944,13 +1938,7 @@
"label": "filters",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ExceptionListFilter",
- "text": "ExceptionListFilter"
- }
+ "ExceptionListFilter"
],
"path": "packages/kbn-securitysolution-list-utils/src/get_general_filters/index.ts",
"deprecated": false,
@@ -1990,13 +1978,7 @@
"description": [],
"signature": [
"({ lists, showDetection, showEndpoint, }: { lists: ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ExceptionListIdentifiers",
- "text": "ExceptionListIdentifiers"
- },
+ "ExceptionListIdentifiers",
"[]; showDetection: boolean; showEndpoint: boolean; }) => { ids: string[]; namespaces: (\"single\" | \"agnostic\")[]; }"
],
"path": "packages/kbn-securitysolution-list-utils/src/get_ids_and_namespaces/index.ts",
@@ -2020,13 +2002,7 @@
"label": "lists",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ExceptionListIdentifiers",
- "text": "ExceptionListIdentifiers"
- },
+ "ExceptionListIdentifiers",
"[]"
],
"path": "packages/kbn-securitysolution-list-utils/src/get_ids_and_namespaces/index.ts",
@@ -2245,13 +2221,7 @@
"text": "BuilderEntry"
},
") => ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- }
+ "ListOperatorTypeEnum"
],
"path": "packages/kbn-securitysolution-list-utils/src/helpers/index.ts",
"deprecated": false,
@@ -2533,7 +2503,7 @@
"label": "hasLargeValueList",
"description": [],
"signature": [
- "(entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]) => boolean"
+ "(entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]) => boolean"
],
"path": "packages/kbn-securitysolution-list-utils/src/has_large_value_list/index.ts",
"deprecated": false,
@@ -2546,7 +2516,7 @@
"label": "entries",
"description": [],
"signature": [
- "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
+ "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
],
"path": "packages/kbn-securitysolution-list-utils/src/has_large_value_list/index.ts",
"deprecated": false,
@@ -2721,13 +2691,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- }
+ "ListOperatorEnum"
],
"path": "packages/kbn-securitysolution-list-utils/src/types/index.ts",
"deprecated": false
@@ -2740,29 +2704,11 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".MATCH | ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".MATCH_ANY | ",
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".WILDCARD"
],
"path": "packages/kbn-securitysolution-list-utils/src/types/index.ts",
@@ -2825,13 +2771,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- }
+ "ListOperatorEnum"
],
"path": "packages/kbn-securitysolution-list-utils/src/types/index.ts",
"deprecated": false
@@ -2844,13 +2784,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".LIST"
],
"path": "packages/kbn-securitysolution-list-utils/src/types/index.ts",
@@ -2913,13 +2847,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".NESTED"
],
"path": "packages/kbn-securitysolution-list-utils/src/types/index.ts",
@@ -3086,13 +3014,7 @@
"label": "filters",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ExceptionListFilter",
- "text": "ExceptionListFilter"
- }
+ "ExceptionListFilter"
],
"path": "packages/kbn-securitysolution-list-utils/src/get_filters/index.ts",
"deprecated": false
@@ -3207,13 +3129,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- }
+ "ListOperatorEnum"
],
"path": "packages/kbn-securitysolution-list-utils/src/types/index.ts",
"deprecated": false
@@ -3226,13 +3142,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- }
+ "ListOperatorTypeEnum"
],
"path": "packages/kbn-securitysolution-list-utils/src/types/index.ts",
"deprecated": false
@@ -3251,7 +3161,7 @@
"label": "BuilderEntry",
"description": [],
"signature": [
- "(({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; }) & { id?: string | undefined; }) | ",
+ "(({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; }) & { id?: string | undefined; }) | ",
{
"pluginId": "@kbn/securitysolution-list-utils",
"scope": "common",
@@ -3310,7 +3220,7 @@
"label": "CreateExceptionListItemBuilderSchema",
"description": [],
"signature": [
- "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }, \"meta\" | \"entries\"> & { meta: { temporaryUuid: string; }; entries: ",
+ "Omit<{ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }, \"meta\" | \"entries\"> & { meta: { temporaryUuid: string; }; entries: ",
{
"pluginId": "@kbn/securitysolution-list-utils",
"scope": "common",
@@ -3444,7 +3354,7 @@
"label": "ExceptionListItemBuilderSchema",
"description": [],
"signature": [
- "Omit<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }, \"entries\"> & { entries: ",
+ "Omit<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }, \"entries\"> & { entries: ",
{
"pluginId": "@kbn/securitysolution-list-utils",
"scope": "common",
@@ -3544,13 +3454,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- },
+ "ListOperatorEnum",
".EXCLUDED"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3564,13 +3468,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".EXISTS"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3617,13 +3515,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- },
+ "ListOperatorEnum",
".INCLUDED"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3637,13 +3529,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".EXISTS"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3690,13 +3576,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- },
+ "ListOperatorEnum",
".INCLUDED"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3710,13 +3590,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".LIST"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3763,13 +3637,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- },
+ "ListOperatorEnum",
".EXCLUDED"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3783,13 +3651,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".LIST"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3836,13 +3698,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- },
+ "ListOperatorEnum",
".EXCLUDED"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3856,13 +3712,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".MATCH_ANY"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3909,13 +3759,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- },
+ "ListOperatorEnum",
".EXCLUDED"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3929,13 +3773,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".MATCH"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -3982,13 +3820,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- },
+ "ListOperatorEnum",
".INCLUDED"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -4002,13 +3834,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".MATCH_ANY"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -4055,13 +3881,7 @@
"label": "operator",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorEnum",
- "text": "ListOperatorEnum"
- },
+ "ListOperatorEnum",
".INCLUDED"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
@@ -4075,13 +3895,7 @@
"label": "type",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/securitysolution-io-ts-list-types",
- "scope": "common",
- "docId": "kibKbnSecuritysolutionIoTsListTypesPluginApi",
- "section": "def-common.ListOperatorTypeEnum",
- "text": "ListOperatorTypeEnum"
- },
+ "ListOperatorTypeEnum",
".MATCH"
],
"path": "packages/kbn-securitysolution-list-utils/src/autocomplete_operators/index.ts",
diff --git a/api_docs/kbn_test.json b/api_docs/kbn_test.json
index df39c6af88735..267bfc30f4806 100644
--- a/api_docs/kbn_test.json
+++ b/api_docs/kbn_test.json
@@ -2166,7 +2166,7 @@
"\nDetermine if a service is avaliable"
],
"signature": [
- "{ (serviceName: \"config\" | \"log\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }"
+ "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }"
],
"path": "packages/kbn-test/src/functional_test_runner/public_types.ts",
"deprecated": false,
@@ -2179,7 +2179,7 @@
"label": "serviceName",
"description": [],
"signature": [
- "\"config\" | \"log\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\""
+ "\"log\" | \"config\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\""
],
"path": "packages/kbn-test/src/functional_test_runner/public_types.ts",
"deprecated": false,
@@ -2196,7 +2196,7 @@
"label": "hasService",
"description": [],
"signature": [
- "{ (serviceName: \"config\" | \"log\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }"
+ "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }"
],
"path": "packages/kbn-test/src/functional_test_runner/public_types.ts",
"deprecated": false,
@@ -2226,7 +2226,7 @@
"label": "hasService",
"description": [],
"signature": [
- "{ (serviceName: \"config\" | \"log\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }"
+ "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }"
],
"path": "packages/kbn-test/src/functional_test_runner/public_types.ts",
"deprecated": false,
diff --git a/api_docs/lens.json b/api_docs/lens.json
index fe7a9b1847a9a..1e8cd05d235ea 100644
--- a/api_docs/lens.json
+++ b/api_docs/lens.json
@@ -3268,7 +3268,7 @@
"label": "OperationTypePost712",
"description": [],
"signature": [
- "\"filters\" | \"max\" | \"min\" | \"count\" | \"date_histogram\" | \"sum\" | \"average\" | \"percentile\" | \"range\" | \"terms\" | \"median\" | \"cumulative_sum\" | \"moving_average\" | \"unique_count\" | \"last_value\" | \"counter_rate\" | \"differences\""
+ "\"filters\" | \"max\" | \"min\" | \"count\" | \"sum\" | \"median\" | \"date_histogram\" | \"average\" | \"percentile\" | \"range\" | \"terms\" | \"cumulative_sum\" | \"moving_average\" | \"unique_count\" | \"last_value\" | \"counter_rate\" | \"differences\""
],
"path": "x-pack/plugins/lens/server/migrations/types.ts",
"deprecated": false,
@@ -3282,7 +3282,7 @@
"label": "OperationTypePre712",
"description": [],
"signature": [
- "\"filters\" | \"max\" | \"min\" | \"count\" | \"date_histogram\" | \"sum\" | \"percentile\" | \"range\" | \"terms\" | \"avg\" | \"median\" | \"cumulative_sum\" | \"derivative\" | \"moving_average\" | \"cardinality\" | \"last_value\" | \"counter_rate\""
+ "\"filters\" | \"max\" | \"min\" | \"count\" | \"sum\" | \"avg\" | \"median\" | \"date_histogram\" | \"percentile\" | \"range\" | \"terms\" | \"cumulative_sum\" | \"derivative\" | \"moving_average\" | \"cardinality\" | \"last_value\" | \"counter_rate\""
],
"path": "x-pack/plugins/lens/server/migrations/types.ts",
"deprecated": false,
diff --git a/api_docs/lists.json b/api_docs/lists.json
index 166f05ddfb4fa..6004bbebf201d 100644
--- a/api_docs/lists.json
+++ b/api_docs/lists.json
@@ -311,7 +311,7 @@
"label": "exceptionItems",
"description": [],
"signature": [
- "({ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }))[]"
+ "({ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | ({ description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; })[]; list_id: string; name: string; type: \"simple\"; } & { comments?: { comment: string; }[] | undefined; item_id?: string | undefined; meta?: object | undefined; namespace_type?: \"single\" | \"agnostic\" | undefined; os_types?: (\"windows\" | \"linux\" | \"macos\")[] | undefined; tags?: string[] | undefined; }))[]"
],
"path": "x-pack/plugins/lists/public/exceptions/components/builder/exception_items_renderer.tsx",
"deprecated": false
@@ -324,7 +324,7 @@
"label": "exceptionsToDelete",
"description": [],
"signature": [
- "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]"
+ "{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]"
],
"path": "x-pack/plugins/lists/public/exceptions/components/builder/exception_items_renderer.tsx",
"deprecated": false
@@ -504,7 +504,7 @@
"signature": [
"({ itemId, id, namespaceType, }: ",
"GetExceptionListItemOptions",
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -576,7 +576,7 @@
"signature": [
"({ comments, description, entries, itemId, meta, name, osTypes, tags, type, }: ",
"CreateEndpointListItemOptions",
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -610,7 +610,7 @@
"signature": [
"({ _version, comments, description, entries, id, itemId, meta, name, osTypes, tags, type, }: ",
"UpdateEndpointListItemOptions",
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -644,7 +644,7 @@
"signature": [
"({ itemId, id, }: ",
"GetEndpointListItemOptions",
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -832,7 +832,7 @@
"section": "def-server.CreateExceptionListItemOptions",
"text": "CreateExceptionListItemOptions"
},
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -894,7 +894,7 @@
"section": "def-server.UpdateExceptionListItemOptions",
"text": "UpdateExceptionListItemOptions"
},
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -941,7 +941,7 @@
"signature": [
"({ id, itemId, namespaceType, }: ",
"DeleteExceptionListItemOptions",
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -1015,7 +1015,7 @@
"signature": [
"({ id, itemId, }: ",
"DeleteEndpointListItemOptions",
- ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
+ ") => Promise<{ _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -1047,7 +1047,7 @@
"signature": [
"({ listId, filter, perPage, page, sortField, sortOrder, namespaceType, }: ",
"FindExceptionListItemOptions",
- ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>"
+ ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -1079,7 +1079,7 @@
"signature": [
"({ listId, filter, perPage, page, sortField, sortOrder, namespaceType, }: ",
"FindExceptionListsItemOptions",
- ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>"
+ ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -1111,7 +1111,7 @@
"signature": [
"({ perPage, page, sortField, sortOrder, valueListId, }: ",
"FindValueListExceptionListsItems",
- ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>"
+ ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -1177,7 +1177,7 @@
"signature": [
"({ filter, perPage, page, sortField, sortOrder, }: ",
"FindEndpointListItemOptions",
- ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>"
+ ") => Promise<{ data: { _version: string | undefined; comments: ({ comment: string; created_at: string; created_by: string; id: string; } & { updated_at?: string | undefined; updated_by?: string | undefined; })[]; created_at: string; created_by: string; description: string; entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]; id: string; item_id: string; list_id: string; meta: object | undefined; name: string; namespace_type: \"single\" | \"agnostic\"; os_types: (\"windows\" | \"linux\" | \"macos\")[]; tags: string[]; tie_breaker_id: string; type: \"simple\"; updated_at: string; updated_by: string; }[]; page: number; per_page: number; total: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts",
"deprecated": false,
@@ -1413,7 +1413,7 @@
"signature": [
"({ id }: ",
"GetListOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -1445,7 +1445,7 @@
"signature": [
"({ id, deserializer, immutable, serializer, name, description, type, meta, version, }: ",
"CreateListOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -1477,7 +1477,7 @@
"signature": [
"({ id, deserializer, serializer, name, description, immutable, type, meta, version, }: ",
"CreateListIfItDoesNotExistOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -1809,7 +1809,7 @@
"signature": [
"({ id }: ",
"DeleteListItemOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -1841,7 +1841,7 @@
"signature": [
"({ listId, value, type, }: ",
"DeleteListItemByValueOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -1873,7 +1873,7 @@
"signature": [
"({ id }: ",
"DeleteListOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -1937,7 +1937,7 @@
"signature": [
"({ deserializer, serializer, type, listId, stream, meta, version, }: ",
"ImportListItemsToStreamOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -1969,7 +1969,7 @@
"signature": [
"({ listId, value, type, }: ",
"GetListItemByValueOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2001,7 +2001,7 @@
"signature": [
"({ id, deserializer, serializer, listId, value, type, meta, }: ",
"CreateListItemOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2033,7 +2033,7 @@
"signature": [
"({ _version, id, value, meta, }: ",
"UpdateListItemOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2065,7 +2065,7 @@
"signature": [
"({ _version, id, name, description, meta, version, }: ",
"UpdateListOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; } | null>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2097,7 +2097,7 @@
"signature": [
"({ id }: ",
"GetListItemOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; } | null>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2129,7 +2129,7 @@
"signature": [
"({ type, listId, value, }: ",
"GetListItemsByValueOptions",
- ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]>"
+ ") => Promise<{ _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2161,7 +2161,7 @@
"signature": [
"({ type, listId, value, }: ",
"SearchListItemByValuesOptions",
- ") => Promise<{ items: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; value: unknown; }[]>"
+ ") => Promise<{ items: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]; value: unknown; }[]>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2193,7 +2193,7 @@
"signature": [
"({ filter, currentIndexPosition, perPage, page, sortField, sortOrder, searchAfter, }: ",
"FindListOptions",
- ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>"
+ ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; description: string; deserializer: string | undefined; id: string; immutable: boolean; meta: object | undefined; name: string; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; version: number; }[]; page: number; per_page: number; total: number; }>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2225,7 +2225,7 @@
"signature": [
"({ listId, filter, currentIndexPosition, perPage, page, sortField, sortOrder, searchAfter, }: ",
"FindListItemOptions",
- ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; updated_at: string; updated_by: string; value: string; }[]; page: number; per_page: number; total: number; } | null>"
+ ") => Promise<{ cursor: string; data: { _version: string | undefined; created_at: string; created_by: string; deserializer: string | undefined; id: string; list_id: string; meta: object | undefined; serializer: string | undefined; tie_breaker_id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; updated_at: string; updated_by: string; value: string; }[]; page: number; per_page: number; total: number; } | null>"
],
"path": "x-pack/plugins/lists/server/services/lists/list_client.ts",
"deprecated": false,
@@ -2284,7 +2284,7 @@
"label": "entries",
"description": [],
"signature": [
- "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
+ "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client_types.ts",
"deprecated": false
@@ -2534,7 +2534,7 @@
"label": "entries",
"description": [],
"signature": [
- "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"date_nanos\" | \"date_range\" | \"ip_range\" | \"shape\" | \"short\" | \"binary\" | \"float\" | \"half_float\" | \"integer\" | \"byte\" | \"long_range\" | \"integer_range\" | \"float_range\" | \"double_range\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
+ "({ field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; } | { field: string; list: { id: string; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; }; operator: \"excluded\" | \"included\"; type: \"list\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { entries: ({ field: string; operator: \"excluded\" | \"included\"; type: \"exists\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match\"; value: string; } | { field: string; operator: \"excluded\" | \"included\"; type: \"match_any\"; value: string[]; })[]; field: string; type: \"nested\"; } | { field: string; operator: \"excluded\" | \"included\"; type: \"wildcard\"; value: string; })[]"
],
"path": "x-pack/plugins/lists/server/services/exception_lists/exception_list_client_types.ts",
"deprecated": false
diff --git a/api_docs/maps.json b/api_docs/maps.json
index 254aa07cca6e6..6f494854f4c5b 100644
--- a/api_docs/maps.json
+++ b/api_docs/maps.json
@@ -3216,6 +3216,17 @@
"deprecated": false,
"initialIsOpen": false
},
+ {
+ "parentPluginId": "maps",
+ "id": "def-common.SCALING_TYPES",
+ "type": "Enum",
+ "tags": [],
+ "label": "SCALING_TYPES",
+ "description": [],
+ "path": "x-pack/plugins/maps/common/constants.ts",
+ "deprecated": false,
+ "initialIsOpen": false
+ },
{
"parentPluginId": "maps",
"id": "def-common.SOURCE_TYPES",
diff --git a/api_docs/maps.mdx b/api_docs/maps.mdx
index 5eeacc2ed8038..c33515f07323f 100644
--- a/api_docs/maps.mdx
+++ b/api_docs/maps.mdx
@@ -18,7 +18,7 @@ Contact [GIS](https://github.com/orgs/elastic/teams/kibana-gis) for questions re
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 206 | 0 | 205 | 30 |
+| 207 | 0 | 206 | 30 |
## Client
diff --git a/api_docs/plugin_directory.mdx b/api_docs/plugin_directory.mdx
index c77d1704532e6..4188c97d55e56 100644
--- a/api_docs/plugin_directory.mdx
+++ b/api_docs/plugin_directory.mdx
@@ -12,13 +12,13 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
| Count | Plugins or Packages with a public API | Number of teams |
|--------------|----------|------------------------|
-| 206 | 162 | 30 |
+| 206 | 163 | 30 |
### Public API health stats
| API Count | Any Count | Missing comments | Missing exports |
|--------------|----------|-----------------|--------|
-| 23139 | 166 | 18496 | 1693 |
+| 23158 | 167 | 18516 | 1716 |
## Plugin Directory
@@ -40,12 +40,12 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
| | [Fleet](https://github.com/orgs/elastic/teams/fleet) | Add custom data integrations so they can be displayed in the Fleet integrations app | 96 | 0 | 80 | 1 |
| | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds the Dashboard app to Kibana | 154 | 0 | 141 | 13 |
| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 51 | 0 | 50 | 0 |
-| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 3334 | 39 | 2933 | 26 |
+| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 3337 | 39 | 2936 | 26 |
| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Enhanced data plugin. (See src/plugins/data.) Enhances the main data plugin with a search session management UI. Includes a reusable search session indicator component to use in other applications. Exposes routes for managing search sessions. Includes a service that monitors, updates, and cleans up search session saved objects. | 16 | 0 | 16 | 2 |
| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | This plugin provides the ability to create data views via a modal flyout from any kibana app | 13 | 0 | 9 | 0 |
| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Reusable data view field editor across Kibana | 42 | 0 | 39 | 3 |
| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data view management app | 2 | 0 | 2 | 0 |
-| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 712 | 3 | 564 | 6 |
+| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 714 | 3 | 566 | 6 |
| | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | The Data Visualizer tools help you understand your data, by analyzing the metrics and fields in a log file or an existing Elasticsearch index. | 84 | 2 | 84 | 0 |
| | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 10 | 0 | 8 | 2 |
| | [Data Discovery](https://github.com/orgs/elastic/teams/kibana-data-discovery) | This plugin contains the Discover application and the saved search embeddable. | 89 | 0 | 61 | 7 |
@@ -95,7 +95,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
| | [Security detections response](https://github.com/orgs/elastic/teams/security-detections-response) | - | 164 | 0 | 144 | 41 |
| logstash | [Logstash](https://github.com/orgs/elastic/teams/logstash) | - | 0 | 0 | 0 | 0 |
| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 41 | 0 | 41 | 6 |
-| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 206 | 0 | 205 | 30 |
+| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 207 | 0 | 206 | 30 |
| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 64 | 0 | 64 | 0 |
| | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 4 | 0 | 4 | 1 |
| | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | This plugin provides access to the machine learning features provided by Elastic. | 291 | 8 | 287 | 35 |
@@ -107,7 +107,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
| painlessLab | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 |
| | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | The Presentation Utility Plugin is a set of common, shared components and toolkits for solutions within the Presentation space, (e.g. Dashboards, Canvas). | 318 | 2 | 278 | 14 |
| | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 4 | 0 | 4 | 0 |
-| | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Reporting Services enables applications to feature reports that the user can automate with Watcher and download later. | 166 | 0 | 163 | 15 |
+| | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Reporting Services enables applications to feature reports that the user can automate with Watcher and download later. | 126 | 0 | 125 | 13 |
| | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 21 | 0 | 21 | 0 |
| | [RAC](https://github.com/orgs/elastic/teams/rac) | - | 175 | 0 | 148 | 7 |
| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 24 | 0 | 19 | 2 |
@@ -177,6 +177,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
| | [Owner missing] | - | 212 | 1 | 160 | 11 |
| | [Owner missing] | - | 20 | 0 | 16 | 0 |
| | [Owner missing] | - | 51 | 0 | 48 | 0 |
+| | [Owner missing] | - | 30 | 1 | 30 | 1 |
| | [Owner missing] | - | 18 | 0 | 18 | 3 |
| | [Owner missing] | - | 30 | 0 | 5 | 36 |
| | [Owner missing] | - | 466 | 1 | 377 | 0 |
@@ -189,12 +190,12 @@ warning: This document is auto-generated and is meant to be viewed inside our ex
| | [Owner missing] | - | 71 | 0 | 68 | 0 |
| | [Owner missing] | Security Solution auto complete | 47 | 1 | 34 | 0 |
| | [Owner missing] | security solution elastic search utilities to use across plugins such lists, security_solution, cases, etc... | 57 | 0 | 51 | 1 |
-| | [Owner missing] | Security Solution utilities for React hooks | 8 | 0 | 1 | 1 |
+| | [Owner missing] | Security Solution utilities for React hooks | 14 | 0 | 6 | 0 |
| | [Owner missing] | io ts utilities and types to be shared with plugins from the security solution project | 147 | 0 | 128 | 0 |
| | [Owner missing] | io ts utilities and types to be shared with plugins from the security solution project | 439 | 1 | 428 | 0 |
| | [Owner missing] | io ts utilities and types to be shared with plugins from the security solution project | 48 | 0 | 26 | 0 |
| | [Owner missing] | io ts utilities and types to be shared with plugins from the security solution project | 28 | 0 | 22 | 0 |
-| | [Owner missing] | security solution list REST API | 42 | 0 | 41 | 5 |
+| | [Owner missing] | security solution list REST API | 59 | 0 | 58 | 0 |
| | [Owner missing] | security solution list constants to use across plugins such lists, security_solution, cases, etc... | 23 | 0 | 9 | 0 |
| | [Owner missing] | Security solution list ReactJS hooks | 56 | 0 | 44 | 0 |
| | [Owner missing] | security solution list utilities | 223 | 0 | 178 | 0 |
diff --git a/api_docs/reporting.json b/api_docs/reporting.json
index 24d8816b0e415..90b642d832a4d 100644
--- a/api_docs/reporting.json
+++ b/api_docs/reporting.json
@@ -873,290 +873,9 @@
}
],
"functions": [],
- "interfaces": [
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsDownloadCSV",
- "type": "Interface",
- "tags": [],
- "label": "JobParamsDownloadCSV",
- "description": [],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false,
- "children": [
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsDownloadCSV.browserTimezone",
- "type": "string",
- "tags": [],
- "label": "browserTimezone",
- "description": [],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsDownloadCSV.title",
- "type": "string",
- "tags": [],
- "label": "title",
- "description": [],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsDownloadCSV.searchSource",
- "type": "Object",
- "tags": [],
- "label": "searchSource",
- "description": [],
- "signature": [
- "{ type?: string | undefined; query?: ",
- "Query",
- " | undefined; filter?: ",
- "Filter",
- "[] | undefined; sort?: ",
- {
- "pluginId": "data",
- "scope": "common",
- "docId": "kibDataSearchPluginApi",
- "section": "def-common.EsQuerySortValue",
- "text": "EsQuerySortValue"
- },
- "[] | undefined; highlight?: ",
- {
- "pluginId": "@kbn/utility-types",
- "scope": "server",
- "docId": "kibKbnUtilityTypesPluginApi",
- "section": "def-server.SerializableRecord",
- "text": "SerializableRecord"
- },
- " | undefined; highlightAll?: boolean | undefined; trackTotalHits?: number | boolean | undefined; aggs?: { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
- {
- "pluginId": "@kbn/utility-types",
- "scope": "server",
- "docId": "kibKbnUtilityTypesPluginApi",
- "section": "def-server.SerializableRecord",
- "text": "SerializableRecord"
- },
- " | undefined; schema?: string | undefined; }[] | undefined; from?: number | undefined; size?: number | undefined; source?: boolean | ",
- "Fields",
- " | undefined; version?: boolean | undefined; fields?: ",
- {
- "pluginId": "data",
- "scope": "common",
- "docId": "kibDataSearchPluginApi",
- "section": "def-common.SearchFieldValue",
- "text": "SearchFieldValue"
- },
- "[] | undefined; fieldsFromSource?: ",
- "Fields",
- " | undefined; index?: string | undefined; searchAfter?: ",
- {
- "pluginId": "data",
- "scope": "common",
- "docId": "kibDataSearchPluginApi",
- "section": "def-common.EsQuerySearchAfter",
- "text": "EsQuerySearchAfter"
- },
- " | undefined; timeout?: string | undefined; terminate_after?: number | undefined; parent?: ",
- {
- "pluginId": "data",
- "scope": "common",
- "docId": "kibDataSearchPluginApi",
- "section": "def-common.SerializedSearchSourceFields",
- "text": "SerializedSearchSourceFields"
- },
- " | undefined; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsDownloadCSV.columns",
- "type": "Array",
- "tags": [],
- "label": "columns",
- "description": [],
- "signature": [
- "string[] | undefined"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false
- }
- ],
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsPNGV2",
- "type": "Interface",
- "tags": [],
- "label": "JobParamsPNGV2",
- "description": [],
- "signature": [
- "JobParamsPNGV2",
- " extends { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/png_v2.ts",
- "deprecated": false,
- "children": [
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsPNGV2.layout",
- "type": "Object",
- "tags": [],
- "label": "layout",
- "description": [],
- "signature": [
- "{ id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/png_v2.ts",
- "deprecated": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsPNGV2.locatorParams",
- "type": "Object",
- "tags": [],
- "label": "locatorParams",
- "description": [
- "\nThis value is used to re-create the same visual state as when the report was requested as well as navigate to the correct page."
- ],
- "signature": [
- "LocatorParams",
- "<",
- {
- "pluginId": "@kbn/utility-types",
- "scope": "server",
- "docId": "kibKbnUtilityTypesPluginApi",
- "section": "def-server.SerializableRecord",
- "text": "SerializableRecord"
- },
- ">"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/png_v2.ts",
- "deprecated": false
- }
- ],
- "initialIsOpen": false
- }
- ],
+ "interfaces": [],
"enums": [],
- "misc": [
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobAppParamsPDF",
- "type": "Type",
- "tags": [],
- "label": "JobAppParamsPDF",
- "description": [],
- "signature": [
- "{ title: string; layout: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; }; objectType: string; relativeUrls: string[]; isDeprecated?: boolean | undefined; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/printable_pdf.ts",
- "deprecated": false,
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobAppParamsPDFV2",
- "type": "Type",
- "tags": [],
- "label": "JobAppParamsPDFV2",
- "description": [],
- "signature": [
- "{ title: string; layout: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; }; objectType: string; locatorParams: ",
- "LocatorParams",
- "<",
- {
- "pluginId": "@kbn/utility-types",
- "scope": "server",
- "docId": "kibKbnUtilityTypesPluginApi",
- "section": "def-server.SerializableRecord",
- "text": "SerializableRecord"
- },
- ">[]; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/printable_pdf_v2.ts",
- "deprecated": false,
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsCSV",
- "type": "Type",
- "tags": [],
- "label": "JobParamsCSV",
- "description": [],
- "signature": [
- "BaseParamsCSV & { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource.ts",
- "deprecated": false,
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsPDF",
- "type": "Type",
- "tags": [],
- "label": "JobParamsPDF",
- "description": [],
- "signature": [
- "BaseParamsPDF & { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/printable_pdf.ts",
- "deprecated": false,
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsPDFV2",
- "type": "Type",
- "tags": [],
- "label": "JobParamsPDFV2",
- "description": [],
- "signature": [
- "BaseParamsPDFV2 & { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/printable_pdf_v2.ts",
- "deprecated": false,
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-public.JobParamsPNG",
- "type": "Type",
- "tags": [],
- "label": "JobParamsPNG",
- "description": [],
- "signature": [
- "BaseParamsPNG & { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/png.ts",
- "deprecated": false,
- "initialIsOpen": false
- }
- ],
+ "misc": [],
"objects": [],
"start": {
"parentPluginId": "reporting",
@@ -2351,179 +2070,6 @@
],
"functions": [],
"interfaces": [
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsDownloadCSV",
- "type": "Interface",
- "tags": [],
- "label": "JobParamsDownloadCSV",
- "description": [],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false,
- "children": [
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsDownloadCSV.browserTimezone",
- "type": "string",
- "tags": [],
- "label": "browserTimezone",
- "description": [],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsDownloadCSV.title",
- "type": "string",
- "tags": [],
- "label": "title",
- "description": [],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsDownloadCSV.searchSource",
- "type": "Object",
- "tags": [],
- "label": "searchSource",
- "description": [],
- "signature": [
- "{ type?: string | undefined; query?: ",
- "Query",
- " | undefined; filter?: ",
- "Filter",
- "[] | undefined; sort?: ",
- {
- "pluginId": "data",
- "scope": "common",
- "docId": "kibDataSearchPluginApi",
- "section": "def-common.EsQuerySortValue",
- "text": "EsQuerySortValue"
- },
- "[] | undefined; highlight?: ",
- {
- "pluginId": "@kbn/utility-types",
- "scope": "server",
- "docId": "kibKbnUtilityTypesPluginApi",
- "section": "def-server.SerializableRecord",
- "text": "SerializableRecord"
- },
- " | undefined; highlightAll?: boolean | undefined; trackTotalHits?: number | boolean | undefined; aggs?: { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
- {
- "pluginId": "@kbn/utility-types",
- "scope": "server",
- "docId": "kibKbnUtilityTypesPluginApi",
- "section": "def-server.SerializableRecord",
- "text": "SerializableRecord"
- },
- " | undefined; schema?: string | undefined; }[] | undefined; from?: number | undefined; size?: number | undefined; source?: boolean | ",
- "Fields",
- " | undefined; version?: boolean | undefined; fields?: ",
- {
- "pluginId": "data",
- "scope": "common",
- "docId": "kibDataSearchPluginApi",
- "section": "def-common.SearchFieldValue",
- "text": "SearchFieldValue"
- },
- "[] | undefined; fieldsFromSource?: ",
- "Fields",
- " | undefined; index?: string | undefined; searchAfter?: ",
- {
- "pluginId": "data",
- "scope": "common",
- "docId": "kibDataSearchPluginApi",
- "section": "def-common.EsQuerySearchAfter",
- "text": "EsQuerySearchAfter"
- },
- " | undefined; timeout?: string | undefined; terminate_after?: number | undefined; parent?: ",
- {
- "pluginId": "data",
- "scope": "common",
- "docId": "kibDataSearchPluginApi",
- "section": "def-common.SerializedSearchSourceFields",
- "text": "SerializedSearchSourceFields"
- },
- " | undefined; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsDownloadCSV.columns",
- "type": "Array",
- "tags": [],
- "label": "columns",
- "description": [],
- "signature": [
- "string[] | undefined"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource_immediate.ts",
- "deprecated": false
- }
- ],
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsPNGV2",
- "type": "Interface",
- "tags": [],
- "label": "JobParamsPNGV2",
- "description": [],
- "signature": [
- "JobParamsPNGV2",
- " extends { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/png_v2.ts",
- "deprecated": false,
- "children": [
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsPNGV2.layout",
- "type": "Object",
- "tags": [],
- "label": "layout",
- "description": [],
- "signature": [
- "{ id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/png_v2.ts",
- "deprecated": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsPNGV2.locatorParams",
- "type": "Object",
- "tags": [],
- "label": "locatorParams",
- "description": [
- "\nThis value is used to re-create the same visual state as when the report was requested as well as navigate to the correct page."
- ],
- "signature": [
- "LocatorParams",
- "<",
- {
- "pluginId": "@kbn/utility-types",
- "scope": "server",
- "docId": "kibKbnUtilityTypesPluginApi",
- "section": "def-server.SerializableRecord",
- "text": "SerializableRecord"
- },
- ">"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/png_v2.ts",
- "deprecated": false
- }
- ],
- "initialIsOpen": false
- },
{
"parentPluginId": "reporting",
"id": "def-server.ReportingConfig",
@@ -2781,72 +2327,7 @@
}
],
"enums": [],
- "misc": [
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsCSV",
- "type": "Type",
- "tags": [],
- "label": "JobParamsCSV",
- "description": [],
- "signature": [
- "BaseParamsCSV & { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/csv_searchsource.ts",
- "deprecated": false,
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsPDF",
- "type": "Type",
- "tags": [],
- "label": "JobParamsPDF",
- "description": [],
- "signature": [
- "BaseParamsPDF & { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/printable_pdf.ts",
- "deprecated": false,
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsPDFV2",
- "type": "Type",
- "tags": [],
- "label": "JobParamsPDFV2",
- "description": [],
- "signature": [
- "BaseParamsPDFV2 & { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/printable_pdf_v2.ts",
- "deprecated": false,
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-server.JobParamsPNG",
- "type": "Type",
- "tags": [],
- "label": "JobParamsPNG",
- "description": [],
- "signature": [
- "BaseParamsPNG & { layout?: { id?: string | undefined; dimensions?: { width: number; height: number; } | undefined; selectors?: Partial<",
- "LayoutSelectorDictionary",
- "> | undefined; zoom?: number | undefined; } | undefined; objectType: string; title: string; browserTimezone: string; version: string; }"
- ],
- "path": "x-pack/plugins/reporting/common/types/export_types/png.ts",
- "deprecated": false,
- "initialIsOpen": false
- }
- ],
+ "misc": [],
"objects": [],
"start": {
"parentPluginId": "reporting",
@@ -2879,214 +2360,7 @@
}
},
"common": {
- "classes": [
- {
- "parentPluginId": "reporting",
- "id": "def-common.CancellationToken",
- "type": "Class",
- "tags": [],
- "label": "CancellationToken",
- "description": [],
- "path": "x-pack/plugins/reporting/common/cancellation_token.ts",
- "deprecated": false,
- "children": [
- {
- "parentPluginId": "reporting",
- "id": "def-common.CancellationToken.Unnamed",
- "type": "Function",
- "tags": [],
- "label": "Constructor",
- "description": [],
- "signature": [
- "any"
- ],
- "path": "x-pack/plugins/reporting/common/cancellation_token.ts",
- "deprecated": false,
- "children": [],
- "returnComment": []
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.CancellationToken.on",
- "type": "Function",
- "tags": [],
- "label": "on",
- "description": [],
- "signature": [
- "(callback: Function) => void"
- ],
- "path": "x-pack/plugins/reporting/common/cancellation_token.ts",
- "deprecated": false,
- "children": [
- {
- "parentPluginId": "reporting",
- "id": "def-common.CancellationToken.on.$1",
- "type": "Object",
- "tags": [],
- "label": "callback",
- "description": [],
- "signature": [
- "Function"
- ],
- "path": "x-pack/plugins/reporting/common/cancellation_token.ts",
- "deprecated": false,
- "isRequired": true
- }
- ],
- "returnComment": []
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.CancellationToken.cancel",
- "type": "Function",
- "tags": [],
- "label": "cancel",
- "description": [],
- "signature": [
- "() => void"
- ],
- "path": "x-pack/plugins/reporting/common/cancellation_token.ts",
- "deprecated": false,
- "children": [],
- "returnComment": []
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.CancellationToken.isCancelled",
- "type": "Function",
- "tags": [],
- "label": "isCancelled",
- "description": [],
- "signature": [
- "() => boolean"
- ],
- "path": "x-pack/plugins/reporting/common/cancellation_token.ts",
- "deprecated": false,
- "children": [],
- "returnComment": []
- }
- ],
- "initialIsOpen": false
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.Poller",
- "type": "Class",
- "tags": [],
- "label": "Poller",
- "description": [],
- "path": "x-pack/plugins/reporting/common/poller.ts",
- "deprecated": false,
- "children": [
- {
- "parentPluginId": "reporting",
- "id": "def-common.Poller.Unnamed",
- "type": "Function",
- "tags": [],
- "label": "Constructor",
- "description": [],
- "signature": [
- "any"
- ],
- "path": "x-pack/plugins/reporting/common/poller.ts",
- "deprecated": false,
- "children": [
- {
- "parentPluginId": "reporting",
- "id": "def-common.Poller.Unnamed.$1",
- "type": "Object",
- "tags": [],
- "label": "options",
- "description": [],
- "signature": [
- "PollerOptions"
- ],
- "path": "x-pack/plugins/reporting/common/poller.ts",
- "deprecated": false,
- "isRequired": true
- }
- ],
- "returnComment": []
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.Poller.getPollFrequency",
- "type": "Function",
- "tags": [],
- "label": "getPollFrequency",
- "description": [],
- "signature": [
- "() => number"
- ],
- "path": "x-pack/plugins/reporting/common/poller.ts",
- "deprecated": false,
- "children": [],
- "returnComment": []
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.Poller._poll",
- "type": "Function",
- "tags": [],
- "label": "_poll",
- "description": [],
- "signature": [
- "() => Promise"
- ],
- "path": "x-pack/plugins/reporting/common/poller.ts",
- "deprecated": false,
- "children": [],
- "returnComment": []
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.Poller.start",
- "type": "Function",
- "tags": [],
- "label": "start",
- "description": [],
- "signature": [
- "() => void"
- ],
- "path": "x-pack/plugins/reporting/common/poller.ts",
- "deprecated": false,
- "children": [],
- "returnComment": []
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.Poller.stop",
- "type": "Function",
- "tags": [],
- "label": "stop",
- "description": [],
- "signature": [
- "() => void"
- ],
- "path": "x-pack/plugins/reporting/common/poller.ts",
- "deprecated": false,
- "children": [],
- "returnComment": []
- },
- {
- "parentPluginId": "reporting",
- "id": "def-common.Poller.isRunning",
- "type": "Function",
- "tags": [],
- "label": "isRunning",
- "description": [],
- "signature": [
- "() => boolean"
- ],
- "path": "x-pack/plugins/reporting/common/poller.ts",
- "deprecated": false,
- "children": [],
- "returnComment": []
- }
- ],
- "initialIsOpen": false
- }
- ],
+ "classes": [],
"functions": [],
"interfaces": [],
"enums": [],
diff --git a/api_docs/reporting.mdx b/api_docs/reporting.mdx
index e594a7b6023dc..2a47d2b4eca6b 100644
--- a/api_docs/reporting.mdx
+++ b/api_docs/reporting.mdx
@@ -18,7 +18,7 @@ Contact [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana
| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
-| 166 | 0 | 163 | 15 |
+| 126 | 0 | 125 | 13 |
## Client
@@ -28,12 +28,6 @@ Contact [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana
### Classes
-### Interfaces
-
-
-### Consts, variables and types
-
-
## Server
### Start
@@ -45,11 +39,3 @@ Contact [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana
### Interfaces
-### Consts, variables and types
-
-
-## Common
-
-### Classes
-
-
diff --git a/api_docs/rule_registry.json b/api_docs/rule_registry.json
index ecf07cb1e0bc3..f1414084c0105 100644
--- a/api_docs/rule_registry.json
+++ b/api_docs/rule_registry.json
@@ -864,13 +864,7 @@
"description": [],
"signature": [
"(featureId: ",
- {
- "pluginId": "@kbn/rule-data-utils",
- "scope": "server",
- "docId": "kibKbnRuleDataUtilsPluginApi",
- "section": "def-server.AlertConsumers",
- "text": "AlertConsumers"
- },
+ "AlertConsumers",
", dataset?: ",
{
"pluginId": "ruleRegistry",
@@ -894,13 +888,7 @@
"label": "featureId",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/rule-data-utils",
- "scope": "server",
- "docId": "kibKbnRuleDataUtilsPluginApi",
- "section": "def-server.AlertConsumers",
- "text": "AlertConsumers"
- }
+ "AlertConsumers"
],
"path": "x-pack/plugins/rule_registry/server/rule_data_plugin_service/rule_data_plugin_service.ts",
"deprecated": false,
@@ -2385,13 +2373,7 @@
],
"signature": [
"(featureId: ",
- {
- "pluginId": "@kbn/rule-data-utils",
- "scope": "server",
- "docId": "kibKbnRuleDataUtilsPluginApi",
- "section": "def-server.AlertConsumers",
- "text": "AlertConsumers"
- },
+ "AlertConsumers",
", dataset?: ",
{
"pluginId": "ruleRegistry",
@@ -2415,13 +2397,7 @@
"label": "featureId",
"description": [],
"signature": [
- {
- "pluginId": "@kbn/rule-data-utils",
- "scope": "server",
- "docId": "kibKbnRuleDataUtilsPluginApi",
- "section": "def-server.AlertConsumers",
- "text": "AlertConsumers"
- }
+ "AlertConsumers"
],
"path": "x-pack/plugins/rule_registry/server/rule_data_plugin_service/rule_data_plugin_service.ts",
"deprecated": false,
diff --git a/api_docs/security_solution.json b/api_docs/security_solution.json
index 04b9be72640f2..adfc5cbd8dfec 100644
--- a/api_docs/security_solution.json
+++ b/api_docs/security_solution.json
@@ -62,7 +62,7 @@
"label": "experimentalFeatures",
"description": [],
"signature": [
- "{ readonly metricsEntitiesEnabled: boolean; readonly ruleRegistryEnabled: boolean; readonly tGridEnabled: boolean; readonly tGridEventRenderedViewEnabled: boolean; readonly trustedAppsByPolicyEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly uebaEnabled: boolean; readonly disableIsolationUIPendingStatuses: boolean; readonly riskyHostsEnabled: boolean; readonly pendingActionResponsesWithAck: boolean; }"
+ "{ readonly metricsEntitiesEnabled: boolean; readonly ruleRegistryEnabled: boolean; readonly tGridEnabled: boolean; readonly tGridEventRenderedViewEnabled: boolean; readonly trustedAppsByPolicyEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly uebaEnabled: boolean; readonly disableIsolationUIPendingStatuses: boolean; readonly riskyHostsEnabled: boolean; readonly securityRulesCancelEnabled: boolean; readonly pendingActionResponsesWithAck: boolean; }"
],
"path": "x-pack/plugins/security_solution/public/plugin.tsx",
"deprecated": false
@@ -889,7 +889,7 @@
"signature": [
"Readonly<{} & { signalsIndex: string; maxRuleImportExportSize: number; maxRuleImportPayloadBytes: number; maxTimelineImportExportSize: number; maxTimelineImportPayloadBytes: number; alertMergeStrategy: \"allFields\" | \"missingFields\" | \"noFields\"; alertIgnoreFields: string[]; enableExperimental: string[]; ruleExecutionLog: Readonly<{} & { underlyingClient: ",
"UnderlyingLogClient",
- "; }>; packagerTaskInterval: string; prebuiltRulesFromFileSystem: boolean; prebuiltRulesFromSavedObjects: boolean; }> & { experimentalFeatures: Readonly<{ metricsEntitiesEnabled: boolean; ruleRegistryEnabled: boolean; tGridEnabled: boolean; tGridEventRenderedViewEnabled: boolean; trustedAppsByPolicyEnabled: boolean; excludePoliciesInFilterEnabled: boolean; uebaEnabled: boolean; disableIsolationUIPendingStatuses: boolean; riskyHostsEnabled: boolean; pendingActionResponsesWithAck: boolean; }>; }"
+ "; }>; packagerTaskInterval: string; prebuiltRulesFromFileSystem: boolean; prebuiltRulesFromSavedObjects: boolean; }> & { experimentalFeatures: Readonly<{ metricsEntitiesEnabled: boolean; ruleRegistryEnabled: boolean; tGridEnabled: boolean; tGridEventRenderedViewEnabled: boolean; trustedAppsByPolicyEnabled: boolean; excludePoliciesInFilterEnabled: boolean; uebaEnabled: boolean; disableIsolationUIPendingStatuses: boolean; riskyHostsEnabled: boolean; securityRulesCancelEnabled: boolean; pendingActionResponsesWithAck: boolean; }>; }"
],
"path": "x-pack/plugins/security_solution/server/config.ts",
"deprecated": false,
diff --git a/api_docs/usage_collection.json b/api_docs/usage_collection.json
index 529ac3947e95f..e85341ddb7b74 100644
--- a/api_docs/usage_collection.json
+++ b/api_docs/usage_collection.json
@@ -679,7 +679,7 @@
"\nPossible type values in the schema"
],
"signature": [
- "\"boolean\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"text\" | \"short\" | \"float\" | \"integer\" | \"byte\""
+ "\"boolean\" | \"keyword\" | \"date\" | \"long\" | \"double\" | \"text\" | \"integer\" | \"short\" | \"byte\" | \"float\""
],
"path": "src/plugins/usage_collection/server/collector/types.ts",
"deprecated": false,
diff --git a/docs/api/alerting/health.asciidoc b/docs/api/alerting/health.asciidoc
index 1e6b9ce22a981..24955bb81fa98 100644
--- a/docs/api/alerting/health.asciidoc
+++ b/docs/api/alerting/health.asciidoc
@@ -74,6 +74,9 @@ The health API response contains the following properties:
| `alerting_framework_health`
| This state property has three substates that identify the health of the alerting framework API: `decryption_health`, `execution_health`, and `read_health`.
+| deprecated::`alerting_framework_heath`
+| This state property has a typo, use `alerting_framework_health` instead. It has three substates that identify the health of the alerting framework API: `decryption_health`, `execution_health`, and `read_health`.
+
|===
`alerting_framework_health` consists of the following properties:
diff --git a/docs/api/alerting/legacy/health.asciidoc b/docs/api/alerting/legacy/health.asciidoc
index 68f04cc715bd7..de051f5eeedbb 100644
--- a/docs/api/alerting/legacy/health.asciidoc
+++ b/docs/api/alerting/legacy/health.asciidoc
@@ -45,7 +45,7 @@ The API returns the following:
{
"isSufficientlySecure":true,
"hasPermanentEncryptionKey":true,
- "alertingFrameworkHeath":{
+ "alertingFrameworkHealth":{
"decryptionHealth":{
"status":"ok",
"timestamp":"2021-02-10T23:35:04.949Z"
@@ -73,12 +73,12 @@ The health API response contains the following properties:
| `hasPermanentEncryptionKey`
| Return the state `false` if Encrypted Saved Object plugin has not a permanent encryption Key.
-| `alertingFrameworkHeath`
+| `alertingFrameworkHealth`
| This state property has three substates that identify the health of the alerting framework API: `decryptionHealth`, `executionHealth`, and `readHealth`.
|===
-`alertingFrameworkHeath` consists of the following properties:
+`alertingFrameworkHealth` consists of the following properties:
[cols="2*<"]
|===
diff --git a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md
index bd4aea38d1cee..1f2f013ba0f59 100644
--- a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md
+++ b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md
@@ -213,6 +213,7 @@ readonly links: {
};
readonly securitySolution: {
readonly trustedApps: string;
+ readonly eventFilters: string;
};
readonly query: {
readonly eql: string;
diff --git a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
index da42918e4722f..e5fc10224e591 100644
--- a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
+++ b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
@@ -17,5 +17,5 @@ export interface DocLinksStart
| --- | --- | --- |
| [DOC\_LINK\_VERSION](./kibana-plugin-core-public.doclinksstart.doc_link_version.md) | string | |
| [ELASTIC\_WEBSITE\_URL](./kibana-plugin-core-public.doclinksstart.elastic_website_url.md) | string | |
-| [links](./kibana-plugin-core-public.doclinksstart.links.md) | { readonly settings: string; readonly elasticStackGetStarted: string; readonly upgrade: { readonly upgradingElasticStack: string; }; readonly apm: { readonly kibanaSettings: string; readonly supportedServiceMaps: string; readonly customLinks: string; readonly droppedTransactionSpans: string; readonly upgrading: string; readonly metaData: string; }; readonly canvas: { readonly guide: string; }; readonly cloud: { readonly indexManagement: string; }; readonly console: { readonly guide: string; }; readonly dashboard: { readonly guide: string; readonly drilldowns: string; readonly drilldownsTriggerPicker: string; readonly urlDrilldownTemplateSyntax: string; readonly urlDrilldownVariables: string; }; readonly discover: Record<string, string>; readonly filebeat: { readonly base: string; readonly installation: string; readonly configuration: string; readonly elasticsearchOutput: string; readonly elasticsearchModule: string; readonly startup: string; readonly exportedFields: string; readonly suricataModule: string; readonly zeekModule: string; }; readonly auditbeat: { readonly base: string; readonly auditdModule: string; readonly systemModule: string; }; readonly metricbeat: { readonly base: string; readonly configure: string; readonly httpEndpoint: string; readonly install: string; readonly start: string; }; readonly appSearch: { readonly apiRef: string; readonly apiClients: string; readonly apiKeys: string; readonly authentication: string; readonly crawlRules: string; readonly curations: string; readonly duplicateDocuments: string; readonly entryPoints: string; readonly guide: string; readonly indexingDocuments: string; readonly indexingDocumentsSchema: string; readonly logSettings: string; readonly metaEngines: string; readonly precisionTuning: string; readonly relevanceTuning: string; readonly resultSettings: string; readonly searchUI: string; readonly security: string; readonly synonyms: string; readonly webCrawler: string; readonly webCrawlerEventLogs: string; }; readonly enterpriseSearch: { readonly configuration: string; readonly licenseManagement: string; readonly mailService: string; readonly usersAccess: string; }; readonly workplaceSearch: { readonly apiKeys: string; readonly box: string; readonly confluenceCloud: string; readonly confluenceServer: string; readonly customSources: string; readonly customSourcePermissions: string; readonly documentPermissions: string; readonly dropbox: string; readonly externalIdentities: string; readonly gitHub: string; readonly gettingStarted: string; readonly gmail: string; readonly googleDrive: string; readonly indexingSchedule: string; readonly jiraCloud: string; readonly jiraServer: string; readonly oneDrive: string; readonly permissions: string; readonly salesforce: string; readonly security: string; readonly serviceNow: string; readonly sharePoint: string; readonly slack: string; readonly synch: string; readonly zendesk: string; }; readonly heartbeat: { readonly base: string; }; readonly libbeat: { readonly getStarted: string; }; readonly logstash: { readonly base: string; }; readonly functionbeat: { readonly base: string; }; readonly winlogbeat: { readonly base: string; }; readonly aggs: { readonly composite: string; readonly composite\_missing\_bucket: string; readonly date\_histogram: string; readonly date\_range: string; readonly date\_format\_pattern: string; readonly filter: string; readonly filters: string; readonly geohash\_grid: string; readonly histogram: string; readonly ip\_range: string; readonly range: string; readonly significant\_terms: string; readonly terms: string; readonly terms\_doc\_count\_error: string; readonly avg: string; readonly avg\_bucket: string; readonly max\_bucket: string; readonly min\_bucket: string; readonly sum\_bucket: string; readonly cardinality: string; readonly count: string; readonly cumulative\_sum: string; readonly derivative: string; readonly geo\_bounds: string; readonly geo\_centroid: string; readonly max: string; readonly median: string; readonly min: string; readonly moving\_avg: string; readonly percentile\_ranks: string; readonly serial\_diff: string; readonly std\_dev: string; readonly sum: string; readonly top\_hits: string; }; readonly runtimeFields: { readonly overview: string; readonly mapping: string; }; readonly scriptedFields: { readonly scriptFields: string; readonly scriptAggs: string; readonly painless: string; readonly painlessApi: string; readonly painlessLangSpec: string; readonly painlessSyntax: string; readonly painlessWalkthrough: string; readonly luceneExpressions: string; }; readonly search: { readonly sessions: string; readonly sessionLimits: string; }; readonly indexPatterns: { readonly introduction: string; readonly fieldFormattersNumber: string; readonly fieldFormattersString: string; readonly runtimeFields: string; }; readonly addData: string; readonly kibana: string; readonly upgradeAssistant: { readonly overview: string; readonly batchReindex: string; readonly remoteReindex: string; }; readonly rollupJobs: string; readonly elasticsearch: Record<string, string>; readonly siem: { readonly privileges: string; readonly guide: string; readonly gettingStarted: string; readonly ml: string; readonly ruleChangeLog: string; readonly detectionsReq: string; readonly networkMap: string; readonly troubleshootGaps: string; }; readonly securitySolution: { readonly trustedApps: string; }; readonly query: { readonly eql: string; readonly kueryQuerySyntax: string; readonly luceneQuerySyntax: string; readonly percolate: string; readonly queryDsl: string; }; readonly date: { readonly dateMath: string; readonly dateMathIndexNames: string; }; readonly management: Record<string, string>; readonly ml: Record<string, string>; readonly transforms: Record<string, string>; readonly visualize: Record<string, string>; readonly apis: Readonly<{ bulkIndexAlias: string; byteSizeUnits: string; createAutoFollowPattern: string; createFollower: string; createIndex: string; createSnapshotLifecyclePolicy: string; createRoleMapping: string; createRoleMappingTemplates: string; createRollupJobsRequest: string; createApiKey: string; createPipeline: string; createTransformRequest: string; cronExpressions: string; executeWatchActionModes: string; indexExists: string; openIndex: string; putComponentTemplate: string; painlessExecute: string; painlessExecuteAPIContexts: string; putComponentTemplateMetadata: string; putSnapshotLifecyclePolicy: string; putIndexTemplateV1: string; putWatch: string; simulatePipeline: string; timeUnits: string; updateTransform: string; }>; readonly observability: Readonly<{ guide: string; infrastructureThreshold: string; logsThreshold: string; metricsThreshold: string; monitorStatus: string; monitorUptime: string; tlsCertificate: string; uptimeDurationAnomaly: string; }>; readonly alerting: Record<string, string>; readonly maps: Readonly<{ guide: string; importGeospatialPrivileges: string; gdalTutorial: string; }>; readonly monitoring: Record<string, string>; readonly security: Readonly<{ apiKeyServiceSettings: string; clusterPrivileges: string; elasticsearchSettings: string; elasticsearchEnableSecurity: string; elasticsearchEnableApiKeys: string; indicesPrivileges: string; kibanaTLS: string; kibanaPrivileges: string; mappingRoles: string; mappingRolesFieldRules: string; runAsPrivilege: string; }>; readonly spaces: Readonly<{ kibanaLegacyUrlAliases: string; kibanaDisableLegacyUrlAliasesApi: string; }>; readonly watcher: Record<string, string>; readonly ccs: Record<string, string>; readonly plugins: { azureRepo: string; gcsRepo: string; hdfsRepo: string; s3Repo: string; snapshotRestoreRepos: string; mapperSize: string; }; readonly snapshotRestore: Record<string, string>; readonly ingest: Record<string, string>; readonly fleet: Readonly<{ beatsAgentComparison: string; guide: string; fleetServer: string; fleetServerAddFleetServer: string; settings: string; settingsFleetServerHostSettings: string; settingsFleetServerProxySettings: string; troubleshooting: string; elasticAgent: string; datastreams: string; datastreamsNamingScheme: string; installElasticAgent: string; installElasticAgentStandalone: string; upgradeElasticAgent: string; upgradeElasticAgent712lower: string; learnMoreBlog: string; apiKeysLearnMore: string; onPremRegistry: string; }>; readonly ecs: { readonly guide: string; }; readonly clients: { readonly guide: string; readonly goOverview: string; readonly javaIndex: string; readonly jsIntro: string; readonly netGuide: string; readonly perlGuide: string; readonly phpGuide: string; readonly pythonGuide: string; readonly rubyOverview: string; readonly rustGuide: string; }; readonly endpoints: { readonly troubleshooting: string; }; } | |
+| [links](./kibana-plugin-core-public.doclinksstart.links.md) | { readonly settings: string; readonly elasticStackGetStarted: string; readonly upgrade: { readonly upgradingElasticStack: string; }; readonly apm: { readonly kibanaSettings: string; readonly supportedServiceMaps: string; readonly customLinks: string; readonly droppedTransactionSpans: string; readonly upgrading: string; readonly metaData: string; }; readonly canvas: { readonly guide: string; }; readonly cloud: { readonly indexManagement: string; }; readonly console: { readonly guide: string; }; readonly dashboard: { readonly guide: string; readonly drilldowns: string; readonly drilldownsTriggerPicker: string; readonly urlDrilldownTemplateSyntax: string; readonly urlDrilldownVariables: string; }; readonly discover: Record<string, string>; readonly filebeat: { readonly base: string; readonly installation: string; readonly configuration: string; readonly elasticsearchOutput: string; readonly elasticsearchModule: string; readonly startup: string; readonly exportedFields: string; readonly suricataModule: string; readonly zeekModule: string; }; readonly auditbeat: { readonly base: string; readonly auditdModule: string; readonly systemModule: string; }; readonly metricbeat: { readonly base: string; readonly configure: string; readonly httpEndpoint: string; readonly install: string; readonly start: string; }; readonly appSearch: { readonly apiRef: string; readonly apiClients: string; readonly apiKeys: string; readonly authentication: string; readonly crawlRules: string; readonly curations: string; readonly duplicateDocuments: string; readonly entryPoints: string; readonly guide: string; readonly indexingDocuments: string; readonly indexingDocumentsSchema: string; readonly logSettings: string; readonly metaEngines: string; readonly precisionTuning: string; readonly relevanceTuning: string; readonly resultSettings: string; readonly searchUI: string; readonly security: string; readonly synonyms: string; readonly webCrawler: string; readonly webCrawlerEventLogs: string; }; readonly enterpriseSearch: { readonly configuration: string; readonly licenseManagement: string; readonly mailService: string; readonly usersAccess: string; }; readonly workplaceSearch: { readonly apiKeys: string; readonly box: string; readonly confluenceCloud: string; readonly confluenceServer: string; readonly customSources: string; readonly customSourcePermissions: string; readonly documentPermissions: string; readonly dropbox: string; readonly externalIdentities: string; readonly gitHub: string; readonly gettingStarted: string; readonly gmail: string; readonly googleDrive: string; readonly indexingSchedule: string; readonly jiraCloud: string; readonly jiraServer: string; readonly oneDrive: string; readonly permissions: string; readonly salesforce: string; readonly security: string; readonly serviceNow: string; readonly sharePoint: string; readonly slack: string; readonly synch: string; readonly zendesk: string; }; readonly heartbeat: { readonly base: string; }; readonly libbeat: { readonly getStarted: string; }; readonly logstash: { readonly base: string; }; readonly functionbeat: { readonly base: string; }; readonly winlogbeat: { readonly base: string; }; readonly aggs: { readonly composite: string; readonly composite\_missing\_bucket: string; readonly date\_histogram: string; readonly date\_range: string; readonly date\_format\_pattern: string; readonly filter: string; readonly filters: string; readonly geohash\_grid: string; readonly histogram: string; readonly ip\_range: string; readonly range: string; readonly significant\_terms: string; readonly terms: string; readonly terms\_doc\_count\_error: string; readonly avg: string; readonly avg\_bucket: string; readonly max\_bucket: string; readonly min\_bucket: string; readonly sum\_bucket: string; readonly cardinality: string; readonly count: string; readonly cumulative\_sum: string; readonly derivative: string; readonly geo\_bounds: string; readonly geo\_centroid: string; readonly max: string; readonly median: string; readonly min: string; readonly moving\_avg: string; readonly percentile\_ranks: string; readonly serial\_diff: string; readonly std\_dev: string; readonly sum: string; readonly top\_hits: string; }; readonly runtimeFields: { readonly overview: string; readonly mapping: string; }; readonly scriptedFields: { readonly scriptFields: string; readonly scriptAggs: string; readonly painless: string; readonly painlessApi: string; readonly painlessLangSpec: string; readonly painlessSyntax: string; readonly painlessWalkthrough: string; readonly luceneExpressions: string; }; readonly search: { readonly sessions: string; readonly sessionLimits: string; }; readonly indexPatterns: { readonly introduction: string; readonly fieldFormattersNumber: string; readonly fieldFormattersString: string; readonly runtimeFields: string; }; readonly addData: string; readonly kibana: string; readonly upgradeAssistant: { readonly overview: string; readonly batchReindex: string; readonly remoteReindex: string; }; readonly rollupJobs: string; readonly elasticsearch: Record<string, string>; readonly siem: { readonly privileges: string; readonly guide: string; readonly gettingStarted: string; readonly ml: string; readonly ruleChangeLog: string; readonly detectionsReq: string; readonly networkMap: string; readonly troubleshootGaps: string; }; readonly securitySolution: { readonly trustedApps: string; readonly eventFilters: string; }; readonly query: { readonly eql: string; readonly kueryQuerySyntax: string; readonly luceneQuerySyntax: string; readonly percolate: string; readonly queryDsl: string; }; readonly date: { readonly dateMath: string; readonly dateMathIndexNames: string; }; readonly management: Record<string, string>; readonly ml: Record<string, string>; readonly transforms: Record<string, string>; readonly visualize: Record<string, string>; readonly apis: Readonly<{ bulkIndexAlias: string; byteSizeUnits: string; createAutoFollowPattern: string; createFollower: string; createIndex: string; createSnapshotLifecyclePolicy: string; createRoleMapping: string; createRoleMappingTemplates: string; createRollupJobsRequest: string; createApiKey: string; createPipeline: string; createTransformRequest: string; cronExpressions: string; executeWatchActionModes: string; indexExists: string; openIndex: string; putComponentTemplate: string; painlessExecute: string; painlessExecuteAPIContexts: string; putComponentTemplateMetadata: string; putSnapshotLifecyclePolicy: string; putIndexTemplateV1: string; putWatch: string; simulatePipeline: string; timeUnits: string; updateTransform: string; }>; readonly observability: Readonly<{ guide: string; infrastructureThreshold: string; logsThreshold: string; metricsThreshold: string; monitorStatus: string; monitorUptime: string; tlsCertificate: string; uptimeDurationAnomaly: string; }>; readonly alerting: Record<string, string>; readonly maps: Readonly<{ guide: string; importGeospatialPrivileges: string; gdalTutorial: string; }>; readonly monitoring: Record<string, string>; readonly security: Readonly<{ apiKeyServiceSettings: string; clusterPrivileges: string; elasticsearchSettings: string; elasticsearchEnableSecurity: string; elasticsearchEnableApiKeys: string; indicesPrivileges: string; kibanaTLS: string; kibanaPrivileges: string; mappingRoles: string; mappingRolesFieldRules: string; runAsPrivilege: string; }>; readonly spaces: Readonly<{ kibanaLegacyUrlAliases: string; kibanaDisableLegacyUrlAliasesApi: string; }>; readonly watcher: Record<string, string>; readonly ccs: Record<string, string>; readonly plugins: { azureRepo: string; gcsRepo: string; hdfsRepo: string; s3Repo: string; snapshotRestoreRepos: string; mapperSize: string; }; readonly snapshotRestore: Record<string, string>; readonly ingest: Record<string, string>; readonly fleet: Readonly<{ beatsAgentComparison: string; guide: string; fleetServer: string; fleetServerAddFleetServer: string; settings: string; settingsFleetServerHostSettings: string; settingsFleetServerProxySettings: string; troubleshooting: string; elasticAgent: string; datastreams: string; datastreamsNamingScheme: string; installElasticAgent: string; installElasticAgentStandalone: string; upgradeElasticAgent: string; upgradeElasticAgent712lower: string; learnMoreBlog: string; apiKeysLearnMore: string; onPremRegistry: string; }>; readonly ecs: { readonly guide: string; }; readonly clients: { readonly guide: string; readonly goOverview: string; readonly javaIndex: string; readonly jsIntro: string; readonly netGuide: string; readonly perlGuide: string; readonly phpGuide: string; readonly pythonGuide: string; readonly rubyOverview: string; readonly rustGuide: string; }; readonly endpoints: { readonly troubleshooting: string; }; } | |
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md
index f429911476307..98ac48f6cdbd8 100644
--- a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md
@@ -30,7 +30,7 @@ export interface SavedObjectsFindOptions
| [searchAfter?](./kibana-plugin-core-public.savedobjectsfindoptions.searchafter.md) | estypes.Id\[\] | (Optional) Use the sort values from the previous page to retrieve the next page of results. |
| [searchFields?](./kibana-plugin-core-public.savedobjectsfindoptions.searchfields.md) | string\[\] | (Optional) The fields to perform the parsed query against. See Elasticsearch Simple Query String fields
argument for more information |
| [sortField?](./kibana-plugin-core-public.savedobjectsfindoptions.sortfield.md) | string | (Optional) |
-| [sortOrder?](./kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md) | estypes.SearchSortOrder | (Optional) |
+| [sortOrder?](./kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md) | estypes.SortOrder | (Optional) |
| [type](./kibana-plugin-core-public.savedobjectsfindoptions.type.md) | string \| string\[\] | |
| [typeToNamespacesMap?](./kibana-plugin-core-public.savedobjectsfindoptions.typetonamespacesmap.md) | Map<string, string\[\] \| undefined> | (Optional) This map defines each type to search for, and the namespace(s) to search for the type in; this is only intended to be used by a saved object client wrapper. If this is defined, it supersedes the type
and namespaces
fields when building the Elasticsearch query. Any types that are not included in this map will be excluded entirely. If a type is included but its value is undefined, the operation will search for that type in the Default namespace. |
diff --git a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md
index 506fb9041e353..36f99e51ea8c6 100644
--- a/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md
+++ b/docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.sortorder.md
@@ -7,5 +7,5 @@
Signature:
```typescript
-sortOrder?: estypes.SearchSortOrder;
+sortOrder?: estypes.SortOrder;
```
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md
new file mode 100644
index 0000000000000..4892c0e41ab01
--- /dev/null
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md
@@ -0,0 +1,23 @@
+
+
+[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsErrorHelpers](./kibana-plugin-core-server.savedobjectserrorhelpers.md) > [createGenericNotFoundEsUnavailableError](./kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md)
+
+## SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError() method
+
+Signature:
+
+```typescript
+static createGenericNotFoundEsUnavailableError(type?: string | null, id?: string | null): DecoratedError;
+```
+
+## Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| type | string \| null | |
+| id | string \| null | |
+
+Returns:
+
+DecoratedError
+
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
index 2dc78f2df3a83..67056c8a3cb50 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectserrorhelpers.md
@@ -18,6 +18,7 @@ export declare class SavedObjectsErrorHelpers
| [createBadRequestError(reason)](./kibana-plugin-core-server.savedobjectserrorhelpers.createbadrequesterror.md) | static
| |
| [createConflictError(type, id, reason)](./kibana-plugin-core-server.savedobjectserrorhelpers.createconflicterror.md) | static
| |
| [createGenericNotFoundError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfounderror.md) | static
| |
+| [createGenericNotFoundEsUnavailableError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.creategenericnotfoundesunavailableerror.md) | static
| |
| [createIndexAliasNotFoundError(alias)](./kibana-plugin-core-server.savedobjectserrorhelpers.createindexaliasnotfounderror.md) | static
| |
| [createInvalidVersionError(versionInput)](./kibana-plugin-core-server.savedobjectserrorhelpers.createinvalidversionerror.md) | static
| |
| [createTooManyRequestsError(type, id)](./kibana-plugin-core-server.savedobjectserrorhelpers.createtoomanyrequestserror.md) | static
| |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
index 5f3bb46cc7a99..9e87eff2f1232 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.md
@@ -30,7 +30,7 @@ export interface SavedObjectsFindOptions
| [searchAfter?](./kibana-plugin-core-server.savedobjectsfindoptions.searchafter.md) | estypes.Id\[\] | (Optional) Use the sort values from the previous page to retrieve the next page of results. |
| [searchFields?](./kibana-plugin-core-server.savedobjectsfindoptions.searchfields.md) | string\[\] | (Optional) The fields to perform the parsed query against. See Elasticsearch Simple Query String fields
argument for more information |
| [sortField?](./kibana-plugin-core-server.savedobjectsfindoptions.sortfield.md) | string | (Optional) |
-| [sortOrder?](./kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md) | estypes.SearchSortOrder | (Optional) |
+| [sortOrder?](./kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md) | estypes.SortOrder | (Optional) |
| [type](./kibana-plugin-core-server.savedobjectsfindoptions.type.md) | string \| string\[\] | |
| [typeToNamespacesMap?](./kibana-plugin-core-server.savedobjectsfindoptions.typetonamespacesmap.md) | Map<string, string\[\] \| undefined> | (Optional) This map defines each type to search for, and the namespace(s) to search for the type in; this is only intended to be used by a saved object client wrapper. If this is defined, it supersedes the type
and namespaces
fields when building the Elasticsearch query. Any types that are not included in this map will be excluded entirely. If a type is included but its value is undefined, the operation will search for that type in the Default namespace. |
diff --git a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md
index dca5a7d8c7583..e1c657e3a5171 100644
--- a/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md
+++ b/docs/development/core/server/kibana-plugin-core-server.savedobjectsfindoptions.sortorder.md
@@ -7,5 +7,5 @@
Signature:
```typescript
-sortOrder?: estypes.SearchSortOrder;
+sortOrder?: estypes.SortOrder;
```
diff --git a/docs/user/security/audit-logging.asciidoc b/docs/user/security/audit-logging.asciidoc
index 926331008e990..33e1c2b523511 100644
--- a/docs/user/security/audit-logging.asciidoc
+++ b/docs/user/security/audit-logging.asciidoc
@@ -50,6 +50,9 @@ Refer to the corresponding {es} logs for potential write errors.
| `success` | User has logged in successfully.
| `failure` | Failed login attempt (e.g. due to invalid credentials).
+| `user_logout`
+| `unknown` | User is logging out.
+
| `access_agreement_acknowledged`
| N/A | User has acknowledged the access agreement.
diff --git a/package.json b/package.json
index c6f09881126eb..39d167e15dd1b 100644
--- a/package.json
+++ b/package.json
@@ -105,7 +105,7 @@
"@elastic/apm-synthtrace": "link:bazel-bin/packages/elastic-apm-synthtrace",
"@elastic/charts": "40.2.0",
"@elastic/datemath": "link:bazel-bin/packages/elastic-datemath",
- "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@^8.0.0-canary.35",
+ "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.1.0-canary.2",
"@elastic/ems-client": "8.0.0",
"@elastic/eui": "43.1.1",
"@elastic/filesaver": "1.1.2",
@@ -212,7 +212,7 @@
"constate": "^1.3.2",
"content-disposition": "0.5.3",
"copy-to-clipboard": "^3.0.8",
- "core-js": "^3.19.3",
+ "core-js": "^3.20.1",
"cronstrue": "^1.51.0",
"cytoscape": "^3.10.0",
"cytoscape-dagre": "^2.2.2",
@@ -311,7 +311,7 @@
"p-map": "^4.0.0",
"p-retry": "^4.2.0",
"papaparse": "^5.2.0",
- "pdfmake": "^0.1.65",
+ "pdfmake": "^0.2.4",
"peggy": "^1.2.0",
"pluralize": "3.1.0",
"pngjs": "^3.4.0",
@@ -503,7 +503,7 @@
"@types/base64-js": "^1.2.5",
"@types/chance": "^1.0.0",
"@types/chroma-js": "^1.4.2",
- "@types/chromedriver": "^81.0.0",
+ "@types/chromedriver": "^81.0.1",
"@types/classnames": "^2.2.9",
"@types/cmd-shim": "^2.0.0",
"@types/color": "^3.0.0",
@@ -590,12 +590,20 @@
"@types/kbn__securitysolution-io-ts-alerting-types": "link:bazel-bin/packages/kbn-securitysolution-io-ts-alerting-types/npm_module_types",
"@types/kbn__securitysolution-io-ts-list-types": "link:bazel-bin/packages/kbn-securitysolution-io-ts-list-types/npm_module_types",
"@types/kbn__securitysolution-io-ts-types": "link:bazel-bin/packages/kbn-securitysolution-io-ts-types/npm_module_types",
+ "@types/kbn__securitysolution-io-ts-utils": "link:bazel-bin/packages/kbn-securitysolution-io-ts-utils/npm_module_types",
"@types/kbn__securitysolution-list-api": "link:bazel-bin/packages/kbn-securitysolution-list-api/npm_module_types",
"@types/kbn__securitysolution-list-constants": "link:bazel-bin/packages/kbn-securitysolution-list-constants/npm_module_types",
"@types/kbn__securitysolution-list-hooks": "link:bazel-bin/packages/kbn-securitysolution-list-hooks/npm_module_types",
+ "@types/kbn__securitysolution-list-utils": "link:bazel-bin/packages/kbn-securitysolution-list-utils/npm_module_types",
"@types/kbn__securitysolution-rules": "link:bazel-bin/packages/kbn-securitysolution-rules/npm_module_types",
"@types/kbn__securitysolution-t-grid": "link:bazel-bin/packages/kbn-securitysolution-t-grid/npm_module_types",
"@types/kbn__securitysolution-utils": "link:bazel-bin/packages/kbn-securitysolution-utils/npm_module_types",
+ "@types/kbn__server-http-tools": "link:bazel-bin/packages/kbn-server-http-tools/npm_module_types",
+ "@types/kbn__server-route-repository": "link:bazel-bin/packages/kbn-server-route-repository/npm_module_types",
+ "@types/kbn__std": "link:bazel-bin/packages/kbn-std/npm_module_types",
+ "@types/kbn__telemetry-tools": "link:bazel-bin/packages/kbn-telemetry-tools/npm_module_types",
+ "@types/kbn__utility-types": "link:bazel-bin/packages/kbn-utility-types/npm_module_types",
+ "@types/kbn__utils": "link:bazel-bin/packages/kbn-utils/npm_module_types",
"@types/license-checker": "15.0.0",
"@types/listr": "^0.14.0",
"@types/loader-utils": "^1.1.3",
@@ -625,7 +633,7 @@
"@types/ora": "^1.3.5",
"@types/papaparse": "^5.0.3",
"@types/parse-link-header": "^1.0.0",
- "@types/pdfmake": "^0.1.15",
+ "@types/pdfmake": "^0.1.19",
"@types/pegjs": "^0.10.1",
"@types/pngjs": "^3.4.0",
"@types/prettier": "^2.3.2",
@@ -763,7 +771,7 @@
"fetch-mock": "^7.3.9",
"file-loader": "^4.2.0",
"form-data": "^4.0.0",
- "geckodriver": "^2.0.4",
+ "geckodriver": "^3.0.1",
"glob-watcher": "5.0.3",
"gulp": "4.0.2",
"gulp-babel": "^8.0.0",
diff --git a/packages/BUILD.bazel b/packages/BUILD.bazel
index 04c4bc9b9901c..3580bcfbf6571 100644
--- a/packages/BUILD.bazel
+++ b/packages/BUILD.bazel
@@ -107,12 +107,20 @@ filegroup(
"//packages/kbn-securitysolution-io-ts-alerting-types:build_types",
"//packages/kbn-securitysolution-io-ts-list-types:build_types",
"//packages/kbn-securitysolution-io-ts-types:build_types",
+ "//packages/kbn-securitysolution-io-ts-utils:build_types",
"//packages/kbn-securitysolution-list-api:build_types",
"//packages/kbn-securitysolution-list-constants:build_types",
"//packages/kbn-securitysolution-list-hooks:build_types",
+ "//packages/kbn-securitysolution-list-utils:build_types",
"//packages/kbn-securitysolution-rules:build_types",
"//packages/kbn-securitysolution-t-grid:build_types",
"//packages/kbn-securitysolution-utils:build_types",
+ "//packages/kbn-server-http-tools:build_types",
+ "//packages/kbn-server-route-repository:build_types",
+ "//packages/kbn-std:build_types",
+ "//packages/kbn-telemetry-tools:build_types",
+ "//packages/kbn-utility-types:build_types",
+ "//packages/kbn-utils:build_types",
],
)
diff --git a/packages/kbn-apm-config-loader/BUILD.bazel b/packages/kbn-apm-config-loader/BUILD.bazel
index 15491336ed657..0e3bc444acd24 100644
--- a/packages/kbn-apm-config-loader/BUILD.bazel
+++ b/packages/kbn-apm-config-loader/BUILD.bazel
@@ -36,7 +36,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/elastic-safer-lodash-set",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//@elastic/apm-rum",
"@npm//@types/jest",
"@npm//@types/js-yaml",
diff --git a/packages/kbn-cli-dev-mode/BUILD.bazel b/packages/kbn-cli-dev-mode/BUILD.bazel
index 22a8137a782a6..87d4a116f13b1 100644
--- a/packages/kbn-cli-dev-mode/BUILD.bazel
+++ b/packages/kbn-cli-dev-mode/BUILD.bazel
@@ -53,9 +53,9 @@ TYPES_DEPS = [
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-logging",
"//packages/kbn-optimizer:npm_module_types",
- "//packages/kbn-server-http-tools",
- "//packages/kbn-std",
- "//packages/kbn-utils",
+ "//packages/kbn-server-http-tools:npm_module_types",
+ "//packages/kbn-std:npm_module_types",
+ "//packages/kbn-utils:npm_module_types",
"@npm//argsplit",
"@npm//chokidar",
"@npm//elastic-apm-node",
diff --git a/packages/kbn-config/BUILD.bazel b/packages/kbn-config/BUILD.bazel
index 0353b2d16be7b..da4532f7d61c4 100644
--- a/packages/kbn-config/BUILD.bazel
+++ b/packages/kbn-config/BUILD.bazel
@@ -48,8 +48,8 @@ TYPES_DEPS = [
"//packages/elastic-safer-lodash-set",
"//packages/kbn-config-schema:npm_module_types",
"//packages/kbn-logging",
- "//packages/kbn-std",
- "//packages/kbn-utility-types",
+ "//packages/kbn-std:npm_module_types",
+ "//packages/kbn-utility-types:npm_module_types",
"//packages/kbn-i18n:npm_module_types",
"@npm//load-json-file",
"@npm//rxjs",
diff --git a/packages/kbn-dev-utils/BUILD.bazel b/packages/kbn-dev-utils/BUILD.bazel
index 89df1870a3cec..7d7ba29871ef0 100644
--- a/packages/kbn-dev-utils/BUILD.bazel
+++ b/packages/kbn-dev-utils/BUILD.bazel
@@ -66,7 +66,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//@babel/parser",
"@npm//@babel/types",
"@npm//@types/babel__core",
diff --git a/packages/kbn-docs-utils/BUILD.bazel b/packages/kbn-docs-utils/BUILD.bazel
index edfd3ee96c181..ad6b6687b7e1a 100644
--- a/packages/kbn-docs-utils/BUILD.bazel
+++ b/packages/kbn-docs-utils/BUILD.bazel
@@ -39,7 +39,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-config:npm_module_types",
"//packages/kbn-dev-utils:npm_module_types",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//ts-morph",
"@npm//@types/dedent",
"@npm//@types/jest",
diff --git a/packages/kbn-docs-utils/src/api_docs/build_api_docs_cli.ts b/packages/kbn-docs-utils/src/api_docs/build_api_docs_cli.ts
index 3c9137b260a3e..3e466f581702b 100644
--- a/packages/kbn-docs-utils/src/api_docs/build_api_docs_cli.ts
+++ b/packages/kbn-docs-utils/src/api_docs/build_api_docs_cli.ts
@@ -14,7 +14,7 @@ import { REPO_ROOT } from '@kbn/utils';
import { Project } from 'ts-morph';
import { writePluginDocs } from './mdx/write_plugin_mdx_docs';
-import { ApiDeclaration, PluginMetaInfo } from './types';
+import { ApiDeclaration, ApiStats, PluginMetaInfo } from './types';
import { findPlugins } from './find_plugins';
import { pathsOutsideScopes } from './build_api_declarations/utils';
import { getPluginApiMap } from './get_plugin_api_map';
@@ -22,6 +22,7 @@ import { writeDeprecationDocByApi } from './mdx/write_deprecations_doc_by_api';
import { writeDeprecationDocByPlugin } from './mdx/write_deprecations_doc_by_plugin';
import { writePluginDirectoryDoc } from './mdx/write_plugin_directory_doc';
import { collectApiStatsForPlugin } from './stats';
+import { countEslintDisableLine, EslintDisableCounts } from './count_eslint_disable';
function isStringArray(arr: unknown | string[]): arr is string[] {
return Array.isArray(arr) && arr.every((p) => typeof p === 'string');
@@ -70,7 +71,7 @@ export function runBuildApiDocsCli() {
}
const collectReferences = flags.references as boolean;
- const { pluginApiMap, missingApiItems, unReferencedDeprecations, referencedDeprecations } =
+ const { pluginApiMap, missingApiItems, unreferencedDeprecations, referencedDeprecations } =
getPluginApiMap(project, plugins, log, {
collectReferences,
pluginFilter: pluginFilter as string[],
@@ -78,17 +79,19 @@ export function runBuildApiDocsCli() {
const reporter = CiStatsReporter.fromEnv(log);
- const allPluginStats = plugins.reduce((acc, plugin) => {
+ const allPluginStats: { [key: string]: PluginMetaInfo & ApiStats & EslintDisableCounts } = {};
+ for (const plugin of plugins) {
const id = plugin.manifest.id;
const pluginApi = pluginApiMap[id];
- acc[id] = {
+
+ allPluginStats[id] = {
+ ...(await countEslintDisableLine(plugin.directory)),
...collectApiStatsForPlugin(pluginApi, missingApiItems, referencedDeprecations),
owner: plugin.manifest.owner,
description: plugin.manifest.description,
isPlugin: plugin.isPlugin,
};
- return acc;
- }, {} as { [key: string]: PluginMetaInfo });
+ }
writePluginDirectoryDoc(outputFolder, pluginApiMap, allPluginStats, log);
@@ -106,6 +109,12 @@ export function runBuildApiDocsCli() {
const pluginTeam = plugin.manifest.owner.name;
reporter.metrics([
+ {
+ id,
+ meta: { pluginTeam },
+ group: 'Unreferenced deprecated APIs',
+ value: unreferencedDeprecations[id] ? unreferencedDeprecations[id].length : 0,
+ },
{
id,
meta: { pluginTeam },
@@ -136,6 +145,24 @@ export function runBuildApiDocsCli() {
group: 'References to deprecated APIs',
value: pluginStats.deprecatedAPIsReferencedCount,
},
+ {
+ id,
+ meta: { pluginTeam },
+ group: 'ESLint disabled line counts',
+ value: pluginStats.eslintDisableLineCount,
+ },
+ {
+ id,
+ meta: { pluginTeam },
+ group: 'ESLint disabled in files',
+ value: pluginStats.eslintDisableFileCount,
+ },
+ {
+ id,
+ meta: { pluginTeam },
+ group: 'Total ESLint disabled count',
+ value: pluginStats.eslintDisableFileCount + pluginStats.eslintDisableLineCount,
+ },
]);
const getLink = (d: ApiDeclaration) =>
@@ -224,7 +251,7 @@ export function runBuildApiDocsCli() {
writeDeprecationDocByApi(
outputFolder,
referencedDeprecations,
- unReferencedDeprecations,
+ unreferencedDeprecations,
log
);
});
diff --git a/packages/kbn-docs-utils/src/api_docs/count_eslint_disable.test.ts b/packages/kbn-docs-utils/src/api_docs/count_eslint_disable.test.ts
new file mode 100644
index 0000000000000..964cdab963c9c
--- /dev/null
+++ b/packages/kbn-docs-utils/src/api_docs/count_eslint_disable.test.ts
@@ -0,0 +1,25 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import { countEslintDisableLine } from './count_eslint_disable';
+
+/* eslint-disable no-console */
+
+it('countEsLintDisableLine', async () => {
+ console.log('This is a test');
+
+ // eslint-disable-next-line prefer-const
+ let test: string = '';
+
+ const counts = await countEslintDisableLine(__filename);
+ expect(counts.eslintDisableLineCount).toBe(1);
+ expect(counts.eslintDisableFileCount).toBe(1);
+
+ // To avoid unused warning.
+ return test;
+});
diff --git a/packages/kbn-docs-utils/src/api_docs/count_eslint_disable.ts b/packages/kbn-docs-utils/src/api_docs/count_eslint_disable.ts
new file mode 100644
index 0000000000000..fa8aaa1ddbb95
--- /dev/null
+++ b/packages/kbn-docs-utils/src/api_docs/count_eslint_disable.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import { execSync } from 'child_process';
+
+export interface EslintDisableCounts {
+ eslintDisableLineCount: number;
+ eslintDisableFileCount: number;
+}
+
+export async function countEslintDisableLine(path: string): Promise {
+ const disableCountOutputs = await Promise.all([
+ execSync(`grep -rE 'eslint-disable-next-line|eslint-disable-line' ${path} | wc -l`),
+ execSync(`grep -rE 'eslint-disable ' ${path} | wc -l`),
+ ]);
+ const eslintDisableLineCount = Number.parseInt(disableCountOutputs[0].toString(), 10);
+
+ if (eslintDisableLineCount === undefined || isNaN(eslintDisableLineCount)) {
+ throw new Error(`Parsing ${disableCountOutputs[0]} failed to product a valid number`);
+ }
+
+ const eslintDisableFileCount = Number.parseInt(disableCountOutputs[1].toString(), 10);
+
+ if (eslintDisableFileCount === undefined || isNaN(eslintDisableFileCount)) {
+ throw new Error(`Parsing ${disableCountOutputs[1]} failed to product a valid number`);
+ }
+
+ return { eslintDisableFileCount, eslintDisableLineCount };
+}
diff --git a/packages/kbn-docs-utils/src/api_docs/get_plugin_api_map.ts b/packages/kbn-docs-utils/src/api_docs/get_plugin_api_map.ts
index 6d3285f31a189..5709ec2a2f639 100644
--- a/packages/kbn-docs-utils/src/api_docs/get_plugin_api_map.ts
+++ b/packages/kbn-docs-utils/src/api_docs/get_plugin_api_map.ts
@@ -15,6 +15,7 @@ import {
PluginApi,
PluginOrPackage,
ReferencedDeprecationsByPlugin,
+ UnreferencedDeprecationsByPlugin,
} from './types';
import { removeBrokenLinks } from './utils';
@@ -27,7 +28,7 @@ export function getPluginApiMap(
pluginApiMap: { [key: string]: PluginApi };
missingApiItems: MissingApiItemMap;
referencedDeprecations: ReferencedDeprecationsByPlugin;
- unReferencedDeprecations: ApiDeclaration[];
+ unreferencedDeprecations: UnreferencedDeprecationsByPlugin;
} {
log.debug('Building plugin API map, getting missing comments, and collecting deprecations...');
const pluginApiMap: { [key: string]: PluginApi } = {};
@@ -47,21 +48,21 @@ export function getPluginApiMap(
const missingApiItems: { [key: string]: { [key: string]: string[] } } = {};
const referencedDeprecations: ReferencedDeprecationsByPlugin = {};
- const unReferencedDeprecations: ApiDeclaration[] = [];
+ const unreferencedDeprecations: UnreferencedDeprecationsByPlugin = {};
plugins.forEach((plugin) => {
const id = plugin.manifest.id;
const pluginApi = pluginApiMap[id];
removeBrokenLinks(pluginApi, missingApiItems, pluginApiMap, log);
- collectDeprecations(pluginApi, referencedDeprecations, unReferencedDeprecations);
+ collectDeprecations(pluginApi, referencedDeprecations, unreferencedDeprecations);
});
- return { pluginApiMap, missingApiItems, referencedDeprecations, unReferencedDeprecations };
+ return { pluginApiMap, missingApiItems, referencedDeprecations, unreferencedDeprecations };
}
function collectDeprecations(
pluginApi: PluginApi,
referencedDeprecations: ReferencedDeprecationsByPlugin,
- unReferencedDeprecations: ApiDeclaration[]
+ unReferencedDeprecations: UnreferencedDeprecationsByPlugin
) {
(['client', 'common', 'server'] as Array<'client' | 'server' | 'common'>).forEach((scope) => {
pluginApi[scope].forEach((api) => {
@@ -73,7 +74,7 @@ function collectDeprecations(
function collectDeprecationsForApi(
api: ApiDeclaration,
referencedDeprecations: ReferencedDeprecationsByPlugin,
- unReferencedDeprecations: ApiDeclaration[]
+ unreferencedDeprecations: UnreferencedDeprecationsByPlugin
) {
if ((api.tags || []).find((tag) => tag === 'deprecated')) {
if (api.references && api.references.length > 0) {
@@ -87,12 +88,15 @@ function collectDeprecationsForApi(
});
});
} else {
- unReferencedDeprecations.push(api);
+ if (unreferencedDeprecations[api.parentPluginId] === undefined) {
+ unreferencedDeprecations[api.parentPluginId] = [];
+ }
+ unreferencedDeprecations[api.parentPluginId].push(api);
}
}
if (api.children) {
api.children.forEach((child) =>
- collectDeprecationsForApi(child, referencedDeprecations, unReferencedDeprecations)
+ collectDeprecationsForApi(child, referencedDeprecations, unreferencedDeprecations)
);
}
}
diff --git a/packages/kbn-docs-utils/src/api_docs/mdx/write_deprecations_doc_by_api.ts b/packages/kbn-docs-utils/src/api_docs/mdx/write_deprecations_doc_by_api.ts
index 9681c086777d9..28e149bd8e272 100644
--- a/packages/kbn-docs-utils/src/api_docs/mdx/write_deprecations_doc_by_api.ts
+++ b/packages/kbn-docs-utils/src/api_docs/mdx/write_deprecations_doc_by_api.ts
@@ -11,17 +11,17 @@ import dedent from 'dedent';
import fs from 'fs';
import Path from 'path';
import {
- ApiDeclaration,
ApiReference,
ReferencedDeprecationsByAPI,
ReferencedDeprecationsByPlugin,
+ UnreferencedDeprecationsByPlugin,
} from '../types';
import { getPluginApiDocId } from '../utils';
export function writeDeprecationDocByApi(
folder: string,
deprecationsByPlugin: ReferencedDeprecationsByPlugin,
- unReferencedDeprecations: ApiDeclaration[],
+ unReferencedDeprecations: UnreferencedDeprecationsByPlugin,
log: ToolingLog
): void {
const deprecationReferencesByApi = Object.values(deprecationsByPlugin).reduce(
@@ -92,14 +92,18 @@ ${tableMdx}
Safe to remove.
-| Deprecated API |
-| ---------------|
-${unReferencedDeprecations
- .map(
- (api) =>
- `| |`
+| Deprecated API | Plugin Id |
+| ---------------|------------|
+${Object.values(unReferencedDeprecations)
+ .map((apis) =>
+ apis
+ .map(
+ (api) =>
+ `| | ${api.parentPluginId} | `
+ )
+ .join('\n')
)
.join('\n')}
diff --git a/packages/kbn-docs-utils/src/api_docs/stats.ts b/packages/kbn-docs-utils/src/api_docs/stats.ts
index 8019f186f1426..238adff068a5d 100644
--- a/packages/kbn-docs-utils/src/api_docs/stats.ts
+++ b/packages/kbn-docs-utils/src/api_docs/stats.ts
@@ -25,6 +25,7 @@ export function collectApiStatsForPlugin(
isAnyType: [],
noReferences: [],
deprecatedAPIsReferencedCount: 0,
+ unreferencedDeprecatedApisCount: 0,
apiCount: countApiForPlugin(doc),
missingExports: Object.values(missingApiItems[doc.id] ?? {}).length,
};
diff --git a/packages/kbn-docs-utils/src/api_docs/types.ts b/packages/kbn-docs-utils/src/api_docs/types.ts
index f494c3b433d18..08f48d320d824 100644
--- a/packages/kbn-docs-utils/src/api_docs/types.ts
+++ b/packages/kbn-docs-utils/src/api_docs/types.ts
@@ -234,6 +234,11 @@ export interface ReferencedDeprecationsByPlugin {
[key: string]: Array<{ deprecatedApi: ApiDeclaration; ref: ApiReference }>;
}
+export interface UnreferencedDeprecationsByPlugin {
+ // Key is the plugin id.
+ [key: string]: ApiDeclaration[];
+}
+
// A mapping of deprecated API id to the places that are still referencing it.
export interface ReferencedDeprecationsByAPI {
[key: string]: { deprecatedApi: ApiDeclaration; references: ApiReference[] };
@@ -246,6 +251,7 @@ export interface ApiStats {
apiCount: number;
missingExports: number;
deprecatedAPIsReferencedCount: number;
+ unreferencedDeprecatedApisCount: number;
}
export type PluginMetaInfo = ApiStats & {
diff --git a/packages/kbn-es-archiver/BUILD.bazel b/packages/kbn-es-archiver/BUILD.bazel
index da8aaf913ab67..06a0ca02da04a 100644
--- a/packages/kbn-es-archiver/BUILD.bazel
+++ b/packages/kbn-es-archiver/BUILD.bazel
@@ -46,7 +46,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-test",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//@elastic/elasticsearch",
"@npm//aggregate-error",
"@npm//globby",
diff --git a/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.test.ts b/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.test.ts
index 2590074a25411..edcf5c32f1085 100644
--- a/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.test.ts
+++ b/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.test.ts
@@ -28,7 +28,6 @@ interface SearchResponses {
total: number;
hits: Array<{
_index: string;
- _type: string;
_id: string;
_source: Record;
}>;
@@ -60,9 +59,9 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
hits: {
total: 5,
hits: [
- { _index: 'foo', _type: '_doc', _id: '0', _source: {} },
- { _index: 'foo', _type: '_doc', _id: '1', _source: {} },
- { _index: 'foo', _type: '_doc', _id: '2', _source: {} },
+ { _index: 'foo', _id: '0', _source: {} },
+ { _index: 'foo', _id: '1', _source: {} },
+ { _index: 'foo', _id: '2', _source: {} },
],
},
},
@@ -72,8 +71,8 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
hits: {
total: 5,
hits: [
- { _index: 'foo', _type: '_doc', _id: '3', _source: {} },
- { _index: 'foo', _type: '_doc', _id: '4', _source: {} },
+ { _index: 'foo', _id: '3', _source: {} },
+ { _index: 'foo', _id: '4', _source: {} },
],
},
},
@@ -85,8 +84,8 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
hits: {
total: 2,
hits: [
- { _index: 'bar', _type: '_doc', _id: '0', _source: {} },
- { _index: 'bar', _type: '_doc', _id: '1', _source: {} },
+ { _index: 'bar', _id: '0', _source: {} },
+ { _index: 'bar', _id: '1', _source: {} },
],
},
},
@@ -109,7 +108,6 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
createMapStream((record: any) => {
expect(record).toHaveProperty('type', 'doc');
expect(record.value.source).toEqual({});
- expect(record.value.type).toBe('_doc');
expect(record.value.index).toMatch(/^(foo|bar)$/);
expect(record.value.id).toMatch(/^\d+$/);
return `${record.value.index}:${record.value.id}`;
@@ -221,7 +219,7 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
describe('keepIndexNames', () => {
it('changes .kibana* index names if keepIndexNames is not enabled', async () => {
- const hits = [{ _index: '.kibana_7.16.0_001', _type: '_doc', _id: '0', _source: {} }];
+ const hits = [{ _index: '.kibana_7.16.0_001', _id: '0', _source: {} }];
const responses = {
['.kibana_7.16.0_001']: [{ body: { hits: { hits, total: hits.length } } }],
};
@@ -245,7 +243,7 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
});
it('does not change non-.kibana* index names if keepIndexNames is not enabled', async () => {
- const hits = [{ _index: '.foo', _type: '_doc', _id: '0', _source: {} }];
+ const hits = [{ _index: '.foo', _id: '0', _source: {} }];
const responses = {
['.foo']: [{ body: { hits: { hits, total: hits.length } } }],
};
@@ -269,7 +267,7 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
});
it('does not change .kibana* index names if keepIndexNames is enabled', async () => {
- const hits = [{ _index: '.kibana_7.16.0_001', _type: '_doc', _id: '0', _source: {} }];
+ const hits = [{ _index: '.kibana_7.16.0_001', _id: '0', _source: {} }];
const responses = {
['.kibana_7.16.0_001']: [{ body: { hits: { hits, total: hits.length } } }],
};
diff --git a/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.ts b/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.ts
index b1b713f6f3cbf..40907bd0af238 100644
--- a/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.ts
+++ b/packages/kbn-es-archiver/src/lib/docs/generate_doc_records_stream.ts
@@ -65,7 +65,6 @@ export function createGenerateDocRecordsStream({
// when it is loaded it can skip migration, if possible
index:
hit._index.startsWith('.kibana') && !keepIndexNames ? '.kibana_1' : hit._index,
- type: hit._type,
id: hit._id,
source: hit._source,
},
diff --git a/packages/kbn-es-query/BUILD.bazel b/packages/kbn-es-query/BUILD.bazel
index 86f3d3ccc13a8..84ee5584ceabe 100644
--- a/packages/kbn-es-query/BUILD.bazel
+++ b/packages/kbn-es-query/BUILD.bazel
@@ -41,7 +41,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
- "//packages/kbn-utility-types",
+ "//packages/kbn-utility-types:npm_module_types",
"//packages/kbn-i18n:npm_module_types",
"@npm//@elastic/elasticsearch",
"@npm//tslib",
diff --git a/packages/kbn-es-query/src/es_query/build_es_query.ts b/packages/kbn-es-query/src/es_query/build_es_query.ts
index 42fa26ac50a95..0ae0b8799b026 100644
--- a/packages/kbn-es-query/src/es_query/build_es_query.ts
+++ b/packages/kbn-es-query/src/es_query/build_es_query.ts
@@ -12,7 +12,7 @@ import { buildQueryFromKuery } from './from_kuery';
import { buildQueryFromFilters } from './from_filters';
import { buildQueryFromLucene } from './from_lucene';
import { Filter, Query } from '../filters';
-import { BoolQuery, IndexPatternBase } from './types';
+import { BoolQuery, DataViewBase } from './types';
import { KueryQueryOptions } from '../kuery';
/**
@@ -42,7 +42,7 @@ function removeMatchAll(filters: T[]) {
* @public
*/
export function buildEsQuery(
- indexPattern: IndexPatternBase | undefined,
+ indexPattern: DataViewBase | undefined,
queries: Query | Query[],
filters: Filter | Filter[],
config: EsQueryConfig = {
diff --git a/packages/kbn-es-query/src/es_query/filter_matches_index.test.ts b/packages/kbn-es-query/src/es_query/filter_matches_index.test.ts
index bf4e1291ca438..a6e3e27de2c59 100644
--- a/packages/kbn-es-query/src/es_query/filter_matches_index.test.ts
+++ b/packages/kbn-es-query/src/es_query/filter_matches_index.test.ts
@@ -8,12 +8,12 @@
import { Filter } from '../filters';
import { filterMatchesIndex } from './filter_matches_index';
-import { IndexPatternBase } from './types';
+import { DataViewBase } from './types';
describe('filterMatchesIndex', () => {
it('should return true if the filter has no meta', () => {
const filter = {} as Filter;
- const indexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as IndexPatternBase;
+ const indexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as DataViewBase;
expect(filterMatchesIndex(filter, indexPattern)).toBe(true);
});
@@ -26,35 +26,35 @@ describe('filterMatchesIndex', () => {
it('should return true if the filter key matches a field name', () => {
const filter = { meta: { index: 'foo', key: 'bar' } } as Filter;
- const indexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as IndexPatternBase;
+ const indexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as DataViewBase;
expect(filterMatchesIndex(filter, indexPattern)).toBe(true);
});
it('should return true if custom filter for the same index is passed', () => {
const filter = { meta: { index: 'foo', key: 'bar', type: 'custom' } } as Filter;
- const indexPattern = { id: 'foo', fields: [{ name: 'bara' }] } as IndexPatternBase;
+ const indexPattern = { id: 'foo', fields: [{ name: 'bara' }] } as DataViewBase;
expect(filterMatchesIndex(filter, indexPattern)).toBe(true);
});
it('should return false if custom filter for a different index is passed', () => {
const filter = { meta: { index: 'foo', key: 'bar', type: 'custom' } } as Filter;
- const indexPattern = { id: 'food', fields: [{ name: 'bara' }] } as IndexPatternBase;
+ const indexPattern = { id: 'food', fields: [{ name: 'bara' }] } as DataViewBase;
expect(filterMatchesIndex(filter, indexPattern)).toBe(false);
});
it('should return false if the filter key does not match a field name', () => {
const filter = { meta: { index: 'foo', key: 'baz' } } as Filter;
- const indexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as IndexPatternBase;
+ const indexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as DataViewBase;
expect(filterMatchesIndex(filter, indexPattern)).toBe(false);
});
it('should return true if the filter has meta without a key', () => {
const filter = { meta: { index: 'foo' } } as Filter;
- const indexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as IndexPatternBase;
+ const indexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as DataViewBase;
expect(filterMatchesIndex(filter, indexPattern)).toBe(true);
});
diff --git a/packages/kbn-es-query/src/es_query/filter_matches_index.ts b/packages/kbn-es-query/src/es_query/filter_matches_index.ts
index 541298ee0e19b..aac899579c3a6 100644
--- a/packages/kbn-es-query/src/es_query/filter_matches_index.ts
+++ b/packages/kbn-es-query/src/es_query/filter_matches_index.ts
@@ -7,7 +7,7 @@
*/
import { Filter } from '../filters';
-import { IndexPatternBase } from '..';
+import { DataViewBase } from '..';
/*
* TODO: We should base this on something better than `filter.meta.key`. We should probably modify
@@ -16,7 +16,7 @@ import { IndexPatternBase } from '..';
*
* @internal
*/
-export function filterMatchesIndex(filter: Filter, indexPattern?: IndexPatternBase | null) {
+export function filterMatchesIndex(filter: Filter, indexPattern?: DataViewBase | null) {
if (!filter.meta?.key || !indexPattern) {
return true;
}
diff --git a/packages/kbn-es-query/src/es_query/from_filters.ts b/packages/kbn-es-query/src/es_query/from_filters.ts
index 28d8653246e3d..e018cdc3404ad 100644
--- a/packages/kbn-es-query/src/es_query/from_filters.ts
+++ b/packages/kbn-es-query/src/es_query/from_filters.ts
@@ -11,7 +11,7 @@ import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { migrateFilter } from './migrate_filter';
import { filterMatchesIndex } from './filter_matches_index';
import { Filter, cleanFilter, isFilterDisabled } from '../filters';
-import { BoolQuery, IndexPatternBase } from './types';
+import { BoolQuery, DataViewBase } from './types';
import { handleNestedFilter } from './handle_nested_filter';
/**
@@ -48,7 +48,7 @@ const translateToQuery = (filter: Partial): estypes.QueryDslQueryContain
*/
export const buildQueryFromFilters = (
filters: Filter[] = [],
- indexPattern: IndexPatternBase | undefined,
+ indexPattern: DataViewBase | undefined,
ignoreFilterIfFieldNotInIndex: boolean = false
): BoolQuery => {
filters = filters.filter((filter) => filter && !isFilterDisabled(filter));
diff --git a/packages/kbn-es-query/src/es_query/from_kuery.ts b/packages/kbn-es-query/src/es_query/from_kuery.ts
index 151ea6a89bb5e..3bb5d45fc53e3 100644
--- a/packages/kbn-es-query/src/es_query/from_kuery.ts
+++ b/packages/kbn-es-query/src/es_query/from_kuery.ts
@@ -9,11 +9,11 @@
import { SerializableRecord } from '@kbn/utility-types';
import { Query } from '../filters';
import { fromKueryExpression, toElasticsearchQuery, nodeTypes, KueryNode } from '../kuery';
-import { BoolQuery, IndexPatternBase } from './types';
+import { BoolQuery, DataViewBase } from './types';
/** @internal */
export function buildQueryFromKuery(
- indexPattern: IndexPatternBase | undefined,
+ indexPattern: DataViewBase | undefined,
queries: Query[] = [],
allowLeadingWildcards: boolean = false,
dateFormatTZ?: string,
@@ -27,7 +27,7 @@ export function buildQueryFromKuery(
}
function buildQuery(
- indexPattern: IndexPatternBase | undefined,
+ indexPattern: DataViewBase | undefined,
queryASTs: KueryNode[],
config: SerializableRecord = {}
): BoolQuery {
diff --git a/packages/kbn-es-query/src/es_query/handle_nested_filter.ts b/packages/kbn-es-query/src/es_query/handle_nested_filter.ts
index 08c177f205771..14138ca44d310 100644
--- a/packages/kbn-es-query/src/es_query/handle_nested_filter.ts
+++ b/packages/kbn-es-query/src/es_query/handle_nested_filter.ts
@@ -7,11 +7,11 @@
*/
import { getFilterField, cleanFilter, Filter } from '../filters';
-import { IndexPatternBase } from './types';
+import { DataViewBase } from './types';
import { getDataViewFieldSubtypeNested } from '../utils';
/** @internal */
-export const handleNestedFilter = (filter: Filter, indexPattern?: IndexPatternBase) => {
+export const handleNestedFilter = (filter: Filter, indexPattern?: DataViewBase) => {
if (!indexPattern) return filter;
const fieldName = getFilterField(filter);
diff --git a/packages/kbn-es-query/src/es_query/index.ts b/packages/kbn-es-query/src/es_query/index.ts
index 192834c9fd485..399df50e35058 100644
--- a/packages/kbn-es-query/src/es_query/index.ts
+++ b/packages/kbn-es-query/src/es_query/index.ts
@@ -13,8 +13,6 @@ export { buildQueryFromFilters } from './from_filters';
export { luceneStringToDsl } from './lucene_string_to_dsl';
export { decorateQuery } from './decorate_query';
export type {
- IndexPatternBase,
- IndexPatternFieldBase,
IFieldSubType,
BoolQuery,
DataViewBase,
diff --git a/packages/kbn-es-query/src/es_query/migrate_filter.ts b/packages/kbn-es-query/src/es_query/migrate_filter.ts
index 313121e402c1a..383b06d4405a7 100644
--- a/packages/kbn-es-query/src/es_query/migrate_filter.ts
+++ b/packages/kbn-es-query/src/es_query/migrate_filter.ts
@@ -9,7 +9,7 @@
import { get, omit } from 'lodash';
import { getConvertedValueForField } from '../filters';
import { Filter } from '../filters';
-import { IndexPatternBase } from './types';
+import { DataViewBase } from './types';
/** @internal */
export interface DeprecatedMatchPhraseFilter extends Filter {
@@ -32,7 +32,7 @@ function isDeprecatedMatchPhraseFilter(filter: Filter): filter is DeprecatedMatc
}
/** @internal */
-export function migrateFilter(filter: Filter, indexPattern?: IndexPatternBase) {
+export function migrateFilter(filter: Filter, indexPattern?: DataViewBase) {
if (isDeprecatedMatchPhraseFilter(filter)) {
// @ts-ignore
const match = filter.match || filter.query.match;
diff --git a/packages/kbn-es-query/src/es_query/types.ts b/packages/kbn-es-query/src/es_query/types.ts
index 9e9888f5d14f6..f746e652d2183 100644
--- a/packages/kbn-es-query/src/es_query/types.ts
+++ b/packages/kbn-es-query/src/es_query/types.ts
@@ -53,11 +53,6 @@ export interface DataViewFieldBase {
scripted?: boolean;
}
-/**
- * @deprecated Use DataViewField instead. All index pattern interfaces were renamed.
- */
-export type IndexPatternFieldBase = DataViewFieldBase;
-
/**
* A base interface for an index pattern
* @public
@@ -68,11 +63,6 @@ export interface DataViewBase {
title: string;
}
-/**
- * @deprecated Use DataViewBase instead. All index pattern interfaces were renamed.
- */
-export type IndexPatternBase = DataViewBase;
-
export interface BoolQuery {
must: estypes.QueryDslQueryContainer[];
must_not: estypes.QueryDslQueryContainer[];
diff --git a/packages/kbn-es-query/src/filters/build_filters/build_filters.ts b/packages/kbn-es-query/src/filters/build_filters/build_filters.ts
index 5d144199f5b94..368c9e779f8e3 100644
--- a/packages/kbn-es-query/src/filters/build_filters/build_filters.ts
+++ b/packages/kbn-es-query/src/filters/build_filters/build_filters.ts
@@ -14,7 +14,7 @@ import { buildPhrasesFilter } from './phrases_filter';
import { buildRangeFilter, RangeFilterParams } from './range_filter';
import { buildExistsFilter } from './exists_filter';
-import type { IndexPatternFieldBase, IndexPatternBase } from '../../es_query';
+import type { DataViewFieldBase, DataViewBase } from '../../es_query';
import { FilterStateStore } from './types';
/**
@@ -32,8 +32,8 @@ import { FilterStateStore } from './types';
* @public
*/
export function buildFilter(
- indexPattern: IndexPatternBase,
- field: IndexPatternFieldBase,
+ indexPattern: DataViewBase,
+ field: DataViewFieldBase,
type: FILTERS,
negate: boolean,
disabled: boolean,
@@ -52,8 +52,8 @@ export function buildFilter(
}
function buildBaseFilter(
- indexPattern: IndexPatternBase,
- field: IndexPatternFieldBase,
+ indexPattern: DataViewBase,
+ field: DataViewFieldBase,
type: FILTERS,
params: Serializable
): Filter {
diff --git a/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts b/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts
index 897ebc06a6fc9..23210093fc8a8 100644
--- a/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts
+++ b/packages/kbn-es-query/src/filters/build_filters/exists_filter.ts
@@ -7,7 +7,7 @@
*/
import { has } from 'lodash';
-import type { IndexPatternFieldBase, IndexPatternBase } from '../../es_query';
+import type { DataViewFieldBase, DataViewBase } from '../../es_query';
import type { Filter, FilterMeta } from './types';
/** @public */
@@ -44,7 +44,7 @@ export const getExistsFilterField = (filter: ExistsFilter) => {
*
* @public
*/
-export const buildExistsFilter = (field: IndexPatternFieldBase, indexPattern: IndexPatternBase) => {
+export const buildExistsFilter = (field: DataViewFieldBase, indexPattern: DataViewBase) => {
return {
meta: {
index: indexPattern.id,
diff --git a/packages/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts b/packages/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts
index 9f0adc353b132..6024df43fbf6c 100644
--- a/packages/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts
+++ b/packages/kbn-es-query/src/filters/build_filters/get_converted_value_for_field.ts
@@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
-import { IndexPatternFieldBase } from '../../es_query';
+import { DataViewFieldBase } from '../../es_query';
/**
* @internal
@@ -18,7 +18,7 @@ import { IndexPatternFieldBase } from '../../es_query';
* https://github.com/elastic/elasticsearch/pull/22201
**/
export const getConvertedValueForField = (
- field: IndexPatternFieldBase,
+ field: DataViewFieldBase,
value: string | boolean | number
) => {
if (typeof value !== 'boolean' && field.type === 'boolean') {
diff --git a/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts b/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts
index 525463c9de246..752dc8b338661 100644
--- a/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts
+++ b/packages/kbn-es-query/src/filters/build_filters/phrase_filter.ts
@@ -8,7 +8,7 @@
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { get, has, isPlainObject } from 'lodash';
import type { Filter, FilterMeta } from './types';
-import type { IndexPatternFieldBase, IndexPatternBase } from '../../es_query';
+import type { DataViewFieldBase, DataViewBase } from '../../es_query';
import { getConvertedValueForField } from './get_converted_value_for_field';
export type PhraseFilterValue = string | number | boolean;
@@ -93,9 +93,9 @@ export const getPhraseFilterValue = (
* @public
*/
export const buildPhraseFilter = (
- field: IndexPatternFieldBase,
+ field: DataViewFieldBase,
value: PhraseFilterValue,
- indexPattern: IndexPatternBase
+ indexPattern: DataViewBase
): PhraseFilter | ScriptedPhraseFilter => {
const convertedValue = getConvertedValueForField(field, value);
@@ -117,7 +117,7 @@ export const buildPhraseFilter = (
};
/** @internal */
-export const getPhraseScript = (field: IndexPatternFieldBase, value: PhraseFilterValue) => {
+export const getPhraseScript = (field: DataViewFieldBase, value: PhraseFilterValue) => {
const convertedValue = getConvertedValueForField(field, value);
const script = buildInlineScriptForPhraseFilter(field);
@@ -141,7 +141,7 @@ export const getPhraseScript = (field: IndexPatternFieldBase, value: PhraseFilte
* @param {object} scriptedField A Field object representing a scripted field
* @returns {string} The inline script string
*/
-export const buildInlineScriptForPhraseFilter = (scriptedField: IndexPatternFieldBase) => {
+export const buildInlineScriptForPhraseFilter = (scriptedField: DataViewFieldBase) => {
// We must wrap painless scripts in a lambda in case they're more than a simple expression
if (scriptedField.lang === 'painless') {
return (
diff --git a/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts b/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts
index fe895bbd60a74..2e2b954012867 100644
--- a/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts
+++ b/packages/kbn-es-query/src/filters/build_filters/phrases_filter.ts
@@ -9,7 +9,7 @@
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { Filter, FilterMeta, FILTERS } from './types';
import { getPhraseScript, PhraseFilterValue } from './phrase_filter';
-import type { IndexPatternFieldBase, IndexPatternBase } from '../../es_query';
+import type { DataViewFieldBase, DataViewBase } from '../../es_query';
export type PhrasesFilterMeta = FilterMeta & {
params: PhraseFilterValue[]; // The unformatted values
@@ -48,9 +48,9 @@ export const getPhrasesFilterField = (filter: PhrasesFilter) => {
* @public
*/
export const buildPhrasesFilter = (
- field: IndexPatternFieldBase,
+ field: DataViewFieldBase,
params: PhraseFilterValue[],
- indexPattern: IndexPatternBase
+ indexPattern: DataViewBase
) => {
const index = indexPattern.id;
const type = FILTERS.PHRASES;
diff --git a/packages/kbn-es-query/src/filters/build_filters/range_filter.test.ts b/packages/kbn-es-query/src/filters/build_filters/range_filter.test.ts
index de9b6c112bd3b..8d5d8d20c4534 100644
--- a/packages/kbn-es-query/src/filters/build_filters/range_filter.test.ts
+++ b/packages/kbn-es-query/src/filters/build_filters/range_filter.test.ts
@@ -7,7 +7,7 @@
*/
import { each } from 'lodash';
-import { IndexPatternBase, IndexPatternFieldBase } from '../../es_query';
+import { DataViewBase, DataViewFieldBase } from '../../es_query';
import { fields, getField } from '../stubs';
import {
buildRangeFilter,
@@ -17,12 +17,12 @@ import {
} from './range_filter';
describe('Range filter builder', () => {
- let indexPattern: IndexPatternBase;
+ let indexPattern: DataViewBase;
beforeEach(() => {
indexPattern = {
id: 'id',
- } as IndexPatternBase;
+ } as DataViewBase;
});
it('should be a function', () => {
@@ -145,7 +145,7 @@ describe('Range filter builder', () => {
});
describe('when given params where one side is infinite', () => {
- let field: IndexPatternFieldBase;
+ let field: DataViewFieldBase;
let filter: ScriptedRangeFilter;
beforeEach(() => {
@@ -179,7 +179,7 @@ describe('Range filter builder', () => {
});
describe('when given params where both sides are infinite', () => {
- let field: IndexPatternFieldBase;
+ let field: DataViewFieldBase;
let filter: ScriptedRangeFilter;
beforeEach(() => {
@@ -209,9 +209,9 @@ describe('Range filter builder', () => {
});
describe('getRangeFilterField', function () {
- const indexPattern: IndexPatternBase = {
+ const indexPattern: DataViewBase = {
fields,
- } as unknown as IndexPatternBase;
+ } as unknown as DataViewBase;
test('should return the name of the field a range query is targeting', () => {
const field = indexPattern.fields.find((patternField) => patternField.name === 'bytes');
diff --git a/packages/kbn-es-query/src/filters/build_filters/range_filter.ts b/packages/kbn-es-query/src/filters/build_filters/range_filter.ts
index 51e8fefe95f70..f3a91e8792319 100644
--- a/packages/kbn-es-query/src/filters/build_filters/range_filter.ts
+++ b/packages/kbn-es-query/src/filters/build_filters/range_filter.ts
@@ -8,7 +8,7 @@
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { map, reduce, mapValues, has, get, keys, pickBy } from 'lodash';
import type { Filter, FilterMeta } from './types';
-import type { IndexPatternBase, IndexPatternFieldBase } from '../../es_query';
+import type { DataViewBase, DataViewFieldBase } from '../../es_query';
const OPERANDS_IN_RANGE = 2;
@@ -128,9 +128,9 @@ const formatValue = (params: any[]) =>
* @public
*/
export const buildRangeFilter = (
- field: IndexPatternFieldBase,
+ field: DataViewFieldBase,
params: RangeFilterParams,
- indexPattern: IndexPatternBase,
+ indexPattern: DataViewBase,
formattedValue?: string
): RangeFilter | ScriptedRangeFilter | MatchAllRangeFilter => {
params = mapValues(params, (value: any) => (field.type === 'number' ? parseFloat(value) : value));
@@ -174,7 +174,7 @@ export const buildRangeFilter = (
/**
* @internal
*/
-export const getRangeScript = (field: IndexPatternFieldBase, params: RangeFilterParams) => {
+export const getRangeScript = (field: DataViewFieldBase, params: RangeFilterParams) => {
const knownParams: estypes.InlineScript['params'] = mapValues(
pickBy(params, (val, key) => key in operators),
(value) => (field.type === 'number' && typeof value === 'string' ? parseFloat(value) : value)
diff --git a/packages/kbn-es-query/src/filters/helpers/dedup_filters.test.ts b/packages/kbn-es-query/src/filters/helpers/dedup_filters.test.ts
index 8c8f394ffc190..c759c143e4ed4 100644
--- a/packages/kbn-es-query/src/filters/helpers/dedup_filters.test.ts
+++ b/packages/kbn-es-query/src/filters/helpers/dedup_filters.test.ts
@@ -6,24 +6,24 @@
* Side Public License, v 1.
*/
-import { IndexPatternBase, IndexPatternFieldBase } from '../../es_query';
+import { DataViewBase, DataViewFieldBase } from '../../es_query';
import { buildQueryFilter, buildRangeFilter, Filter, FilterStateStore } from '../build_filters';
import { dedupFilters } from './dedup_filters';
describe('filter manager utilities', () => {
- let indexPattern: IndexPatternBase;
+ let indexPattern: DataViewBase;
beforeEach(() => {
indexPattern = {
id: 'index',
- } as IndexPatternBase;
+ } as DataViewBase;
});
describe('dedupFilters(existing, filters)', () => {
test('should return only filters which are not in the existing', () => {
const existing: Filter[] = [
buildRangeFilter(
- { name: 'bytes' } as IndexPatternFieldBase,
+ { name: 'bytes' } as DataViewFieldBase,
{ from: 0, to: 1024 },
indexPattern,
''
@@ -32,7 +32,7 @@ describe('filter manager utilities', () => {
];
const filters: Filter[] = [
buildRangeFilter(
- { name: 'bytes' } as IndexPatternFieldBase,
+ { name: 'bytes' } as DataViewFieldBase,
{ from: 1024, to: 2048 },
indexPattern,
''
@@ -48,7 +48,7 @@ describe('filter manager utilities', () => {
test('should ignore the disabled attribute when comparing ', () => {
const existing: Filter[] = [
buildRangeFilter(
- { name: 'bytes' } as IndexPatternFieldBase,
+ { name: 'bytes' } as DataViewFieldBase,
{ from: 0, to: 1024 },
indexPattern,
''
@@ -60,7 +60,7 @@ describe('filter manager utilities', () => {
];
const filters: Filter[] = [
buildRangeFilter(
- { name: 'bytes' } as IndexPatternFieldBase,
+ { name: 'bytes' } as DataViewFieldBase,
{ from: 1024, to: 2048 },
indexPattern,
''
@@ -76,7 +76,7 @@ describe('filter manager utilities', () => {
test('should ignore $state attribute', () => {
const existing: Filter[] = [
buildRangeFilter(
- { name: 'bytes' } as IndexPatternFieldBase,
+ { name: 'bytes' } as DataViewFieldBase,
{ from: 0, to: 1024 },
indexPattern,
''
@@ -88,7 +88,7 @@ describe('filter manager utilities', () => {
];
const filters: Filter[] = [
buildRangeFilter(
- { name: 'bytes' } as IndexPatternFieldBase,
+ { name: 'bytes' } as DataViewFieldBase,
{ from: 1024, to: 2048 },
indexPattern,
''
diff --git a/packages/kbn-es-query/src/filters/stubs/fields.mocks.ts b/packages/kbn-es-query/src/filters/stubs/fields.mocks.ts
index 2507293b87477..63cb937c1aef3 100644
--- a/packages/kbn-es-query/src/filters/stubs/fields.mocks.ts
+++ b/packages/kbn-es-query/src/filters/stubs/fields.mocks.ts
@@ -6,12 +6,12 @@
* Side Public License, v 1.
*/
-import { IndexPatternFieldBase } from '../..';
+import { DataViewFieldBase } from '../..';
/**
* Base index pattern fields for testing
*/
-export const fields: IndexPatternFieldBase[] = [
+export const fields: DataViewFieldBase[] = [
{
name: 'bytes',
type: 'number',
diff --git a/packages/kbn-es-query/src/kuery/ast/ast.ts b/packages/kbn-es-query/src/kuery/ast/ast.ts
index 683de9f193901..ed1b9b90b4cf6 100644
--- a/packages/kbn-es-query/src/kuery/ast/ast.ts
+++ b/packages/kbn-es-query/src/kuery/ast/ast.ts
@@ -13,7 +13,7 @@ import { KQLSyntaxError } from '../kuery_syntax_error';
import { KueryNode, KueryParseOptions, KueryQueryOptions } from '../types';
import { parse as parseKuery } from '../grammar';
-import { IndexPatternBase } from '../..';
+import { DataViewBase } from '../..';
const fromExpression = (
expression: string | estypes.QueryDslQueryContainer,
@@ -66,7 +66,7 @@ export const fromKueryExpression = (
*/
export const toElasticsearchQuery = (
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config: KueryQueryOptions = {},
context?: Record
): JsonObject => {
diff --git a/packages/kbn-es-query/src/kuery/functions/and.ts b/packages/kbn-es-query/src/kuery/functions/and.ts
index 98788ac07b715..a6a5f530c0a5f 100644
--- a/packages/kbn-es-query/src/kuery/functions/and.ts
+++ b/packages/kbn-es-query/src/kuery/functions/and.ts
@@ -7,7 +7,7 @@
*/
import * as ast from '../ast';
-import { IndexPatternBase, KueryNode, KueryQueryOptions } from '../..';
+import { DataViewBase, KueryNode, KueryQueryOptions } from '../..';
export function buildNodeParams(children: KueryNode[]) {
return {
@@ -17,7 +17,7 @@ export function buildNodeParams(children: KueryNode[]) {
export function toElasticsearchQuery(
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config: KueryQueryOptions = {},
context: Record = {}
) {
diff --git a/packages/kbn-es-query/src/kuery/functions/exists.ts b/packages/kbn-es-query/src/kuery/functions/exists.ts
index a0d779c4c7d49..4d0de05adb917 100644
--- a/packages/kbn-es-query/src/kuery/functions/exists.ts
+++ b/packages/kbn-es-query/src/kuery/functions/exists.ts
@@ -7,7 +7,7 @@
*/
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
-import { IndexPatternFieldBase, IndexPatternBase, KueryNode, KueryQueryOptions } from '../..';
+import { DataViewFieldBase, DataViewBase, KueryNode, KueryQueryOptions } from '../..';
import * as literal from '../node_types/literal';
export function buildNodeParams(fieldName: string) {
@@ -18,7 +18,7 @@ export function buildNodeParams(fieldName: string) {
export function toElasticsearchQuery(
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config: KueryQueryOptions = {},
context: Record = {}
): estypes.QueryDslQueryContainer {
@@ -30,7 +30,7 @@ export function toElasticsearchQuery(
value: context?.nested ? `${context.nested.path}.${fieldNameArg.value}` : fieldNameArg.value,
};
const fieldName = literal.toElasticsearchQuery(fullFieldNameArg) as string;
- const field = indexPattern?.fields?.find((fld: IndexPatternFieldBase) => fld.name === fieldName);
+ const field = indexPattern?.fields?.find((fld: DataViewFieldBase) => fld.name === fieldName);
if (field?.scripted) {
throw new Error(`Exists query does not support scripted fields`);
diff --git a/packages/kbn-es-query/src/kuery/functions/is.ts b/packages/kbn-es-query/src/kuery/functions/is.ts
index 854dcd95dc7aa..eeb9f139c9e52 100644
--- a/packages/kbn-es-query/src/kuery/functions/is.ts
+++ b/packages/kbn-es-query/src/kuery/functions/is.ts
@@ -12,7 +12,7 @@ import { getPhraseScript } from '../../filters';
import { getFields } from './utils/get_fields';
import { getTimeZoneFromSettings, getDataViewFieldSubtypeNested } from '../../utils';
import { getFullFieldNameNode } from './utils/get_full_field_name_node';
-import { IndexPatternBase, KueryNode, IndexPatternFieldBase, KueryQueryOptions } from '../..';
+import { DataViewBase, KueryNode, DataViewFieldBase, KueryQueryOptions } from '../..';
import * as ast from '../ast';
@@ -40,7 +40,7 @@ export function buildNodeParams(fieldName: string, value: any, isPhrase: boolean
export function toElasticsearchQuery(
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config: KueryQueryOptions = {},
context: Record = {}
): estypes.QueryDslQueryContainer {
@@ -101,7 +101,7 @@ export function toElasticsearchQuery(
return { match_all: {} };
}
- const queries = fields!.reduce((accumulator: any, field: IndexPatternFieldBase) => {
+ const queries = fields!.reduce((accumulator: any, field: DataViewFieldBase) => {
const wrapWithNestedQuery = (query: any) => {
// Wildcards can easily include nested and non-nested fields. There isn't a good way to let
// users handle this themselves so we automatically add nested queries in this scenario.
diff --git a/packages/kbn-es-query/src/kuery/functions/nested.ts b/packages/kbn-es-query/src/kuery/functions/nested.ts
index 3a466e9ddca02..18cd9794922c6 100644
--- a/packages/kbn-es-query/src/kuery/functions/nested.ts
+++ b/packages/kbn-es-query/src/kuery/functions/nested.ts
@@ -9,7 +9,7 @@
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import * as ast from '../ast';
import * as literal from '../node_types/literal';
-import { IndexPatternBase, KueryNode, KueryQueryOptions } from '../..';
+import { DataViewBase, KueryNode, KueryQueryOptions } from '../..';
export function buildNodeParams(path: any, child: any) {
const pathNode =
@@ -21,7 +21,7 @@ export function buildNodeParams(path: any, child: any) {
export function toElasticsearchQuery(
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config: KueryQueryOptions = {},
context: Record = {}
): estypes.QueryDslQueryContainer {
diff --git a/packages/kbn-es-query/src/kuery/functions/not.ts b/packages/kbn-es-query/src/kuery/functions/not.ts
index 91954c6a09fc4..ec8f72809ce0f 100644
--- a/packages/kbn-es-query/src/kuery/functions/not.ts
+++ b/packages/kbn-es-query/src/kuery/functions/not.ts
@@ -8,7 +8,7 @@
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import * as ast from '../ast';
-import { IndexPatternBase, KueryNode, KueryQueryOptions } from '../..';
+import { DataViewBase, KueryNode, KueryQueryOptions } from '../..';
export function buildNodeParams(child: KueryNode) {
return {
@@ -18,7 +18,7 @@ export function buildNodeParams(child: KueryNode) {
export function toElasticsearchQuery(
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config: KueryQueryOptions = {},
context: Record = {}
): estypes.QueryDslQueryContainer {
diff --git a/packages/kbn-es-query/src/kuery/functions/or.ts b/packages/kbn-es-query/src/kuery/functions/or.ts
index d06f51d2918bd..89c4c5438beff 100644
--- a/packages/kbn-es-query/src/kuery/functions/or.ts
+++ b/packages/kbn-es-query/src/kuery/functions/or.ts
@@ -8,7 +8,7 @@
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import * as ast from '../ast';
-import { IndexPatternBase, KueryNode, KueryQueryOptions } from '../..';
+import { DataViewBase, KueryNode, KueryQueryOptions } from '../..';
export function buildNodeParams(children: KueryNode[]) {
return {
@@ -18,7 +18,7 @@ export function buildNodeParams(children: KueryNode[]) {
export function toElasticsearchQuery(
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config: KueryQueryOptions = {},
context: Record = {}
): estypes.QueryDslQueryContainer {
diff --git a/packages/kbn-es-query/src/kuery/functions/range.ts b/packages/kbn-es-query/src/kuery/functions/range.ts
index 6ebda78aec8a7..313f6571259a0 100644
--- a/packages/kbn-es-query/src/kuery/functions/range.ts
+++ b/packages/kbn-es-query/src/kuery/functions/range.ts
@@ -13,7 +13,7 @@ import { getRangeScript, RangeFilterParams } from '../../filters';
import { getFields } from './utils/get_fields';
import { getDataViewFieldSubtypeNested, getTimeZoneFromSettings } from '../../utils';
import { getFullFieldNameNode } from './utils/get_full_field_name_node';
-import type { IndexPatternBase, KueryNode, KueryQueryOptions } from '../..';
+import type { DataViewBase, KueryNode, KueryQueryOptions } from '../..';
export function buildNodeParams(
fieldName: string,
@@ -28,7 +28,7 @@ export function buildNodeParams(
export function toElasticsearchQuery(
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config: KueryQueryOptions = {},
context: Record = {}
): estypes.QueryDslQueryContainer {
diff --git a/packages/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts b/packages/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts
index 2a63614fadd04..65de192f4a49e 100644
--- a/packages/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts
+++ b/packages/kbn-es-query/src/kuery/functions/utils/get_fields.test.ts
@@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
-import { IndexPatternBase } from '../../..';
+import { DataViewBase } from '../../..';
import { fields } from '../../../filters/stubs';
import { nodeTypes } from '../../index';
@@ -15,12 +15,12 @@ import { getFields } from './get_fields';
jest.mock('../../grammar');
describe('getFields', () => {
- let indexPattern: IndexPatternBase;
+ let indexPattern: DataViewBase;
beforeEach(() => {
indexPattern = {
fields,
- } as unknown as IndexPatternBase;
+ } as unknown as DataViewBase;
});
describe('field names without a wildcard', () => {
@@ -41,14 +41,14 @@ describe('getFields', () => {
});
test('should not match a wildcard in a literal node', () => {
- const indexPatternWithWildField: IndexPatternBase = {
+ const indexPatternWithWildField: DataViewBase = {
title: 'wildIndex',
fields: [
{
name: 'foo*',
},
],
- } as unknown as IndexPatternBase;
+ } as unknown as DataViewBase;
const fieldNameNode = nodeTypes.literal.buildNode('foo*');
const results = getFields(fieldNameNode, indexPatternWithWildField);
diff --git a/packages/kbn-es-query/src/kuery/functions/utils/get_fields.ts b/packages/kbn-es-query/src/kuery/functions/utils/get_fields.ts
index db3826d4ef8c4..db4d4227a60e3 100644
--- a/packages/kbn-es-query/src/kuery/functions/utils/get_fields.ts
+++ b/packages/kbn-es-query/src/kuery/functions/utils/get_fields.ts
@@ -8,10 +8,10 @@
import * as literal from '../../node_types/literal';
import * as wildcard from '../../node_types/wildcard';
-import { KueryNode, IndexPatternBase } from '../../..';
+import { KueryNode, DataViewBase } from '../../..';
import { LiteralTypeBuildNode } from '../../node_types/types';
-export function getFields(node: KueryNode, indexPattern?: IndexPatternBase) {
+export function getFields(node: KueryNode, indexPattern?: DataViewBase) {
if (!indexPattern) return [];
if (node.type === 'literal') {
const fieldName = literal.toElasticsearchQuery(node as LiteralTypeBuildNode);
diff --git a/packages/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts b/packages/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts
index 239d2c73f5caf..1b4ccf0c5b3c6 100644
--- a/packages/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts
+++ b/packages/kbn-es-query/src/kuery/functions/utils/get_full_field_name_node.ts
@@ -7,12 +7,12 @@
*/
import { getFields } from './get_fields';
-import { IndexPatternBase, IndexPatternFieldBase, KueryNode } from '../../..';
+import { DataViewBase, DataViewFieldBase, KueryNode } from '../../..';
import { getDataViewFieldSubtypeNested } from '../../../utils';
export function getFullFieldNameNode(
rootNameNode: any,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
nestedPath?: string
): KueryNode {
const fullFieldNameNode = {
@@ -28,7 +28,7 @@ export function getFullFieldNameNode(
}
const fields = getFields(fullFieldNameNode, indexPattern);
- const errors = fields!.reduce((acc: any, field: IndexPatternFieldBase) => {
+ const errors = fields!.reduce((acc: any, field: DataViewFieldBase) => {
const subTypeNested = getDataViewFieldSubtypeNested(field);
const nestedPathFromField = subTypeNested?.nested.path;
diff --git a/packages/kbn-es-query/src/kuery/node_types/function.ts b/packages/kbn-es-query/src/kuery/node_types/function.ts
index 57954948b48c6..522e36e4a6fa6 100644
--- a/packages/kbn-es-query/src/kuery/node_types/function.ts
+++ b/packages/kbn-es-query/src/kuery/node_types/function.ts
@@ -9,7 +9,7 @@
import _ from 'lodash';
import { functions } from '../functions';
-import { IndexPatternBase, KueryNode, KueryQueryOptions } from '../..';
+import { DataViewBase, KueryNode, KueryQueryOptions } from '../..';
import { FunctionName, FunctionTypeBuildNode } from './types';
export function buildNode(functionName: FunctionName, ...args: any[]) {
@@ -45,7 +45,7 @@ export function buildNodeWithArgumentNodes(
export function toElasticsearchQuery(
node: KueryNode,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config?: KueryQueryOptions,
context?: Record
) {
diff --git a/packages/kbn-es-query/src/kuery/node_types/types.ts b/packages/kbn-es-query/src/kuery/node_types/types.ts
index 6df292b9929fd..302f0d915b929 100644
--- a/packages/kbn-es-query/src/kuery/node_types/types.ts
+++ b/packages/kbn-es-query/src/kuery/node_types/types.ts
@@ -12,7 +12,7 @@
import { JsonValue } from '@kbn/utility-types';
import { KueryNode, KueryQueryOptions } from '..';
-import { IndexPatternBase } from '../..';
+import { DataViewBase } from '../..';
export type FunctionName = 'is' | 'and' | 'or' | 'not' | 'range' | 'exists' | 'nested';
@@ -21,7 +21,7 @@ interface FunctionType {
buildNodeWithArgumentNodes: (functionName: FunctionName, args: any[]) => FunctionTypeBuildNode;
toElasticsearchQuery: (
node: any,
- indexPattern?: IndexPatternBase,
+ indexPattern?: DataViewBase,
config?: KueryQueryOptions,
context?: Record
) => JsonValue;
diff --git a/packages/kbn-logging/BUILD.bazel b/packages/kbn-logging/BUILD.bazel
index 71a7ece15aa73..8e55456069ee4 100644
--- a/packages/kbn-logging/BUILD.bazel
+++ b/packages/kbn-logging/BUILD.bazel
@@ -32,7 +32,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
- "//packages/kbn-std",
+ "//packages/kbn-std:npm_module_types",
"@npm//@types/jest",
"@npm//@types/node",
]
diff --git a/packages/kbn-optimizer/BUILD.bazel b/packages/kbn-optimizer/BUILD.bazel
index 4dc5a8676c078..548d410d2f316 100644
--- a/packages/kbn-optimizer/BUILD.bazel
+++ b/packages/kbn-optimizer/BUILD.bazel
@@ -68,10 +68,10 @@ TYPES_DEPS = [
"//packages/kbn-config:npm_module_types",
"//packages/kbn-config-schema:npm_module_types",
"//packages/kbn-dev-utils:npm_module_types",
- "//packages/kbn-std",
+ "//packages/kbn-std:npm_module_types",
"//packages/kbn-ui-shared-deps-npm",
"//packages/kbn-ui-shared-deps-src",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//chalk",
"@npm//clean-webpack-plugin",
"@npm//cpy",
diff --git a/packages/kbn-plugin-generator/BUILD.bazel b/packages/kbn-plugin-generator/BUILD.bazel
index 3fef9531b57a1..0578842a7509b 100644
--- a/packages/kbn-plugin-generator/BUILD.bazel
+++ b/packages/kbn-plugin-generator/BUILD.bazel
@@ -51,7 +51,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"//packages/kbn-dev-utils:npm_module_types",
"@npm//del",
"@npm//execa",
diff --git a/packages/kbn-plugin-helpers/BUILD.bazel b/packages/kbn-plugin-helpers/BUILD.bazel
index eeb5d06a3866a..7112c497f6ff8 100644
--- a/packages/kbn-plugin-helpers/BUILD.bazel
+++ b/packages/kbn-plugin-helpers/BUILD.bazel
@@ -45,7 +45,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-optimizer:npm_module_types",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//del",
"@npm//execa",
"@npm//globby",
diff --git a/packages/kbn-rule-data-utils/src/alerts_as_data_rbac.ts b/packages/kbn-rule-data-utils/src/alerts_as_data_rbac.ts
index d68f6df5cc4d2..c0ab8322eb363 100644
--- a/packages/kbn-rule-data-utils/src/alerts_as_data_rbac.ts
+++ b/packages/kbn-rule-data-utils/src/alerts_as_data_rbac.ts
@@ -40,10 +40,10 @@ export const isValidFeatureId = (a: unknown): a is ValidFeatureId =>
* Ref: https://github.com/elastic/elasticsearch/issues/28806#issuecomment-369303620
*
* return stringified Long.MAX_VALUE if we receive Number.MAX_SAFE_INTEGER
- * @param sortIds estypes.SearchSortResults | undefined
+ * @param sortIds estypes.SortResults | undefined
* @returns SortResults
*/
-export const getSafeSortIds = (sortIds: estypes.SearchSortResults | null | undefined) => {
+export const getSafeSortIds = (sortIds: estypes.SortResults | null | undefined) => {
if (sortIds == null) {
return sortIds;
}
diff --git a/packages/kbn-securitysolution-autocomplete/BUILD.bazel b/packages/kbn-securitysolution-autocomplete/BUILD.bazel
index 4af6f8d1b0616..bc29f400f4d5b 100644
--- a/packages/kbn-securitysolution-autocomplete/BUILD.bazel
+++ b/packages/kbn-securitysolution-autocomplete/BUILD.bazel
@@ -31,6 +31,7 @@ NPM_MODULE_EXTRA_FILES = [
]
RUNTIME_DEPS = [
+ "//packages/elastic-datemath",
"//packages/kbn-es-query",
"//packages/kbn-i18n",
"//packages/kbn-securitysolution-io-ts-list-types",
@@ -40,22 +41,26 @@ RUNTIME_DEPS = [
"@npm//@testing-library/react",
"@npm//@testing-library/react-hooks",
"@npm//enzyme",
+ "@npm//lodash",
"@npm//moment",
"@npm//react",
]
TYPES_DEPS = [
+ "//packages/elastic-datemath:npm_module_types",
"//packages/kbn-es-query:npm_module_types",
"//packages/kbn-i18n:npm_module_types",
"//packages/kbn-securitysolution-io-ts-list-types:npm_module_types",
"//packages/kbn-securitysolution-list-hooks:npm_module_types",
- "//packages/kbn-securitysolution-list-utils",
+ "//packages/kbn-securitysolution-list-utils:npm_module_types",
"@npm//@elastic/eui",
"@npm//@testing-library/react",
"@npm//@testing-library/react-hooks",
"@npm//moment",
+ "@npm//tslib",
"@npm//@types/enzyme",
"@npm//@types/jest",
+ "@npm//@types/lodash",
"@npm//@types/node",
"@npm//@types/react",
]
diff --git a/packages/kbn-securitysolution-autocomplete/README.md b/packages/kbn-securitysolution-autocomplete/README.md
index 6212b9719679e..41bfd9baf628d 100644
--- a/packages/kbn-securitysolution-autocomplete/README.md
+++ b/packages/kbn-securitysolution-autocomplete/README.md
@@ -12,7 +12,7 @@ This hook uses the kibana `services.data.autocomplete.getValueSuggestions()` ser
This component can be used to display available indexPattern fields. It requires an indexPattern to be passed in and will show an error state if value is not one of the available indexPattern fields. Users will be able to select only one option.
-The `onChange` handler is passed `IndexPatternFieldBase[]`.
+The `onChange` handler is passed `DataViewFieldBase[]`.
```js
{
diff --git a/packages/kbn-securitysolution-autocomplete/src/field_value_lists/index.tsx b/packages/kbn-securitysolution-autocomplete/src/field_value_lists/index.tsx
index cef46b9bcaa21..64432b1480df3 100644
--- a/packages/kbn-securitysolution-autocomplete/src/field_value_lists/index.tsx
+++ b/packages/kbn-securitysolution-autocomplete/src/field_value_lists/index.tsx
@@ -10,7 +10,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { EuiComboBox, EuiComboBoxOptionOption, EuiFormRow } from '@elastic/eui';
import type { ListSchema } from '@kbn/securitysolution-io-ts-list-types';
import { useFindLists } from '@kbn/securitysolution-list-hooks';
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
import { filterFieldToList } from '../filter_field_to_list';
import { getGenericComboBoxProps } from '../get_generic_combo_box_props';
@@ -31,7 +31,7 @@ interface AutocompleteFieldListsProps {
onChange: (arg: ListSchema) => void;
placeholder: string;
rowLabel?: string;
- selectedField: IndexPatternFieldBase | undefined;
+ selectedField: DataViewFieldBase | undefined;
selectedValue: string | undefined;
}
diff --git a/packages/kbn-securitysolution-autocomplete/src/field_value_match/index.tsx b/packages/kbn-securitysolution-autocomplete/src/field_value_match/index.tsx
index b45d508ffdb20..096058fcc0aa3 100644
--- a/packages/kbn-securitysolution-autocomplete/src/field_value_match/index.tsx
+++ b/packages/kbn-securitysolution-autocomplete/src/field_value_match/index.tsx
@@ -14,7 +14,7 @@ import {
EuiComboBoxOptionOption,
EuiComboBox,
} from '@elastic/eui';
-import { IndexPatternBase, IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewBase, DataViewFieldBase } from '@kbn/es-query';
import { uniq } from 'lodash';
@@ -41,9 +41,9 @@ const SINGLE_SELECTION = { asPlainText: true };
interface AutocompleteFieldMatchProps {
placeholder: string;
- selectedField: IndexPatternFieldBase | undefined;
+ selectedField: DataViewFieldBase | undefined;
selectedValue: string | undefined;
- indexPattern: IndexPatternBase | undefined;
+ indexPattern: DataViewBase | undefined;
isLoading: boolean;
isDisabled: boolean;
isClearable: boolean;
diff --git a/packages/kbn-securitysolution-autocomplete/src/field_value_match_any/index.tsx b/packages/kbn-securitysolution-autocomplete/src/field_value_match_any/index.tsx
index 8aa8d6ad5ff70..5a36e155c548f 100644
--- a/packages/kbn-securitysolution-autocomplete/src/field_value_match_any/index.tsx
+++ b/packages/kbn-securitysolution-autocomplete/src/field_value_match_any/index.tsx
@@ -10,7 +10,7 @@ import React, { useCallback, useMemo, useState } from 'react';
import { EuiComboBox, EuiComboBoxOptionOption, EuiFormRow } from '@elastic/eui';
import { uniq } from 'lodash';
import { ListOperatorTypeEnum as OperatorTypeEnum } from '@kbn/securitysolution-io-ts-list-types';
-import { IndexPatternBase, IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewBase, DataViewFieldBase } from '@kbn/es-query';
// TODO: I have to use any here for now, but once this is available below, we should use the correct types, https://github.com/elastic/kibana/issues/100715
// import { AutocompleteStart } from '../../../../../../../src/plugins/data/public';
@@ -26,9 +26,9 @@ import { paramIsValid } from '../param_is_valid';
interface AutocompleteFieldMatchAnyProps {
placeholder: string;
- selectedField: IndexPatternFieldBase | undefined;
+ selectedField: DataViewFieldBase | undefined;
selectedValue: string[];
- indexPattern: IndexPatternBase | undefined;
+ indexPattern: DataViewBase | undefined;
isLoading: boolean;
isDisabled: boolean;
isClearable: boolean;
diff --git a/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts b/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts
index d2f74a17561a4..d25dc5d45c9ec 100644
--- a/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts
+++ b/packages/kbn-securitysolution-autocomplete/src/fields/index.mock.ts
@@ -6,12 +6,12 @@
* Side Public License, v 1.
*/
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
-// Copied from "src/plugins/data/common/index_patterns/fields/fields.mocks.ts" but with the types changed to "IndexPatternFieldBase" since that type is compatible.
+// Copied from "src/plugins/data/common/index_patterns/fields/fields.mocks.ts" but with the types changed to "DataViewFieldBase" since that type is compatible.
// TODO: This should move out once those mocks are directly useable or in their own package, https://github.com/elastic/kibana/issues/100715
-export const fields: IndexPatternFieldBase[] = [
+export const fields: DataViewFieldBase[] = [
{
name: 'bytes',
type: 'number',
@@ -309,6 +309,6 @@ export const fields: IndexPatternFieldBase[] = [
readFromDocValues: false,
subType: { nested: { path: 'nestedField.nestedChild' } },
},
-] as unknown as IndexPatternFieldBase[];
+] as unknown as DataViewFieldBase[];
export const getField = (name: string) => fields.find((field) => field.name === name);
diff --git a/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.test.ts b/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.test.ts
index cb39adb9fde26..a29840f61ac6c 100644
--- a/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.test.ts
+++ b/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.test.ts
@@ -10,7 +10,7 @@ import { filterFieldToList } from '.';
import type { ListSchema } from '@kbn/securitysolution-io-ts-list-types';
import { getListResponseMock } from '../list_schema/index.mock';
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
describe('#filterFieldToList', () => {
test('it returns empty array if given a undefined for field', () => {
@@ -19,7 +19,7 @@ describe('#filterFieldToList', () => {
});
test('it returns empty array if filed does not contain esTypes', () => {
- const field: IndexPatternFieldBase = {
+ const field: DataViewFieldBase = {
name: 'some-name',
type: 'some-type',
};
@@ -28,7 +28,7 @@ describe('#filterFieldToList', () => {
});
test('it returns single filtered list of ip_range -> ip', () => {
- const field: IndexPatternFieldBase & { esTypes: string[] } = {
+ const field: DataViewFieldBase & { esTypes: string[] } = {
esTypes: ['ip'],
name: 'some-name',
type: 'ip',
@@ -40,7 +40,7 @@ describe('#filterFieldToList', () => {
});
test('it returns single filtered list of ip -> ip', () => {
- const field: IndexPatternFieldBase & { esTypes: string[] } = {
+ const field: DataViewFieldBase & { esTypes: string[] } = {
esTypes: ['ip'],
name: 'some-name',
type: 'ip',
@@ -52,7 +52,7 @@ describe('#filterFieldToList', () => {
});
test('it returns single filtered list of keyword -> keyword', () => {
- const field: IndexPatternFieldBase & { esTypes: string[] } = {
+ const field: DataViewFieldBase & { esTypes: string[] } = {
esTypes: ['keyword'],
name: 'some-name',
type: 'keyword',
@@ -64,7 +64,7 @@ describe('#filterFieldToList', () => {
});
test('it returns single filtered list of text -> text', () => {
- const field: IndexPatternFieldBase & { esTypes: string[] } = {
+ const field: DataViewFieldBase & { esTypes: string[] } = {
esTypes: ['text'],
name: 'some-name',
type: 'text',
@@ -76,7 +76,7 @@ describe('#filterFieldToList', () => {
});
test('it returns 2 filtered lists of ip_range -> ip', () => {
- const field: IndexPatternFieldBase & { esTypes: string[] } = {
+ const field: DataViewFieldBase & { esTypes: string[] } = {
esTypes: ['ip'],
name: 'some-name',
type: 'ip',
@@ -89,7 +89,7 @@ describe('#filterFieldToList', () => {
});
test('it returns 1 filtered lists of ip_range -> ip if the 2nd is not compatible type', () => {
- const field: IndexPatternFieldBase & { esTypes: string[] } = {
+ const field: DataViewFieldBase & { esTypes: string[] } = {
esTypes: ['ip'],
name: 'some-name',
type: 'ip',
diff --git a/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts b/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts
index 51ce349fa39fd..32cd55522b3fd 100644
--- a/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts
+++ b/packages/kbn-securitysolution-autocomplete/src/filter_field_to_list/index.ts
@@ -7,7 +7,7 @@
*/
import { ListSchema } from '@kbn/securitysolution-io-ts-list-types';
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
import { typeMatch } from '../type_match';
/**
@@ -22,7 +22,7 @@ import { typeMatch } from '../type_match';
*/
export const filterFieldToList = (
lists: ListSchema[],
- field?: IndexPatternFieldBase & { esTypes?: string[] }
+ field?: DataViewFieldBase & { esTypes?: string[] }
): ListSchema[] => {
if (field != null) {
const { esTypes = [] } = field;
diff --git a/packages/kbn-securitysolution-autocomplete/src/get_operators/index.ts b/packages/kbn-securitysolution-autocomplete/src/get_operators/index.ts
index b50bd57608e7a..e84dc33e676e6 100644
--- a/packages/kbn-securitysolution-autocomplete/src/get_operators/index.ts
+++ b/packages/kbn-securitysolution-autocomplete/src/get_operators/index.ts
@@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
import {
EXCEPTION_OPERATORS,
@@ -20,10 +20,10 @@ import {
/**
* Returns the appropriate operators given a field type
*
- * @param field IndexPatternFieldBase selected field
+ * @param field DataViewFieldBase selected field
*
*/
-export const getOperators = (field: IndexPatternFieldBase | undefined): OperatorOption[] => {
+export const getOperators = (field: DataViewFieldBase | undefined): OperatorOption[] => {
if (field == null) {
return [isOperator];
} else if (field.type === 'boolean') {
diff --git a/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts b/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts
index 04b674758f952..45c04bae1b282 100644
--- a/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts
+++ b/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.test.ts
@@ -16,7 +16,7 @@ import {
} from '.';
import { getField } from '../../fields/index.mock';
import { autocompleteStartMock } from '../../autocomplete/index.mock';
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
// Copied from "src/plugins/data/common/index_patterns/index_pattern.stub.ts"
// TODO: Remove this in favor of the above if/when it is ported, https://github.com/elastic/kibana/issues/100715
@@ -153,7 +153,7 @@ describe('use_field_value_autocomplete', () => {
const suggestionsMock = jest.fn().mockResolvedValue([]);
await act(async () => {
- const selectedField: IndexPatternFieldBase | undefined = getField('nestedField.child');
+ const selectedField: DataViewFieldBase | undefined = getField('nestedField.child');
if (selectedField == null) {
throw new TypeError('selectedField for this test should always be defined');
}
diff --git a/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts b/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts
index 32f8cdc71a028..ca0868e5056a6 100644
--- a/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts
+++ b/packages/kbn-securitysolution-autocomplete/src/hooks/use_field_value_autocomplete/index.ts
@@ -9,19 +9,15 @@
import { useEffect, useRef, useState } from 'react';
import { debounce } from 'lodash';
import { ListOperatorTypeEnum as OperatorTypeEnum } from '@kbn/securitysolution-io-ts-list-types';
-import {
- IndexPatternBase,
- IndexPatternFieldBase,
- getDataViewFieldSubtypeNested,
-} from '@kbn/es-query';
+import { DataViewBase, DataViewFieldBase, getDataViewFieldSubtypeNested } from '@kbn/es-query';
// TODO: I have to use any here for now, but once this is available below, we should use the correct types, https://github.com/elastic/kibana/issues/100715
// import { AutocompleteStart } from '../../../../../../../../src/plugins/data/public';
type AutocompleteStart = any;
interface FuncArgs {
- fieldSelected: IndexPatternFieldBase | undefined;
- patterns: IndexPatternBase | undefined;
+ fieldSelected: DataViewFieldBase | undefined;
+ patterns: DataViewBase | undefined;
searchQuery: string;
value: string | string[] | undefined;
}
@@ -33,10 +29,10 @@ export type UseFieldValueAutocompleteReturn = [boolean, boolean, string[], Func
export interface UseFieldValueAutocompleteProps {
autocompleteService: AutocompleteStart;
fieldValue: string | string[] | undefined;
- indexPattern: IndexPatternBase | undefined;
+ indexPattern: DataViewBase | undefined;
operatorType: OperatorTypeEnum;
query: string;
- selectedField: IndexPatternFieldBase | undefined;
+ selectedField: DataViewFieldBase | undefined;
}
/**
* Hook for using the field value autocomplete service
diff --git a/packages/kbn-securitysolution-autocomplete/src/operator/index.tsx b/packages/kbn-securitysolution-autocomplete/src/operator/index.tsx
index c791ef4ccb91f..c83602db38e9d 100644
--- a/packages/kbn-securitysolution-autocomplete/src/operator/index.tsx
+++ b/packages/kbn-securitysolution-autocomplete/src/operator/index.tsx
@@ -9,7 +9,7 @@
import React, { useCallback, useMemo } from 'react';
import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui';
import { OperatorOption } from '@kbn/securitysolution-list-utils';
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
import { getOperators } from '../get_operators';
import {
@@ -28,7 +28,7 @@ interface OperatorState {
operatorInputWidth?: number;
operatorOptions?: OperatorOption[];
placeholder: string;
- selectedField: IndexPatternFieldBase | undefined;
+ selectedField: DataViewFieldBase | undefined;
}
export const OperatorComponent: React.FC = ({
diff --git a/packages/kbn-securitysolution-autocomplete/src/param_is_valid/index.ts b/packages/kbn-securitysolution-autocomplete/src/param_is_valid/index.ts
index 17de850e92984..016d4f9308e2b 100644
--- a/packages/kbn-securitysolution-autocomplete/src/param_is_valid/index.ts
+++ b/packages/kbn-securitysolution-autocomplete/src/param_is_valid/index.ts
@@ -7,7 +7,7 @@
*/
import dateMath from '@elastic/datemath';
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
import { checkEmptyValue } from '../check_empty_value';
import * as i18n from '../translations';
@@ -22,7 +22,7 @@ import * as i18n from '../translations';
*/
export const paramIsValid = (
param: string | undefined,
- field: IndexPatternFieldBase | undefined,
+ field: DataViewFieldBase | undefined,
isRequired: boolean,
touched: boolean
): string | undefined => {
diff --git a/packages/kbn-securitysolution-io-ts-alerting-types/BUILD.bazel b/packages/kbn-securitysolution-io-ts-alerting-types/BUILD.bazel
index cf982786891cd..61cdb9cccd292 100644
--- a/packages/kbn-securitysolution-io-ts-alerting-types/BUILD.bazel
+++ b/packages/kbn-securitysolution-io-ts-alerting-types/BUILD.bazel
@@ -38,9 +38,10 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-securitysolution-io-ts-types:npm_module_types",
- "//packages/kbn-securitysolution-io-ts-utils",
+ "//packages/kbn-securitysolution-io-ts-utils:npm_module_types",
"@npm//fp-ts",
"@npm//io-ts",
+ "@npm//tslib",
"@npm//@types/jest",
"@npm//@types/node",
"@npm//@types/uuid"
diff --git a/packages/kbn-securitysolution-io-ts-list-types/BUILD.bazel b/packages/kbn-securitysolution-io-ts-list-types/BUILD.bazel
index 796aca74fe6af..66e52c1f509b4 100644
--- a/packages/kbn-securitysolution-io-ts-list-types/BUILD.bazel
+++ b/packages/kbn-securitysolution-io-ts-list-types/BUILD.bazel
@@ -38,10 +38,11 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-securitysolution-io-ts-types:npm_module_types",
- "//packages/kbn-securitysolution-io-ts-utils",
+ "//packages/kbn-securitysolution-io-ts-utils:npm_module_types",
"//packages/kbn-securitysolution-list-constants:npm_module_types",
"@npm//fp-ts",
"@npm//io-ts",
+ "@npm//tslib",
"@npm//@types/jest",
"@npm//@types/node",
]
diff --git a/packages/kbn-securitysolution-io-ts-types/BUILD.bazel b/packages/kbn-securitysolution-io-ts-types/BUILD.bazel
index 68b63cca141f7..a4f817ac55f09 100644
--- a/packages/kbn-securitysolution-io-ts-types/BUILD.bazel
+++ b/packages/kbn-securitysolution-io-ts-types/BUILD.bazel
@@ -36,9 +36,10 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
- "//packages/kbn-securitysolution-io-ts-utils",
+ "//packages/kbn-securitysolution-io-ts-utils:npm_module_types",
"@npm//fp-ts",
"@npm//io-ts",
+ "@npm//tslib",
"@npm//@types/jest",
"@npm//@types/node",
"@npm//@types/uuid"
diff --git a/packages/kbn-securitysolution-io-ts-types/src/import_query_schema/index.test.ts b/packages/kbn-securitysolution-io-ts-types/src/import_query_schema/index.test.ts
index 03ec9df51a318..31a3eed8b7fbf 100644
--- a/packages/kbn-securitysolution-io-ts-types/src/import_query_schema/index.test.ts
+++ b/packages/kbn-securitysolution-io-ts-types/src/import_query_schema/index.test.ts
@@ -12,8 +12,9 @@ import { exactCheck, foldLeftRight, getPaths } from '@kbn/securitysolution-io-ts
describe('importQuerySchema', () => {
test('it should validate proper schema', () => {
- const payload = {
+ const payload: ImportQuerySchema = {
overwrite: true,
+ overwrite_exceptions: true,
};
const decoded = importQuerySchema.decode(payload);
const checked = exactCheck(payload, decoded);
@@ -26,6 +27,7 @@ describe('importQuerySchema', () => {
test('it should NOT validate a non boolean value for "overwrite"', () => {
const payload: Omit & { overwrite: string } = {
overwrite: 'wrong',
+ overwrite_exceptions: true,
};
const decoded = importQuerySchema.decode(payload);
const checked = exactCheck(payload, decoded);
@@ -37,12 +39,30 @@ describe('importQuerySchema', () => {
expect(message.schema).toEqual({});
});
+ test('it should NOT validate a non boolean value for "overwrite_exceptions"', () => {
+ const payload: Omit & {
+ overwrite_exceptions: string;
+ } = {
+ overwrite: true,
+ overwrite_exceptions: 'wrong',
+ };
+ const decoded = importQuerySchema.decode(payload);
+ const checked = exactCheck(payload, decoded);
+ const message = foldLeftRight(checked);
+
+ expect(getPaths(left(message.errors))).toEqual([
+ 'Invalid value "wrong" supplied to "overwrite_exceptions"',
+ ]);
+ expect(message.schema).toEqual({});
+ });
+
test('it should NOT allow an extra key to be sent in', () => {
const payload: ImportQuerySchema & {
extraKey?: string;
} = {
extraKey: 'extra',
overwrite: true,
+ overwrite_exceptions: true,
};
const decoded = importQuerySchema.decode(payload);
diff --git a/packages/kbn-securitysolution-io-ts-types/src/import_query_schema/index.ts b/packages/kbn-securitysolution-io-ts-types/src/import_query_schema/index.ts
index 95cbf96b2ef8d..f84f16fddabdb 100644
--- a/packages/kbn-securitysolution-io-ts-types/src/import_query_schema/index.ts
+++ b/packages/kbn-securitysolution-io-ts-types/src/import_query_schema/index.ts
@@ -13,10 +13,15 @@ import { DefaultStringBooleanFalse } from '../default_string_boolean_false';
export const importQuerySchema = t.exact(
t.partial({
overwrite: DefaultStringBooleanFalse,
+ overwrite_exceptions: DefaultStringBooleanFalse,
})
);
export type ImportQuerySchema = t.TypeOf;
-export type ImportQuerySchemaDecoded = Omit & {
+export type ImportQuerySchemaDecoded = Omit<
+ ImportQuerySchema,
+ 'overwrite' | 'overwrite_exceptions'
+> & {
overwrite: boolean;
+ overwrite_exceptions: boolean;
};
diff --git a/packages/kbn-securitysolution-io-ts-utils/BUILD.bazel b/packages/kbn-securitysolution-io-ts-utils/BUILD.bazel
index c827eb19f7a3d..46afff1a6affb 100644
--- a/packages/kbn-securitysolution-io-ts-utils/BUILD.bazel
+++ b/packages/kbn-securitysolution-io-ts-utils/BUILD.bazel
@@ -1,9 +1,10 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
-load("//src/dev/bazel:index.bzl", "jsts_transpiler")
+load("@npm//@bazel/typescript:index.bzl", "ts_config")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-securitysolution-io-ts-utils"
PKG_REQUIRE_NAME = "@kbn/securitysolution-io-ts-utils"
+TYPES_PKG_REQUIRE_NAME = "@types/kbn__securitysolution-io-ts-utils"
SOURCE_FILES = glob(
[
@@ -86,7 +87,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
- deps = RUNTIME_DEPS + [":target_node", ":target_web", ":tsc_types"],
+ deps = RUNTIME_DEPS + [":target_node", ":target_web"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
@@ -105,3 +106,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)
+
+pkg_npm_types(
+ name = "npm_module_types",
+ srcs = SRCS,
+ deps = [":tsc_types"],
+ package_name = TYPES_PKG_REQUIRE_NAME,
+ tsconfig = ":tsconfig",
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "build_types",
+ srcs = [
+ ":npm_module_types",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/packages/kbn-securitysolution-io-ts-utils/package.json b/packages/kbn-securitysolution-io-ts-utils/package.json
index 3b463e919448b..bf8c1230a4f55 100644
--- a/packages/kbn-securitysolution-io-ts-utils/package.json
+++ b/packages/kbn-securitysolution-io-ts-utils/package.json
@@ -5,6 +5,5 @@
"license": "SSPL-1.0 OR Elastic License 2.0",
"browser": "./target_web/index.js",
"main": "./target_node/index.js",
- "types": "./target_types/index.d.ts",
"private": true
}
diff --git a/packages/kbn-securitysolution-list-api/BUILD.bazel b/packages/kbn-securitysolution-list-api/BUILD.bazel
index ed5d11d48a5d4..587b564ab9192 100644
--- a/packages/kbn-securitysolution-list-api/BUILD.bazel
+++ b/packages/kbn-securitysolution-list-api/BUILD.bazel
@@ -38,10 +38,11 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-securitysolution-io-ts-list-types:npm_module_types",
- "//packages/kbn-securitysolution-io-ts-utils",
+ "//packages/kbn-securitysolution-io-ts-utils:npm_module_types",
"//packages/kbn-securitysolution-list-constants:npm_module_types",
"@npm//fp-ts",
"@npm//io-ts",
+ "@npm//tslib",
"@npm//@types/jest",
"@npm//@types/node",
]
diff --git a/packages/kbn-securitysolution-list-hooks/BUILD.bazel b/packages/kbn-securitysolution-list-hooks/BUILD.bazel
index d45f6258615fc..7b3fc87b6f87e 100644
--- a/packages/kbn-securitysolution-list-hooks/BUILD.bazel
+++ b/packages/kbn-securitysolution-list-hooks/BUILD.bazel
@@ -36,6 +36,7 @@ RUNTIME_DEPS = [
"//packages/kbn-securitysolution-list-utils",
"//packages/kbn-securitysolution-utils",
"@npm//@testing-library/react-hooks",
+ "@npm//fp-ts",
"@npm//react",
]
@@ -44,12 +45,14 @@ TYPES_DEPS = [
"//packages/kbn-securitysolution-io-ts-list-types:npm_module_types",
"//packages/kbn-securitysolution-list-api:npm_module_types",
"//packages/kbn-securitysolution-list-constants:npm_module_types",
- "//packages/kbn-securitysolution-list-utils",
+ "//packages/kbn-securitysolution-list-utils:npm_module_types",
"//packages/kbn-securitysolution-utils:npm_module_types",
"@npm//@types/jest",
"@npm//@types/node",
"@npm//@types/react",
"@npm//@types/testing-library__react-hooks",
+ "@npm//fp-ts",
+ "@npm//tslib",
]
jsts_transpiler(
diff --git a/packages/kbn-securitysolution-list-utils/BUILD.bazel b/packages/kbn-securitysolution-list-utils/BUILD.bazel
index fedb8e70a0cb3..87e546a1fff08 100644
--- a/packages/kbn-securitysolution-list-utils/BUILD.bazel
+++ b/packages/kbn-securitysolution-list-utils/BUILD.bazel
@@ -1,10 +1,10 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
-load("//src/dev/bazel:index.bzl", "jsts_transpiler")
+load("@npm//@bazel/typescript:index.bzl", "ts_config")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-securitysolution-list-utils"
-
PKG_REQUIRE_NAME = "@kbn/securitysolution-list-utils"
+TYPES_PKG_REQUIRE_NAME = "@types/kbn__securitysolution-list-utils"
SOURCE_FILES = glob(
[
@@ -43,7 +43,7 @@ TYPES_DEPS = [
"//packages/kbn-es-query:npm_module_types",
"//packages/kbn-i18n:npm_module_types",
"//packages/kbn-securitysolution-io-ts-list-types:npm_module_types",
- "//packages/kbn-securitysolution-io-ts-utils",
+ "//packages/kbn-securitysolution-io-ts-utils:npm_module_types",
"//packages/kbn-securitysolution-list-constants:npm_module_types",
"//packages/kbn-securitysolution-utils:npm_module_types",
"@npm//@elastic/elasticsearch",
@@ -51,6 +51,7 @@ TYPES_DEPS = [
"@npm//@types/lodash",
"@npm//@types/node",
"@npm//@types/uuid",
+ "@npm//tslib",
]
jsts_transpiler(
@@ -92,7 +93,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
- deps = RUNTIME_DEPS + [":target_node", ":target_web", ":tsc_types"],
+ deps = RUNTIME_DEPS + [":target_node", ":target_web"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
@@ -112,3 +113,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)
+
+pkg_npm_types(
+ name = "npm_module_types",
+ srcs = SRCS,
+ deps = [":tsc_types"],
+ package_name = TYPES_PKG_REQUIRE_NAME,
+ tsconfig = ":tsconfig",
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "build_types",
+ srcs = [
+ ":npm_module_types",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/packages/kbn-securitysolution-list-utils/package.json b/packages/kbn-securitysolution-list-utils/package.json
index 0a6671e837743..27724ead26b2e 100644
--- a/packages/kbn-securitysolution-list-utils/package.json
+++ b/packages/kbn-securitysolution-list-utils/package.json
@@ -5,6 +5,5 @@
"license": "SSPL-1.0 OR Elastic License 2.0",
"browser": "./target_web/index.js",
"main": "./target_node/index.js",
- "types": "./target_types/index.d.ts",
"private": true
}
diff --git a/packages/kbn-securitysolution-list-utils/src/helpers/index.ts b/packages/kbn-securitysolution-list-utils/src/helpers/index.ts
index 6266cea5b268a..394d4f02b8772 100644
--- a/packages/kbn-securitysolution-list-utils/src/helpers/index.ts
+++ b/packages/kbn-securitysolution-list-utils/src/helpers/index.ts
@@ -29,8 +29,8 @@ import {
nestedEntryItem,
} from '@kbn/securitysolution-io-ts-list-types';
import {
- IndexPatternBase,
- IndexPatternFieldBase,
+ DataViewBase,
+ DataViewFieldBase,
getDataViewFieldSubtypeNested,
isDataViewFieldSubtypeNested,
} from '@kbn/es-query';
@@ -283,17 +283,17 @@ export const getUpdatedEntriesOnDelete = (
* add nested entry, should only show nested fields, if item is the parent
* field of a nested entry, we only display the parent field
*
- * @param patterns IndexPatternBase containing available fields on rule index
+ * @param patterns DataViewBase containing available fields on rule index
* @param item exception item entry
* set to add a nested field
*/
export const getFilteredIndexPatterns = (
- patterns: IndexPatternBase,
+ patterns: DataViewBase,
item: FormattedBuilderEntry,
type: ExceptionListType,
- preFilter?: (i: IndexPatternBase, t: ExceptionListType, o?: OsTypeArray) => IndexPatternBase,
+ preFilter?: (i: DataViewBase, t: ExceptionListType, o?: OsTypeArray) => DataViewBase,
osTypes?: OsTypeArray
-): IndexPatternBase => {
+): DataViewBase => {
const indexPatterns = preFilter != null ? preFilter(patterns, type, osTypes) : patterns;
if (item.nested === 'child' && item.parent != null) {
@@ -338,7 +338,7 @@ export const getFilteredIndexPatterns = (
*/
export const getEntryOnFieldChange = (
item: FormattedBuilderEntry,
- newField: IndexPatternFieldBase
+ newField: DataViewFieldBase
): { index: number; updatedEntry: BuilderEntry } => {
const { parent, entryIndex, nested } = item;
const newChildFieldValue = newField != null ? newField.name.split('.').slice(-1)[0] : '';
@@ -651,9 +651,9 @@ export const getCorrespondingKeywordField = ({
fields,
selectedField,
}: {
- fields: IndexPatternFieldBase[];
+ fields: DataViewFieldBase[];
selectedField: string | undefined;
-}): IndexPatternFieldBase | undefined => {
+}): DataViewFieldBase | undefined => {
const selectedFieldBits =
selectedField != null && selectedField !== '' ? selectedField.split('.') : [];
const selectedFieldIsTextType = selectedFieldBits.slice(-1)[0] === 'text';
@@ -673,7 +673,7 @@ export const getCorrespondingKeywordField = ({
* Formats the entry into one that is easily usable for the UI, most of the
* complexity was introduced with nested fields
*
- * @param patterns IndexPatternBase containing available fields on rule index
+ * @param patterns DataViewBase containing available fields on rule index
* @param item exception item entry
* @param itemIndex entry index
* @param parent nested entries hold copy of their parent for use in various logic
@@ -681,7 +681,7 @@ export const getCorrespondingKeywordField = ({
* was added to ensure that nested items could be identified with their parent entry
*/
export const getFormattedBuilderEntry = (
- indexPattern: IndexPatternBase,
+ indexPattern: DataViewBase,
item: BuilderEntry,
itemIndex: number,
parent: EntryNested | undefined,
@@ -727,7 +727,7 @@ export const getFormattedBuilderEntry = (
* Formats the entries to be easily usable for the UI, most of the
* complexity was introduced with nested fields
*
- * @param patterns IndexPatternBase containing available fields on rule index
+ * @param patterns DataViewBase containing available fields on rule index
* @param entries exception item entries
* @param addNested boolean noting whether or not UI is currently
* set to add a nested field
@@ -736,7 +736,7 @@ export const getFormattedBuilderEntry = (
* was added to ensure that nested items could be identified with their parent entry
*/
export const getFormattedBuilderEntries = (
- indexPattern: IndexPatternBase,
+ indexPattern: DataViewBase,
entries: BuilderEntry[],
parent?: EntryNested,
parentIndex?: number
@@ -758,14 +758,14 @@ export const getFormattedBuilderEntries = (
entryIndex: index,
field: isNewNestedEntry
? undefined
- : // This type below is really a FieldSpec type from "src/plugins/data/common/index_patterns/fields/types.ts", we cast it here to keep using the IndexPatternFieldBase interface
+ : // This type below is really a FieldSpec type from "src/plugins/data/common/index_patterns/fields/types.ts", we cast it here to keep using the DataViewFieldBase interface
({
aggregatable: false,
esTypes: ['nested'],
name: item.field != null ? item.field : '',
searchable: false,
type: 'string',
- } as IndexPatternFieldBase),
+ } as DataViewFieldBase),
id: item.id != null ? item.id : `${index}`,
nested: 'parent',
operator: isOperator,
diff --git a/packages/kbn-securitysolution-list-utils/src/types/index.ts b/packages/kbn-securitysolution-list-utils/src/types/index.ts
index 68896f1811472..24de9d1b1d756 100644
--- a/packages/kbn-securitysolution-list-utils/src/types/index.ts
+++ b/packages/kbn-securitysolution-list-utils/src/types/index.ts
@@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
import type {
CreateExceptionListItemSchema,
Entry,
@@ -33,13 +33,13 @@ export interface OperatorOption {
export interface FormattedBuilderEntry {
id: string;
- field: IndexPatternFieldBase | undefined;
+ field: DataViewFieldBase | undefined;
operator: OperatorOption;
value: string | string[] | undefined;
nested: 'parent' | 'child' | undefined;
entryIndex: number;
parent: { parent: BuilderEntryNested; parentIndex: number } | undefined;
- correspondingKeywordField: IndexPatternFieldBase | undefined;
+ correspondingKeywordField: DataViewFieldBase | undefined;
}
export interface EmptyEntry {
diff --git a/packages/kbn-server-http-tools/BUILD.bazel b/packages/kbn-server-http-tools/BUILD.bazel
index be74c363a7acf..e524078a8ba89 100644
--- a/packages/kbn-server-http-tools/BUILD.bazel
+++ b/packages/kbn-server-http-tools/BUILD.bazel
@@ -1,9 +1,10 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
-load("//src/dev/bazel:index.bzl", "jsts_transpiler")
+load("@npm//@bazel/typescript:index.bzl", "ts_config")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-server-http-tools"
PKG_REQUIRE_NAME = "@kbn/server-http-tools"
+TYPES_PKG_REQUIRE_NAME = "@types/kbn__server-http-tools"
SOURCE_FILES = glob(
[
@@ -82,7 +83,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
- deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
+ deps = RUNTIME_DEPS + [":target_node"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
@@ -101,3 +102,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)
+
+pkg_npm_types(
+ name = "npm_module_types",
+ srcs = SRCS,
+ deps = [":tsc_types"],
+ package_name = TYPES_PKG_REQUIRE_NAME,
+ tsconfig = ":tsconfig",
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "build_types",
+ srcs = [
+ ":npm_module_types",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/packages/kbn-server-http-tools/package.json b/packages/kbn-server-http-tools/package.json
index 9255dfe5c8d21..1d35f093c66e6 100644
--- a/packages/kbn-server-http-tools/package.json
+++ b/packages/kbn-server-http-tools/package.json
@@ -1,7 +1,6 @@
{
"name": "@kbn/server-http-tools",
"main": "./target_node/index.js",
- "types": "./target_types/index.d.ts",
"version": "1.0.0",
"license": "SSPL-1.0 OR Elastic License 2.0",
"private": true
diff --git a/packages/kbn-server-route-repository/BUILD.bazel b/packages/kbn-server-route-repository/BUILD.bazel
index 6e7e10d4dd816..103f15bbf5d6a 100644
--- a/packages/kbn-server-route-repository/BUILD.bazel
+++ b/packages/kbn-server-route-repository/BUILD.bazel
@@ -1,9 +1,10 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
-load("//src/dev/bazel:index.bzl", "jsts_transpiler")
+load("@npm//@bazel/typescript:index.bzl", "ts_config")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-server-route-repository"
PKG_REQUIRE_NAME = "@kbn/server-route-repository"
+TYPES_PKG_REQUIRE_NAME = "@types/kbn__server-route-repository"
SOURCE_FILES = glob(
[
@@ -78,7 +79,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
- deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
+ deps = RUNTIME_DEPS + [":target_node"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
@@ -97,3 +98,21 @@ filegroup(
],
visibility = ["//visibility:public"],
)
+
+pkg_npm_types(
+ name = "npm_module_types",
+ srcs = SRCS,
+ deps = [":tsc_types"],
+ package_name = TYPES_PKG_REQUIRE_NAME,
+ tsconfig = ":tsconfig",
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "build_types",
+ srcs = [
+ ":npm_module_types",
+ ],
+ visibility = ["//visibility:public"],
+)
+
diff --git a/packages/kbn-server-route-repository/package.json b/packages/kbn-server-route-repository/package.json
index 920abc2a3836f..32e59c896db00 100644
--- a/packages/kbn-server-route-repository/package.json
+++ b/packages/kbn-server-route-repository/package.json
@@ -1,7 +1,6 @@
{
"name": "@kbn/server-route-repository",
"main": "./target_node/index.js",
- "types": "./target_types/index.d.ts",
"version": "1.0.0",
"license": "SSPL-1.0 OR Elastic License 2.0",
"private": true
diff --git a/packages/kbn-server-route-repository/src/index.ts b/packages/kbn-server-route-repository/src/index.ts
index 1cc7bd0fdeebe..7ba2b53159551 100644
--- a/packages/kbn-server-route-repository/src/index.ts
+++ b/packages/kbn-server-route-repository/src/index.ts
@@ -21,4 +21,5 @@ export type {
ServerRouteRepository,
ServerRoute,
RouteParamsRT,
+ RouteState,
} from './typings';
diff --git a/packages/kbn-spec-to-console/BUILD.bazel b/packages/kbn-spec-to-console/BUILD.bazel
index 8a083be9fce91..5805c5a4975c3 100644
--- a/packages/kbn-spec-to-console/BUILD.bazel
+++ b/packages/kbn-spec-to-console/BUILD.bazel
@@ -1,4 +1,5 @@
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "pkg_npm")
PKG_BASE_NAME = "kbn-spec-to-console"
PKG_REQUIRE_NAME = "@kbn/spec-to-console"
@@ -27,14 +28,14 @@ NPM_MODULE_EXTRA_FILES = [
"README.md",
]
-DEPS = []
+RUNTIME_DEPS = []
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES + [
":srcs",
],
- deps = DEPS,
+ deps = RUNTIME_DEPS,
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
diff --git a/packages/kbn-std/BUILD.bazel b/packages/kbn-std/BUILD.bazel
index 182722c642238..1e45803dbdcf1 100644
--- a/packages/kbn-std/BUILD.bazel
+++ b/packages/kbn-std/BUILD.bazel
@@ -1,9 +1,10 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
-load("//src/dev/bazel:index.bzl", "jsts_transpiler")
+load("@npm//@bazel/typescript:index.bzl", "ts_config")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-std"
PKG_REQUIRE_NAME = "@kbn/std"
+TYPES_PKG_REQUIRE_NAME = "@types/kbn__std"
SOURCE_FILES = glob(
[
@@ -36,7 +37,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
- "//packages/kbn-utility-types",
+ "//packages/kbn-utility-types:npm_module_types",
"@npm//query-string",
"@npm//rxjs",
"@npm//tslib",
@@ -77,7 +78,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
- deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
+ deps = RUNTIME_DEPS + [":target_node"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
@@ -96,3 +97,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)
+
+pkg_npm_types(
+ name = "npm_module_types",
+ srcs = SRCS,
+ deps = [":tsc_types"],
+ package_name = TYPES_PKG_REQUIRE_NAME,
+ tsconfig = ":tsconfig",
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "build_types",
+ srcs = [
+ ":npm_module_types",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/packages/kbn-std/package.json b/packages/kbn-std/package.json
index cb4d6ad0d8aaf..12f52afbd05cd 100644
--- a/packages/kbn-std/package.json
+++ b/packages/kbn-std/package.json
@@ -1,7 +1,6 @@
{
"name": "@kbn/std",
"main": "./target_node/index.js",
- "types": "./target_types/index.d.ts",
"version": "1.0.0",
"license": "SSPL-1.0 OR Elastic License 2.0",
"private": true
diff --git a/packages/kbn-storybook/BUILD.bazel b/packages/kbn-storybook/BUILD.bazel
index 5dbe22b56c63f..92650e4bbca1f 100644
--- a/packages/kbn-storybook/BUILD.bazel
+++ b/packages/kbn-storybook/BUILD.bazel
@@ -51,7 +51,7 @@ TYPES_DEPS = [
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-ui-shared-deps-npm",
"//packages/kbn-ui-shared-deps-src",
- "//packages/kbn-utils",
+ "//packages/kbn-utils:npm_module_types",
"@npm//@storybook/addons",
"@npm//@storybook/api",
"@npm//@storybook/components",
diff --git a/packages/kbn-telemetry-tools/BUILD.bazel b/packages/kbn-telemetry-tools/BUILD.bazel
index d2ea3a704f154..1f53e4b71ae21 100644
--- a/packages/kbn-telemetry-tools/BUILD.bazel
+++ b/packages/kbn-telemetry-tools/BUILD.bazel
@@ -1,9 +1,10 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
-load("//src/dev/bazel:index.bzl", "jsts_transpiler")
+load("@npm//@bazel/typescript:index.bzl", "ts_config")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-telemetry-tools"
PKG_REQUIRE_NAME = "@kbn/telemetry-tools"
+TYPES_PKG_REQUIRE_NAME = "@types/kbn__telemetry-tools"
SOURCE_FILES = glob(
[
@@ -39,7 +40,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-dev-utils:npm_module_types",
- "//packages/kbn-utility-types",
+ "//packages/kbn-utility-types:npm_module_types",
"@npm//tslib",
"@npm//@types/glob",
"@npm//@types/jest",
@@ -81,7 +82,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
- deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
+ deps = RUNTIME_DEPS + [":target_node"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
@@ -100,3 +101,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)
+
+pkg_npm_types(
+ name = "npm_module_types",
+ srcs = SRCS,
+ deps = [":tsc_types"],
+ package_name = TYPES_PKG_REQUIRE_NAME,
+ tsconfig = ":tsconfig",
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "build_types",
+ srcs = [
+ ":npm_module_types",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/packages/kbn-telemetry-tools/package.json b/packages/kbn-telemetry-tools/package.json
index cb281524abefe..61960422402ce 100644
--- a/packages/kbn-telemetry-tools/package.json
+++ b/packages/kbn-telemetry-tools/package.json
@@ -3,7 +3,6 @@
"version": "1.0.0",
"license": "SSPL-1.0 OR Elastic License 2.0",
"main": "./target_node/index.js",
- "types": "./target_types/index.d.ts",
"private": true,
"kibana": {
"devOnly": true
diff --git a/packages/kbn-test-subj-selector/BUILD.bazel b/packages/kbn-test-subj-selector/BUILD.bazel
index 77751dc3e228a..f494b558ad5a6 100644
--- a/packages/kbn-test-subj-selector/BUILD.bazel
+++ b/packages/kbn-test-subj-selector/BUILD.bazel
@@ -1,4 +1,5 @@
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "pkg_npm")
PKG_BASE_NAME = "kbn-test-subj-selector"
PKG_REQUIRE_NAME = "@kbn/test-subj-selector"
@@ -20,14 +21,14 @@ NPM_MODULE_EXTRA_FILES = [
"README.md",
]
-DEPS = []
+RUNTIME_DEPS = []
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES + [
":srcs",
],
- deps = DEPS,
+ deps = RUNTIME_DEPS,
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
diff --git a/packages/kbn-test/BUILD.bazel b/packages/kbn-test/BUILD.bazel
index eae0fe2cdf5dc..1ff9677615f5a 100644
--- a/packages/kbn-test/BUILD.bazel
+++ b/packages/kbn-test/BUILD.bazel
@@ -77,7 +77,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-i18n-react:npm_module_types",
- "//packages/kbn-std",
+ "//packages/kbn-std:npm_module_types",
"//packages/kbn-utils",
"@npm//@elastic/elasticsearch",
"@npm//axios",
diff --git a/packages/kbn-test/src/jest/utils/testbed/index.ts b/packages/kbn-test/src/jest/utils/testbed/index.ts
index 0e839c180b6b6..a283bfc53f4ef 100644
--- a/packages/kbn-test/src/jest/utils/testbed/index.ts
+++ b/packages/kbn-test/src/jest/utils/testbed/index.ts
@@ -12,7 +12,6 @@ export type {
TestBedConfig,
AsyncTestBedConfig,
SetupFunc,
- UnwrapPromise,
SyncSetupFunc,
AsyncSetupFunc,
} from './types';
diff --git a/packages/kbn-test/src/jest/utils/testbed/types.ts b/packages/kbn-test/src/jest/utils/testbed/types.ts
index 924eaa2f81b15..11f8c802a9751 100644
--- a/packages/kbn-test/src/jest/utils/testbed/types.ts
+++ b/packages/kbn-test/src/jest/utils/testbed/types.ts
@@ -164,8 +164,3 @@ export interface MemoryRouterConfig {
/** A callBack that will be called with the React Router instance once mounted */
onRouter?: (router: any) => void;
}
-
-/**
- * Utility type: extracts returned type from a Promise.
- */
-export type UnwrapPromise = T extends Promise ? P : T;
diff --git a/packages/kbn-timelion-grammar/BUILD.bazel b/packages/kbn-timelion-grammar/BUILD.bazel
index 9302e650630f3..c483fa5c50a9f 100644
--- a/packages/kbn-timelion-grammar/BUILD.bazel
+++ b/packages/kbn-timelion-grammar/BUILD.bazel
@@ -1,5 +1,6 @@
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("@npm//peggy:index.bzl", "peggy")
+load("//src/dev/bazel:index.bzl", "pkg_npm")
PKG_BASE_NAME = "kbn-timelion-grammar"
PKG_REQUIRE_NAME = "@kbn/timelion-grammar"
diff --git a/packages/kbn-timelion-grammar/package.json b/packages/kbn-timelion-grammar/package.json
index 04b88b002fc47..58da1a8f70ac9 100644
--- a/packages/kbn-timelion-grammar/package.json
+++ b/packages/kbn-timelion-grammar/package.json
@@ -1,7 +1,7 @@
{
- "name": "@kbn/timelion-grammar",
- "version": "1.0.0",
- "license": "SSPL-1.0 OR Elastic License 2.0",
- "private": true,
- "main": "grammar/chain.js"
- }
\ No newline at end of file
+ "name": "@kbn/timelion-grammar",
+ "version": "1.0.0",
+ "license": "SSPL-1.0 OR Elastic License 2.0",
+ "private": true,
+ "main": "grammar/chain.js"
+}
\ No newline at end of file
diff --git a/packages/kbn-tinymath/BUILD.bazel b/packages/kbn-tinymath/BUILD.bazel
index 2596a30ea2efa..86b1a5186bbfd 100644
--- a/packages/kbn-tinymath/BUILD.bazel
+++ b/packages/kbn-tinymath/BUILD.bazel
@@ -1,5 +1,6 @@
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("@npm//peggy:index.bzl", "peggy")
+load("//src/dev/bazel:index.bzl", "pkg_npm")
PKG_BASE_NAME = "kbn-tinymath"
PKG_REQUIRE_NAME = "@kbn/tinymath"
@@ -26,7 +27,7 @@ NPM_MODULE_EXTRA_FILES = [
"README.md",
]
-DEPS = [
+RUNTIME_DEPS = [
"@npm//lodash",
]
@@ -49,7 +50,7 @@ js_library(
":srcs",
":grammar"
],
- deps = DEPS,
+ deps = RUNTIME_DEPS,
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
diff --git a/packages/kbn-ui-framework/BUILD.bazel b/packages/kbn-ui-framework/BUILD.bazel
index f8cf5035bdc5f..f38e10eafeec7 100644
--- a/packages/kbn-ui-framework/BUILD.bazel
+++ b/packages/kbn-ui-framework/BUILD.bazel
@@ -1,4 +1,5 @@
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "pkg_npm")
PKG_BASE_NAME = "kbn-ui-framework"
PKG_REQUIRE_NAME = "@kbn/ui-framework"
@@ -19,14 +20,14 @@ NPM_MODULE_EXTRA_FILES = [
"README.md",
]
-DEPS = []
+RUNTIME_DEPS = []
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES + [
":srcs",
],
- deps = DEPS,
+ deps = RUNTIME_DEPS,
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel
index f7e1fe27475c6..e32834b3f2e8f 100644
--- a/packages/kbn-ui-shared-deps-src/BUILD.bazel
+++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel
@@ -48,7 +48,7 @@ TYPES_DEPS = [
"//packages/kbn-i18n:npm_module_types",
"//packages/kbn-i18n-react:npm_module_types",
"//packages/kbn-monaco:npm_module_types",
- "//packages/kbn-std",
+ "//packages/kbn-std:npm_module_types",
"//packages/kbn-ui-shared-deps-npm",
"@npm//@elastic/eui",
"@npm//webpack",
diff --git a/packages/kbn-utility-types/BUILD.bazel b/packages/kbn-utility-types/BUILD.bazel
index 8b63eea537aa6..159ab134684f8 100644
--- a/packages/kbn-utility-types/BUILD.bazel
+++ b/packages/kbn-utility-types/BUILD.bazel
@@ -1,9 +1,10 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
-load("//src/dev/bazel:index.bzl", "jsts_transpiler")
+load("@npm//@bazel/typescript:index.bzl", "ts_config")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-utility-types"
PKG_REQUIRE_NAME = "@kbn/utility-types"
+TYPES_PKG_REQUIRE_NAME = "@types/kbn__utility-types"
SOURCE_FILES = glob([
"src/jest/index.ts",
@@ -66,7 +67,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
- deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
+ deps = RUNTIME_DEPS + [":target_node"],
package_name = "@kbn/utility-types",
visibility = ["//visibility:public"],
)
@@ -85,3 +86,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)
+
+pkg_npm_types(
+ name = "npm_module_types",
+ srcs = SRCS,
+ deps = [":tsc_types"],
+ package_name = TYPES_PKG_REQUIRE_NAME,
+ tsconfig = ":tsconfig",
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "build_types",
+ srcs = [
+ ":npm_module_types",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/packages/kbn-utility-types/README.md b/packages/kbn-utility-types/README.md
index b57e98e379707..2e7fd0e166d43 100644
--- a/packages/kbn-utility-types/README.md
+++ b/packages/kbn-utility-types/README.md
@@ -9,10 +9,10 @@ TypeScript utility types for usage in Kibana.
## Usage
```ts
-import { UnwrapPromise } from '@kbn/utility-types';
+import { UnwrapObservable } from '@kbn/utility-types';
-type A = Promise;
-type B = UnwrapPromise; // string
+type A = Observable;
+type B = UnwrapObservable; // string
```
@@ -27,6 +27,4 @@ type B = UnwrapPromise ; // string
- `ShallowPromise` — Same as `Promise` type, but it flat maps the wrapped type.
- `UnionToIntersection` — Converts a union of types into an intersection.
- `UnwrapObservable` — Returns wrapped type of an observable.
-- `UnwrapPromise` — Returns wrapped type of a promise.
-- `UnwrapPromiseOrReturn` — Returns wrapped type of a promise or the type itself, if it isn't a promise.
- `Values` — Returns object or array value types.
diff --git a/packages/kbn-utility-types/package.json b/packages/kbn-utility-types/package.json
index 61f5cd42c4f8b..f79164388f18b 100644
--- a/packages/kbn-utility-types/package.json
+++ b/packages/kbn-utility-types/package.json
@@ -4,7 +4,6 @@
"private": true,
"license": "SSPL-1.0 OR Elastic License 2.0",
"main": "target_node/index.js",
- "types": "target_types/index.d.ts",
"kibana": {
"devOnly": false
},
diff --git a/packages/kbn-utility-types/src/index.ts b/packages/kbn-utility-types/src/index.ts
index 92aa8d7ecc989..277b4a70e415a 100644
--- a/packages/kbn-utility-types/src/index.ts
+++ b/packages/kbn-utility-types/src/index.ts
@@ -6,7 +6,6 @@
* Side Public License, v 1.
*/
-import { PromiseType } from 'utility-types';
export type { $Values, Assign, Class, Optional, Required } from 'utility-types';
export type {
@@ -27,16 +26,6 @@ export type MaybePromise = T | Promise;
*/
export type ShallowPromise = T extends Promise ? Promise : Promise;
-/**
- * Returns wrapped type of a `Promise`.
- */
-export type UnwrapPromise> = PromiseType;
-
-/**
- * Returns wrapped type of a promise, or returns type as is, if it is not a promise.
- */
-export type UnwrapPromiseOrReturn = T extends Promise ? U : T;
-
/**
* Minimal interface for an object resembling an `Observable`.
*/
diff --git a/packages/kbn-utils/BUILD.bazel b/packages/kbn-utils/BUILD.bazel
index c4d256e7672ab..6ac23129a1d03 100644
--- a/packages/kbn-utils/BUILD.bazel
+++ b/packages/kbn-utils/BUILD.bazel
@@ -1,9 +1,10 @@
-load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
-load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
-load("//src/dev/bazel:index.bzl", "jsts_transpiler")
+load("@npm//@bazel/typescript:index.bzl", "ts_config")
+load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
+load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-utils"
PKG_REQUIRE_NAME = "@kbn/utils"
+TYPES_PKG_REQUIRE_NAME = "@types/kbn__utils"
SOURCE_FILES = glob(
[
@@ -89,3 +90,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)
+
+pkg_npm_types(
+ name = "npm_module_types",
+ srcs = SRCS,
+ deps = [":tsc_types"],
+ package_name = TYPES_PKG_REQUIRE_NAME,
+ tsconfig = ":tsconfig",
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "build_types",
+ srcs = [
+ ":npm_module_types",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/packages/kbn-utils/package.json b/packages/kbn-utils/package.json
index 5b99c4a356169..596f0548202de 100644
--- a/packages/kbn-utils/package.json
+++ b/packages/kbn-utils/package.json
@@ -1,7 +1,6 @@
{
"name": "@kbn/utils",
"main": "./target_node/index.js",
- "types": "./target_types/index.d.ts",
"version": "1.0.0",
"license": "SSPL-1.0 OR Elastic License 2.0",
"private": true
diff --git a/src/core/public/core_app/status/lib/load_status.ts b/src/core/public/core_app/status/lib/load_status.ts
index 2d81d51128926..0994e55c31c38 100644
--- a/src/core/public/core_app/status/lib/load_status.ts
+++ b/src/core/public/core_app/status/lib/load_status.ts
@@ -7,7 +7,6 @@
*/
import { i18n } from '@kbn/i18n';
-import type { UnwrapPromise } from '@kbn/utility-types';
import type { StatusResponse, ServiceStatus, ServiceStatusLevel } from '../../../../types/status';
import type { HttpSetup } from '../../../http';
import type { NotificationsSetup } from '../../../notifications';
@@ -230,4 +229,4 @@ export async function loadStatus({
};
}
-export type ProcessedServerResponse = UnwrapPromise>;
+export type ProcessedServerResponse = Awaited>;
diff --git a/src/core/public/doc_links/doc_links_service.ts b/src/core/public/doc_links/doc_links_service.ts
index 07a7d80ffdec0..ab0613280673b 100644
--- a/src/core/public/doc_links/doc_links_service.ts
+++ b/src/core/public/doc_links/doc_links_service.ts
@@ -289,6 +289,7 @@ export class DocLinksService {
migrationApiDeprecation: `${ELASTICSEARCH_DOCS}migration-api-deprecation.html`,
nodeRoles: `${ELASTICSEARCH_DOCS}modules-node.html#node-roles`,
releaseHighlights: `${ELASTICSEARCH_DOCS}release-highlights.html`,
+ version8ReleaseHighlights: `${ELASTIC_WEBSITE_URL}guide/en/elastic-stack/8.0/elastic-stack-highlights.html`,
remoteClusters: `${ELASTICSEARCH_DOCS}remote-clusters.html`,
remoteClustersProxy: `${ELASTICSEARCH_DOCS}remote-clusters.html#proxy-mode`,
remoteClusersProxySettings: `${ELASTICSEARCH_DOCS}remote-clusters-settings.html#remote-cluster-proxy-settings`,
@@ -311,6 +312,7 @@ export class DocLinksService {
},
securitySolution: {
trustedApps: `${ELASTIC_WEBSITE_URL}guide/en/security/${DOC_LINK_VERSION}/trusted-apps-ov.html`,
+ eventFilters: `${ELASTIC_WEBSITE_URL}guide/en/security/${DOC_LINK_VERSION}/event-filters.html`,
},
query: {
eql: `${ELASTICSEARCH_DOCS}eql.html`,
@@ -801,6 +803,7 @@ export interface DocLinksStart {
};
readonly securitySolution: {
readonly trustedApps: string;
+ readonly eventFilters: string;
};
readonly query: {
readonly eql: string;
diff --git a/src/core/public/public.api.md b/src/core/public/public.api.md
index 458e03fbd734e..a664e671d396d 100644
--- a/src/core/public/public.api.md
+++ b/src/core/public/public.api.md
@@ -696,6 +696,7 @@ export interface DocLinksStart {
};
readonly securitySolution: {
readonly trustedApps: string;
+ readonly eventFilters: string;
};
readonly query: {
readonly eql: string;
@@ -1498,7 +1499,7 @@ export interface SavedObjectsFindOptions {
// (undocumented)
sortField?: string;
// (undocumented)
- sortOrder?: estypes.SearchSortOrder;
+ sortOrder?: estypes.SortOrder;
// (undocumented)
type: string | string[];
typeToNamespacesMap?: Map;
diff --git a/src/core/server/core_usage_data/core_usage_data_service.ts b/src/core/server/core_usage_data/core_usage_data_service.ts
index 2e76bc08658a2..c59eab70d44c7 100644
--- a/src/core/server/core_usage_data/core_usage_data_service.ts
+++ b/src/core/server/core_usage_data/core_usage_data_service.ts
@@ -13,9 +13,9 @@ import { hasConfigPathIntersection, ChangedDeprecatedPaths } from '@kbn/config';
import { CoreService } from 'src/core/types';
import { Logger, SavedObjectsServiceStart, SavedObjectTypeRegistry } from 'src/core/server';
-import {
- AggregationsFiltersAggregate,
- AggregationsFiltersBucketItem,
+import type {
+ AggregationsMultiBucketAggregateBase,
+ AggregationsSingleBucketAggregateBase,
SearchTotalHits,
} from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { CoreContext } from '../core_context';
@@ -75,6 +75,13 @@ const kibanaOrTaskManagerIndex = (index: string, kibanaConfigIndex: string) => {
return index === kibanaConfigIndex ? '.kibana' : '.kibana_task_manager';
};
+interface UsageDataAggs extends AggregationsMultiBucketAggregateBase {
+ buckets: {
+ disabled: AggregationsSingleBucketAggregateBase;
+ active: AggregationsSingleBucketAggregateBase;
+ };
+}
+
export class CoreUsageDataService
implements CoreService
{
@@ -153,7 +160,10 @@ export class CoreUsageDataService
private async getSavedObjectAliasUsageData(elasticsearch: ElasticsearchServiceStart) {
// Note: this agg can be changed to use `savedObjectsRepository.find` in the future after `filters` is supported.
// See src/core/server/saved_objects/service/lib/aggregations/aggs_types/bucket_aggs.ts for supported aggregations.
- const { body: resp } = await elasticsearch.client.asInternalUser.search({
+ const { body: resp } = await elasticsearch.client.asInternalUser.search<
+ unknown,
+ { aliases: UsageDataAggs }
+ >({
index: kibanaIndex,
body: {
track_total_hits: true,
@@ -179,10 +189,10 @@ export class CoreUsageDataService
const { hits, aggregations } = resp;
const totalCount = (hits.total as SearchTotalHits).value;
- const aggregate = aggregations!.aliases as AggregationsFiltersAggregate;
- const buckets = aggregate.buckets as Record;
- const disabledCount = buckets.disabled.doc_count as number;
- const activeCount = buckets.active.doc_count as number;
+ const aggregate = aggregations!.aliases;
+ const buckets = aggregate.buckets;
+ const disabledCount = buckets.disabled.doc_count;
+ const activeCount = buckets.active.doc_count;
const inactiveCount = totalCount - disabledCount - activeCount;
return { totalCount, disabledCount, activeCount, inactiveCount };
diff --git a/src/core/server/elasticsearch/client/mocks.ts b/src/core/server/elasticsearch/client/mocks.ts
index 16eaf6c49a735..4cb31438791e0 100644
--- a/src/core/server/elasticsearch/client/mocks.ts
+++ b/src/core/server/elasticsearch/client/mocks.ts
@@ -12,6 +12,7 @@ import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import type { PublicKeys } from '@kbn/utility-types';
import { ElasticsearchClient } from './types';
import { ICustomClusterClient } from './cluster_client';
+import { PRODUCT_RESPONSE_HEADER } from '../supported_server_response_check';
const omittedProps = [
'diagnostic',
@@ -22,9 +23,6 @@ const omittedProps = [
'helpers',
] as Array>;
-// the product header expected in every response from es
-const PRODUCT_RESPONSE_HEADER = 'x-elastic-product';
-
// use jest.requireActual() to prevent weird errors when people mock @elastic/elasticsearch
const { Client: UnmockedClient } = jest.requireActual('@elastic/elasticsearch');
const createInternalClientMock = (res?: Promise): DeeplyMockedKeys => {
diff --git a/src/core/server/elasticsearch/index.ts b/src/core/server/elasticsearch/index.ts
index 64587552d1fb8..69e8a549f20ac 100644
--- a/src/core/server/elasticsearch/index.ts
+++ b/src/core/server/elasticsearch/index.ts
@@ -42,3 +42,8 @@ export type {
} from './client';
export { getRequestDebugMeta, getErrorMessage } from './client';
export { pollEsNodesVersion } from './version_check/ensure_es_version';
+export {
+ isSupportedEsServer,
+ isNotFoundFromUnsupportedServer,
+ PRODUCT_RESPONSE_HEADER,
+} from './supported_server_response_check';
diff --git a/src/core/server/elasticsearch/supported_server_response_check.test.ts b/src/core/server/elasticsearch/supported_server_response_check.test.ts
new file mode 100644
index 0000000000000..589e947142fc3
--- /dev/null
+++ b/src/core/server/elasticsearch/supported_server_response_check.test.ts
@@ -0,0 +1,41 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import { isNotFoundFromUnsupportedServer } from './supported_server_response_check';
+
+describe('#isNotFoundFromUnsupportedServer', () => {
+ it('returns true with not found response from unsupported server', () => {
+ const rawResponse = {
+ statusCode: 404,
+ headers: {},
+ };
+
+ const result = isNotFoundFromUnsupportedServer(rawResponse);
+ expect(result).toBe(true);
+ });
+
+ it('returns false with not found response from supported server', async () => {
+ const rawResponse = {
+ statusCode: 404,
+ headers: { 'x-elastic-product': 'Elasticsearch' },
+ };
+
+ const result = isNotFoundFromUnsupportedServer(rawResponse);
+ expect(result).toBe(false);
+ });
+
+ it('returns false when not a 404', async () => {
+ const rawResponse = {
+ statusCode: 200,
+ headers: { 'x-elastic-product': 'Elasticsearch' },
+ };
+
+ const result = isNotFoundFromUnsupportedServer(rawResponse);
+ expect(result).toBe(false);
+ });
+});
diff --git a/src/core/server/elasticsearch/supported_server_response_check.ts b/src/core/server/elasticsearch/supported_server_response_check.ts
new file mode 100644
index 0000000000000..91aa06e132de8
--- /dev/null
+++ b/src/core/server/elasticsearch/supported_server_response_check.ts
@@ -0,0 +1,35 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+export const PRODUCT_RESPONSE_HEADER = 'x-elastic-product';
+/**
+ * Response headers check to determine if the response is from Elasticsearch
+ * @param headers Response headers
+ * @returns boolean
+ */
+// This check belongs to the elasticsearch service as a dedicated helper method.
+export const isSupportedEsServer = (
+ headers: Record | null | undefined
+) => {
+ return !!headers && headers[PRODUCT_RESPONSE_HEADER] === 'Elasticsearch';
+};
+
+/**
+ * Check to ensure that a 404 response does not come from Elasticsearch
+ *
+ * WARNING: This is a hack to work around for 404 responses returned from a proxy.
+ * We're aiming to minimise the risk of data loss when consumers act on Not Found errors
+ *
+ * @param response response from elasticsearch client call
+ * @returns boolean 'true' if the status code is 404 and the Elasticsearch product header is missing/unexpected value
+ */
+export const isNotFoundFromUnsupportedServer = (args: {
+ statusCode: number | null;
+ headers: Record | null;
+}): boolean => {
+ return args.statusCode === 404 && !isSupportedEsServer(args.headers);
+};
diff --git a/src/core/server/http/http_server.test.ts b/src/core/server/http/http_server.test.ts
index 8585b564090e5..1e26729545cbf 100644
--- a/src/core/server/http/http_server.test.ts
+++ b/src/core/server/http/http_server.test.ts
@@ -1587,79 +1587,3 @@ describe('setup contract', () => {
});
});
});
-
-describe('Graceful shutdown', () => {
- let shutdownTimeout: number;
- let innerServerListener: Server;
-
- beforeEach(async () => {
- shutdownTimeout = config.shutdownTimeout.asMilliseconds();
- const { registerRouter, server: innerServer } = await server.setup(config);
- innerServerListener = innerServer.listener;
-
- const router = new Router('', logger, enhanceWithContext);
- router.post(
- {
- path: '/',
- validate: false,
- options: { body: { accepts: 'application/json' } },
- },
- async (context, req, res) => {
- // It takes to resolve the same period of the shutdownTimeout.
- // Since we'll trigger the stop a few ms after, it should have time to finish
- await new Promise((resolve) => setTimeout(resolve, shutdownTimeout));
- return res.ok({ body: { ok: 1 } });
- }
- );
- registerRouter(router);
-
- await server.start();
- });
-
- test('any ongoing requests should be resolved with `connection: close`', async () => {
- const [response] = await Promise.all([
- // Trigger a request that should hold the server from stopping until fulfilled
- supertest(innerServerListener).post('/'),
- // Stop the server while the request is in progress
- (async () => {
- await new Promise((resolve) => setTimeout(resolve, shutdownTimeout / 3));
- await server.stop();
- })(),
- ]);
-
- expect(response.status).toBe(200);
- expect(response.body).toStrictEqual({ ok: 1 });
- // The server is about to be closed, we need to ask connections to close on their end (stop their keep-alive policies)
- expect(response.header.connection).toBe('close');
- });
-
- test('any requests triggered while stopping should be rejected with 503', async () => {
- const [, , response] = await Promise.all([
- // Trigger a request that should hold the server from stopping until fulfilled (otherwise the server will stop straight away)
- supertest(innerServerListener).post('/'),
- // Stop the server while the request is in progress
- (async () => {
- await new Promise((resolve) => setTimeout(resolve, shutdownTimeout / 3));
- await server.stop();
- })(),
- // Trigger a new request while shutting down (should be rejected)
- (async () => {
- await new Promise((resolve) => setTimeout(resolve, (2 * shutdownTimeout) / 3));
- return supertest(innerServerListener).post('/');
- })(),
- ]);
- expect(response.status).toBe(503);
- expect(response.body).toStrictEqual({
- statusCode: 503,
- error: 'Service Unavailable',
- message: 'Kibana is shutting down and not accepting new incoming requests',
- });
- expect(response.header.connection).toBe('close');
- });
-
- test('when no ongoing connections, the server should stop without waiting any longer', async () => {
- const preStop = Date.now();
- await server.stop();
- expect(Date.now() - preStop).toBeLessThan(shutdownTimeout);
- });
-});
diff --git a/src/core/server/http/integration_tests/http_server.test.ts b/src/core/server/http/integration_tests/http_server.test.ts
new file mode 100644
index 0000000000000..edb5a3167ce2b
--- /dev/null
+++ b/src/core/server/http/integration_tests/http_server.test.ts
@@ -0,0 +1,124 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import { Server } from 'http';
+import supertest from 'supertest';
+import moment from 'moment';
+import { of } from 'rxjs';
+import { ByteSizeValue } from '@kbn/config-schema';
+import { HttpConfig } from '../http_config';
+import { loggingSystemMock } from '../../logging/logging_system.mock';
+import { Router } from '../router';
+import { HttpServer } from '../http_server';
+
+describe('Http server', () => {
+ let server: HttpServer;
+ let config: HttpConfig;
+ let logger: ReturnType;
+ const enhanceWithContext = (fn: (...args: any[]) => any) => fn.bind(null, {});
+
+ beforeEach(() => {
+ const loggingService = loggingSystemMock.create();
+ logger = loggingSystemMock.createLogger();
+
+ config = {
+ name: 'kibana',
+ host: '127.0.0.1',
+ maxPayload: new ByteSizeValue(1024),
+ port: 10002,
+ ssl: { enabled: false },
+ compression: { enabled: true },
+ requestId: {
+ allowFromAnyIp: true,
+ ipAllowlist: [],
+ },
+ cors: {
+ enabled: false,
+ },
+ shutdownTimeout: moment.duration(5, 's'),
+ } as any;
+
+ server = new HttpServer(loggingService, 'tests', of(config.shutdownTimeout));
+ });
+
+ describe('Graceful shutdown', () => {
+ let shutdownTimeout: number;
+ let innerServerListener: Server;
+
+ beforeEach(async () => {
+ shutdownTimeout = config.shutdownTimeout.asMilliseconds();
+ const { registerRouter, server: innerServer } = await server.setup(config);
+ innerServerListener = innerServer.listener;
+
+ const router = new Router('', logger, enhanceWithContext);
+ router.post(
+ {
+ path: '/',
+ validate: false,
+ options: { body: { accepts: 'application/json' } },
+ },
+ async (context, req, res) => {
+ // It takes to resolve the same period of the shutdownTimeout.
+ // Since we'll trigger the stop a few ms after, it should have time to finish
+ await new Promise((resolve) => setTimeout(resolve, shutdownTimeout));
+ return res.ok({ body: { ok: 1 } });
+ }
+ );
+ registerRouter(router);
+
+ await server.start();
+ });
+
+ test('any ongoing requests should be resolved with `connection: close`', async () => {
+ const [response] = await Promise.all([
+ // Trigger a request that should hold the server from stopping until fulfilled
+ supertest(innerServerListener).post('/'),
+ // Stop the server while the request is in progress
+ (async () => {
+ await new Promise((resolve) => setTimeout(resolve, shutdownTimeout / 3));
+ await server.stop();
+ })(),
+ ]);
+
+ expect(response.status).toBe(200);
+ expect(response.body).toStrictEqual({ ok: 1 });
+ // The server is about to be closed, we need to ask connections to close on their end (stop their keep-alive policies)
+ expect(response.header.connection).toBe('close');
+ });
+
+ test('any requests triggered while stopping should be rejected with 503', async () => {
+ const [, , response] = await Promise.all([
+ // Trigger a request that should hold the server from stopping until fulfilled (otherwise the server will stop straight away)
+ supertest(innerServerListener).post('/'),
+ // Stop the server while the request is in progress
+ (async () => {
+ await new Promise((resolve) => setTimeout(resolve, shutdownTimeout / 3));
+ await server.stop();
+ })(),
+ // Trigger a new request while shutting down (should be rejected)
+ (async () => {
+ await new Promise((resolve) => setTimeout(resolve, (2 * shutdownTimeout) / 3));
+ return supertest(innerServerListener).post('/');
+ })(),
+ ]);
+ expect(response.status).toBe(503);
+ expect(response.body).toStrictEqual({
+ statusCode: 503,
+ error: 'Service Unavailable',
+ message: 'Kibana is shutting down and not accepting new incoming requests',
+ });
+ expect(response.header.connection).toBe('close');
+ });
+
+ test('when no ongoing connections, the server should stop without waiting any longer', async () => {
+ const preStop = Date.now();
+ await server.stop();
+ expect(Date.now() - preStop).toBeLessThan(shutdownTimeout);
+ });
+ });
+});
diff --git a/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts b/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts
index a32ff72375e8a..cd3634ec16fb0 100644
--- a/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts
+++ b/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts
@@ -331,7 +331,7 @@ describe('migration actions', () => {
// Allocate 1 replica so that this index stays yellow
number_of_replicas: '1',
// Disable all shard allocation so that the index status is red
- 'index.routing.allocation.enable': 'none',
+ index: { routing: { allocation: { enable: 'none' } } },
},
},
})
@@ -395,7 +395,7 @@ describe('migration actions', () => {
// Allocate 1 replica so that this index stays yellow
number_of_replicas: '1',
// Disable all shard allocation so that the index status is red
- 'index.routing.allocation.enable': 'none',
+ index: { routing: { allocation: { enable: 'none' } } },
},
},
})
@@ -1450,7 +1450,7 @@ describe('migration actions', () => {
// Allocate 1 replica so that this index stays yellow
number_of_replicas: '1',
// Disable all shard allocation so that the index status is red
- 'index.routing.allocation.enable': 'none',
+ index: { routing: { allocation: { enable: 'none' } } },
},
},
},
@@ -1567,8 +1567,8 @@ describe('migration actions', () => {
}
`);
});
- // TODO: unskip after https://github.com/elastic/kibana/issues/116111
- it.skip('resolves left request_entity_too_large_exception when the payload is too large', async () => {
+
+ it('resolves left request_entity_too_large_exception when the payload is too large', async () => {
const newDocs = new Array(10000).fill({
_source: {
title:
diff --git a/src/core/server/saved_objects/migrations/integration_tests/7_13_0_unknown_types.test.ts b/src/core/server/saved_objects/migrations/integration_tests/7_13_0_unknown_types.test.ts
index 0791b0db30c93..27107d4df27f9 100644
--- a/src/core/server/saved_objects/migrations/integration_tests/7_13_0_unknown_types.test.ts
+++ b/src/core/server/saved_objects/migrations/integration_tests/7_13_0_unknown_types.test.ts
@@ -97,8 +97,7 @@ describe('migration v2', () => {
{ index: '.kibana_7.13.0_001' },
{ meta: true }
);
- const settings = response['.kibana_7.13.0_001']
- .settings as estypes.IndicesIndexStatePrefixedSettings;
+ const settings = response['.kibana_7.13.0_001'].settings as estypes.IndicesIndexSettings;
expect(settings.index).not.toBeUndefined();
expect(settings.index!.blocks?.write).not.toEqual('true');
}
diff --git a/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes_exceeds_es_content_length.test.ts b/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes_exceeds_es_content_length.test.ts
index d992193730a34..33f00248a110a 100644
--- a/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes_exceeds_es_content_length.test.ts
+++ b/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes_exceeds_es_content_length.test.ts
@@ -20,8 +20,7 @@ async function removeLogFile() {
await fs.unlink(logFilePath).catch(() => void 0);
}
-// un-skip after https://github.com/elastic/kibana/issues/116111
-describe.skip('migration v2', () => {
+describe('migration v2', () => {
let esServer: kbnTestServer.TestElasticsearchUtils;
let root: Root;
let startES: () => Promise;
@@ -111,7 +110,7 @@ function createRoot(options: { maxBatchSizeBytes?: number }) {
},
},
{
- oss: true,
+ oss: false,
}
);
}
diff --git a/src/core/server/saved_objects/migrations/next.ts b/src/core/server/saved_objects/migrations/next.ts
index 1368ca308110d..419b350a0b5f6 100644
--- a/src/core/server/saved_objects/migrations/next.ts
+++ b/src/core/server/saved_objects/migrations/next.ts
@@ -6,7 +6,6 @@
* Side Public License, v 1.
*/
-import type { UnwrapPromise } from '@kbn/utility-types';
import type {
AllActionStates,
ReindexSourceToTempOpenPit,
@@ -53,7 +52,7 @@ type ActionMap = ReturnType;
* E.g. given 'INIT', provides the response type of the action triggered by
* `next` in the 'INIT' control state.
*/
-export type ResponseType = UnwrapPromise<
+export type ResponseType = Awaited<
ReturnType>
>;
diff --git a/src/core/server/saved_objects/routes/integration_tests/bulk_create.test.ts b/src/core/server/saved_objects/routes/integration_tests/bulk_create.test.ts
index 80229894b90f1..be3659f0a5ac4 100644
--- a/src/core/server/saved_objects/routes/integration_tests/bulk_create.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/bulk_create.test.ts
@@ -7,7 +7,6 @@
*/
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerBulkCreateRoute } from '../bulk_create';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -15,7 +14,7 @@ import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_st
import { coreUsageDataServiceMock } from '../../../core_usage_data/core_usage_data_service.mock';
import { setupServer } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('POST /api/saved_objects/_bulk_create', () => {
let server: SetupServerReturn['server'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/bulk_get.test.ts b/src/core/server/saved_objects/routes/integration_tests/bulk_get.test.ts
index e102da7bdfe0a..4c59d9838e561 100644
--- a/src/core/server/saved_objects/routes/integration_tests/bulk_get.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/bulk_get.test.ts
@@ -7,7 +7,6 @@
*/
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerBulkGetRoute } from '../bulk_get';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -15,7 +14,7 @@ import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_st
import { coreUsageDataServiceMock } from '../../../core_usage_data/core_usage_data_service.mock';
import { setupServer } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('POST /api/saved_objects/_bulk_get', () => {
let server: SetupServerReturn['server'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/bulk_resolve.test.ts b/src/core/server/saved_objects/routes/integration_tests/bulk_resolve.test.ts
index d8cdb709d5969..9fd2d66830b0a 100644
--- a/src/core/server/saved_objects/routes/integration_tests/bulk_resolve.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/bulk_resolve.test.ts
@@ -7,7 +7,6 @@
*/
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerBulkResolveRoute } from '../bulk_resolve';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -15,7 +14,7 @@ import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_st
import { coreUsageDataServiceMock } from '../../../core_usage_data/core_usage_data_service.mock';
import { setupServer } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('POST /api/saved_objects/_bulk_resolve', () => {
let server: SetupServerReturn['server'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/bulk_update.test.ts b/src/core/server/saved_objects/routes/integration_tests/bulk_update.test.ts
index 481635fe0f6e4..886cca83ee849 100644
--- a/src/core/server/saved_objects/routes/integration_tests/bulk_update.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/bulk_update.test.ts
@@ -7,7 +7,6 @@
*/
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerBulkUpdateRoute } from '../bulk_update';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -15,7 +14,7 @@ import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_st
import { coreUsageDataServiceMock } from '../../../core_usage_data/core_usage_data_service.mock';
import { setupServer } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('PUT /api/saved_objects/_bulk_update', () => {
let server: SetupServerReturn['server'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/create.test.ts b/src/core/server/saved_objects/routes/integration_tests/create.test.ts
index 2874219d695d1..9d65843271cc0 100644
--- a/src/core/server/saved_objects/routes/integration_tests/create.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/create.test.ts
@@ -7,7 +7,6 @@
*/
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerCreateRoute } from '../create';
import { savedObjectsClientMock } from '../../service/saved_objects_client.mock';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -15,7 +14,7 @@ import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_st
import { coreUsageDataServiceMock } from '../../../core_usage_data/core_usage_data_service.mock';
import { setupServer } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('POST /api/saved_objects/{type}', () => {
let server: SetupServerReturn['server'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/delete.test.ts b/src/core/server/saved_objects/routes/integration_tests/delete.test.ts
index eaec6e16cbd8c..66f0e2ffb877d 100644
--- a/src/core/server/saved_objects/routes/integration_tests/delete.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/delete.test.ts
@@ -7,7 +7,6 @@
*/
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerDeleteRoute } from '../delete';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -15,7 +14,7 @@ import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_st
import { coreUsageDataServiceMock } from '../../../core_usage_data/core_usage_data_service.mock';
import { setupServer } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('DELETE /api/saved_objects/{type}/{id}', () => {
let server: SetupServerReturn['server'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/delete_unknown_types.test.ts b/src/core/server/saved_objects/routes/integration_tests/delete_unknown_types.test.ts
index ef1c711536b00..2501a430df8a3 100644
--- a/src/core/server/saved_objects/routes/integration_tests/delete_unknown_types.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/delete_unknown_types.test.ts
@@ -7,14 +7,13 @@
*/
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerDeleteUnknownTypesRoute } from '../deprecations';
import { elasticsearchServiceMock } from '../../../../../core/server/elasticsearch/elasticsearch_service.mock';
import { typeRegistryMock } from '../../saved_objects_type_registry.mock';
import { setupServer } from '../test_utils';
import { SavedObjectsType } from 'kibana/server';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('POST /internal/saved_objects/deprecations/_delete_unknown_types', () => {
const kibanaVersion = '8.0.0';
diff --git a/src/core/server/saved_objects/routes/integration_tests/export.test.ts b/src/core/server/saved_objects/routes/integration_tests/export.test.ts
index 09d475f29f362..1227d2636c555 100644
--- a/src/core/server/saved_objects/routes/integration_tests/export.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/export.test.ts
@@ -11,7 +11,6 @@ jest.mock('../../export', () => ({
}));
import supertest from 'supertest';
-import type { UnwrapPromise } from '@kbn/utility-types';
import { createListStream } from '@kbn/utils';
import { CoreUsageStatsClient } from '../../../core_usage_data';
import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_stats_client.mock';
@@ -21,7 +20,7 @@ import { SavedObjectConfig } from '../../saved_objects_config';
import { registerExportRoute } from '../export';
import { setupServer, createExportableType } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
const allowedTypes = ['index-pattern', 'search'];
const config = {
maxImportPayloadBytes: 26214400,
diff --git a/src/core/server/saved_objects/routes/integration_tests/find.test.ts b/src/core/server/saved_objects/routes/integration_tests/find.test.ts
index 3bd2484c2e30f..43821c03cbcd6 100644
--- a/src/core/server/saved_objects/routes/integration_tests/find.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/find.test.ts
@@ -9,7 +9,6 @@
import supertest from 'supertest';
import querystring from 'querystring';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerFindRoute } from '../find';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -17,7 +16,7 @@ import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_st
import { coreUsageDataServiceMock } from '../../../core_usage_data/core_usage_data_service.mock';
import { setupServer } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('GET /api/saved_objects/_find', () => {
let server: SetupServerReturn['server'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/import.test.ts b/src/core/server/saved_objects/routes/integration_tests/import.test.ts
index be4d2160a967b..64c79b3424376 100644
--- a/src/core/server/saved_objects/routes/integration_tests/import.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/import.test.ts
@@ -8,7 +8,6 @@
import { mockUuidv4 } from '../../import/lib/__mocks__';
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerImportRoute } from '../import';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -18,7 +17,7 @@ import { SavedObjectConfig } from '../../saved_objects_config';
import { setupServer, createExportableType } from '../test_utils';
import { SavedObjectsErrorHelpers, SavedObjectsImporter } from '../..';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
const { v4: uuidv4 } = jest.requireActual('uuid');
const allowedTypes = ['index-pattern', 'visualization', 'dashboard'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/resolve_import_errors.test.ts b/src/core/server/saved_objects/routes/integration_tests/resolve_import_errors.test.ts
index d84b56156b543..99139d82821c5 100644
--- a/src/core/server/saved_objects/routes/integration_tests/resolve_import_errors.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/resolve_import_errors.test.ts
@@ -8,7 +8,6 @@
import { mockUuidv4 } from '../../import/lib/__mocks__';
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerResolveImportErrorsRoute } from '../resolve_import_errors';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -18,7 +17,7 @@ import { setupServer, createExportableType } from '../test_utils';
import { SavedObjectConfig } from '../../saved_objects_config';
import { SavedObjectsImporter } from '../..';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
const { v4: uuidv4 } = jest.requireActual('uuid');
const allowedTypes = ['index-pattern', 'visualization', 'dashboard'];
diff --git a/src/core/server/saved_objects/routes/integration_tests/update.test.ts b/src/core/server/saved_objects/routes/integration_tests/update.test.ts
index 31f8ff8b40c80..4aa01f7f697a8 100644
--- a/src/core/server/saved_objects/routes/integration_tests/update.test.ts
+++ b/src/core/server/saved_objects/routes/integration_tests/update.test.ts
@@ -7,7 +7,6 @@
*/
import supertest from 'supertest';
-import { UnwrapPromise } from '@kbn/utility-types';
import { registerUpdateRoute } from '../update';
import { savedObjectsClientMock } from '../../../../../core/server/mocks';
import { CoreUsageStatsClient } from '../../../core_usage_data';
@@ -15,7 +14,7 @@ import { coreUsageStatsClientMock } from '../../../core_usage_data/core_usage_st
import { coreUsageDataServiceMock } from '../../../core_usage_data/core_usage_data_service.mock';
import { setupServer } from '../test_utils';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
describe('PUT /api/saved_objects/{type}/{id?}', () => {
let server: SetupServerReturn['server'];
diff --git a/src/core/server/saved_objects/routes/legacy_import_export/integration_tests/export.test.ts b/src/core/server/saved_objects/routes/legacy_import_export/integration_tests/export.test.ts
index f9f654023d5ff..c27dc29fed65d 100644
--- a/src/core/server/saved_objects/routes/legacy_import_export/integration_tests/export.test.ts
+++ b/src/core/server/saved_objects/routes/legacy_import_export/integration_tests/export.test.ts
@@ -32,7 +32,6 @@ jest.mock('../lib/export_dashboards', () => ({
}));
import supertest from 'supertest';
-import type { UnwrapPromise } from '@kbn/utility-types';
import { CoreUsageStatsClient } from '../../../../core_usage_data';
import { coreUsageStatsClientMock } from '../../../../core_usage_data/core_usage_stats_client.mock';
import { coreUsageDataServiceMock } from '../../../../core_usage_data/core_usage_data_service.mock';
@@ -40,7 +39,7 @@ import { registerLegacyExportRoute } from '../export';
import { setupServer } from '../../test_utils';
import { loggerMock } from 'src/core/server/logging/logger.mock';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
let coreUsageStatsClient: jest.Mocked;
describe('POST /api/dashboards/export', () => {
diff --git a/src/core/server/saved_objects/routes/legacy_import_export/integration_tests/import.test.ts b/src/core/server/saved_objects/routes/legacy_import_export/integration_tests/import.test.ts
index 5ced77550c085..dfc9787d8f59a 100644
--- a/src/core/server/saved_objects/routes/legacy_import_export/integration_tests/import.test.ts
+++ b/src/core/server/saved_objects/routes/legacy_import_export/integration_tests/import.test.ts
@@ -32,7 +32,6 @@ jest.mock('../lib/import_dashboards', () => ({
}));
import supertest from 'supertest';
-import type { UnwrapPromise } from '@kbn/utility-types';
import { CoreUsageStatsClient } from '../../../../core_usage_data';
import { coreUsageStatsClientMock } from '../../../../core_usage_data/core_usage_stats_client.mock';
import { coreUsageDataServiceMock } from '../../../../core_usage_data/core_usage_data_service.mock';
@@ -40,7 +39,7 @@ import { registerLegacyImportRoute } from '../import';
import { setupServer } from '../../test_utils';
import { loggerMock } from 'src/core/server/logging/logger.mock';
-type SetupServerReturn = UnwrapPromise>;
+type SetupServerReturn = Awaited>;
let coreUsageStatsClient: jest.Mocked;
describe('POST /api/dashboards/import', () => {
diff --git a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts
index bb13a03adb53b..052096adcc853 100644
--- a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts
+++ b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts
@@ -25,6 +25,7 @@ import {
} from './collect_multi_namespace_references';
import { collectMultiNamespaceReferences } from './collect_multi_namespace_references';
import type { CreatePointInTimeFinderFn } from './point_in_time_finder';
+import { SavedObjectsErrorHelpers } from './errors';
const SPACES = ['default', 'another-space'];
const VERSION_PROPS = { _seq_no: 1, _primary_term: 1 };
@@ -284,6 +285,23 @@ describe('collectMultiNamespaceReferences', () => {
// obj3 is excluded from the results
]);
});
+ it(`handles 404 responses that don't come from Elasticsearch`, async () => {
+ const createEsUnavailableNotFoundError = () => {
+ return SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ };
+ const obj1 = { type: MULTI_NAMESPACE_OBJ_TYPE_1, id: 'id-1' };
+ const params = setup([obj1]);
+ client.mget.mockReturnValueOnce(
+ elasticsearchClientMock.createSuccessTransportRequestPromise(
+ { docs: [] },
+ { statusCode: 404 },
+ {}
+ )
+ );
+ await expect(() => collectMultiNamespaceReferences(params)).rejects.toThrowError(
+ createEsUnavailableNotFoundError()
+ );
+ });
describe('legacy URL aliases', () => {
it('uses findLegacyUrlAliases to search for legacy URL aliases', async () => {
diff --git a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.ts b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.ts
index fd2afea999a07..e82755e44aa78 100644
--- a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.ts
+++ b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.ts
@@ -6,9 +6,11 @@
* Side Public License, v 1.
*/
+import { isNotFoundFromUnsupportedServer } from '../../../elasticsearch';
import type { ISavedObjectTypeRegistry } from '../../saved_objects_type_registry';
import type { SavedObjectsSerializer } from '../../serialization';
import type { SavedObject, SavedObjectsBaseOptions } from '../../types';
+import { SavedObjectsErrorHelpers } from './errors';
import { findLegacyUrlAliases } from './legacy_url_aliases';
import { getRootFields } from './included_fields';
import {
@@ -207,6 +209,15 @@ async function getObjectsAndReferences({
{ body: { docs: makeBulkGetDocs(bulkGetObjects) } },
{ ignore: [404] }
);
+ // exit early if we can't verify a 404 response is from Elasticsearch
+ if (
+ isNotFoundFromUnsupportedServer({
+ statusCode: bulkGetResponse.statusCode,
+ headers: bulkGetResponse.headers,
+ })
+ ) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
const newObjectsToGet = new Set();
for (let i = 0; i < bulkGetObjects.length; i++) {
// For every element in bulkGetObjects, there should be a matching element in bulkGetResponse.body.docs
diff --git a/src/core/server/saved_objects/service/lib/decorate_es_error.test.ts b/src/core/server/saved_objects/service/lib/decorate_es_error.test.ts
index e7dd355910362..4e187e85f81a7 100644
--- a/src/core/server/saved_objects/service/lib/decorate_es_error.test.ts
+++ b/src/core/server/saved_objects/service/lib/decorate_es_error.test.ts
@@ -53,16 +53,6 @@ describe('savedObjectsClient/decorateEsError', () => {
expect(SavedObjectsErrorHelpers.isEsUnavailableError(error)).toBe(true);
});
- it('makes ProductNotSupportedError a SavedObjectsClient/EsUnavailable error', () => {
- const error = new esErrors.ProductNotSupportedError(
- 'reason',
- elasticsearchClientMock.createApiResponse()
- );
- expect(SavedObjectsErrorHelpers.isEsUnavailableError(error)).toBe(false);
- expect(decorateEsError(error)).toBe(error);
- expect(SavedObjectsErrorHelpers.isEsUnavailableError(error)).toBe(true);
- });
-
it('makes Conflict a SavedObjectsClient/Conflict error', () => {
const error = new esErrors.ResponseError(
elasticsearchClientMock.createApiResponse({ statusCode: 409 })
@@ -119,6 +109,18 @@ describe('savedObjectsClient/decorateEsError', () => {
expect(SavedObjectsErrorHelpers.isNotFoundError(genericError)).toBe(true);
});
+ it('makes NotFound errors generic NotFoundEsUnavailableError errors when response is from unsupported server', () => {
+ const error = new esErrors.ResponseError(
+ // explicitly override the headers
+ elasticsearchClientMock.createApiResponse({ statusCode: 404, headers: {} })
+ );
+ expect(SavedObjectsErrorHelpers.isNotFoundError(error)).toBe(false);
+ const genericError = decorateEsError(error);
+ expect(genericError).not.toBe(error);
+ expect(SavedObjectsErrorHelpers.isNotFoundError(genericError)).toBe(false);
+ expect(SavedObjectsErrorHelpers.isEsUnavailableError(genericError)).toBe(true);
+ });
+
it('if saved objects index does not exist makes NotFound a SavedObjectsClient/generalError', () => {
const error = new esErrors.ResponseError(
elasticsearchClientMock.createApiResponse({
diff --git a/src/core/server/saved_objects/service/lib/decorate_es_error.ts b/src/core/server/saved_objects/service/lib/decorate_es_error.ts
index d8734b141bd9b..1b87955631fe8 100644
--- a/src/core/server/saved_objects/service/lib/decorate_es_error.ts
+++ b/src/core/server/saved_objects/service/lib/decorate_es_error.ts
@@ -8,7 +8,7 @@
import { errors as esErrors } from '@elastic/elasticsearch';
import { get } from 'lodash';
-import { ElasticsearchErrorDetails } from '../../../elasticsearch';
+import { ElasticsearchErrorDetails, isSupportedEsServer } from '../../../elasticsearch';
const responseErrors = {
isServiceUnavailable: (statusCode?: number) => statusCode === 503,
@@ -20,8 +20,7 @@ const responseErrors = {
isBadRequest: (statusCode?: number) => statusCode === 400,
isTooManyRequests: (statusCode?: number) => statusCode === 429,
};
-const { ConnectionError, NoLivingConnectionsError, TimeoutError, ProductNotSupportedError } =
- esErrors;
+const { ConnectionError, NoLivingConnectionsError, TimeoutError } = esErrors;
const SCRIPT_CONTEXT_DISABLED_REGEX = /(?:cannot execute scripts using \[)([a-z]*)(?:\] context)/;
const INLINE_SCRIPTS_DISABLED_MESSAGE = 'cannot execute [inline] scripts';
@@ -31,7 +30,6 @@ type EsErrors =
| esErrors.ConnectionError
| esErrors.NoLivingConnectionsError
| esErrors.TimeoutError
- | esErrors.ProductNotSupportedError
| esErrors.ResponseError;
export function decorateEsError(error: EsErrors) {
@@ -44,7 +42,6 @@ export function decorateEsError(error: EsErrors) {
error instanceof ConnectionError ||
error instanceof NoLivingConnectionsError ||
error instanceof TimeoutError ||
- error instanceof ProductNotSupportedError ||
responseErrors.isServiceUnavailable(error.statusCode)
) {
return SavedObjectsErrorHelpers.decorateEsUnavailableError(error, reason);
@@ -73,6 +70,11 @@ export function decorateEsError(error: EsErrors) {
if (match && match.length > 0) {
return SavedObjectsErrorHelpers.decorateIndexAliasNotFoundError(error, match[1]);
}
+ // Throw EsUnavailable error if the 404 is not from elasticsearch
+ // Needed here to verify Product support for any non-ignored 404 responses from calls to ES
+ if (!isSupportedEsServer(error?.meta?.headers)) {
+ return SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
return SavedObjectsErrorHelpers.createGenericNotFoundError();
}
diff --git a/src/core/server/saved_objects/service/lib/errors.test.ts b/src/core/server/saved_objects/service/lib/errors.test.ts
index a366dce626ec2..3bea693429254 100644
--- a/src/core/server/saved_objects/service/lib/errors.test.ts
+++ b/src/core/server/saved_objects/service/lib/errors.test.ts
@@ -439,4 +439,45 @@ describe('savedObjectsClient/errorTypes', () => {
});
});
});
+
+ describe('NotFoundEsUnavailableError', () => {
+ it('makes an error identifiable as an EsUnavailable error', () => {
+ const error = SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError('foo', 'bar');
+ expect(SavedObjectsErrorHelpers.isEsUnavailableError(error)).toBe(true);
+ });
+
+ it('returns a boom error', () => {
+ const error = SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError('foo', 'bar');
+ expect(error).toHaveProperty('isBoom', true);
+ });
+
+ it('decorates the error message with the saved object that was not found', () => {
+ const error = SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError('foo', 'bar');
+ expect(error.output.payload).toHaveProperty(
+ 'message',
+ 'x-elastic-product not present or not recognized: Saved object [foo/bar] not found'
+ );
+ });
+
+ describe('error.output', () => {
+ it('specifies the saved object that was not found', () => {
+ const error = SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError(
+ 'foo',
+ 'bar'
+ );
+ expect(error.output.payload).toHaveProperty(
+ 'message',
+ 'x-elastic-product not present or not recognized: Saved object [foo/bar] not found'
+ );
+ });
+
+ it('sets statusCode to 503', () => {
+ const error = SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError(
+ 'foo',
+ 'bar'
+ );
+ expect(error.output).toHaveProperty('statusCode', 503);
+ });
+ });
+ });
});
diff --git a/src/core/server/saved_objects/service/lib/errors.ts b/src/core/server/saved_objects/service/lib/errors.ts
index 581145c7c09d1..7412e744f19e7 100644
--- a/src/core/server/saved_objects/service/lib/errors.ts
+++ b/src/core/server/saved_objects/service/lib/errors.ts
@@ -202,4 +202,16 @@ export class SavedObjectsErrorHelpers {
public static isGeneralError(error: Error | DecoratedError) {
return isSavedObjectsClientError(error) && error[code] === CODE_GENERAL_ERROR;
}
+
+ public static createGenericNotFoundEsUnavailableError(
+ // type and id not available in all operations (e.g. mget)
+ type: string | null = null,
+ id: string | null = null
+ ) {
+ const notFoundError = this.createGenericNotFoundError(type, id);
+ return this.decorateEsUnavailableError(
+ new Error(`${notFoundError.message}`),
+ `x-elastic-product not present or not recognized`
+ );
+ }
}
diff --git a/src/core/server/saved_objects/service/lib/integration_tests/repository_with_proxy.test.ts b/src/core/server/saved_objects/service/lib/integration_tests/repository_with_proxy.test.ts
index b767b28c90608..925b23a64f03e 100644
--- a/src/core/server/saved_objects/service/lib/integration_tests/repository_with_proxy.test.ts
+++ b/src/core/server/saved_objects/service/lib/integration_tests/repository_with_proxy.test.ts
@@ -289,11 +289,17 @@ describe('404s from proxies', () => {
let repository: ISavedObjectsRepository;
const myTypeDocs: SavedObject[] = [];
- const SavedObjectsClientEsUnavailable = (err: any) => {
+ const genericNotFoundEsUnavailableError = (err: any, type?: string, id?: string) => {
expect(err?.output?.statusCode).toBe(503);
- expect(err?.output?.payload?.message).toBe(
- `The client noticed that the server is not Elasticsearch and we do not support this unknown product.`
- );
+ if (type && id) {
+ expect(err?.output?.payload?.message).toBe(
+ `x-elastic-product not present or not recognized: Saved object [${type}/${id}] not found`
+ );
+ } else {
+ expect(err?.output?.payload?.message).toBe(
+ `x-elastic-product not present or not recognized: Not Found`
+ );
+ }
};
beforeAll(async () => {
@@ -335,7 +341,7 @@ describe('404s from proxies', () => {
} catch (err) {
myError = err;
}
- expect(SavedObjectsClientEsUnavailable(myError));
+ expect(genericNotFoundEsUnavailableError(myError, 'my_type', 'myTypeId1'));
});
it('returns an EsUnavailable error on `update` requests that are interrupted', async () => {
@@ -348,7 +354,7 @@ describe('404s from proxies', () => {
} catch (err) {
updateError = err;
}
- expect(SavedObjectsClientEsUnavailable(updateError));
+ expect(genericNotFoundEsUnavailableError(updateError));
});
it('returns an EsUnavailable error on `bulkCreate` requests with a 404 proxy response and wrong product header', async () => {
@@ -377,7 +383,7 @@ describe('404s from proxies', () => {
} catch (err) {
bulkCreateError = err;
}
- expect(SavedObjectsClientEsUnavailable(bulkCreateError));
+ expect(genericNotFoundEsUnavailableError(bulkCreateError));
});
it('returns an EsUnavailable error on `find` requests with a 404 proxy response and wrong product header', async () => {
@@ -388,7 +394,7 @@ describe('404s from proxies', () => {
} catch (err) {
findErr = err;
}
- expect(SavedObjectsClientEsUnavailable(findErr));
+ expect(genericNotFoundEsUnavailableError(findErr));
expect(findErr?.output?.payload?.error).toBe('Service Unavailable');
});
@@ -399,7 +405,7 @@ describe('404s from proxies', () => {
} catch (err) {
deleteErr = err;
}
- expect(SavedObjectsClientEsUnavailable(deleteErr));
+ expect(genericNotFoundEsUnavailableError(deleteErr, 'my_type', 'myTypeId1'));
});
it('returns an EsUnavailable error on `bulkResolve` requests with a 404 proxy response and wrong product header for an exact match', async () => {
@@ -411,7 +417,7 @@ describe('404s from proxies', () => {
} catch (err) {
testBulkResolveErr = err;
}
- expect(SavedObjectsClientEsUnavailable(testBulkResolveErr));
+ expect(genericNotFoundEsUnavailableError(testBulkResolveErr));
});
it('returns an EsUnavailable error on `resolve` requests with a 404 proxy response and wrong product header for an exact match', async () => {
@@ -422,7 +428,7 @@ describe('404s from proxies', () => {
} catch (err) {
testResolveErr = err;
}
- expect(SavedObjectsClientEsUnavailable(testResolveErr));
+ expect(genericNotFoundEsUnavailableError(testResolveErr));
});
it('returns an EsUnavailable error on `bulkGet` requests with a 404 proxy response and wrong product header', async () => {
@@ -434,7 +440,7 @@ describe('404s from proxies', () => {
} catch (err) {
bulkGetError = err;
}
- expect(SavedObjectsClientEsUnavailable(bulkGetError));
+ expect(genericNotFoundEsUnavailableError(bulkGetError));
});
it('returns an EsUnavailable error on `openPointInTimeForType` requests with a 404 proxy response and wrong product header', async () => {
@@ -445,7 +451,7 @@ describe('404s from proxies', () => {
} catch (err) {
openPitErr = err;
}
- expect(SavedObjectsClientEsUnavailable(openPitErr));
+ expect(genericNotFoundEsUnavailableError(openPitErr));
});
it('returns an EsUnavailable error on `checkConflicts` requests with a 404 proxy response and wrong product header', async () => {
@@ -462,7 +468,7 @@ describe('404s from proxies', () => {
} catch (err) {
checkConflictsErr = err;
}
- expect(SavedObjectsClientEsUnavailable(checkConflictsErr));
+ expect(genericNotFoundEsUnavailableError(checkConflictsErr));
});
it('returns an EsUnavailable error on `deleteByNamespace` requests with a 404 proxy response and wrong product header', async () => {
@@ -473,7 +479,7 @@ describe('404s from proxies', () => {
} catch (err) {
deleteByNamespaceErr = err;
}
- expect(SavedObjectsClientEsUnavailable(deleteByNamespaceErr));
+ expect(genericNotFoundEsUnavailableError(deleteByNamespaceErr));
});
});
});
diff --git a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.mock.ts b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.mock.ts
index 513add01cdd83..fbd774f1c10d5 100644
--- a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.mock.ts
+++ b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.mock.ts
@@ -7,6 +7,7 @@
*/
import type * as InternalUtils from './internal_utils';
+import type { isNotFoundFromUnsupportedServer } from '../../../elasticsearch';
export const mockGetSavedObjectFromSource = jest.fn() as jest.MockedFunction<
typeof InternalUtils['getSavedObjectFromSource']
@@ -23,3 +24,14 @@ jest.mock('./internal_utils', () => {
rawDocExistsInNamespace: mockRawDocExistsInNamespace,
};
});
+
+export const mockIsNotFoundFromUnsupportedServer = jest.fn() as jest.MockedFunction<
+ typeof isNotFoundFromUnsupportedServer
+>;
+jest.mock('../../../elasticsearch', () => {
+ const actual = jest.requireActual('../../../elasticsearch');
+ return {
+ ...actual,
+ isNotFoundFromUnsupportedServer: mockIsNotFoundFromUnsupportedServer,
+ };
+});
diff --git a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.ts b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.ts
index 4120b077a8981..5403e146509ae 100644
--- a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.ts
+++ b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.ts
@@ -9,6 +9,7 @@
import {
mockGetSavedObjectFromSource,
mockRawDocExistsInNamespace,
+ mockIsNotFoundFromUnsupportedServer,
} from './internal_bulk_resolve.test.mock';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
@@ -34,6 +35,8 @@ beforeEach(() => {
);
mockRawDocExistsInNamespace.mockReset();
mockRawDocExistsInNamespace.mockReturnValue(true); // return true by default
+ mockIsNotFoundFromUnsupportedServer.mockReset();
+ mockIsNotFoundFromUnsupportedServer.mockReturnValue(false);
});
describe('internalBulkResolve', () => {
@@ -170,6 +173,24 @@ describe('internalBulkResolve', () => {
return { saved_object: `mock-obj-for-${id}`, outcome: 'conflict', alias_target_id };
}
+ it('throws if mget call results in non-ES-originated 404 error', async () => {
+ const objects = [{ type: OBJ_TYPE, id: '1' }];
+ const params = setup(objects, { namespace: 'space-x' });
+ mockBulkResults(
+ { found: false } // fetch alias for obj 1
+ );
+ mockMgetResults(
+ { found: false } // fetch obj 1 (actual result body doesn't matter, just needs statusCode and headers)
+ );
+ mockIsNotFoundFromUnsupportedServer.mockReturnValue(true);
+
+ await expect(() => internalBulkResolve(params)).rejects.toThrow(
+ SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError()
+ );
+ expect(client.bulk).toHaveBeenCalledTimes(1);
+ expect(client.mget).toHaveBeenCalledTimes(1);
+ });
+
it('returns an empty array if no object args are passed in', async () => {
const params = setup([], { namespace: 'space-x' });
diff --git a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.ts b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.ts
index 19f774fb068b6..967122e414731 100644
--- a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.ts
+++ b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.ts
@@ -6,13 +6,14 @@
* Side Public License, v 1.
*/
-import type { MgetHit } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
+import type { MgetResponseItem } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import {
CORE_USAGE_STATS_ID,
CORE_USAGE_STATS_TYPE,
REPOSITORY_RESOLVE_OUTCOME_STATS,
} from '../../../core_usage_data';
+import { isNotFoundFromUnsupportedServer } from '../../../elasticsearch';
import { LegacyUrlAlias, LEGACY_URL_ALIAS_TYPE } from '../../object_types';
import type { ISavedObjectTypeRegistry } from '../../saved_objects_type_registry';
import type { SavedObjectsRawDocSource, SavedObjectsSerializer } from '../../serialization';
@@ -140,6 +141,16 @@ export async function internalBulkResolve(
{ ignore: [404] }
)
: undefined;
+ // exit early if a 404 isn't from elasticsearch
+ if (
+ bulkGetResponse &&
+ isNotFoundFromUnsupportedServer({
+ statusCode: bulkGetResponse.statusCode,
+ headers: bulkGetResponse.headers,
+ })
+ ) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
let getResponseIndex = 0;
let aliasTargetIndex = 0;
@@ -150,7 +161,7 @@ export async function internalBulkResolve(
return either.value;
}
const exactMatchDoc = bulkGetResponse?.body.docs[getResponseIndex++];
- let aliasMatchDoc: MgetHit | undefined;
+ let aliasMatchDoc: MgetResponseItem | undefined;
const aliasTargetId = aliasTargetIds[aliasTargetIndex++];
if (aliasTargetId !== undefined) {
aliasMatchDoc = bulkGetResponse?.body.docs[getResponseIndex++];
diff --git a/src/core/server/saved_objects/service/lib/preflight_check_for_create.ts b/src/core/server/saved_objects/service/lib/preflight_check_for_create.ts
index e5b96a22631c1..6a7e1294744ac 100644
--- a/src/core/server/saved_objects/service/lib/preflight_check_for_create.ts
+++ b/src/core/server/saved_objects/service/lib/preflight_check_for_create.ts
@@ -5,7 +5,8 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
-
+import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
+import { isNotFoundFromUnsupportedServer } from '../../../elasticsearch';
import { LegacyUrlAlias, LEGACY_URL_ALIAS_TYPE } from '../../object_types';
import type { ISavedObjectTypeRegistry } from '../../saved_objects_type_registry';
import type {
@@ -19,6 +20,7 @@ import { getObjectKey, isLeft, isRight } from './internal_utils';
import type { CreatePointInTimeFinderFn } from './point_in_time_finder';
import type { RepositoryEsClient } from './repository_es_client';
import { ALL_NAMESPACES_STRING } from './utils';
+import { SavedObjectsErrorHelpers } from './errors';
/**
* If the object will be created in this many spaces (or "*" all current and future spaces), we use find to fetch all aliases.
@@ -79,6 +81,10 @@ interface ParsedObject {
spaces: Set;
}
+function isMgetDoc(doc?: estypes.MgetResponseItem): doc is estypes.GetGetResult {
+ return Boolean(doc && 'found' in doc);
+}
+
/**
* Conducts pre-flight checks before object creation. Consumers should only check eligible objects (multi-namespace types).
* For each object that the consumer intends to create, we check for three potential error cases in all applicable spaces:
@@ -139,7 +145,7 @@ export async function preflightCheckForCreate(params: PreflightCheckForCreatePar
for (let i = 0; i < spaces.size; i++) {
const aliasDoc = bulkGetResponse?.body.docs[getResponseIndex++];
const index = aliasSpacesIndex++; // increment whether the alias was found or not
- if (aliasDoc?.found) {
+ if (isMgetDoc(aliasDoc) && aliasDoc.found) {
const legacyUrlAlias: LegacyUrlAlias | undefined =
aliasDoc._source![LEGACY_URL_ALIAS_TYPE]; // if the 'disabled' field is not present, the source will be empty
if (!legacyUrlAlias?.disabled) {
@@ -160,7 +166,7 @@ export async function preflightCheckForCreate(params: PreflightCheckForCreatePar
}
let existingDocument: PreflightCheckForCreateResult['existingDocument'];
- if (objectDoc.found) {
+ if (isMgetDoc(objectDoc) && objectDoc.found) {
// @ts-expect-error MultiGetHit._source is optional
if (!rawDocExistsInNamespaces(registry, objectDoc, [...spaces])) {
const error = {
@@ -271,6 +277,17 @@ async function bulkGetObjectsAndAliases(
)
: undefined;
+ // throw if we can't verify a 404 response is from Elasticsearch
+ if (
+ bulkGetResponse &&
+ isNotFoundFromUnsupportedServer({
+ statusCode: bulkGetResponse.statusCode,
+ headers: bulkGetResponse.headers,
+ })
+ ) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
+
return { bulkGetResponse, aliasSpaces };
}
diff --git a/src/core/server/saved_objects/service/lib/repository.test.ts b/src/core/server/saved_objects/service/lib/repository.test.ts
index ebab5898a0eb9..df1cf72c4cd2b 100644
--- a/src/core/server/saved_objects/service/lib/repository.test.ts
+++ b/src/core/server/saved_objects/service/lib/repository.test.ts
@@ -1328,7 +1328,7 @@ describe('SavedObjectsRepository', () => {
describe('returns', () => {
const expectSuccessResult = (
{ type, id }: TypeIdTuple,
- doc: estypes.MgetHit
+ doc: estypes.GetGetResult
) => ({
type,
id,
@@ -1356,8 +1356,14 @@ describe('SavedObjectsRepository', () => {
expect(client.mget).toHaveBeenCalledTimes(1);
expect(result).toEqual({
saved_objects: [
- expectSuccessResult(obj1, response.docs[0]),
- expectSuccessResult(obj2, response.docs[1]),
+ expectSuccessResult(
+ obj1,
+ response.docs[0] as estypes.GetGetResult
+ ),
+ expectSuccessResult(
+ obj2,
+ response.docs[1] as estypes.GetGetResult
+ ),
],
});
});
@@ -1377,9 +1383,15 @@ describe('SavedObjectsRepository', () => {
expect(client.mget).toHaveBeenCalledTimes(1);
expect(result).toEqual({
saved_objects: [
- expectSuccessResult(obj1, response.docs[0]),
+ expectSuccessResult(
+ obj1,
+ response.docs[0] as estypes.GetGetResult
+ ),
expectError(obj),
- expectSuccessResult(obj2, response.docs[1]),
+ expectSuccessResult(
+ obj2,
+ response.docs[1] as estypes.GetGetResult
+ ),
],
});
});
diff --git a/src/core/server/saved_objects/service/lib/repository.ts b/src/core/server/saved_objects/service/lib/repository.ts
index 9af85499295b5..7d5d26ef75eaf 100644
--- a/src/core/server/saved_objects/service/lib/repository.ts
+++ b/src/core/server/saved_objects/service/lib/repository.ts
@@ -10,6 +10,7 @@ import { omit, isObject } from 'lodash';
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import * as esKuery from '@kbn/es-query';
import type { ElasticsearchClient } from '../../../elasticsearch/';
+import { isSupportedEsServer, isNotFoundFromUnsupportedServer } from '../../../elasticsearch';
import type { Logger } from '../../../logging';
import { getRootPropertiesObjects, IndexMapping } from '../../mappings';
import {
@@ -196,6 +197,10 @@ interface PreflightCheckNamespacesResult {
rawDocSource?: GetResponseFound;
}
+function isMgetDoc(doc?: estypes.MgetResponseItem): doc is estypes.GetGetResult {
+ return Boolean(doc && 'found' in doc);
+}
+
/**
* @public
*/
@@ -376,11 +381,16 @@ export class SavedObjectsRepository {
require_alias: true,
};
- const { body } =
+ const { body, statusCode, headers } =
id && overwrite
? await this.client.index(requestParams)
: await this.client.create(requestParams);
+ // throw if we can't verify a 404 response is from Elasticsearch
+ if (isNotFoundFromUnsupportedServer({ statusCode, headers })) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError(id, type);
+ }
+
return this._rawToSavedObject({
...raw,
...body,
@@ -637,6 +647,16 @@ export class SavedObjectsRepository {
{ ignore: [404] }
)
: undefined;
+ // throw if we can't verify a 404 response is from Elasticsearch
+ if (
+ bulkGetResponse &&
+ isNotFoundFromUnsupportedServer({
+ statusCode: bulkGetResponse.statusCode,
+ headers: bulkGetResponse.headers,
+ })
+ ) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
const errors: SavedObjectsCheckConflictsResponse['errors'] = [];
expectedBulkGetResults.forEach((expectedResult) => {
@@ -647,7 +667,7 @@ export class SavedObjectsRepository {
const { type, id, esRequestIndex } = expectedResult.value;
const doc = bulkGetResponse?.body.docs[esRequestIndex];
- if (doc?.found) {
+ if (isMgetDoc(doc) && doc.found) {
errors.push({
id,
type,
@@ -709,7 +729,7 @@ export class SavedObjectsRepository {
}
}
- const { body, statusCode } = await this.client.delete(
+ const { body, statusCode, headers } = await this.client.delete(
{
id: rawId,
index: this.getIndexForType(type),
@@ -719,6 +739,10 @@ export class SavedObjectsRepository {
{ ignore: [404] }
);
+ if (isNotFoundFromUnsupportedServer({ statusCode, headers })) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError(type, id);
+ }
+
const deleted = body.result === 'deleted';
if (deleted) {
const namespaces = preflightResult?.savedObjectNamespaces;
@@ -786,7 +810,7 @@ export class SavedObjectsRepository {
const match2 = buildNode('not', buildNode('is', 'type', LEGACY_URL_ALIAS_TYPE));
const kueryNode = buildNode('or', [match1, match2]);
- const { body } = await this.client.updateByQuery(
+ const { body, statusCode, headers } = await this.client.updateByQuery(
{
index: this.getIndicesForTypes(typesToUpdate),
refresh: options.refresh,
@@ -815,6 +839,10 @@ export class SavedObjectsRepository {
},
{ ignore: [404] }
);
+ // throw if we can't verify a 404 response is from Elasticsearch
+ if (isNotFoundFromUnsupportedServer({ statusCode, headers })) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
return body;
}
@@ -959,10 +987,16 @@ export class SavedObjectsRepository {
},
};
- const { body, statusCode } = await this.client.search(esOptions, {
- ignore: [404],
- });
+ const { body, statusCode, headers } = await this.client.search(
+ esOptions,
+ {
+ ignore: [404],
+ }
+ );
if (statusCode === 404) {
+ if (!isSupportedEsServer(headers)) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
// 404 is only possible here if the index is missing, which
// we don't want to leak, see "404s from missing index" above
return {
@@ -1069,6 +1103,16 @@ export class SavedObjectsRepository {
{ ignore: [404] }
)
: undefined;
+ // fail fast if we can't verify a 404 is from Elasticsearch
+ if (
+ bulkGetResponse &&
+ isNotFoundFromUnsupportedServer({
+ statusCode: bulkGetResponse.statusCode,
+ headers: bulkGetResponse.headers,
+ })
+ ) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
return {
saved_objects: expectedBulkGetResults.map((expectedResult) => {
@@ -1160,7 +1204,7 @@ export class SavedObjectsRepository {
throw SavedObjectsErrorHelpers.createGenericNotFoundError(type, id);
}
const namespace = normalizeNamespace(options.namespace);
- const { body, statusCode } = await this.client.get(
+ const { body, statusCode, headers } = await this.client.get(
{
id: this._serializer.generateRawId(namespace, type, id),
index: this.getIndexForType(type),
@@ -1168,6 +1212,10 @@ export class SavedObjectsRepository {
{ ignore: [404] }
);
const indexNotFound = statusCode === 404;
+ // check if we have the elasticsearch header when index is not found and, if we do, ensure it is from Elasticsearch
+ if (indexNotFound && !isSupportedEsServer(headers)) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError(type, id);
+ }
if (
!isFoundGetResponse(body) ||
@@ -1306,6 +1354,9 @@ export class SavedObjectsRepository {
require_alias: true,
})
.catch((err) => {
+ if (SavedObjectsErrorHelpers.isEsUnavailableError(err)) {
+ throw err;
+ }
if (SavedObjectsErrorHelpers.isNotFoundError(err)) {
// see "404s from missing index" above
throw SavedObjectsErrorHelpers.createGenericNotFoundError(type, id);
@@ -1480,6 +1531,16 @@ export class SavedObjectsRepository {
}
)
: undefined;
+ // fail fast if we can't verify a 404 response is from Elasticsearch
+ if (
+ bulkGetResponse &&
+ isNotFoundFromUnsupportedServer({
+ statusCode: bulkGetResponse.statusCode,
+ headers: bulkGetResponse.headers,
+ })
+ ) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
let bulkUpdateRequestIndexCounter = 0;
const bulkUpdateParams: object[] = [];
@@ -1497,7 +1558,7 @@ export class SavedObjectsRepository {
if (esRequestIndex !== undefined) {
const indexFound = bulkGetResponse?.statusCode !== 404;
const actualResult = indexFound ? bulkGetResponse?.body.docs[esRequestIndex] : undefined;
- const docFound = indexFound && actualResult?.found === true;
+ const docFound = indexFound && isMgetDoc(actualResult) && actualResult.found;
if (
!docFound ||
// @ts-expect-error MultiGetHit is incorrectly missing _id, _source
@@ -1614,7 +1675,7 @@ export class SavedObjectsRepository {
// we need to target all SO indices as all types of objects may have references to the given SO.
const targetIndices = this.getIndicesForTypes(allTypes);
- const { body } = await this.client.updateByQuery(
+ const { body, statusCode, headers } = await this.client.updateByQuery(
{
index: targetIndices,
refresh,
@@ -1647,6 +1708,10 @@ export class SavedObjectsRepository {
},
{ ignore: [404] }
);
+ // fail fast if we can't verify a 404 is from Elasticsearch
+ if (isNotFoundFromUnsupportedServer({ statusCode, headers })) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError(type, id);
+ }
if (body.failures?.length) {
throw SavedObjectsErrorHelpers.createConflictError(
@@ -1933,12 +1998,16 @@ export class SavedObjectsRepository {
...(preference ? { preference } : {}),
};
- const { body, statusCode } = await this.client.openPointInTime(esOptions, {
+ const { body, statusCode, headers } = await this.client.openPointInTime(esOptions, {
ignore: [404],
});
if (statusCode === 404) {
- throw SavedObjectsErrorHelpers.createGenericNotFoundError();
+ if (!isSupportedEsServer(headers)) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ } else {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundError();
+ }
}
return {
@@ -2109,7 +2178,7 @@ export class SavedObjectsRepository {
throw new Error(`Cannot make preflight get request for non-multi-namespace type '${type}'.`);
}
- const { body, statusCode } = await this.client.get(
+ const { body, statusCode, headers } = await this.client.get(
{
id: this._serializer.generateRawId(undefined, type, id),
index: this.getIndexForType(type),
@@ -2131,6 +2200,9 @@ export class SavedObjectsRepository {
savedObjectNamespaces: initialNamespaces ?? getSavedObjectNamespaces(namespace, body),
rawDocSource: body,
};
+ } else if (isNotFoundFromUnsupportedServer({ statusCode, headers })) {
+ // checking if the 404 is from Elasticsearch
+ throw SavedObjectsErrorHelpers.createGenericNotFoundError(type, id);
}
return {
checkResult: 'not_found',
diff --git a/src/core/server/saved_objects/service/lib/search_dsl/search_dsl.ts b/src/core/server/saved_objects/service/lib/search_dsl/search_dsl.ts
index f2cf0013dfe08..5fbb9aba04583 100644
--- a/src/core/server/saved_objects/service/lib/search_dsl/search_dsl.ts
+++ b/src/core/server/saved_objects/service/lib/search_dsl/search_dsl.ts
@@ -26,7 +26,7 @@ interface GetSearchDslOptions {
rootSearchFields?: string[];
searchAfter?: estypes.Id[];
sortField?: string;
- sortOrder?: estypes.SearchSortOrder;
+ sortOrder?: estypes.SortOrder;
namespaces?: string[];
pit?: SavedObjectsPitParams;
typeToNamespacesMap?: Map;
diff --git a/src/core/server/saved_objects/service/lib/search_dsl/sorting_params.ts b/src/core/server/saved_objects/service/lib/search_dsl/sorting_params.ts
index 2a3dca2629098..030219b4ba5b1 100644
--- a/src/core/server/saved_objects/service/lib/search_dsl/sorting_params.ts
+++ b/src/core/server/saved_objects/service/lib/search_dsl/sorting_params.ts
@@ -16,8 +16,8 @@ export function getSortingParams(
mappings: IndexMapping,
type: string | string[],
sortField?: string,
- sortOrder?: estypes.SearchSortOrder
-): { sort?: estypes.SearchSortContainer[] } {
+ sortOrder?: estypes.SortOrder
+): { sort?: estypes.SortCombinations[] } {
if (!sortField) {
return {};
}
diff --git a/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts b/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts
index d5b79b70a55a1..5163c4a4990ad 100644
--- a/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts
+++ b/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts
@@ -26,6 +26,7 @@ import type {
} from './update_objects_spaces';
import { updateObjectsSpaces } from './update_objects_spaces';
import { ALL_NAMESPACES_STRING } from './utils';
+import { SavedObjectsErrorHelpers } from './errors';
type SetupParams = Partial<
Pick
@@ -112,6 +113,32 @@ describe('#updateObjectsSpaces', () => {
})
);
}
+ /** Mocks the saved objects client so as to test unsupported server responding with 404 */
+ function mockMgetResultsNotFound(...results: Array<{ found: boolean }>) {
+ client.mget.mockReturnValueOnce(
+ elasticsearchClientMock.createSuccessTransportRequestPromise(
+ {
+ docs: results.map((x) =>
+ x.found
+ ? {
+ _id: 'doesnt-matter',
+ _index: 'doesnt-matter',
+ _source: { namespaces: [EXISTING_SPACE] },
+ ...VERSION_PROPS,
+ found: true,
+ }
+ : {
+ _id: 'doesnt-matter',
+ _index: 'doesnt-matter',
+ found: false,
+ }
+ ),
+ },
+ { statusCode: 404 },
+ {}
+ )
+ );
+ }
/** Asserts that mget is called for the given objects */
function expectMgetArgs(...objects: SavedObjectsUpdateObjectsSpacesObject[]) {
@@ -247,6 +274,17 @@ describe('#updateObjectsSpaces', () => {
{ ...obj7, spaces: [EXISTING_SPACE, 'foo-space'] },
]);
});
+
+ it('throws when mget not found response is missing the Elasticsearch header', async () => {
+ const objects = [{ type: SHAREABLE_OBJ_TYPE, id: 'id-1' }];
+ const spacesToAdd = ['foo-space'];
+ const params = setup({ objects, spacesToAdd });
+ mockMgetResultsNotFound({ found: true });
+
+ await expect(() => updateObjectsSpaces(params)).rejects.toThrowError(
+ SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError()
+ );
+ });
});
// Note: these test cases do not include requested objects that will result in errors (those are covered above)
diff --git a/src/core/server/saved_objects/service/lib/update_objects_spaces.ts b/src/core/server/saved_objects/service/lib/update_objects_spaces.ts
index 90e914b9796c3..f3c97382c3747 100644
--- a/src/core/server/saved_objects/service/lib/update_objects_spaces.ts
+++ b/src/core/server/saved_objects/service/lib/update_objects_spaces.ts
@@ -11,6 +11,7 @@ import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import intersection from 'lodash/intersection';
import type { Logger } from '../../../logging';
+import { isNotFoundFromUnsupportedServer } from '../../../elasticsearch';
import type { IndexMapping } from '../../mappings';
import type { ISavedObjectTypeRegistry } from '../../saved_objects_type_registry';
import type { SavedObjectsRawDocSource, SavedObjectsSerializer } from '../../serialization';
@@ -120,6 +121,9 @@ type ObjectToDeleteAliasesFor = Pick<
const MAX_CONCURRENT_ALIAS_DELETIONS = 10;
+function isMgetError(doc?: estypes.MgetResponseItem): doc is estypes.MgetMultiGetError {
+ return Boolean(doc && 'error' in doc);
+}
/**
* Gets all references and transitive references of the given objects. Ignores any object and/or reference that is not a multi-namespace
* type.
@@ -203,7 +207,16 @@ export async function updateObjectsSpaces({
{ ignore: [404] }
)
: undefined;
-
+ // fail fast if we can't verify a 404 response is from Elasticsearch
+ if (
+ bulkGetResponse &&
+ isNotFoundFromUnsupportedServer({
+ statusCode: bulkGetResponse.statusCode,
+ headers: bulkGetResponse.headers,
+ })
+ ) {
+ throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError();
+ }
const time = new Date().toISOString();
let bulkOperationRequestIndexCounter = 0;
const bulkOperationParams: estypes.BulkOperationContainer[] = [];
@@ -224,8 +237,14 @@ export async function updateObjectsSpaces({
let versionProperties;
if (esRequestIndex !== undefined) {
const doc = bulkGetResponse?.body.docs[esRequestIndex];
- // @ts-expect-error MultiGetHit._source is optional
- if (!doc?.found || !rawDocExistsInNamespace(registry, doc, namespace)) {
+ const isErrorDoc = isMgetError(doc);
+
+ if (
+ isErrorDoc ||
+ !doc?.found ||
+ // @ts-expect-error MultiGetHit._source is optional
+ !rawDocExistsInNamespace(registry, doc, namespace)
+ ) {
const error = errorContent(SavedObjectsErrorHelpers.createGenericNotFoundError(type, id));
return {
tag: 'Left',
diff --git a/src/core/server/saved_objects/types.ts b/src/core/server/saved_objects/types.ts
index 68040d9c6e003..9a27db7853b8d 100644
--- a/src/core/server/saved_objects/types.ts
+++ b/src/core/server/saved_objects/types.ts
@@ -81,7 +81,7 @@ export interface SavedObjectsFindOptions {
page?: number;
perPage?: number;
sortField?: string;
- sortOrder?: estypes.SearchSortOrder;
+ sortOrder?: estypes.SortOrder;
/**
* An array of fields to include in the results
* @example
diff --git a/src/core/server/server.api.md b/src/core/server/server.api.md
index c599b2f719408..7b9678db488b0 100644
--- a/src/core/server/server.api.md
+++ b/src/core/server/server.api.md
@@ -2217,6 +2217,8 @@ export class SavedObjectsErrorHelpers {
// (undocumented)
static createGenericNotFoundError(type?: string | null, id?: string | null): DecoratedError;
// (undocumented)
+ static createGenericNotFoundEsUnavailableError(type?: string | null, id?: string | null): DecoratedError;
+ // (undocumented)
static createIndexAliasNotFoundError(alias: string): DecoratedError;
// (undocumented)
static createInvalidVersionError(versionInput?: string): DecoratedError;
@@ -2373,7 +2375,7 @@ export interface SavedObjectsFindOptions {
// (undocumented)
sortField?: string;
// (undocumented)
- sortOrder?: estypes.SearchSortOrder;
+ sortOrder?: estypes.SortOrder;
// (undocumented)
type: string | string[];
typeToNamespacesMap?: Map;
diff --git a/src/core/server/ui_settings/saved_objects/migrations.test.ts b/src/core/server/ui_settings/saved_objects/migrations.test.ts
index e89811790060a..8b1abf2356498 100644
--- a/src/core/server/ui_settings/saved_objects/migrations.test.ts
+++ b/src/core/server/ui_settings/saved_objects/migrations.test.ts
@@ -211,3 +211,51 @@ describe('ui_settings 8.0.0 migrations', () => {
});
});
});
+
+describe('ui_settings 8.1.0 migrations', () => {
+ const migration = migrations['8.1.0'];
+
+ test('returns doc on empty object', () => {
+ expect(migration({} as SavedObjectUnsanitizedDoc)).toEqual({
+ references: [],
+ });
+ });
+
+ test('adds geo_point type to default map', () => {
+ const initialDefaultTypeMap = {
+ ip: { id: 'ip', params: {} },
+ date: { id: 'date', params: {} },
+ date_nanos: { id: 'date_nanos', params: {}, es: true },
+ number: { id: 'number', params: {} },
+ boolean: { id: 'boolean', params: {} },
+ histogram: { id: 'histogram', params: {} },
+ _source: { id: '_source', params: {} },
+ _default_: { id: 'string', params: {} },
+ };
+
+ const doc = {
+ type: 'config',
+ id: '8.0.0',
+ attributes: {
+ buildNum: 9007199254740991,
+ 'format:defaultTypeMap': JSON.stringify(initialDefaultTypeMap),
+ },
+ references: [],
+ updated_at: '2020-06-09T20:18:20.349Z',
+ migrationVersion: {},
+ };
+ const migrated = migration(doc);
+ expect(migrated.attributes.buildNum).toBe(9007199254740991);
+ expect(JSON.parse(migrated.attributes['format:defaultTypeMap'])).toEqual({
+ ip: { id: 'ip', params: {} },
+ date: { id: 'date', params: {} },
+ date_nanos: { id: 'date_nanos', params: {}, es: true },
+ number: { id: 'number', params: {} },
+ boolean: { id: 'boolean', params: {} },
+ histogram: { id: 'histogram', params: {} },
+ _source: { id: '_source', params: {} },
+ _default_: { id: 'string', params: {} },
+ geo_point: { id: 'geo_point', params: { transform: 'wkt' } },
+ });
+ });
+});
diff --git a/src/core/server/ui_settings/saved_objects/migrations.ts b/src/core/server/ui_settings/saved_objects/migrations.ts
index 91666146655c6..48e91be0fe48b 100644
--- a/src/core/server/ui_settings/saved_objects/migrations.ts
+++ b/src/core/server/ui_settings/saved_objects/migrations.ts
@@ -102,4 +102,28 @@ export const migrations = {
}),
references: doc.references || [],
}),
+ '8.1.0': (doc: SavedObjectUnsanitizedDoc): SavedObjectSanitizedDoc => ({
+ ...doc,
+ ...(doc.attributes && {
+ attributes: Object.keys(doc.attributes).reduce((acc, key) => {
+ if (key === 'format:defaultTypeMap') {
+ const initial = JSON.parse(doc.attributes[key]);
+ const updated = {
+ ...initial,
+ geo_point: { id: 'geo_point', params: { transform: 'wkt' } },
+ };
+ return {
+ ...acc,
+ 'format:defaultTypeMap': JSON.stringify(updated, null, 2),
+ };
+ } else {
+ return {
+ ...acc,
+ [key]: doc.attributes[key],
+ };
+ }
+ }, {}),
+ }),
+ references: doc.references || [],
+ }),
};
diff --git a/src/core/types/elasticsearch/search.ts b/src/core/types/elasticsearch/search.ts
index ac93a45da3258..6f2c0c28e670b 100644
--- a/src/core/types/elasticsearch/search.ts
+++ b/src/core/types/elasticsearch/search.ts
@@ -65,7 +65,7 @@ type ValueTypeOfField = T extends Record
type MaybeArray = T | T[];
type Fields = Required['body']>['fields'];
-type DocValueFields = MaybeArray;
+type DocValueFields = MaybeArray;
export type SearchHit<
TSource extends any = unknown,
diff --git a/src/dev/bazel/pkg_npm_types/pkg_npm_types.bzl b/src/dev/bazel/pkg_npm_types/pkg_npm_types.bzl
index a40624d31e38b..4651e9264ef50 100644
--- a/src/dev/bazel/pkg_npm_types/pkg_npm_types.bzl
+++ b/src/dev/bazel/pkg_npm_types/pkg_npm_types.bzl
@@ -7,7 +7,7 @@
#
load("@npm//@bazel/typescript/internal:ts_config.bzl", "TsConfigInfo")
-load("@build_bazel_rules_nodejs//:providers.bzl", "run_node", "LinkablePackageInfo", "declaration_info")
+load("@build_bazel_rules_nodejs//:providers.bzl", "run_node", "LinkablePackageInfo", "DeclarationInfo", "declaration_info")
load("@build_bazel_rules_nodejs//internal/linker:link_node_modules.bzl", "module_mappings_aspect")
@@ -15,9 +15,10 @@ load("@build_bazel_rules_nodejs//internal/linker:link_node_modules.bzl", "module
# Implement a way to produce source maps for api extractor
# summarised types as referenced at (https://github.com/microsoft/rushstack/issues/1886#issuecomment-933997910)
-def _deps_inputs(ctx):
- """Returns all transitively referenced files on deps """
+def _collect_inputs_deps_and_transitive_types_deps(ctx):
+ """Returns an array with all transitively referenced files on deps in the pos 0 and all types deps in pos 1"""
deps_files_depsets = []
+ transitive_types_deps = []
for dep in ctx.attr.deps:
# Collect whatever is in the "data"
deps_files_depsets.append(dep.data_runfiles.files)
@@ -25,8 +26,12 @@ def _deps_inputs(ctx):
# Only collect DefaultInfo files (not transitive)
deps_files_depsets.append(dep.files)
+ # Collect transitive type deps to propagate in the provider
+ if DeclarationInfo in dep:
+ transitive_types_deps.append(dep)
+
deps_files = depset(transitive = deps_files_depsets).to_list()
- return deps_files
+ return [deps_files, transitive_types_deps]
def _calculate_entrypoint_path(ctx):
return _join(ctx.bin_dir.path, ctx.label.package, _get_types_outdir_name(ctx), ctx.attr.entrypoint_name)
@@ -54,8 +59,12 @@ def _tsconfig_inputs(ctx):
return all_inputs
def _pkg_npm_types_impl(ctx):
+ # collect input deps and transitive type deps
+ inputs_deps_and_transitive_types_deps = _collect_inputs_deps_and_transitive_types_deps(ctx)
+ transitive_types_deps = inputs_deps_and_transitive_types_deps[1]
+
# input declarations
- deps_inputs = _deps_inputs(ctx)
+ deps_inputs = inputs_deps_and_transitive_types_deps[0]
tsconfig_inputs = _tsconfig_inputs(ctx)
inputs = ctx.files.srcs[:]
inputs.extend(tsconfig_inputs)
@@ -106,7 +115,8 @@ def _pkg_npm_types_impl(ctx):
runfiles = ctx.runfiles([package_dir]),
),
declaration_info(
- declarations = depset([package_dir])
+ declarations = depset([package_dir]),
+ deps = transitive_types_deps,
),
LinkablePackageInfo(
package_name = ctx.attr.package_name,
diff --git a/src/plugins/console/public/application/containers/editor/editor.tsx b/src/plugins/console/public/application/containers/editor/editor.tsx
index b756aa4f28f1b..df017250664e4 100644
--- a/src/plugins/console/public/application/containers/editor/editor.tsx
+++ b/src/plugins/console/public/application/containers/editor/editor.tsx
@@ -11,7 +11,7 @@ import { debounce } from 'lodash';
import { EuiProgress } from '@elastic/eui';
import { EditorContentSpinner } from '../../components';
-import { Panel, PanelsContainer } from '../../../../../kibana_react/public';
+import { Panel, PanelsContainer } from '../../containers';
import { Editor as EditorUI, EditorOutput } from './legacy/console_editor';
import { StorageKeys } from '../../../services';
import { useEditorReadContext, useServicesContext, useRequestReadContext } from '../../contexts';
diff --git a/src/plugins/console/public/application/containers/index.ts b/src/plugins/console/public/application/containers/index.ts
index da7eb41637f21..447b574676144 100644
--- a/src/plugins/console/public/application/containers/index.ts
+++ b/src/plugins/console/public/application/containers/index.ts
@@ -7,3 +7,4 @@
*/
export { Main } from './main';
+export { Panel, PanelsContainer } from './split_panel';
diff --git a/src/plugins/kibana_react/public/split_panel/__snapshots__/split_panel.test.tsx.snap b/src/plugins/console/public/application/containers/split_panel/__snapshots__/split_panel.test.tsx.snap
similarity index 100%
rename from src/plugins/kibana_react/public/split_panel/__snapshots__/split_panel.test.tsx.snap
rename to src/plugins/console/public/application/containers/split_panel/__snapshots__/split_panel.test.tsx.snap
diff --git a/src/plugins/kibana_react/public/split_panel/index.ts b/src/plugins/console/public/application/containers/split_panel/index.ts
similarity index 76%
rename from src/plugins/kibana_react/public/split_panel/index.ts
rename to src/plugins/console/public/application/containers/split_panel/index.ts
index 6d976fe2f5849..0d54d48c484d9 100644
--- a/src/plugins/kibana_react/public/split_panel/index.ts
+++ b/src/plugins/console/public/application/containers/split_panel/index.ts
@@ -6,5 +6,5 @@
* Side Public License, v 1.
*/
-export { Panel } from './containers/panel';
-export { PanelsContainer } from './containers/panel_container';
+export { Panel } from './panel';
+export { PanelsContainer } from './panel_container';
diff --git a/src/plugins/kibana_react/public/split_panel/containers/panel.tsx b/src/plugins/console/public/application/containers/split_panel/panel.tsx
similarity index 96%
rename from src/plugins/kibana_react/public/split_panel/containers/panel.tsx
rename to src/plugins/console/public/application/containers/split_panel/panel.tsx
index 436c07adfb224..1bbff074c2829 100644
--- a/src/plugins/kibana_react/public/split_panel/containers/panel.tsx
+++ b/src/plugins/console/public/application/containers/split_panel/panel.tsx
@@ -7,7 +7,7 @@
*/
import React, { CSSProperties, ReactNode, useEffect, useRef, useState } from 'react';
-import { usePanelContext } from '../context';
+import { usePanelContext } from '../../contexts';
export interface Props {
children: ReactNode[] | ReactNode;
diff --git a/src/plugins/kibana_react/public/split_panel/containers/panel_container.tsx b/src/plugins/console/public/application/containers/split_panel/panel_container.tsx
similarity index 97%
rename from src/plugins/kibana_react/public/split_panel/containers/panel_container.tsx
rename to src/plugins/console/public/application/containers/split_panel/panel_container.tsx
index 69beb565ad857..30e200880d2cb 100644
--- a/src/plugins/kibana_react/public/split_panel/containers/panel_container.tsx
+++ b/src/plugins/console/public/application/containers/split_panel/panel_container.tsx
@@ -9,9 +9,8 @@
import React, { Children, ReactNode, useRef, useState, useCallback, useEffect } from 'react';
import { keys } from '@elastic/eui';
-import { PanelContextProvider } from '../context';
-import { Resizer, ResizerMouseEvent, ResizerKeyDownEvent } from '../components/resizer';
-import { PanelRegistry } from '../registry';
+import { Resizer, ResizerMouseEvent, ResizerKeyDownEvent } from './resizer';
+import { PanelContextProvider, PanelRegistry } from '../../contexts';
export interface Props {
children: ReactNode;
diff --git a/src/plugins/kibana_react/public/split_panel/components/resizer.tsx b/src/plugins/console/public/application/containers/split_panel/resizer.tsx
similarity index 92%
rename from src/plugins/kibana_react/public/split_panel/components/resizer.tsx
rename to src/plugins/console/public/application/containers/split_panel/resizer.tsx
index 8a4c348d482d9..9ead5045805ff 100644
--- a/src/plugins/kibana_react/public/split_panel/components/resizer.tsx
+++ b/src/plugins/console/public/application/containers/split_panel/resizer.tsx
@@ -24,7 +24,7 @@ export function Resizer(props: Props) {
diff --git a/src/plugins/kibana_react/public/split_panel/split_panel.test.tsx b/src/plugins/console/public/application/containers/split_panel/split_panel.test.tsx
similarity index 96%
rename from src/plugins/kibana_react/public/split_panel/split_panel.test.tsx
rename to src/plugins/console/public/application/containers/split_panel/split_panel.test.tsx
index 6ed36168da2af..dc8ebc7220404 100644
--- a/src/plugins/kibana_react/public/split_panel/split_panel.test.tsx
+++ b/src/plugins/console/public/application/containers/split_panel/split_panel.test.tsx
@@ -11,7 +11,8 @@ import { mount } from 'enzyme';
import toJson from 'enzyme-to-json';
import { spy } from 'sinon';
-import { PanelsContainer, Panel } from './index';
+import { Panel } from './panel';
+import { PanelsContainer } from './panel_container';
const testComponentA = A
;
const testComponentB = B
;
diff --git a/src/plugins/console/public/application/contexts/index.ts b/src/plugins/console/public/application/contexts/index.ts
index 2239c4f3354c2..4d2ec36a248d4 100644
--- a/src/plugins/console/public/application/contexts/index.ts
+++ b/src/plugins/console/public/application/contexts/index.ts
@@ -20,3 +20,5 @@ export {
useEditorReadContext,
EditorContextProvider,
} from './editor_context';
+
+export { usePanelContext, PanelContextProvider, PanelRegistry } from './split_panel';
diff --git a/src/plugins/console/public/application/contexts/split_panel/index.ts b/src/plugins/console/public/application/contexts/split_panel/index.ts
new file mode 100644
index 0000000000000..cc6c9561f8b14
--- /dev/null
+++ b/src/plugins/console/public/application/contexts/split_panel/index.ts
@@ -0,0 +1,10 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+export { usePanelContext, PanelContextProvider } from './split_panel_context';
+export { PanelRegistry } from './split_panel_registry';
diff --git a/src/plugins/kibana_react/public/split_panel/context.tsx b/src/plugins/console/public/application/contexts/split_panel/split_panel_context.tsx
similarity index 94%
rename from src/plugins/kibana_react/public/split_panel/context.tsx
rename to src/plugins/console/public/application/contexts/split_panel/split_panel_context.tsx
index e236b5037e7f3..880c0aad8e872 100644
--- a/src/plugins/kibana_react/public/split_panel/context.tsx
+++ b/src/plugins/console/public/application/contexts/split_panel/split_panel_context.tsx
@@ -7,7 +7,7 @@
*/
import React, { createContext, useContext } from 'react';
-import { PanelRegistry } from './registry';
+import { PanelRegistry } from './split_panel_registry';
const PanelContext = createContext({ registry: new PanelRegistry() });
diff --git a/src/plugins/kibana_react/public/split_panel/registry.ts b/src/plugins/console/public/application/contexts/split_panel/split_panel_registry.ts
similarity index 100%
rename from src/plugins/kibana_react/public/split_panel/registry.ts
rename to src/plugins/console/public/application/contexts/split_panel/split_panel_registry.ts
diff --git a/src/plugins/console/public/lib/es/es.ts b/src/plugins/console/public/lib/es/es.ts
index dffc2c9682cf2..d96b294f203da 100644
--- a/src/plugins/console/public/lib/es/es.ts
+++ b/src/plugins/console/public/lib/es/es.ts
@@ -28,12 +28,15 @@ export function send(
method: string,
path: string,
data: string | object,
- { asSystemRequest }: SendOptions = {}
+ { asSystemRequest }: SendOptions = {},
+ withProductOrigin: boolean = false
) {
const wrappedDfd = $.Deferred();
const options: JQuery.AjaxSettings = {
- url: '../api/console/proxy?' + stringify({ path, method }, { sort: false }),
+ url:
+ '../api/console/proxy?' +
+ stringify({ path, method, ...(withProductOrigin && { withProductOrigin }) }, { sort: false }),
headers: {
'kbn-xsrf': 'kibana',
...(asSystemRequest && { 'kbn-system-request': 'true' }),
diff --git a/src/plugins/console/public/lib/mappings/mappings.js b/src/plugins/console/public/lib/mappings/mappings.js
index 2a4ee6b2e346b..af267de1600d3 100644
--- a/src/plugins/console/public/lib/mappings/mappings.js
+++ b/src/plugins/console/public/lib/mappings/mappings.js
@@ -252,8 +252,9 @@ function retrieveSettings(settingsKey, settingsToRetrieve) {
if (settingsToRetrieve[settingsKey] === true) {
// Use pretty=false in these request in order to compress the response by removing whitespace
const path = `${settingKeyToPathMap[settingsKey]}?pretty=false`;
+ const WITH_PRODUCT_ORIGIN = true;
- return es.send('GET', path, null, true);
+ return es.send('GET', path, null, true, WITH_PRODUCT_ORIGIN);
} else {
const settingsPromise = new $.Deferred();
if (settingsToRetrieve[settingsKey] === false) {
diff --git a/src/plugins/console/server/routes/api/console/proxy/create_handler.ts b/src/plugins/console/server/routes/api/console/proxy/create_handler.ts
index 9ece066246e4a..bdf9426a82107 100644
--- a/src/plugins/console/server/routes/api/console/proxy/create_handler.ts
+++ b/src/plugins/console/server/routes/api/console/proxy/create_handler.ts
@@ -116,7 +116,7 @@ export const createHandler =
}: RouteDependencies): RequestHandler =>
async (ctx, request, response) => {
const { body, query } = request;
- const { path, method } = query;
+ const { path, method, withProductOrigin } = query;
if (kibanaVersion.major < 8) {
// The "console.proxyFilter" setting in kibana.yaml has been deprecated in 8.x
@@ -153,6 +153,11 @@ export const createHandler =
const requestHeaders = {
...headers,
...getProxyHeaders(request),
+ // There are a few internal calls that console UI makes to ES in order to get mappings, aliases and templates
+ // in the autocomplete mechanism from the editor. At this particular time, those requests generate deprecation
+ // logs since they access system indices. With this header we can provide a way to the UI to determine which
+ // requests need to deprecation logs and which ones dont.
+ ...(withProductOrigin && { 'x-elastic-product-origin': 'kibana' }),
};
esIncomingMessage = await proxyRequest({
diff --git a/src/plugins/console/server/routes/api/console/proxy/headers.test.ts b/src/plugins/console/server/routes/api/console/proxy/headers.test.ts
index a1a1ff253b391..c2db933ad4e7b 100644
--- a/src/plugins/console/server/routes/api/console/proxy/headers.test.ts
+++ b/src/plugins/console/server/routes/api/console/proxy/headers.test.ts
@@ -74,5 +74,24 @@ describe('Console Proxy Route', () => {
expect(headers).toHaveProperty('x-forwarded-host');
expect(headers['x-forwarded-host']).toBe('test');
});
+
+ it('sends product-origin header when withProductOrigin query param is set', async () => {
+ await handler(
+ {} as any,
+ {
+ headers: {},
+ query: {
+ method: 'POST',
+ path: '/api/console/proxy?path=_aliases&method=GET',
+ withProductOrigin: true,
+ },
+ } as any,
+ kibanaResponseFactory
+ );
+
+ const [[{ headers }]] = (requestModule.proxyRequest as jest.Mock).mock.calls;
+ expect(headers).toHaveProperty('x-elastic-product-origin');
+ expect(headers['x-elastic-product-origin']).toBe('kibana');
+ });
});
});
diff --git a/src/plugins/console/server/routes/api/console/proxy/validation_config.ts b/src/plugins/console/server/routes/api/console/proxy/validation_config.ts
index d9c5653c3efbb..4492863a16bcb 100644
--- a/src/plugins/console/server/routes/api/console/proxy/validation_config.ts
+++ b/src/plugins/console/server/routes/api/console/proxy/validation_config.ts
@@ -29,6 +29,7 @@ export const routeValidationConfig = {
query: schema.object({
method: acceptedHttpVerb,
path: nonEmptyString,
+ withProductOrigin: schema.maybe(schema.boolean()),
}),
body: schema.stream(),
};
diff --git a/src/plugins/data/common/search/aggs/agg_configs.ts b/src/plugins/data/common/search/aggs/agg_configs.ts
index a022abba7fb45..d221273edcb7f 100644
--- a/src/plugins/data/common/search/aggs/agg_configs.ts
+++ b/src/plugins/data/common/search/aggs/agg_configs.ts
@@ -58,7 +58,7 @@ export interface AggConfigsOptions {
export type CreateAggConfigParams = Assign;
-export type GenericBucket = estypes.AggregationsBucket & {
+export type GenericBucket = estypes.AggregationsBuckets & {
[property: string]: estypes.AggregationsAggregate;
};
diff --git a/src/plugins/data/common/search/aggs/utils/time_splits.ts b/src/plugins/data/common/search/aggs/utils/time_splits.ts
index 6eb1827e56b13..14ec52d17ea71 100644
--- a/src/plugins/data/common/search/aggs/utils/time_splits.ts
+++ b/src/plugins/data/common/search/aggs/utils/time_splits.ts
@@ -226,15 +226,17 @@ export function mergeTimeShifts(
const bucketKey = bucketAgg.type.getShiftedKey(bucketAgg, bucket.key, shift);
// if a bucket is missing in the map, create an empty one
if (!baseBucketMap[bucketKey]) {
+ // @ts-expect-error 'number' is not comparable to type 'AggregationsAggregate'.
baseBucketMap[String(bucketKey)] = {
key: bucketKey,
} as GenericBucket;
}
mergeAggLevel(baseBucketMap[bucketKey], bucket, shift, aggIndex + 1);
});
- (baseSubAggregate as estypes.AggregationsMultiBucketAggregate).buckets = Object.values(
- baseBucketMap
- ).sort((a, b) => bucketAgg.type.orderBuckets(bucketAgg, a, b));
+ (baseSubAggregate as estypes.AggregationsMultiBucketAggregateBase).buckets =
+ Object.values(baseBucketMap).sort((a, b) =>
+ bucketAgg.type.orderBuckets(bucketAgg, a, b)
+ );
} else if (baseBuckets && buckets && !isArray(baseBuckets)) {
Object.entries(buckets).forEach(([bucketKey, bucket]) => {
// if a bucket is missing in the base response, create an empty one
@@ -261,11 +263,12 @@ export function mergeTimeShifts(
if (hasMultipleTimeShifts && cursor.time_offset_split) {
const timeShiftedBuckets = (
cursor.time_offset_split as estypes.AggregationsFiltersAggregate
- ).buckets as Record;
+ ).buckets;
const subTree = {};
Object.entries(timeShifts).forEach(([key, shift]) => {
mergeAggLevel(
subTree as GenericBucket,
+ // @ts-expect-error No index signature with a parameter of type 'string' was found on type 'AggregationsBuckets'
timeShiftedBuckets[key] as GenericBucket,
shift,
aggIndex
@@ -292,7 +295,9 @@ export function mergeTimeShifts(
if (isArray(subAgg.buckets)) {
subAgg.buckets.forEach((bucket) => transformTimeShift(bucket, aggIndex + 1));
} else {
- Object.values(subAgg.buckets).forEach((bucket) => transformTimeShift(bucket, aggIndex + 1));
+ Object.values(subAgg.buckets).forEach((bucket: any) =>
+ transformTimeShift(bucket, aggIndex + 1)
+ );
}
});
};
diff --git a/src/plugins/data/common/search/expressions/es_raw_response.test.ts b/src/plugins/data/common/search/expressions/es_raw_response.test.ts
index d09e71e73258b..2fc5e84a511cd 100644
--- a/src/plugins/data/common/search/expressions/es_raw_response.test.ts
+++ b/src/plugins/data/common/search/expressions/es_raw_response.test.ts
@@ -78,7 +78,6 @@ describe('esRawResponse', () => {
{
_index: 'kibana_sample_data_ecommerce',
_id: 'AncqUnMBMY_orZma2mZy',
- _type: 'document',
_score: 0,
_source: {
category: ["Men's Clothing"],
@@ -164,7 +163,6 @@ describe('esRawResponse', () => {
{
_index: 'kibana_sample_data_ecommerce',
_id: 'I3cqUnMBMY_orZma2mZy',
- _type: 'document',
_score: 0,
_source: {
category: ["Men's Clothing"],
@@ -251,7 +249,6 @@ describe('esRawResponse', () => {
_index: 'kibana_sample_data_ecommerce',
_id: 'JHcqUnMBMY_orZma2mZy',
_score: 0,
- _type: 'document',
_source: {
category: ["Men's Clothing"],
currency: 'EUR',
@@ -337,7 +334,6 @@ describe('esRawResponse', () => {
_index: 'kibana_sample_data_ecommerce',
_id: 'LHcqUnMBMY_orZma2mZy',
_score: 0,
- _type: 'document',
_source: {
category: ["Women's Shoes", "Women's Clothing"],
currency: 'EUR',
@@ -448,7 +444,6 @@ describe('esRawResponse', () => {
{
_index: 'kibana_sample_data_ecommerce',
_id: 'AncqUnMBMY_orZma2mZy',
- _type: 'document',
_score: 0,
_source: {
category: ["Men's Clothing"],
@@ -534,7 +529,6 @@ describe('esRawResponse', () => {
{
_index: 'kibana_sample_data_ecommerce',
_id: 'I3cqUnMBMY_orZma2mZy',
- _type: 'document',
_score: 0,
_source: {
category: ["Men's Clothing"],
@@ -621,7 +615,6 @@ describe('esRawResponse', () => {
_index: 'kibana_sample_data_ecommerce',
_id: 'JHcqUnMBMY_orZma2mZy',
_score: 0,
- _type: 'document',
_source: {
category: ["Men's Clothing"],
currency: 'EUR',
@@ -707,7 +700,6 @@ describe('esRawResponse', () => {
_index: 'kibana_sample_data_ecommerce',
_id: 'LHcqUnMBMY_orZma2mZy',
_score: 0,
- _type: 'document',
_source: {
category: ["Women's Shoes", "Women's Clothing"],
currency: 'EUR',
diff --git a/src/plugins/data/common/search/tabify/__snapshots__/tabify_docs.test.ts.snap b/src/plugins/data/common/search/tabify/__snapshots__/tabify_docs.test.ts.snap
index 9a85ba57ce5ef..fe472ecebaacc 100644
--- a/src/plugins/data/common/search/tabify/__snapshots__/tabify_docs.test.ts.snap
+++ b/src/plugins/data/common/search/tabify/__snapshots__/tabify_docs.test.ts.snap
@@ -77,23 +77,12 @@ Object {
},
"name": "_score",
},
- Object {
- "id": "_type",
- "meta": Object {
- "field": "_type",
- "index": "test-index",
- "params": undefined,
- "type": "string",
- },
- "name": "_type",
- },
],
"rows": Array [
Object {
"_id": "hit-id-value",
"_index": "hit-index-value",
"_score": 77,
- "_type": "hit-type-value",
"fieldTest": 123,
"invalidMapping": 345,
"nested": Array [
@@ -185,23 +174,12 @@ Object {
},
"name": "_score",
},
- Object {
- "id": "_type",
- "meta": Object {
- "field": "_type",
- "index": "test-index",
- "params": undefined,
- "type": "string",
- },
- "name": "_type",
- },
],
"rows": Array [
Object {
"_id": "hit-id-value",
"_index": "hit-index-value",
"_score": 77,
- "_type": "hit-type-value",
"fieldTest": 123,
"invalidMapping": 345,
"nested": Array [
@@ -293,23 +271,12 @@ Object {
},
"name": "_score",
},
- Object {
- "id": "_type",
- "meta": Object {
- "field": "_type",
- "index": "test-index",
- "params": undefined,
- "type": "string",
- },
- "name": "_type",
- },
],
"rows": Array [
Object {
"_id": "hit-id-value",
"_index": "hit-index-value",
"_score": 77,
- "_type": "hit-type-value",
"fieldTest": 123,
"invalidMapping": 345,
"nested": Array [
diff --git a/src/plugins/data/common/search/tabify/tabify_docs.test.ts b/src/plugins/data/common/search/tabify/tabify_docs.test.ts
index 8bba487cef9b3..dc2e09f4939c9 100644
--- a/src/plugins/data/common/search/tabify/tabify_docs.test.ts
+++ b/src/plugins/data/common/search/tabify/tabify_docs.test.ts
@@ -71,7 +71,7 @@ describe('tabify_docs', () => {
},
indexPattern
);
- const expectedOrder = ['_abc', 'date', 'name', 'zzz', '_id', '_routing', '_score', '_type'];
+ const expectedOrder = ['_abc', 'date', 'name', 'zzz', '_id', '_routing', '_score'];
expect(Object.keys(response)).toEqual(expectedOrder);
expect(Object.entries(response).map(([key]) => key)).toEqual(expectedOrder);
});
@@ -179,7 +179,7 @@ describe('tabify_docs', () => {
it('combines meta fields from index pattern', () => {
const table = tabifyDocs(response, index);
expect(table.columns.map((col) => col.id)).toEqual(
- expect.arrayContaining(['_id', '_index', '_score', '_type'])
+ expect.arrayContaining(['_id', '_index', '_score'])
);
});
diff --git a/src/plugins/data/common/search/tabify/tabify_docs.ts b/src/plugins/data/common/search/tabify/tabify_docs.ts
index 08172a918c042..5db0770b2247f 100644
--- a/src/plugins/data/common/search/tabify/tabify_docs.ts
+++ b/src/plugins/data/common/search/tabify/tabify_docs.ts
@@ -23,7 +23,6 @@ type ValidMetaFieldNames = keyof Pick<
| '_seq_no'
| '_shard'
| '_source'
- | '_type'
| '_version'
>;
const VALID_META_FIELD_NAMES: ValidMetaFieldNames[] = [
@@ -37,7 +36,6 @@ const VALID_META_FIELD_NAMES: ValidMetaFieldNames[] = [
'_seq_no',
'_shard',
'_source',
- '_type',
'_version',
];
diff --git a/src/plugins/data/public/autocomplete/providers/kql_query_suggestion/field.test.ts b/src/plugins/data/public/autocomplete/providers/kql_query_suggestion/field.test.ts
index 088edd3a7aca8..d5b071dda9f38 100644
--- a/src/plugins/data/public/autocomplete/providers/kql_query_suggestion/field.test.ts
+++ b/src/plugins/data/public/autocomplete/providers/kql_query_suggestion/field.test.ts
@@ -41,7 +41,6 @@ describe('Kuery field suggestions', () => {
querySuggestionsArgs,
mockKueryNode({ prefix, suffix })
);
- // @ts-expect-error indexPatternResponse is not properly typed json
const filterableFields = indexPatternResponse.fields.filter(indexPatternsUtils.isFilterable);
expect(suggestions.length).toBe(filterableFields.length);
diff --git a/src/plugins/data/public/query/filter_manager/lib/generate_filter.test.ts b/src/plugins/data/public/query/filter_manager/lib/generate_filter.test.ts
index 6ed0db9f59358..2b00ff41e9516 100644
--- a/src/plugins/data/public/query/filter_manager/lib/generate_filter.test.ts
+++ b/src/plugins/data/public/query/filter_manager/lib/generate_filter.test.ts
@@ -11,8 +11,8 @@ import { FilterManager } from '../filter_manager';
import {
Filter,
- IndexPatternFieldBase,
- IndexPatternBase,
+ DataViewFieldBase,
+ DataViewBase,
isExistsFilter,
buildExistsFilter,
isPhraseFilter,
@@ -25,7 +25,7 @@ const INDEX_NAME = 'my-index';
const EXISTS_FIELD_NAME = '_exists_';
const FIELD = {
name: 'my-field',
-} as IndexPatternFieldBase;
+} as DataViewFieldBase;
const PHRASE_VALUE = 'my-value';
describe('Generate filters', () => {
@@ -70,7 +70,7 @@ describe('Generate filters', () => {
});
it('should update and re-enable EXISTING exists filter', () => {
- const filter = buildExistsFilter(FIELD, { id: INDEX_NAME } as IndexPatternBase);
+ const filter = buildExistsFilter(FIELD, { id: INDEX_NAME } as DataViewBase);
filter.meta.disabled = true;
filtersArray.push(filter);
@@ -113,7 +113,7 @@ describe('Generate filters', () => {
{
name: 'my-field',
type: 'ip_range',
- } as IndexPatternFieldBase,
+ } as DataViewFieldBase,
{
gt: '192.168.0.0',
lte: '192.168.255.255',
@@ -140,7 +140,7 @@ describe('Generate filters', () => {
{
name: 'my-field',
type: 'number_range',
- } as IndexPatternFieldBase,
+ } as DataViewFieldBase,
10000,
'+',
INDEX_NAME
diff --git a/src/plugins/data/public/search/errors/painless_error.test.tsx b/src/plugins/data/public/search/errors/painless_error.test.tsx
index 833573786594b..f07f078ea03a3 100644
--- a/src/plugins/data/public/search/errors/painless_error.test.tsx
+++ b/src/plugins/data/public/search/errors/painless_error.test.tsx
@@ -23,7 +23,6 @@ describe('PainlessError', () => {
const e = new PainlessError({
statusCode: 400,
message: 'search_phase_execution_exception',
- // @ts-expect-error searchPhaseException is not properly typed json
attributes: searchPhaseException.error,
});
const component = mount(e.getErrorMessage(startMock.application));
diff --git a/src/plugins/data/public/search/search_interceptor/search_interceptor.test.ts b/src/plugins/data/public/search/search_interceptor/search_interceptor.test.ts
index 7186938816d5f..142fa94c96162 100644
--- a/src/plugins/data/public/search/search_interceptor/search_interceptor.test.ts
+++ b/src/plugins/data/public/search/search_interceptor/search_interceptor.test.ts
@@ -141,7 +141,6 @@ describe('SearchInterceptor', () => {
new PainlessError({
statusCode: 400,
message: 'search_phase_execution_exception',
- // @ts-expect-error searchPhaseException is not properly typed json
attributes: searchPhaseException.error,
})
);
diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/constants.ts b/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/constants.ts
new file mode 100644
index 0000000000000..cc566f297e3d2
--- /dev/null
+++ b/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/constants.ts
@@ -0,0 +1,9 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+export const formatId = 'geo_point';
diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/geo_point.tsx b/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/geo_point.tsx
new file mode 100644
index 0000000000000..d21d1eb766f1d
--- /dev/null
+++ b/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/geo_point.tsx
@@ -0,0 +1,73 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import React, { Fragment } from 'react';
+
+import { EuiFormRow, EuiSelect } from '@elastic/eui';
+
+import { FormattedMessage } from '@kbn/i18n-react';
+import { DefaultFormatEditor, defaultState } from '../default/default';
+
+import { FormatEditorSamples } from '../../samples';
+import { formatId } from './constants';
+import { GeoPointFormat } from '../../../../../../field_formats/common';
+
+interface GeoPointFormatEditorFormatParams {
+ transform: string;
+}
+
+export class GeoPointFormatEditor extends DefaultFormatEditor {
+ static formatId = formatId;
+ state = {
+ ...defaultState,
+ sampleInputs: [
+ {
+ coordinates: [125.6, 10.1],
+ type: 'Point',
+ },
+ ],
+ };
+
+ render() {
+ const { formatParams, format } = this.props;
+ const { error, samples } = this.state;
+
+ return (
+
+
+ }
+ isInvalid={!!error}
+ error={error}
+ >
+ {
+ return {
+ value: option.kind as string,
+ text: option.text,
+ };
+ }
+ )}
+ onChange={(e) => {
+ this.onChange({ transform: e.target.value });
+ }}
+ isInvalid={!!error}
+ />
+
+
+
+ );
+ }
+}
diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/index.ts b/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/index.ts
new file mode 100644
index 0000000000000..c7eddd167ba91
--- /dev/null
+++ b/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/geo_point/index.ts
@@ -0,0 +1,15 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import { FieldFormatEditorFactory } from '../types';
+import { formatId } from './constants';
+
+export type { GeoPointFormatEditor } from './geo_point';
+export const geoPointFormatEditorFactory: FieldFormatEditorFactory = () =>
+ import('./geo_point').then((m) => m.GeoPointFormatEditor);
+geoPointFormatEditorFactory.formatId = formatId;
diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/index.ts b/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/index.ts
index fceb3511301c0..4d40544cf7c37 100644
--- a/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/index.ts
+++ b/src/plugins/data_view_field_editor/public/components/field_format_editor/editors/index.ts
@@ -15,6 +15,7 @@ export { ColorFormatEditor, colorFormatEditorFactory } from './color';
export { DateFormatEditor, dateFormatEditorFactory } from './date';
export { DateNanosFormatEditor, dateNanosFormatEditorFactory } from './date_nanos';
export { DurationFormatEditor, durationFormatEditorFactory } from './duration';
+export { GeoPointFormatEditor, geoPointFormatEditorFactory } from './geo_point';
export { NumberFormatEditor, numberFormatEditorFactory } from './number';
export { PercentFormatEditor, percentFormatEditorFactory } from './percent';
export { StaticLookupFormatEditor, staticLookupFormatEditorFactory } from './static_lookup';
diff --git a/src/plugins/data_view_field_editor/public/components/field_format_editor/types.ts b/src/plugins/data_view_field_editor/public/components/field_format_editor/types.ts
index 8588423b87489..22a27bb5d5137 100644
--- a/src/plugins/data_view_field_editor/public/components/field_format_editor/types.ts
+++ b/src/plugins/data_view_field_editor/public/components/field_format_editor/types.ts
@@ -8,7 +8,7 @@
import { ReactText } from 'react';
-export type SampleInput = ReactText | ReactText[] | Record;
+export type SampleInput = ReactText | ReactText[] | Record | object;
export interface Sample {
input: SampleInput;
diff --git a/src/plugins/data_view_field_editor/public/service/format_editor_service.ts b/src/plugins/data_view_field_editor/public/service/format_editor_service.ts
index 69ae89a42c947..61458820bd79f 100644
--- a/src/plugins/data_view_field_editor/public/service/format_editor_service.ts
+++ b/src/plugins/data_view_field_editor/public/service/format_editor_service.ts
@@ -14,6 +14,7 @@ import {
dateFormatEditorFactory,
dateNanosFormatEditorFactory,
durationFormatEditorFactory,
+ geoPointFormatEditorFactory,
numberFormatEditorFactory,
percentFormatEditorFactory,
staticLookupFormatEditorFactory,
@@ -43,6 +44,7 @@ export class FormatEditorService {
dateFormatEditorFactory,
dateNanosFormatEditorFactory,
durationFormatEditorFactory,
+ geoPointFormatEditorFactory,
numberFormatEditorFactory,
percentFormatEditorFactory,
staticLookupFormatEditorFactory,
diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts b/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts
index c5ac96ad149cc..00247c1deecc2 100644
--- a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts
+++ b/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts
@@ -6,10 +6,10 @@
* Side Public License, v 1.
*/
-import { IndexPatternFieldBase } from '@kbn/es-query';
+import { DataViewFieldBase } from '@kbn/es-query';
import { IndexPatternField } from '../../../../../../plugins/data/public';
-type IndexedFieldItemBase = Partial & IndexPatternFieldBase;
+type IndexedFieldItemBase = Partial & DataViewFieldBase;
export interface IndexedFieldItem extends IndexedFieldItemBase {
info: string[];
diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx b/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx
index bacab18d28509..96f78a088fff4 100644
--- a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx
+++ b/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/confirmation_modal/confirmation_modal.test.tsx
@@ -15,7 +15,6 @@ describe('DeleteScritpedFieldConfirmationModal', () => {
test('should render normally', () => {
const component = shallow(
{}}
hideDeleteConfirmationModal={() => {}}
diff --git a/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx b/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx
index 5beb4fb989d5b..ce680e197073c 100644
--- a/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx
+++ b/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx
@@ -185,7 +185,6 @@ export class FieldEditor extends PureComponent {
test('should have expected properties', () => {
expect(indexPattern).toHaveProperty('getScriptedFields');
expect(indexPattern).toHaveProperty('getNonScriptedFields');
- expect(indexPattern).toHaveProperty('addScriptedField');
- expect(indexPattern).toHaveProperty('removeScriptedField');
- expect(indexPattern).toHaveProperty('addScriptedField');
expect(indexPattern).toHaveProperty('removeScriptedField');
expect(indexPattern).toHaveProperty('addRuntimeField');
expect(indexPattern).toHaveProperty('removeRuntimeField');
@@ -173,11 +170,17 @@ describe('IndexPattern', () => {
type: 'boolean',
};
- await indexPattern.addScriptedField(
- scriptedField.name,
- scriptedField.script,
- scriptedField.type
- );
+ indexPattern.fields.add({
+ name: scriptedField.name,
+ script: scriptedField.script,
+ type: scriptedField.type,
+ scripted: true,
+ lang: 'painless',
+ aggregatable: true,
+ searchable: true,
+ count: 0,
+ readFromDocValues: false,
+ });
const scriptedFields = indexPattern.getScriptedFields();
expect(scriptedFields).toHaveLength(oldCount + 1);
@@ -196,25 +199,6 @@ describe('IndexPattern', () => {
expect(indexPattern.getScriptedFields().length).toEqual(oldCount - 1);
expect(indexPattern.fields.getByName(scriptedField.name)).toEqual(undefined);
});
-
- test('should not allow duplicate names', async () => {
- const scriptedFields = indexPattern.getScriptedFields();
- const scriptedField = last(scriptedFields) as any;
- expect.assertions(1);
- try {
- await indexPattern.addScriptedField(scriptedField.name, "'new script'", 'string');
- } catch (e) {
- expect(e).toBeInstanceOf(DuplicateField);
- }
- });
-
- test('should not allow scripted field with * in name', async () => {
- try {
- await indexPattern.addScriptedField('test*123', "'new script'", 'string');
- } catch (e) {
- expect(e).toBeInstanceOf(CharacterNotAllowedInField);
- }
- });
});
describe('setFieldFormat and deleteFieldFormaat', () => {
diff --git a/src/plugins/data_views/common/data_views/data_view.ts b/src/plugins/data_views/common/data_views/data_view.ts
index 921a5897dd232..67a127407f94a 100644
--- a/src/plugins/data_views/common/data_views/data_view.ts
+++ b/src/plugins/data_views/common/data_views/data_view.ts
@@ -13,7 +13,7 @@ import { castEsToKbnFieldTypeName, ES_FIELD_TYPES, KBN_FIELD_TYPES } from '@kbn/
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { FieldAttrs, FieldAttrSet, DataViewAttributes } from '..';
import type { RuntimeField } from '../types';
-import { CharacterNotAllowedInField, DuplicateField } from '../../../kibana_utils/common';
+import { CharacterNotAllowedInField } from '../../../kibana_utils/common';
import { IIndexPattern, IFieldType } from '../../common';
import { DataViewField, IIndexPatternFieldList, fieldList } from '../fields';
@@ -36,7 +36,6 @@ interface SavedObjectBody {
fieldAttrs?: string;
title?: string;
timeFieldName?: string;
- intervalName?: string;
fields?: string;
sourceFilters?: string;
fieldFormatMap?: string;
@@ -62,12 +61,6 @@ export class DataView implements IIndexPattern {
public typeMeta?: TypeMeta;
public fields: IIndexPatternFieldList & { toSpec: () => DataViewFieldMap };
public timeFieldName: string | undefined;
- /**
- * @deprecated Used by time range index patterns
- * @removeBy 8.1
- *
- */
- public intervalName: string | undefined;
/**
* Type is used to identify rollup index patterns
*/
@@ -117,7 +110,6 @@ export class DataView implements IIndexPattern {
this.type = spec.type;
this.typeMeta = spec.typeMeta;
this.fieldAttrs = spec.fieldAttrs || {};
- this.intervalName = spec.intervalName;
this.allowNoIndex = spec.allowNoIndex || false;
this.runtimeFieldMap = spec.runtimeFieldMap || {};
}
@@ -217,7 +209,6 @@ export class DataView implements IIndexPattern {
fieldFormats: this.fieldFormatMap,
runtimeFieldMap: this.runtimeFieldMap,
fieldAttrs: this.fieldAttrs,
- intervalName: this.intervalName,
allowNoIndex: this.allowNoIndex,
};
}
@@ -231,40 +222,6 @@ export class DataView implements IIndexPattern {
};
}
- /**
- * Add scripted field to field list
- *
- * @param name field name
- * @param script script code
- * @param fieldType
- * @param lang
- * @deprecated use runtime field instead
- */
- async addScriptedField(name: string, script: string, fieldType: string = 'string') {
- const scriptedFields = this.getScriptedFields();
- const names = _.map(scriptedFields, 'name');
-
- if (name.includes('*')) {
- throw new CharacterNotAllowedInField('*', name);
- }
-
- if (_.includes(names, name)) {
- throw new DuplicateField(name);
- }
-
- this.fields.add({
- name,
- script,
- type: fieldType,
- scripted: true,
- lang: 'painless',
- aggregatable: true,
- searchable: true,
- count: 0,
- readFromDocValues: false,
- });
- }
-
/**
* Remove scripted field from field list
* @param fieldName
@@ -331,7 +288,6 @@ export class DataView implements IIndexPattern {
fieldAttrs: fieldAttrs ? JSON.stringify(fieldAttrs) : undefined,
title: this.title,
timeFieldName: this.timeFieldName,
- intervalName: this.intervalName,
sourceFilters: this.sourceFilters ? JSON.stringify(this.sourceFilters) : undefined,
fields: JSON.stringify(this.fields?.filter((field) => field.scripted) ?? []),
fieldFormatMap,
diff --git a/src/plugins/data_views/common/data_views/data_views.ts b/src/plugins/data_views/common/data_views/data_views.ts
index e7512adc5feff..1024dc2926786 100644
--- a/src/plugins/data_views/common/data_views/data_views.ts
+++ b/src/plugins/data_views/common/data_views/data_views.ts
@@ -383,7 +383,6 @@ export class DataViewsService {
attributes: {
title,
timeFieldName,
- intervalName,
fields,
sourceFilters,
fieldFormatMap,
@@ -408,7 +407,6 @@ export class DataViewsService {
id,
version,
title,
- intervalName,
timeFieldName,
sourceFilters: parsedSourceFilters,
fields: this.fieldArrayToMap(parsedFields, parsedFieldAttrs),
diff --git a/src/plugins/data_views/common/types.ts b/src/plugins/data_views/common/types.ts
index e9b191b4db14f..db0e19cca32b4 100644
--- a/src/plugins/data_views/common/types.ts
+++ b/src/plugins/data_views/common/types.ts
@@ -59,7 +59,6 @@ export interface DataViewAttributes {
type?: string;
typeMeta?: string;
timeFieldName?: string;
- intervalName?: string;
sourceFilters?: string;
fieldFormatMap?: string;
fieldAttrs?: string;
@@ -249,11 +248,6 @@ export interface DataViewSpec {
*/
version?: string;
title?: string;
- /**
- * @deprecated
- * Deprecated. Was used by time range based index patterns
- */
- intervalName?: string;
timeFieldName?: string;
sourceFilters?: SourceFilter[];
fields?: DataViewFieldMap;
diff --git a/src/plugins/data_views/server/data_views_service_factory.ts b/src/plugins/data_views/server/data_views_service_factory.ts
index 620107231fb4f..e575362b8c34d 100644
--- a/src/plugins/data_views/server/data_views_service_factory.ts
+++ b/src/plugins/data_views/server/data_views_service_factory.ts
@@ -20,23 +20,23 @@ import { UiSettingsServerToCommon } from './ui_settings_wrapper';
import { IndexPatternsApiServer } from './index_patterns_api_client';
import { SavedObjectsClientServerToCommon } from './saved_objects_client_wrapper';
-export const dataViewsServiceFactory =
- ({
- logger,
- uiSettings,
- fieldFormats,
- capabilities,
- }: {
- logger: Logger;
- uiSettings: UiSettingsServiceStart;
- fieldFormats: FieldFormatsStart;
- capabilities: CoreStart['capabilities'];
- }) =>
- async (
+export const dataViewsServiceFactory = ({
+ logger,
+ uiSettings,
+ fieldFormats,
+ capabilities,
+}: {
+ logger: Logger;
+ uiSettings: UiSettingsServiceStart;
+ fieldFormats: FieldFormatsStart;
+ capabilities: CoreStart['capabilities'];
+}) =>
+ async function (
savedObjectsClient: SavedObjectsClientContract,
elasticsearchClient: ElasticsearchClient,
- request?: KibanaRequest
- ) => {
+ request?: KibanaRequest,
+ byPassCapabilities?: boolean
+ ) {
const uiSettingsClient = uiSettings.asScopedToClient(savedObjectsClient);
const formats = await fieldFormats.fieldFormatServiceFactory(uiSettingsClient);
@@ -52,7 +52,9 @@ export const dataViewsServiceFactory =
logger.warn(`${title}${text ? ` : ${text}` : ''}`);
},
getCanSave: async () =>
- request
+ byPassCapabilities
+ ? true
+ : request
? (await capabilities.resolveCapabilities(request)).indexPatterns.save === true
: false,
});
diff --git a/src/plugins/data_views/server/routes/update_index_pattern.ts b/src/plugins/data_views/server/routes/update_index_pattern.ts
index 078ef5dec5de5..25f45456b9d13 100644
--- a/src/plugins/data_views/server/routes/update_index_pattern.ts
+++ b/src/plugins/data_views/server/routes/update_index_pattern.ts
@@ -21,7 +21,6 @@ const indexPatternUpdateSchema = schema.object({
type: schema.maybe(schema.string()),
typeMeta: schema.maybe(schema.object({}, { unknowns: 'allow' })),
timeFieldName: schema.maybe(schema.string()),
- intervalName: schema.maybe(schema.string()),
sourceFilters: schema.maybe(
schema.arrayOf(
schema.object({
@@ -81,7 +80,6 @@ export const registerUpdateIndexPatternRoute = (
index_pattern: {
title,
timeFieldName,
- intervalName,
sourceFilters,
fieldFormats,
type,
@@ -104,11 +102,6 @@ export const registerUpdateIndexPatternRoute = (
indexPattern.timeFieldName = timeFieldName;
}
- if (intervalName !== undefined && intervalName !== indexPattern.intervalName) {
- changeCount++;
- indexPattern.intervalName = intervalName;
- }
-
if (sourceFilters !== undefined) {
changeCount++;
indexPattern.sourceFilters = sourceFilters;
diff --git a/src/plugins/data_views/server/types.ts b/src/plugins/data_views/server/types.ts
index a5111a535f3ef..343661e1840ba 100644
--- a/src/plugins/data_views/server/types.ts
+++ b/src/plugins/data_views/server/types.ts
@@ -20,7 +20,8 @@ import { FieldFormatsSetup, FieldFormatsStart } from '../../field_formats/server
type ServiceFactory = (
savedObjectsClient: SavedObjectsClientContract,
elasticsearchClient: ElasticsearchClient,
- request?: KibanaRequest
+ request?: KibanaRequest,
+ byPassCapabilities?: boolean
) => Promise;
export interface DataViewsServerPluginStart {
dataViewsServiceFactory: ServiceFactory;
diff --git a/src/plugins/discover/public/application/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap b/src/plugins/discover/public/application/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap
index 17d414215af55..3f20bf452ddf3 100644
--- a/src/plugins/discover/public/application/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap
+++ b/src/plugins/discover/public/application/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap
@@ -619,7 +619,6 @@ exports[`Discover IndexPattern Management renders correctly 1`] = `
"getFieldAttrs": [Function],
"getOriginalSavedObjectBody": [Function],
"id": "logstash-*",
- "intervalName": undefined,
"metaFields": Array [
"_id",
"_type",
diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.test.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.test.tsx
index a4d7107a7f15c..95c167524af48 100644
--- a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.test.tsx
+++ b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.test.tsx
@@ -84,7 +84,7 @@ describe('discover sidebar', function () {
const selected = findTestSubject(comp, 'fieldList-selected');
const unpopular = findTestSubject(comp, 'fieldList-unpopular');
expect(popular.children().length).toBe(1);
- expect(unpopular.children().length).toBe(7);
+ expect(unpopular.children().length).toBe(6);
expect(selected.children().length).toBe(1);
});
it('should allow selecting fields', function () {
diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx
index c65d0b0a4ec2c..7366c8b3c6879 100644
--- a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx
+++ b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx
@@ -122,7 +122,7 @@ describe('discover responsive sidebar', function () {
const selected = findTestSubject(comp, 'fieldList-selected');
const unpopular = findTestSubject(comp, 'fieldList-unpopular');
expect(popular.children().length).toBe(1);
- expect(unpopular.children().length).toBe(7);
+ expect(unpopular.children().length).toBe(6);
expect(selected.children().length).toBe(1);
expect(mockCalcFieldCounts.mock.calls.length).toBe(1);
});
@@ -140,7 +140,7 @@ describe('discover responsive sidebar', function () {
expect(props.onAddFilter).toHaveBeenCalled();
});
it('should allow filtering by string, and calcFieldCount should just be executed once', function () {
- expect(findTestSubject(comp, 'fieldList-unpopular').children().length).toBe(7);
+ expect(findTestSubject(comp, 'fieldList-unpopular').children().length).toBe(6);
act(() => {
findTestSubject(comp, 'fieldFilterSearchInput').simulate('change', {
target: { value: 'abc' },
diff --git a/src/plugins/discover/public/application/main/components/sidebar/lib/field_calculator.test.ts b/src/plugins/discover/public/application/main/components/sidebar/lib/field_calculator.test.ts
index 519b298d70072..1b2148aeca8a4 100644
--- a/src/plugins/discover/public/application/main/components/sidebar/lib/field_calculator.test.ts
+++ b/src/plugins/discover/public/application/main/components/sidebar/lib/field_calculator.test.ts
@@ -142,16 +142,11 @@ describe('fieldCalculator', function () {
it('Should return an array of values for core meta fields', function () {
const types = fieldCalculator.getFieldValues(
hits,
- indexPattern.fields.getByName('_type'),
+ indexPattern.fields.getByName('_id'),
indexPattern
);
expect(types).toBeInstanceOf(Array);
- expect(
- filter(types, function (v) {
- return v === 'apache';
- }).length
- ).toBe(18);
- expect(uniq(clone(types)).sort()).toEqual(['apache', 'nginx']);
+ expect(types.length).toBe(20);
});
});
diff --git a/src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx b/src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx
index d1a1f2dcdbe8a..11f32890f29ea 100644
--- a/src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx
+++ b/src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx
@@ -142,7 +142,6 @@ describe('DiscoverGrid', () => {
_index: 'i',
_id: '6',
_score: 1,
- _type: '_doc',
_source: {
date: '2020-20-02T12:12:12.128',
name: 'test6',
diff --git a/src/plugins/discover/public/components/discover_grid/get_render_cell_value.test.tsx b/src/plugins/discover/public/components/discover_grid/get_render_cell_value.test.tsx
index b81dda5c27915..a102622402d02 100644
--- a/src/plugins/discover/public/components/discover_grid/get_render_cell_value.test.tsx
+++ b/src/plugins/discover/public/components/discover_grid/get_render_cell_value.test.tsx
@@ -35,7 +35,6 @@ const rowsSource: ElasticSearchHit[] = [
{
_id: '1',
_index: 'test',
- _type: 'test',
_score: 1,
_source: { bytes: 100, extension: '.gz' },
highlight: {
@@ -48,7 +47,6 @@ const rowsFields: ElasticSearchHit[] = [
{
_id: '1',
_index: 'test',
- _type: 'test',
_score: 1,
_source: undefined,
fields: { bytes: [100], extension: ['.gz'] },
@@ -62,7 +60,6 @@ const rowsFieldsWithTopLevelObject: ElasticSearchHit[] = [
{
_id: '1',
_index: 'test',
- _type: 'test',
_score: 1,
_source: undefined,
fields: { 'object.value': [100], extension: ['.gz'] },
@@ -202,7 +199,6 @@ describe('Discover grid cell rendering', function () {
"bytes": 100,
"extension": ".gz",
},
- "_type": "test",
"highlight": Object {
"extension": Array [
"@kibana-highlighted-field.gz@/kibana-highlighted-field",
@@ -397,7 +393,6 @@ describe('Discover grid cell rendering', function () {
"_index": "test",
"_score": 1,
"_source": undefined,
- "_type": "test",
"fields": Object {
"bytes": Array [
100,
diff --git a/src/plugins/discover/public/components/doc_table/doc_table_embeddable.tsx b/src/plugins/discover/public/components/doc_table/doc_table_embeddable.tsx
index 6da42bc53442d..16618a47cca0d 100644
--- a/src/plugins/discover/public/components/doc_table/doc_table_embeddable.tsx
+++ b/src/plugins/discover/public/components/doc_table/doc_table_embeddable.tsx
@@ -6,12 +6,12 @@
* Side Public License, v 1.
*/
-import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
+import React, { memo, useCallback, useMemo, useRef } from 'react';
import './index.scss';
import { FormattedMessage } from '@kbn/i18n-react';
import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui';
import { SAMPLE_SIZE_SETTING } from '../../../common';
-import { usePager } from './lib/use_pager';
+import { usePager } from '../../utils/use_pager';
import { ToolBarPagination } from './components/pager/tool_bar_pagination';
import { DocTableProps, DocTableRenderProps, DocTableWrapper } from './doc_table_wrapper';
import { TotalDocuments } from '../../application/main/components/total_documents/total_documents';
@@ -25,10 +25,18 @@ const DocTableWrapperMemoized = memo(DocTableWrapper);
export const DocTableEmbeddable = (props: DocTableEmbeddableProps) => {
const tableWrapperRef = useRef(null);
- const { currentPage, pageSize, totalPages, startIndex, hasNextPage, changePage, changePageSize } =
- usePager({
- totalItems: props.rows.length,
- });
+ const {
+ curPageIndex,
+ pageSize,
+ totalPages,
+ startIndex,
+ hasNextPage,
+ changePageIndex,
+ changePageSize,
+ } = usePager({
+ initialPageSize: 50,
+ totalItems: props.rows.length,
+ });
const showPagination = totalPages !== 0;
const scrollTop = useCallback(() => {
@@ -45,9 +53,9 @@ export const DocTableEmbeddable = (props: DocTableEmbeddableProps) => {
const onPageChange = useCallback(
(page: number) => {
scrollTop();
- changePage(page);
+ changePageIndex(page);
},
- [changePage, scrollTop]
+ [changePageIndex, scrollTop]
);
const onPageSizeChange = useCallback(
@@ -58,15 +66,6 @@ export const DocTableEmbeddable = (props: DocTableEmbeddableProps) => {
[changePageSize, scrollTop]
);
- /**
- * Go to the first page if the current is no longer available
- */
- useEffect(() => {
- if (totalPages < currentPage + 1) {
- onPageChange(0);
- }
- }, [currentPage, totalPages, onPageChange]);
-
const shouldShowLimitedResultsWarning = useMemo(
() => !hasNextPage && props.rows.length < props.totalHitCount,
[hasNextPage, props.rows.length, props.totalHitCount]
@@ -128,7 +127,7 @@ export const DocTableEmbeddable = (props: DocTableEmbeddableProps) => {
diff --git a/src/plugins/discover/public/components/doc_table/doc_table_wrapper.test.tsx b/src/plugins/discover/public/components/doc_table/doc_table_wrapper.test.tsx
index a17a5c9b87d73..c6da2315a1757 100644
--- a/src/plugins/discover/public/components/doc_table/doc_table_wrapper.test.tsx
+++ b/src/plugins/discover/public/components/doc_table/doc_table_wrapper.test.tsx
@@ -30,7 +30,6 @@ describe('Doc table component', () => {
_index: 'mock_index',
_id: '1',
_score: 1,
- _type: '_doc',
fields: [
{
timestamp: '2020-20-01T12:12:12.123',
diff --git a/src/plugins/discover/public/components/doc_table/doc_table_wrapper.tsx b/src/plugins/discover/public/components/doc_table/doc_table_wrapper.tsx
index 64e5b29ac21aa..a9625fbcc76f6 100644
--- a/src/plugins/discover/public/components/doc_table/doc_table_wrapper.tsx
+++ b/src/plugins/discover/public/components/doc_table/doc_table_wrapper.tsx
@@ -196,9 +196,7 @@ export const DocTableWrapper = forwardRef(
(rowsToRender: DocTableRow[]) => {
return rowsToRender.map((current) => (
{
"_score",
1,
],
- Array [
- "_type",
- "doc",
- ],
]
}
/>
@@ -137,10 +133,6 @@ describe('Row formatter', () => {
"_score",
1,
],
- Array [
- "_type",
- "doc",
- ],
]
}
/>
@@ -177,10 +169,6 @@ describe('Row formatter', () => {
"_score",
1,
],
- Array [
- "_type",
- "doc",
- ],
]
}
/>
diff --git a/src/plugins/discover/public/components/doc_table/lib/use_pager.ts b/src/plugins/discover/public/components/doc_table/lib/use_pager.ts
deleted file mode 100644
index d21941b8360eb..0000000000000
--- a/src/plugins/discover/public/components/doc_table/lib/use_pager.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
- * in compliance with, at your election, the Elastic License 2.0 or the Server
- * Side Public License, v 1.
- */
-
-import { useCallback, useMemo, useState } from 'react';
-
-interface MetaParams {
- totalPages: number;
- startIndex: number;
- hasNextPage: boolean;
-}
-
-const INITIAL_PAGE_SIZE = 50;
-
-export const usePager = ({ totalItems }: { totalItems: number }) => {
- const [pageSize, setPageSize] = useState(INITIAL_PAGE_SIZE);
- const [currentPage, setCurrentPage] = useState(0);
-
- const meta: MetaParams = useMemo(() => {
- const totalPages = Math.ceil(totalItems / pageSize);
- return {
- totalPages,
- startIndex: pageSize * currentPage,
- hasNextPage: currentPage + 1 < totalPages,
- };
- }, [currentPage, pageSize, totalItems]);
-
- const changePage = useCallback((pageIndex: number) => setCurrentPage(pageIndex), []);
-
- const changePageSize = useCallback((newPageSize: number) => setPageSize(newPageSize), []);
-
- return {
- ...meta,
- currentPage,
- pageSize,
- changePage,
- changePageSize,
- };
-};
diff --git a/src/plugins/discover/public/plugin.tsx b/src/plugins/discover/public/plugin.tsx
index cb1ac2fad4f61..e881253a7d6d2 100644
--- a/src/plugins/discover/public/plugin.tsx
+++ b/src/plugins/discover/public/plugin.tsx
@@ -43,6 +43,7 @@ import {
setScopedHistory,
getScopedHistory,
syncHistoryLocations,
+ getServices,
} from './kibana_services';
import { registerFeature } from './register_feature';
import { buildServices } from './build_services';
@@ -62,7 +63,7 @@ import { ViewSavedSearchAction } from './embeddable/view_saved_search_action';
import type { SpacesPluginStart } from '../../../../x-pack/plugins/spaces/public';
import { FieldFormatsStart } from '../../field_formats/public';
import { injectTruncateStyles } from './utils/truncate_styles';
-import { TRUNCATE_MAX_HEIGHT } from '../common';
+import { DOC_TABLE_LEGACY, TRUNCATE_MAX_HEIGHT } from '../common';
declare module '../../share/public' {
export interface UrlGeneratorStateMapping {
@@ -70,6 +71,9 @@ declare module '../../share/public' {
}
}
+const DocViewerLegacyTable = React.lazy(
+ () => import('./services/doc_views/components/doc_viewer_table/legacy')
+);
const DocViewerTable = React.lazy(() => import('./services/doc_views/components/doc_viewer_table'));
const SourceViewer = React.lazy(() => import('./services/doc_views/components/doc_viewer_source'));
@@ -237,17 +241,22 @@ export class DiscoverPlugin
defaultMessage: 'Table',
}),
order: 10,
- component: (props) => (
-
-
-
- }
- >
-
-
- ),
+ component: (props) => {
+ const Component = getServices().uiSettings.get(DOC_TABLE_LEGACY)
+ ? DocViewerLegacyTable
+ : DocViewerTable;
+ return (
+
+
+
+ }
+ >
+
+
+ );
+ },
});
this.docViewsRegistry.addDocView({
title: i18n.translate('discover.docViews.json.jsonTitle', {
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/index.ts b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/index.ts
index cfda31e12bb64..6b3aa46fb4bde 100644
--- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/index.ts
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/index.ts
@@ -5,6 +5,7 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
+
import { DocViewerTable } from './table';
// Required for usage in React.lazy
diff --git a/packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_promise.ts b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/index.ts
similarity index 53%
rename from packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_promise.ts
rename to src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/index.ts
index adb6c9a0018b9..974dccccb9ef5 100644
--- a/packages/kbn-utility-types/src/tsd_tests/test_d/unwrap_promise.ts
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/index.ts
@@ -6,12 +6,8 @@
* Side Public License, v 1.
*/
-// eslint-disable-next-line import/no-extraneous-dependencies
-import { expectAssignable } from 'tsd';
-import { UnwrapPromise } from '../..';
+import { DocViewerLegacyTable } from './table';
-type STRING = UnwrapPromise>;
-type TUPLE = UnwrapPromise>;
-
-expectAssignable('adf');
-expectAssignable([1, 2]);
+// Required for usage in React.lazy
+// eslint-disable-next-line import/no-default-export
+export default DocViewerLegacyTable;
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.test.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.test.tsx
similarity index 96%
rename from src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.test.tsx
rename to src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.test.tsx
index c956b36b62594..7fc9c16858263 100644
--- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.test.tsx
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.test.tsx
@@ -9,15 +9,16 @@
import React from 'react';
import { mountWithIntl } from '@kbn/test/jest';
import { findTestSubject } from '@elastic/eui/lib/test';
-import { DocViewerTable, DocViewerTableProps } from './table';
-import { IndexPattern } from '../../../../../../data/public';
+import { DocViewerLegacyTable } from './table';
+import { IndexPattern } from '../../../../../../../data/public';
+import { DocViewRenderProps } from '../../../doc_views_types';
-jest.mock('../../../../kibana_services', () => ({
+jest.mock('../../../../../kibana_services', () => ({
getServices: jest.fn(),
}));
-import { getServices } from '../../../../kibana_services';
-import { ElasticSearchHit } from '../../../../types';
+import { getServices } from '../../../../../kibana_services';
+import { ElasticSearchHit } from '../../../../../types';
(getServices as jest.Mock).mockImplementation(() => ({
uiSettings: {
@@ -76,8 +77,8 @@ indexPattern.fields.getByName = (name: string) => {
return indexPattern.fields.getAll().find((field) => field.name === name);
};
-const mountComponent = (props: DocViewerTableProps) => {
- return mountWithIntl( );
+const mountComponent = (props: DocViewRenderProps) => {
+ return mountWithIntl( );
};
describe('DocViewTable at Discover', () => {
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.tsx
new file mode 100644
index 0000000000000..517093635897e
--- /dev/null
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.tsx
@@ -0,0 +1,109 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import '../table.scss';
+import React, { useCallback, useMemo } from 'react';
+import { EuiInMemoryTable } from '@elastic/eui';
+import { flattenHit } from '../../../../../../../data/common';
+import { SHOW_MULTIFIELDS } from '../../../../../../common';
+import { getServices } from '../../../../../kibana_services';
+import { DocViewRenderProps, FieldRecordLegacy } from '../../../doc_views_types';
+import { ACTIONS_COLUMN, MAIN_COLUMNS } from './table_columns';
+import { getFieldsToShow } from '../../../../../utils/get_fields_to_show';
+import { getIgnoredReason } from '../../../../../utils/get_ignored_reason';
+import { formatFieldValue } from '../../../../../utils/format_value';
+import { isNestedFieldParent } from '../../../../../application/main/utils/nested_fields';
+
+export const DocViewerLegacyTable = ({
+ columns,
+ hit,
+ indexPattern: dataView,
+ filter,
+ onAddColumn,
+ onRemoveColumn,
+}: DocViewRenderProps) => {
+ const showMultiFields = getServices().uiSettings.get(SHOW_MULTIFIELDS);
+
+ const mapping = useCallback((name: string) => dataView.fields.getByName(name), [dataView.fields]);
+ const tableColumns = useMemo(() => {
+ return filter ? [ACTIONS_COLUMN, ...MAIN_COLUMNS] : MAIN_COLUMNS;
+ }, [filter]);
+ const onToggleColumn = useCallback(
+ (field: string) => {
+ if (!onRemoveColumn || !onAddColumn || !columns) {
+ return;
+ }
+ if (columns.includes(field)) {
+ onRemoveColumn(field);
+ } else {
+ onAddColumn(field);
+ }
+ },
+ [onRemoveColumn, onAddColumn, columns]
+ );
+
+ const onSetRowProps = useCallback(({ field: { field } }: FieldRecordLegacy) => {
+ return {
+ key: field,
+ className: 'kbnDocViewer__tableRow',
+ 'data-test-subj': `tableDocViewRow-${field}`,
+ };
+ }, []);
+
+ const flattened = flattenHit(hit, dataView, { source: true, includeIgnoredValues: true });
+ const fieldsToShow = getFieldsToShow(Object.keys(flattened), dataView, showMultiFields);
+
+ const items: FieldRecordLegacy[] = Object.keys(flattened)
+ .filter((fieldName) => {
+ return fieldsToShow.includes(fieldName);
+ })
+ .sort((fieldA, fieldB) => {
+ const mappingA = mapping(fieldA);
+ const mappingB = mapping(fieldB);
+ const nameA = !mappingA || !mappingA.displayName ? fieldA : mappingA.displayName;
+ const nameB = !mappingB || !mappingB.displayName ? fieldB : mappingB.displayName;
+ return nameA.localeCompare(nameB);
+ })
+ .map((field) => {
+ const fieldMapping = mapping(field);
+ const displayName = fieldMapping?.displayName ?? field;
+ const fieldType = isNestedFieldParent(field, dataView) ? 'nested' : fieldMapping?.type;
+ const ignored = getIgnoredReason(fieldMapping ?? field, hit._ignored);
+ return {
+ action: {
+ onToggleColumn,
+ onFilter: filter,
+ isActive: !!columns?.includes(field),
+ flattenedField: flattened[field],
+ },
+ field: {
+ field,
+ displayName,
+ fieldMapping,
+ fieldType,
+ scripted: Boolean(fieldMapping?.scripted),
+ },
+ value: {
+ formattedValue: formatFieldValue(flattened[field], hit, dataView, fieldMapping),
+ ignored,
+ },
+ };
+ });
+
+ return (
+
+ );
+};
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table_cell_actions.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table_cell_actions.tsx
new file mode 100644
index 0000000000000..782a889637e70
--- /dev/null
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table_cell_actions.tsx
@@ -0,0 +1,58 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import React from 'react';
+import { DocViewTableRowBtnFilterRemove } from './table_row_btn_filter_remove';
+import { DocViewTableRowBtnFilterExists } from './table_row_btn_filter_exists';
+import { DocViewTableRowBtnToggleColumn } from './table_row_btn_toggle_column';
+import { DocViewTableRowBtnFilterAdd } from './table_row_btn_filter_add';
+import { IndexPatternField } from '../../../../../../../data/public';
+import { DocViewFilterFn } from '../../../doc_views_types';
+
+interface TableActionsProps {
+ field: string;
+ isActive: boolean;
+ flattenedField: unknown;
+ fieldMapping?: IndexPatternField;
+ onFilter: DocViewFilterFn;
+ onToggleColumn: (field: string) => void;
+ ignoredValue: boolean;
+}
+
+export const TableActions = ({
+ isActive,
+ field,
+ fieldMapping,
+ flattenedField,
+ onToggleColumn,
+ onFilter,
+ ignoredValue,
+}: TableActionsProps) => {
+ return (
+
+ onFilter(fieldMapping, flattenedField, '+')}
+ />
+ onFilter(fieldMapping, flattenedField, '-')}
+ />
+ onToggleColumn(field)}
+ />
+ onFilter('_exists_', field, '+')}
+ scripted={fieldMapping && fieldMapping.scripted}
+ />
+
+ );
+};
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_columns.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table_columns.tsx
similarity index 82%
rename from src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_columns.tsx
rename to src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table_columns.tsx
index a95db63af00b1..121187761b2c6 100644
--- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_columns.tsx
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table_columns.tsx
@@ -9,12 +9,12 @@
import { EuiBasicTableColumn, EuiText } from '@elastic/eui';
import React from 'react';
import { FormattedMessage } from '@kbn/i18n-react';
-import { FieldName } from '../../../../components/field_name/field_name';
-import { FieldRecord } from './table';
+import { FieldName } from '../../../../../components/field_name/field_name';
import { TableActions } from './table_cell_actions';
-import { TableFieldValue } from './table_cell_value';
+import { TableFieldValue } from '../table_cell_value';
+import { FieldRecordLegacy } from '../../../doc_views_types';
-export const ACTIONS_COLUMN: EuiBasicTableColumn = {
+export const ACTIONS_COLUMN: EuiBasicTableColumn = {
field: 'action',
className: 'kbnDocViewer__tableActionsCell',
width: '108px',
@@ -30,8 +30,8 @@ export const ACTIONS_COLUMN: EuiBasicTableColumn = {
),
render: (
- { flattenedField, isActive, onFilter, onToggleColumn }: FieldRecord['action'],
- { field: { field, fieldMapping }, value: { ignored } }: FieldRecord
+ { flattenedField, isActive, onFilter, onToggleColumn }: FieldRecordLegacy['action'],
+ { field: { field, fieldMapping }, value: { ignored } }: FieldRecordLegacy
) => {
return (
= {
);
},
};
-
-export const MAIN_COLUMNS: Array> = [
+export const MAIN_COLUMNS: Array> = [
{
field: 'field',
className: 'kbnDocViewer__tableFieldNameCell',
@@ -60,7 +59,13 @@ export const MAIN_COLUMNS: Array> = [
),
- render: ({ field, fieldType, displayName, fieldMapping, scripted }: FieldRecord['field']) => {
+ render: ({
+ field,
+ fieldType,
+ displayName,
+ fieldMapping,
+ scripted,
+ }: FieldRecordLegacy['field']) => {
return field ? (
> = [
),
render: (
- { formattedValue, ignored }: FieldRecord['value'],
- { field: { field }, action: { flattenedField } }: FieldRecord
+ { formattedValue, ignored }: FieldRecordLegacy['value'],
+ { field: { field }, action: { flattenedField } }: FieldRecordLegacy
) => {
return (
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.scss b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.scss
index df8498449aa59..c3d3631177c4e 100644
--- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.scss
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.scss
@@ -2,10 +2,6 @@
.euiTableRowCell {
vertical-align: top;
}
-
- tr:first-child th {
- border-bottom-color: transparent;
- }
}
.kbnDocViewer__tableRow {
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx
index 433227133370e..65806bb03a0bd 100644
--- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx
@@ -7,67 +7,125 @@
*/
import './table.scss';
-import React, { useCallback, useMemo } from 'react';
-import { EuiInMemoryTable } from '@elastic/eui';
-import { IndexPattern, IndexPatternField } from '../../../../../../data/public';
+import React, { useCallback, useState } from 'react';
+import {
+ EuiFlexGroup,
+ EuiFlexItem,
+ EuiFieldSearch,
+ EuiSpacer,
+ EuiTable,
+ EuiTableBody,
+ EuiTableRowCell,
+ EuiTableRow,
+ EuiTableHeader,
+ EuiTableHeaderCell,
+ EuiText,
+ EuiTablePagination,
+ EuiSelectableMessage,
+ EuiI18n,
+} from '@elastic/eui';
+import { i18n } from '@kbn/i18n';
+import { FormattedMessage } from '@kbn/i18n-react';
+import { debounce } from 'lodash';
+import { Storage } from '../../../../../../kibana_utils/public';
+import { usePager } from '../../../../utils/use_pager';
+import { FieldName } from '../../../../components/field_name/field_name';
import { flattenHit } from '../../../../../../data/common';
import { SHOW_MULTIFIELDS } from '../../../../../common';
import { getServices } from '../../../../kibana_services';
-import { DocViewFilterFn, DocViewRenderProps } from '../../doc_views_types';
-import { ACTIONS_COLUMN, MAIN_COLUMNS } from './table_columns';
+import { DocViewRenderProps, FieldRecordLegacy } from '../../doc_views_types';
import { getFieldsToShow } from '../../../../utils/get_fields_to_show';
-import { getIgnoredReason, IgnoredReason } from '../../../../utils/get_ignored_reason';
+import { getIgnoredReason } from '../../../../utils/get_ignored_reason';
import { formatFieldValue } from '../../../../utils/format_value';
import { isNestedFieldParent } from '../../../../application/main/utils/nested_fields';
-import { ElasticSearchHit } from '../../../../types';
-
-export interface DocViewerTableProps {
- columns?: string[];
- filter?: DocViewFilterFn;
- hit: ElasticSearchHit;
- indexPattern: IndexPattern;
- onAddColumn?: (columnName: string) => void;
- onRemoveColumn?: (columnName: string) => void;
-}
+import { TableFieldValue } from './table_cell_value';
+import { TableActions } from './table_cell_actions';
export interface FieldRecord {
- action: {
- isActive: boolean;
- onFilter?: DocViewFilterFn;
- onToggleColumn: (field: string) => void;
- flattenedField: unknown;
- };
+ action: Omit;
field: {
- displayName: string;
- field: string;
- scripted: boolean;
- fieldType?: string;
- fieldMapping?: IndexPatternField;
- };
- value: {
- formattedValue: string;
- ignored?: IgnoredReason;
- };
+ pinned: boolean;
+ onTogglePinned: (field: string) => void;
+ } & FieldRecordLegacy['field'];
+ value: FieldRecordLegacy['value'];
+}
+
+interface ItemsEntry {
+ pinnedItems: FieldRecord[];
+ restItems: FieldRecord[];
}
+const MOBILE_OPTIONS = { header: false };
+const PAGE_SIZE_OPTIONS = [25, 50, 100];
+const DEFAULT_PAGE_SIZE = 25;
+const PINNED_FIELDS_KEY = 'discover:pinnedFields';
+const PAGE_SIZE = 'discover:pageSize';
+const SEARCH_TEXT = 'discover:searchText';
+
+const getPinnedFields = (dataViewId: string, storage: Storage): string[] => {
+ const pinnedFieldsEntry = storage.get(PINNED_FIELDS_KEY);
+ if (
+ typeof pinnedFieldsEntry === 'object' &&
+ pinnedFieldsEntry !== null &&
+ Array.isArray(pinnedFieldsEntry[dataViewId])
+ ) {
+ return pinnedFieldsEntry[dataViewId].filter((cur: unknown) => typeof cur === 'string');
+ }
+ return [];
+};
+const updatePinnedFieldsState = (newFields: string[], dataViewId: string, storage: Storage) => {
+ let pinnedFieldsEntry = storage.get(PINNED_FIELDS_KEY);
+ pinnedFieldsEntry =
+ typeof pinnedFieldsEntry === 'object' && pinnedFieldsEntry !== null ? pinnedFieldsEntry : {};
+
+ storage.set(PINNED_FIELDS_KEY, {
+ ...pinnedFieldsEntry,
+ [dataViewId]: newFields,
+ });
+};
+
+const getPageSize = (storage: Storage): number => {
+ const pageSize = Number(storage.get(PAGE_SIZE));
+ return pageSize && PAGE_SIZE_OPTIONS.includes(pageSize) ? pageSize : DEFAULT_PAGE_SIZE;
+};
+const updatePageSize = (newPageSize: number, storage: Storage) => {
+ storage.set(PAGE_SIZE, newPageSize);
+};
+
+const getSearchText = (storage: Storage) => {
+ return storage.get(SEARCH_TEXT) || '';
+};
+const updateSearchText = debounce(
+ (newSearchText: string, storage: Storage) => storage.set(SEARCH_TEXT, newSearchText),
+ 500
+);
+
export const DocViewerTable = ({
columns,
hit,
- indexPattern,
+ indexPattern: dataView,
filter,
onAddColumn,
onRemoveColumn,
}: DocViewRenderProps) => {
- const showMultiFields = getServices().uiSettings.get(SHOW_MULTIFIELDS);
+ const { storage, uiSettings } = getServices();
+ const showMultiFields = uiSettings.get(SHOW_MULTIFIELDS);
+ const currentDataViewId = dataView.id!;
+ const isSingleDocView = !filter;
- const mapping = useCallback(
- (name: string) => indexPattern?.fields.getByName(name),
- [indexPattern?.fields]
+ const [searchText, setSearchText] = useState(getSearchText(storage));
+ const [pinnedFields, setPinnedFields] = useState(
+ getPinnedFields(currentDataViewId, storage)
);
- const tableColumns = useMemo(() => {
- return filter ? [ACTIONS_COLUMN, ...MAIN_COLUMNS] : MAIN_COLUMNS;
- }, [filter]);
+ const flattened = flattenHit(hit, dataView, { source: true, includeIgnoredValues: true });
+ const fieldsToShow = getFieldsToShow(Object.keys(flattened), dataView, showMultiFields);
+
+ const searchPlaceholder = i18n.translate('discover.docView.table.searchPlaceHolder', {
+ defaultMessage: 'Search field names',
+ });
+
+ const mapping = useCallback((name: string) => dataView.fields.getByName(name), [dataView.fields]);
const onToggleColumn = useCallback(
(field: string) => {
@@ -83,36 +141,23 @@ export const DocViewerTable = ({
[onRemoveColumn, onAddColumn, columns]
);
- const onSetRowProps = useCallback(({ field: { field } }: FieldRecord) => {
- return {
- key: field,
- className: 'kbnDocViewer__tableRow',
- 'data-test-subj': `tableDocViewRow-${field}`,
- };
- }, []);
-
- if (!indexPattern) {
- return null;
- }
+ const onTogglePinned = useCallback(
+ (field: string) => {
+ const newPinned = pinnedFields.includes(field)
+ ? pinnedFields.filter((curField) => curField !== field)
+ : [...pinnedFields, field];
- const flattened = flattenHit(hit, indexPattern, { source: true, includeIgnoredValues: true });
- const fieldsToShow = getFieldsToShow(Object.keys(flattened), indexPattern, showMultiFields);
+ updatePinnedFieldsState(newPinned, currentDataViewId, storage);
+ setPinnedFields(newPinned);
+ },
+ [currentDataViewId, pinnedFields, storage]
+ );
- const items: FieldRecord[] = Object.keys(flattened)
- .filter((fieldName) => {
- return fieldsToShow.includes(fieldName);
- })
- .sort((fieldA, fieldB) => {
- const mappingA = mapping(fieldA);
- const mappingB = mapping(fieldB);
- const nameA = !mappingA || !mappingA.displayName ? fieldA : mappingA.displayName;
- const nameB = !mappingB || !mappingB.displayName ? fieldB : mappingB.displayName;
- return nameA.localeCompare(nameB);
- })
- .map((field) => {
+ const fieldToItem = useCallback(
+ (field: string) => {
const fieldMapping = mapping(field);
const displayName = fieldMapping?.displayName ?? field;
- const fieldType = isNestedFieldParent(field, indexPattern) ? 'nested' : fieldMapping?.type;
+ const fieldType = isNestedFieldParent(field, dataView) ? 'nested' : fieldMapping?.type;
const ignored = getIgnoredReason(fieldMapping ?? field, hit._ignored);
@@ -129,23 +174,234 @@ export const DocViewerTable = ({
fieldMapping,
fieldType,
scripted: Boolean(fieldMapping?.scripted),
+ pinned: pinnedFields.includes(displayName),
+ onTogglePinned,
},
value: {
- formattedValue: formatFieldValue(flattened[field], hit, indexPattern, fieldMapping),
+ formattedValue: formatFieldValue(flattened[field], hit, dataView, fieldMapping),
ignored,
},
};
+ },
+ [
+ columns,
+ filter,
+ flattened,
+ hit,
+ dataView,
+ mapping,
+ onToggleColumn,
+ onTogglePinned,
+ pinnedFields,
+ ]
+ );
+
+ const handleOnChange = useCallback(
+ (event: React.ChangeEvent) => {
+ const newSearchText = event.currentTarget.value;
+ updateSearchText(newSearchText, storage);
+ setSearchText(newSearchText);
+ },
+ [storage]
+ );
+
+ const { pinnedItems, restItems } = Object.keys(flattened)
+ .sort((fieldA, fieldB) => {
+ const mappingA = mapping(fieldA);
+ const mappingB = mapping(fieldB);
+ const nameA = !mappingA || !mappingA.displayName ? fieldA : mappingA.displayName;
+ const nameB = !mappingB || !mappingB.displayName ? fieldB : mappingB.displayName;
+ return nameA.localeCompare(nameB);
+ })
+ .reduce(
+ (acc, curFieldName) => {
+ if (!fieldsToShow.includes(curFieldName)) {
+ return acc;
+ }
+
+ if (pinnedFields.includes(curFieldName)) {
+ acc.pinnedItems.push(fieldToItem(curFieldName));
+ } else {
+ const fieldMapping = mapping(curFieldName);
+ const displayName = fieldMapping?.displayName ?? curFieldName;
+ if (displayName.includes(searchText)) {
+ // filter only unpinned fields
+ acc.restItems.push(fieldToItem(curFieldName));
+ }
+ }
+
+ return acc;
+ },
+ {
+ pinnedItems: [],
+ restItems: [],
+ }
+ );
+
+ const { curPageIndex, pageSize, totalPages, startIndex, changePageIndex, changePageSize } =
+ usePager({
+ initialPageSize: getPageSize(storage),
+ totalItems: restItems.length,
});
+ const showPagination = totalPages !== 0;
+
+ const onChangePageSize = useCallback(
+ (newPageSize: number) => {
+ updatePageSize(newPageSize, storage);
+ changePageSize(newPageSize);
+ },
+ [changePageSize, storage]
+ );
+
+ const headers = [
+ !isSingleDocView && (
+
+
+
+
+
+
+
+ ),
+
+
+
+
+
+
+ ,
+
+
+
+
+
+
+ ,
+ ];
+
+ const renderRows = useCallback(
+ (items: FieldRecord[]) => {
+ return items.map(
+ ({
+ action: { flattenedField, onFilter },
+ field: { field, fieldMapping, displayName, fieldType, scripted, pinned },
+ value: { formattedValue, ignored },
+ }: FieldRecord) => {
+ return (
+
+ {!isSingleDocView && (
+
+
+
+ )}
+
+
+
+
+
+
+
+ );
+ }
+ );
+ },
+ [onToggleColumn, onTogglePinned, isSingleDocView]
+ );
+
+ const rowElements = [
+ ...renderRows(pinnedItems),
+ ...renderRows(restItems.slice(startIndex, pageSize + startIndex)),
+ ];
return (
-
+
+
+
+
+
+
+
+
+
+ {rowElements.length === 0 ? (
+
+
+
+
+
+ ) : (
+
+
+ {headers}
+ {rowElements}
+
+
+ )}
+
+
+
+
+
+ {showPagination && (
+
+
+
+ )}
+
);
};
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_cell_actions.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_cell_actions.tsx
index 05a7056cf07e6..5e528d01d84c4 100644
--- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_cell_actions.tsx
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_cell_actions.tsx
@@ -6,53 +6,183 @@
* Side Public License, v 1.
*/
-import React from 'react';
-import { DocViewTableRowBtnFilterRemove } from './table_row_btn_filter_remove';
-import { DocViewTableRowBtnFilterExists } from './table_row_btn_filter_exists';
-import { DocViewTableRowBtnToggleColumn } from './table_row_btn_toggle_column';
-import { DocViewTableRowBtnFilterAdd } from './table_row_btn_filter_add';
+import React, { useCallback, useState } from 'react';
+import { EuiButtonIcon, EuiContextMenu, EuiPopover } from '@elastic/eui';
+import { i18n } from '@kbn/i18n';
import { IndexPatternField } from '../../../../../../data/public';
import { DocViewFilterFn } from '../../doc_views_types';
interface TableActionsProps {
field: string;
- isActive: boolean;
+ pinned: boolean;
flattenedField: unknown;
fieldMapping?: IndexPatternField;
onFilter: DocViewFilterFn;
onToggleColumn: (field: string) => void;
ignoredValue: boolean;
+ onTogglePinned: (field: string) => void;
}
export const TableActions = ({
- isActive,
+ pinned,
field,
fieldMapping,
flattenedField,
onToggleColumn,
onFilter,
ignoredValue,
+ onTogglePinned,
}: TableActionsProps) => {
+ const [isOpen, setIsOpen] = useState(false);
+ const openActionsLabel = i18n.translate('discover.docView.table.actions.open', {
+ defaultMessage: 'Open actions',
+ });
+ const actionsLabel = i18n.translate('discover.docView.table.actions.label', {
+ defaultMessage: 'Actions',
+ });
+
+ // Filters pair
+ const filtersPairDisabled = !fieldMapping || !fieldMapping.filterable || ignoredValue;
+ const filterAddLabel = i18n.translate('discover.docViews.table.filterForValueButtonTooltip', {
+ defaultMessage: 'Filter for value',
+ });
+ const filterAddAriaLabel = i18n.translate(
+ 'discover.docViews.table.filterForValueButtonAriaLabel',
+ { defaultMessage: 'Filter for value' }
+ );
+ const filterOutLabel = i18n.translate('discover.docViews.table.filterOutValueButtonTooltip', {
+ defaultMessage: 'Filter out value',
+ });
+ const filterOutAriaLabel = i18n.translate(
+ 'discover.docViews.table.filterOutValueButtonAriaLabel',
+ { defaultMessage: 'Filter out value' }
+ );
+ const filtersPairToolTip =
+ (filtersPairDisabled &&
+ i18n.translate('discover.docViews.table.unindexedFieldsCanNotBeSearchedTooltip', {
+ defaultMessage: 'Unindexed fields or ignored values cannot be searched',
+ })) ||
+ undefined;
+
+ // Filter exists
+ const filterExistsLabel = i18n.translate(
+ 'discover.docViews.table.filterForFieldPresentButtonTooltip',
+ { defaultMessage: 'Filter for field present' }
+ );
+ const filterExistsAriaLabel = i18n.translate(
+ 'discover.docViews.table.filterForFieldPresentButtonAriaLabel',
+ { defaultMessage: 'Filter for field present' }
+ );
+ const filtersExistsDisabled = !fieldMapping || !fieldMapping.filterable;
+ const filtersExistsToolTip =
+ (filtersExistsDisabled &&
+ (fieldMapping && fieldMapping.scripted
+ ? i18n.translate(
+ 'discover.docViews.table.unableToFilterForPresenceOfScriptedFieldsTooltip',
+ {
+ defaultMessage: 'Unable to filter for presence of scripted fields',
+ }
+ )
+ : i18n.translate('discover.docViews.table.unableToFilterForPresenceOfMetaFieldsTooltip', {
+ defaultMessage: 'Unable to filter for presence of meta fields',
+ }))) ||
+ undefined;
+
+ // Toggle columns
+ const toggleColumnsLabel = i18n.translate(
+ 'discover.docViews.table.toggleColumnInTableButtonTooltip',
+ { defaultMessage: 'Toggle column in table' }
+ );
+ const toggleColumnsAriaLabel = i18n.translate(
+ 'discover.docViews.table.toggleColumnInTableButtonAriaLabel',
+ { defaultMessage: 'Toggle column in table' }
+ );
+
+ // Pinned
+ const pinnedLabel = pinned
+ ? i18n.translate('discover.docViews.table.unpinFieldLabel', { defaultMessage: 'Unpin field' })
+ : i18n.translate('discover.docViews.table.pinFieldLabel', { defaultMessage: 'Pin field' });
+ const pinnedAriaLabel = pinned
+ ? i18n.translate('discover.docViews.table.unpinFieldAriaLabel', {
+ defaultMessage: 'Unpin field',
+ })
+ : i18n.translate('discover.docViews.table.pinFieldAriaLabel', { defaultMessage: 'Pin field' });
+ const pinnedIconType = pinned ? 'pinFilled' : 'pin';
+
+ const openPopover = useCallback(() => setIsOpen(true), [setIsOpen]);
+ const closePopover = useCallback(() => setIsOpen(false), [setIsOpen]);
+ const togglePinned = useCallback(() => onTogglePinned(field), [field, onTogglePinned]);
+ const onClickAction = useCallback(
+ (callback: () => void) => () => {
+ callback();
+ closePopover();
+ },
+ [closePopover]
+ );
+
+ const panels = [
+ {
+ id: 0,
+ title: actionsLabel,
+ items: [
+ {
+ name: filterAddLabel,
+ 'aria-label': filterAddAriaLabel,
+ toolTipContent: filtersPairToolTip,
+ icon: 'plusInCircle',
+ disabled: filtersPairDisabled,
+ onClick: onClickAction(onFilter.bind({}, fieldMapping, flattenedField, '+')),
+ },
+ {
+ name: filterOutLabel,
+ 'aria-label': filterOutAriaLabel,
+ toolTipContent: filtersPairToolTip,
+ icon: 'minusInCircle',
+ disabled: filtersPairDisabled,
+ onClick: onClickAction(onFilter.bind({}, fieldMapping, flattenedField, '-')),
+ },
+ {
+ name: filterExistsLabel,
+ 'aria-label': filterExistsAriaLabel,
+ toolTipContent: filtersExistsToolTip,
+ icon: 'filter',
+ disabled: filtersExistsDisabled,
+ onClick: onClickAction(onFilter.bind({}, fieldMapping, flattenedField, '-')),
+ },
+ {
+ name: toggleColumnsLabel,
+ 'aria-label': toggleColumnsAriaLabel,
+ 'data-test-subj': `toggleColumnButton-${field}`,
+ icon: 'listAdd',
+ onClick: onClickAction(onToggleColumn.bind({}, field)),
+ },
+ {
+ name: pinnedLabel,
+ 'aria-label': pinnedAriaLabel,
+ icon: pinnedIconType,
+ onClick: onClickAction(togglePinned),
+ },
+ ],
+ },
+ ];
+
return (
-
- onFilter(fieldMapping, flattenedField, '+')}
- />
- onFilter(fieldMapping, flattenedField, '-')}
- />
- onToggleColumn(field)}
- />
- onFilter('_exists_', field, '+')}
- scripted={fieldMapping && fieldMapping.scripted}
- />
-
+
+ }
+ isOpen={isOpen}
+ closePopover={closePopover}
+ display="block"
+ panelPaddingSize="none"
+ >
+
+
);
};
diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_cell_value.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_cell_value.tsx
index 88d6b30cc633e..d539155ada632 100644
--- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_cell_value.tsx
+++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table_cell_value.tsx
@@ -13,7 +13,7 @@ import React, { Fragment, useState } from 'react';
import { i18n } from '@kbn/i18n';
import { IgnoredReason } from '../../../../utils/get_ignored_reason';
import { FieldRecord } from './table';
-import { DocViewTableRowBtnCollapse } from './table_row_btn_collapse';
+import { DocViewTableRowBtnCollapse } from './legacy/table_row_btn_collapse';
const COLLAPSE_LINE_LENGTH = 350;
diff --git a/src/plugins/discover/public/services/doc_views/doc_views_types.ts b/src/plugins/discover/public/services/doc_views/doc_views_types.ts
index ef2600b4d04df..3832cfa0c0eca 100644
--- a/src/plugins/discover/public/services/doc_views/doc_views_types.ts
+++ b/src/plugins/discover/public/services/doc_views/doc_views_types.ts
@@ -7,8 +7,9 @@
*/
import { ComponentType } from 'react';
-import { IndexPattern } from '../../../../data/public';
+import { IndexPattern, IndexPatternField } from '../../../../data/public';
import { ElasticSearchHit } from '../../types';
+import { IgnoredReason } from '../../utils/get_ignored_reason';
export interface FieldMapping {
filterable?: boolean;
@@ -26,10 +27,10 @@ export type DocViewFilterFn = (
) => void;
export interface DocViewRenderProps {
- columns?: string[];
- filter?: DocViewFilterFn;
hit: ElasticSearchHit;
indexPattern: IndexPattern;
+ columns?: string[];
+ filter?: DocViewFilterFn;
onAddColumn?: (columnName: string) => void;
onRemoveColumn?: (columnName: string) => void;
}
@@ -64,3 +65,23 @@ export type DocView = DocViewInput & {
};
export type DocViewInputFn = () => DocViewInput;
+
+export interface FieldRecordLegacy {
+ action: {
+ isActive: boolean;
+ onFilter?: DocViewFilterFn;
+ onToggleColumn: (field: string) => void;
+ flattenedField: unknown;
+ };
+ field: {
+ displayName: string;
+ field: string;
+ scripted: boolean;
+ fieldType?: string;
+ fieldMapping?: IndexPatternField;
+ };
+ value: {
+ formattedValue: string;
+ ignored?: IgnoredReason;
+ };
+}
diff --git a/src/plugins/discover/public/components/doc_table/lib/use_pager.test.tsx b/src/plugins/discover/public/utils/use_pager.test.tsx
similarity index 65%
rename from src/plugins/discover/public/components/doc_table/lib/use_pager.test.tsx
rename to src/plugins/discover/public/utils/use_pager.test.tsx
index e94600b5d1725..92dfe59c05c2b 100644
--- a/src/plugins/discover/public/components/doc_table/lib/use_pager.test.tsx
+++ b/src/plugins/discover/public/utils/use_pager.test.tsx
@@ -11,7 +11,8 @@ import { usePager } from './use_pager';
describe('usePager', () => {
const defaultProps = {
- totalItems: 745,
+ initialPageSize: 50,
+ totalItems: 750,
};
test('should initialize the first page', () => {
@@ -19,7 +20,7 @@ describe('usePager', () => {
return usePager(defaultProps);
});
- expect(result.current.currentPage).toEqual(0);
+ expect(result.current.curPageIndex).toEqual(0);
expect(result.current.pageSize).toEqual(50);
expect(result.current.totalPages).toEqual(15);
expect(result.current.startIndex).toEqual(0);
@@ -32,10 +33,10 @@ describe('usePager', () => {
});
act(() => {
- result.current.changePage(5);
+ result.current.changePageIndex(5);
});
- expect(result.current.currentPage).toEqual(5);
+ expect(result.current.curPageIndex).toEqual(5);
expect(result.current.pageSize).toEqual(50);
expect(result.current.totalPages).toEqual(15);
expect(result.current.startIndex).toEqual(250);
@@ -48,13 +49,34 @@ describe('usePager', () => {
});
act(() => {
- result.current.changePage(15);
+ result.current.changePageIndex(14);
});
- expect(result.current.currentPage).toEqual(15);
+ expect(result.current.curPageIndex).toEqual(14);
expect(result.current.pageSize).toEqual(50);
expect(result.current.totalPages).toEqual(15);
- expect(result.current.startIndex).toEqual(750);
+ expect(result.current.startIndex).toEqual(700);
+ expect(result.current.hasNextPage).toEqual(false);
+ });
+
+ test('should go to the first page if current is no longer available', () => {
+ const { result } = renderHook(() => {
+ return usePager({
+ initialPageSize: 50,
+ totalItems: 100,
+ });
+ });
+
+ act(() => {
+ // go to the second page
+ result.current.changePageIndex(1);
+ result.current.changePageSize(100);
+ });
+
+ expect(result.current.curPageIndex).toEqual(0);
+ expect(result.current.pageSize).toEqual(100);
+ expect(result.current.totalPages).toEqual(1);
+ expect(result.current.startIndex).toEqual(0);
expect(result.current.hasNextPage).toEqual(false);
});
@@ -62,11 +84,11 @@ describe('usePager', () => {
const { result } = renderHook(() => usePager(defaultProps));
act(() => {
- result.current.changePage(5);
+ result.current.changePageIndex(5);
result.current.changePageSize(100);
});
- expect(result.current.currentPage).toEqual(5);
+ expect(result.current.curPageIndex).toEqual(5);
expect(result.current.pageSize).toEqual(100);
expect(result.current.totalPages).toEqual(8);
expect(result.current.startIndex).toEqual(500);
diff --git a/src/plugins/discover/public/utils/use_pager.ts b/src/plugins/discover/public/utils/use_pager.ts
new file mode 100644
index 0000000000000..da87e37a0cd2e
--- /dev/null
+++ b/src/plugins/discover/public/utils/use_pager.ts
@@ -0,0 +1,60 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
+ * Side Public License, v 1.
+ */
+
+import { useCallback, useEffect, useMemo, useState } from 'react';
+
+interface MetaParams {
+ totalPages: number;
+ startIndex: number;
+ hasNextPage: boolean;
+}
+
+export const usePager = ({
+ initialPageSize,
+ totalItems,
+}: {
+ totalItems: number;
+ initialPageSize: number;
+}) => {
+ const [pageSize, setPageSize] = useState(initialPageSize);
+ // zero based index, if curPageIndex is set to 1, it will represent the second page.
+ const [curPageIndex, setCurPageIndex] = useState(0);
+
+ const meta: MetaParams = useMemo(() => {
+ const totalPages = Math.ceil(totalItems / pageSize);
+ return {
+ totalPages,
+ startIndex: pageSize * curPageIndex,
+ hasNextPage: curPageIndex + 1 < totalPages,
+ };
+ }, [curPageIndex, pageSize, totalItems]);
+
+ const changePageIndex = useCallback((pageIndex: number) => setCurPageIndex(pageIndex), []);
+
+ const changePageSize = useCallback((newPageSize: number) => setPageSize(newPageSize), []);
+
+ /**
+ * Go to the first page if the current is no longer available
+ */
+ useEffect(() => {
+ if (meta.totalPages < curPageIndex + 1) {
+ changePageIndex(0);
+ }
+ }, [curPageIndex, meta.totalPages, changePageIndex]);
+
+ return useMemo(
+ () => ({
+ ...meta,
+ curPageIndex,
+ pageSize,
+ changePageIndex,
+ changePageSize,
+ }),
+ [changePageIndex, changePageSize, curPageIndex, meta, pageSize]
+ );
+};
diff --git a/src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx b/src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
index 7da6735c6ce86..e837932b9469a 100644
--- a/src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
+++ b/src/plugins/expression_repeat_image/public/components/repeat_image_component.tsx
@@ -49,7 +49,7 @@ function createImageJSX(img: HTMLImageElement | null) {
if (!img) {
return null;
}
- const params = img.width > img.height ? { heigth: img.height } : { width: img.width };
+ const params = img.width > img.height ? { height: img.height } : { width: img.width };
return ;
}
@@ -82,12 +82,14 @@ function RepeatImageComponent({
if (image) {
setImageSize(image, size);
- times(count, () => imagesToRender.push(createImageJSX(image)));
+ const imgJSX = createImageJSX(image);
+ times(count, () => imagesToRender.push(imgJSX));
}
if (emptyImage) {
setImageSize(emptyImage, size);
- times(max - count, () => imagesToRender.push(createImageJSX(emptyImage)));
+ const imgJSX = createImageJSX(emptyImage);
+ times(max - count, () => imagesToRender.push(imgJSX));
}
return (
diff --git a/src/plugins/expressions/common/execution/execution.ts b/src/plugins/expressions/common/execution/execution.ts
index f355710698b69..6c0b1cf9fa2c0 100644
--- a/src/plugins/expressions/common/execution/execution.ts
+++ b/src/plugins/expressions/common/execution/execution.ts
@@ -8,7 +8,7 @@
import { i18n } from '@kbn/i18n';
import { isPromise } from '@kbn/std';
-import { ObservableLike, UnwrapObservable, UnwrapPromiseOrReturn } from '@kbn/utility-types';
+import { ObservableLike, UnwrapObservable } from '@kbn/utility-types';
import { keys, last, mapValues, reduce, zipObject } from 'lodash';
import {
combineLatest,
@@ -47,7 +47,7 @@ import { createDefaultInspectorAdapters } from '../util/create_default_inspector
type UnwrapReturnType unknown> =
ReturnType extends ObservableLike
? UnwrapObservable>
- : UnwrapPromiseOrReturn>;
+ : Awaited>;
/**
* The result returned after an expression function execution.
diff --git a/src/plugins/expressions/common/types/common.ts b/src/plugins/expressions/common/types/common.ts
index b28ff27a79ac1..712424fe333b0 100644
--- a/src/plugins/expressions/common/types/common.ts
+++ b/src/plugins/expressions/common/types/common.ts
@@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
-import { ObservableLike, UnwrapObservable, UnwrapPromiseOrReturn } from '@kbn/utility-types';
+import { ObservableLike, UnwrapObservable } from '@kbn/utility-types';
/**
* This can convert a type into a known Expression string representation of
@@ -37,7 +37,7 @@ export type KnownTypeToString =
* `someArgument: Promise` results in `types: ['boolean', 'string']`
*/
export type TypeString = KnownTypeToString<
- T extends ObservableLike ? UnwrapObservable