From df2dbc1e3b506537005e1101a484c6c55ef0b068 Mon Sep 17 00:00:00 2001
From: Elastic Machine <elasticmachine@users.noreply.github.com>
Date: Wed, 2 Oct 2024 06:09:35 +0000
Subject: [PATCH] Update specification output

---
 output/openapi/elasticsearch-openapi.json | 10 +++++-----
 output/schema/schema.json                 |  4 ++--
 output/schema/validation-errors.json      |  7 -------
 output/typescript/types.ts                |  2 +-
 4 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json
index f41dad17f2..ff20dea4e0 100644
--- a/output/openapi/elasticsearch-openapi.json
+++ b/output/openapi/elasticsearch-openapi.json
@@ -3977,7 +3977,7 @@
         "operationId": "cluster-stats",
         "parameters": [
           {
-            "$ref": "#/components/parameters/cluster.stats#flat_settings"
+            "$ref": "#/components/parameters/cluster.stats#include_remotes"
           },
           {
             "$ref": "#/components/parameters/cluster.stats#timeout"
@@ -4004,7 +4004,7 @@
             "$ref": "#/components/parameters/cluster.stats#node_id"
           },
           {
-            "$ref": "#/components/parameters/cluster.stats#flat_settings"
+            "$ref": "#/components/parameters/cluster.stats#include_remotes"
           },
           {
             "$ref": "#/components/parameters/cluster.stats#timeout"
@@ -93295,10 +93295,10 @@
         },
         "style": "simple"
       },
-      "cluster.stats#flat_settings": {
+      "cluster.stats#include_remotes": {
         "in": "query",
-        "name": "flat_settings",
-        "description": "If `true`, returns settings in flat format.",
+        "name": "include_remotes",
+        "description": "Include remote cluster data into the response",
         "deprecated": false,
         "schema": {
           "type": "boolean"
diff --git a/output/schema/schema.json b/output/schema/schema.json
index 7444903b33..f95c1a76da 100644
--- a/output/schema/schema.json
+++ b/output/schema/schema.json
@@ -110332,8 +110332,8 @@
       ],
       "query": [
         {
-          "description": "If `true`, returns settings in flat format.",
-          "name": "flat_settings",
+          "description": "Include remote cluster data into the response",
+          "name": "include_remotes",
           "required": false,
           "serverDefault": false,
           "type": {
diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json
index 14ad1910e6..081c20aa7b 100644
--- a/output/schema/validation-errors.json
+++ b/output/schema/validation-errors.json
@@ -535,13 +535,6 @@
       ],
       "response": []
     },
-    "cluster.stats": {
-      "request": [
-        "Request: query parameter 'flat_settings' does not exist in the json spec",
-        "Request: missing json spec query parameter 'include_remotes'"
-      ],
-      "response": []
-    },
     "connector.secret_delete": {
       "request": [
         "Missing request & response"
diff --git a/output/typescript/types.ts b/output/typescript/types.ts
index c5515b39f6..7d8c4a9bcb 100644
--- a/output/typescript/types.ts
+++ b/output/typescript/types.ts
@@ -9578,7 +9578,7 @@ export interface ClusterStatsOperatingSystemMemoryInfo {
 
 export interface ClusterStatsRequest extends RequestBase {
   node_id?: NodeIds
-  flat_settings?: boolean
+  include_remotes?: boolean
   timeout?: Duration
 }