From 41d32fd419a4e42d6d05ab0047ba822c05fe80e0 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 30 Sep 2024 12:36:00 +0400 Subject: [PATCH] Fix xpack.info response (#2958) --- output/openapi/elasticsearch-openapi.json | 16 ++++---- output/schema/schema.json | 49 ++++++++++++----------- output/typescript/types.ts | 7 ++-- specification/xpack/info/types.ts | 17 +++++--- 4 files changed, 49 insertions(+), 40 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 3f8184d024..b7c0d04347 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -86489,12 +86489,6 @@ "ccr": { "$ref": "#/components/schemas/xpack.info:Feature" }, - "data_frame": { - "$ref": "#/components/schemas/xpack.info:Feature" - }, - "data_science": { - "$ref": "#/components/schemas/xpack.info:Feature" - }, "data_streams": { "$ref": "#/components/schemas/xpack.info:Feature" }, @@ -86504,10 +86498,13 @@ "enrich": { "$ref": "#/components/schemas/xpack.info:Feature" }, + "enterprise_search": { + "$ref": "#/components/schemas/xpack.info:Feature" + }, "eql": { "$ref": "#/components/schemas/xpack.info:Feature" }, - "flattened": { + "esql": { "$ref": "#/components/schemas/xpack.info:Feature" }, "frozen_indices": { @@ -86552,7 +86549,7 @@ "transform": { "$ref": "#/components/schemas/xpack.info:Feature" }, - "vectors": { + "universal_profiling": { "$ref": "#/components/schemas/xpack.info:Feature" }, "voting_only": { @@ -86572,7 +86569,9 @@ "data_streams", "data_tiers", "enrich", + "enterprise_search", "eql", + "esql", "frozen_indices", "graph", "ilm", @@ -86586,6 +86585,7 @@ "spatial", "sql", "transform", + "universal_profiling", "voting_only", "watcher", "archive" diff --git a/output/schema/schema.json b/output/schema/schema.json index 47fc6f06c5..5deb0cd756 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -213508,7 +213508,7 @@ } } ], - "specLocation": "xpack/info/types.ts#L77-L82" + "specLocation": "xpack/info/types.ts#L84-L89" }, { "kind": "interface", @@ -213551,19 +213551,8 @@ } }, { - "name": "data_frame", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Feature", - "namespace": "xpack.info" - } - } - }, - { - "name": "data_science", - "required": false, + "name": "data_streams", + "required": true, "type": { "kind": "instance_of", "type": { @@ -213573,7 +213562,7 @@ } }, { - "name": "data_streams", + "name": "data_tiers", "required": true, "type": { "kind": "instance_of", @@ -213584,7 +213573,7 @@ } }, { - "name": "data_tiers", + "name": "enrich", "required": true, "type": { "kind": "instance_of", @@ -213595,7 +213584,12 @@ } }, { - "name": "enrich", + "availability": { + "stack": { + "since": "8.8.0" + } + }, + "name": "enterprise_search", "required": true, "type": { "kind": "instance_of", @@ -213617,8 +213611,13 @@ } }, { - "name": "flattened", - "required": false, + "availability": { + "stack": { + "since": "8.14.0" + } + }, + "name": "esql", + "required": true, "type": { "kind": "instance_of", "type": { @@ -213782,8 +213781,13 @@ } }, { - "name": "vectors", - "required": false, + "availability": { + "stack": { + "since": "8.7.0" + } + }, + "name": "universal_profiling", + "required": true, "type": { "kind": "instance_of", "type": { @@ -213816,7 +213820,6 @@ }, { "availability": { - "serverless": {}, "stack": { "since": "8.2.0" } @@ -213832,7 +213835,7 @@ } } ], - "specLocation": "xpack/info/types.ts#L42-L75" + "specLocation": "xpack/info/types.ts#L42-L82" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e9e3ef2ad2..e72b6df532 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -20486,13 +20486,12 @@ export interface XpackInfoFeatures { aggregate_metric: XpackInfoFeature analytics: XpackInfoFeature ccr: XpackInfoFeature - data_frame?: XpackInfoFeature - data_science?: XpackInfoFeature data_streams: XpackInfoFeature data_tiers: XpackInfoFeature enrich: XpackInfoFeature + enterprise_search: XpackInfoFeature eql: XpackInfoFeature - flattened?: XpackInfoFeature + esql: XpackInfoFeature frozen_indices: XpackInfoFeature graph: XpackInfoFeature ilm: XpackInfoFeature @@ -20507,7 +20506,7 @@ export interface XpackInfoFeatures { spatial: XpackInfoFeature sql: XpackInfoFeature transform: XpackInfoFeature - vectors?: XpackInfoFeature + universal_profiling: XpackInfoFeature voting_only: XpackInfoFeature watcher: XpackInfoFeature archive: XpackInfoFeature diff --git a/specification/xpack/info/types.ts b/specification/xpack/info/types.ts index 034e5c3d6c..48fec772a0 100644 --- a/specification/xpack/info/types.ts +++ b/specification/xpack/info/types.ts @@ -43,13 +43,18 @@ export class Features { aggregate_metric: Feature analytics: Feature ccr: Feature - data_frame?: Feature - data_science?: Feature data_streams: Feature data_tiers: Feature enrich: Feature + /** + * @availability stack since=8.8.0 + */ + enterprise_search: Feature eql: Feature - flattened?: Feature + /** + * @availability stack since=8.14.0 + */ + esql: Feature frozen_indices: Feature graph: Feature ilm: Feature @@ -64,12 +69,14 @@ export class Features { spatial: Feature sql: Feature transform: Feature - vectors?: Feature + /** + * @availability stack since=8.7.0 + */ + universal_profiling: Feature voting_only: Feature watcher: Feature /** * @availability stack since=8.2.0 - * @availability serverless */ archive: Feature }