diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 73ce3218f8..3f2bbbe3dd 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -66379,6 +66379,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 11646af5c6..0ac9673a67 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -44305,6 +44305,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 8174a7fe85..4803777e61 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -117643,9 +117643,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 5976780e4f..e94235fd62 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -118380,9 +118380,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 c6aef87d17..f9d4f74893 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10366,6 +10366,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[] }