diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 5a9e8bc585119..525da9d832b53 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -381,8 +381,9 @@ x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @elastic/kib
**/*.scss @elastic/kibana-design
#CC# /packages/kbn-ui-framework/ @elastic/kibana-design
-# Core design
+# Core UI design
/src/plugins/dashboard/**/*.scss @elastic/kibana-core-ui-designers
+/src/plugins/embeddable/**/*.scss @elastic/kibana-core-ui-designers
/x-pack/plugins/canvas/**/*.scss @elastic/kibana-core-ui-designers
/x-pack/plugins/spaces/**/*.scss @elastic/kibana-core-ui-designers
/x-pack/plugins/security/**/*.scss @elastic/kibana-core-ui-designers
diff --git a/.telemetryrc.json b/.telemetryrc.json
index 3d1b0df1d8f93..0f1530c6225d6 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 f8966572afbb6..051414eac7585 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 306211cd60259..6ab32f3fb1dfa 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 d36ebd0745e8d..214c795fda9d1 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 52382372d6d96..addd29916d81d 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 f71a702f3381d..3ba3c862bf16a 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 1d0c9f99169db..14a0f8818e903 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 732fe94d65617..e884db46563b5 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 fa03297ea22a7..383e9ee3e81b8 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 cd90bf6adab47..eebb5cf5440d5 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 31f38b7069812..24dee04861b4e 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 4d227e6ab85b8..56b14e005adfb 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 460b1622c6fbd..471e18ee6a7eb 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 05501a475cbd4..107ae16dc8901 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 786e94455c600..2a1a78b8fcb1a 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 89a99ef2f8ef8..ee8b113881a05 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 f7911250488f2..aa058c71c12df 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 d05620eace208..f2c050bbfe0ba 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 61ec72465f55e..0000000000000
--- 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 e39dc231fbf96..6e5d70c61ead6 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 b6013162ef2ae..0dbe87bfda79e 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 e6765064d4a27..2832ba92262f2 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 013624f30b45a..aefd04112dc1c 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