diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 3a0b437052..79ff2fd3e4 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -9897,6 +9897,16 @@ }, "style": "form" }, + { + "in": "query", + "name": "format", + "description": "A short version of the Accept header, for example `json` or `yaml`.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/esql._types.EsqlFormat" + }, + "style": "form" + }, { "in": "query", "name": "keep_alive", @@ -78345,7 +78355,7 @@ "settings" ] }, - "indices.get_alias.IndexAliases": { + "indices.get_alias._types.IndexAliases": { "type": "object", "properties": { "aliases": { @@ -104142,7 +104152,7 @@ "schema": { "type": "object", "additionalProperties": { - "$ref": "#/components/schemas/indices.get_alias.IndexAliases" + "$ref": "#/components/schemas/indices.get_alias._types.IndexAliases" } } } diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 5460ddae7c..9bcc5be583 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -50517,7 +50517,7 @@ "settings" ] }, - "indices.get_alias.IndexAliases": { + "indices.get_alias._types.IndexAliases": { "type": "object", "properties": { "aliases": { @@ -63218,7 +63218,7 @@ "schema": { "type": "object", "additionalProperties": { - "$ref": "#/components/schemas/indices.get_alias.IndexAliases" + "$ref": "#/components/schemas/indices.get_alias._types.IndexAliases" } } } diff --git a/output/schema/schema.json b/output/schema/schema.json index 387a707a19..cdfaa39bff 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -134101,6 +134101,18 @@ } } }, + { + "description": "A short version of the Accept header, for example `json` or `yaml`.", + "name": "format", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "EsqlFormat", + "namespace": "esql._types" + } + } + }, { "description": "The period for which the query and its results are stored in the cluster.\nWhen this period expires, the query and its results are deleted, even if the query is still ongoing.", "name": "keep_alive", @@ -134126,7 +134138,7 @@ } } ], - "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L24-L62" + "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L25-L67" }, { "kind": "response", @@ -149810,38 +149822,6 @@ }, "specLocation": "indices/get/IndicesGetResponse.ts#L24-L27" }, - { - "kind": "interface", - "name": { - "name": "IndexAliases", - "namespace": "indices.get_alias" - }, - "properties": [ - { - "name": "aliases", - "required": true, - "type": { - "kind": "dictionary_of", - "key": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - }, - "singleKey": false, - "value": { - "kind": "instance_of", - "type": { - "name": "AliasDefinition", - "namespace": "indices._types" - } - } - } - } - ], - "specLocation": "indices/get_alias/IndicesGetAliasResponse.ts#L37-L39" - }, { "kind": "request", "attachedBehaviors": [ @@ -149993,7 +149973,7 @@ "kind": "instance_of", "type": { "name": "IndexAliases", - "namespace": "indices.get_alias" + "namespace": "indices.get_alias._types" } } } @@ -150009,7 +149989,7 @@ "kind": "instance_of", "type": { "name": "NotFoundAliases", - "namespace": "indices.get_alias" + "namespace": "indices.get_alias._types" } }, { @@ -150031,7 +150011,98 @@ "name": "Response", "namespace": "indices.get_alias" }, - "specLocation": "indices/get_alias/IndicesGetAliasResponse.ts#L26-L35" + "specLocation": "indices/get_alias/IndicesGetAliasResponse.ts#L28-L37" + }, + { + "kind": "interface", + "name": { + "name": "IndexAliases", + "namespace": "indices.get_alias._types" + }, + "properties": [ + { + "name": "aliases", + "required": true, + "type": { + "kind": "dictionary_of", + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "singleKey": false, + "value": { + "kind": "instance_of", + "type": { + "name": "AliasDefinition", + "namespace": "indices._types" + } + } + } + } + ], + "specLocation": "indices/get_alias/_types/response.ts#L24-L26" + }, + { + "kind": "interface", + "attachedBehaviors": [ + "AdditionalProperties" + ], + "behaviors": [ + { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + { + "kind": "instance_of", + "type": { + "name": "IndexAliases", + "namespace": "indices.get_alias._types" + } + } + ], + "type": { + "name": "AdditionalProperties", + "namespace": "_spec_utils" + } + } + ], + "name": { + "name": "NotFoundAliases", + "namespace": "indices.get_alias._types" + }, + "properties": [ + { + "name": "error", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "status", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "number", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "indices/get_alias/_types/response.ts#L28-L33" }, { "kind": "interface", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 31a0442e64..e9b82aef0b 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -37,6 +37,12 @@ ], "response": [] }, + "esql.async_query_get": { + "request": [ + "Request: query parameter 'format' does not exist in the json spec" + ], + "response": [] + }, "get_source": { "request": [ "Request: query parameter 'stored_fields' does not exist in the json spec" @@ -49,6 +55,12 @@ ], "response": [] }, + "indices.get_alias": { + "request": [], + "response": [ + "interface definition indices.get_alias._types:NotFoundAliases / Behaviors - AdditionalProperties behavior for type 'indices.get_alias._types:NotFoundAliases' requires a 'behavior_meta' decorator with exactly 2 arguments (fieldname, description)" + ] + }, "ingest.get_ip_location_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index bd353d2196..b3652d2e64 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10848,6 +10848,7 @@ export type EsqlAsyncQueryDeleteResponse = AcknowledgedResponseBase export interface EsqlAsyncQueryGetRequest extends RequestBase { id: Id drop_null_columns?: boolean + format?: EsqlEsqlFormat keep_alive?: Duration wait_for_completion_timeout?: Duration } @@ -12305,10 +12306,6 @@ export interface IndicesGetRequest extends RequestBase { export type IndicesGetResponse = Record -export interface IndicesGetAliasIndexAliases { - aliases: Record -} - export interface IndicesGetAliasRequest extends RequestBase { name?: Names index?: Indices @@ -12320,6 +12317,17 @@ export interface IndicesGetAliasRequest extends RequestBase { export type IndicesGetAliasResponse = Record +export interface IndicesGetAliasIndexAliases { + aliases: Record +} + +export interface IndicesGetAliasNotFoundAliasesKeys { + error: string + status: number +} +export type IndicesGetAliasNotFoundAliases = IndicesGetAliasNotFoundAliasesKeys + & { [property: string]: IndicesGetAliasIndexAliases | string | number } + export interface IndicesGetDataLifecycleDataStreamWithLifecycle { name: DataStreamName lifecycle?: IndicesDataStreamLifecycleWithRollover