diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 140f244468..06dec7bba6 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -65810,6 +65810,13 @@ }, "hits": { "$ref": "#/components/schemas/eql._types:EqlHits" + }, + "shard_failures": { + "description": "Contains information about shard failures (if any), in case allow_partial_search_results=true", + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:ShardFailure" + } } }, "required": [ diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 6642567242..fc40da57b4 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -44475,6 +44475,13 @@ }, "hits": { "$ref": "#/components/schemas/eql._types:EqlHits" + }, + "shard_failures": { + "description": "Contains information about shard failures (if any), in case allow_partial_search_results=true", + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:ShardFailure" + } } }, "required": [ diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 5080ca0016..f8092b3d0c 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -117854,9 +117854,24 @@ "namespace": "eql._types" } } + }, + { + "description": "Contains information about shard failures (if any), in case allow_partial_search_results=true", + "name": "shard_failures", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "ShardFailure", + "namespace": "_types" + } + } + } } ], - "specLocation": "eql/_types/EqlSearchResponseBase.ts#L24-L49" + "specLocation": "eql/_types/EqlSearchResponseBase.ts#L25-L54" }, { "generics": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index ea5833d88e..8a42fd240f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -117893,9 +117893,24 @@ "namespace": "eql._types" } } + }, + { + "description": "Contains information about shard failures (if any), in case allow_partial_search_results=true", + "name": "shard_failures", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "ShardFailure", + "namespace": "_types" + } + } + } } ], - "specLocation": "eql/_types/EqlSearchResponseBase.ts#L24-L49" + "specLocation": "eql/_types/EqlSearchResponseBase.ts#L25-L54" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 438465fdc9..af1a554aad 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10312,6 +10312,7 @@ export interface EqlEqlSearchResponseBase { took?: DurationValue timed_out?: boolean hits: EqlEqlHits + shard_failures?: ShardFailure[] } export interface EqlHitsEvent { diff --git a/specification/eql/_types/EqlSearchResponseBase.ts b/specification/eql/_types/EqlSearchResponseBase.ts index f296ffd6bf..6789a5471d 100644 --- a/specification/eql/_types/EqlSearchResponseBase.ts +++ b/specification/eql/_types/EqlSearchResponseBase.ts @@ -18,6 +18,7 @@ */ import { Id } from '@_types/common' +import { ShardFailure } from '@_types/Errors' import { DurationValue, UnitMillis } from '@_types/Time' import { EqlHits } from './EqlHits' @@ -46,4 +47,8 @@ export class EqlSearchResponseBase { * Contains matching events and sequences. Also contains related metadata. */ hits: EqlHits + /** + * Contains information about shard failures (if any), in case allow_partial_search_results=true + */ + shard_failures?: ShardFailure[] }