From f27592c532640ebcb68eb1a970bf67a2ea2f771f Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Thu, 30 May 2024 10:01:59 +0200 Subject: [PATCH] added typed_keys query param in search app search (#2586) (cherry picked from commit 34fa83f64d38bcdc407c21277c4f6809412e4abe) --- .../elasticsearch-serverless-openapi.json | 16 ++++++++++++ output/schema/schema.json | 25 +++++++++++++++++-- output/typescript/types.ts | 1 + .../search/SearchApplicationsSearchRequest.ts | 9 +++++++ 4 files changed, 49 insertions(+), 2 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 2804b8b528..491d80cb75 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -16926,6 +16926,9 @@ "parameters": [ { "$ref": "#/components/parameters/search_application.search#name" + }, + { + "$ref": "#/components/parameters/search_application.search#typed_keys" } ], "requestBody": { @@ -16950,6 +16953,9 @@ "parameters": [ { "$ref": "#/components/parameters/search_application.search#name" + }, + { + "$ref": "#/components/parameters/search_application.search#typed_keys" } ], "requestBody": { @@ -26792,6 +26798,16 @@ }, "style": "simple" }, + "search_application.search#typed_keys": { + "in": "query", + "name": "typed_keys", + "description": "Determines whether aggregation names are prefixed by their respective types in the response.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "search_mvt#index": { "in": "path", "name": "index", diff --git a/output/schema/schema.json b/output/schema/schema.json index f987b25232..fb4e602041 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -177357,8 +177357,29 @@ } } ], - "query": [], - "specLocation": "search_application/search/SearchApplicationsSearchRequest.ts#L24-L43" + "query": [ + { + "availability": { + "serverless": {}, + "stack": { + "since": "8.14.0" + } + }, + "description": "Determines whether aggregation names are prefixed by their respective types in the response.", + "name": "typed_keys", + "required": false, + "serverDefault": false, + "since": "8.14.0", + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "search_application/search/SearchApplicationsSearchRequest.ts#L24-L52" }, { "body": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index ebaa303144..4d35cedff5 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16642,6 +16642,7 @@ export type SearchApplicationPutBehavioralAnalyticsResponse = SearchApplicationP export interface SearchApplicationSearchRequest extends RequestBase { name: Name + typed_keys?: boolean body?: { params?: Record } diff --git a/specification/search_application/search/SearchApplicationsSearchRequest.ts b/specification/search_application/search/SearchApplicationsSearchRequest.ts index dbfadaaea0..d258bac5d2 100644 --- a/specification/search_application/search/SearchApplicationsSearchRequest.ts +++ b/specification/search_application/search/SearchApplicationsSearchRequest.ts @@ -34,6 +34,15 @@ export interface Request extends RequestBase { */ name: Name } + query_parameters: { + /** + * Determines whether aggregation names are prefixed by their respective types in the response. + * @server_default false + * @availability stack since=8.14.0 + * @availability serverless + */ + typed_keys?: boolean + } body: { /** * Query parameters specific to this request, which will override any defaults specified in the template.