From 0dbfea3b90771885456300233505e2beb8dad5d5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 10:27:01 +0400 Subject: [PATCH] Update rest-api-spec main (#3019) Co-authored-by: pquentin <42327+pquentin@users.noreply.github.com> Co-authored-by: Quentin Pradet --- compiler/package-lock.json | 10 ++- output/schema/schema.json | 84 +++++++++++++++++++ output/schema/validation-errors.json | 18 ++++ .../ingest.delete_ip_location_database.json | 28 +++++++ .../ingest.get_ip_location_database.json | 32 +++++++ .../ingest.put_ip_location_database.json | 33 ++++++++ 6 files changed, 202 insertions(+), 3 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 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 7aba15d81b..025b779f98 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -8561,6 +8561,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": { @@ -8672,6 +8697,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": { @@ -8786,6 +8842,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": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 9c6cbcafe3..8fd060be7a 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -871,12 +871,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", @@ -884,6 +896,12 @@ ], "response": [] }, + "ingest.put_ip_location_database": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "license.delete": { "request": [ "Request: missing json spec query parameter 'master_timeout'", 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 + } + } +}