diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 3a0b437052..41d5a81881 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -8027,7 +8027,7 @@ { "in": "query", "name": "stored_fields", - "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.\nOnly leaf fields can be retrieved with the `stored_field` option.\nObject fields can't be returned;​if specified, the request fails.", + "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.\nOnly leaf fields can be retrieved with the `stored_fields` option.\nObject fields can't be returned; if specified, the request fails.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.Fields" @@ -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..c41addd64b 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -4036,7 +4036,7 @@ { "in": "query", "name": "stored_fields", - "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.\nOnly leaf fields can be retrieved with the `stored_field` option.\nObject fields can't be returned;​if specified, the request fails.", + "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.\nOnly leaf fields can be retrieved with the `stored_fields` option.\nObject fields can't be returned; if specified, the request fails.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types.Fields" @@ -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..1555511caa 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -28733,7 +28733,7 @@ "visibility": "feature_flag" } }, - "description": "Indicates whether the request forces synthetic `_source`.\nUse this paramater to test if the mapping supports synthetic `_source` and to get a sense of the worst case performance.\nFetches with this parameter enabled will be slower than enabling synthetic source natively in the index.", + "description": "Indicates whether the request forces synthetic `_source`.\nUse this parameter to test if the mapping supports synthetic `_source` and to get a sense of the worst case performance.\nFetches with this parameter enabled will be slower than enabling synthetic source natively in the index.", "name": "force_synthetic_source", "required": false, "type": { @@ -28835,7 +28835,9 @@ } }, { - "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.\nOnly leaf fields can be retrieved with the `stored_field` option.\nObject fields can't be returned;​if specified, the request fails.", + "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.\nOnly leaf fields can be retrieved with the `stored_fields` option.\nObject fields can't be returned; if specified, the request fails.", + "extDocId": "retrieve-stored-fields", + "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-stored-fields", "name": "stored_fields", "required": false, "type": { @@ -28871,7 +28873,7 @@ } } ], - "specLocation": "_global/get/GetRequest.ts#L31-L180" + "specLocation": "_global/get/GetRequest.ts#L31-L181" }, { "kind": "response", @@ -134101,6 +134103,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 +134140,7 @@ } } ], - "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L24-L62" + "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L25-L67" }, { "kind": "response", @@ -149810,38 +149824,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 +149975,7 @@ "kind": "instance_of", "type": { "name": "IndexAliases", - "namespace": "indices.get_alias" + "namespace": "indices.get_alias._types" } } } @@ -150009,7 +149991,7 @@ "kind": "instance_of", "type": { "name": "NotFoundAliases", - "namespace": "indices.get_alias" + "namespace": "indices.get_alias._types" } }, { @@ -150031,7 +150013,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 diff --git a/package-lock.json b/package-lock.json index be9f51713e..88285db198 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@redocly/cli": "^1.34.3", + "@redocly/cli": "^1.34.4", "@stoplight/spectral-cli": "^6.14.2" } }, @@ -489,9 +489,9 @@ } }, "node_modules/@redocly/cli": { - "version": "1.34.3", - "resolved": "https://registry.npmjs.org/@redocly/cli/-/cli-1.34.3.tgz", - "integrity": "sha512-GJNBTMfm5wTCtH6K+RtPQZuGbqflMclXqAZ5My12tfux6xFDMW1l0MNd5RMpnIS1aeFcDX++P1gnnROWlesj4w==", + "version": "1.34.4", + "resolved": "https://registry.npmjs.org/@redocly/cli/-/cli-1.34.4.tgz", + "integrity": "sha512-seH/GgrjSB1EeOsgJ/4Ct6Jk2N7sh12POn/7G8UQFARMyUMJpe1oHtBwT2ndfp4EFCpgBAbZ/82Iw6dwczNxEA==", "license": "MIT", "dependencies": { "@opentelemetry/api": "1.9.0", @@ -500,13 +500,13 @@ "@opentelemetry/sdk-trace-node": "1.26.0", "@opentelemetry/semantic-conventions": "1.27.0", "@redocly/config": "^0.22.0", - "@redocly/openapi-core": "1.34.3", - "@redocly/respect-core": "1.34.3", + "@redocly/openapi-core": "1.34.4", + "@redocly/respect-core": "1.34.4", "abort-controller": "^3.0.0", "chokidar": "^3.5.1", "colorette": "^1.2.0", "core-js": "^3.32.1", - "dotenv": "^16.4.7", + "dotenv": "16.4.7", "form-data": "^4.0.0", "get-port-please": "^3.0.1", "glob": "^7.1.6", @@ -537,9 +537,9 @@ "license": "MIT" }, "node_modules/@redocly/openapi-core": { - "version": "1.34.3", - "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.3.tgz", - "integrity": "sha512-3arRdUp1fNx55itnjKiUhO6t4Mf91TsrTIYINDNLAZPS0TPd5YpiXRctwjel0qqWoOOhjA34cZ3m4dksLDFUYg==", + "version": "1.34.4", + "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.4.tgz", + "integrity": "sha512-hf53xEgpXIgWl3b275PgZU3OTpYh1RoD2LHdIfQ1JzBNTWsiNKczTEsI/4Tmh2N1oq9YcphhSMyk3lDh85oDjg==", "license": "MIT", "dependencies": { "@redocly/ajv": "^8.11.2", @@ -558,19 +558,19 @@ } }, "node_modules/@redocly/respect-core": { - "version": "1.34.3", - "resolved": "https://registry.npmjs.org/@redocly/respect-core/-/respect-core-1.34.3.tgz", - "integrity": "sha512-vo/gu7dRGwTVsRueVSjVk04jOQuL0w22RBJRdRUWkfyse791tYXgMCOx35ijKekL83Q/7Okxf/YX6UY1v5CAug==", + "version": "1.34.4", + "resolved": "https://registry.npmjs.org/@redocly/respect-core/-/respect-core-1.34.4.tgz", + "integrity": "sha512-MitKyKyQpsizA4qCVv+MjXL4WltfhFQAoiKiAzrVR1Kusro3VhYb6yJuzoXjiJhR0ukLP5QOP19Vcs7qmj9dZg==", "license": "MIT", "dependencies": { "@faker-js/faker": "^7.6.0", "@redocly/ajv": "8.11.2", - "@redocly/openapi-core": "1.34.3", + "@redocly/openapi-core": "1.34.4", "better-ajv-errors": "^1.2.0", "colorette": "^2.0.20", "concat-stream": "^2.0.0", "cookie": "^0.7.2", - "dotenv": "16.4.5", + "dotenv": "16.4.7", "form-data": "4.0.0", "jest-diff": "^29.3.1", "jest-matcher-utils": "^29.3.1", @@ -594,18 +594,6 @@ "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "license": "MIT" }, - "node_modules/@redocly/respect-core/node_modules/dotenv": { - "version": "16.4.5", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", - "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, "node_modules/@redocly/respect-core/node_modules/form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", @@ -1961,9 +1949,9 @@ } }, "node_modules/dotenv": { - "version": "16.5.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz", - "integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==", + "version": "16.4.7", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", + "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", "license": "BSD-2-Clause", "engines": { "node": ">=12" diff --git a/package.json b/package.json index 894d629b9b..7b7b866599 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "transform-to-openapi": "npm run transform-to-openapi --prefix compiler --" }, "dependencies": { - "@redocly/cli": "^1.34.3", + "@redocly/cli": "^1.34.4", "@stoplight/spectral-cli": "^6.14.2" } }