From 0202dfe4fd7dd76958c9e58a3f457d8cdae42ea8 Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Tue, 8 Apr 2025 04:07:12 +0000 Subject: [PATCH 1/2] Update rest-api-spec --- output/schema/schema.json | 109 +++++++++++++----- .../_json_spec/esql.async_query.json | 4 +- specification/_json_spec/esql.query.json | 4 +- .../indices.delete_data_stream_options.json | 44 +++++++ .../indices.get_data_stream_options.json | 44 +++++++ .../indices.put_data_stream_options.json | 48 ++++++++ .../inference.post_eis_chat_completion.json | 31 ----- .../_json_spec/inference.put.eis.json | 35 ------ .../_json_spec/inference.put.mistral.json | 35 ------ .../_json_spec/inference.put.voyageai.json | 35 ------ 10 files changed, 221 insertions(+), 168 deletions(-) create mode 100644 specification/_json_spec/indices.delete_data_stream_options.json create mode 100644 specification/_json_spec/indices.get_data_stream_options.json create mode 100644 specification/_json_spec/indices.put_data_stream_options.json delete mode 100644 specification/_json_spec/inference.post_eis_chat_completion.json delete mode 100644 specification/_json_spec/inference.put.eis.json delete mode 100644 specification/_json_spec/inference.put.mistral.json delete mode 100644 specification/_json_spec/inference.put.voyageai.json diff --git a/output/schema/schema.json b/output/schema/schema.json index 88fe68f37c..a560f67ce2 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -6921,6 +6921,32 @@ } ] }, + { + "availability": { + "stack": { + "featureFlag": "es.failure_store_feature_flag_enabled", + "stability": "experimental", + "visibility": "feature_flag" + } + }, + "description": "Deletes the data stream options of the selected data streams.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", + "name": "indices.delete_data_stream_options", + "request": null, + "requestBodyRequired": false, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "DELETE" + ], + "path": "/_data_stream/{name}/_options" + } + ] + }, { "availability": { "serverless": { @@ -7620,6 +7646,32 @@ } ] }, + { + "availability": { + "stack": { + "featureFlag": "es.failure_store_feature_flag_enabled", + "stability": "experimental", + "visibility": "feature_flag" + } + }, + "description": "Returns the data stream options of the selected data streams.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", + "name": "indices.get_data_stream_options", + "request": null, + "requestBodyRequired": false, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "GET" + ], + "path": "/_data_stream/{name}/_options" + } + ] + }, { "availability": { "stack": { @@ -8174,6 +8226,35 @@ } ] }, + { + "availability": { + "stack": { + "featureFlag": "es.failure_store_feature_flag_enabled", + "stability": "experimental", + "visibility": "feature_flag" + } + }, + "description": "Updates the data stream options of the selected data streams.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", + "name": "indices.put_data_stream_options", + "request": null, + "requestBodyRequired": false, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "PUT" + ], + "path": "/_data_stream/{name}/_options" + } + ] + }, { "availability": { "serverless": { @@ -9256,34 +9337,6 @@ } ] }, - { - "availability": { - "stack": { - "stability": "stable", - "visibility": "public" - } - }, - "description": "Perform a chat completion task via the Elastic Inference Service (EIS)", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html", - "name": "inference.post_eis_chat_completion", - "request": null, - "requestBodyRequired": false, - "requestMediaType": [ - "application/json" - ], - "response": null, - "responseMediaType": [ - "application/json" - ], - "urls": [ - { - "methods": [ - "POST" - ], - "path": "/_inference/chat_completion/{eis_inference_id}/_stream" - } - ] - }, { "availability": { "serverless": { diff --git a/specification/_json_spec/esql.async_query.json b/specification/_json_spec/esql.async_query.json index 566bf9075b..4a61cfe896 100644 --- a/specification/_json_spec/esql.async_query.json +++ b/specification/_json_spec/esql.async_query.json @@ -35,8 +35,8 @@ }, "allow_partial_results": { "type": "boolean", - "description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.", - "default": false + "description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.\nIf `false`, the entire query will fail if there are\nany failures.", + "default": true } }, "body": { diff --git a/specification/_json_spec/esql.query.json b/specification/_json_spec/esql.query.json index 4e1e96fd14..65591cfaaa 100644 --- a/specification/_json_spec/esql.query.json +++ b/specification/_json_spec/esql.query.json @@ -35,8 +35,8 @@ }, "allow_partial_results": { "type": "boolean", - "description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.", - "default": false + "description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.\nIf `false`, the entire query will fail if there are\nany failures.", + "default": true } }, "body": { diff --git a/specification/_json_spec/indices.delete_data_stream_options.json b/specification/_json_spec/indices.delete_data_stream_options.json new file mode 100644 index 0000000000..9bf9e1601f --- /dev/null +++ b/specification/_json_spec/indices.delete_data_stream_options.json @@ -0,0 +1,44 @@ +{ + "indices.delete_data_stream_options": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", + "description": "Deletes the data stream options of the selected data streams." + }, + "stability": "experimental", + "visibility": "feature_flag", + "feature_flag": "es.failure_store_feature_flag_enabled", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_data_stream/{name}/_options", + "methods": ["DELETE"], + "parts": { + "name": { + "type": "list", + "description": "A comma-separated list of data streams of which the data stream options will be deleted; use `*` to get all data streams" + } + } + } + ] + }, + "params": { + "expand_wildcards": { + "type": "enum", + "options": ["open", "closed", "hidden", "none", "all"], + "default": "open", + "description": "Whether wildcard expressions should get expanded to open or closed indices (default: open)" + }, + "timeout": { + "type": "time", + "description": "Explicit timestamp for the document" + }, + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" + } + } + } +} diff --git a/specification/_json_spec/indices.get_data_stream_options.json b/specification/_json_spec/indices.get_data_stream_options.json new file mode 100644 index 0000000000..c7ee328ef9 --- /dev/null +++ b/specification/_json_spec/indices.get_data_stream_options.json @@ -0,0 +1,44 @@ +{ + "indices.get_data_stream_options": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", + "description": "Returns the data stream options of the selected data streams." + }, + "stability": "experimental", + "visibility": "feature_flag", + "feature_flag": "es.failure_store_feature_flag_enabled", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_data_stream/{name}/_options", + "methods": ["GET"], + "parts": { + "name": { + "type": "list", + "description": "A comma-separated list of data streams to get; use `*` to get all data streams" + } + } + } + ] + }, + "params": { + "expand_wildcards": { + "type": "enum", + "options": ["open", "closed", "hidden", "none", "all"], + "default": "open", + "description": "Whether wildcard expressions should get expanded to open or closed indices (default: open)" + }, + "include_defaults": { + "type": "boolean", + "description": "Return all relevant default configurations for the data stream (default: false)" + }, + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" + } + } + } +} diff --git a/specification/_json_spec/indices.put_data_stream_options.json b/specification/_json_spec/indices.put_data_stream_options.json new file mode 100644 index 0000000000..7abd0da45a --- /dev/null +++ b/specification/_json_spec/indices.put_data_stream_options.json @@ -0,0 +1,48 @@ +{ + "indices.put_data_stream_options": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", + "description": "Updates the data stream options of the selected data streams." + }, + "stability": "experimental", + "visibility": "feature_flag", + "feature_flag": "es.failure_store_feature_flag_enabled", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_data_stream/{name}/_options", + "methods": ["PUT"], + "parts": { + "name": { + "type": "list", + "description": "A comma-separated list of data streams whose options will be updated; use `*` to set the options to all data streams" + } + } + } + ] + }, + "params": { + "expand_wildcards": { + "type": "enum", + "options": ["open", "closed", "hidden", "none", "all"], + "default": "open", + "description": "Whether wildcard expressions should get expanded to open or closed indices (default: open)" + }, + "timeout": { + "type": "time", + "description": "Explicit timestamp for the document" + }, + "master_timeout": { + "type": "time", + "description": "Specify timeout for connection to master" + } + }, + "body": { + "description": "The data stream options configuration that consist of the failure store configuration" + } + } +} diff --git a/specification/_json_spec/inference.post_eis_chat_completion.json b/specification/_json_spec/inference.post_eis_chat_completion.json deleted file mode 100644 index e34b14913b..0000000000 --- a/specification/_json_spec/inference.post_eis_chat_completion.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "inference.post_eis_chat_completion": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html", - "description": "Perform a chat completion task via the Elastic Inference Service (EIS)" - }, - "stability": "stable", - "visibility": "public", - "headers": { - "accept": ["application/json"], - "content_type": ["application/json"] - }, - "url": { - "paths": [ - { - "path": "/_inference/chat_completion/{eis_inference_id}/_stream", - "methods": ["POST"], - "parts": { - "eis_inference_id": { - "type": "string", - "description": "The inference ID" - } - } - } - ] - }, - "body": { - "description": "The inference tasks settings to perform" - } - } -} diff --git a/specification/_json_spec/inference.put.eis.json b/specification/_json_spec/inference.put.eis.json deleted file mode 100644 index 281758769e..0000000000 --- a/specification/_json_spec/inference.put.eis.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "inference.put_eis": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-eis.html", - "description": "Configure an EIS inference endpoint" - }, - "stability": "stable", - "visibility": "public", - "headers": { - "accept": ["application/json"], - "content_type": ["application/json"] - }, - "url": { - "paths": [ - { - "path": "/_inference/{task_type}/{eis_inference_id}", - "methods": ["PUT"], - "parts": { - "task_type": { - "type": "string", - "description": "The task type" - }, - "eis_inference_id": { - "type": "string", - "description": "The inference ID" - } - } - } - ] - }, - "body": { - "description": "The inference endpoint's service settings" - } - } -} diff --git a/specification/_json_spec/inference.put.mistral.json b/specification/_json_spec/inference.put.mistral.json deleted file mode 100644 index 97633b233c..0000000000 --- a/specification/_json_spec/inference.put.mistral.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "inference.put_mistral": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-mistral.html", - "description": "Configure a Mistral inference endpoint" - }, - "stability": "stable", - "visibility": "public", - "headers": { - "accept": ["application/json"], - "content_type": ["application/json"] - }, - "url": { - "paths": [ - { - "path": "/_inference/{task_type}/{mistral_inference_id}", - "methods": ["PUT"], - "parts": { - "task_type": { - "type": "string", - "description": "The task type" - }, - "mistral_inference_id": { - "type": "string", - "description": "The inference Id" - } - } - } - ] - }, - "body": { - "description": "The inference endpoint's task and service settings" - } - } -} diff --git a/specification/_json_spec/inference.put.voyageai.json b/specification/_json_spec/inference.put.voyageai.json deleted file mode 100644 index 8a587c75ab..0000000000 --- a/specification/_json_spec/inference.put.voyageai.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "inference.put_voyageai": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-apis.html", - "description": "Configure an VoyageAI inference endpoint" - }, - "stability": "stable", - "visibility": "public", - "headers": { - "accept": ["application/json"], - "content_type": ["application/json"] - }, - "url": { - "paths": [ - { - "path": "/_inference/{task_type}/{voyageai_inference_id}", - "methods": ["PUT"], - "parts": { - "task_type": { - "type": "string", - "description": "The task type" - }, - "voyageai_inference_id": { - "type": "string", - "description": "The inference ID" - } - } - } - ] - }, - "body": { - "description": "The inference endpoint's task and service settings" - } - } -} From 2b4ad35c8bcef697802f42b2548e80e121f63b66 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Tue, 8 Apr 2025 10:56:14 +0200 Subject: [PATCH 2/2] revert mistral and voyage --- .../_json_spec/inference.put.mistral.json | 35 +++++++++++++++++++ .../_json_spec/inference.put.voyageai.json | 35 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 specification/_json_spec/inference.put.mistral.json create mode 100644 specification/_json_spec/inference.put.voyageai.json diff --git a/specification/_json_spec/inference.put.mistral.json b/specification/_json_spec/inference.put.mistral.json new file mode 100644 index 0000000000..97633b233c --- /dev/null +++ b/specification/_json_spec/inference.put.mistral.json @@ -0,0 +1,35 @@ +{ + "inference.put_mistral": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-mistral.html", + "description": "Configure a Mistral inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{mistral_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "mistral_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/specification/_json_spec/inference.put.voyageai.json b/specification/_json_spec/inference.put.voyageai.json new file mode 100644 index 0000000000..8a587c75ab --- /dev/null +++ b/specification/_json_spec/inference.put.voyageai.json @@ -0,0 +1,35 @@ +{ + "inference.put_voyageai": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-apis.html", + "description": "Configure an VoyageAI inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{voyageai_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "voyageai_inference_id": { + "type": "string", + "description": "The inference ID" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +}