diff --git a/.github/ISSUE_TEMPLATE/Bug_report_security_solution.md b/.github/ISSUE_TEMPLATE/Bug_report_security_solution.md
index 059e1d267c2862..7a0514bca621dd 100644
--- a/.github/ISSUE_TEMPLATE/Bug_report_security_solution.md
+++ b/.github/ISSUE_TEMPLATE/Bug_report_security_solution.md
@@ -1,38 +1,38 @@
----
-name: Bug report for Security Solution
-about: Help us identify bugs in Elastic Security, SIEM, and Endpoint so we can fix them!
-title: '[Security Solution]'
-labels: 'Team: SecuritySolution'
----
-
-**Describe the bug:**
-
-**Kibana/Elasticsearch Stack version:**
-
-**Server OS version:**
-
-**Browser and Browser OS versions:**
-
-**Elastic Endpoint version:**
-
-**Original install method (e.g. download page, yum, from source, etc.):**
-
-**Functional Area (e.g. Endpoint management, timelines, resolver, etc.):**
-
-**Steps to reproduce:**
-
-1.
-2.
-3.
-
-**Current behavior:**
-
-**Expected behavior:**
-
-**Screenshots (if relevant):**
-
-**Errors in browser console (if relevant):**
-
-**Provide logs and/or server output (if relevant):**
-
-**Any additional context (logs, chat logs, magical formulas, etc.):**
+---
+name: Bug report for Security Solution
+about: Help us identify bugs in Elastic Security, SIEM, and Endpoint so we can fix them!
+title: '[Security Solution]'
+labels: 'bug, Team: SecuritySolution'
+---
+
+**Describe the bug:**
+
+**Kibana/Elasticsearch Stack version:**
+
+**Server OS version:**
+
+**Browser and Browser OS versions:**
+
+**Elastic Endpoint version:**
+
+**Original install method (e.g. download page, yum, from source, etc.):**
+
+**Functional Area (e.g. Endpoint management, timelines, resolver, etc.):**
+
+**Steps to reproduce:**
+
+1.
+2.
+3.
+
+**Current behavior:**
+
+**Expected behavior:**
+
+**Screenshots (if relevant):**
+
+**Errors in browser console (if relevant):**
+
+**Provide logs and/or server output (if relevant):**
+
+**Any additional context (logs, chat logs, magical formulas, etc.):**
diff --git a/.github/ISSUE_TEMPLATE/v8_breaking_change.md b/.github/ISSUE_TEMPLATE/v8_breaking_change.md
index 99f779c288f5b9..c91b937586a09f 100644
--- a/.github/ISSUE_TEMPLATE/v8_breaking_change.md
+++ b/.github/ISSUE_TEMPLATE/v8_breaking_change.md
@@ -2,7 +2,7 @@
name: 8.0 Breaking change
about: Breaking changes from 7.x -> 8.0
title: "[Breaking change]"
-labels: Team:Elasticsearch UI, Feature:Upgrade Assistant
+labels: Team:Elasticsearch UI, Feature:Upgrade Assistant, Breaking Change
assignees: ''
---
@@ -11,15 +11,16 @@ assignees: ''
**Which release will ship the breaking change?**
-
+8.0
**Describe the change. How will it manifest to users?**
-**What percentage of users will be affected?**
+**How many users will be affected?**
-
+
+
-**What can users to do to address the change manually?**
+**What can users do to address the change manually?**
diff --git a/.telemetryrc.json b/.telemetryrc.json
index 3d1b0df1d8f93b..0f1530c6225d6a 100644
--- a/.telemetryrc.json
+++ b/.telemetryrc.json
@@ -7,5 +7,10 @@
"src/plugins/testbed/",
"src/plugins/kibana_utils/"
]
+ },
+ {
+ "output": "src/plugins/telemetry/schema/legacy_plugins.json",
+ "root": "src/legacy/server/",
+ "exclude": []
}
]
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.painlesserror._constructor_.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.painlesserror._constructor_.md
index f8966572afbb66..051414eac75856 100644
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.painlesserror._constructor_.md
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.painlesserror._constructor_.md
@@ -9,13 +9,13 @@ Constructs a new instance of the `PainlessError` class
Signature:
```typescript
-constructor(err: EsError, request: IKibanaSearchRequest);
+constructor(err: IEsError, request: IKibanaSearchRequest);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| err | EsError
| |
+| err | IEsError
| |
| request | IKibanaSearchRequest
| |
diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.painlesserror.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.painlesserror.md
index 306211cd602599..6ab32f3fb1dfad 100644
--- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.painlesserror.md
+++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.painlesserror.md
@@ -7,7 +7,7 @@
Signature:
```typescript
-export declare class PainlessError extends KbnError
+export declare class PainlessError extends EsError
```
## Constructors
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher._constructor_.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher._constructor_.md
index d36ebd0745e8d0..214c795fda9d1a 100644
--- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher._constructor_.md
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher._constructor_.md
@@ -9,12 +9,13 @@ Constructs a new instance of the `IndexPatternsFetcher` class
Signature:
```typescript
-constructor(callDataCluster: LegacyAPICaller);
+constructor(elasticsearchClient: ElasticsearchClient, allowNoIndices?: boolean);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| callDataCluster | LegacyAPICaller
| |
+| elasticsearchClient | ElasticsearchClient
| |
+| allowNoIndices | boolean
| |
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher.getfieldsforwildcard.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher.getfieldsforwildcard.md
index 52382372d6d967..addd29916d81df 100644
--- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher.getfieldsforwildcard.md
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher.getfieldsforwildcard.md
@@ -13,7 +13,7 @@ getFieldsForWildcard(options: {
pattern: string | string[];
metaFields?: string[];
fieldCapsOptions?: {
- allowNoIndices: boolean;
+ allow_no_indices: boolean;
};
}): Promise;
```
@@ -22,7 +22,7 @@ getFieldsForWildcard(options: {
| Parameter | Type | Description |
| --- | --- | --- |
-| options | {
pattern: string | string[];
metaFields?: string[];
fieldCapsOptions?: {
allowNoIndices: boolean;
};
}
| |
+| options | {
pattern: string | string[];
metaFields?: string[];
fieldCapsOptions?: {
allow_no_indices: boolean;
};
}
| |
Returns:
diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher.md
index f71a702f3381da..3ba3c862bf16a9 100644
--- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher.md
+++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsfetcher.md
@@ -14,7 +14,7 @@ export declare class IndexPatternsFetcher
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(callDataCluster)](./kibana-plugin-plugins-data-server.indexpatternsfetcher._constructor_.md) | | Constructs a new instance of the IndexPatternsFetcher
class |
+| [(constructor)(elasticsearchClient, allowNoIndices)](./kibana-plugin-plugins-data-server.indexpatternsfetcher._constructor_.md) | | Constructs a new instance of the IndexPatternsFetcher
class |
## Methods
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution._constructor_.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution._constructor_.md
index 1d0c9f99169db5..14a0f8818e903d 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution._constructor_.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution._constructor_.md
@@ -9,12 +9,12 @@ Constructs a new instance of the `Execution` class
Signature:
```typescript
-constructor(params: ExecutionParams);
+constructor(execution: ExecutionParams);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| params | ExecutionParams<ExtraContext>
| |
+| execution | ExecutionParams
| |
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.context.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.context.md
index 732fe94d656179..e884db46563b52 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.context.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.context.md
@@ -9,5 +9,5 @@ Execution context - object that allows to do side-effects. Context is passed to
Signature:
```typescript
-readonly context: ExecutionContext & ExtraContext;
+readonly context: ExecutionContext;
```
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.contract.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.contract.md
index fa03297ea22a7d..383e9ee3e81b8c 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.contract.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.contract.md
@@ -9,5 +9,5 @@ Contract is a public representation of `Execution` instances. Contract we can re
Signature:
```typescript
-readonly contract: ExecutionContract;
+readonly contract: ExecutionContract;
```
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.params.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.execution.md
similarity index 67%
rename from docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.params.md
rename to docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.execution.md
index cd90bf6adab472..eebb5cf5440d52 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.params.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.execution.md
@@ -1,11 +1,11 @@
-[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [Execution](./kibana-plugin-plugins-expressions-public.execution.md) > [params](./kibana-plugin-plugins-expressions-public.execution.params.md)
+[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [Execution](./kibana-plugin-plugins-expressions-public.execution.md) > [execution](./kibana-plugin-plugins-expressions-public.execution.execution.md)
-## Execution.params property
+## Execution.execution property
Signature:
```typescript
-readonly params: ExecutionParams;
+readonly execution: ExecutionParams;
```
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.interpret.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.interpret.md
index 31f38b70698122..24dee04861b4ee 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.interpret.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.interpret.md
@@ -7,7 +7,7 @@
Signature:
```typescript
-interpret(ast: ExpressionAstNode, input: T, options?: ExpressionExecOptions): Promise;
+interpret(ast: ExpressionAstNode, input: T): Promise;
```
## Parameters
@@ -16,7 +16,6 @@ interpret(ast: ExpressionAstNode, input: T, options?: ExpressionExecOptions):
| --- | --- | --- |
| ast | ExpressionAstNode
| |
| input | T
| |
-| options | ExpressionExecOptions
| |
Returns:
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.md
index 4d227e6ab85b83..56b14e005adfb8 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.execution.md
@@ -7,25 +7,25 @@
Signature:
```typescript
-export declare class Execution = Record, Input = unknown, Output = unknown, InspectorAdapters extends Adapters = ExtraContext['inspectorAdapters'] extends object ? ExtraContext['inspectorAdapters'] : DefaultInspectorAdapters>
+export declare class Execution
```
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(params)](./kibana-plugin-plugins-expressions-public.execution._constructor_.md) | | Constructs a new instance of the Execution
class |
+| [(constructor)(execution)](./kibana-plugin-plugins-expressions-public.execution._constructor_.md) | | Constructs a new instance of the Execution
class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
-| [context](./kibana-plugin-plugins-expressions-public.execution.context.md) | | ExecutionContext<Input, InspectorAdapters> & ExtraContext
| Execution context - object that allows to do side-effects. Context is passed to every function. |
-| [contract](./kibana-plugin-plugins-expressions-public.execution.contract.md) | | ExecutionContract<ExtraContext, Input, Output, InspectorAdapters>
| Contract is a public representation of Execution
instances. Contract we can return to other plugins for their consumption. |
+| [context](./kibana-plugin-plugins-expressions-public.execution.context.md) | | ExecutionContext<InspectorAdapters>
| Execution context - object that allows to do side-effects. Context is passed to every function. |
+| [contract](./kibana-plugin-plugins-expressions-public.execution.contract.md) | | ExecutionContract<Input, Output, InspectorAdapters>
| Contract is a public representation of Execution
instances. Contract we can return to other plugins for their consumption. |
+| [execution](./kibana-plugin-plugins-expressions-public.execution.execution.md) | | ExecutionParams
| |
| [expression](./kibana-plugin-plugins-expressions-public.execution.expression.md) | | string
| |
| [input](./kibana-plugin-plugins-expressions-public.execution.input.md) | | Input
| Initial input of the execution.N.B. It is initialized to null
rather than undefined
for legacy reasons, because in legacy interpreter it was set to null
by default. |
| [inspectorAdapters](./kibana-plugin-plugins-expressions-public.execution.inspectoradapters.md) | | InspectorAdapters
| |
-| [params](./kibana-plugin-plugins-expressions-public.execution.params.md) | | ExecutionParams<ExtraContext>
| |
| [result](./kibana-plugin-plugins-expressions-public.execution.result.md) | | Promise<Output | ExpressionValueError>
| |
| [state](./kibana-plugin-plugins-expressions-public.execution.state.md) | | ExecutionContainer<Output | ExpressionValueError>
| Dynamic state of the execution. |
@@ -35,7 +35,7 @@ export declare class Execution = Re
| --- | --- | --- |
| [cancel()](./kibana-plugin-plugins-expressions-public.execution.cancel.md) | | Stop execution of expression. |
| [cast(value, toTypeNames)](./kibana-plugin-plugins-expressions-public.execution.cast.md) | | |
-| [interpret(ast, input, options)](./kibana-plugin-plugins-expressions-public.execution.interpret.md) | | |
+| [interpret(ast, input)](./kibana-plugin-plugins-expressions-public.execution.interpret.md) | | |
| [invokeChain(chainArr, input)](./kibana-plugin-plugins-expressions-public.execution.invokechain.md) | | |
| [invokeFunction(fn, input, args)](./kibana-plugin-plugins-expressions-public.execution.invokefunction.md) | | |
| [resolveArgs(fnDef, input, argAsts)](./kibana-plugin-plugins-expressions-public.execution.resolveargs.md) | | |
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getinitialinput.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getsearchcontext.md
similarity index 55%
rename from docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getinitialinput.md
rename to docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getsearchcontext.md
index 460b1622c6fbd5..471e18ee6a7ebd 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getinitialinput.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getsearchcontext.md
@@ -1,13 +1,13 @@
-[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExecutionContext](./kibana-plugin-plugins-expressions-public.executioncontext.md) > [getInitialInput](./kibana-plugin-plugins-expressions-public.executioncontext.getinitialinput.md)
+[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExecutionContext](./kibana-plugin-plugins-expressions-public.executioncontext.md) > [getSearchContext](./kibana-plugin-plugins-expressions-public.executioncontext.getsearchcontext.md)
-## ExecutionContext.getInitialInput property
+## ExecutionContext.getSearchContext property
-Get initial input with which execution started.
+Get search context of the expression.
Signature:
```typescript
-getInitialInput: () => Input;
+getSearchContext: () => ExecutionContextSearch;
```
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.search.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getsearchsessionid.md
similarity index 63%
rename from docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.search.md
rename to docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getsearchsessionid.md
index 05501a475cbd40..107ae16dc89012 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.search.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.getsearchsessionid.md
@@ -1,13 +1,13 @@
-[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExecutionContext](./kibana-plugin-plugins-expressions-public.executioncontext.md) > [search](./kibana-plugin-plugins-expressions-public.executioncontext.search.md)
+[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExecutionContext](./kibana-plugin-plugins-expressions-public.executioncontext.md) > [getSearchSessionId](./kibana-plugin-plugins-expressions-public.executioncontext.getsearchsessionid.md)
-## ExecutionContext.search property
+## ExecutionContext.getSearchSessionId property
Search context in which expression should operate.
Signature:
```typescript
-search?: ExecutionContextSearch;
+getSearchSessionId: () => string | undefined;
```
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.md
index 786e94455c600e..2a1a78b8fcb1a2 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontext.md
@@ -9,7 +9,7 @@
Signature:
```typescript
-export interface ExecutionContext
+export interface ExecutionContext
```
## Properties
@@ -17,10 +17,10 @@ export interface ExecutionContextAbortSignal | Adds ability to abort current execution. |
-| [getInitialInput](./kibana-plugin-plugins-expressions-public.executioncontext.getinitialinput.md) | () => Input
| Get initial input with which execution started. |
| [getSavedObject](./kibana-plugin-plugins-expressions-public.executioncontext.getsavedobject.md) | <T extends SavedObjectAttributes = SavedObjectAttributes>(type: string, id: string) => Promise<SavedObject<T>>
| Allows to fetch saved objects from ElasticSearch. In browser getSavedObject
function is provided automatically by the Expressions plugin. On the server the caller of the expression has to provide this context function. The reason is because on the browser we always know the user who tries to fetch a saved object, thus saved object client is scoped automatically to that user. However, on the server we can scope that saved object client to any user, or even not scope it at all and execute it as an "internal" user. |
+| [getSearchContext](./kibana-plugin-plugins-expressions-public.executioncontext.getsearchcontext.md) | () => ExecutionContextSearch
| Get search context of the expression. |
+| [getSearchSessionId](./kibana-plugin-plugins-expressions-public.executioncontext.getsearchsessionid.md) | () => string | undefined
| Search context in which expression should operate. |
| [inspectorAdapters](./kibana-plugin-plugins-expressions-public.executioncontext.inspectoradapters.md) | InspectorAdapters
| Adapters for inspector
plugin. |
-| [search](./kibana-plugin-plugins-expressions-public.executioncontext.search.md) | ExecutionContextSearch
| Search context in which expression should operate. |
| [types](./kibana-plugin-plugins-expressions-public.executioncontext.types.md) | Record<string, ExpressionType>
| A map of available expression types. |
| [variables](./kibana-plugin-plugins-expressions-public.executioncontext.variables.md) | Record<string, unknown>
| Context variables that can be consumed using var
and var_set
functions. |
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract._constructor_.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract._constructor_.md
index 89a99ef2f8ef83..ee8b113881a05a 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract._constructor_.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract._constructor_.md
@@ -9,12 +9,12 @@ Constructs a new instance of the `ExecutionContract` class
Signature:
```typescript
-constructor(execution: Execution);
+constructor(execution: Execution);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| execution | Execution<ExtraContext, Input, Output, InspectorAdapters>
| |
+| execution | Execution<Input, Output, InspectorAdapters>
| |
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract.execution.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract.execution.md
index f7911250488f22..aa058c71c12dff 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract.execution.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract.execution.md
@@ -7,5 +7,5 @@
Signature:
```typescript
-protected readonly execution: Execution;
+protected readonly execution: Execution;
```
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract.md
index d05620eace208c..f2c050bbfe0ba2 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executioncontract.md
@@ -9,7 +9,7 @@
Signature:
```typescript
-export declare class ExecutionContract = Record, Input = unknown, Output = unknown, InspectorAdapters = unknown>
+export declare class ExecutionContract
```
## Constructors
@@ -23,7 +23,7 @@ export declare class ExecutionContract() => void | Cancel the execution of the expression. This will set abort signal (available in execution context) to aborted state, letting expression functions to stop their execution. |
-| [execution](./kibana-plugin-plugins-expressions-public.executioncontract.execution.md) | | Execution<ExtraContext, Input, Output, InspectorAdapters>
| |
+| [execution](./kibana-plugin-plugins-expressions-public.executioncontract.execution.md) | | Execution<Input, Output, InspectorAdapters>
| |
| [getAst](./kibana-plugin-plugins-expressions-public.executioncontract.getast.md) | | () => ExpressionAstExpression
| Get AST used to execute the expression. |
| [getData](./kibana-plugin-plugins-expressions-public.executioncontract.getdata.md) | | () => Promise<Output | ExpressionValueError>
| Returns the final output of expression, if any error happens still wraps that error into ExpressionValueError
type and returns that. This function never throws. |
| [getExpression](./kibana-plugin-plugins-expressions-public.executioncontract.getexpression.md) | | () => string
| Get string representation of the expression. Returns the original string if execution was started from a string. If execution was started from an AST this method returns a string generated from AST. |
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.debug.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.debug.md
deleted file mode 100644
index 61ec72465f55ed..00000000000000
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.debug.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExecutionParams](./kibana-plugin-plugins-expressions-public.executionparams.md) > [debug](./kibana-plugin-plugins-expressions-public.executionparams.debug.md)
-
-## ExecutionParams.debug property
-
-Whether to execute expression in \*debug mode\*. In \*debug mode\* inputs and outputs as well as all resolved arguments and time it took to execute each function are saved and are available for introspection.
-
-Signature:
-
-```typescript
-debug?: boolean;
-```
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.md
index e39dc231fbf969..6e5d70c61ead6f 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.md
@@ -7,7 +7,7 @@
Signature:
```typescript
-export interface ExecutionParams = Record>
+export interface ExecutionParams
```
## Properties
@@ -15,8 +15,7 @@ export interface ExecutionParams =
| Property | Type | Description |
| --- | --- | --- |
| [ast](./kibana-plugin-plugins-expressions-public.executionparams.ast.md) | ExpressionAstExpression
| |
-| [context](./kibana-plugin-plugins-expressions-public.executionparams.context.md) | ExtraContext
| |
-| [debug](./kibana-plugin-plugins-expressions-public.executionparams.debug.md) | boolean
| Whether to execute expression in \*debug mode\*. In \*debug mode\* inputs and outputs as well as all resolved arguments and time it took to execute each function are saved and are available for introspection. |
| [executor](./kibana-plugin-plugins-expressions-public.executionparams.executor.md) | Executor<any>
| |
| [expression](./kibana-plugin-plugins-expressions-public.executionparams.expression.md) | string
| |
+| [params](./kibana-plugin-plugins-expressions-public.executionparams.params.md) | ExpressionExecutionParams
| |
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.context.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.params.md
similarity index 65%
rename from docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.context.md
rename to docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.params.md
index b6013162ef2ae1..0dbe87bfda79e4 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.context.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executionparams.params.md
@@ -1,11 +1,11 @@
-[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExecutionParams](./kibana-plugin-plugins-expressions-public.executionparams.md) > [context](./kibana-plugin-plugins-expressions-public.executionparams.context.md)
+[Home](./index.md) > [kibana-plugin-plugins-expressions-public](./kibana-plugin-plugins-expressions-public.md) > [ExecutionParams](./kibana-plugin-plugins-expressions-public.executionparams.md) > [params](./kibana-plugin-plugins-expressions-public.executionparams.params.md)
-## ExecutionParams.context property
+## ExecutionParams.params property
Signature:
```typescript
-context?: ExtraContext;
+params: ExpressionExecutionParams;
```
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executor.createexecution.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executor.createexecution.md
index e6765064d4a27d..2832ba92262f26 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executor.createexecution.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executor.createexecution.md
@@ -7,7 +7,7 @@
Signature:
```typescript
-createExecution = Record, Input = unknown, Output = unknown>(ast: string | ExpressionAstExpression, context?: ExtraContext, { debug }?: ExpressionExecOptions): Execution;
+createExecution(ast: string | ExpressionAstExpression, params?: ExpressionExecutionParams): Execution;
```
## Parameters
@@ -15,10 +15,9 @@ createExecution = Recordstring | ExpressionAstExpression | |
-| context | ExtraContext
| |
-| { debug } | ExpressionExecOptions
| |
+| params | ExpressionExecutionParams
| |
Returns:
-`Execution`
+`Execution`
diff --git a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executor.md b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executor.md
index 013624f30b45a7..aefd04112dc1ca 100644
--- a/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executor.md
+++ b/docs/development/plugins/expressions/public/kibana-plugin-plugins-expressions-public.executor.md
@@ -29,7 +29,7 @@ export declare class Executor = Recordstatic | |
| [extendContext(extraContext)](./kibana-plugin-plugins-expressions-public.executor.extendcontext.md) | | |
| [extract(ast)](./kibana-plugin-plugins-expressions-public.executor.extract.md) | | |
@@ -41,6 +41,6 @@ export declare class Executor = RecordSignature:
```typescript
-run = Record>(ast: string | ExpressionAstExpression, input: Input, context?: ExtraContext, options?: ExpressionExecOptions): Promise