From ce56dbaa063d9cfa7b1431eb2a9e8e7ea706b0b3 Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Tue, 22 Oct 2024 04:06:58 +0000 Subject: [PATCH] Update rest-api-spec --- compiler/package-lock.json | 10 +- output/schema/schema.json | 112 ++++++++++++++++++ output/schema/validation-errors.json | 25 ++++ .../indices.delete_data_lifecycle.json | 2 +- .../indices.explain_data_lifecycle.json | 2 +- .../indices.get_data_lifecycle.json | 2 +- .../indices.put_data_lifecycle.json | 2 +- .../ingest.delete_ip_location_database.json | 28 +++++ .../ingest.get_ip_location_database.json | 32 +++++ .../ingest.put_ip_location_database.json | 33 ++++++ .../_json_spec/query_rules.test.json | 32 +++++ specification/_json_spec/search.json | 4 - 12 files changed, 273 insertions(+), 11 deletions(-) create mode 100644 specification/_json_spec/ingest.delete_ip_location_database.json create mode 100644 specification/_json_spec/ingest.get_ip_location_database.json create mode 100644 specification/_json_spec/ingest.put_ip_location_database.json create mode 100644 specification/_json_spec/query_rules.test.json diff --git a/compiler/package-lock.json b/compiler/package-lock.json index ed183152ca..56c687fd0d 100644 --- a/compiler/package-lock.json +++ b/compiler/package-lock.json @@ -33,6 +33,10 @@ "node": ">=14" } }, + "../compiler-rs/compiler-wasm-lib/pkg": { + "name": "compiler-wasm-lib", + "version": "0.1.0" + }, "node_modules/@babel/code-frame": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", @@ -1540,8 +1544,8 @@ "dev": true }, "node_modules/compiler-wasm-lib": { - "version": "0.1.0", - "resolved": "file:../compiler-rs/compiler-wasm-lib/pkg" + "resolved": "../compiler-rs/compiler-wasm-lib/pkg", + "link": true }, "node_modules/concat-map": { "version": "0.0.1", @@ -6484,7 +6488,7 @@ "dev": true }, "compiler-wasm-lib": { - "version": "0.1.0" + "version": "file:../compiler-rs/compiler-wasm-lib/pkg" }, "concat-map": { "version": "0.0.1", diff --git a/output/schema/schema.json b/output/schema/schema.json index be65f0248b..04d5088d7c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -8544,6 +8544,31 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Deletes an ip location database configuration", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-ip-location-database-api.html", + "name": "ingest.delete_ip_location_database", + "request": null, + "requestBodyRequired": false, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "DELETE" + ], + "path": "/_ingest/ip_location/database/{id}" + } + ] + }, { "availability": { "serverless": { @@ -8655,6 +8680,37 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Returns the specified ip location database configuration", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-ip-location-database-api.html", + "name": "ingest.get_ip_location_database", + "request": null, + "requestBodyRequired": false, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "GET" + ], + "path": "/_ingest/ip_location/database" + }, + { + "methods": [ + "GET" + ], + "path": "/_ingest/ip_location/database/{id}" + } + ] + }, { "availability": { "serverless": { @@ -8769,6 +8825,34 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Puts the configuration for a ip location database to be downloaded", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-ip-location-database-api.html", + "name": "ingest.put_ip_location_database", + "request": null, + "requestBodyRequired": true, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "PUT" + ], + "path": "/_ingest/ip_location/database/{id}" + } + ] + }, { "availability": { "serverless": { @@ -13743,6 +13827,34 @@ } ] }, + { + "availability": { + "stack": { + "stability": "experimental", + "visibility": "public" + } + }, + "description": "Tests a query ruleset to identify the rules that would match input criteria", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/test-query-ruleset.html", + "name": "query_rules.test", + "request": null, + "requestBodyRequired": true, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_query_rules/{ruleset_id}/_test" + } + ] + }, { "availability": { "serverless": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 6b40b6b077..b05fe8a1aa 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -881,12 +881,24 @@ ], "response": [] }, + "ingest.delete_ip_location_database": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "ingest.get_geoip_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec" ], "response": [] }, + "ingest.get_ip_location_database": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "ingest.put_geoip_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec", @@ -894,6 +906,12 @@ ], "response": [] }, + "ingest.put_ip_location_database": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "license.delete": { "request": [ "Request: missing json spec query parameter 'master_timeout'", @@ -1023,6 +1041,12 @@ ], "response": [] }, + "query_rules.test": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "reindex": { "request": [ "Request: query parameter 'require_alias' does not exist in the json spec", @@ -1032,6 +1056,7 @@ }, "search": { "request": [ + "Request: query parameter 'min_compatible_shard_node' does not exist in the json spec", "interface definition _types:RankContainer - Property rrf is a single-variant and must be required" ], "response": [] diff --git a/specification/_json_spec/indices.delete_data_lifecycle.json b/specification/_json_spec/indices.delete_data_lifecycle.json index 48311aed8d..94affa5502 100644 --- a/specification/_json_spec/indices.delete_data_lifecycle.json +++ b/specification/_json_spec/indices.delete_data_lifecycle.json @@ -4,7 +4,7 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-delete-lifecycle.html", "description": "Deletes the data stream lifecycle of the selected data streams." }, - "stability": "experimental", + "stability": "stable", "visibility": "public", "headers": { "accept": ["application/json"] diff --git a/specification/_json_spec/indices.explain_data_lifecycle.json b/specification/_json_spec/indices.explain_data_lifecycle.json index 9f2b24a6f8..e61a497806 100644 --- a/specification/_json_spec/indices.explain_data_lifecycle.json +++ b/specification/_json_spec/indices.explain_data_lifecycle.json @@ -4,7 +4,7 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html", "description": "Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc." }, - "stability": "experimental", + "stability": "stable", "visibility": "public", "headers": { "accept": ["application/json"] diff --git a/specification/_json_spec/indices.get_data_lifecycle.json b/specification/_json_spec/indices.get_data_lifecycle.json index f356e91226..0aa050cb43 100644 --- a/specification/_json_spec/indices.get_data_lifecycle.json +++ b/specification/_json_spec/indices.get_data_lifecycle.json @@ -4,7 +4,7 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle.html", "description": "Returns the data stream lifecycle of the selected data streams." }, - "stability": "experimental", + "stability": "stable", "visibility": "public", "headers": { "accept": ["application/json"] diff --git a/specification/_json_spec/indices.put_data_lifecycle.json b/specification/_json_spec/indices.put_data_lifecycle.json index 5d96f47245..4bc27d8983 100644 --- a/specification/_json_spec/indices.put_data_lifecycle.json +++ b/specification/_json_spec/indices.put_data_lifecycle.json @@ -4,7 +4,7 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-put-lifecycle.html", "description": "Updates the data stream lifecycle of the selected data streams." }, - "stability": "experimental", + "stability": "stable", "visibility": "public", "headers": { "accept": ["application/json"] diff --git a/specification/_json_spec/ingest.delete_ip_location_database.json b/specification/_json_spec/ingest.delete_ip_location_database.json new file mode 100644 index 0000000000..629ea86961 --- /dev/null +++ b/specification/_json_spec/ingest.delete_ip_location_database.json @@ -0,0 +1,28 @@ +{ + "ingest.delete_ip_location_database": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-ip-location-database-api.html", + "description": "Deletes an ip location database configuration" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_ingest/ip_location/database/{id}", + "methods": ["DELETE"], + "parts": { + "id": { + "type": "list", + "description": "A comma-separated list of ip location database configurations to delete" + } + } + } + ] + }, + "params": {} + } +} diff --git a/specification/_json_spec/ingest.get_ip_location_database.json b/specification/_json_spec/ingest.get_ip_location_database.json new file mode 100644 index 0000000000..d6dda6573b --- /dev/null +++ b/specification/_json_spec/ingest.get_ip_location_database.json @@ -0,0 +1,32 @@ +{ + "ingest.get_ip_location_database": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-ip-location-database-api.html", + "description": "Returns the specified ip location database configuration" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_ingest/ip_location/database", + "methods": ["GET"] + }, + { + "path": "/_ingest/ip_location/database/{id}", + "methods": ["GET"], + "parts": { + "id": { + "type": "list", + "description": "A comma-separated list of ip location database configurations to get; use `*` to get all ip location database configurations" + } + } + } + ] + }, + "params": {} + } +} diff --git a/specification/_json_spec/ingest.put_ip_location_database.json b/specification/_json_spec/ingest.put_ip_location_database.json new file mode 100644 index 0000000000..b10e290bd4 --- /dev/null +++ b/specification/_json_spec/ingest.put_ip_location_database.json @@ -0,0 +1,33 @@ +{ + "ingest.put_ip_location_database": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-ip-location-database-api.html", + "description": "Puts the configuration for a ip location database to be downloaded" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_ingest/ip_location/database/{id}", + "methods": ["PUT"], + "parts": { + "id": { + "type": "string", + "description": "The id of the database configuration" + } + } + } + ] + }, + "params": {}, + "body": { + "description": "The database configuration definition", + "required": true + } + } +} diff --git a/specification/_json_spec/query_rules.test.json b/specification/_json_spec/query_rules.test.json new file mode 100644 index 0000000000..43167c765b --- /dev/null +++ b/specification/_json_spec/query_rules.test.json @@ -0,0 +1,32 @@ +{ + "query_rules.test": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/test-query-ruleset.html", + "description": "Tests a query ruleset to identify the rules that would match input criteria" + }, + "stability": "experimental", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_query_rules/{ruleset_id}/_test", + "methods": ["POST"], + "parts": { + "ruleset_id": { + "type": "string", + "description": "The unique identifier of the ruleset to test." + } + } + } + ] + }, + "body": { + "description": "The match criteria to test against the ruleset", + "required": true + } + } +} diff --git a/specification/_json_spec/search.json b/specification/_json_spec/search.json index fb9a648f2a..42125fa044 100644 --- a/specification/_json_spec/search.json +++ b/specification/_json_spec/search.json @@ -215,10 +215,6 @@ "description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "default": false }, - "min_compatible_shard_node": { - "type": "string", - "description": "The minimum compatible version that all shards involved in search should have for this request to be successful" - }, "include_named_queries_score": { "type": "boolean", "description": "Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false)",