diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 942b00ebca..a2af5b9d2c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -9692,7 +9692,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/esql._types.EsqlResult" + "$ref": "#/components/schemas/esql._types.AsyncEsqlResult" } } } @@ -73945,6 +73945,27 @@ } ] }, + "esql._types.AsyncEsqlResult": { + "allOf": [ + { + "$ref": "#/components/schemas/esql._types.EsqlResult" + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "is_running": { + "type": "boolean" + } + }, + "required": [ + "is_running" + ] + } + ] + }, "esql._types.EsqlResult": { "type": "object", "properties": { @@ -74120,27 +74141,6 @@ "reason" ] }, - "esql._types.AsyncEsqlResult": { - "allOf": [ - { - "$ref": "#/components/schemas/esql._types.EsqlResult" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "is_running": { - "type": "boolean" - } - }, - "required": [ - "is_running" - ] - } - ] - }, "_types.InlineGet": { "type": "object", "properties": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 065c5ff942..57425e1855 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -126143,7 +126143,7 @@ "value": { "kind": "instance_of", "type": { - "name": "EsqlResult", + "name": "AsyncEsqlResult", "namespace": "esql._types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 25445b34b4..139759c703 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10693,7 +10693,7 @@ export interface EsqlAsyncQueryRequest extends RequestBase { } } -export type EsqlAsyncQueryResponse = EsqlEsqlResult +export type EsqlAsyncQueryResponse = EsqlAsyncEsqlResult export interface EsqlAsyncQueryDeleteRequest extends RequestBase { id: Id diff --git a/specification/esql/async_query/AsyncQueryResponse.ts b/specification/esql/async_query/AsyncQueryResponse.ts index 1ee2c24f33..34f601ce10 100644 --- a/specification/esql/async_query/AsyncQueryResponse.ts +++ b/specification/esql/async_query/AsyncQueryResponse.ts @@ -17,9 +17,9 @@ * under the License. */ -import { EsqlResult } from '@esql/_types/EsqlResult' +import { AsyncEsqlResult } from '@esql/_types/EsqlResult' export class Response { /** @codegen_name data */ - body: EsqlResult + body: AsyncEsqlResult }