From 46d2fd14550f3f65a96a41dded270b863532578b Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Tue, 7 Jan 2025 04:06:28 +0000 Subject: [PATCH] Update rest-api-spec --- compiler/package-lock.json | 10 +- output/openapi/elasticsearch-openapi.json | 4 +- output/schema/schema-serverless.json | 301 ++++++++---------- output/schema/schema.json | 200 +++++++++++- output/schema/validation-errors.json | 91 +++++- specification/_json_spec/bulk.json | 8 +- specification/_json_spec/eql.search.json | 10 + .../_json_spec/esql.async_query_delete.json | 27 ++ .../indices.get_data_lifecycle_stats.json | 21 ++ .../_json_spec/inference.update.json | 45 +++ .../_json_spec/migrate.cancel_reindex.json | 28 ++ .../migrate.get_reindex_status.json | 28 ++ specification/_json_spec/migrate.reindex.json | 26 ++ .../_json_spec/security.delegate_pki.json | 26 ++ .../_json_spec/slm.delete_lifecycle.json | 11 +- .../_json_spec/slm.execute_lifecycle.json | 11 +- .../_json_spec/slm.execute_retention.json | 11 +- .../_json_spec/slm.get_lifecycle.json | 11 +- specification/_json_spec/slm.get_stats.json | 11 +- specification/_json_spec/slm.get_status.json | 11 +- .../_json_spec/slm.put_lifecycle.json | 11 +- 21 files changed, 705 insertions(+), 197 deletions(-) create mode 100644 specification/_json_spec/esql.async_query_delete.json create mode 100644 specification/_json_spec/indices.get_data_lifecycle_stats.json create mode 100644 specification/_json_spec/inference.update.json create mode 100644 specification/_json_spec/migrate.cancel_reindex.json create mode 100644 specification/_json_spec/migrate.get_reindex_status.json create mode 100644 specification/_json_spec/migrate.reindex.json create mode 100644 specification/_json_spec/security.delegate_pki.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/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index ace43560e0..9e02e9aef4 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -23161,9 +23161,9 @@ "/_ml/anomaly_detectors/_validate": { "post": { "tags": [ - "ml" + "ml anomaly" ], - "summary": "Validates an anomaly detection job", + "summary": "Validate an anomaly detection job", "operationId": "ml-validate", "requestBody": { "content": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 8d70d68017..9f40021a68 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -3828,7 +3828,7 @@ "name": "Request", "namespace": "indices.put_data_lifecycle" }, - "requestBodyRequired": false, + "requestBodyRequired": true, "requestMediaType": [ "application/json" ], @@ -8165,6 +8165,14 @@ "description": "Delete a search application.\nRemove a search application and its associated alias. Indices attached to the search application are not removed.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html", "name": "search_application.delete", + "privileges": { + "cluster": [ + "manage_search_application" + ], + "index": [ + "manage" + ] + }, "request": { "name": "Request", "namespace": "search_application.delete" @@ -8236,6 +8244,11 @@ "description": "Get search application details.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-search-application.html", "name": "search_application.get", + "privileges": { + "cluster": [ + "manage_search_application" + ] + }, "request": { "name": "Request", "namespace": "search_application.get" @@ -8310,9 +8323,14 @@ "stability": "beta" } }, - "description": "Returns the existing search applications.", + "description": "Get search applications.\nGet information about search applications.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/list-search-applications.html", "name": "search_application.list", + "privileges": { + "cluster": [ + "manage_search_application" + ] + }, "request": { "name": "Request", "namespace": "search_application.list" @@ -8348,6 +8366,14 @@ "description": "Create or update a search application.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html", "name": "search_application.put", + "privileges": { + "cluster": [ + "manage_search_application" + ], + "index": [ + "manage" + ] + }, "request": { "name": "Request", "namespace": "search_application.put" @@ -22779,33 +22805,15 @@ "CommonQueryParameters" ], "body": { - "kind": "properties", - "properties": [ - { - "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", - "name": "data_retention", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, - { - "description": "If defined, every backing index will execute the configured downsampling configuration after the backing\nindex is not the data stream write index anymore.", - "name": "downsampling", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "DataStreamLifecycleDownsampling", - "namespace": "indices._types" - } - } + "codegenName": "lifecycle", + "kind": "value", + "value": { + "kind": "instance_of", + "type": { + "name": "DataStreamLifecycle", + "namespace": "indices._types" } - ] + } }, "description": "Update data stream lifecycles.\nUpdate the data stream lifecycle of the specified data streams.", "inherits": { @@ -22874,7 +22882,7 @@ } } ], - "specLocation": "indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L77" + "specLocation": "indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L68" }, { "body": { @@ -37911,7 +37919,7 @@ } ], "query": [], - "specLocation": "search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L36" + "specLocation": "search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L38" }, { "body": { @@ -38019,7 +38027,7 @@ } ], "query": [], - "specLocation": "search_application/get/SearchApplicationsGetRequest.ts#L22-L35" + "specLocation": "search_application/get/SearchApplicationsGetRequest.ts#L22-L36" }, { "body": { @@ -38114,7 +38122,7 @@ "body": { "kind": "no_body" }, - "description": "Returns the existing search applications.", + "description": "Get search applications.\nGet information about search applications.", "inherits": { "type": { "name": "RequestBase", @@ -38166,7 +38174,7 @@ } } ], - "specLocation": "search_application/list/SearchApplicationsListRequest.ts#L22-L44" + "specLocation": "search_application/list/SearchApplicationsListRequest.ts#L22-L46" }, { "body": { @@ -38191,8 +38199,8 @@ "value": { "kind": "instance_of", "type": { - "name": "SearchApplicationListItem", - "namespace": "search_application.list" + "name": "SearchApplication", + "namespace": "search_application._types" } } } @@ -38204,7 +38212,7 @@ "name": "Response", "namespace": "search_application.list" }, - "specLocation": "search_application/list/SearchApplicationsListResponse.ts#L24-L29" + "specLocation": "search_application/list/SearchApplicationsListResponse.ts#L23-L28" }, { "attachedBehaviors": [ @@ -38216,7 +38224,7 @@ "value": { "kind": "instance_of", "type": { - "name": "SearchApplication", + "name": "SearchApplicationParameters", "namespace": "search_application._types" } } @@ -38262,7 +38270,7 @@ } } ], - "specLocation": "search_application/put/SearchApplicationsPutRequest.ts#L23-L48" + "specLocation": "search_application/put/SearchApplicationsPutRequest.ts#L23-L50" }, { "body": { @@ -103768,7 +103776,7 @@ "name": "IndexPrivilege", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L362-L404" + "specLocation": "security/_types/Privileges.ts#L361-L403" }, { "codegenNames": [ @@ -103782,7 +103790,7 @@ "name": "IndicesPrivilegesQuery", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L317-L325", + "specLocation": "security/_types/Privileges.ts#L316-L324", "type": { "items": [ { @@ -103832,7 +103840,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L327-L337" + "specLocation": "security/_types/Privileges.ts#L326-L336" }, { "kind": "interface", @@ -103920,7 +103928,7 @@ } ], "shortcutProperty": "source", - "specLocation": "security/_types/Privileges.ts#L339-L357" + "specLocation": "security/_types/Privileges.ts#L338-L356" }, { "codegenNames": [ @@ -103932,7 +103940,7 @@ "name": "RoleTemplateInlineQuery", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L359-L360", + "specLocation": "security/_types/Privileges.ts#L358-L359", "type": { "items": [ { @@ -103960,7 +103968,7 @@ "name": "RemoteClusterPrivilege", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L201-L214" + "specLocation": "security/_types/Privileges.ts#L201-L213" }, { "isOpen": true, @@ -115832,11 +115840,40 @@ }, { "description": "Data stream lifecycle with rollover can be used to display the configuration including the default rollover conditions,\nif asked.", + "inherits": { + "type": { + "name": "DataStreamLifecycle", + "namespace": "indices._types" + } + }, "kind": "interface", "name": { "name": "DataStreamLifecycleWithRollover", "namespace": "indices._types" }, + "properties": [ + { + "description": "The conditions which will trigger the rollover of a backing index as configured by the cluster setting `cluster.lifecycle.default.rollover`.\nThis property is an implementation detail and it will only be retrieved when the query param `include_defaults` is set to true.\nThe contents of this field are subject to change.", + "name": "rollover", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DataStreamLifecycleRolloverConditions", + "namespace": "indices._types" + } + } + } + ], + "specLocation": "indices/_types/DataStreamLifecycle.ts#L47-L58" + }, + { + "description": "Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration.", + "kind": "interface", + "name": { + "name": "DataStreamLifecycle", + "namespace": "indices._types" + }, "properties": [ { "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", @@ -115863,19 +115900,20 @@ } }, { - "description": "The conditions which will trigger the rollover of a backing index as configured by the cluster setting `cluster.lifecycle.default.rollover`.\nThis property is an implementation detail and it will only be retrieved when the query param `include_defaults` is set to true.\nThe contents of this field are subject to change.", - "name": "rollover", + "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", + "name": "enabled", "required": false, + "serverDefault": true, "type": { "kind": "instance_of", "type": { - "name": "DataStreamLifecycleRolloverConditions", - "namespace": "indices._types" + "name": "boolean", + "namespace": "_builtins" } } } ], - "specLocation": "indices/_types/DataStreamLifecycle.ts#L33-L55" + "specLocation": "indices/_types/DataStreamLifecycle.ts#L25-L45" }, { "kind": "interface", @@ -116076,7 +116114,7 @@ } } ], - "specLocation": "indices/_types/DataStreamLifecycle.ts#L57-L69" + "specLocation": "indices/_types/DataStreamLifecycle.ts#L60-L72" }, { "kind": "interface", @@ -116260,39 +116298,6 @@ ], "specLocation": "indices/_types/Alias.ts#L23-L53" }, - { - "description": "Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration.", - "kind": "interface", - "name": { - "name": "DataStreamLifecycle", - "namespace": "indices._types" - }, - "properties": [ - { - "name": "data_retention", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, - { - "name": "downsampling", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "DataStreamLifecycleDownsampling", - "namespace": "indices._types" - } - } - } - ], - "specLocation": "indices/_types/DataStreamLifecycle.ts#L25-L31" - }, { "kind": "interface", "name": { @@ -119786,7 +119791,7 @@ "type": { "kind": "instance_of", "type": { - "name": "DataStreamLifecycle", + "name": "DataStreamLifecycleWithRollover", "namespace": "indices._types" } } @@ -140807,6 +140812,12 @@ "specLocation": "_types/Retriever.ts#L101-L110" }, { + "inherits": { + "type": { + "name": "SearchApplicationParameters", + "namespace": "search_application._types" + } + }, "kind": "interface", "name": { "name": "SearchApplication", @@ -140814,7 +140825,7 @@ }, "properties": [ { - "description": "Search Application name.", + "description": "Search Application name", "name": "name", "required": true, "type": { @@ -140825,21 +140836,6 @@ } } }, - { - "description": "Indices that are part of the Search Application.", - "name": "indices", - "required": true, - "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - } - } - }, { "description": "Last time the Search Application was updated.", "name": "updated_at_millis", @@ -140860,6 +140856,31 @@ "namespace": "_types" } } + } + ], + "specLocation": "search_application/_types/SearchApplication.ts#L24-L33" + }, + { + "kind": "interface", + "name": { + "name": "SearchApplicationParameters", + "namespace": "search_application._types" + }, + "properties": [ + { + "description": "Indices that are part of the Search Application.", + "name": "indices", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + } }, { "description": "Analytics collection associated to the Search Application.", @@ -140886,7 +140907,7 @@ } } ], - "specLocation": "search_application/_types/SearchApplication.ts#L24-L45" + "specLocation": "search_application/_types/SearchApplicationParameters.ts#L23-L36" }, { "kind": "interface", @@ -140908,7 +140929,7 @@ } } ], - "specLocation": "search_application/_types/SearchApplication.ts#L47-L52" + "specLocation": "search_application/_types/SearchApplicationTemplate.ts#L22-L27" }, { "kind": "interface", @@ -140953,76 +140974,6 @@ ], "specLocation": "search_application/_types/BehavioralAnalytics.ts#L29-L31" }, - { - "kind": "interface", - "name": { - "name": "SearchApplicationListItem", - "namespace": "search_application.list" - }, - "properties": [ - { - "description": "Search Application name", - "name": "name", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - } - }, - { - "description": "Indices that are part of the Search Application", - "name": "indices", - "required": true, - "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - } - } - }, - { - "description": "Last time the Search Application was updated", - "name": "updated_at_millis", - "required": true, - "type": { - "generics": [ - { - "kind": "instance_of", - "type": { - "name": "UnitMillis", - "namespace": "_types" - } - } - ], - "kind": "instance_of", - "type": { - "name": "EpochTime", - "namespace": "_types" - } - } - }, - { - "description": "Analytics collection associated to the Search Application", - "name": "analytics_collection_name", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - } - } - ], - "specLocation": "search_application/list/SearchApplicationsListResponse.ts#L31-L48" - }, { "inherits": { "type": { @@ -141346,7 +141297,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L217-L243" + "specLocation": "security/_types/Privileges.ts#L216-L242" }, { "kind": "interface", @@ -141840,7 +141791,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L418-L428" + "specLocation": "security/_types/Privileges.ts#L417-L427" }, { "kind": "interface", @@ -141903,7 +141854,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L430-L450" + "specLocation": "security/_types/Privileges.ts#L429-L449" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 0b359de923..1358d00925 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -4823,6 +4823,31 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Delete an async query request given its ID.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-async-query-delete-api.html", + "name": "esql.async_query_delete", + "request": null, + "requestBodyRequired": false, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "DELETE" + ], + "path": "/_query/async/{id}" + } + ] + }, { "availability": { "stack": { @@ -7088,6 +7113,31 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Get data stream lifecycle statistics.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle-stats.html", + "name": "indices.get_data_lifecycle_stats", + "request": null, + "requestBodyRequired": false, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "GET" + ], + "path": "/_lifecycle/stats" + } + ] + }, { "availability": { "serverless": { @@ -8634,6 +8684,40 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Update inference", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-inference-api.html", + "name": "inference.update", + "request": null, + "requestBodyRequired": false, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_inference/{inference_id}/_update" + }, + { + "methods": [ + "POST" + ], + "path": "/_inference/{task_type}/{inference_id}/_update" + } + ] + }, { "availability": { "serverless": { @@ -9630,6 +9714,90 @@ } ] }, + { + "availability": { + "stack": { + "stability": "experimental", + "visibility": "private" + } + }, + "description": "This API returns the status of a migration reindex attempt for a data stream or index", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "name": "migrate.cancel_reindex", + "request": null, + "requestBodyRequired": false, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_migration/reindex/{index}/_cancel" + } + ] + }, + { + "availability": { + "stack": { + "stability": "experimental", + "visibility": "private" + } + }, + "description": "This API returns the status of a migration reindex attempt for a data stream or index", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "name": "migrate.get_reindex_status", + "request": null, + "requestBodyRequired": false, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "GET" + ], + "path": "/_migration/reindex/{index}/_status" + } + ] + }, + { + "availability": { + "stack": { + "stability": "experimental", + "visibility": "private" + } + }, + "description": "This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "name": "migrate.reindex", + "request": null, + "requestBodyRequired": true, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_migration/reindex" + } + ] + }, { "availability": { "stack": { @@ -12971,7 +13139,8 @@ "visibility": "private" } }, - "description": "Validates an anomaly detection job.", + "description": "Validate an anomaly detection job.", + "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html", "name": "ml.validate", "request": { @@ -15981,6 +16150,31 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Delegate PKI authentication.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-delegate-pki-authentication.html", + "name": "security.delegate_pki", + "request": null, + "requestBodyRequired": true, + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_security/delegate_pki" + } + ] + }, { "availability": { "serverless": { @@ -176621,7 +176815,7 @@ } ] }, - "description": "Validates an anomaly detection job.", + "description": "Validate an anomaly detection job.", "inherits": { "type": { "name": "RequestBase", @@ -176634,7 +176828,7 @@ }, "path": [], "query": [], - "specLocation": "ml/validate/MlValidateJobRequest.ts#L27-L44" + "specLocation": "ml/validate/MlValidateJobRequest.ts#L27-L46" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 5df44cf6b5..6800252e76 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -43,6 +43,12 @@ ], "response": [] }, + "bulk": { + "request": [ + "Request: missing json spec query parameter 'type'" + ], + "response": [] + }, "capabilities": { "request": [ "Missing request & response" @@ -394,8 +400,6 @@ "eql.search": { "request": [ "Request: query parameter 'allow_no_indices' does not exist in the json spec", - "Request: query parameter 'allow_partial_search_results' does not exist in the json spec", - "Request: query parameter 'allow_partial_sequence_results' does not exist in the json spec", "Request: query parameter 'expand_wildcards' does not exist in the json spec", "Request: query parameter 'ignore_unavailable' does not exist in the json spec" ], @@ -407,6 +411,12 @@ ], "response": [] }, + "esql.async_query_delete": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "esql.async_query_get": { "request": [ "Missing request & response" @@ -524,6 +534,12 @@ ], "response": [] }, + "indices.get_data_lifecycle_stats": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "indices.put_settings": { "request": [ "Request: missing json spec query parameter 'reopen'" @@ -568,6 +584,12 @@ ], "response": [] }, + "inference.update": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "ingest.delete_geoip_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec", @@ -638,6 +660,24 @@ ], "response": [] }, + "migrate.cancel_reindex": { + "request": [ + "Missing request & response" + ], + "response": [] + }, + "migrate.get_reindex_status": { + "request": [ + "Missing request & response" + ], + "response": [] + }, + "migrate.reindex": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "ml.delete_trained_model": { "request": [ "Request: missing json spec query parameter 'timeout'" @@ -758,6 +798,12 @@ ], "response": [] }, + "security.delegate_pki": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "security.get_settings": { "request": [ "Missing request & response" @@ -810,10 +856,45 @@ ], "response": [] }, - "slm.put_lifecycle": { + "slm.delete_lifecycle": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: query parameter 'timeout' does not exist in the json spec" + "Request: missing json spec query parameter 'master_timeout'", + "Request: missing json spec query parameter 'timeout'" + ], + "response": [] + }, + "slm.execute_lifecycle": { + "request": [ + "Request: missing json spec query parameter 'master_timeout'", + "Request: missing json spec query parameter 'timeout'" + ], + "response": [] + }, + "slm.execute_retention": { + "request": [ + "Request: missing json spec query parameter 'master_timeout'", + "Request: missing json spec query parameter 'timeout'" + ], + "response": [] + }, + "slm.get_lifecycle": { + "request": [ + "Request: missing json spec query parameter 'master_timeout'", + "Request: missing json spec query parameter 'timeout'" + ], + "response": [] + }, + "slm.get_stats": { + "request": [ + "Request: missing json spec query parameter 'master_timeout'", + "Request: missing json spec query parameter 'timeout'" + ], + "response": [] + }, + "slm.get_status": { + "request": [ + "Request: missing json spec query parameter 'master_timeout'", + "Request: missing json spec query parameter 'timeout'" ], "response": [] }, diff --git a/specification/_json_spec/bulk.json b/specification/_json_spec/bulk.json index 3444e1c017..59e79d0684 100644 --- a/specification/_json_spec/bulk.json +++ b/specification/_json_spec/bulk.json @@ -46,6 +46,10 @@ "type": "time", "description": "Explicit operation timeout" }, + "type": { + "type": "string", + "description": "Default document type for items which don't provide one" + }, "_source": { "type": "list", "description": "True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request" @@ -64,11 +68,11 @@ }, "require_alias": { "type": "boolean", - "description": "If true, the request’s actions must target an index alias. Defaults to false." + "description": "Sets require_alias for all incoming documents. Defaults to unset (false)" }, "require_data_stream": { "type": "boolean", - "description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false" + "description": "When true, requires the destination to be a data stream (existing or to-be-created). Default is false" }, "list_executed_pipelines": { "type": "boolean", diff --git a/specification/_json_spec/eql.search.json b/specification/_json_spec/eql.search.json index 430a2a5ac8..3818508320 100644 --- a/specification/_json_spec/eql.search.json +++ b/specification/_json_spec/eql.search.json @@ -38,6 +38,16 @@ "type": "time", "description": "Update the time interval in which the results (partial or final) for this search will be available", "default": "5d" + }, + "allow_partial_search_results": { + "type": "boolean", + "description": "Control whether the query should keep running in case of shard failures, and return partial results", + "default": false + }, + "allow_partial_sequence_results": { + "type": "boolean", + "description": "Control whether a sequence query should return partial results or no results at all in case of shard failures. This option has effect only if [allow_partial_search_results] is true.", + "default": false } }, "body": { diff --git a/specification/_json_spec/esql.async_query_delete.json b/specification/_json_spec/esql.async_query_delete.json new file mode 100644 index 0000000000..a6339559af --- /dev/null +++ b/specification/_json_spec/esql.async_query_delete.json @@ -0,0 +1,27 @@ +{ + "esql.async_query_delete": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-async-query-delete-api.html", + "description": "Delete an async query request given its ID." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_query/async/{id}", + "methods": ["DELETE"], + "parts": { + "id": { + "type": "string", + "description": "The async query ID" + } + } + } + ] + } + } +} diff --git a/specification/_json_spec/indices.get_data_lifecycle_stats.json b/specification/_json_spec/indices.get_data_lifecycle_stats.json new file mode 100644 index 0000000000..8c9e947903 --- /dev/null +++ b/specification/_json_spec/indices.get_data_lifecycle_stats.json @@ -0,0 +1,21 @@ +{ + "indices.get_data_lifecycle_stats": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle-stats.html", + "description": "Get data stream lifecycle statistics." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_lifecycle/stats", + "methods": ["GET"] + } + ] + } + } +} diff --git a/specification/_json_spec/inference.update.json b/specification/_json_spec/inference.update.json new file mode 100644 index 0000000000..6c458ce080 --- /dev/null +++ b/specification/_json_spec/inference.update.json @@ -0,0 +1,45 @@ +{ + "inference.update": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-inference-api.html", + "description": "Update inference" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{inference_id}/_update", + "methods": ["POST"], + "parts": { + "inference_id": { + "type": "string", + "description": "The inference Id" + } + } + }, + { + "path": "/_inference/{task_type}/{inference_id}/_update", + "methods": ["POST"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/specification/_json_spec/migrate.cancel_reindex.json b/specification/_json_spec/migrate.cancel_reindex.json new file mode 100644 index 0000000000..660bd47272 --- /dev/null +++ b/specification/_json_spec/migrate.cancel_reindex.json @@ -0,0 +1,28 @@ +{ + "migrate.cancel_reindex": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "description": "This API returns the status of a migration reindex attempt for a data stream or index" + }, + "stability": "experimental", + "visibility": "private", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_migration/reindex/{index}/_cancel", + "methods": ["POST"], + "parts": { + "index": { + "type": "string", + "description": "The index or data stream name" + } + } + } + ] + } + } +} diff --git a/specification/_json_spec/migrate.get_reindex_status.json b/specification/_json_spec/migrate.get_reindex_status.json new file mode 100644 index 0000000000..d5361ff1bb --- /dev/null +++ b/specification/_json_spec/migrate.get_reindex_status.json @@ -0,0 +1,28 @@ +{ + "migrate.get_reindex_status": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "description": "This API returns the status of a migration reindex attempt for a data stream or index" + }, + "stability": "experimental", + "visibility": "private", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_migration/reindex/{index}/_status", + "methods": ["GET"], + "parts": { + "index": { + "type": "string", + "description": "The index or data stream name" + } + } + } + ] + } + } +} diff --git a/specification/_json_spec/migrate.reindex.json b/specification/_json_spec/migrate.reindex.json new file mode 100644 index 0000000000..ae2e6a8f8a --- /dev/null +++ b/specification/_json_spec/migrate.reindex.json @@ -0,0 +1,26 @@ +{ + "migrate.reindex": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "description": "This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task" + }, + "stability": "experimental", + "visibility": "private", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_migration/reindex", + "methods": ["POST"] + } + ] + }, + "body": { + "description": "The body contains the fields `mode` and `source.index, where the only mode currently supported is `upgrade`, and the `source.index` must be a data stream name", + "required": true + } + } +} diff --git a/specification/_json_spec/security.delegate_pki.json b/specification/_json_spec/security.delegate_pki.json new file mode 100644 index 0000000000..90d48dc826 --- /dev/null +++ b/specification/_json_spec/security.delegate_pki.json @@ -0,0 +1,26 @@ +{ + "security.delegate_pki": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-delegate-pki-authentication.html", + "description": "Delegate PKI authentication." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_security/delegate_pki", + "methods": ["POST"] + } + ] + }, + "params": {}, + "body": { + "description": "The X509Certificate chain.", + "required": true + } + } +} diff --git a/specification/_json_spec/slm.delete_lifecycle.json b/specification/_json_spec/slm.delete_lifecycle.json index a27bc3e650..3017931873 100644 --- a/specification/_json_spec/slm.delete_lifecycle.json +++ b/specification/_json_spec/slm.delete_lifecycle.json @@ -23,6 +23,15 @@ } ] }, - "params": {} + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + } } } diff --git a/specification/_json_spec/slm.execute_lifecycle.json b/specification/_json_spec/slm.execute_lifecycle.json index 181345955e..4625097a98 100644 --- a/specification/_json_spec/slm.execute_lifecycle.json +++ b/specification/_json_spec/slm.execute_lifecycle.json @@ -23,6 +23,15 @@ } ] }, - "params": {} + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + } } } diff --git a/specification/_json_spec/slm.execute_retention.json b/specification/_json_spec/slm.execute_retention.json index ad0c65fefc..eb5c31c0f0 100644 --- a/specification/_json_spec/slm.execute_retention.json +++ b/specification/_json_spec/slm.execute_retention.json @@ -17,6 +17,15 @@ } ] }, - "params": {} + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + } } } diff --git a/specification/_json_spec/slm.get_lifecycle.json b/specification/_json_spec/slm.get_lifecycle.json index b32057a5fc..6d71517825 100644 --- a/specification/_json_spec/slm.get_lifecycle.json +++ b/specification/_json_spec/slm.get_lifecycle.json @@ -27,6 +27,15 @@ } ] }, - "params": {} + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + } } } diff --git a/specification/_json_spec/slm.get_stats.json b/specification/_json_spec/slm.get_stats.json index 92c27a4abe..2d9899c8e8 100644 --- a/specification/_json_spec/slm.get_stats.json +++ b/specification/_json_spec/slm.get_stats.json @@ -17,6 +17,15 @@ } ] }, - "params": {} + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + } } } diff --git a/specification/_json_spec/slm.get_status.json b/specification/_json_spec/slm.get_status.json index 9617adc746..10b0c02a12 100644 --- a/specification/_json_spec/slm.get_status.json +++ b/specification/_json_spec/slm.get_status.json @@ -17,6 +17,15 @@ } ] }, - "params": {} + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + } } } diff --git a/specification/_json_spec/slm.put_lifecycle.json b/specification/_json_spec/slm.put_lifecycle.json index f9037c4055..5a605362e8 100644 --- a/specification/_json_spec/slm.put_lifecycle.json +++ b/specification/_json_spec/slm.put_lifecycle.json @@ -24,7 +24,16 @@ } ] }, - "params": {}, + "params": { + "master_timeout": { + "type": "time", + "description": "Explicit operation timeout for connection to master node" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" + } + }, "body": { "description": "The snapshot lifecycle policy definition to register" }