diff --git a/compiler/src/index.ts b/compiler/src/index.ts index b1977567c7..d9337825c4 100644 --- a/compiler/src/index.ts +++ b/compiler/src/index.ts @@ -25,7 +25,6 @@ import validateRestSpec from './steps/validate-rest-spec' import addInfo from './steps/add-info' import addDescription from './steps/add-description' import validateModel from './steps/validate-model' -import addContentType from './steps/add-content-type' import readDefinitionValidation from './steps/read-definition-validation' import addDeprecation from './steps/add-deprecation' import ExamplesProcessor from './steps/add-examples' @@ -73,7 +72,6 @@ compiler .generateModel() .step(addInfo) .step(addDeprecation) - .step(addContentType) .step(readDefinitionValidation) .step(validateRestSpec) .step(addDescription) diff --git a/compiler/src/model/build-model.ts b/compiler/src/model/build-model.ts index 1f4ff21981..a0229071d1 100644 --- a/compiler/src/model/build-model.ts +++ b/compiler/src/model/build-model.ts @@ -53,7 +53,8 @@ import { verifyUniqueness, parseJsDocTags, deepEqual, - sourceLocation, sortTypeDefinitions, parseDeprecation + sourceLocation, sortTypeDefinitions, parseDeprecation, + mediaTypeToStringArray } from './utils' const jsonSpec = buildJsonSpec() @@ -247,6 +248,14 @@ function compileClassOrInterfaceDeclaration (declaration: ClassDeclaration | Int assert(member, property.properties.length > 0, 'There is no need to declare an empty object path_parts, just remove the path_parts declaration.') pathMember = member type.path = property.properties + } else if (name === 'request_media_type' || name === 'response_media_type') { + // add those property to requestMediaType and responseMediaType of the endpoint + const mediaType = (member as PropertySignature).getStructure().type as string + if (name === 'request_media_type') { + mapping.requestMediaType = mediaTypeToStringArray(mediaType) + } else if (name === 'response_media_type') { + mapping.responseMediaType = mediaTypeToStringArray(mediaType) + } } else if (name === 'query_parameters') { const property = visitRequestOrResponseProperty(member) assert(member, property.properties.length > 0, 'There is no need to declare an empty object query_parameters, just remove the query_parameters declaration.') diff --git a/compiler/src/model/utils.ts b/compiler/src/model/utils.ts index 6e8ff5a809..edaaa8cf54 100644 --- a/compiler/src/model/utils.ts +++ b/compiler/src/model/utils.ts @@ -1506,3 +1506,36 @@ export function sortTypeDefinitions (types: model.TypeDefinition[]): void { return 0 }) } + +export function mediaTypeToStringArray (mediaType: string): string[] { + function mediaTypeToString (enumType: string): string { + switch (enumType) { + case 'MediaType.Json': + return 'application/json' + case 'MediaType.Text': + return 'text/plain' + case 'MediaType.Ndjson': + return 'application/x-ndjson' + case 'MediaType.EventStream': + return 'text/event-stream' + case 'MediaType.MapboxVectorTile': + return 'application/vnd.mapbox-vector-tile' + default: + throw new Error(`Unsupported media type: ${enumType}`) + } + } + + // Handle strings separated by a pipe and return multiple media types + let enumTypeList: string[] + if (mediaType.includes('|')) { + enumTypeList = mediaType.split('|').map(mt => mt.trim()) + } else { + enumTypeList = [mediaType.trim()] + } + + const mediaTypeList: string[] = [] + for (const enumType of enumTypeList) { + mediaTypeList.push(mediaTypeToString(enumType)) + } + return mediaTypeList +} diff --git a/compiler/src/steps/add-content-type.ts b/compiler/src/steps/add-content-type.ts deleted file mode 100644 index 23f509e80d..0000000000 --- a/compiler/src/steps/add-content-type.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import assert from 'assert' -import * as model from '../model/metamodel' -import { JsonSpec } from '../model/json-spec' - -/** - * Adds the `responseMediaType` (accept in the rest-api-spec) - * and `responseMediaType` (content_type in the rest api spec) - * fields to every endpoint from the rest-api-spec if present. - */ -export default async function addContentType (model: model.Model, jsonSpec: Map): Promise { - for (const endpoint of model.endpoints) { - const spec = jsonSpec.get(endpoint.name) - assert(spec, `Can't find the json spec for ${endpoint.name}`) - - if (Array.isArray(spec.headers.accept)) { - endpoint.responseMediaType = spec.headers.accept - } - - if (Array.isArray(spec.headers.content_type)) { - endpoint.requestMediaType = spec.headers.content_type - } - } - - return model -} diff --git a/output/schema/schema.json b/output/schema/schema.json index ed053fb339..b16bf8265d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -2384,8 +2384,8 @@ }, "requestBodyRequired": false, "requestMediaType": [ - "application/json", - "text/plain" + "text/plain", + "application/json" ], "response": { "name": "Response", @@ -14768,8 +14768,8 @@ }, "requestBodyRequired": true, "requestMediaType": [ - "application/x-ndjson", - "application/json" + "application/json", + "application/x-ndjson" ], "response": { "name": "Response", @@ -23189,8 +23189,8 @@ "namespace": "streams.logs_disable" }, "responseMediaType": [ - "application/json", - "text/plain" + "text/plain", + "application/json" ], "urls": [ { @@ -23229,8 +23229,8 @@ "namespace": "streams.logs_enable" }, "responseMediaType": [ - "application/json", - "text/plain" + "text/plain", + "application/json" ], "urls": [ { @@ -25922,7 +25922,7 @@ } } ], - "specLocation": "_global/bulk/BulkRequest.ts#L32-L253" + "specLocation": "_global/bulk/BulkRequest.ts#L33-L256" }, { "kind": "response", @@ -26554,7 +26554,7 @@ } } ], - "specLocation": "_global/capabilities/CapabilitiesRequest.ts#L23-L67" + "specLocation": "_global/capabilities/CapabilitiesRequest.ts#L24-L69" }, { "kind": "response", @@ -26651,7 +26651,7 @@ "name": "RestMethod", "namespace": "_global.capabilities" }, - "specLocation": "_global/capabilities/CapabilitiesRequest.ts#L69-L75" + "specLocation": "_global/capabilities/CapabilitiesRequest.ts#L71-L77" }, { "kind": "request", @@ -26738,7 +26738,7 @@ } ], "query": [], - "specLocation": "_global/clear_scroll/ClearScrollRequest.ts#L23-L62" + "specLocation": "_global/clear_scroll/ClearScrollRequest.ts#L23-L64" }, { "kind": "response", @@ -26879,7 +26879,7 @@ }, "path": [], "query": [], - "specLocation": "_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L49" + "specLocation": "_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L51" }, { "kind": "response", @@ -27238,7 +27238,7 @@ } } ], - "specLocation": "_global/count/CountRequest.ts#L31-L172" + "specLocation": "_global/count/CountRequest.ts#L32-L175" }, { "kind": "response", @@ -27501,7 +27501,7 @@ } } ], - "specLocation": "_global/create/CreateRequest.ts#L32-L199" + "specLocation": "_global/create/CreateRequest.ts#L33-L202" }, { "kind": "response", @@ -27709,7 +27709,7 @@ } } ], - "specLocation": "_global/delete/DeleteRequest.ts#L34-L146" + "specLocation": "_global/delete/DeleteRequest.ts#L35-L148" }, { "kind": "response", @@ -28356,7 +28356,7 @@ } } ], - "specLocation": "_global/delete_by_query/DeleteByQueryRequest.ts#L37-L320" + "specLocation": "_global/delete_by_query/DeleteByQueryRequest.ts#L38-L323" }, { "kind": "response", @@ -28673,7 +28673,7 @@ } } ], - "specLocation": "_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L55" + "specLocation": "_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L56" }, { "kind": "response", @@ -28786,7 +28786,7 @@ } } ], - "specLocation": "_global/delete_script/DeleteScriptRequest.ts#L24-L64" + "specLocation": "_global/delete_script/DeleteScriptRequest.ts#L24-L65" }, { "kind": "response", @@ -29011,7 +29011,7 @@ } } ], - "specLocation": "_global/exists/DocumentExistsRequest.ts#L31-L136" + "specLocation": "_global/exists/DocumentExistsRequest.ts#L32-L138" }, { "kind": "response", @@ -29216,7 +29216,7 @@ } } ], - "specLocation": "_global/exists_source/SourceExistsRequest.ts#L31-L113" + "specLocation": "_global/exists_source/SourceExistsRequest.ts#L32-L115" }, { "kind": "response", @@ -29562,7 +29562,7 @@ } } ], - "specLocation": "_global/explain/ExplainRequest.ts#L26-L126" + "specLocation": "_global/explain/ExplainRequest.ts#L26-L128" }, { "kind": "response", @@ -30141,7 +30141,7 @@ } } ], - "specLocation": "_global/field_caps/FieldCapabilitiesRequest.ts#L30-L159" + "specLocation": "_global/field_caps/FieldCapabilitiesRequest.ts#L31-L162" }, { "kind": "response", @@ -30600,7 +30600,7 @@ } } ], - "specLocation": "_global/get/GetRequest.ts#L31-L188" + "specLocation": "_global/get/GetRequest.ts#L32-L190" }, { "kind": "response", @@ -30770,7 +30770,7 @@ } } ], - "specLocation": "_global/get_script/GetScriptRequest.ts#L24-L57" + "specLocation": "_global/get_script/GetScriptRequest.ts#L24-L58" }, { "kind": "response", @@ -30983,7 +30983,7 @@ }, "path": [], "query": [], - "specLocation": "_global/get_script_context/GetScriptContextRequest.ts#L22-L39" + "specLocation": "_global/get_script_context/GetScriptContextRequest.ts#L23-L41" }, { "kind": "response", @@ -31099,7 +31099,7 @@ }, "path": [], "query": [], - "specLocation": "_global/get_script_languages/GetScriptLanguagesRequest.ts#L22-L39" + "specLocation": "_global/get_script_languages/GetScriptLanguagesRequest.ts#L23-L41" }, { "kind": "response", @@ -31333,7 +31333,7 @@ } } ], - "specLocation": "_global/get_source/SourceRequest.ts#L31-L112" + "specLocation": "_global/get_source/SourceRequest.ts#L32-L114" }, { "kind": "response", @@ -32485,7 +32485,7 @@ } } ], - "specLocation": "_global/health_report/Request.ts#L24-L82" + "specLocation": "_global/health_report/Request.ts#L25-L84" }, { "kind": "response", @@ -33223,7 +33223,7 @@ } } ], - "specLocation": "_global/index/IndexRequest.ts#L35-L275" + "specLocation": "_global/index/IndexRequest.ts#L36-L278" }, { "kind": "response", @@ -33308,7 +33308,7 @@ }, "path": [], "query": [], - "specLocation": "_global/info/RootNodeInfoRequest.ts#L22-L41" + "specLocation": "_global/info/RootNodeInfoRequest.ts#L23-L43" }, { "kind": "response", @@ -33545,7 +33545,7 @@ } } ], - "specLocation": "_global/knn_search/KnnSearchRequest.ts#L26-L99" + "specLocation": "_global/knn_search/KnnSearchRequest.ts#L26-L101" }, { "kind": "response", @@ -34161,7 +34161,7 @@ } } ], - "specLocation": "_global/mget/MultiGetRequest.ts#L25-L127" + "specLocation": "_global/mget/MultiGetRequest.ts#L25-L129" }, { "kind": "response", @@ -34762,7 +34762,7 @@ } } ], - "specLocation": "_global/msearch/MultiSearchRequest.ts#L31-L159" + "specLocation": "_global/msearch/MultiSearchRequest.ts#L32-L162" }, { "kind": "type_alias", @@ -35032,7 +35032,7 @@ } } ], - "specLocation": "_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L128" + "specLocation": "_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L130" }, { "kind": "type_alias", @@ -35665,7 +35665,7 @@ } } ], - "specLocation": "_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L134" + "specLocation": "_global/mtermvectors/MultiTermVectorsRequest.ts#L32-L137" }, { "kind": "response", @@ -35998,7 +35998,7 @@ } } ], - "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L31-L156" + "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L32-L159" }, { "kind": "response", @@ -36063,7 +36063,7 @@ }, "path": [], "query": [], - "specLocation": "_global/ping/PingRequest.ts#L22-L39" + "specLocation": "_global/ping/PingRequest.ts#L23-L41" }, { "kind": "response", @@ -36237,7 +36237,7 @@ } } ], - "specLocation": "_global/put_script/PutScriptRequest.ts#L25-L88" + "specLocation": "_global/put_script/PutScriptRequest.ts#L25-L90" }, { "kind": "response", @@ -36983,7 +36983,7 @@ } } ], - "specLocation": "_global/rank_eval/RankEvalRequest.ts#L24-L79" + "specLocation": "_global/rank_eval/RankEvalRequest.ts#L24-L81" }, { "kind": "response", @@ -37889,7 +37889,7 @@ } } ], - "specLocation": "_global/reindex/ReindexRequest.ts#L27-L184" + "specLocation": "_global/reindex/ReindexRequest.ts#L32-L191" }, { "kind": "response", @@ -38672,7 +38672,7 @@ } } ], - "specLocation": "_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L63" + "specLocation": "_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L64" }, { "kind": "response", @@ -38832,7 +38832,7 @@ } ], "query": [], - "specLocation": "_global/render_search_template/RenderSearchTemplateRequest.ts#L26-L77" + "specLocation": "_global/render_search_template/RenderSearchTemplateRequest.ts#L26-L79" }, { "kind": "response", @@ -39119,7 +39119,7 @@ }, "path": [], "query": [], - "specLocation": "_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L64" + "specLocation": "_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L25-L67" }, { "kind": "response", @@ -39313,7 +39313,7 @@ } } ], - "specLocation": "_global/scroll/ScrollRequest.ts#L24-L88" + "specLocation": "_global/scroll/ScrollRequest.ts#L24-L90" }, { "kind": "response", @@ -40682,7 +40682,7 @@ } } ], - "specLocation": "_global/search/SearchRequest.ts#L54-L620" + "specLocation": "_global/search/SearchRequest.ts#L55-L623" }, { "kind": "response", @@ -47605,7 +47605,7 @@ } } ], - "specLocation": "_global/search_mvt/SearchMvtRequest.ts#L33-L348" + "specLocation": "_global/search_mvt/SearchMvtRequest.ts#L39-L356" }, { "kind": "response", @@ -47858,7 +47858,7 @@ } } ], - "specLocation": "_global/search_shards/SearchShardsRequest.ts#L24-L99" + "specLocation": "_global/search_shards/SearchShardsRequest.ts#L24-L100" }, { "kind": "response", @@ -48438,7 +48438,7 @@ } } ], - "specLocation": "_global/search_template/SearchTemplateRequest.ts#L34-L169" + "specLocation": "_global/search_template/SearchTemplateRequest.ts#L35-L172" }, { "kind": "response", @@ -48821,7 +48821,7 @@ } ], "query": [], - "specLocation": "_global/terms_enum/TermsEnumRequest.ts#L26-L93" + "specLocation": "_global/terms_enum/TermsEnumRequest.ts#L26-L95" }, { "kind": "response", @@ -49543,7 +49543,7 @@ } } ], - "specLocation": "_global/termvectors/TermVectorsRequest.ts#L33-L241" + "specLocation": "_global/termvectors/TermVectorsRequest.ts#L34-L244" }, { "kind": "response", @@ -50486,7 +50486,7 @@ } } ], - "specLocation": "_global/update/UpdateRequest.ts#L38-L196" + "specLocation": "_global/update/UpdateRequest.ts#L39-L199" }, { "kind": "response", @@ -51194,7 +51194,7 @@ } } ], - "specLocation": "_global/update_by_query/UpdateByQueryRequest.ts#L37-L351" + "specLocation": "_global/update_by_query/UpdateByQueryRequest.ts#L38-L354" }, { "kind": "response", @@ -51506,7 +51506,7 @@ } } ], - "specLocation": "_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L55" + "specLocation": "_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L56" }, { "kind": "response", @@ -51616,7 +51616,7 @@ } } ], - "specLocation": "_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts#L23-L43" + "specLocation": "_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts#L24-L45" }, { "kind": "response", @@ -51677,7 +51677,7 @@ } } ], - "specLocation": "_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts#L23-L48" + "specLocation": "_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts#L24-L50" }, { "kind": "response", @@ -51725,7 +51725,7 @@ } } ], - "specLocation": "_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts#L23-L43" + "specLocation": "_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts#L24-L45" }, { "kind": "response", @@ -51777,7 +51777,7 @@ } } ], - "specLocation": "_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts#L23-L43" + "specLocation": "_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts#L24-L45" }, { "kind": "response", @@ -51890,7 +51890,7 @@ } } ], - "specLocation": "_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts#L23-L63" + "specLocation": "_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts#L24-L65" }, { "kind": "response", @@ -51996,7 +51996,7 @@ } } ], - "specLocation": "_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts#L25-L66" + "specLocation": "_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts#L26-L69" }, { "kind": "response", @@ -52743,7 +52743,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L382-L388" + "specLocation": "_types/common.ts#L393-L399" }, { "kind": "type_alias", @@ -52751,7 +52751,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L390-L390", + "specLocation": "_types/common.ts#L401-L401", "type": { "kind": "union_of", "items": [ @@ -52972,7 +52972,7 @@ "name": "CommonStatsFlag", "namespace": "_types" }, - "specLocation": "_types/common.ts#L392-L415" + "specLocation": "_types/common.ts#L403-L426" }, { "kind": "type_alias", @@ -52980,7 +52980,7 @@ "name": "CommonStatsFlags", "namespace": "_types" }, - "specLocation": "_types/common.ts#L417-L417", + "specLocation": "_types/common.ts#L428-L428", "type": { "kind": "union_of", "items": [ @@ -55733,7 +55733,7 @@ } } ], - "specLocation": "_types/common.ts#L336-L363" + "specLocation": "_types/common.ts#L347-L374" }, { "kind": "interface", @@ -55876,7 +55876,7 @@ } } ], - "specLocation": "_types/common.ts#L321-L334" + "specLocation": "_types/common.ts#L332-L345" }, { "kind": "interface", @@ -56435,7 +56435,7 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L244-L248" + "specLocation": "_types/common.ts#L255-L259" }, { "kind": "enum", @@ -57392,7 +57392,7 @@ "name": "NodeStatsLevel", "namespace": "_types" }, - "specLocation": "_types/common.ts#L250-L254" + "specLocation": "_types/common.ts#L261-L265" }, { "kind": "enum", @@ -57435,7 +57435,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L256-L265" + "specLocation": "_types/common.ts#L267-L276" }, { "kind": "type_alias", @@ -58114,7 +58114,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L267-L274" + "specLocation": "_types/common.ts#L278-L285" }, { "kind": "interface", @@ -59574,7 +59574,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L276-L281" + "specLocation": "_types/common.ts#L287-L292" }, { "kind": "interface", @@ -60134,7 +60134,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L365-L370", + "specLocation": "_types/common.ts#L376-L381", "type": { "kind": "union_of", "items": [ @@ -60167,7 +60167,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L372-L380" + "specLocation": "_types/common.ts#L383-L391" }, { "kind": "type_alias", @@ -60662,7 +60662,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L283-L296" + "specLocation": "_types/common.ts#L294-L307" }, { "kind": "type_alias", @@ -60908,7 +60908,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L298-L304" + "specLocation": "_types/common.ts#L309-L315" }, { "kind": "type_alias", @@ -61403,7 +61403,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L306-L310" + "specLocation": "_types/common.ts#L317-L321" }, { "kind": "type_alias", @@ -61462,7 +61462,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L312-L319" + "specLocation": "_types/common.ts#L323-L330" }, { "kind": "interface", @@ -101084,7 +101084,7 @@ } ], "query": [], - "specLocation": "async_search/delete/AsyncSearchDeleteRequest.ts#L23-L46" + "specLocation": "async_search/delete/AsyncSearchDeleteRequest.ts#L23-L47" }, { "kind": "response", @@ -101207,7 +101207,7 @@ } } ], - "specLocation": "async_search/get/AsyncSearchGetRequest.ts#L24-L63" + "specLocation": "async_search/get/AsyncSearchGetRequest.ts#L24-L64" }, { "kind": "response", @@ -101357,7 +101357,7 @@ } } ], - "specLocation": "async_search/status/AsyncSearchStatusRequest.ts#L24-L58" + "specLocation": "async_search/status/AsyncSearchStatusRequest.ts#L24-L59" }, { "kind": "response", @@ -102574,7 +102574,7 @@ } } ], - "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L55-L337" + "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L56-L340" }, { "kind": "response", @@ -102782,7 +102782,7 @@ } } ], - "specLocation": "autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L54" + "specLocation": "autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L55" }, { "kind": "response", @@ -103068,7 +103068,7 @@ } } ], - "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L23-L57" + "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L24-L59" }, { "kind": "response", @@ -103191,7 +103191,7 @@ } } ], - "specLocation": "autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L24-L50" + "specLocation": "autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L24-L51" }, { "kind": "response", @@ -103353,7 +103353,7 @@ } } ], - "specLocation": "autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L57" + "specLocation": "autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L59" }, { "kind": "response", @@ -109013,7 +109013,7 @@ } } ], - "specLocation": "cat/aliases/CatAliasesRequest.ts#L24-L78" + "specLocation": "cat/aliases/CatAliasesRequest.ts#L24-L79" }, { "kind": "response", @@ -109509,7 +109509,7 @@ } } ], - "specLocation": "cat/allocation/CatAllocationRequest.ts#L24-L76" + "specLocation": "cat/allocation/CatAllocationRequest.ts#L24-L77" }, { "kind": "response", @@ -109790,7 +109790,7 @@ } } ], - "specLocation": "cat/circuit_breaker/CatCircuitBreakerRequest.ts#L24-L75" + "specLocation": "cat/circuit_breaker/CatCircuitBreakerRequest.ts#L24-L76" }, { "kind": "response", @@ -110036,7 +110036,7 @@ } } ], - "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L24-L82" + "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L24-L83" }, { "kind": "response", @@ -110254,7 +110254,7 @@ } } ], - "specLocation": "cat/count/CatCountRequest.ts#L23-L80" + "specLocation": "cat/count/CatCountRequest.ts#L23-L81" }, { "kind": "response", @@ -110484,7 +110484,7 @@ } } ], - "specLocation": "cat/fielddata/CatFielddataRequest.ts#L23-L68" + "specLocation": "cat/fielddata/CatFielddataRequest.ts#L23-L69" }, { "kind": "response", @@ -110884,7 +110884,7 @@ } } ], - "specLocation": "cat/health/CatHealthRequest.ts#L23-L65" + "specLocation": "cat/health/CatHealthRequest.ts#L23-L66" }, { "kind": "response", @@ -110926,7 +110926,7 @@ }, "path": [], "query": [], - "specLocation": "cat/help/CatHelpRequest.ts#L20-L36" + "specLocation": "cat/help/CatHelpRequest.ts#L22-L39" }, { "kind": "response", @@ -113177,7 +113177,7 @@ } } ], - "specLocation": "cat/indices/CatIndicesRequest.ts#L24-L100" + "specLocation": "cat/indices/CatIndicesRequest.ts#L30-L107" }, { "kind": "response", @@ -113375,7 +113375,7 @@ } } ], - "specLocation": "cat/master/CatMasterRequest.ts#L24-L68" + "specLocation": "cat/master/CatMasterRequest.ts#L24-L69" }, { "kind": "response", @@ -113767,7 +113767,7 @@ } } ], - "specLocation": "cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L23-L70" + "specLocation": "cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L23-L71" }, { "kind": "response", @@ -114098,7 +114098,7 @@ } } ], - "specLocation": "cat/ml_datafeeds/CatDatafeedsRequest.ts#L23-L80" + "specLocation": "cat/ml_datafeeds/CatDatafeedsRequest.ts#L23-L81" }, { "kind": "response", @@ -115195,7 +115195,7 @@ } } ], - "specLocation": "cat/ml_jobs/CatJobsRequest.ts#L23-L80" + "specLocation": "cat/ml_jobs/CatJobsRequest.ts#L23-L81" }, { "kind": "response", @@ -115355,7 +115355,7 @@ } } ], - "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L79" + "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L80" }, { "kind": "response", @@ -115892,7 +115892,7 @@ } } ], - "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L24-L67" + "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L24-L68" }, { "kind": "response", @@ -117576,7 +117576,7 @@ } } ], - "specLocation": "cat/nodes/CatNodesRequest.ts#L24-L71" + "specLocation": "cat/nodes/CatNodesRequest.ts#L24-L72" }, { "kind": "response", @@ -117786,7 +117786,7 @@ } } ], - "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L24-L67" + "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L24-L68" }, { "kind": "response", @@ -118030,7 +118030,7 @@ } } ], - "specLocation": "cat/plugins/CatPluginsRequest.ts#L24-L72" + "specLocation": "cat/plugins/CatPluginsRequest.ts#L24-L73" }, { "kind": "response", @@ -118611,7 +118611,7 @@ } } ], - "specLocation": "cat/recovery/CatRecoveryRequest.ts#L23-L83" + "specLocation": "cat/recovery/CatRecoveryRequest.ts#L23-L84" }, { "kind": "response", @@ -118796,7 +118796,7 @@ } } ], - "specLocation": "cat/repositories/CatRepositoriesRequest.ts#L24-L67" + "specLocation": "cat/repositories/CatRepositoriesRequest.ts#L24-L68" }, { "kind": "response", @@ -119009,7 +119009,7 @@ } } ], - "specLocation": "cat/segments/CatSegmentsRequest.ts#L24-L113" + "specLocation": "cat/segments/CatSegmentsRequest.ts#L24-L114" }, { "kind": "response", @@ -119383,7 +119383,7 @@ } } ], - "specLocation": "cat/shards/CatShardsRequest.ts#L24-L73" + "specLocation": "cat/shards/CatShardsRequest.ts#L24-L74" }, { "kind": "response", @@ -120833,7 +120833,7 @@ } } ], - "specLocation": "cat/snapshots/CatSnapshotsRequest.ts#L24-L80" + "specLocation": "cat/snapshots/CatSnapshotsRequest.ts#L24-L81" }, { "kind": "response", @@ -121268,7 +121268,7 @@ } } ], - "specLocation": "cat/tasks/CatTasksRequest.ts#L24-L78" + "specLocation": "cat/tasks/CatTasksRequest.ts#L24-L79" }, { "kind": "response", @@ -121661,7 +121661,7 @@ } } ], - "specLocation": "cat/templates/CatTemplatesRequest.ts#L24-L79" + "specLocation": "cat/templates/CatTemplatesRequest.ts#L24-L80" }, { "kind": "response", @@ -121906,7 +121906,7 @@ } } ], - "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L79" + "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L80" }, { "kind": "response", @@ -122431,7 +122431,7 @@ } } ], - "specLocation": "cat/transforms/CatTransformsRequest.ts#L24-L85" + "specLocation": "cat/transforms/CatTransformsRequest.ts#L24-L86" }, { "kind": "response", @@ -123608,7 +123608,7 @@ } } ], - "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L54" + "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L55" }, { "kind": "response", @@ -123899,7 +123899,7 @@ } } ], - "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L26-L126" + "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L31-L133" }, { "kind": "response", @@ -124248,7 +124248,7 @@ } } ], - "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L24-L55" + "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L24-L56" }, { "kind": "response", @@ -124368,7 +124368,7 @@ } } ], - "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L54" + "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L55" }, { "kind": "response", @@ -124531,7 +124531,7 @@ } } ], - "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L66" + "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L68" }, { "kind": "response", @@ -124761,7 +124761,7 @@ } } ], - "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L61" + "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L62" }, { "kind": "response", @@ -124875,7 +124875,7 @@ } } ], - "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L60" + "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L61" }, { "kind": "response", @@ -124981,7 +124981,7 @@ } } ], - "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L56" + "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L57" }, { "kind": "response", @@ -125290,7 +125290,7 @@ } } ], - "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L134" + "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L33-L142" }, { "kind": "response", @@ -125396,7 +125396,7 @@ } } ], - "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L56" + "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L57" }, { "kind": "response", @@ -125616,7 +125616,7 @@ } } ], - "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L66" + "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L68" }, { "kind": "response", @@ -125873,7 +125873,7 @@ } } ], - "specLocation": "ccr/stats/CcrStatsRequest.ts#L23-L53" + "specLocation": "ccr/stats/CcrStatsRequest.ts#L24-L55" }, { "kind": "response", @@ -125997,7 +125997,7 @@ } } ], - "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L24-L59" + "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L24-L60" }, { "kind": "response", @@ -127198,7 +127198,7 @@ } } ], - "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L99" + "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L101" }, { "kind": "interface", @@ -127833,7 +127833,7 @@ } } ], - "specLocation": "cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L62" + "specLocation": "cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L63" }, { "kind": "response", @@ -127902,7 +127902,7 @@ } } ], - "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L23-L56" + "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L24-L58" }, { "kind": "response", @@ -127980,7 +127980,7 @@ } } ], - "specLocation": "cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L64" + "specLocation": "cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L65" }, { "kind": "response", @@ -128151,7 +128151,7 @@ } } ], - "specLocation": "cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L83" + "specLocation": "cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L84" }, { "kind": "response", @@ -128291,7 +128291,7 @@ } } ], - "specLocation": "cluster/get_settings/ClusterGetSettingsRequest.ts#L23-L70" + "specLocation": "cluster/get_settings/ClusterGetSettingsRequest.ts#L24-L72" }, { "kind": "response", @@ -128956,7 +128956,7 @@ } } ], - "specLocation": "cluster/health/ClusterHealthRequest.ts#L32-L121" + "specLocation": "cluster/health/ClusterHealthRequest.ts#L33-L123" }, { "kind": "response", @@ -129179,7 +129179,7 @@ } ], "query": [], - "specLocation": "cluster/info/ClusterInfoRequest.ts#L23-L43" + "specLocation": "cluster/info/ClusterInfoRequest.ts#L23-L44" }, { "kind": "response", @@ -129430,7 +129430,7 @@ } } ], - "specLocation": "cluster/pending_tasks/ClusterPendingTasksRequest.ts#L23-L57" + "specLocation": "cluster/pending_tasks/ClusterPendingTasksRequest.ts#L24-L59" }, { "kind": "response", @@ -129531,7 +129531,7 @@ } } ], - "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L81" + "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L82" }, { "kind": "response", @@ -129729,7 +129729,7 @@ } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L111" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L113" }, { "kind": "response", @@ -129916,7 +129916,7 @@ } } ], - "specLocation": "cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L71" + "specLocation": "cluster/put_settings/ClusterPutSettingsRequest.ts#L26-L74" }, { "kind": "response", @@ -130271,7 +130271,7 @@ }, "path": [], "query": [], - "specLocation": "cluster/remote_info/ClusterRemoteInfoRequest.ts#L22-L46" + "specLocation": "cluster/remote_info/ClusterRemoteInfoRequest.ts#L23-L48" }, { "kind": "response", @@ -130747,7 +130747,7 @@ } } ], - "specLocation": "cluster/reroute/ClusterRerouteRequest.ts#L24-L91" + "specLocation": "cluster/reroute/ClusterRerouteRequest.ts#L25-L94" }, { "kind": "interface", @@ -130995,7 +130995,7 @@ "name": "ClusterStateMetric", "namespace": "cluster.state" }, - "specLocation": "cluster/state/ClusterStateRequest.ts#L94-L104" + "specLocation": "cluster/state/ClusterStateRequest.ts#L100-L110" }, { "kind": "type_alias", @@ -131003,7 +131003,7 @@ "name": "ClusterStateMetrics", "namespace": "cluster.state" }, - "specLocation": "cluster/state/ClusterStateRequest.ts#L106-L106", + "specLocation": "cluster/state/ClusterStateRequest.ts#L112-L112", "type": { "kind": "union_of", "items": [ @@ -131211,7 +131211,7 @@ } } ], - "specLocation": "cluster/state/ClusterStateRequest.ts#L24-L92" + "specLocation": "cluster/state/ClusterStateRequest.ts#L29-L98" }, { "kind": "response", @@ -134747,7 +134747,7 @@ } } ], - "specLocation": "cluster/stats/ClusterStatsRequest.ts#L24-L62" + "specLocation": "cluster/stats/ClusterStatsRequest.ts#L24-L63" }, { "kind": "response", @@ -137519,7 +137519,7 @@ } ], "query": [], - "specLocation": "connector/check_in/ConnectorCheckInRequest.ts#L22-L44" + "specLocation": "connector/check_in/ConnectorCheckInRequest.ts#L22-L45" }, { "kind": "response", @@ -137642,7 +137642,7 @@ } } ], - "specLocation": "connector/delete/ConnectorDeleteRequest.ts#L22-L59" + "specLocation": "connector/delete/ConnectorDeleteRequest.ts#L22-L60" }, { "kind": "response", @@ -137747,7 +137747,7 @@ } } ], - "specLocation": "connector/get/ConnectorGetRequest.ts#L22-L51" + "specLocation": "connector/get/ConnectorGetRequest.ts#L22-L52" }, { "kind": "response", @@ -137960,7 +137960,7 @@ } ], "query": [], - "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L66" + "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L68" }, { "kind": "response", @@ -138126,7 +138126,7 @@ } } ], - "specLocation": "connector/list/ConnectorListRequest.ts#L23-L72" + "specLocation": "connector/list/ConnectorListRequest.ts#L23-L73" }, { "kind": "response", @@ -138255,7 +138255,7 @@ }, "path": [], "query": [], - "specLocation": "connector/post/ConnectorPostRequest.ts#L22-L52" + "specLocation": "connector/post/ConnectorPostRequest.ts#L22-L55" }, { "kind": "response", @@ -138456,7 +138456,7 @@ } ], "query": [], - "specLocation": "connector/put/ConnectorPutRequest.ts#L22-L59" + "specLocation": "connector/put/ConnectorPutRequest.ts#L22-L61" }, { "kind": "response", @@ -138532,7 +138532,7 @@ } ], "query": [], - "specLocation": "connector/secret_delete/ConnectorSecretDeleteRequest.ts#L22-L39" + "specLocation": "connector/secret_delete/ConnectorSecretDeleteRequest.ts#L23-L41" }, { "kind": "response", @@ -138592,7 +138592,7 @@ } ], "query": [], - "specLocation": "connector/secret_get/ConnectorSecretGetRequest.ts#L22-L39" + "specLocation": "connector/secret_get/ConnectorSecretGetRequest.ts#L23-L41" }, { "kind": "response", @@ -138663,7 +138663,7 @@ }, "path": [], "query": [], - "specLocation": "connector/secret_post/ConnectorSecretPostRequest.ts#L22-L38" + "specLocation": "connector/secret_post/ConnectorSecretPostRequest.ts#L23-L40" }, { "kind": "response", @@ -138736,7 +138736,7 @@ } ], "query": [], - "specLocation": "connector/secret_put/ConnectorSecretPutRequest.ts#L22-L42" + "specLocation": "connector/secret_put/ConnectorSecretPutRequest.ts#L23-L44" }, { "kind": "response", @@ -138827,7 +138827,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_cancel/SyncJobCancelRequest.ts#L22-L45" + "specLocation": "connector/sync_job_cancel/SyncJobCancelRequest.ts#L22-L46" }, { "kind": "response", @@ -138918,7 +138918,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_check_in/SyncJobCheckInRequest.ts#L22-L46" + "specLocation": "connector/sync_job_check_in/SyncJobCheckInRequest.ts#L22-L47" }, { "kind": "response", @@ -139021,7 +139021,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L62" + "specLocation": "connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L64" }, { "kind": "response", @@ -139100,7 +139100,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_delete/SyncJobDeleteRequest.ts#L22-L45" + "specLocation": "connector/sync_job_delete/SyncJobDeleteRequest.ts#L22-L46" }, { "kind": "response", @@ -139206,7 +139206,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_error/SyncJobErrorRequest.ts#L23-L53" + "specLocation": "connector/sync_job_error/SyncJobErrorRequest.ts#L23-L55" }, { "kind": "response", @@ -139285,7 +139285,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_get/SyncJobGetRequest.ts#L22-L43" + "specLocation": "connector/sync_job_get/SyncJobGetRequest.ts#L22-L44" }, { "kind": "response", @@ -139436,7 +139436,7 @@ } } ], - "specLocation": "connector/sync_job_list/SyncJobListRequest.ts#L25-L65" + "specLocation": "connector/sync_job_list/SyncJobListRequest.ts#L25-L66" }, { "kind": "response", @@ -139565,7 +139565,7 @@ }, "path": [], "query": [], - "specLocation": "connector/sync_job_post/SyncJobPostRequest.ts#L23-L51" + "specLocation": "connector/sync_job_post/SyncJobPostRequest.ts#L23-L53" }, { "kind": "response", @@ -139732,7 +139732,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L79" + "specLocation": "connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L81" }, { "kind": "response", @@ -139780,7 +139780,7 @@ } ], "query": [], - "specLocation": "connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts#L22-L44" + "specLocation": "connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts#L22-L46" }, { "kind": "response", @@ -139896,7 +139896,7 @@ } ], "query": [], - "specLocation": "connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L53" + "specLocation": "connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L55" }, { "kind": "response", @@ -140054,7 +140054,7 @@ } ], "query": [], - "specLocation": "connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L55" + "specLocation": "connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L57" }, { "kind": "response", @@ -140173,7 +140173,7 @@ } ], "query": [], - "specLocation": "connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L54" + "specLocation": "connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L56" }, { "kind": "response", @@ -140313,7 +140313,7 @@ } ], "query": [], - "specLocation": "connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L62" + "specLocation": "connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L64" }, { "kind": "response", @@ -140481,7 +140481,7 @@ } ], "query": [], - "specLocation": "connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L60" + "specLocation": "connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L62" }, { "kind": "response", @@ -140559,7 +140559,7 @@ } ], "query": [], - "specLocation": "connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L48" + "specLocation": "connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L50" }, { "kind": "response", @@ -140673,7 +140673,7 @@ } ], "query": [], - "specLocation": "connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L51" + "specLocation": "connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L53" }, { "kind": "response", @@ -140794,7 +140794,7 @@ } ], "query": [], - "specLocation": "connector/update_name/ConnectorUpdateNameRequest.ts#L22-L50" + "specLocation": "connector/update_name/ConnectorUpdateNameRequest.ts#L22-L52" }, { "kind": "response", @@ -140872,7 +140872,7 @@ } ], "query": [], - "specLocation": "connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L49" + "specLocation": "connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L51" }, { "kind": "response", @@ -140977,7 +140977,7 @@ } ], "query": [], - "specLocation": "connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L52" + "specLocation": "connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L54" }, { "kind": "response", @@ -141117,7 +141117,7 @@ } ], "query": [], - "specLocation": "connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L51" + "specLocation": "connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L53" }, { "kind": "response", @@ -141227,7 +141227,7 @@ } ], "query": [], - "specLocation": "connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L49" + "specLocation": "connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L51" }, { "kind": "response", @@ -141337,7 +141337,7 @@ } ], "query": [], - "specLocation": "connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L50" + "specLocation": "connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L52" }, { "kind": "response", @@ -141472,7 +141472,7 @@ } } ], - "specLocation": "dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L60" + "specLocation": "dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L61" }, { "kind": "response", @@ -141597,7 +141597,7 @@ } } ], - "specLocation": "dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L61" + "specLocation": "dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L62" }, { "kind": "response", @@ -141739,7 +141739,7 @@ }, "path": [], "query": [], - "specLocation": "dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L22-L42" + "specLocation": "dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L23-L44" }, { "kind": "response", @@ -141979,7 +141979,7 @@ } } ], - "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L53" + "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L54" }, { "kind": "response", @@ -142149,7 +142149,7 @@ } } ], - "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L58" + "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L59" }, { "kind": "response", @@ -142265,7 +142265,7 @@ } } ], - "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L58" + "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L59" }, { "kind": "response", @@ -142413,7 +142413,7 @@ } } ], - "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L68" + "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L70" }, { "kind": "response", @@ -142713,7 +142713,7 @@ } } ], - "specLocation": "enrich/stats/EnrichStatsRequest.ts#L23-L46" + "specLocation": "enrich/stats/EnrichStatsRequest.ts#L24-L48" }, { "kind": "response", @@ -143183,7 +143183,7 @@ } ], "query": [], - "specLocation": "eql/delete/EqlDeleteRequest.ts#L23-L48" + "specLocation": "eql/delete/EqlDeleteRequest.ts#L23-L49" }, { "kind": "response", @@ -143295,7 +143295,7 @@ } } ], - "specLocation": "eql/get/EqlGetRequest.ts#L24-L59" + "specLocation": "eql/get/EqlGetRequest.ts#L24-L60" }, { "kind": "response", @@ -143396,7 +143396,7 @@ } ], "query": [], - "specLocation": "eql/get_status/EqlGetStatusRequest.ts#L23-L43" + "specLocation": "eql/get_status/EqlGetStatusRequest.ts#L23-L44" }, { "kind": "response", @@ -143992,7 +143992,7 @@ } } ], - "specLocation": "eql/search/EqlSearchRequest.ts#L28-L180" + "specLocation": "eql/search/EqlSearchRequest.ts#L34-L188" }, { "kind": "response", @@ -145082,7 +145082,7 @@ } } ], - "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L154" + "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L156" }, { "kind": "response", @@ -145164,7 +145164,7 @@ } ], "query": [], - "specLocation": "esql/async_query_delete/AsyncQueryDeleteRequest.ts#L23-L53" + "specLocation": "esql/async_query_delete/AsyncQueryDeleteRequest.ts#L23-L54" }, { "kind": "response", @@ -145296,7 +145296,7 @@ } } ], - "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L25-L74" + "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L25-L75" }, { "kind": "response", @@ -145392,7 +145392,7 @@ } } ], - "specLocation": "esql/async_query_stop/AsyncQueryStopRequest.ts#L23-L56" + "specLocation": "esql/async_query_stop/AsyncQueryStopRequest.ts#L23-L57" }, { "kind": "response", @@ -145447,7 +145447,7 @@ } ], "query": [], - "specLocation": "esql/get_query/GetQueryRequest.ts#L23-L44" + "specLocation": "esql/get_query/GetQueryRequest.ts#L23-L46" }, { "kind": "response", @@ -145628,7 +145628,7 @@ }, "path": [], "query": [], - "specLocation": "esql/list_queries/ListQueriesRequest.ts#L22-L40" + "specLocation": "esql/list_queries/ListQueriesRequest.ts#L23-L43" }, { "kind": "response", @@ -145909,7 +145909,7 @@ } } ], - "specLocation": "esql/query/QueryRequest.ts#L27-L125" + "specLocation": "esql/query/QueryRequest.ts#L28-L128" }, { "kind": "response", @@ -146028,7 +146028,7 @@ } } ], - "specLocation": "features/get_features/GetFeaturesRequest.ts#L23-L54" + "specLocation": "features/get_features/GetFeaturesRequest.ts#L24-L56" }, { "kind": "response", @@ -146129,7 +146129,7 @@ } } ], - "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L23-L61" + "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L24-L63" }, { "kind": "response", @@ -146213,7 +146213,7 @@ } ], "query": [], - "specLocation": "fleet/delete_secret/FleetDeleteSecretRequest.ts#L22-L39" + "specLocation": "fleet/delete_secret/FleetDeleteSecretRequest.ts#L23-L41" }, { "kind": "response", @@ -146273,7 +146273,7 @@ } ], "query": [], - "specLocation": "fleet/get_secret/FleetGetSecretRequest.ts#L22-L39" + "specLocation": "fleet/get_secret/FleetGetSecretRequest.ts#L23-L41" }, { "kind": "response", @@ -146412,7 +146412,7 @@ } } ], - "specLocation": "fleet/global_checkpoints/GlobalCheckpointsRequest.ts#L25-L75" + "specLocation": "fleet/global_checkpoints/GlobalCheckpointsRequest.ts#L25-L77" }, { "kind": "response", @@ -146677,7 +146677,7 @@ } } ], - "specLocation": "fleet/msearch/MultiSearchRequest.ts#L31-L128" + "specLocation": "fleet/msearch/MultiSearchRequest.ts#L32-L131" }, { "kind": "response", @@ -146755,7 +146755,7 @@ }, "path": [], "query": [], - "specLocation": "fleet/post_secret/FleetPostSecretRequest.ts#L22-L38" + "specLocation": "fleet/post_secret/FleetPostSecretRequest.ts#L23-L40" }, { "kind": "response", @@ -147769,7 +147769,7 @@ } } ], - "specLocation": "fleet/search/SearchRequest.ts#L54-L268" + "specLocation": "fleet/search/SearchRequest.ts#L55-L271" }, { "kind": "response", @@ -148513,7 +148513,7 @@ } } ], - "specLocation": "graph/explore/GraphExploreRequest.ts#L28-L85" + "specLocation": "graph/explore/GraphExploreRequest.ts#L28-L87" }, { "kind": "response", @@ -149431,7 +149431,7 @@ } } ], - "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L59" + "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L60" }, { "kind": "response", @@ -150084,7 +150084,7 @@ } } ], - "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L65" + "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L66" }, { "kind": "response", @@ -150263,7 +150263,7 @@ } } ], - "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L62" + "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L63" }, { "kind": "response", @@ -150353,7 +150353,7 @@ }, "path": [], "query": [], - "specLocation": "ilm/get_status/GetIlmStatusRequest.ts#L22-L38" + "specLocation": "ilm/get_status/GetIlmStatusRequest.ts#L23-L40" }, { "kind": "response", @@ -150490,7 +150490,7 @@ } } ], - "specLocation": "ilm/migrate_to_data_tiers/Request.ts#L23-L70" + "specLocation": "ilm/migrate_to_data_tiers/Request.ts#L24-L73" }, { "kind": "response", @@ -150732,7 +150732,7 @@ } ], "query": [], - "specLocation": "ilm/move_to_step/MoveToStepRequest.ts#L24-L65" + "specLocation": "ilm/move_to_step/MoveToStepRequest.ts#L24-L67" }, { "kind": "response", @@ -150912,7 +150912,7 @@ } } ], - "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L67" + "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L69" }, { "kind": "response", @@ -151004,7 +151004,7 @@ } ], "query": [], - "specLocation": "ilm/remove_policy/RemovePolicyRequest.ts#L23-L43" + "specLocation": "ilm/remove_policy/RemovePolicyRequest.ts#L23-L44" }, { "kind": "response", @@ -151115,7 +151115,7 @@ } ], "query": [], - "specLocation": "ilm/retry/RetryIlmRequest.ts#L23-L44" + "specLocation": "ilm/retry/RetryIlmRequest.ts#L23-L45" }, { "kind": "response", @@ -151215,7 +151215,7 @@ } } ], - "specLocation": "ilm/start/StartIlmRequest.ts#L23-L53" + "specLocation": "ilm/start/StartIlmRequest.ts#L24-L55" }, { "kind": "response", @@ -151321,7 +151321,7 @@ } } ], - "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L55" + "specLocation": "ilm/stop/StopIlmRequest.ts#L24-L57" }, { "kind": "response", @@ -156682,7 +156682,7 @@ } } ], - "specLocation": "indices/add_block/IndicesAddBlockRequest.ts#L25-L90" + "specLocation": "indices/add_block/IndicesAddBlockRequest.ts#L25-L91" }, { "kind": "response", @@ -157499,7 +157499,7 @@ } } ], - "specLocation": "indices/analyze/IndicesAnalyzeRequest.ts#L27-L120" + "specLocation": "indices/analyze/IndicesAnalyzeRequest.ts#L27-L122" }, { "kind": "response", @@ -157675,7 +157675,7 @@ } ], "query": [], - "specLocation": "indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts#L23-L44" + "specLocation": "indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts#L23-L46" }, { "kind": "response", @@ -157861,7 +157861,7 @@ } } ], - "specLocation": "indices/clear_cache/IndicesClearCacheRequest.ts#L23-L100" + "specLocation": "indices/clear_cache/IndicesClearCacheRequest.ts#L23-L101" }, { "kind": "response", @@ -158050,7 +158050,7 @@ } } ], - "specLocation": "indices/clone/IndicesCloneRequest.ts#L27-L128" + "specLocation": "indices/clone/IndicesCloneRequest.ts#L27-L130" }, { "kind": "response", @@ -158309,7 +158309,7 @@ } } ], - "specLocation": "indices/close/CloseIndexRequest.ts#L24-L101" + "specLocation": "indices/close/CloseIndexRequest.ts#L29-L107" }, { "kind": "response", @@ -158597,7 +158597,7 @@ } } ], - "specLocation": "indices/create/IndicesCreateRequest.ts#L28-L116" + "specLocation": "indices/create/IndicesCreateRequest.ts#L28-L118" }, { "kind": "response", @@ -158737,7 +158737,7 @@ } } ], - "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L65" + "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L66" }, { "kind": "response", @@ -158803,7 +158803,7 @@ } } ], - "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L52-L66" + "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L54-L68" }, { "kind": "request", @@ -158890,7 +158890,7 @@ } ], "query": [], - "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L25-L50" + "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L25-L52" }, { "kind": "response", @@ -159096,7 +159096,7 @@ } } ], - "specLocation": "indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L61" + "specLocation": "indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L62" }, { "kind": "response", @@ -159323,7 +159323,7 @@ } } ], - "specLocation": "indices/delete/IndicesDeleteRequest.ts#L24-L87" + "specLocation": "indices/delete/IndicesDeleteRequest.ts#L24-L88" }, { "kind": "response", @@ -159475,7 +159475,7 @@ } } ], - "specLocation": "indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L71" + "specLocation": "indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L72" }, { "kind": "response", @@ -159600,7 +159600,7 @@ } } ], - "specLocation": "indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L55" + "specLocation": "indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L56" }, { "kind": "response", @@ -159719,7 +159719,7 @@ } } ], - "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L60" + "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L61" }, { "kind": "response", @@ -159813,7 +159813,7 @@ } } ], - "specLocation": "indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts#L24-L55" + "specLocation": "indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts#L24-L56" }, { "kind": "response", @@ -159932,7 +159932,7 @@ } } ], - "specLocation": "indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L61" + "specLocation": "indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L62" }, { "kind": "response", @@ -160019,7 +160019,7 @@ } } ], - "specLocation": "indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts#L24-L61" + "specLocation": "indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts#L24-L63" }, { "kind": "response", @@ -160142,7 +160142,7 @@ } } ], - "specLocation": "indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L62" + "specLocation": "indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L63" }, { "kind": "response", @@ -160294,7 +160294,7 @@ } } ], - "specLocation": "indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L88" + "specLocation": "indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L89" }, { "kind": "response", @@ -160403,7 +160403,7 @@ } ], "query": [], - "specLocation": "indices/downsample/Request.ts#L24-L64" + "specLocation": "indices/downsample/Request.ts#L24-L66" }, { "kind": "response", @@ -160564,7 +160564,7 @@ } } ], - "specLocation": "indices/exists/IndicesExistsRequest.ts#L23-L80" + "specLocation": "indices/exists/IndicesExistsRequest.ts#L23-L81" }, { "kind": "response", @@ -160707,7 +160707,7 @@ } } ], - "specLocation": "indices/exists_alias/IndicesExistsAliasRequest.ts#L24-L81" + "specLocation": "indices/exists_alias/IndicesExistsAliasRequest.ts#L24-L82" }, { "kind": "response", @@ -160794,7 +160794,7 @@ } } ], - "specLocation": "indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L62" + "specLocation": "indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L63" }, { "kind": "response", @@ -160916,7 +160916,7 @@ } } ], - "specLocation": "indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L71" + "specLocation": "indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L72" }, { "kind": "response", @@ -161147,7 +161147,7 @@ } } ], - "specLocation": "indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L52" + "specLocation": "indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L53" }, { "kind": "response", @@ -161549,7 +161549,7 @@ } } ], - "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L23-L75" + "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L23-L76" }, { "kind": "response", @@ -161837,7 +161837,7 @@ } } ], - "specLocation": "indices/flush/IndicesFlushRequest.ts#L23-L92" + "specLocation": "indices/flush/IndicesFlushRequest.ts#L23-L93" }, { "kind": "response", @@ -162010,7 +162010,7 @@ } } ], - "specLocation": "indices/forcemerge/IndicesForceMergeRequest.ts#L24-L115" + "specLocation": "indices/forcemerge/IndicesForceMergeRequest.ts#L24-L116" }, { "kind": "response", @@ -162076,7 +162076,7 @@ "name": "Feature", "namespace": "indices.get" }, - "specLocation": "indices/get/IndicesGetRequest.ts#L99-L103" + "specLocation": "indices/get/IndicesGetRequest.ts#L100-L104" }, { "kind": "type_alias", @@ -162084,7 +162084,7 @@ "name": "Features", "namespace": "indices.get" }, - "specLocation": "indices/get/IndicesGetRequest.ts#L104-L104", + "specLocation": "indices/get/IndicesGetRequest.ts#L105-L105", "type": { "kind": "union_of", "items": [ @@ -162284,7 +162284,7 @@ } } ], - "specLocation": "indices/get/IndicesGetRequest.ts#L24-L97" + "specLocation": "indices/get/IndicesGetRequest.ts#L24-L98" }, { "kind": "response", @@ -162446,7 +162446,7 @@ } } ], - "specLocation": "indices/get_alias/IndicesGetAliasRequest.ts#L24-L93" + "specLocation": "indices/get_alias/IndicesGetAliasRequest.ts#L24-L94" }, { "kind": "response", @@ -162642,7 +162642,7 @@ } } ], - "specLocation": "indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts#L23-L48" + "specLocation": "indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts#L24-L50" }, { "kind": "response", @@ -162846,7 +162846,7 @@ } } ], - "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L68" + "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L69" }, { "kind": "response", @@ -162979,7 +162979,7 @@ }, "path": [], "query": [], - "specLocation": "indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts#L22-L40" + "specLocation": "indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts#L23-L42" }, { "kind": "response", @@ -163196,7 +163196,7 @@ } } ], - "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L78" + "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L79" }, { "kind": "response", @@ -163358,7 +163358,7 @@ } } ], - "specLocation": "indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts#L24-L57" + "specLocation": "indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts#L24-L58" }, { "kind": "response", @@ -163489,7 +163489,7 @@ } } ], - "specLocation": "indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts#L24-L62" + "specLocation": "indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts#L24-L63" }, { "kind": "response", @@ -163643,7 +163643,7 @@ } } ], - "specLocation": "indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts#L24-L57" + "specLocation": "indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts#L24-L58" }, { "kind": "response", @@ -163809,7 +163809,7 @@ } } ], - "specLocation": "indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L84" + "specLocation": "indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L85" }, { "kind": "response", @@ -164053,7 +164053,7 @@ } } ], - "specLocation": "indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L74" + "specLocation": "indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L75" }, { "kind": "response", @@ -164255,7 +164255,7 @@ } } ], - "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L85" + "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L86" }, { "kind": "response", @@ -164352,7 +164352,7 @@ } ], "query": [], - "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L44" + "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L46" }, { "kind": "response", @@ -164628,7 +164628,7 @@ } ], "query": [], - "specLocation": "indices/get_sample/GetRandomSampleRequest.ts#L23-L44" + "specLocation": "indices/get_sample/GetRandomSampleRequest.ts#L23-L45" }, { "kind": "response", @@ -164761,7 +164761,7 @@ } } ], - "specLocation": "indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts#L24-L55" + "specLocation": "indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts#L24-L56" }, { "kind": "response", @@ -164877,7 +164877,7 @@ } ], "query": [], - "specLocation": "indices/get_sample_stats/GetRandomSampleStatsRequest.ts#L23-L44" + "specLocation": "indices/get_sample_stats/GetRandomSampleStatsRequest.ts#L23-L45" }, { "kind": "response", @@ -165248,7 +165248,7 @@ } } ], - "specLocation": "indices/get_settings/IndicesGetSettingsRequest.ts#L24-L113" + "specLocation": "indices/get_settings/IndicesGetSettingsRequest.ts#L24-L114" }, { "kind": "response", @@ -165393,7 +165393,7 @@ } } ], - "specLocation": "indices/get_template/IndicesGetTemplateRequest.ts#L24-L75" + "specLocation": "indices/get_template/IndicesGetTemplateRequest.ts#L24-L76" }, { "kind": "response", @@ -165457,7 +165457,7 @@ } } ], - "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L45-L54" + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L47-L56" }, { "kind": "enum", @@ -165470,7 +165470,7 @@ "name": "ModeEnum", "namespace": "indices.migrate_reindex" }, - "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L60-L62" + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L62-L64" }, { "kind": "request", @@ -165534,7 +165534,7 @@ }, "path": [], "query": [], - "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L23-L43" + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L23-L45" }, { "kind": "response", @@ -165574,7 +165574,7 @@ } } ], - "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L56-L58" + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L58-L60" }, { "kind": "request", @@ -165668,7 +165668,7 @@ } } ], - "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L67" + "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L68" }, { "kind": "response", @@ -165831,7 +165831,7 @@ }, "path": [], "query": [], - "specLocation": "indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L46" + "specLocation": "indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L24-L49" }, { "kind": "response", @@ -165998,7 +165998,7 @@ } } ], - "specLocation": "indices/open/IndicesOpenRequest.ts#L24-L111" + "specLocation": "indices/open/IndicesOpenRequest.ts#L29-L117" }, { "kind": "response", @@ -166120,7 +166120,7 @@ } } ], - "specLocation": "indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L24-L59" + "specLocation": "indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L24-L60" }, { "kind": "response", @@ -166372,7 +166372,7 @@ } } ], - "specLocation": "indices/put_alias/IndicesPutAliasRequest.ts#L25-L105" + "specLocation": "indices/put_alias/IndicesPutAliasRequest.ts#L25-L107" }, { "kind": "response", @@ -166570,7 +166570,7 @@ } } ], - "specLocation": "indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L94" + "specLocation": "indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L96" }, { "kind": "response", @@ -166714,7 +166714,7 @@ } } ], - "specLocation": "indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts#L25-L77" + "specLocation": "indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts#L25-L78" }, { "kind": "response", @@ -166917,7 +166917,7 @@ } } ], - "specLocation": "indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts#L25-L81" + "specLocation": "indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts#L25-L83" }, { "kind": "response", @@ -167141,7 +167141,7 @@ } } ], - "specLocation": "indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts#L25-L78" + "specLocation": "indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts#L25-L79" }, { "kind": "response", @@ -167344,7 +167344,7 @@ } } ], - "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L162-L184" + "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L165-L187" }, { "kind": "request", @@ -167615,7 +167615,7 @@ } } ], - "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L160" + "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L38-L163" }, { "kind": "response", @@ -167946,7 +167946,7 @@ } } ], - "specLocation": "indices/put_mapping/IndicesPutMappingRequest.ts#L41-L165" + "specLocation": "indices/put_mapping/IndicesPutMappingRequest.ts#L42-L168" }, { "kind": "response", @@ -168107,7 +168107,7 @@ } } ], - "specLocation": "indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts#L26-L90" + "specLocation": "indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts#L26-L92" }, { "kind": "response", @@ -168374,7 +168374,7 @@ } } ], - "specLocation": "indices/put_settings/IndicesPutSettingsRequest.ts#L25-L167" + "specLocation": "indices/put_settings/IndicesPutSettingsRequest.ts#L25-L169" }, { "kind": "response", @@ -168650,7 +168650,7 @@ } } ], - "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L127" + "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L129" }, { "kind": "response", @@ -169396,7 +169396,7 @@ } } ], - "specLocation": "indices/recovery/IndicesRecoveryRequest.ts#L23-L103" + "specLocation": "indices/recovery/IndicesRecoveryRequest.ts#L23-L104" }, { "kind": "response", @@ -169915,7 +169915,7 @@ } } ], - "specLocation": "indices/refresh/IndicesRefreshRequest.ts#L23-L86" + "specLocation": "indices/refresh/IndicesRefreshRequest.ts#L23-L87" }, { "kind": "response", @@ -170135,7 +170135,7 @@ } } ], - "specLocation": "indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L65" + "specLocation": "indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L66" }, { "kind": "response", @@ -170348,7 +170348,7 @@ } } ], - "specLocation": "indices/remove_block/IndicesRemoveBlockRequest.ts#L25-L91" + "specLocation": "indices/remove_block/IndicesRemoveBlockRequest.ts#L25-L92" }, { "kind": "response", @@ -170528,7 +170528,7 @@ } } ], - "specLocation": "indices/resolve_cluster/ResolveClusterRequest.ts#L24-L143" + "specLocation": "indices/resolve_cluster/ResolveClusterRequest.ts#L24-L144" }, { "kind": "interface", @@ -170800,7 +170800,7 @@ } } ], - "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L24-L88" + "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L29-L94" }, { "kind": "interface", @@ -171255,7 +171255,7 @@ } } ], - "specLocation": "indices/rollover/IndicesRolloverRequest.ts#L29-L154" + "specLocation": "indices/rollover/IndicesRolloverRequest.ts#L34-L161" }, { "kind": "response", @@ -171705,7 +171705,7 @@ } } ], - "specLocation": "indices/segments/IndicesSegmentsRequest.ts#L23-L73" + "specLocation": "indices/segments/IndicesSegmentsRequest.ts#L23-L74" }, { "kind": "response", @@ -172146,7 +172146,7 @@ } } ], - "specLocation": "indices/shard_stores/IndicesShardStoresRequest.ts#L24-L83" + "specLocation": "indices/shard_stores/IndicesShardStoresRequest.ts#L24-L84" }, { "kind": "response", @@ -172617,7 +172617,7 @@ } } ], - "specLocation": "indices/shrink/IndicesShrinkRequest.ts#L27-L114" + "specLocation": "indices/shrink/IndicesShrinkRequest.ts#L27-L116" }, { "kind": "response", @@ -172800,7 +172800,7 @@ } } ], - "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L25-L72" + "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L25-L74" }, { "kind": "response", @@ -173142,7 +173142,7 @@ } } ], - "specLocation": "indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L137" + "specLocation": "indices/simulate_template/IndicesSimulateTemplateRequest.ts#L33-L145" }, { "kind": "response", @@ -173405,7 +173405,7 @@ } } ], - "specLocation": "indices/split/IndicesSplitRequest.ts#L27-L114" + "specLocation": "indices/split/IndicesSplitRequest.ts#L27-L116" }, { "kind": "response", @@ -174062,7 +174062,7 @@ } } ], - "specLocation": "indices/stats/IndicesStatsRequest.ts#L29-L116" + "specLocation": "indices/stats/IndicesStatsRequest.ts#L30-L118" }, { "kind": "response", @@ -175392,7 +175392,7 @@ } } ], - "specLocation": "indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L60" + "specLocation": "indices/update_aliases/IndicesUpdateAliasesRequest.ts#L25-L63" }, { "kind": "response", @@ -175700,7 +175700,7 @@ } } ], - "specLocation": "indices/validate_query/IndicesValidateQueryRequest.ts#L25-L123" + "specLocation": "indices/validate_query/IndicesValidateQueryRequest.ts#L25-L125" }, { "kind": "response", @@ -181963,7 +181963,7 @@ } } ], - "specLocation": "inference/chat_completion_unified/UnifiedRequest.ts#L24-L61" + "specLocation": "inference/chat_completion_unified/UnifiedRequest.ts#L24-L63" }, { "kind": "response", @@ -182113,7 +182113,7 @@ } } ], - "specLocation": "inference/completion/CompletionRequest.ts#L25-L70" + "specLocation": "inference/completion/CompletionRequest.ts#L25-L72" }, { "kind": "response", @@ -182245,7 +182245,7 @@ } } ], - "specLocation": "inference/delete/DeleteRequest.ts#L24-L68" + "specLocation": "inference/delete/DeleteRequest.ts#L24-L69" }, { "kind": "response", @@ -182343,7 +182343,7 @@ } ], "query": [], - "specLocation": "inference/get/GetRequest.ts#L24-L58" + "specLocation": "inference/get/GetRequest.ts#L24-L59" }, { "kind": "response", @@ -182497,7 +182497,7 @@ } } ], - "specLocation": "inference/inference/InferenceRequest.ts#L26-L104" + "specLocation": "inference/inference/InferenceRequest.ts#L26-L106" }, { "kind": "response", @@ -182619,7 +182619,7 @@ } } ], - "specLocation": "inference/put/PutRequest.ts#L26-L91" + "specLocation": "inference/put/PutRequest.ts#L26-L93" }, { "kind": "response", @@ -182786,7 +182786,7 @@ } } ], - "specLocation": "inference/put_ai21/PutAi21Request.ts#L29-L73" + "specLocation": "inference/put_ai21/PutAi21Request.ts#L29-L75" }, { "kind": "response", @@ -183049,7 +183049,7 @@ } } ], - "specLocation": "inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L31-L87" + "specLocation": "inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L31-L89" }, { "kind": "response", @@ -183248,7 +183248,7 @@ } } ], - "specLocation": "inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L31-L90" + "specLocation": "inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L31-L92" }, { "kind": "response", @@ -183543,7 +183543,7 @@ } } ], - "specLocation": "inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts#L31-L88" + "specLocation": "inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts#L31-L90" }, { "kind": "response", @@ -183695,7 +183695,7 @@ } } ], - "specLocation": "inference/put_anthropic/PutAnthropicRequest.ts#L30-L80" + "specLocation": "inference/put_anthropic/PutAnthropicRequest.ts#L30-L82" }, { "kind": "response", @@ -183926,7 +183926,7 @@ } } ], - "specLocation": "inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L31-L87" + "specLocation": "inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L31-L89" }, { "kind": "response", @@ -184125,7 +184125,7 @@ } } ], - "specLocation": "inference/put_azureopenai/PutAzureOpenAiRequest.ts#L31-L95" + "specLocation": "inference/put_azureopenai/PutAzureOpenAiRequest.ts#L31-L97" }, { "kind": "response", @@ -184356,7 +184356,7 @@ } } ], - "specLocation": "inference/put_cohere/PutCohereRequest.ts#L31-L88" + "specLocation": "inference/put_cohere/PutCohereRequest.ts#L31-L90" }, { "kind": "response", @@ -184509,7 +184509,7 @@ } } ], - "specLocation": "inference/put_contextualai/PutContextualAiRequest.ts#L30-L81" + "specLocation": "inference/put_contextualai/PutContextualAiRequest.ts#L30-L83" }, { "kind": "response", @@ -184790,7 +184790,7 @@ } ], "query": [], - "specLocation": "inference/put_custom/PutCustomRequest.ts#L30-L119" + "specLocation": "inference/put_custom/PutCustomRequest.ts#L30-L121" }, { "kind": "response", @@ -184897,7 +184897,7 @@ } } ], - "specLocation": "inference/put_deepseek/PutDeepSeekRequest.ts#L29-L74" + "specLocation": "inference/put_deepseek/PutDeepSeekRequest.ts#L29-L76" }, { "kind": "response", @@ -185224,7 +185224,7 @@ } } ], - "specLocation": "inference/put_elasticsearch/PutElasticsearchRequest.ts#L31-L101" + "specLocation": "inference/put_elasticsearch/PutElasticsearchRequest.ts#L31-L103" }, { "kind": "response", @@ -185421,7 +185421,7 @@ } } ], - "specLocation": "inference/put_elser/PutElserRequest.ts#L30-L95" + "specLocation": "inference/put_elser/PutElserRequest.ts#L30-L97" }, { "kind": "response", @@ -185582,7 +185582,7 @@ } } ], - "specLocation": "inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L30-L81" + "specLocation": "inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L30-L83" }, { "kind": "response", @@ -185953,7 +185953,7 @@ } } ], - "specLocation": "inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L31-L87" + "specLocation": "inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L31-L89" }, { "kind": "response", @@ -186152,7 +186152,7 @@ } } ], - "specLocation": "inference/put_hugging_face/PutHuggingFaceRequest.ts#L31-L123" + "specLocation": "inference/put_hugging_face/PutHuggingFaceRequest.ts#L31-L125" }, { "kind": "response", @@ -186351,7 +186351,7 @@ } } ], - "specLocation": "inference/put_jinaai/PutJinaAiRequest.ts#L31-L90" + "specLocation": "inference/put_jinaai/PutJinaAiRequest.ts#L31-L92" }, { "kind": "response", @@ -186563,7 +186563,7 @@ } } ], - "specLocation": "inference/put_llama/PutLlamaRequest.ts#L30-L81" + "specLocation": "inference/put_llama/PutLlamaRequest.ts#L30-L83" }, { "kind": "response", @@ -186717,7 +186717,7 @@ } } ], - "specLocation": "inference/put_mistral/PutMistralRequest.ts#L30-L81" + "specLocation": "inference/put_mistral/PutMistralRequest.ts#L30-L83" }, { "kind": "response", @@ -186916,7 +186916,7 @@ } } ], - "specLocation": "inference/put_openai/PutOpenAiRequest.ts#L31-L88" + "specLocation": "inference/put_openai/PutOpenAiRequest.ts#L31-L90" }, { "kind": "response", @@ -187081,7 +187081,7 @@ } } ], - "specLocation": "inference/put_openshift_ai/PutOpenShiftAiRequest.ts#L31-L90" + "specLocation": "inference/put_openshift_ai/PutOpenShiftAiRequest.ts#L31-L92" }, { "kind": "response", @@ -187307,7 +187307,7 @@ } } ], - "specLocation": "inference/put_voyageai/PutVoyageAIRequest.ts#L31-L89" + "specLocation": "inference/put_voyageai/PutVoyageAIRequest.ts#L31-L91" }, { "kind": "response", @@ -187461,7 +187461,7 @@ } } ], - "specLocation": "inference/put_watsonx/PutWatsonxRequest.ts#L30-L83" + "specLocation": "inference/put_watsonx/PutWatsonxRequest.ts#L30-L85" }, { "kind": "response", @@ -187693,7 +187693,7 @@ } } ], - "specLocation": "inference/rerank/RerankRequest.ts#L26-L78" + "specLocation": "inference/rerank/RerankRequest.ts#L26-L80" }, { "kind": "response", @@ -187854,7 +187854,7 @@ } } ], - "specLocation": "inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L64" + "specLocation": "inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L66" }, { "kind": "response", @@ -188005,7 +188005,7 @@ } } ], - "specLocation": "inference/stream_completion/StreamInferenceRequest.ts#L25-L72" + "specLocation": "inference/stream_completion/StreamInferenceRequest.ts#L25-L74" }, { "kind": "response", @@ -188161,7 +188161,7 @@ } } ], - "specLocation": "inference/text_embedding/TextEmbeddingRequest.ts#L25-L77" + "specLocation": "inference/text_embedding/TextEmbeddingRequest.ts#L25-L79" }, { "kind": "response", @@ -188272,7 +188272,7 @@ } ], "query": [], - "specLocation": "inference/update/UpdateInferenceRequest.ts#L25-L61" + "specLocation": "inference/update/UpdateInferenceRequest.ts#L25-L63" }, { "kind": "response", @@ -193745,7 +193745,7 @@ } } ], - "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L57" + "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L58" }, { "kind": "response", @@ -193858,7 +193858,7 @@ } } ], - "specLocation": "ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts#L24-L61" + "specLocation": "ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts#L24-L62" }, { "kind": "response", @@ -193971,7 +193971,7 @@ } } ], - "specLocation": "ingest/delete_pipeline/DeletePipelineRequest.ts#L24-L62" + "specLocation": "ingest/delete_pipeline/DeletePipelineRequest.ts#L24-L63" }, { "kind": "response", @@ -194198,7 +194198,7 @@ }, "path": [], "query": [], - "specLocation": "ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts#L22-L39" + "specLocation": "ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts#L23-L41" }, { "kind": "response", @@ -194345,7 +194345,7 @@ } ], "query": [], - "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L51" + "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L52" }, { "kind": "response", @@ -194522,7 +194522,7 @@ } ], "query": [], - "specLocation": "ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts#L23-L51" + "specLocation": "ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts#L23-L52" }, { "kind": "response", @@ -194643,7 +194643,7 @@ } } ], - "specLocation": "ingest/get_pipeline/GetPipelineRequest.ts#L24-L64" + "specLocation": "ingest/get_pipeline/GetPipelineRequest.ts#L24-L65" }, { "kind": "response", @@ -194733,7 +194733,7 @@ }, "path": [], "query": [], - "specLocation": "ingest/processor_grok/GrokProcessorPatternsRequest.ts#L22-L41" + "specLocation": "ingest/processor_grok/GrokProcessorPatternsRequest.ts#L23-L43" }, { "kind": "response", @@ -194857,7 +194857,7 @@ } } ], - "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L67" + "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L69" }, { "kind": "response", @@ -194980,7 +194980,7 @@ } } ], - "specLocation": "ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L63" + "specLocation": "ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L65" }, { "kind": "response", @@ -195239,7 +195239,7 @@ } } ], - "specLocation": "ingest/put_pipeline/PutPipelineRequest.ts#L27-L100" + "specLocation": "ingest/put_pipeline/PutPipelineRequest.ts#L27-L102" }, { "kind": "response", @@ -195371,7 +195371,7 @@ } } ], - "specLocation": "ingest/simulate/SimulatePipelineRequest.ts#L25-L73" + "specLocation": "ingest/simulate/SimulatePipelineRequest.ts#L25-L75" }, { "kind": "response", @@ -195703,7 +195703,7 @@ } } ], - "specLocation": "license/delete/DeleteLicenseRequest.ts#L23-L54" + "specLocation": "license/delete/DeleteLicenseRequest.ts#L24-L56" }, { "kind": "response", @@ -196000,7 +196000,7 @@ } } ], - "specLocation": "license/get/GetLicenseRequest.ts#L22-L58" + "specLocation": "license/get/GetLicenseRequest.ts#L23-L60" }, { "kind": "response", @@ -196084,7 +196084,7 @@ }, "path": [], "query": [], - "specLocation": "license/get_basic_status/GetBasicLicenseStatusRequest.ts#L22-L37" + "specLocation": "license/get_basic_status/GetBasicLicenseStatusRequest.ts#L23-L39" }, { "kind": "response", @@ -196168,7 +196168,7 @@ }, "path": [], "query": [], - "specLocation": "license/get_trial_status/GetTrialLicenseStatusRequest.ts#L22-L37" + "specLocation": "license/get_trial_status/GetTrialLicenseStatusRequest.ts#L23-L39" }, { "kind": "response", @@ -196357,7 +196357,7 @@ } } ], - "specLocation": "license/post/PostLicenseRequest.ts#L24-L70" + "specLocation": "license/post/PostLicenseRequest.ts#L25-L73" }, { "kind": "response", @@ -196502,7 +196502,7 @@ } } ], - "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L23-L59" + "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L24-L61" }, { "kind": "response", @@ -196694,7 +196694,7 @@ } } ], - "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L53" + "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L24-L55" }, { "kind": "response", @@ -197028,7 +197028,7 @@ } ], "query": [], - "specLocation": "logstash/delete_pipeline/LogstashDeletePipelineRequest.ts#L23-L48" + "specLocation": "logstash/delete_pipeline/LogstashDeletePipelineRequest.ts#L23-L49" }, { "kind": "response", @@ -197106,7 +197106,7 @@ } ], "query": [], - "specLocation": "logstash/get_pipeline/LogstashGetPipelineRequest.ts#L23-L51" + "specLocation": "logstash/get_pipeline/LogstashGetPipelineRequest.ts#L23-L52" }, { "kind": "response", @@ -197220,7 +197220,7 @@ } ], "query": [], - "specLocation": "logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L52" + "specLocation": "logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L54" }, { "kind": "response", @@ -197409,7 +197409,7 @@ } ], "query": [], - "specLocation": "migration/deprecations/DeprecationInfoRequest.ts#L23-L50" + "specLocation": "migration/deprecations/DeprecationInfoRequest.ts#L23-L51" }, { "kind": "response", @@ -197752,7 +197752,7 @@ }, "path": [], "query": [], - "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L22-L43" + "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L23-L45" }, { "kind": "response", @@ -197871,7 +197871,7 @@ }, "path": [], "query": [], - "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L22-L44" + "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L23-L46" }, { "kind": "response", @@ -210769,7 +210769,7 @@ } ], "query": [], - "specLocation": "ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L23-L50" + "specLocation": "ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L23-L52" }, { "kind": "response", @@ -210947,7 +210947,7 @@ } } ], - "specLocation": "ml/close_job/MlCloseJobRequest.ts#L24-L85" + "specLocation": "ml/close_job/MlCloseJobRequest.ts#L24-L87" }, { "kind": "response", @@ -211044,7 +211044,7 @@ } ], "query": [], - "specLocation": "ml/delete_calendar/MlDeleteCalendarRequest.ts#L23-L45" + "specLocation": "ml/delete_calendar/MlDeleteCalendarRequest.ts#L23-L46" }, { "kind": "response", @@ -211148,7 +211148,7 @@ } ], "query": [], - "specLocation": "ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts#L23-L50" + "specLocation": "ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts#L23-L51" }, { "kind": "response", @@ -211252,7 +211252,7 @@ } ], "query": [], - "specLocation": "ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts#L23-L51" + "specLocation": "ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts#L23-L52" }, { "kind": "response", @@ -211401,7 +211401,7 @@ } } ], - "specLocation": "ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts#L24-L59" + "specLocation": "ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts#L24-L60" }, { "kind": "response", @@ -211506,7 +211506,7 @@ } } ], - "specLocation": "ml/delete_datafeed/MlDeleteDatafeedRequest.ts#L23-L56" + "specLocation": "ml/delete_datafeed/MlDeleteDatafeedRequest.ts#L23-L57" }, { "kind": "response", @@ -211651,7 +211651,7 @@ } } ], - "specLocation": "ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L85" + "specLocation": "ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L87" }, { "kind": "response", @@ -211748,7 +211748,7 @@ } ], "query": [], - "specLocation": "ml/delete_filter/MlDeleteFilterRequest.ts#L23-L48" + "specLocation": "ml/delete_filter/MlDeleteFilterRequest.ts#L23-L49" }, { "kind": "response", @@ -211879,7 +211879,7 @@ } } ], - "specLocation": "ml/delete_forecast/MlDeleteForecastRequest.ts#L24-L78" + "specLocation": "ml/delete_forecast/MlDeleteForecastRequest.ts#L24-L79" }, { "kind": "response", @@ -212011,7 +212011,7 @@ } } ], - "specLocation": "ml/delete_job/MlDeleteJobRequest.ts#L23-L73" + "specLocation": "ml/delete_job/MlDeleteJobRequest.ts#L23-L74" }, { "kind": "response", @@ -212121,7 +212121,7 @@ } ], "query": [], - "specLocation": "ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts#L23-L53" + "specLocation": "ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts#L23-L54" }, { "kind": "response", @@ -212239,7 +212239,7 @@ } } ], - "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L57" + "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L58" }, { "kind": "response", @@ -212343,7 +212343,7 @@ } ], "query": [], - "specLocation": "ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts#L23-L53" + "specLocation": "ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts#L23-L55" }, { "kind": "response", @@ -212484,7 +212484,7 @@ }, "path": [], "query": [], - "specLocation": "ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L71" + "specLocation": "ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L73" }, { "kind": "response", @@ -213371,7 +213371,7 @@ }, "path": [], "query": [], - "specLocation": "ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L61" + "specLocation": "ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L63" }, { "kind": "response", @@ -213611,7 +213611,7 @@ } ], "query": [], - "specLocation": "ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L120" + "specLocation": "ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L122" }, { "kind": "response", @@ -213853,7 +213853,7 @@ } } ], - "specLocation": "ml/flush_job/MlFlushJobRequest.ts#L24-L109" + "specLocation": "ml/flush_job/MlFlushJobRequest.ts#L24-L111" }, { "kind": "response", @@ -214039,7 +214039,7 @@ } } ], - "specLocation": "ml/forecast/MlForecastJobRequest.ts#L24-L95" + "specLocation": "ml/forecast/MlForecastJobRequest.ts#L24-L97" }, { "kind": "response", @@ -214377,7 +214377,7 @@ } } ], - "specLocation": "ml/get_buckets/MlGetBucketsRequest.ts#L26-L146" + "specLocation": "ml/get_buckets/MlGetBucketsRequest.ts#L26-L148" }, { "kind": "response", @@ -214545,7 +214545,7 @@ } } ], - "specLocation": "ml/get_calendar_events/MlGetCalendarEventsRequest.ts#L25-L64" + "specLocation": "ml/get_calendar_events/MlGetCalendarEventsRequest.ts#L25-L65" }, { "kind": "response", @@ -214740,7 +214740,7 @@ } } ], - "specLocation": "ml/get_calendars/MlGetCalendarsRequest.ts#L25-L66" + "specLocation": "ml/get_calendars/MlGetCalendarsRequest.ts#L25-L68" }, { "kind": "response", @@ -214912,7 +214912,7 @@ } } ], - "specLocation": "ml/get_categories/MlGetCategoriesRequest.ts#L25-L83" + "specLocation": "ml/get_categories/MlGetCategoriesRequest.ts#L25-L85" }, { "kind": "response", @@ -215070,7 +215070,7 @@ } } ], - "specLocation": "ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts#L24-L90" + "specLocation": "ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts#L24-L91" }, { "kind": "response", @@ -215229,7 +215229,7 @@ } } ], - "specLocation": "ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts#L24-L85" + "specLocation": "ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts#L24-L86" }, { "kind": "response", @@ -215348,7 +215348,7 @@ } } ], - "specLocation": "ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts#L23-L73" + "specLocation": "ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts#L23-L74" }, { "kind": "response", @@ -215479,7 +215479,7 @@ } } ], - "specLocation": "ml/get_datafeeds/MlGetDatafeedsRequest.ts#L23-L79" + "specLocation": "ml/get_datafeeds/MlGetDatafeedsRequest.ts#L23-L80" }, { "kind": "response", @@ -215611,7 +215611,7 @@ } } ], - "specLocation": "ml/get_filters/MlGetFiltersRequest.ts#L24-L64" + "specLocation": "ml/get_filters/MlGetFiltersRequest.ts#L24-L65" }, { "kind": "response", @@ -215836,7 +215836,7 @@ } } ], - "specLocation": "ml/get_influencers/MlGetInfluencersRequest.ts#L26-L106" + "specLocation": "ml/get_influencers/MlGetInfluencersRequest.ts#L26-L108" }, { "kind": "response", @@ -215956,7 +215956,7 @@ } } ], - "specLocation": "ml/get_job_stats/MlGetJobStatsRequest.ts#L23-L69" + "specLocation": "ml/get_job_stats/MlGetJobStatsRequest.ts#L23-L70" }, { "kind": "response", @@ -216088,7 +216088,7 @@ } } ], - "specLocation": "ml/get_jobs/MlGetJobsRequest.ts#L23-L79" + "specLocation": "ml/get_jobs/MlGetJobsRequest.ts#L23-L80" }, { "kind": "response", @@ -216608,7 +216608,7 @@ } } ], - "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L67" + "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L68" }, { "kind": "response", @@ -216757,7 +216757,7 @@ } } ], - "specLocation": "ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts#L23-L66" + "specLocation": "ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts#L23-L67" }, { "kind": "response", @@ -217014,7 +217014,7 @@ } } ], - "specLocation": "ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L109" + "specLocation": "ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L111" }, { "kind": "response", @@ -217298,7 +217298,7 @@ } } ], - "specLocation": "ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153" + "specLocation": "ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L155" }, { "kind": "response", @@ -217602,7 +217602,7 @@ } } ], - "specLocation": "ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L136" + "specLocation": "ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L138" }, { "kind": "response", @@ -217812,7 +217812,7 @@ } } ], - "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L105" + "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L106" }, { "kind": "response", @@ -217958,7 +217958,7 @@ } } ], - "specLocation": "ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts#L24-L78" + "specLocation": "ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts#L24-L79" }, { "kind": "response", @@ -218117,7 +218117,7 @@ } } ], - "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L68" + "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L70" }, { "kind": "response", @@ -218413,7 +218413,7 @@ }, "path": [], "query": [], - "specLocation": "ml/info/MlInfoRequest.ts#L22-L45" + "specLocation": "ml/info/MlInfoRequest.ts#L23-L47" }, { "kind": "response", @@ -218568,7 +218568,7 @@ } } ], - "specLocation": "ml/open_job/MlOpenJobRequest.ts#L24-L67" + "specLocation": "ml/open_job/MlOpenJobRequest.ts#L24-L69" }, { "kind": "response", @@ -218696,7 +218696,7 @@ } ], "query": [], - "specLocation": "ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L49" + "specLocation": "ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L51" }, { "kind": "response", @@ -218805,7 +218805,7 @@ } } ], - "specLocation": "ml/post_data/MlPostJobDataRequest.ts#L24-L77" + "specLocation": "ml/post_data/MlPostJobDataRequest.ts#L24-L79" }, { "kind": "response", @@ -219220,7 +219220,7 @@ } ], "query": [], - "specLocation": "ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L61" + "specLocation": "ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L63" }, { "kind": "response", @@ -219377,7 +219377,7 @@ } } ], - "specLocation": "ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L82" + "specLocation": "ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L84" }, { "kind": "response", @@ -219501,7 +219501,7 @@ } ], "query": [], - "specLocation": "ml/put_calendar/MlPutCalendarRequest.ts#L23-L52" + "specLocation": "ml/put_calendar/MlPutCalendarRequest.ts#L23-L54" }, { "kind": "response", @@ -219629,7 +219629,7 @@ } ], "query": [], - "specLocation": "ml/put_calendar_job/MlPutCalendarJobRequest.ts#L23-L46" + "specLocation": "ml/put_calendar_job/MlPutCalendarJobRequest.ts#L23-L47" }, { "kind": "response", @@ -219895,7 +219895,7 @@ } ], "query": [], - "specLocation": "ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L156" + "specLocation": "ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L36-L164" }, { "kind": "response", @@ -220391,7 +220391,7 @@ } } ], - "specLocation": "ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L185" + "specLocation": "ml/put_datafeed/MlPutDatafeedRequest.ts#L38-L188" }, { "kind": "response", @@ -220692,7 +220692,7 @@ } ], "query": [], - "specLocation": "ml/put_filter/MlPutFilterRequest.ts#L23-L59" + "specLocation": "ml/put_filter/MlPutFilterRequest.ts#L23-L61" }, { "kind": "response", @@ -221068,7 +221068,7 @@ } } ], - "specLocation": "ml/put_job/MlPutJobRequest.ts#L30-L151" + "specLocation": "ml/put_job/MlPutJobRequest.ts#L30-L153" }, { "kind": "response", @@ -221854,7 +221854,7 @@ } } ], - "specLocation": "ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L138" + "specLocation": "ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L140" }, { "kind": "response", @@ -222270,7 +222270,7 @@ } } ], - "specLocation": "ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts#L23-L75" + "specLocation": "ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts#L23-L77" }, { "kind": "response", @@ -222404,7 +222404,7 @@ } ], "query": [], - "specLocation": "ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L66" + "specLocation": "ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L68" }, { "kind": "response", @@ -222551,7 +222551,7 @@ } ], "query": [], - "specLocation": "ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L69" + "specLocation": "ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L71" }, { "kind": "response", @@ -222664,7 +222664,7 @@ } } ], - "specLocation": "ml/reset_job/MlResetJobRequest.ts#L23-L66" + "specLocation": "ml/reset_job/MlResetJobRequest.ts#L23-L67" }, { "kind": "response", @@ -222793,7 +222793,7 @@ } } ], - "specLocation": "ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L78" + "specLocation": "ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L80" }, { "kind": "response", @@ -222898,7 +222898,7 @@ } } ], - "specLocation": "ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts#L23-L65" + "specLocation": "ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts#L24-L67" }, { "kind": "response", @@ -223025,7 +223025,7 @@ } } ], - "specLocation": "ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts#L24-L81" + "specLocation": "ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts#L24-L83" }, { "kind": "response", @@ -223207,7 +223207,7 @@ } } ], - "specLocation": "ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L99" + "specLocation": "ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L101" }, { "kind": "response", @@ -223432,7 +223432,7 @@ } } ], - "specLocation": "ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L112" + "specLocation": "ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L114" }, { "kind": "response", @@ -223616,7 +223616,7 @@ } } ], - "specLocation": "ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts#L24-L111" + "specLocation": "ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts#L24-L113" }, { "kind": "response", @@ -223790,7 +223790,7 @@ } } ], - "specLocation": "ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L87" + "specLocation": "ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L89" }, { "kind": "response", @@ -223948,7 +223948,7 @@ } } ], - "specLocation": "ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts#L23-L82" + "specLocation": "ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts#L23-L84" }, { "kind": "response", @@ -224098,7 +224098,7 @@ } ], "query": [], - "specLocation": "ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L81" + "specLocation": "ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L83" }, { "kind": "response", @@ -224556,7 +224556,7 @@ } } ], - "specLocation": "ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L165" + "specLocation": "ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L167" }, { "kind": "response", @@ -224873,7 +224873,7 @@ } ], "query": [], - "specLocation": "ml/update_filter/MlUpdateFilterRequest.ts#L23-L61" + "specLocation": "ml/update_filter/MlUpdateFilterRequest.ts#L23-L63" }, { "kind": "response", @@ -225195,7 +225195,7 @@ } ], "query": [], - "specLocation": "ml/update_job/MlUpdateJobRequest.ts#L33-L148" + "specLocation": "ml/update_job/MlUpdateJobRequest.ts#L33-L150" }, { "kind": "response", @@ -225579,7 +225579,7 @@ } ], "query": [], - "specLocation": "ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L64" + "specLocation": "ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L66" }, { "kind": "response", @@ -225724,7 +225724,7 @@ } } ], - "specLocation": "ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L79" + "specLocation": "ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L81" }, { "kind": "response", @@ -225854,7 +225854,7 @@ } } ], - "specLocation": "ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L73" + "specLocation": "ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L74" }, { "kind": "response", @@ -226015,7 +226015,7 @@ }, "path": [], "query": [], - "specLocation": "ml/validate/MlValidateJobRequest.ts#L27-L53" + "specLocation": "ml/validate/MlValidateJobRequest.ts#L27-L55" }, { "kind": "response", @@ -226065,7 +226065,7 @@ }, "path": [], "query": [], - "specLocation": "ml/validate_detector/MlValidateDetectorRequest.ts#L23-L41" + "specLocation": "ml/validate_detector/MlValidateDetectorRequest.ts#L24-L44" }, { "kind": "response", @@ -226200,7 +226200,7 @@ } } ], - "specLocation": "monitoring/bulk/BulkMonitoringRequest.ts#L24-L60" + "specLocation": "monitoring/bulk/BulkMonitoringRequest.ts#L25-L63" }, { "kind": "response", @@ -231004,7 +231004,7 @@ } ], "query": [], - "specLocation": "nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L53" + "specLocation": "nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L54" }, { "kind": "response", @@ -231114,7 +231114,7 @@ } ], "query": [], - "specLocation": "nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L50" + "specLocation": "nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L51" }, { "kind": "response", @@ -231342,7 +231342,7 @@ } } ], - "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L89" + "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L90" }, { "kind": "response", @@ -234393,7 +234393,7 @@ "name": "NodesInfoMetric", "namespace": "nodes.info" }, - "specLocation": "nodes/info/NodesInfoRequest.ts#L73-L88" + "specLocation": "nodes/info/NodesInfoRequest.ts#L74-L89" }, { "kind": "type_alias", @@ -234401,7 +234401,7 @@ "name": "NodesInfoMetrics", "namespace": "nodes.info" }, - "specLocation": "nodes/info/NodesInfoRequest.ts#L90-L90", + "specLocation": "nodes/info/NodesInfoRequest.ts#L91-L91", "type": { "kind": "union_of", "items": [ @@ -234564,7 +234564,7 @@ } } ], - "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L71" + "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L72" }, { "kind": "response", @@ -234735,7 +234735,7 @@ } } ], - "specLocation": "nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L70" + "specLocation": "nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L72" }, { "kind": "response", @@ -234876,7 +234876,7 @@ "name": "NodeStatsMetric", "namespace": "nodes.stats" }, - "specLocation": "nodes/stats/NodesStatsRequest.ts#L110-L131" + "specLocation": "nodes/stats/NodesStatsRequest.ts#L112-L133" }, { "kind": "type_alias", @@ -234884,7 +234884,7 @@ "name": "NodeStatsMetrics", "namespace": "nodes.stats" }, - "specLocation": "nodes/stats/NodesStatsRequest.ts#L133-L133", + "specLocation": "nodes/stats/NodesStatsRequest.ts#L135-L135", "type": { "kind": "union_of", "items": [ @@ -235113,7 +235113,7 @@ } } ], - "specLocation": "nodes/stats/NodesStatsRequest.ts#L29-L108" + "specLocation": "nodes/stats/NodesStatsRequest.ts#L30-L110" }, { "kind": "response", @@ -235290,7 +235290,7 @@ "name": "NodesUsageMetric", "namespace": "nodes.usage" }, - "specLocation": "nodes/usage/NodesUsageRequest.ts#L71-L75" + "specLocation": "nodes/usage/NodesUsageRequest.ts#L72-L76" }, { "kind": "type_alias", @@ -235298,7 +235298,7 @@ "name": "NodesUsageMetrics", "namespace": "nodes.usage" }, - "specLocation": "nodes/usage/NodesUsageRequest.ts#L77-L77", + "specLocation": "nodes/usage/NodesUsageRequest.ts#L78-L78", "type": { "kind": "union_of", "items": [ @@ -235413,7 +235413,7 @@ } } ], - "specLocation": "nodes/usage/NodesUsageRequest.ts#L24-L69" + "specLocation": "nodes/usage/NodesUsageRequest.ts#L24-L70" }, { "kind": "response", @@ -235508,7 +235508,7 @@ }, "path": [], "query": [], - "specLocation": "profiling/flamegraph/ProfilingFlamegraphRequest.ts#L23-L39" + "specLocation": "profiling/flamegraph/ProfilingFlamegraphRequest.ts#L24-L42" }, { "kind": "response", @@ -235550,7 +235550,7 @@ }, "path": [], "query": [], - "specLocation": "profiling/stacktraces/ProfilingStacktracesRequest.ts#L23-L39" + "specLocation": "profiling/stacktraces/ProfilingStacktracesRequest.ts#L24-L42" }, { "kind": "response", @@ -235646,7 +235646,7 @@ } } ], - "specLocation": "profiling/status/ProfilingStatusRequest.ts#L23-L55" + "specLocation": "profiling/status/ProfilingStatusRequest.ts#L24-L57" }, { "kind": "response", @@ -235697,7 +235697,7 @@ }, "path": [], "query": [], - "specLocation": "profiling/topn_functions/ProfilingTopnFunctionsRequest.ts#L23-L42" + "specLocation": "profiling/topn_functions/ProfilingTopnFunctionsRequest.ts#L24-L45" }, { "kind": "response", @@ -235839,7 +235839,7 @@ } } ], - "specLocation": "project/tags/TagsRequest.ts#L22-L46" + "specLocation": "project/tags/TagsRequest.ts#L23-L48" }, { "kind": "response", @@ -236297,7 +236297,7 @@ } ], "query": [], - "specLocation": "query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L52" + "specLocation": "query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L53" }, { "kind": "response", @@ -236383,7 +236383,7 @@ } ], "query": [], - "specLocation": "query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L47" + "specLocation": "query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L48" }, { "kind": "response", @@ -236481,7 +236481,7 @@ } ], "query": [], - "specLocation": "query_rules/get_rule/QueryRuleGetRequest.ts#L22-L51" + "specLocation": "query_rules/get_rule/QueryRuleGetRequest.ts#L22-L52" }, { "kind": "response", @@ -236573,7 +236573,7 @@ } ], "query": [], - "specLocation": "query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L46" + "specLocation": "query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L47" }, { "kind": "response", @@ -236759,7 +236759,7 @@ } } ], - "specLocation": "query_rules/list_rulesets/QueryRulesetListRequest.ts#L22-L52" + "specLocation": "query_rules/list_rulesets/QueryRulesetListRequest.ts#L23-L54" }, { "kind": "response", @@ -236948,7 +236948,7 @@ } ], "query": [], - "specLocation": "query_rules/put_rule/QueryRulePutRequest.ts#L28-L81" + "specLocation": "query_rules/put_rule/QueryRulePutRequest.ts#L28-L83" }, { "kind": "response", @@ -237069,7 +237069,7 @@ } ], "query": [], - "specLocation": "query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L60" + "specLocation": "query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L62" }, { "kind": "response", @@ -237217,7 +237217,7 @@ } ], "query": [], - "specLocation": "query_rules/test/QueryRulesetTestRequest.ts#L24-L58" + "specLocation": "query_rules/test/QueryRulesetTestRequest.ts#L24-L60" }, { "kind": "response", @@ -237592,7 +237592,7 @@ } ], "query": [], - "specLocation": "rollup/delete_job/DeleteRollupJobRequest.ts#L23-L67" + "specLocation": "rollup/delete_job/DeleteRollupJobRequest.ts#L23-L68" }, { "kind": "response", @@ -237732,7 +237732,7 @@ } ], "query": [], - "specLocation": "rollup/get_jobs/GetRollupJobRequest.ts#L23-L55" + "specLocation": "rollup/get_jobs/GetRollupJobRequest.ts#L23-L56" }, { "kind": "response", @@ -238202,7 +238202,7 @@ } ], "query": [], - "specLocation": "rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L58" + "specLocation": "rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L59" }, { "kind": "response", @@ -238469,7 +238469,7 @@ } ], "query": [], - "specLocation": "rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L51" + "specLocation": "rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L52" }, { "kind": "response", @@ -238790,7 +238790,7 @@ } ], "query": [], - "specLocation": "rollup/put_job/CreateRollupJobRequest.ts#L27-L105" + "specLocation": "rollup/put_job/CreateRollupJobRequest.ts#L27-L107" }, { "kind": "response", @@ -238969,7 +238969,7 @@ } } ], - "specLocation": "rollup/rollup_search/RollupSearchRequest.ts#L27-L90" + "specLocation": "rollup/rollup_search/RollupSearchRequest.ts#L27-L92" }, { "kind": "response", @@ -239151,7 +239151,7 @@ } ], "query": [], - "specLocation": "rollup/start_job/StartRollupJobRequest.ts#L23-L47" + "specLocation": "rollup/start_job/StartRollupJobRequest.ts#L23-L48" }, { "kind": "response", @@ -239279,7 +239279,7 @@ } } ], - "specLocation": "rollup/stop_job/StopRollupJobRequest.ts#L24-L73" + "specLocation": "rollup/stop_job/StopRollupJobRequest.ts#L24-L74" }, { "kind": "response", @@ -239555,7 +239555,7 @@ } ], "query": [], - "specLocation": "search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L46" + "specLocation": "search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L47" }, { "kind": "response", @@ -239645,7 +239645,7 @@ } ], "query": [], - "specLocation": "search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts#L22-L46" + "specLocation": "search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts#L22-L47" }, { "kind": "response", @@ -239731,7 +239731,7 @@ } ], "query": [], - "specLocation": "search_application/get/SearchApplicationsGetRequest.ts#L22-L44" + "specLocation": "search_application/get/SearchApplicationsGetRequest.ts#L22-L45" }, { "kind": "response", @@ -239830,7 +239830,7 @@ } ], "query": [], - "specLocation": "search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts#L22-L49" + "specLocation": "search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts#L22-L50" }, { "kind": "response", @@ -239958,7 +239958,7 @@ } } ], - "specLocation": "search_application/list/SearchApplicationsListRequest.ts#L22-L54" + "specLocation": "search_application/list/SearchApplicationsListRequest.ts#L23-L56" }, { "kind": "response", @@ -240104,7 +240104,7 @@ } } ], - "specLocation": "search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L59" + "specLocation": "search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L61" }, { "kind": "response", @@ -240255,7 +240255,7 @@ } } ], - "specLocation": "search_application/put/SearchApplicationsPutRequest.ts#L23-L58" + "specLocation": "search_application/put/SearchApplicationsPutRequest.ts#L23-L60" }, { "kind": "response", @@ -240378,7 +240378,7 @@ } ], "query": [], - "specLocation": "search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts#L22-L45" + "specLocation": "search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts#L22-L46" }, { "kind": "response", @@ -240486,7 +240486,7 @@ } ], "query": [], - "specLocation": "search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L55" + "specLocation": "search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L57" }, { "kind": "response", @@ -240614,7 +240614,7 @@ } } ], - "specLocation": "search_application/search/SearchApplicationsSearchRequest.ts#L24-L62" + "specLocation": "search_application/search/SearchApplicationsSearchRequest.ts#L24-L64" }, { "kind": "response", @@ -240767,7 +240767,7 @@ } } ], - "specLocation": "searchable_snapshots/cache_stats/Request.ts#L24-L54" + "specLocation": "searchable_snapshots/cache_stats/Request.ts#L24-L55" }, { "kind": "response", @@ -241011,7 +241011,7 @@ } } ], - "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L58" + "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L59" }, { "kind": "response", @@ -241251,7 +241251,7 @@ } } ], - "specLocation": "searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L93" + "specLocation": "searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L95" }, { "kind": "response", @@ -241356,7 +241356,7 @@ } } ], - "specLocation": "searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L56" + "specLocation": "searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L57" }, { "kind": "response", @@ -244444,7 +244444,7 @@ }, "path": [], "query": [], - "specLocation": "security/activate_user_profile/Request.ts#L23-L76" + "specLocation": "security/activate_user_profile/Request.ts#L24-L79" }, { "kind": "response", @@ -244577,7 +244577,7 @@ }, "path": [], "query": [], - "specLocation": "security/authenticate/SecurityAuthenticateRequest.ts#L22-L41" + "specLocation": "security/authenticate/SecurityAuthenticateRequest.ts#L23-L43" }, { "kind": "response", @@ -244875,7 +244875,7 @@ } } ], - "specLocation": "security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L50" + "specLocation": "security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L52" }, { "kind": "response", @@ -245106,7 +245106,7 @@ } } ], - "specLocation": "security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L52" + "specLocation": "security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L54" }, { "kind": "response", @@ -245351,7 +245351,7 @@ }, "path": [], "query": [], - "specLocation": "security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L84" + "specLocation": "security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L86" }, { "kind": "response", @@ -245517,7 +245517,7 @@ } } ], - "specLocation": "security/change_password/SecurityChangePasswordRequest.ts#L23-L65" + "specLocation": "security/change_password/SecurityChangePasswordRequest.ts#L23-L67" }, { "kind": "response", @@ -245596,7 +245596,7 @@ } ], "query": [], - "specLocation": "security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L49" + "specLocation": "security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L50" }, { "kind": "response", @@ -245721,7 +245721,7 @@ } ], "query": [], - "specLocation": "security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts#L23-L49" + "specLocation": "security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts#L23-L50" }, { "kind": "response", @@ -245862,7 +245862,7 @@ } } ], - "specLocation": "security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts#L23-L60" + "specLocation": "security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts#L23-L61" }, { "kind": "response", @@ -245987,7 +245987,7 @@ } ], "query": [], - "specLocation": "security/clear_cached_roles/ClearCachedRolesRequest.ts#L23-L48" + "specLocation": "security/clear_cached_roles/ClearCachedRolesRequest.ts#L23-L49" }, { "kind": "response", @@ -246136,7 +246136,7 @@ } ], "query": [], - "specLocation": "security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L58" + "specLocation": "security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L59" }, { "kind": "response", @@ -246332,7 +246332,7 @@ } } ], - "specLocation": "security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L86" + "specLocation": "security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L88" }, { "kind": "response", @@ -246535,7 +246535,7 @@ }, "path": [], "query": [], - "specLocation": "security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L86" + "specLocation": "security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L88" }, { "kind": "response", @@ -246727,7 +246727,7 @@ } } ], - "specLocation": "security/create_service_token/CreateServiceTokenRequest.ts#L23-L72" + "specLocation": "security/create_service_token/CreateServiceTokenRequest.ts#L23-L73" }, { "kind": "response", @@ -247096,7 +247096,7 @@ }, "path": [], "query": [], - "specLocation": "security/delegate_pki/SecurityDelegatePkiRequest.ts#L22-L57" + "specLocation": "security/delegate_pki/SecurityDelegatePkiRequest.ts#L23-L59" }, { "kind": "response", @@ -247275,7 +247275,7 @@ } } ], - "specLocation": "security/delete_privileges/SecurityDeletePrivilegesRequest.ts#L23-L58" + "specLocation": "security/delete_privileges/SecurityDeletePrivilegesRequest.ts#L23-L59" }, { "kind": "response", @@ -247402,7 +247402,7 @@ } } ], - "specLocation": "security/delete_role/SecurityDeleteRoleRequest.ts#L23-L49" + "specLocation": "security/delete_role/SecurityDeleteRoleRequest.ts#L23-L50" }, { "kind": "response", @@ -247513,7 +247513,7 @@ } } ], - "specLocation": "security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts#L23-L53" + "specLocation": "security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts#L23-L54" }, { "kind": "response", @@ -247648,7 +247648,7 @@ } } ], - "specLocation": "security/delete_service_token/DeleteServiceTokenRequest.ts#L23-L58" + "specLocation": "security/delete_service_token/DeleteServiceTokenRequest.ts#L23-L59" }, { "kind": "response", @@ -247759,7 +247759,7 @@ } } ], - "specLocation": "security/delete_user/SecurityDeleteUserRequest.ts#L23-L48" + "specLocation": "security/delete_user/SecurityDeleteUserRequest.ts#L23-L49" }, { "kind": "response", @@ -247870,7 +247870,7 @@ } } ], - "specLocation": "security/disable_user/SecurityDisableUserRequest.ts#L23-L50" + "specLocation": "security/disable_user/SecurityDisableUserRequest.ts#L23-L51" }, { "kind": "response", @@ -247963,7 +247963,7 @@ } } ], - "specLocation": "security/disable_user_profile/Request.ts#L24-L63" + "specLocation": "security/disable_user_profile/Request.ts#L24-L64" }, { "kind": "response", @@ -248062,7 +248062,7 @@ } } ], - "specLocation": "security/enable_user/SecurityEnableUserRequest.ts#L23-L49" + "specLocation": "security/enable_user/SecurityEnableUserRequest.ts#L23-L50" }, { "kind": "response", @@ -248155,7 +248155,7 @@ } } ], - "specLocation": "security/enable_user_profile/Request.ts#L24-L64" + "specLocation": "security/enable_user_profile/Request.ts#L24-L65" }, { "kind": "response", @@ -248228,7 +248228,7 @@ }, "path": [], "query": [], - "specLocation": "security/enroll_kibana/Request.ts#L22-L40" + "specLocation": "security/enroll_kibana/Request.ts#L23-L43" }, { "kind": "response", @@ -248327,7 +248327,7 @@ }, "path": [], "query": [], - "specLocation": "security/enroll_node/Request.ts#L22-L40" + "specLocation": "security/enroll_node/Request.ts#L23-L43" }, { "kind": "response", @@ -248594,7 +248594,7 @@ } } ], - "specLocation": "security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L95" + "specLocation": "security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L96" }, { "kind": "response", @@ -248687,7 +248687,7 @@ }, "path": [], "query": [], - "specLocation": "security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L22-L40" + "specLocation": "security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L23-L42" }, { "kind": "response", @@ -248835,7 +248835,7 @@ } ], "query": [], - "specLocation": "security/get_privileges/SecurityGetPrivilegesRequest.ts#L23-L65" + "specLocation": "security/get_privileges/SecurityGetPrivilegesRequest.ts#L23-L66" }, { "kind": "response", @@ -248949,7 +248949,7 @@ } ], "query": [], - "specLocation": "security/get_role/SecurityGetRoleRequest.ts#L23-L54" + "specLocation": "security/get_role/SecurityGetRoleRequest.ts#L23-L55" }, { "kind": "response", @@ -249263,7 +249263,7 @@ } ], "query": [], - "specLocation": "security/get_role_mapping/SecurityGetRoleMappingRequest.ts#L23-L53" + "specLocation": "security/get_role_mapping/SecurityGetRoleMappingRequest.ts#L23-L54" }, { "kind": "response", @@ -249378,7 +249378,7 @@ } ], "query": [], - "specLocation": "security/get_service_accounts/GetServiceAccountsRequest.ts#L23-L64" + "specLocation": "security/get_service_accounts/GetServiceAccountsRequest.ts#L23-L65" }, { "kind": "response", @@ -249583,7 +249583,7 @@ } ], "query": [], - "specLocation": "security/get_service_credentials/GetServiceCredentialsRequest.ts#L23-L56" + "specLocation": "security/get_service_credentials/GetServiceCredentialsRequest.ts#L23-L57" }, { "kind": "response", @@ -249726,7 +249726,7 @@ } } ], - "specLocation": "security/get_settings/SecurityGetSettingsRequest.ts#L23-L52" + "specLocation": "security/get_settings/SecurityGetSettingsRequest.ts#L24-L55" }, { "kind": "response", @@ -249798,7 +249798,7 @@ }, "path": [], "query": [], - "specLocation": "security/get_stats/SecurityStatsRequest.ts#L22-L40" + "specLocation": "security/get_stats/SecurityStatsRequest.ts#L23-L43" }, { "kind": "response", @@ -250121,7 +250121,7 @@ }, "path": [], "query": [], - "specLocation": "security/get_token/GetUserAccessTokenRequest.ts#L25-L90" + "specLocation": "security/get_token/GetUserAccessTokenRequest.ts#L25-L92" }, { "kind": "response", @@ -250357,7 +250357,7 @@ } } ], - "specLocation": "security/get_user/SecurityGetUserRequest.ts#L23-L56" + "specLocation": "security/get_user/SecurityGetUserRequest.ts#L23-L57" }, { "kind": "response", @@ -250447,7 +250447,7 @@ }, "path": [], "query": [], - "specLocation": "security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L22-L41" + "specLocation": "security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L23-L43" }, { "kind": "response", @@ -250717,7 +250717,7 @@ } } ], - "specLocation": "security/get_user_profile/Request.ts#L23-L59" + "specLocation": "security/get_user_profile/Request.ts#L24-L61" }, { "kind": "response", @@ -251060,7 +251060,7 @@ } } ], - "specLocation": "security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L102" + "specLocation": "security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L104" }, { "kind": "response", @@ -251404,7 +251404,7 @@ } ], "query": [], - "specLocation": "security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L59" + "specLocation": "security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L61" }, { "kind": "type_alias", @@ -251707,7 +251707,7 @@ }, "path": [], "query": [], - "specLocation": "security/has_privileges_user_profile/Request.ts#L24-L55" + "specLocation": "security/has_privileges_user_profile/Request.ts#L25-L58" }, { "kind": "response", @@ -252047,7 +252047,7 @@ }, "path": [], "query": [], - "specLocation": "security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L82" + "specLocation": "security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L84" }, { "kind": "response", @@ -252358,7 +252358,7 @@ }, "path": [], "query": [], - "specLocation": "security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L71" + "specLocation": "security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L73" }, { "kind": "response", @@ -252534,7 +252534,7 @@ }, "path": [], "query": [], - "specLocation": "security/oidc_authenticate/Request.ts#L22-L62" + "specLocation": "security/oidc_authenticate/Request.ts#L23-L65" }, { "kind": "response", @@ -252683,7 +252683,7 @@ }, "path": [], "query": [], - "specLocation": "security/oidc_logout/Request.ts#L22-L52" + "specLocation": "security/oidc_logout/Request.ts#L23-L55" }, { "kind": "response", @@ -252897,7 +252897,7 @@ }, "path": [], "query": [], - "specLocation": "security/oidc_prepare_authentication/Request.ts#L22-L71" + "specLocation": "security/oidc_prepare_authentication/Request.ts#L23-L74" }, { "kind": "response", @@ -253150,7 +253150,7 @@ } } ], - "specLocation": "security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L67" + "specLocation": "security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L69" }, { "kind": "response", @@ -253517,7 +253517,7 @@ } } ], - "specLocation": "security/put_role/SecurityPutRoleRequest.ts#L32-L111" + "specLocation": "security/put_role/SecurityPutRoleRequest.ts#L32-L113" }, { "kind": "response", @@ -253969,7 +253969,7 @@ } } ], - "specLocation": "security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L103" + "specLocation": "security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L105" }, { "kind": "response", @@ -254220,7 +254220,7 @@ } } ], - "specLocation": "security/put_user/SecurityPutUserRequest.ts#L23-L101" + "specLocation": "security/put_user/SecurityPutUserRequest.ts#L29-L109" }, { "kind": "response", @@ -255104,7 +255104,7 @@ } } ], - "specLocation": "security/query_api_keys/QueryApiKeysRequest.ts#L26-L127" + "specLocation": "security/query_api_keys/QueryApiKeysRequest.ts#L27-L130" }, { "kind": "response", @@ -255392,7 +255392,7 @@ }, "path": [], "query": [], - "specLocation": "security/query_role/QueryRolesRequest.ts#L25-L86" + "specLocation": "security/query_role/QueryRolesRequest.ts#L26-L89" }, { "kind": "response", @@ -255877,7 +255877,7 @@ } } ], - "specLocation": "security/query_user/SecurityQueryUserRequest.ts#L25-L91" + "specLocation": "security/query_user/SecurityQueryUserRequest.ts#L26-L94" }, { "kind": "response", @@ -256263,7 +256263,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_authenticate/Request.ts#L23-L61" + "specLocation": "security/saml_authenticate/Request.ts#L23-L63" }, { "kind": "response", @@ -256481,7 +256481,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_complete_logout/Request.ts#L23-L61" + "specLocation": "security/saml_complete_logout/Request.ts#L23-L63" }, { "kind": "response", @@ -256586,7 +256586,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_invalidate/Request.ts#L22-L61" + "specLocation": "security/saml_invalidate/Request.ts#L23-L64" }, { "kind": "response", @@ -256723,7 +256723,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_logout/Request.ts#L22-L57" + "specLocation": "security/saml_logout/Request.ts#L23-L60" }, { "kind": "response", @@ -256881,7 +256881,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_prepare_authentication/Request.ts#L22-L67" + "specLocation": "security/saml_prepare_authentication/Request.ts#L23-L70" }, { "kind": "response", @@ -257003,7 +257003,7 @@ } ], "query": [], - "specLocation": "security/saml_service_provider_metadata/Request.ts#L23-L46" + "specLocation": "security/saml_service_provider_metadata/Request.ts#L23-L48" }, { "kind": "response", @@ -257247,7 +257247,7 @@ } } ], - "specLocation": "security/suggest_user_profiles/Request.ts#L24-L81" + "specLocation": "security/suggest_user_profiles/Request.ts#L25-L84" }, { "kind": "response", @@ -257488,7 +257488,7 @@ } ], "query": [], - "specLocation": "security/update_api_key/Request.ts#L26-L91" + "specLocation": "security/update_api_key/Request.ts#L26-L93" }, { "kind": "response", @@ -257639,7 +257639,7 @@ } ], "query": [], - "specLocation": "security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L94" + "specLocation": "security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L96" }, { "kind": "response", @@ -257790,7 +257790,7 @@ } } ], - "specLocation": "security/update_settings/SecurityUpdateSettingsRequest.ts#L24-L72" + "specLocation": "security/update_settings/SecurityUpdateSettingsRequest.ts#L25-L75" }, { "kind": "response", @@ -257961,7 +257961,7 @@ } } ], - "specLocation": "security/update_user_profile_data/Request.ts#L27-L98" + "specLocation": "security/update_user_profile_data/Request.ts#L27-L100" }, { "kind": "response", @@ -258099,7 +258099,7 @@ } } ], - "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L62" + "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L64" }, { "kind": "response", @@ -258354,7 +258354,7 @@ } } ], - "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L59" + "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L61" }, { "kind": "response", @@ -258592,7 +258592,7 @@ } } ], - "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L108" + "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L110" }, { "kind": "response", @@ -258797,7 +258797,7 @@ "name": "MergeType", "namespace": "simulate.ingest" }, - "specLocation": "simulate/ingest/SimulateIngestRequest.ts#L111-L114" + "specLocation": "simulate/ingest/SimulateIngestRequest.ts#L113-L116" }, { "kind": "request", @@ -259086,7 +259086,7 @@ } } ], - "specLocation": "simulate/ingest/SimulateIngestRequest.ts#L29-L109" + "specLocation": "simulate/ingest/SimulateIngestRequest.ts#L29-L111" }, { "kind": "response", @@ -259886,7 +259886,7 @@ } } ], - "specLocation": "slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L24-L59" + "specLocation": "slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L24-L60" }, { "kind": "response", @@ -259999,7 +259999,7 @@ } } ], - "specLocation": "slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L24-L59" + "specLocation": "slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L24-L60" }, { "kind": "response", @@ -260110,7 +260110,7 @@ } } ], - "specLocation": "slm/execute_retention/ExecuteRetentionRequest.ts#L23-L55" + "specLocation": "slm/execute_retention/ExecuteRetentionRequest.ts#L24-L57" }, { "kind": "response", @@ -260223,7 +260223,7 @@ } } ], - "specLocation": "slm/get_lifecycle/GetSnapshotLifecycleRequest.ts#L24-L65" + "specLocation": "slm/get_lifecycle/GetSnapshotLifecycleRequest.ts#L24-L66" }, { "kind": "response", @@ -260341,7 +260341,7 @@ } } ], - "specLocation": "slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L23-L52" + "specLocation": "slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L24-L54" }, { "kind": "response", @@ -260563,7 +260563,7 @@ } } ], - "specLocation": "slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L23-L55" + "specLocation": "slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L24-L57" }, { "kind": "response", @@ -260784,7 +260784,7 @@ } } ], - "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L90" + "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L92" }, { "kind": "response", @@ -260884,7 +260884,7 @@ } } ], - "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L23-L57" + "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L24-L59" }, { "kind": "response", @@ -260959,7 +260959,7 @@ } } ], - "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L23-L61" + "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L24-L63" }, { "kind": "response", @@ -263156,7 +263156,7 @@ } } ], - "specLocation": "snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L64" + "specLocation": "snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L65" }, { "kind": "response", @@ -263308,7 +263308,7 @@ } } ], - "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L71" + "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L73" }, { "kind": "response", @@ -263530,7 +263530,7 @@ } } ], - "specLocation": "snapshot/create/SnapshotCreateRequest.ts#L24-L127" + "specLocation": "snapshot/create/SnapshotCreateRequest.ts#L30-L135" }, { "kind": "response", @@ -263858,7 +263858,7 @@ } } ], - "specLocation": "snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L80" + "specLocation": "snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L82" }, { "kind": "response", @@ -263983,7 +263983,7 @@ } } ], - "specLocation": "snapshot/delete/SnapshotDeleteRequest.ts#L24-L66" + "specLocation": "snapshot/delete/SnapshotDeleteRequest.ts#L24-L67" }, { "kind": "response", @@ -264103,7 +264103,7 @@ } } ], - "specLocation": "snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L65" + "specLocation": "snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L66" }, { "kind": "response", @@ -264455,7 +264455,7 @@ } } ], - "specLocation": "snapshot/get/SnapshotGetRequest.ts#L28-L166" + "specLocation": "snapshot/get/SnapshotGetRequest.ts#L28-L167" }, { "kind": "response", @@ -264691,7 +264691,7 @@ } } ], - "specLocation": "snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L69" + "specLocation": "snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L70" }, { "kind": "response", @@ -265515,7 +265515,7 @@ } } ], - "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts#L25-L226" + "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts#L25-L227" }, { "kind": "response", @@ -266131,7 +266131,7 @@ } } ], - "specLocation": "snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L127" + "specLocation": "snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L128" }, { "kind": "response", @@ -266423,7 +266423,7 @@ } } ], - "specLocation": "snapshot/restore/SnapshotRestoreRequest.ts#L25-L176" + "specLocation": "snapshot/restore/SnapshotRestoreRequest.ts#L25-L178" }, { "kind": "response", @@ -266610,7 +266610,7 @@ } } ], - "specLocation": "snapshot/status/SnapshotStatusRequest.ts#L24-L97" + "specLocation": "snapshot/status/SnapshotStatusRequest.ts#L24-L98" }, { "kind": "response", @@ -266766,7 +266766,7 @@ } } ], - "specLocation": "snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L64" + "specLocation": "snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L65" }, { "kind": "response", @@ -266918,7 +266918,7 @@ }, "path": [], "query": [], - "specLocation": "sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L43" + "specLocation": "sql/clear_cursor/ClearSqlCursorRequest.ts#L23-L46" }, { "kind": "response", @@ -267009,7 +267009,7 @@ } ], "query": [], - "specLocation": "sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L52" + "specLocation": "sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L53" }, { "kind": "response", @@ -267146,7 +267146,7 @@ } } ], - "specLocation": "sql/get_async/SqlGetAsyncRequest.ts#L24-L73" + "specLocation": "sql/get_async/SqlGetAsyncRequest.ts#L24-L74" }, { "kind": "response", @@ -267304,7 +267304,7 @@ } ], "query": [], - "specLocation": "sql/get_async_status/SqlGetAsyncStatusRequest.ts#L23-L46" + "specLocation": "sql/get_async_status/SqlGetAsyncStatusRequest.ts#L23-L47" }, { "kind": "response", @@ -267721,7 +267721,7 @@ } } ], - "specLocation": "sql/query/QuerySqlRequest.ts#L28-L165" + "specLocation": "sql/query/QuerySqlRequest.ts#L28-L167" }, { "kind": "response", @@ -267843,7 +267843,7 @@ "name": "SqlFormat", "namespace": "sql.query" }, - "specLocation": "sql/query/QuerySqlRequest.ts#L167-L175" + "specLocation": "sql/query/QuerySqlRequest.ts#L169-L177" }, { "kind": "request", @@ -267958,7 +267958,7 @@ }, "path": [], "query": [], - "specLocation": "sql/translate/TranslateSqlRequest.ts#L25-L66" + "specLocation": "sql/translate/TranslateSqlRequest.ts#L26-L69" }, { "kind": "response", @@ -268234,7 +268234,7 @@ }, "path": [], "query": [], - "specLocation": "ssl/certificates/GetCertificatesRequest.ts#L22-L55" + "specLocation": "ssl/certificates/GetCertificatesRequest.ts#L23-L57" }, { "kind": "response", @@ -268344,7 +268344,7 @@ } } ], - "specLocation": "streams/logs_disable/StreamsLogsDisableRequest.ts#L23-L55" + "specLocation": "streams/logs_disable/StreamsLogsDisableRequest.ts#L24-L57" }, { "kind": "response", @@ -268452,7 +268452,7 @@ } } ], - "specLocation": "streams/logs_enable/StreamsLogsEnableRequest.ts#L23-L59" + "specLocation": "streams/logs_enable/StreamsLogsEnableRequest.ts#L24-L61" }, { "kind": "response", @@ -268569,7 +268569,7 @@ } } ], - "specLocation": "streams/status/StreamsStatusRequest.ts#L23-L47" + "specLocation": "streams/status/StreamsStatusRequest.ts#L24-L49" }, { "kind": "response", @@ -268807,7 +268807,7 @@ } ], "query": [], - "specLocation": "synonyms/delete_synonym/SynonymsDeleteRequest.ts#L22-L60" + "specLocation": "synonyms/delete_synonym/SynonymsDeleteRequest.ts#L22-L61" }, { "kind": "response", @@ -268924,7 +268924,7 @@ } } ], - "specLocation": "synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts#L22-L58" + "specLocation": "synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts#L22-L60" }, { "kind": "response", @@ -269043,7 +269043,7 @@ } } ], - "specLocation": "synonyms/get_synonym/SynonymsGetRequest.ts#L23-L57" + "specLocation": "synonyms/get_synonym/SynonymsGetRequest.ts#L23-L58" }, { "kind": "response", @@ -269168,7 +269168,7 @@ } ], "query": [], - "specLocation": "synonyms/get_synonym_rule/SynonymRuleGetRequest.ts#L22-L49" + "specLocation": "synonyms/get_synonym_rule/SynonymRuleGetRequest.ts#L22-L51" }, { "kind": "response", @@ -269274,7 +269274,7 @@ } } ], - "specLocation": "synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts#L22-L51" + "specLocation": "synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts#L23-L53" }, { "kind": "response", @@ -269465,7 +269465,7 @@ } } ], - "specLocation": "synonyms/put_synonym/SynonymsPutRequest.ts#L23-L68" + "specLocation": "synonyms/put_synonym/SynonymsPutRequest.ts#L23-L70" }, { "kind": "response", @@ -269620,7 +269620,7 @@ } } ], - "specLocation": "synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L70" + "specLocation": "synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L72" }, { "kind": "response", @@ -270242,7 +270242,7 @@ } } ], - "specLocation": "tasks/cancel/CancelTasksRequest.ts#L23-L78" + "specLocation": "tasks/cancel/CancelTasksRequest.ts#L23-L79" }, { "kind": "response", @@ -270351,7 +270351,7 @@ } } ], - "specLocation": "tasks/get/GetTaskRequest.ts#L24-L65" + "specLocation": "tasks/get/GetTaskRequest.ts#L24-L66" }, { "kind": "response", @@ -270570,7 +270570,7 @@ } } ], - "specLocation": "tasks/list/ListTasksRequest.ts#L25-L140" + "specLocation": "tasks/list/ListTasksRequest.ts#L25-L141" }, { "kind": "response", @@ -271015,7 +271015,7 @@ } } ], - "specLocation": "text_structure/find_field_structure/FindFieldStructureRequest.ts#L26-L185" + "specLocation": "text_structure/find_field_structure/FindFieldStructureRequest.ts#L26-L186" }, { "kind": "response", @@ -271440,7 +271440,7 @@ } } ], - "specLocation": "text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L176" + "specLocation": "text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L178" }, { "kind": "response", @@ -271663,7 +271663,7 @@ "name": "FindStructureFormat", "namespace": "text_structure.find_structure" }, - "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L211-L216" + "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L213-L218" }, { "kind": "request", @@ -271924,7 +271924,7 @@ } } ], - "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L24-L209" + "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L24-L211" }, { "kind": "response", @@ -272409,7 +272409,7 @@ } } ], - "specLocation": "text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L60" + "specLocation": "text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L62" }, { "kind": "response", @@ -273016,7 +273016,7 @@ } } ], - "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L65" + "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L66" }, { "kind": "response", @@ -273064,7 +273064,7 @@ }, "path": [], "query": [], - "specLocation": "transform/get_node_stats/GetNodeStatsRequest.ts#L22-L38" + "specLocation": "transform/get_node_stats/GetNodeStatsRequest.ts#L23-L40" }, { "kind": "response", @@ -273308,7 +273308,7 @@ } } ], - "specLocation": "transform/get_transform/GetTransformRequest.ts#L24-L85" + "specLocation": "transform/get_transform/GetTransformRequest.ts#L24-L86" }, { "kind": "response", @@ -273846,7 +273846,7 @@ } } ], - "specLocation": "transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L77" + "specLocation": "transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L78" }, { "kind": "response", @@ -274607,7 +274607,7 @@ } } ], - "specLocation": "transform/preview_transform/PreviewTransformRequest.ts#L33-L120" + "specLocation": "transform/preview_transform/PreviewTransformRequest.ts#L33-L122" }, { "kind": "response", @@ -274909,7 +274909,7 @@ } } ], - "specLocation": "transform/put_transform/PutTransformRequest.ts#L33-L132" + "specLocation": "transform/put_transform/PutTransformRequest.ts#L33-L134" }, { "kind": "response", @@ -275028,7 +275028,7 @@ } } ], - "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L62" + "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L63" }, { "kind": "response", @@ -275134,7 +275134,7 @@ } } ], - "specLocation": "transform/schedule_now_transform/ScheduleNowTransformRequest.ts#L23-L57" + "specLocation": "transform/schedule_now_transform/ScheduleNowTransformRequest.ts#L23-L59" }, { "kind": "response", @@ -275240,7 +275240,7 @@ } } ], - "specLocation": "transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts#L23-L65" + "specLocation": "transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts#L24-L67" }, { "kind": "response", @@ -275352,7 +275352,7 @@ } } ], - "specLocation": "transform/start_transform/StartTransformRequest.ts#L24-L72" + "specLocation": "transform/start_transform/StartTransformRequest.ts#L24-L73" }, { "kind": "response", @@ -275510,7 +275510,7 @@ } } ], - "specLocation": "transform/stop_transform/StopTransformRequest.ts#L24-L85" + "specLocation": "transform/stop_transform/StopTransformRequest.ts#L24-L86" }, { "kind": "response", @@ -275741,7 +275741,7 @@ } } ], - "specLocation": "transform/update_transform/UpdateTransformRequest.ts#L31-L114" + "specLocation": "transform/update_transform/UpdateTransformRequest.ts#L31-L116" }, { "kind": "response", @@ -275995,7 +275995,7 @@ } } ], - "specLocation": "transform/upgrade_transforms/UpgradeTransformsRequest.ts#L23-L65" + "specLocation": "transform/upgrade_transforms/UpgradeTransformsRequest.ts#L24-L68" }, { "kind": "response", @@ -280583,7 +280583,7 @@ } ], "query": [], - "specLocation": "watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L64" + "specLocation": "watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L65" }, { "kind": "response", @@ -280680,7 +280680,7 @@ } ], "query": [], - "specLocation": "watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L46" + "specLocation": "watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L47" }, { "kind": "response", @@ -280771,7 +280771,7 @@ } ], "query": [], - "specLocation": "watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L46" + "specLocation": "watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L47" }, { "kind": "response", @@ -280862,7 +280862,7 @@ } ], "query": [], - "specLocation": "watcher/delete_watch/DeleteWatchRequest.ts#L23-L51" + "specLocation": "watcher/delete_watch/DeleteWatchRequest.ts#L23-L52" }, { "kind": "response", @@ -281168,7 +281168,7 @@ } } ], - "specLocation": "watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L108" + "specLocation": "watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L110" }, { "kind": "response", @@ -281413,7 +281413,7 @@ } } ], - "specLocation": "watcher/get_settings/WatcherGetSettingsRequest.ts#L23-L47" + "specLocation": "watcher/get_settings/WatcherGetSettingsRequest.ts#L24-L50" }, { "kind": "response", @@ -281510,7 +281510,7 @@ } ], "query": [], - "specLocation": "watcher/get_watch/GetWatchRequest.ts#L23-L44" + "specLocation": "watcher/get_watch/GetWatchRequest.ts#L23-L45" }, { "kind": "response", @@ -281843,7 +281843,7 @@ } } ], - "specLocation": "watcher/put_watch/WatcherPutWatchRequest.ts#L31-L111" + "specLocation": "watcher/put_watch/WatcherPutWatchRequest.ts#L37-L119" }, { "kind": "response", @@ -282033,7 +282033,7 @@ }, "path": [], "query": [], - "specLocation": "watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L71" + "specLocation": "watcher/query_watches/WatcherQueryWatchesRequest.ts#L26-L74" }, { "kind": "response", @@ -282147,7 +282147,7 @@ } } ], - "specLocation": "watcher/start/WatcherStartRequest.ts#L23-L46" + "specLocation": "watcher/start/WatcherStartRequest.ts#L24-L48" }, { "kind": "response", @@ -282295,7 +282295,7 @@ } } ], - "specLocation": "watcher/stats/WatcherStatsRequest.ts#L23-L61" + "specLocation": "watcher/stats/WatcherStatsRequest.ts#L24-L63" }, { "kind": "response", @@ -282673,7 +282673,7 @@ } } ], - "specLocation": "watcher/stop/WatcherStopRequest.ts#L23-L48" + "specLocation": "watcher/stop/WatcherStopRequest.ts#L24-L50" }, { "kind": "response", @@ -282803,7 +282803,7 @@ } } ], - "specLocation": "watcher/update_settings/WatcherUpdateSettingsRequest.ts#L24-L63" + "specLocation": "watcher/update_settings/WatcherUpdateSettingsRequest.ts#L25-L66" }, { "kind": "response", @@ -283445,7 +283445,7 @@ } } ], - "specLocation": "xpack/info/XPackInfoRequest.ts#L22-L60" + "specLocation": "xpack/info/XPackInfoRequest.ts#L23-L62" }, { "kind": "response", @@ -283527,7 +283527,7 @@ "name": "XPackCategory", "namespace": "xpack.info" }, - "specLocation": "xpack/info/XPackInfoRequest.ts#L62-L66" + "specLocation": "xpack/info/XPackInfoRequest.ts#L64-L68" }, { "kind": "interface", @@ -285839,7 +285839,7 @@ } } ], - "specLocation": "xpack/usage/XPackUsageRequest.ts#L23-L50" + "specLocation": "xpack/usage/XPackUsageRequest.ts#L24-L52" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 1e6d868821..478e127529 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -29,6 +29,7 @@ "Dangling type '_types:HttpMethod'", "Dangling type '_types:LogLevel'", "Dangling type '_types:LongId'", + "Dangling type '_types:MediaType'", "Dangling type '_types:Transform'", "Dangling type '_types:UnitFloatSeconds'", "Dangling type '_types:Uri'", diff --git a/specification/_global/bulk/BulkRequest.ts b/specification/_global/bulk/BulkRequest.ts index eb06481661..a2ffb6d19c 100644 --- a/specification/_global/bulk/BulkRequest.ts +++ b/specification/_global/bulk/BulkRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Fields, IndexName, + MediaType, Refresh, Routing, WaitForActiveShards @@ -170,6 +171,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * True or false if to include the document source in the error message in case of parsing errors. diff --git a/specification/_global/capabilities/CapabilitiesRequest.ts b/specification/_global/capabilities/CapabilitiesRequest.ts index 76f6a33d61..89eb55ea51 100644 --- a/specification/_global/capabilities/CapabilitiesRequest.ts +++ b/specification/_global/capabilities/CapabilitiesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Checks if the specified combination of method, API, parameters, and arbitrary capabilities are supported. @@ -34,6 +35,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * REST method to check diff --git a/specification/_global/clear_scroll/ClearScrollRequest.ts b/specification/_global/clear_scroll/ClearScrollRequest.ts index 7027fe496e..291bd01c79 100644 --- a/specification/_global/clear_scroll/ClearScrollRequest.ts +++ b/specification/_global/clear_scroll/ClearScrollRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ScrollIds } from '@_types/common' +import { MediaType, ScrollIds } from '@_types/common' /** * Clear a scrolling search. @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ scroll_id?: ScrollIds } + request_media_type: MediaType.Text | MediaType.Json + response_media_type: MediaType.Json body?: { /** * The scroll IDs to clear. diff --git a/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts b/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts index 0156c29866..5059804d86 100644 --- a/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts +++ b/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Close a point in time. @@ -40,6 +40,8 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The ID of the point-in-time. diff --git a/specification/_global/count/CountRequest.ts b/specification/_global/count/CountRequest.ts index a7545e84d7..eb5aac3cb5 100644 --- a/specification/_global/count/CountRequest.ts +++ b/specification/_global/count/CountRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, + MediaType, ProjectRouting, Routing } from '@_types/common' @@ -67,6 +68,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/create/CreateRequest.ts b/specification/_global/create/CreateRequest.ts index 06e19ff024..5c54674b79 100644 --- a/specification/_global/create/CreateRequest.ts +++ b/specification/_global/create/CreateRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Id, IndexName, + MediaType, Refresh, Routing, VersionNumber, @@ -130,6 +131,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * True or false if to include the document source in the error message in case of parsing errors. diff --git a/specification/_global/delete/DeleteRequest.ts b/specification/_global/delete/DeleteRequest.ts index 1d92d6c3a0..48f2167414 100644 --- a/specification/_global/delete/DeleteRequest.ts +++ b/specification/_global/delete/DeleteRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Id, IndexName, + MediaType, Refresh, Routing, SequenceNumber, @@ -95,6 +96,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Only perform the operation if the document has this primary term. diff --git a/specification/_global/delete_by_query/DeleteByQueryRequest.ts b/specification/_global/delete_by_query/DeleteByQueryRequest.ts index 09e4db4233..1e61e56a5c 100644 --- a/specification/_global/delete_by_query/DeleteByQueryRequest.ts +++ b/specification/_global/delete_by_query/DeleteByQueryRequest.ts @@ -22,6 +22,7 @@ import { Conflicts, ExpandWildcards, Indices, + MediaType, Routing, SearchType, Slices, @@ -137,6 +138,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts b/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts index e98ff6eba7..e7effffd04 100644 --- a/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts +++ b/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { TaskId } from '@_types/common' +import { MediaType, TaskId } from '@_types/common' import { float } from '@_types/Numeric' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ task_id: TaskId } + response_media_type: MediaType.Json query_parameters: { /** * The throttle for this request in sub-requests per second. diff --git a/specification/_global/delete_script/DeleteScriptRequest.ts b/specification/_global/delete_script/DeleteScriptRequest.ts index b5f6e5545b..ac17a3af16 100644 --- a/specification/_global/delete_script/DeleteScriptRequest.ts +++ b/specification/_global/delete_script/DeleteScriptRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/_global/exists/DocumentExistsRequest.ts b/specification/_global/exists/DocumentExistsRequest.ts index 5b78709d63..a9b5ac37cd 100644 --- a/specification/_global/exists/DocumentExistsRequest.ts +++ b/specification/_global/exists/DocumentExistsRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -72,6 +73,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The node or shard the operation should be performed on. diff --git a/specification/_global/exists_source/SourceExistsRequest.ts b/specification/_global/exists_source/SourceExistsRequest.ts index 71384dd241..cc5189589d 100644 --- a/specification/_global/exists_source/SourceExistsRequest.ts +++ b/specification/_global/exists_source/SourceExistsRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -65,6 +66,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The node or shard the operation should be performed on. diff --git a/specification/_global/explain/ExplainRequest.ts b/specification/_global/explain/ExplainRequest.ts index e55532ce6a..7e4ceb2876 100644 --- a/specification/_global/explain/ExplainRequest.ts +++ b/specification/_global/explain/ExplainRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Fields, Id, IndexName, Routing } from '@_types/common' +import { Fields, Id, IndexName, MediaType, Routing } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Operator } from '@_types/query_dsl/Operator' import { SourceConfigParam } from '@global/search/_types/SourceFilter' @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The analyzer to use for the query string. diff --git a/specification/_global/field_caps/FieldCapabilitiesRequest.ts b/specification/_global/field_caps/FieldCapabilitiesRequest.ts index e5b1ad790f..9bd767e3c1 100644 --- a/specification/_global/field_caps/FieldCapabilitiesRequest.ts +++ b/specification/_global/field_caps/FieldCapabilitiesRequest.ts @@ -22,6 +22,7 @@ import { ExpandWildcards, Fields, Indices, + MediaType, ProjectRouting } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' @@ -59,6 +60,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, diff --git a/specification/_global/get/GetRequest.ts b/specification/_global/get/GetRequest.ts index afcbc5f37b..357d22f17e 100644 --- a/specification/_global/get/GetRequest.ts +++ b/specification/_global/get/GetRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -107,6 +108,7 @@ export interface Request extends RequestBase { /** The name of the index that contains the document. */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether the request forces synthetic `_source`. diff --git a/specification/_global/get_script/GetScriptRequest.ts b/specification/_global/get_script/GetScriptRequest.ts index 0f1d665b3a..1b8b8a11da 100644 --- a/specification/_global/get_script/GetScriptRequest.ts +++ b/specification/_global/get_script/GetScriptRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/_global/get_script_context/GetScriptContextRequest.ts b/specification/_global/get_script_context/GetScriptContextRequest.ts index 1b69e9025b..3dc2a89a91 100644 --- a/specification/_global/get_script_context/GetScriptContextRequest.ts +++ b/specification/_global/get_script_context/GetScriptContextRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get script contexts. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/_global/get_script_languages/GetScriptLanguagesRequest.ts b/specification/_global/get_script_languages/GetScriptLanguagesRequest.ts index 95ceed49c3..720b56d294 100644 --- a/specification/_global/get_script_languages/GetScriptLanguagesRequest.ts +++ b/specification/_global/get_script_languages/GetScriptLanguagesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get script languages. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/_global/get_source/SourceRequest.ts b/specification/_global/get_source/SourceRequest.ts index bf8f338273..6c60d1d253 100644 --- a/specification/_global/get_source/SourceRequest.ts +++ b/specification/_global/get_source/SourceRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -64,6 +65,7 @@ export interface Request extends RequestBase { /** The name of the index that contains the document. */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The node or shard the operation should be performed on. diff --git a/specification/_global/health_report/Request.ts b/specification/_global/health_report/Request.ts index 7bae9ac0bd..4afbbcf542 100644 --- a/specification/_global/health_report/Request.ts +++ b/specification/_global/health_report/Request.ts @@ -20,6 +20,7 @@ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the cluster health. @@ -63,6 +64,7 @@ export interface Request extends RequestBase { */ feature?: string | string[] } + response_media_type: MediaType.Json query_parameters: { /** * Explicit operation timeout. diff --git a/specification/_global/index/IndexRequest.ts b/specification/_global/index/IndexRequest.ts index a00ed9af2f..353310a9d3 100644 --- a/specification/_global/index/IndexRequest.ts +++ b/specification/_global/index/IndexRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Id, IndexName, + MediaType, OpType, Refresh, Routing, @@ -187,6 +188,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Only perform the operation if the document has this primary term. diff --git a/specification/_global/info/RootNodeInfoRequest.ts b/specification/_global/info/RootNodeInfoRequest.ts index 43d5a75ffb..1f081aabac 100644 --- a/specification/_global/info/RootNodeInfoRequest.ts +++ b/specification/_global/info/RootNodeInfoRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get cluster info. @@ -38,4 +39,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/_global/knn_search/KnnSearchRequest.ts b/specification/_global/knn_search/KnnSearchRequest.ts index 1ac4647f21..deff82797a 100644 --- a/specification/_global/knn_search/KnnSearchRequest.ts +++ b/specification/_global/knn_search/KnnSearchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Fields, Indices, Routing } from '@_types/common' +import { Fields, Indices, MediaType, Routing } from '@_types/common' import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions' import { SourceConfig } from '@global/search/_types/SourceFilter' import { KnnSearchQuery } from './_types/Knn' @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of specific routing values. diff --git a/specification/_global/mget/MultiGetRequest.ts b/specification/_global/mget/MultiGetRequest.ts index f175b8b987..e64a473fad 100644 --- a/specification/_global/mget/MultiGetRequest.ts +++ b/specification/_global/mget/MultiGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Fields, Ids, IndexName, Routing } from '@_types/common' +import { Fields, Ids, IndexName, MediaType, Routing } from '@_types/common' import { SourceConfigParam } from '@global/search/_types/SourceFilter' import { Operation } from './types' @@ -64,6 +64,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Should this request force synthetic _source? diff --git a/specification/_global/msearch/MultiSearchRequest.ts b/specification/_global/msearch/MultiSearchRequest.ts index fd7ad2f300..09600d336d 100644 --- a/specification/_global/msearch/MultiSearchRequest.ts +++ b/specification/_global/msearch/MultiSearchRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, + MediaType, ProjectRouting, Routing, SearchType @@ -70,6 +71,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. diff --git a/specification/_global/msearch_template/MultiSearchTemplateRequest.ts b/specification/_global/msearch_template/MultiSearchTemplateRequest.ts index 0a5db835b3..94f221d8c6 100644 --- a/specification/_global/msearch_template/MultiSearchTemplateRequest.ts +++ b/specification/_global/msearch_template/MultiSearchTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, ProjectRouting, SearchType } from '@_types/common' +import { Indices, MediaType, ProjectRouting, SearchType } from '@_types/common' import { long } from '@_types/Numeric' import { RequestItem } from './types' @@ -65,6 +65,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * If `true`, network round-trips are minimized for cross-cluster search requests. diff --git a/specification/_global/mtermvectors/MultiTermVectorsRequest.ts b/specification/_global/mtermvectors/MultiTermVectorsRequest.ts index ae979954b8..da6bc85a8a 100644 --- a/specification/_global/mtermvectors/MultiTermVectorsRequest.ts +++ b/specification/_global/mtermvectors/MultiTermVectorsRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -65,6 +66,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { ids?: Id[] /** diff --git a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts index e809160a77..4ddcf4450d 100644 --- a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts +++ b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, + MediaType, ProjectRouting, Routing } from '@_types/common' @@ -84,6 +85,8 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Extend the length of time that the point in time persists. diff --git a/specification/_global/ping/PingRequest.ts b/specification/_global/ping/PingRequest.ts index 47768f7aac..03ed875b2a 100644 --- a/specification/_global/ping/PingRequest.ts +++ b/specification/_global/ping/PingRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Ping the cluster. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { methods: ['HEAD'] } ] + response_media_type: MediaType.Json } diff --git a/specification/_global/put_script/PutScriptRequest.ts b/specification/_global/put_script/PutScriptRequest.ts index daf25adbaf..e8bf5ea21e 100644 --- a/specification/_global/put_script/PutScriptRequest.ts +++ b/specification/_global/put_script/PutScriptRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name } from '@_types/common' +import { Id, MediaType, Name } from '@_types/common' import { StoredScript } from '@_types/Scripting' import { Duration } from '@_types/Time' @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ context?: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The context in which the script or search template should run. diff --git a/specification/_global/rank_eval/RankEvalRequest.ts b/specification/_global/rank_eval/RankEvalRequest.ts index 68e1704642..04b6481c58 100644 --- a/specification/_global/rank_eval/RankEvalRequest.ts +++ b/specification/_global/rank_eval/RankEvalRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, SearchType } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, SearchType } from '@_types/common' import { RankEvalMetric, RankEvalRequestItem } from './types' /** @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. diff --git a/specification/_global/reindex/ReindexRequest.ts b/specification/_global/reindex/ReindexRequest.ts index 902c8ea528..7f05a91fff 100644 --- a/specification/_global/reindex/ReindexRequest.ts +++ b/specification/_global/reindex/ReindexRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { Conflicts, Slices, WaitForActiveShards } from '@_types/common' +import { + Conflicts, + MediaType, + Slices, + WaitForActiveShards +} from '@_types/common' import { float, integer, long } from '@_types/Numeric' import { Script } from '@_types/Scripting' import { Duration } from '@_types/Time' @@ -88,6 +93,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request refreshes affected shards to make this operation visible to search. diff --git a/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts b/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts index 8d49812825..46c8c31b17 100644 --- a/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts +++ b/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { float } from '@_types/Numeric' /** @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ task_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The throttle for this request in sub-requests per second. diff --git a/specification/_global/render_search_template/RenderSearchTemplateRequest.ts b/specification/_global/render_search_template/RenderSearchTemplateRequest.ts index 2e41526f9a..6ce085f69b 100644 --- a/specification/_global/render_search_template/RenderSearchTemplateRequest.ts +++ b/specification/_global/render_search_template/RenderSearchTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { ScriptSource } from '@_types/Scripting' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The ID of the search template to render. diff --git a/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts b/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts index 8c8d52005d..5d6ca6e7bf 100644 --- a/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts +++ b/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Script } from '@_types/Scripting' import { PainlessContext, PainlessContextSetup } from './types' @@ -44,6 +45,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The context that the script should run in. diff --git a/specification/_global/scroll/ScrollRequest.ts b/specification/_global/scroll/ScrollRequest.ts index cfca34a718..b50f30badb 100644 --- a/specification/_global/scroll/ScrollRequest.ts +++ b/specification/_global/scroll/ScrollRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ScrollId } from '@_types/common' +import { MediaType, ScrollId } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -60,6 +60,8 @@ export interface Request extends RequestBase { /** @deprecated 7.0.0 */ scroll_id?: ScrollId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to retain the search context for scrolling. diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index 1c7985c310..c6617dad67 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -25,6 +25,7 @@ import { Fields, IndexName, Indices, + MediaType, ProjectRouting, Routing, SearchType, @@ -98,6 +99,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/search_mvt/SearchMvtRequest.ts b/specification/_global/search_mvt/SearchMvtRequest.ts index 8486422fb5..143ed24880 100644 --- a/specification/_global/search_mvt/SearchMvtRequest.ts +++ b/specification/_global/search_mvt/SearchMvtRequest.ts @@ -19,7 +19,13 @@ import { AggregationContainer } from '@_types/aggregations/AggregationContainer' import { RequestBase } from '@_types/Base' -import { Field, Fields, Indices, ProjectRouting } from '@_types/common' +import { + Field, + Fields, + Indices, + MediaType, + ProjectRouting +} from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' @@ -160,6 +166,8 @@ export interface Request extends RequestBase { /* The Y coordinate for the vector tile to search. */ y: Coordinate } + request_media_type: MediaType.Json + response_media_type: MediaType.MapboxVectorTile query_parameters: { /** * If `false`, the meta layer's feature is the bounding box of the tile. diff --git a/specification/_global/search_shards/SearchShardsRequest.ts b/specification/_global/search_shards/SearchShardsRequest.ts index 2d69861276..36cb89c99a 100644 --- a/specification/_global/search_shards/SearchShardsRequest.ts +++ b/specification/_global/search_shards/SearchShardsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Routing } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Routing } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -54,6 +54,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/search_template/SearchTemplateRequest.ts b/specification/_global/search_template/SearchTemplateRequest.ts index 640aadcb6d..766a45eb9b 100644 --- a/specification/_global/search_template/SearchTemplateRequest.ts +++ b/specification/_global/search_template/SearchTemplateRequest.ts @@ -22,6 +22,7 @@ import { ExpandWildcards, Id, Indices, + MediaType, ProjectRouting, Routing, SearchType @@ -60,6 +61,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/terms_enum/TermsEnumRequest.ts b/specification/_global/terms_enum/TermsEnumRequest.ts index f63332be68..68be0ea858 100644 --- a/specification/_global/terms_enum/TermsEnumRequest.ts +++ b/specification/_global/terms_enum/TermsEnumRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Indices } from '@_types/common' +import { Field, Indices, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** The string to match at the start of indexed terms. If not provided, all terms in the field are considered. */ field: Field diff --git a/specification/_global/termvectors/TermVectorsRequest.ts b/specification/_global/termvectors/TermVectorsRequest.ts index 1784dc193e..1e9cb406ea 100644 --- a/specification/_global/termvectors/TermVectorsRequest.ts +++ b/specification/_global/termvectors/TermVectorsRequest.ts @@ -23,6 +23,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -102,6 +103,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list or wildcard expressions of fields to include in the statistics. diff --git a/specification/_global/update/UpdateRequest.ts b/specification/_global/update/UpdateRequest.ts index 09ae86859e..392179bbbf 100644 --- a/specification/_global/update/UpdateRequest.ts +++ b/specification/_global/update/UpdateRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Refresh, Routing, SequenceNumber, @@ -82,6 +83,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Only perform the operation if the document has this primary term. diff --git a/specification/_global/update_by_query/UpdateByQueryRequest.ts b/specification/_global/update_by_query/UpdateByQueryRequest.ts index 92623faa4f..618da0bf38 100644 --- a/specification/_global/update_by_query/UpdateByQueryRequest.ts +++ b/specification/_global/update_by_query/UpdateByQueryRequest.ts @@ -22,6 +22,7 @@ import { Conflicts, ExpandWildcards, Indices, + MediaType, Routing, SearchType, Slices, @@ -152,6 +153,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts b/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts index 5e37131147..6b07991379 100644 --- a/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts +++ b/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { float } from '@_types/Numeric' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ task_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The throttle for this request in sub-requests per second. diff --git a/specification/_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts b/specification/_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts index 5ae988ac69..b541754c27 100644 --- a/specification/_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts +++ b/specification/_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * This API is a diagnostics API and the output should not be relied upon for building applications. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts b/specification/_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts index 046c42fbcd..e18a284e17 100644 --- a/specification/_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts +++ b/specification/_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Designed for indirect use by ECE/ESS and ECK, direct use is not supported. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts b/specification/_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts index 5b1ace6e51..9b545dd549 100644 --- a/specification/_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts +++ b/specification/_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * This API is a diagnostics API and the output should not be relied upon for building applications. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts b/specification/_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts index fca80bae87..d006f8f710 100644 --- a/specification/_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts +++ b/specification/_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Gets the latest desired nodes. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts b/specification/_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts index 51d8f05a8d..3656ac353c 100644 --- a/specification/_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts +++ b/specification/_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Prevalidates node removal from the cluster. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of node names to prevalidate diff --git a/specification/_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts b/specification/_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts index 4d4229b8cf..ad2a110f7e 100644 --- a/specification/_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts +++ b/specification/_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -45,6 +46,8 @@ export interface Request extends RequestBase { */ version: long } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Simulate the update diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 16471ef772..eb09c54b45 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -240,6 +240,17 @@ export enum HttpMethod { HEAD } +export enum MediaType { + Json, + Text, + Ndjson, + EventStream, + MapboxVectorTile, + // useful combinations + TextAndJson, + JsonAndNdjson +} + // This is the ClusterStatsLevel enum in Elasticsearch export enum Level { cluster, diff --git a/specification/async_search/delete/AsyncSearchDeleteRequest.ts b/specification/async_search/delete/AsyncSearchDeleteRequest.ts index f06d60b3eb..e7563da023 100644 --- a/specification/async_search/delete/AsyncSearchDeleteRequest.ts +++ b/specification/async_search/delete/AsyncSearchDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an async search. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { /** A unique identifier for the async search. */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/async_search/get/AsyncSearchGetRequest.ts b/specification/async_search/get/AsyncSearchGetRequest.ts index 3c29b4d7a3..45a7cf22c1 100644 --- a/specification/async_search/get/AsyncSearchGetRequest.ts +++ b/specification/async_search/get/AsyncSearchGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** A unique identifier for the async search. */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The length of time that the async search should be available in the cluster. diff --git a/specification/async_search/status/AsyncSearchStatusRequest.ts b/specification/async_search/status/AsyncSearchStatusRequest.ts index 9de0bfa2e0..c0e3e59c6e 100644 --- a/specification/async_search/status/AsyncSearchStatusRequest.ts +++ b/specification/async_search/status/AsyncSearchStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { /** A unique identifier for the async search. */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The length of time that the async search needs to be available. diff --git a/specification/async_search/submit/AsyncSearchSubmitRequest.ts b/specification/async_search/submit/AsyncSearchSubmitRequest.ts index 30673a56ea..c621a8b63f 100644 --- a/specification/async_search/submit/AsyncSearchSubmitRequest.ts +++ b/specification/async_search/submit/AsyncSearchSubmitRequest.ts @@ -25,6 +25,7 @@ import { Fields, IndexName, Indices, + MediaType, ProjectRouting, Routing, SearchType, @@ -84,6 +85,8 @@ export interface Request extends RequestBase { path_parts: { index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Blocks and waits until the search is completed up to a certain timeout. diff --git a/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts b/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts index b508035341..de1018bf17 100644 --- a/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -40,6 +40,7 @@ export interface Request extends RequestBase { path_parts: { name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts b/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts index 7f548d4b57..ac32910931 100644 --- a/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts +++ b/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the autoscaling capacity. @@ -47,6 +48,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts b/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts index bf209ca7af..4ca4e6439c 100644 --- a/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -40,6 +40,7 @@ export interface Request extends RequestBase { path_parts: { name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts b/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts index 8ff8c9a9c5..284cb3be3b 100644 --- a/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { AutoscalingPolicy } from '@autoscaling/_types/AutoscalingPolicy' @@ -41,6 +41,8 @@ export interface Request extends RequestBase { path_parts: { name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/cat/aliases/CatAliasesRequest.ts b/specification/cat/aliases/CatAliasesRequest.ts index d8aa713f15..0fe4aba66b 100644 --- a/specification/cat/aliases/CatAliasesRequest.ts +++ b/specification/cat/aliases/CatAliasesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { ExpandWildcards, Names } from '@_types/common' +import { ExpandWildcards, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatAliasesColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -49,6 +49,7 @@ export interface Request extends CatRequestBase { /** A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`. */ name?: Names } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/allocation/CatAllocationRequest.ts b/specification/cat/allocation/CatAllocationRequest.ts index 559ab8f238..f13bf9e8db 100644 --- a/specification/cat/allocation/CatAllocationRequest.ts +++ b/specification/cat/allocation/CatAllocationRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names, NodeIds } from '@_types/common' +import { MediaType, Names, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' import { CatAllocationColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -48,6 +48,7 @@ export interface Request extends CatRequestBase { /** A comma-separated list of node identifiers or names used to limit the returned information. */ node_id?: NodeIds } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts b/specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts index ff312417bc..9fd138d0cd 100644 --- a/specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts +++ b/specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatCircuitBreakerColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -47,6 +47,7 @@ export interface Request extends CatRequestBase { /** A comma-separated list of regular-expressions to filter the circuit breakers in the output */ circuit_breaker_patterns?: string | string[] } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/component_templates/CatComponentTemplatesRequest.ts b/specification/cat/component_templates/CatComponentTemplatesRequest.ts index 3fb2864181..bb41ce6eac 100644 --- a/specification/cat/component_templates/CatComponentTemplatesRequest.ts +++ b/specification/cat/component_templates/CatComponentTemplatesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatComponentColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -54,6 +54,7 @@ export interface Request extends CatRequestBase { */ name?: string } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/count/CatCountRequest.ts b/specification/cat/count/CatCountRequest.ts index 1ef7349c98..f77ebc7c2c 100644 --- a/specification/cat/count/CatCountRequest.ts +++ b/specification/cat/count/CatCountRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Indices, Names, ProjectRouting } from '@_types/common' +import { Indices, MediaType, Names, ProjectRouting } from '@_types/common' import { CatCountColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/fielddata/CatFielddataRequest.ts b/specification/cat/fielddata/CatFielddataRequest.ts index 5cf2f58b39..54f639a26a 100644 --- a/specification/cat/fielddata/CatFielddataRequest.ts +++ b/specification/cat/fielddata/CatFielddataRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Fields, Names } from '@_types/common' +import { Fields, MediaType, Names } from '@_types/common' import { CatFieldDataColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -51,6 +51,7 @@ export interface Request extends CatRequestBase { */ fields?: Fields } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** Comma-separated list of fields used to limit returned information. */ fields?: Fields diff --git a/specification/cat/health/CatHealthRequest.ts b/specification/cat/health/CatHealthRequest.ts index e2d25331ee..3be0d55cf8 100644 --- a/specification/cat/health/CatHealthRequest.ts +++ b/specification/cat/health/CatHealthRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { CatHealthColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -45,6 +45,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * If true, returns `HH:MM:SS` and Unix epoch timestamps. diff --git a/specification/cat/help/CatHelpRequest.ts b/specification/cat/help/CatHelpRequest.ts index 877fd430f6..b7fa73d25d 100644 --- a/specification/cat/help/CatHelpRequest.ts +++ b/specification/cat/help/CatHelpRequest.ts @@ -17,6 +17,8 @@ * under the License. */ +import { MediaType } from '@_types/common' + /** * Get CAT help. * @@ -33,4 +35,5 @@ export interface Request { methods: ['GET'] } ] + response_media_type: MediaType.Text } diff --git a/specification/cat/indices/CatIndicesRequest.ts b/specification/cat/indices/CatIndicesRequest.ts index ade33c72a3..b819bc6cb0 100644 --- a/specification/cat/indices/CatIndicesRequest.ts +++ b/specification/cat/indices/CatIndicesRequest.ts @@ -17,7 +17,13 @@ * under the License. */ -import { ExpandWildcards, HealthStatus, Indices, Names } from '@_types/common' +import { + ExpandWildcards, + HealthStatus, + Indices, + MediaType, + Names +} from '@_types/common' import { Duration } from '@_types/Time' import { CatIndicesColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -63,6 +69,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * The type of index that wildcard patterns can match. diff --git a/specification/cat/master/CatMasterRequest.ts b/specification/cat/master/CatMasterRequest.ts index 26d1c5bc39..c7556f8685 100644 --- a/specification/cat/master/CatMasterRequest.ts +++ b/specification/cat/master/CatMasterRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatMasterColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -40,6 +40,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts index c24b43f132..8344958618 100644 --- a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts +++ b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CatDfaColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -49,6 +49,7 @@ export interface Request extends CatRequestBase { path_parts: { id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Whether to ignore if a wildcard expression matches no configs. diff --git a/specification/cat/ml_datafeeds/CatDatafeedsRequest.ts b/specification/cat/ml_datafeeds/CatDatafeedsRequest.ts index c7628c2aa8..d3614233f5 100644 --- a/specification/cat/ml_datafeeds/CatDatafeedsRequest.ts +++ b/specification/cat/ml_datafeeds/CatDatafeedsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CatDatafeedColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -55,6 +55,7 @@ export interface Request extends CatRequestBase { */ datafeed_id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/cat/ml_jobs/CatJobsRequest.ts b/specification/cat/ml_jobs/CatJobsRequest.ts index 34e4d543fc..f828dd720a 100644 --- a/specification/cat/ml_jobs/CatJobsRequest.ts +++ b/specification/cat/ml_jobs/CatJobsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CatAnomalyDetectorColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -55,6 +55,7 @@ export interface Request extends CatRequestBase { */ job_id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts index d9413b5281..5dc449c0a1 100644 --- a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts +++ b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ model_id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. diff --git a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts index 96ca2b676b..a0ec37075f 100644 --- a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts +++ b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatNodeattrsColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/nodes/CatNodesRequest.ts b/specification/cat/nodes/CatNodesRequest.ts index bddb1053a1..074232b908 100644 --- a/specification/cat/nodes/CatNodesRequest.ts +++ b/specification/cat/nodes/CatNodesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatNodeColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * If `true`, return the full node ID. If `false`, return the shortened node ID. diff --git a/specification/cat/pending_tasks/CatPendingTasksRequest.ts b/specification/cat/pending_tasks/CatPendingTasksRequest.ts index 80eb0494b7..d4d6c0b50f 100644 --- a/specification/cat/pending_tasks/CatPendingTasksRequest.ts +++ b/specification/cat/pending_tasks/CatPendingTasksRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatPendingTasksColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/plugins/CatPluginsRequest.ts b/specification/cat/plugins/CatPluginsRequest.ts index 4f019d93dd..dabbb184ae 100644 --- a/specification/cat/plugins/CatPluginsRequest.ts +++ b/specification/cat/plugins/CatPluginsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatPluginsColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/recovery/CatRecoveryRequest.ts b/specification/cat/recovery/CatRecoveryRequest.ts index 0ffa203307..0ef5166341 100644 --- a/specification/cat/recovery/CatRecoveryRequest.ts +++ b/specification/cat/recovery/CatRecoveryRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { CatRecoveryColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -52,6 +52,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * If `true`, the response only includes ongoing shard recoveries. diff --git a/specification/cat/repositories/CatRepositoriesRequest.ts b/specification/cat/repositories/CatRepositoriesRequest.ts index be53e62718..985451a576 100644 --- a/specification/cat/repositories/CatRepositoriesRequest.ts +++ b/specification/cat/repositories/CatRepositoriesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/segments/CatSegmentsRequest.ts b/specification/cat/segments/CatSegmentsRequest.ts index c19964b21e..2f05814066 100644 --- a/specification/cat/segments/CatSegmentsRequest.ts +++ b/specification/cat/segments/CatSegmentsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { ExpandWildcards, Indices, Names } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatSegmentsColumns } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. diff --git a/specification/cat/shards/CatShardsRequest.ts b/specification/cat/shards/CatShardsRequest.ts index 2aef08af36..22ce04f1af 100644 --- a/specification/cat/shards/CatShardsRequest.ts +++ b/specification/cat/shards/CatShardsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatShardColumns } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/snapshots/CatSnapshotsRequest.ts b/specification/cat/snapshots/CatSnapshotsRequest.ts index 28f230f617..a832836dcb 100644 --- a/specification/cat/snapshots/CatSnapshotsRequest.ts +++ b/specification/cat/snapshots/CatSnapshotsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatSnapshotsColumns } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ repository?: Names } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * If `true`, the response does not include information from unavailable snapshots. diff --git a/specification/cat/tasks/CatTasksRequest.ts b/specification/cat/tasks/CatTasksRequest.ts index e956aed1d0..eb09512d2b 100644 --- a/specification/cat/tasks/CatTasksRequest.ts +++ b/specification/cat/tasks/CatTasksRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatTasksColumns } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * The task action names, which are used to limit the response. diff --git a/specification/cat/templates/CatTemplatesRequest.ts b/specification/cat/templates/CatTemplatesRequest.ts index 1185554c01..7d5be22791 100644 --- a/specification/cat/templates/CatTemplatesRequest.ts +++ b/specification/cat/templates/CatTemplatesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatTemplatesColumns } from '@cat/_types/CatBase' @@ -51,6 +51,7 @@ export interface Request extends CatRequestBase { */ name?: Name } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/thread_pool/CatThreadPoolRequest.ts b/specification/cat/thread_pool/CatThreadPoolRequest.ts index f83d447f53..0e58eb1da7 100644 --- a/specification/cat/thread_pool/CatThreadPoolRequest.ts +++ b/specification/cat/thread_pool/CatThreadPoolRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatThreadPoolColumns } from '@cat/_types/CatBase' @@ -51,6 +51,7 @@ export interface Request extends CatRequestBase { */ thread_pool_patterns?: Names } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/transforms/CatTransformsRequest.ts b/specification/cat/transforms/CatTransformsRequest.ts index 043ff37c5e..144a1fcf00 100644 --- a/specification/cat/transforms/CatTransformsRequest.ts +++ b/specification/cat/transforms/CatTransformsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { CatRequestBase, CatTransformColumns } from '@cat/_types/CatBase' @@ -54,6 +54,7 @@ export interface Request extends CatRequestBase { */ transform_id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. diff --git a/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts b/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts index 1d661ab1f7..f6e5016b16 100644 --- a/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts +++ b/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { /** The auto-follow pattern collection to delete. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/follow/CreateFollowIndexRequest.ts b/specification/ccr/follow/CreateFollowIndexRequest.ts index 4c99cc4805..4f374bf7a6 100644 --- a/specification/ccr/follow/CreateFollowIndexRequest.ts +++ b/specification/ccr/follow/CreateFollowIndexRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, IndexName, WaitForActiveShards } from '@_types/common' +import { + ByteSize, + IndexName, + MediaType, + WaitForActiveShards +} from '@_types/common' import { integer, long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -45,6 +50,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ccr/follow_info/FollowInfoRequest.ts b/specification/ccr/follow_info/FollowInfoRequest.ts index 3ba355df66..73014cf6ee 100644 --- a/specification/ccr/follow_info/FollowInfoRequest.ts +++ b/specification/ccr/follow_info/FollowInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** A comma-delimited list of follower index patterns. */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/follow_stats/FollowIndexStatsRequest.ts b/specification/ccr/follow_stats/FollowIndexStatsRequest.ts index 420ee63a34..7dd06cccb7 100644 --- a/specification/ccr/follow_stats/FollowIndexStatsRequest.ts +++ b/specification/ccr/follow_stats/FollowIndexStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** A comma-delimited list of index patterns. */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a response. diff --git a/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts b/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts index 55a16f1da2..0a4067207c 100644 --- a/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts +++ b/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Uuid } from '@_types/common' +import { IndexName, MediaType, Uuid } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts b/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts index 998fc6baac..45c41f9253 100644 --- a/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts +++ b/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ name?: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts b/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts index e9e3335c5b..4b32f2ecdb 100644 --- a/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts +++ b/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { /** The name of the auto-follow pattern to pause. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/pause_follow/PauseFollowIndexRequest.ts b/specification/ccr/pause_follow/PauseFollowIndexRequest.ts index f2ac1d3255..55cde3ac7b 100644 --- a/specification/ccr/pause_follow/PauseFollowIndexRequest.ts +++ b/specification/ccr/pause_follow/PauseFollowIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { /** The name of the follower index. */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts b/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts index 05b105494f..8966586494 100644 --- a/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts +++ b/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, IndexPattern, IndexPatterns, Name } from '@_types/common' +import { + ByteSize, + IndexPattern, + IndexPatterns, + MediaType, + Name +} from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { Dictionary } from '@spec_utils/Dictionary' @@ -51,6 +57,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts b/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts index 71045499f9..45f396ebe5 100644 --- a/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts +++ b/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { /** The name of the auto-follow pattern to resume. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts b/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts index 54e3e7c929..b3855df1cf 100644 --- a/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts +++ b/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ccr/stats/CcrStatsRequest.ts b/specification/ccr/stats/CcrStatsRequest.ts index 39e31b08c9..139de72322 100644 --- a/specification/ccr/stats/CcrStatsRequest.ts +++ b/specification/ccr/stats/CcrStatsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get cross-cluster replication stats. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/unfollow/UnfollowIndexRequest.ts b/specification/ccr/unfollow/UnfollowIndexRequest.ts index ec469d7633..f359ce90eb 100644 --- a/specification/ccr/unfollow/UnfollowIndexRequest.ts +++ b/specification/ccr/unfollow/UnfollowIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { /** The name of the follower index. */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts index ebb6a36095..caca66839e 100644 --- a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts +++ b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, NodeId } from '@_types/common' +import { IndexName, MediaType, NodeId } from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -45,6 +45,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The name of the index that you would like an explanation for. diff --git a/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts b/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts index ee8be7197e..88db15b56a 100644 --- a/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts +++ b/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts b/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts index efcaa43104..cc1ed91bb2 100644 --- a/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts +++ b/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Clear cluster voting config exclusions. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts b/specification/cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts index d1de6f7fc9..c123554bf2 100644 --- a/specification/cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts +++ b/specification/cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is diff --git a/specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts b/specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts index fc61458df3..9822753fbd 100644 --- a/specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts +++ b/specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ name?: Name } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, returns settings in flat format. diff --git a/specification/cluster/get_settings/ClusterGetSettingsRequest.ts b/specification/cluster/get_settings/ClusterGetSettingsRequest.ts index 9fb3b23a08..7192bfa411 100644 --- a/specification/cluster/get_settings/ClusterGetSettingsRequest.ts +++ b/specification/cluster/get_settings/ClusterGetSettingsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get cluster-wide settings. @@ -38,6 +39,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * If `true`, returns settings in flat format. diff --git a/specification/cluster/health/ClusterHealthRequest.ts b/specification/cluster/health/ClusterHealthRequest.ts index 23b5cd83d5..a9f69036c6 100644 --- a/specification/cluster/health/ClusterHealthRequest.ts +++ b/specification/cluster/health/ClusterHealthRequest.ts @@ -23,6 +23,7 @@ import { HealthStatus, Indices, Level, + MediaType, WaitForActiveShards, WaitForEvents } from '@_types/common' @@ -65,6 +66,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * @server_default all diff --git a/specification/cluster/info/ClusterInfoRequest.ts b/specification/cluster/info/ClusterInfoRequest.ts index 8753913bd3..a1e56ee0e2 100644 --- a/specification/cluster/info/ClusterInfoRequest.ts +++ b/specification/cluster/info/ClusterInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ClusterInfoTargets } from '@_types/common' +import { ClusterInfoTargets, MediaType } from '@_types/common' /** * Get cluster info. @@ -40,4 +40,5 @@ export interface Request extends RequestBase { /** Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. */ target: ClusterInfoTargets } + response_media_type: MediaType.Json } diff --git a/specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts b/specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts index d0d12c89ef..9f99bf3bd4 100644 --- a/specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts +++ b/specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the pending cluster tasks. @@ -41,6 +42,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request retrieves information from the local node only. diff --git a/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts b/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts index 3b9a746ec6..a8ae54cc89 100644 --- a/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts +++ b/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids, Names } from '@_types/common' +import { Ids, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -53,6 +53,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of the names of the nodes to exclude from the diff --git a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts index 1095dcfd44..21a468d805 100644 --- a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts +++ b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name, VersionNumber } from '@_types/common' +import { MediaType, Metadata, Name, VersionNumber } from '@_types/common' import { Duration } from '@_types/Time' import { IndexState } from '@indices/_types/IndexState' @@ -68,6 +68,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, this request cannot replace or update existing component templates. diff --git a/specification/cluster/put_settings/ClusterPutSettingsRequest.ts b/specification/cluster/put_settings/ClusterPutSettingsRequest.ts index 2afee78799..47e574790a 100644 --- a/specification/cluster/put_settings/ClusterPutSettingsRequest.ts +++ b/specification/cluster/put_settings/ClusterPutSettingsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -55,6 +56,8 @@ export interface Request extends RequestBase { methods: ['PUT'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { flat_settings?: boolean /** @server_default 30s */ diff --git a/specification/cluster/remote_info/ClusterRemoteInfoRequest.ts b/specification/cluster/remote_info/ClusterRemoteInfoRequest.ts index bce879205d..82e4499a17 100644 --- a/specification/cluster/remote_info/ClusterRemoteInfoRequest.ts +++ b/specification/cluster/remote_info/ClusterRemoteInfoRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get remote cluster information. @@ -43,4 +44,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/cluster/reroute/ClusterRerouteRequest.ts b/specification/cluster/reroute/ClusterRerouteRequest.ts index bca9d4a3bb..9dc6574849 100644 --- a/specification/cluster/reroute/ClusterRerouteRequest.ts +++ b/specification/cluster/reroute/ClusterRerouteRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Command } from './types' @@ -49,6 +50,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, then the request simulates the operation. diff --git a/specification/cluster/state/ClusterStateRequest.ts b/specification/cluster/state/ClusterStateRequest.ts index 69dc7033d8..fa211449eb 100644 --- a/specification/cluster/state/ClusterStateRequest.ts +++ b/specification/cluster/state/ClusterStateRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, VersionNumber } from '@_types/common' +import { + ExpandWildcards, + Indices, + MediaType, + VersionNumber +} from '@_types/common' import { Duration } from '@_types/Time' /** @@ -67,6 +72,7 @@ export interface Request extends RequestBase { metric?: ClusterStateMetrics index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** @server_default true */ allow_no_indices?: boolean diff --git a/specification/cluster/stats/ClusterStatsRequest.ts b/specification/cluster/stats/ClusterStatsRequest.ts index 39479a10b2..e7aa08544d 100644 --- a/specification/cluster/stats/ClusterStatsRequest.ts +++ b/specification/cluster/stats/ClusterStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { /** Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster. */ node_id?: NodeIds } + response_media_type: MediaType.Json query_parameters: { /** * Include remote cluster data into the response diff --git a/specification/connector/check_in/ConnectorCheckInRequest.ts b/specification/connector/check_in/ConnectorCheckInRequest.ts index c573372ad6..939067e5c6 100644 --- a/specification/connector/check_in/ConnectorCheckInRequest.ts +++ b/specification/connector/check_in/ConnectorCheckInRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Check in a connector. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ connector_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/delete/ConnectorDeleteRequest.ts b/specification/connector/delete/ConnectorDeleteRequest.ts index cef3beccad..f62bf5dd06 100644 --- a/specification/connector/delete/ConnectorDeleteRequest.ts +++ b/specification/connector/delete/ConnectorDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a connector. @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ connector_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * A flag indicating if associated sync jobs should be also removed. diff --git a/specification/connector/get/ConnectorGetRequest.ts b/specification/connector/get/ConnectorGetRequest.ts index 31d1f31ec4..ae2339c8ba 100644 --- a/specification/connector/get/ConnectorGetRequest.ts +++ b/specification/connector/get/ConnectorGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a connector. @@ -41,6 +41,7 @@ export interface Request extends RequestBase { */ connector_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * A flag to indicate if the desired connector should be fetched, even if it was soft-deleted. diff --git a/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts b/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts index 5239799b99..2a83e5255d 100644 --- a/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts +++ b/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * Connector last sync stats */ diff --git a/specification/connector/list/ConnectorListRequest.ts b/specification/connector/list/ConnectorListRequest.ts index e482785619..b56bcce67d 100644 --- a/specification/connector/list/ConnectorListRequest.ts +++ b/specification/connector/list/ConnectorListRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -36,6 +36,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Starting offset diff --git a/specification/connector/post/ConnectorPostRequest.ts b/specification/connector/post/ConnectorPostRequest.ts index 1907e63abf..95a5ffaadb 100644 --- a/specification/connector/post/ConnectorPostRequest.ts +++ b/specification/connector/post/ConnectorPostRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Create a connector. @@ -37,10 +37,13 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector document to be created + * @codegen_name connector */ - /** @codegen_name connector */ body?: { description?: string index_name?: IndexName diff --git a/specification/connector/put/ConnectorPutRequest.ts b/specification/connector/put/ConnectorPutRequest.ts index ebe90475b1..b6deb9ee9a 100644 --- a/specification/connector/put/ConnectorPutRequest.ts +++ b/specification/connector/put/ConnectorPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id, IndexName } from '@_types/common' +import { Id, IndexName, MediaType } from '@_types/common' /** * Create or update a connector. @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ connector_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector document to be created */ diff --git a/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts b/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts index c1296329e6..0032e34c84 100644 --- a/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts +++ b/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Deletes a connector secret. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json } diff --git a/specification/connector/secret_get/ConnectorSecretGetRequest.ts b/specification/connector/secret_get/ConnectorSecretGetRequest.ts index dd1d440c27..c1967707c2 100644 --- a/specification/connector/secret_get/ConnectorSecretGetRequest.ts +++ b/specification/connector/secret_get/ConnectorSecretGetRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Retrieves a secret stored by Connectors. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json } diff --git a/specification/connector/secret_post/ConnectorSecretPostRequest.ts b/specification/connector/secret_post/ConnectorSecretPostRequest.ts index 9129b46d59..b5faed76c5 100644 --- a/specification/connector/secret_post/ConnectorSecretPostRequest.ts +++ b/specification/connector/secret_post/ConnectorSecretPostRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Creates a secret for a Connector. @@ -32,6 +33,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json body: { value?: string } diff --git a/specification/connector/secret_put/ConnectorSecretPutRequest.ts b/specification/connector/secret_put/ConnectorSecretPutRequest.ts index 7e44e2975b..227e37099c 100644 --- a/specification/connector/secret_put/ConnectorSecretPutRequest.ts +++ b/specification/connector/secret_put/ConnectorSecretPutRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Creates or updates a secret for a Connector. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json body: { value: string } diff --git a/specification/connector/sync_job_cancel/SyncJobCancelRequest.ts b/specification/connector/sync_job_cancel/SyncJobCancelRequest.ts index d0c95b9ff8..5e86e4467b 100644 --- a/specification/connector/sync_job_cancel/SyncJobCancelRequest.ts +++ b/specification/connector/sync_job_cancel/SyncJobCancelRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Cancel a connector sync job. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/sync_job_check_in/SyncJobCheckInRequest.ts b/specification/connector/sync_job_check_in/SyncJobCheckInRequest.ts index dc4b4141cb..af22ed95d4 100644 --- a/specification/connector/sync_job_check_in/SyncJobCheckInRequest.ts +++ b/specification/connector/sync_job_check_in/SyncJobCheckInRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Check in a connector sync job. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/sync_job_claim/SyncJobClaimRequest.ts b/specification/connector/sync_job_claim/SyncJobClaimRequest.ts index e4a84dd323..eb62509f4b 100644 --- a/specification/connector/sync_job_claim/SyncJobClaimRequest.ts +++ b/specification/connector/sync_job_claim/SyncJobClaimRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The cursor object from the last incremental sync job. diff --git a/specification/connector/sync_job_delete/SyncJobDeleteRequest.ts b/specification/connector/sync_job_delete/SyncJobDeleteRequest.ts index 79d268f91f..92ba8dd853 100644 --- a/specification/connector/sync_job_delete/SyncJobDeleteRequest.ts +++ b/specification/connector/sync_job_delete/SyncJobDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a connector sync job. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/sync_job_error/SyncJobErrorRequest.ts b/specification/connector/sync_job_error/SyncJobErrorRequest.ts index ab677cf91d..ed7be01680 100644 --- a/specification/connector/sync_job_error/SyncJobErrorRequest.ts +++ b/specification/connector/sync_job_error/SyncJobErrorRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Set a connector sync job error. @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The error for the connector sync job error field. diff --git a/specification/connector/sync_job_get/SyncJobGetRequest.ts b/specification/connector/sync_job_get/SyncJobGetRequest.ts index dd0c25ce93..d291a562b0 100644 --- a/specification/connector/sync_job_get/SyncJobGetRequest.ts +++ b/specification/connector/sync_job_get/SyncJobGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a connector sync job. @@ -40,4 +40,5 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/sync_job_list/SyncJobListRequest.ts b/specification/connector/sync_job_list/SyncJobListRequest.ts index 0ef837f650..a40cd4d535 100644 --- a/specification/connector/sync_job_list/SyncJobListRequest.ts +++ b/specification/connector/sync_job_list/SyncJobListRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { SyncStatus } from '../_types/Connector' import { SyncJobType } from '../_types/SyncJob' @@ -38,6 +38,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Starting offset diff --git a/specification/connector/sync_job_post/SyncJobPostRequest.ts b/specification/connector/sync_job_post/SyncJobPostRequest.ts index 00c4a29c39..d3af4bd53e 100644 --- a/specification/connector/sync_job_post/SyncJobPostRequest.ts +++ b/specification/connector/sync_job_post/SyncJobPostRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { SyncJobTriggerMethod, SyncJobType } from '../_types/SyncJob' /** @@ -36,10 +36,12 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The sync job to be created + * @codegen_name sync_job */ - /** @codegen_name sync_job */ body: { /** * The id of the associated connector diff --git a/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts b/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts index a1971db1aa..464ec34c0e 100644 --- a/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts +++ b/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { integer, long } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The number of documents the sync job deleted. diff --git a/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts b/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts index 0a4903d1ed..93da322940 100644 --- a/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts +++ b/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Activate the connector draft filter. @@ -41,4 +41,6 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts b/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts index 0fd8f7c645..c77d66615d 100644 --- a/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts +++ b/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update the connector API key ID. * @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector api key request body */ diff --git a/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts b/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts index 6d10709768..6c35cd4f37 100644 --- a/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts +++ b/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { ConnectorConfiguration } from '../_types/Connector' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector configuration */ diff --git a/specification/connector/update_error/ConnectorUpdateErrorRequest.ts b/specification/connector/update_error/ConnectorUpdateErrorRequest.ts index 34d85bc6c0..cf2a74ae85 100644 --- a/specification/connector/update_error/ConnectorUpdateErrorRequest.ts +++ b/specification/connector/update_error/ConnectorUpdateErrorRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { WithNullValue } from '@spec_utils/utils' /** @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector error */ diff --git a/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts b/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts index 48c5d23b0a..e1c26ea703 100644 --- a/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts +++ b/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { ConnectorFeatures } from '../_types/Connector' /** @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector configuration */ diff --git a/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts b/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts index 1f2b9e99a0..998c5534f0 100644 --- a/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts +++ b/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { FilteringAdvancedSnippet, FilteringConfig, @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector draft filtering configuration */ diff --git a/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts b/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts index 0a3b0b993b..3d45f9ecdb 100644 --- a/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts +++ b/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { FilteringRulesValidation } from '@connector/_types/Connector' /** @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { validation: FilteringRulesValidation } diff --git a/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts b/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts index a7cc78bb7c..932e2a4d73 100644 --- a/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts +++ b/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id, IndexName } from '@_types/common' +import { Id, IndexName, MediaType } from '@_types/common' import { WithNullValue } from '@spec_utils/utils' /** @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector index name */ diff --git a/specification/connector/update_name/ConnectorUpdateNameRequest.ts b/specification/connector/update_name/ConnectorUpdateNameRequest.ts index b2acdf73a8..af62fc60bf 100644 --- a/specification/connector/update_name/ConnectorUpdateNameRequest.ts +++ b/specification/connector/update_name/ConnectorUpdateNameRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update the connector name and description. @@ -40,6 +40,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector name and description */ diff --git a/specification/connector/update_native/ConnectorUpdateNativeRequest.ts b/specification/connector/update_native/ConnectorUpdateNativeRequest.ts index ec1f53b7e1..b4e8a45b76 100644 --- a/specification/connector/update_native/ConnectorUpdateNativeRequest.ts +++ b/specification/connector/update_native/ConnectorUpdateNativeRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update the connector is_native flag. @@ -40,6 +40,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector is_native flag */ diff --git a/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts b/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts index 02430cf450..507db7158a 100644 --- a/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts +++ b/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { IngestPipelineParams } from '../_types/Connector' /** @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector pipeline object */ diff --git a/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts b/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts index 50853ee9d6..7534c9c701 100644 --- a/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts +++ b/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { SchedulingConfiguration } from '../_types/Connector' /** @@ -41,6 +41,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector scheduling object */ diff --git a/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts b/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts index 4b6a5e8090..65106db212 100644 --- a/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts +++ b/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update the connector service type. @@ -40,6 +40,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector service type */ diff --git a/specification/connector/update_status/ConnectorUpdateStatusRequest.ts b/specification/connector/update_status/ConnectorUpdateStatusRequest.ts index e747f2e645..f1475bcdb1 100644 --- a/specification/connector/update_status/ConnectorUpdateStatusRequest.ts +++ b/specification/connector/update_status/ConnectorUpdateStatusRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { ConnectorStatus } from '../_types/Connector' /** @@ -41,6 +41,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector service type */ diff --git a/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts b/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts index 2f798884af..3ade14a590 100644 --- a/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts +++ b/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Uuid } from '@_types/common' +import { MediaType, Uuid } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ index_uuid: Uuid } + response_media_type: MediaType.Json query_parameters: { /** * This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index. diff --git a/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts b/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts index 21c4e97314..f2848505be 100644 --- a/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts +++ b/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Uuid } from '@_types/common' +import { MediaType, Uuid } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ index_uuid: Uuid } + response_media_type: MediaType.Json query_parameters: { /** * This parameter must be set to true to import a dangling index. diff --git a/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts b/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts index 545b72ece9..f19d79ccee 100644 --- a/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts +++ b/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get the dangling indices. @@ -39,4 +40,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts b/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts index 7e04dee1ea..a193de33af 100644 --- a/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts +++ b/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts b/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts index d91261951f..38be8ec658 100644 --- a/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts +++ b/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/enrich/get_policy/GetEnrichPolicyRequest.ts b/specification/enrich/get_policy/GetEnrichPolicyRequest.ts index 9dee9ee918..7832455d43 100644 --- a/specification/enrich/get_policy/GetEnrichPolicyRequest.ts +++ b/specification/enrich/get_policy/GetEnrichPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/enrich/put_policy/PutEnrichPolicyRequest.ts b/specification/enrich/put_policy/PutEnrichPolicyRequest.ts index 304fef9d83..3c5ec96058 100644 --- a/specification/enrich/put_policy/PutEnrichPolicyRequest.ts +++ b/specification/enrich/put_policy/PutEnrichPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Policy } from '@enrich/_types/Policy' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/enrich/stats/EnrichStatsRequest.ts b/specification/enrich/stats/EnrichStatsRequest.ts index 8b44e2c433..e9832eaf2f 100644 --- a/specification/enrich/stats/EnrichStatsRequest.ts +++ b/specification/enrich/stats/EnrichStatsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get enrich stats. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/eql/delete/EqlDeleteRequest.ts b/specification/eql/delete/EqlDeleteRequest.ts index 5aadfb4f51..a2757b0a59 100644 --- a/specification/eql/delete/EqlDeleteRequest.ts +++ b/specification/eql/delete/EqlDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an async EQL search. @@ -45,4 +45,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/eql/get/EqlGetRequest.ts b/specification/eql/get/EqlGetRequest.ts index 3145181824..a03be55ddc 100644 --- a/specification/eql/get/EqlGetRequest.ts +++ b/specification/eql/get/EqlGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period for which the search and its results are stored on the cluster. diff --git a/specification/eql/get_status/EqlGetStatusRequest.ts b/specification/eql/get_status/EqlGetStatusRequest.ts index 0ab6b78a7c..e6ba6d133f 100644 --- a/specification/eql/get_status/EqlGetStatusRequest.ts +++ b/specification/eql/get_status/EqlGetStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get the async EQL status. @@ -40,4 +40,5 @@ export interface Request extends RequestBase { /** Identifier for the search. */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/eql/search/EqlSearchRequest.ts b/specification/eql/search/EqlSearchRequest.ts index bf661120bf..d4b0ba06d5 100644 --- a/specification/eql/search/EqlSearchRequest.ts +++ b/specification/eql/search/EqlSearchRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Field, Indices, ProjectRouting } from '@_types/common' +import { + ExpandWildcards, + Field, + Indices, + MediaType, + ProjectRouting +} from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer, uint } from '@_types/Numeric' import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions' @@ -46,6 +52,8 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * @server_default true diff --git a/specification/esql/async_query/AsyncQueryRequest.ts b/specification/esql/async_query/AsyncQueryRequest.ts index 5bccdf15e2..a1eba3a721 100644 --- a/specification/esql/async_query/AsyncQueryRequest.ts +++ b/specification/esql/async_query/AsyncQueryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { FieldValue } from '@_types/common' +import { FieldValue, MediaType } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' import { EsqlFormat } from '@esql/_types/QueryParameters' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards. diff --git a/specification/esql/async_query_delete/AsyncQueryDeleteRequest.ts b/specification/esql/async_query_delete/AsyncQueryDeleteRequest.ts index c83d84d4c9..ed47f4febf 100644 --- a/specification/esql/async_query_delete/AsyncQueryDeleteRequest.ts +++ b/specification/esql/async_query_delete/AsyncQueryDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an async ES|QL query. @@ -50,4 +50,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/esql/async_query_get/AsyncQueryGetRequest.ts b/specification/esql/async_query_get/AsyncQueryGetRequest.ts index 1bb8f2b95b..f19267119e 100644 --- a/specification/esql/async_query_get/AsyncQueryGetRequest.ts +++ b/specification/esql/async_query_get/AsyncQueryGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { EsqlFormat } from '@esql/_types/QueryParameters' @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. diff --git a/specification/esql/async_query_stop/AsyncQueryStopRequest.ts b/specification/esql/async_query_stop/AsyncQueryStopRequest.ts index caca864d0d..ca6934f463 100644 --- a/specification/esql/async_query_stop/AsyncQueryStopRequest.ts +++ b/specification/esql/async_query_stop/AsyncQueryStopRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Stop async ES|QL query. @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. diff --git a/specification/esql/get_query/GetQueryRequest.ts b/specification/esql/get_query/GetQueryRequest.ts index 995e218506..e106a6d128 100644 --- a/specification/esql/get_query/GetQueryRequest.ts +++ b/specification/esql/get_query/GetQueryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a specific running ES|QL query information. @@ -41,4 +41,6 @@ export interface Request extends RequestBase { path_parts: { id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/esql/list_queries/ListQueriesRequest.ts b/specification/esql/list_queries/ListQueriesRequest.ts index a3d29b572b..a83c47acc3 100644 --- a/specification/esql/list_queries/ListQueriesRequest.ts +++ b/specification/esql/list_queries/ListQueriesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get running ES|QL queries information. @@ -37,4 +38,6 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/esql/query/QueryRequest.ts b/specification/esql/query/QueryRequest.ts index 84c828942d..10a15b5136 100644 --- a/specification/esql/query/QueryRequest.ts +++ b/specification/esql/query/QueryRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { EsqlFormat } from '@esql/_types/QueryParameters' import { TableValuesContainer } from '@esql/_types/TableValuesContainer' @@ -41,6 +42,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A short version of the Accept header, e.g. json, yaml. diff --git a/specification/features/get_features/GetFeaturesRequest.ts b/specification/features/get_features/GetFeaturesRequest.ts index d5495a19b5..fde207f9a5 100644 --- a/specification/features/get_features/GetFeaturesRequest.ts +++ b/specification/features/get_features/GetFeaturesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the features. @@ -44,6 +45,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/features/reset_features/ResetFeaturesRequest.ts b/specification/features/reset_features/ResetFeaturesRequest.ts index c0ef6a55ee..4e95b4a1bb 100644 --- a/specification/features/reset_features/ResetFeaturesRequest.ts +++ b/specification/features/reset_features/ResetFeaturesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Reset the features. @@ -51,6 +52,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/fleet/delete_secret/FleetDeleteSecretRequest.ts b/specification/fleet/delete_secret/FleetDeleteSecretRequest.ts index e31b304253..4f57922832 100644 --- a/specification/fleet/delete_secret/FleetDeleteSecretRequest.ts +++ b/specification/fleet/delete_secret/FleetDeleteSecretRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Deletes a secret stored by Fleet. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json } diff --git a/specification/fleet/get_secret/FleetGetSecretRequest.ts b/specification/fleet/get_secret/FleetGetSecretRequest.ts index 2624de94c2..be3d98c8f9 100644 --- a/specification/fleet/get_secret/FleetGetSecretRequest.ts +++ b/specification/fleet/get_secret/FleetGetSecretRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Retrieves a secret stored by Fleet. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json } diff --git a/specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts b/specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts index f58a91b482..e895fda5f7 100644 --- a/specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts +++ b/specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexAlias, IndexName } from '@_types/common' +import { IndexAlias, IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Checkpoint } from '../_types/Checkpoints' @@ -46,6 +46,8 @@ export interface Request extends RequestBase { // eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias index: IndexName | IndexAlias } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A boolean value which controls whether to wait (until the timeout) for the global checkpoints diff --git a/specification/fleet/msearch/MultiSearchRequest.ts b/specification/fleet/msearch/MultiSearchRequest.ts index 38ab40aa32..b0e6f92dd7 100644 --- a/specification/fleet/msearch/MultiSearchRequest.ts +++ b/specification/fleet/msearch/MultiSearchRequest.ts @@ -22,6 +22,7 @@ import { ExpandWildcards, IndexAlias, IndexName, + MediaType, SearchType } from '@_types/common' import { integer, long } from '@_types/Numeric' @@ -58,6 +59,8 @@ export interface Request extends RequestBase { // eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias index?: IndexName | IndexAlias } + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. diff --git a/specification/fleet/post_secret/FleetPostSecretRequest.ts b/specification/fleet/post_secret/FleetPostSecretRequest.ts index e03cba4ccb..4b101638a2 100644 --- a/specification/fleet/post_secret/FleetPostSecretRequest.ts +++ b/specification/fleet/post_secret/FleetPostSecretRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Creates a secret stored by Fleet. @@ -32,6 +33,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json body: { value: string } diff --git a/specification/fleet/search/SearchRequest.ts b/specification/fleet/search/SearchRequest.ts index 2b809d0fd0..97d006e4c6 100644 --- a/specification/fleet/search/SearchRequest.ts +++ b/specification/fleet/search/SearchRequest.ts @@ -25,6 +25,7 @@ import { Fields, IndexAlias, IndexName, + MediaType, Routing, SearchType, SuggestMode @@ -76,6 +77,8 @@ export interface Request extends RequestBase { // eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias index: IndexName | IndexAlias } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { allow_no_indices?: boolean analyzer?: string diff --git a/specification/graph/explore/GraphExploreRequest.ts b/specification/graph/explore/GraphExploreRequest.ts index 89cab2147b..a2a85a796f 100644 --- a/specification/graph/explore/GraphExploreRequest.ts +++ b/specification/graph/explore/GraphExploreRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Routing } from '@_types/common' +import { Indices, MediaType, Routing } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' import { VertexDefinition } from '@graph/_types/Vertex' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Custom value used to route operations to a specific shard. diff --git a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts index 8686f06b32..d50fbac5f8 100644 --- a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts +++ b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ policy: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts index d901bafa2f..9aef9eeb4c 100644 --- a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts +++ b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Filters the returned indices to only indices that are managed by ILM and are in an error state, either due to an encountering an error while executing the policy, or attempting to use a policy that does not exist. diff --git a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts index dce9b91d44..aad52199a3 100644 --- a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts +++ b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ policy?: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ilm/get_status/GetIlmStatusRequest.ts b/specification/ilm/get_status/GetIlmStatusRequest.ts index 5ca238aca2..65993a2420 100644 --- a/specification/ilm/get_status/GetIlmStatusRequest.ts +++ b/specification/ilm/get_status/GetIlmStatusRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get the ILM status. @@ -35,4 +36,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ilm/migrate_to_data_tiers/Request.ts b/specification/ilm/migrate_to_data_tiers/Request.ts index 49ec77e370..fe44121f20 100644 --- a/specification/ilm/migrate_to_data_tiers/Request.ts +++ b/specification/ilm/migrate_to_data_tiers/Request.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Migrate to data tiers routing. @@ -48,6 +49,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. diff --git a/specification/ilm/move_to_step/MoveToStepRequest.ts b/specification/ilm/move_to_step/MoveToStepRequest.ts index fe5c89802e..2180be3d62 100644 --- a/specification/ilm/move_to_step/MoveToStepRequest.ts +++ b/specification/ilm/move_to_step/MoveToStepRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { StepKey } from './types' /** @@ -52,6 +52,8 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The step that the index is expected to be in. diff --git a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts index 9e5006feac..b4c9e75056 100644 --- a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Policy } from '@ilm/_types/Policy' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ policy: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ilm/remove_policy/RemovePolicyRequest.ts b/specification/ilm/remove_policy/RemovePolicyRequest.ts index 9fd35b78c9..2de0844179 100644 --- a/specification/ilm/remove_policy/RemovePolicyRequest.ts +++ b/specification/ilm/remove_policy/RemovePolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Remove policies from an index. @@ -40,4 +40,5 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + response_media_type: MediaType.Json } diff --git a/specification/ilm/retry/RetryIlmRequest.ts b/specification/ilm/retry/RetryIlmRequest.ts index 67c6d7340d..e588900a8d 100644 --- a/specification/ilm/retry/RetryIlmRequest.ts +++ b/specification/ilm/retry/RetryIlmRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Retry a policy. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + response_media_type: MediaType.Json } diff --git a/specification/ilm/start/StartIlmRequest.ts b/specification/ilm/start/StartIlmRequest.ts index a8928bf600..bb7e02ccf2 100644 --- a/specification/ilm/start/StartIlmRequest.ts +++ b/specification/ilm/start/StartIlmRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start the ILM plugin. @@ -38,6 +39,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ilm/stop/StopIlmRequest.ts b/specification/ilm/stop/StopIlmRequest.ts index 1d182ef4a8..c2686d3350 100644 --- a/specification/ilm/stop/StopIlmRequest.ts +++ b/specification/ilm/stop/StopIlmRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Stop the ILM plugin. @@ -40,6 +41,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/add_block/IndicesAddBlockRequest.ts b/specification/indices/add_block/IndicesAddBlockRequest.ts index f337360b7b..f211a9fa19 100644 --- a/specification/indices/add_block/IndicesAddBlockRequest.ts +++ b/specification/indices/add_block/IndicesAddBlockRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { IndicesBlockOptions } from '@indices/_types/IndexSettings' @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ block: IndicesBlockOptions } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/analyze/IndicesAnalyzeRequest.ts b/specification/indices/analyze/IndicesAnalyzeRequest.ts index 6d65ab20e9..25e48bc437 100644 --- a/specification/indices/analyze/IndicesAnalyzeRequest.ts +++ b/specification/indices/analyze/IndicesAnalyzeRequest.ts @@ -21,7 +21,7 @@ import { CharFilter } from '@_types/analysis/char_filters' import { TokenFilter } from '@_types/analysis/token_filters' import { Tokenizer } from '@_types/analysis/tokenizers' import { RequestBase } from '@_types/Base' -import { Field, IndexName } from '@_types/common' +import { Field, IndexName, MediaType } from '@_types/common' import { TextToAnalyze } from './types' /** @@ -60,6 +60,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Index used to derive the analyzer. diff --git a/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts index ab5d3fd207..1143cf3e91 100644 --- a/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts +++ b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' /** * Cancel a migration reindex operation. @@ -41,4 +41,6 @@ export interface Request extends RequestBase { /** The index or data stream name */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/indices/clear_cache/IndicesClearCacheRequest.ts b/specification/indices/clear_cache/IndicesClearCacheRequest.ts index 25533ad895..170fb86ce8 100644 --- a/specification/indices/clear_cache/IndicesClearCacheRequest.ts +++ b/specification/indices/clear_cache/IndicesClearCacheRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Fields, Indices } from '@_types/common' +import { ExpandWildcards, Fields, Indices, MediaType } from '@_types/common' /** * Clear the cache. @@ -54,6 +54,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Comma-separated list of data streams, indices, and aliases used to limit the request. diff --git a/specification/indices/clone/IndicesCloneRequest.ts b/specification/indices/clone/IndicesCloneRequest.ts index 9d0f5ef9ed..5a8da7c60d 100644 --- a/specification/indices/clone/IndicesCloneRequest.ts +++ b/specification/indices/clone/IndicesCloneRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Name, WaitForActiveShards } from '@_types/common' +import { IndexName, MediaType, Name, WaitForActiveShards } from '@_types/common' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' import { Dictionary } from '@spec_utils/Dictionary' @@ -94,6 +94,8 @@ export interface Request extends RequestBase { */ target: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/close/CloseIndexRequest.ts b/specification/indices/close/CloseIndexRequest.ts index fb33c16343..0822d4ca6b 100644 --- a/specification/indices/close/CloseIndexRequest.ts +++ b/specification/indices/close/CloseIndexRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, WaitForActiveShards } from '@_types/common' +import { + ExpandWildcards, + Indices, + MediaType, + WaitForActiveShards +} from '@_types/common' import { Duration } from '@_types/Time' /** @@ -60,6 +65,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/create/IndicesCreateRequest.ts b/specification/indices/create/IndicesCreateRequest.ts index 40b72ed982..5c5466bb2f 100644 --- a/specification/indices/create/IndicesCreateRequest.ts +++ b/specification/indices/create/IndicesCreateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Name, WaitForActiveShards } from '@_types/common' +import { IndexName, MediaType, Name, WaitForActiveShards } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' @@ -75,6 +75,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts b/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts index 82c443fab1..81089ab6be 100644 --- a/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts +++ b/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamName } from '@_types/common' +import { DataStreamName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ name: DataStreamName } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/create_from/MigrateCreateFromRequest.ts b/specification/indices/create_from/MigrateCreateFromRequest.ts index 5d8b2cfbda..fd0dc229a3 100644 --- a/specification/indices/create_from/MigrateCreateFromRequest.ts +++ b/specification/indices/create_from/MigrateCreateFromRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -45,6 +45,8 @@ export interface Request extends RequestBase { /** The destination index or data stream name */ dest: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name create_from */ body?: CreateFrom } diff --git a/specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts b/specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts index f11db863e4..0150211a66 100644 --- a/specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts +++ b/specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Get data stream stats. @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ name?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/delete/IndicesDeleteRequest.ts b/specification/indices/delete/IndicesDeleteRequest.ts index c47b403e83..6ee5c3b63a 100644 --- a/specification/indices/delete/IndicesDeleteRequest.ts +++ b/specification/indices/delete/IndicesDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/delete_alias/IndicesDeleteAliasRequest.ts b/specification/indices/delete_alias/IndicesDeleteAliasRequest.ts index e042f08e5f..b347f93344 100644 --- a/specification/indices/delete_alias/IndicesDeleteAliasRequest.ts +++ b/specification/indices/delete_alias/IndicesDeleteAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -54,6 +54,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts b/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts index 6529e29c1c..b636a8e2e1 100644 --- a/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts +++ b/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -41,6 +41,7 @@ export interface Request extends RequestBase { path_parts: { name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * @server_default open diff --git a/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts b/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts index d21759a717..f39dd6191e 100644 --- a/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts +++ b/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts b/specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts index 3815320b39..1c6b02f8fc 100644 --- a/specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts +++ b/specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -41,6 +41,7 @@ export interface Request extends RequestBase { path_parts: { name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * @server_default open diff --git a/specification/indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts b/specification/indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts index c1404f53a9..65782d73ec 100644 --- a/specification/indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts +++ b/specification/indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts b/specification/indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts index 80a1268078..9246171618 100644 --- a/specification/indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts +++ b/specification/indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is diff --git a/specification/indices/delete_template/IndicesDeleteTemplateRequest.ts b/specification/indices/delete_template/IndicesDeleteTemplateRequest.ts index 54674089f7..523500eb97 100644 --- a/specification/indices/delete_template/IndicesDeleteTemplateRequest.ts +++ b/specification/indices/delete_template/IndicesDeleteTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/disk_usage/IndicesDiskUsageRequest.ts b/specification/indices/disk_usage/IndicesDiskUsageRequest.ts index 31ebeb931c..a28abdbff9 100644 --- a/specification/indices/disk_usage/IndicesDiskUsageRequest.ts +++ b/specification/indices/disk_usage/IndicesDiskUsageRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Analyze the index disk usage. @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters?: { /** * If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/downsample/Request.ts b/specification/indices/downsample/Request.ts index 50f6fe15e6..9938293b98 100644 --- a/specification/indices/downsample/Request.ts +++ b/specification/indices/downsample/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { DownsampleConfig } from '@indices/_types/Downsample' /** @@ -59,6 +59,8 @@ export interface Request extends RequestBase { */ target_index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name config */ body: DownsampleConfig } diff --git a/specification/indices/exists/IndicesExistsRequest.ts b/specification/indices/exists/IndicesExistsRequest.ts index 3d0c2fdbfc..4855bad2fe 100644 --- a/specification/indices/exists/IndicesExistsRequest.ts +++ b/specification/indices/exists/IndicesExistsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Check indices. @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/exists_alias/IndicesExistsAliasRequest.ts b/specification/indices/exists_alias/IndicesExistsAliasRequest.ts index 7a16e005b3..c8d0cb7b8d 100644 --- a/specification/indices/exists_alias/IndicesExistsAliasRequest.ts +++ b/specification/indices/exists_alias/IndicesExistsAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Names } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts b/specification/indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts index eed0fbcca3..c173f700bb 100644 --- a/specification/indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts +++ b/specification/indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { /** Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. diff --git a/specification/indices/exists_template/IndicesExistsTemplateRequest.ts b/specification/indices/exists_template/IndicesExistsTemplateRequest.ts index 98bd92c2b2..896b2c2652 100644 --- a/specification/indices/exists_template/IndicesExistsTemplateRequest.ts +++ b/specification/indices/exists_template/IndicesExistsTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether to use a flat format for the response. diff --git a/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts b/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts index f2904a0993..02bdcc54de 100644 --- a/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts +++ b/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + response_media_type: MediaType.Json query_parameters: { include_defaults?: boolean /** diff --git a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts index 1155b6fa56..822a7cc233 100644 --- a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts +++ b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Fields, Indices } from '@_types/common' +import { ExpandWildcards, Fields, Indices, MediaType } from '@_types/common' /** * Get field usage stats. @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/flush/IndicesFlushRequest.ts b/specification/indices/flush/IndicesFlushRequest.ts index 9998974df2..56b3f9082d 100644 --- a/specification/indices/flush/IndicesFlushRequest.ts +++ b/specification/indices/flush/IndicesFlushRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Flush data streams or indices. @@ -58,6 +58,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/forcemerge/IndicesForceMergeRequest.ts b/specification/indices/forcemerge/IndicesForceMergeRequest.ts index 708302f587..2f7d529da3 100644 --- a/specification/indices/forcemerge/IndicesForceMergeRequest.ts +++ b/specification/indices/forcemerge/IndicesForceMergeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { long } from '@_types/Numeric' /** @@ -97,6 +97,7 @@ export interface Request extends RequestBase { path_parts: { index?: Indices } + response_media_type: MediaType.Json query_parameters: { allow_no_indices?: boolean /** diff --git a/specification/indices/get/IndicesGetRequest.ts b/specification/indices/get/IndicesGetRequest.ts index 9b39615e40..721eff850a 100644 --- a/specification/indices/get/IndicesGetRequest.ts +++ b/specification/indices/get/IndicesGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or _all value targets only diff --git a/specification/indices/get_alias/IndicesGetAliasRequest.ts b/specification/indices/get_alias/IndicesGetAliasRequest.ts index 6a4e93ea59..3061bca3a2 100644 --- a/specification/indices/get_alias/IndicesGetAliasRequest.ts +++ b/specification/indices/get_alias/IndicesGetAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Names } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -64,6 +64,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts b/specification/indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts index dbd718ac48..6329d0f053 100644 --- a/specification/indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts +++ b/specification/indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get all sampling configurations. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is diff --git a/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts b/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts index 461fe72835..ac1cdfc36e 100644 --- a/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts +++ b/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts b/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts index 2963930215..376ec81a9a 100644 --- a/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts +++ b/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get data stream lifecycle stats. @@ -37,4 +38,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts b/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts index 7a46d919c5..c16427f862 100644 --- a/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts +++ b/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ name?: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts b/specification/indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts index b7adbda6a7..d19c3a67ee 100644 --- a/specification/indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts +++ b/specification/indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: Indices } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. If no response is diff --git a/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts b/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts index 0595dbe958..d8fe683734 100644 --- a/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts +++ b/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts b/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts index db07d90880..5a246c150f 100644 --- a/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts +++ b/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: Indices } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. If no response is diff --git a/specification/indices/get_field_mapping/IndicesGetFieldMappingRequest.ts b/specification/indices/get_field_mapping/IndicesGetFieldMappingRequest.ts index af4e8431b8..2d17a6efa7 100644 --- a/specification/indices/get_field_mapping/IndicesGetFieldMappingRequest.ts +++ b/specification/indices/get_field_mapping/IndicesGetFieldMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Fields, Indices } from '@_types/common' +import { ExpandWildcards, Fields, Indices, MediaType } from '@_types/common' /** * Get mapping definitions. @@ -56,6 +56,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/get_index_template/IndicesGetIndexTemplateRequest.ts b/specification/indices/get_index_template/IndicesGetIndexTemplateRequest.ts index dbdd05693f..382c2eccd2 100644 --- a/specification/indices/get_index_template/IndicesGetIndexTemplateRequest.ts +++ b/specification/indices/get_index_template/IndicesGetIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { /** Name of index template to retrieve. Wildcard (*) expressions are supported. */ name?: Name } + response_media_type: MediaType.Json query_parameters: { /** * If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. diff --git a/specification/indices/get_mapping/IndicesGetMappingRequest.ts b/specification/indices/get_mapping/IndicesGetMappingRequest.ts index 18fb0c5e75..1124068029 100644 --- a/specification/indices/get_mapping/IndicesGetMappingRequest.ts +++ b/specification/indices/get_mapping/IndicesGetMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts index 6783803207..94cd0feea4 100644 --- a/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts +++ b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' /** * Get the migration reindexing status. @@ -41,4 +41,6 @@ export interface Request extends RequestBase { /** The index or data stream name. */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/indices/get_sample/GetRandomSampleRequest.ts b/specification/indices/get_sample/GetRandomSampleRequest.ts index 1737df8655..4ada9cb6a3 100644 --- a/specification/indices/get_sample/GetRandomSampleRequest.ts +++ b/specification/indices/get_sample/GetRandomSampleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Request for a random sample of raw documents ingested into the given index or data stream. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json } diff --git a/specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts b/specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts index c863fdc32e..6f4b914175 100644 --- a/specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts +++ b/specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is diff --git a/specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts b/specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts index 4d779fb0fe..0bff4f6843 100644 --- a/specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts +++ b/specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Request stats for a random sample of raw documents ingested into the given index or data stream. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json } diff --git a/specification/indices/get_settings/IndicesGetSettingsRequest.ts b/specification/indices/get_settings/IndicesGetSettingsRequest.ts index ddf5ee713b..0e898767d2 100644 --- a/specification/indices/get_settings/IndicesGetSettingsRequest.ts +++ b/specification/indices/get_settings/IndicesGetSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Names } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -63,6 +63,7 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index diff --git a/specification/indices/get_template/IndicesGetTemplateRequest.ts b/specification/indices/get_template/IndicesGetTemplateRequest.ts index 5dd5734a31..68beef9f15 100644 --- a/specification/indices/get_template/IndicesGetTemplateRequest.ts +++ b/specification/indices/get_template/IndicesGetTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, returns settings in flat format. diff --git a/specification/indices/migrate_reindex/MigrateReindexRequest.ts b/specification/indices/migrate_reindex/MigrateReindexRequest.ts index 3031840f15..a54c64c7a8 100644 --- a/specification/indices/migrate_reindex/MigrateReindexRequest.ts +++ b/specification/indices/migrate_reindex/MigrateReindexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Reindex legacy backing indices. @@ -38,6 +38,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name reindex */ body: MigrateReindex } diff --git a/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts b/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts index 97279688f1..c9c5bdd11e 100644 --- a/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts +++ b/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -52,6 +52,7 @@ export interface Request extends RequestBase { /** Name of the index alias to convert to a data stream. */ name: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts b/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts index 3337265cb6..e949558ff7 100644 --- a/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts +++ b/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Action } from './types' /** @@ -37,6 +38,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Actions to perform. diff --git a/specification/indices/open/IndicesOpenRequest.ts b/specification/indices/open/IndicesOpenRequest.ts index 14aef859a7..9ccbe1b4a0 100644 --- a/specification/indices/open/IndicesOpenRequest.ts +++ b/specification/indices/open/IndicesOpenRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, WaitForActiveShards } from '@_types/common' +import { + ExpandWildcards, + Indices, + MediaType, + WaitForActiveShards +} from '@_types/common' import { Duration } from '@_types/Time' /** @@ -70,6 +75,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts b/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts index c694ba0e28..4e320895e0 100644 --- a/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts +++ b/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { path_parts: { name: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/put_alias/IndicesPutAliasRequest.ts b/specification/indices/put_alias/IndicesPutAliasRequest.ts index 06aec5f5d0..3439f9d18a 100644 --- a/specification/indices/put_alias/IndicesPutAliasRequest.ts +++ b/specification/indices/put_alias/IndicesPutAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Name, Routing } from '@_types/common' +import { Indices, MediaType, Name, Routing } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts b/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts index 56b652227d..7028544b1a 100644 --- a/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts +++ b/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { DownsamplingRound } from '@indices/_types/DownsamplingRound' @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts b/specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts index ff351e0085..7b21e97857 100644 --- a/specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts +++ b/specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { Duration } from '@_types/Time' @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ name: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request does not actually change the mappings on any data streams. Instead, it diff --git a/specification/indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts b/specification/indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts index 61bf39e4b6..1ee8bfeb1f 100644 --- a/specification/indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts +++ b/specification/indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { DataStreamFailureStore } from '@indices/_types/DataStreamFailureStore' @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts b/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts index 7dc6a91b7b..71303a7fe4 100644 --- a/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts +++ b/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ name: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request does not actually change the settings on any data streams or indices. Instead, it diff --git a/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts b/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts index dfe9e8f53c..124e4e29df 100644 --- a/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts +++ b/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { IndexName, Indices, + MediaType, Metadata, Name, VersionNumber @@ -81,6 +82,8 @@ export interface Request extends RequestBase { /** Index or template name */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Name of the index template to create. diff --git a/specification/indices/put_mapping/IndicesPutMappingRequest.ts b/specification/indices/put_mapping/IndicesPutMappingRequest.ts index 69061bec0a..a85f37ee1f 100644 --- a/specification/indices/put_mapping/IndicesPutMappingRequest.ts +++ b/specification/indices/put_mapping/IndicesPutMappingRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, + MediaType, Metadata, PropertyName } from '@_types/common' @@ -70,6 +71,8 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts b/specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts index f30950badc..267b316a30 100644 --- a/specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts +++ b/specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, IndexName } from '@_types/common' +import { ByteSize, IndexName, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { Stringified } from '@spec_utils/Stringified' @@ -45,6 +45,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is diff --git a/specification/indices/put_settings/IndicesPutSettingsRequest.ts b/specification/indices/put_settings/IndicesPutSettingsRequest.ts index e080545f5f..6330194448 100644 --- a/specification/indices/put_settings/IndicesPutSettingsRequest.ts +++ b/specification/indices/put_settings/IndicesPutSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -105,6 +105,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index diff --git a/specification/indices/put_template/IndicesPutTemplateRequest.ts b/specification/indices/put_template/IndicesPutTemplateRequest.ts index b378c728e3..bd07274b37 100644 --- a/specification/indices/put_template/IndicesPutTemplateRequest.ts +++ b/specification/indices/put_template/IndicesPutTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Name, VersionNumber } from '@_types/common' +import { IndexName, MediaType, Name, VersionNumber } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -66,6 +66,8 @@ export interface Request extends RequestBase { path_parts: { name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, this request cannot replace or update existing index templates. diff --git a/specification/indices/recovery/IndicesRecoveryRequest.ts b/specification/indices/recovery/IndicesRecoveryRequest.ts index ae268fd3e5..1e82a2554e 100644 --- a/specification/indices/recovery/IndicesRecoveryRequest.ts +++ b/specification/indices/recovery/IndicesRecoveryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Get index recovery information. @@ -70,6 +70,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the response only includes ongoing shard recoveries. diff --git a/specification/indices/refresh/IndicesRefreshRequest.ts b/specification/indices/refresh/IndicesRefreshRequest.ts index 3b04e97010..c94aca1b92 100644 --- a/specification/indices/refresh/IndicesRefreshRequest.ts +++ b/specification/indices/refresh/IndicesRefreshRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Refresh an index. @@ -63,6 +63,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts b/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts index 1575944e8c..b98e89ee34 100644 --- a/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts +++ b/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Reload search analyzers. @@ -52,6 +52,7 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + response_media_type: MediaType.Json query_parameters: { allow_no_indices?: boolean /** @server_default open */ diff --git a/specification/indices/remove_block/IndicesRemoveBlockRequest.ts b/specification/indices/remove_block/IndicesRemoveBlockRequest.ts index 9173bd1f70..2bf9f864c1 100644 --- a/specification/indices/remove_block/IndicesRemoveBlockRequest.ts +++ b/specification/indices/remove_block/IndicesRemoveBlockRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { IndicesBlockOptions } from '@indices/_types/IndexSettings' @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ block: IndicesBlockOptions } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/resolve_cluster/ResolveClusterRequest.ts b/specification/indices/resolve_cluster/ResolveClusterRequest.ts index 67c213770b..cfbdde5c38 100644 --- a/specification/indices/resolve_cluster/ResolveClusterRequest.ts +++ b/specification/indices/resolve_cluster/ResolveClusterRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Names } from '@_types/common' +import { ExpandWildcards, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -94,6 +94,7 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing diff --git a/specification/indices/resolve_index/ResolveIndexRequest.ts b/specification/indices/resolve_index/ResolveIndexRequest.ts index 3a128d0a8b..8197eccc12 100644 --- a/specification/indices/resolve_index/ResolveIndexRequest.ts +++ b/specification/indices/resolve_index/ResolveIndexRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Names, ProjectRouting } from '@_types/common' +import { + ExpandWildcards, + MediaType, + Names, + ProjectRouting +} from '@_types/common' import { IndexMode } from '@indices/_types/DataStream' /** @@ -46,6 +51,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Type of index that wildcard patterns can match. diff --git a/specification/indices/rollover/IndicesRolloverRequest.ts b/specification/indices/rollover/IndicesRolloverRequest.ts index 02d345d6d1..6d0df81c0e 100644 --- a/specification/indices/rollover/IndicesRolloverRequest.ts +++ b/specification/indices/rollover/IndicesRolloverRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { IndexAlias, IndexName, WaitForActiveShards } from '@_types/common' +import { + IndexAlias, + IndexName, + MediaType, + WaitForActiveShards +} from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' @@ -95,6 +100,8 @@ export interface Request extends RequestBase { */ new_index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, checks whether the current index satisfies the specified conditions but does not perform a rollover. diff --git a/specification/indices/segments/IndicesSegmentsRequest.ts b/specification/indices/segments/IndicesSegmentsRequest.ts index 9a4d3eacf5..8cdc32540c 100644 --- a/specification/indices/segments/IndicesSegmentsRequest.ts +++ b/specification/indices/segments/IndicesSegmentsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Get index segments. @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/shard_stores/IndicesShardStoresRequest.ts b/specification/indices/shard_stores/IndicesShardStoresRequest.ts index dcda697990..14d3fe2117 100644 --- a/specification/indices/shard_stores/IndicesShardStoresRequest.ts +++ b/specification/indices/shard_stores/IndicesShardStoresRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { ShardStoreStatus } from './types' /** @@ -57,6 +57,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or _all diff --git a/specification/indices/shrink/IndicesShrinkRequest.ts b/specification/indices/shrink/IndicesShrinkRequest.ts index 1209226eaf..10033136cd 100644 --- a/specification/indices/shrink/IndicesShrinkRequest.ts +++ b/specification/indices/shrink/IndicesShrinkRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, WaitForActiveShards } from '@_types/common' +import { IndexName, MediaType, WaitForActiveShards } from '@_types/common' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' import { Dictionary } from '@spec_utils/Dictionary' @@ -80,6 +80,8 @@ export interface Request extends RequestBase { */ target: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts index 62b95fc22d..9ff74be9e9 100644 --- a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts +++ b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { IndexTemplate } from '@indices/_types/IndexTemplate' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { /** Name of the index to simulate */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one diff --git a/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts b/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts index 33f83469a8..d23653cb71 100644 --- a/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts +++ b/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Metadata, Name, VersionNumber } from '@_types/common' +import { + Indices, + MediaType, + Metadata, + Name, + VersionNumber +} from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { DataStreamVisibility } from '@indices/_types/DataStream' @@ -52,6 +58,8 @@ export interface Request extends RequestBase { */ name?: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation. diff --git a/specification/indices/split/IndicesSplitRequest.ts b/specification/indices/split/IndicesSplitRequest.ts index 108b940be8..94ad2c8104 100644 --- a/specification/indices/split/IndicesSplitRequest.ts +++ b/specification/indices/split/IndicesSplitRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, WaitForActiveShards } from '@_types/common' +import { IndexName, MediaType, WaitForActiveShards } from '@_types/common' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' import { Dictionary } from '@spec_utils/Dictionary' @@ -81,6 +81,8 @@ export interface Request extends RequestBase { */ target: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/stats/IndicesStatsRequest.ts b/specification/indices/stats/IndicesStatsRequest.ts index 73999d8098..c6d822279a 100644 --- a/specification/indices/stats/IndicesStatsRequest.ts +++ b/specification/indices/stats/IndicesStatsRequest.ts @@ -23,7 +23,8 @@ import { ExpandWildcards, Fields, Indices, - Level + Level, + MediaType } from '@_types/common' /** @@ -68,6 +69,7 @@ export interface Request extends RequestBase { metric?: CommonStatsFlags index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. diff --git a/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts b/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts index e6b574b593..bbd5498db1 100644 --- a/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts +++ b/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Action } from './types' @@ -37,6 +38,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/validate_query/IndicesValidateQueryRequest.ts b/specification/indices/validate_query/IndicesValidateQueryRequest.ts index a36e04cac4..fca1110419 100644 --- a/specification/indices/validate_query/IndicesValidateQueryRequest.ts +++ b/specification/indices/validate_query/IndicesValidateQueryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Operator } from '@_types/query_dsl/Operator' @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/inference/chat_completion_unified/UnifiedRequest.ts b/specification/inference/chat_completion_unified/UnifiedRequest.ts index 8cfa4edf7d..2fa0028d1c 100644 --- a/specification/inference/chat_completion_unified/UnifiedRequest.ts +++ b/specification/inference/chat_completion_unified/UnifiedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { RequestChatCompletion } from '@inference/_types/CommonTypes' /** @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.EventStream query_parameters: { /** * Specifies the amount of time to wait for the inference request to complete. diff --git a/specification/inference/completion/CompletionRequest.ts b/specification/inference/completion/CompletionRequest.ts index 8b77e8d26b..ec5821fdf5 100644 --- a/specification/inference/completion/CompletionRequest.ts +++ b/specification/inference/completion/CompletionRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference request to complete. diff --git a/specification/inference/delete/DeleteRequest.ts b/specification/inference/delete/DeleteRequest.ts index c0eae5130e..adb9126891 100644 --- a/specification/inference/delete/DeleteRequest.ts +++ b/specification/inference/delete/DeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { TaskType } from '@inference/_types/TaskType' /** @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ inference_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * When true, checks the semantic_text fields and inference processors that reference the endpoint and returns them in a list, but does not delete the endpoint. diff --git a/specification/inference/get/GetRequest.ts b/specification/inference/get/GetRequest.ts index 67275da914..4f83e312bb 100644 --- a/specification/inference/get/GetRequest.ts +++ b/specification/inference/get/GetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { TaskType } from '@inference/_types/TaskType' /** @@ -55,4 +55,5 @@ export interface Request extends RequestBase { */ inference_id?: Id } + response_media_type: MediaType.Json } diff --git a/specification/inference/inference/InferenceRequest.ts b/specification/inference/inference/InferenceRequest.ts index e4d063f08a..9704be255d 100644 --- a/specification/inference/inference/InferenceRequest.ts +++ b/specification/inference/inference/InferenceRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' import { TaskType } from '@inference/_types/TaskType' @@ -61,6 +61,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The amount of time to wait for the inference request to complete. diff --git a/specification/inference/put/PutRequest.ts b/specification/inference/put/PutRequest.ts index 1331fbeed6..a9947d1c5f 100644 --- a/specification/inference/put/PutRequest.ts +++ b/specification/inference/put/PutRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { InferenceEndpoint } from '@inference/_types/Services' import { TaskType } from '@inference/_types/TaskType' @@ -79,6 +79,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_ai21/PutAi21Request.ts b/specification/inference/put_ai21/PutAi21Request.ts index 0c2806cd24..6c34404e4a 100644 --- a/specification/inference/put_ai21/PutAi21Request.ts +++ b/specification/inference/put_ai21/PutAi21Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Ai21ServiceSettings, @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ ai21_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts b/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts index b2ce40073a..22ea0ee0cc 100644 --- a/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts +++ b/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AlibabaCloudServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ alibabacloud_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts b/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts index e87d687d88..834ff7da8a 100644 --- a/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts +++ b/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AmazonBedrockServiceSettings, @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ amazonbedrock_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts b/specification/inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts index b91ebdcf5a..e1b91891aa 100644 --- a/specification/inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts +++ b/specification/inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AmazonSageMakerServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ amazonsagemaker_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_anthropic/PutAnthropicRequest.ts b/specification/inference/put_anthropic/PutAnthropicRequest.ts index 501bf7a631..88a9ad5763 100644 --- a/specification/inference/put_anthropic/PutAnthropicRequest.ts +++ b/specification/inference/put_anthropic/PutAnthropicRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AnthropicServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ anthropic_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts b/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts index 8b152cd190..b36e3bab93 100644 --- a/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts +++ b/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AzureAiStudioServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ azureaistudio_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts b/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts index dd72ba63d8..320adbc473 100644 --- a/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts +++ b/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AzureOpenAIServiceSettings, @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ azureopenai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_cohere/PutCohereRequest.ts b/specification/inference/put_cohere/PutCohereRequest.ts index ef267defa5..b9ba1305f5 100644 --- a/specification/inference/put_cohere/PutCohereRequest.ts +++ b/specification/inference/put_cohere/PutCohereRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { CohereServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ cohere_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_contextualai/PutContextualAiRequest.ts b/specification/inference/put_contextualai/PutContextualAiRequest.ts index d52ac070b8..b052b9531a 100644 --- a/specification/inference/put_contextualai/PutContextualAiRequest.ts +++ b/specification/inference/put_contextualai/PutContextualAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { ContextualAIServiceSettings, @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ contextualai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_custom/PutCustomRequest.ts b/specification/inference/put_custom/PutCustomRequest.ts index 9d7ef981c1..7eeab3c786 100644 --- a/specification/inference/put_custom/PutCustomRequest.ts +++ b/specification/inference/put_custom/PutCustomRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CustomServiceSettings, CustomServiceType, @@ -93,6 +93,8 @@ export interface Request extends RequestBase { */ custom_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The chunking configuration object. diff --git a/specification/inference/put_deepseek/PutDeepSeekRequest.ts b/specification/inference/put_deepseek/PutDeepSeekRequest.ts index 7387aba59a..1dd0bdf98c 100644 --- a/specification/inference/put_deepseek/PutDeepSeekRequest.ts +++ b/specification/inference/put_deepseek/PutDeepSeekRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { DeepSeekServiceSettings, @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ deepseek_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts b/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts index 74d51feb19..a246231dd7 100644 --- a/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts +++ b/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { ElasticsearchServiceSettings, @@ -69,6 +69,8 @@ export interface Request extends RequestBase { */ elasticsearch_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_elser/PutElserRequest.ts b/specification/inference/put_elser/PutElserRequest.ts index e5a21e2cdd..29290b495f 100644 --- a/specification/inference/put_elser/PutElserRequest.ts +++ b/specification/inference/put_elser/PutElserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { ElserServiceSettings, @@ -69,6 +69,8 @@ export interface Request extends RequestBase { */ elser_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts b/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts index c8c2f0f6a8..03b254f260 100644 --- a/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts +++ b/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { GoogleAiServiceType, @@ -54,6 +54,8 @@ export interface Request extends RequestBase { */ googleaistudio_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts b/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts index 943faaf1dc..9bcb1d83c0 100644 --- a/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts +++ b/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { GoogleVertexAIServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ googlevertexai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts b/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts index e74fd19773..07b700d351 100644 --- a/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts +++ b/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { HuggingFaceServiceSettings, @@ -91,6 +91,8 @@ export interface Request extends RequestBase { */ huggingface_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_jinaai/PutJinaAiRequest.ts b/specification/inference/put_jinaai/PutJinaAiRequest.ts index a6f048ccfb..b71ccba381 100644 --- a/specification/inference/put_jinaai/PutJinaAiRequest.ts +++ b/specification/inference/put_jinaai/PutJinaAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { JinaAIServiceSettings, @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ jinaai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_llama/PutLlamaRequest.ts b/specification/inference/put_llama/PutLlamaRequest.ts index d1542382d6..a2501251a9 100644 --- a/specification/inference/put_llama/PutLlamaRequest.ts +++ b/specification/inference/put_llama/PutLlamaRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { LlamaServiceSettings, @@ -54,6 +54,8 @@ export interface Request extends RequestBase { */ llama_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_mistral/PutMistralRequest.ts b/specification/inference/put_mistral/PutMistralRequest.ts index 304351e87a..14b71921e1 100644 --- a/specification/inference/put_mistral/PutMistralRequest.ts +++ b/specification/inference/put_mistral/PutMistralRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { MistralServiceSettings, @@ -54,6 +54,8 @@ export interface Request extends RequestBase { */ mistral_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_openai/PutOpenAiRequest.ts b/specification/inference/put_openai/PutOpenAiRequest.ts index 48ec00c1ad..29542a8dfe 100644 --- a/specification/inference/put_openai/PutOpenAiRequest.ts +++ b/specification/inference/put_openai/PutOpenAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { OpenAIServiceSettings, @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ openai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_openshift_ai/PutOpenShiftAiRequest.ts b/specification/inference/put_openshift_ai/PutOpenShiftAiRequest.ts index 7bde35d540..46ad627874 100644 --- a/specification/inference/put_openshift_ai/PutOpenShiftAiRequest.ts +++ b/specification/inference/put_openshift_ai/PutOpenShiftAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { OpenShiftAiServiceSettings, @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ openshiftai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_voyageai/PutVoyageAIRequest.ts b/specification/inference/put_voyageai/PutVoyageAIRequest.ts index 7ed94f49cc..6652c52913 100644 --- a/specification/inference/put_voyageai/PutVoyageAIRequest.ts +++ b/specification/inference/put_voyageai/PutVoyageAIRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { VoyageAIServiceSettings, @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ voyageai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_watsonx/PutWatsonxRequest.ts b/specification/inference/put_watsonx/PutWatsonxRequest.ts index 86837a2254..46fc0f3602 100644 --- a/specification/inference/put_watsonx/PutWatsonxRequest.ts +++ b/specification/inference/put_watsonx/PutWatsonxRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { WatsonxServiceSettings, @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ watsonx_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/rerank/RerankRequest.ts b/specification/inference/rerank/RerankRequest.ts index 8cb6b5f8f5..3472fd1cf2 100644 --- a/specification/inference/rerank/RerankRequest.ts +++ b/specification/inference/rerank/RerankRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -45,6 +45,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The amount of time to wait for the inference request to complete. diff --git a/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts b/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts index 460ae70028..fa3dc0896f 100644 --- a/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts +++ b/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference request to complete. diff --git a/specification/inference/stream_completion/StreamInferenceRequest.ts b/specification/inference/stream_completion/StreamInferenceRequest.ts index 604bc9d99c..645bcbb1ed 100644 --- a/specification/inference/stream_completion/StreamInferenceRequest.ts +++ b/specification/inference/stream_completion/StreamInferenceRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.EventStream query_parameters: { /** * The amount of time to wait for the inference request to complete. diff --git a/specification/inference/text_embedding/TextEmbeddingRequest.ts b/specification/inference/text_embedding/TextEmbeddingRequest.ts index d925870a93..d8b4152b75 100644 --- a/specification/inference/text_embedding/TextEmbeddingRequest.ts +++ b/specification/inference/text_embedding/TextEmbeddingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference request to complete. diff --git a/specification/inference/update/UpdateInferenceRequest.ts b/specification/inference/update/UpdateInferenceRequest.ts index 56070d3ece..10016aba2f 100644 --- a/specification/inference/update/UpdateInferenceRequest.ts +++ b/specification/inference/update/UpdateInferenceRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { InferenceEndpoint } from '@inference/_types/Services' import { TaskType } from '@inference/_types/TaskType' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ task_type?: TaskType } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name inference_config */ body: InferenceEndpoint } diff --git a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts index 7e50d68e88..6bff4cf28d 100644 --- a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts +++ b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ id: Ids } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts b/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts index b309c0e44a..87b0f0a254 100644 --- a/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts +++ b/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ id: Ids } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ingest/delete_pipeline/DeletePipelineRequest.ts b/specification/ingest/delete_pipeline/DeletePipelineRequest.ts index 971216f65e..a28b9f8d9a 100644 --- a/specification/ingest/delete_pipeline/DeletePipelineRequest.ts +++ b/specification/ingest/delete_pipeline/DeletePipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts b/specification/ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts index fd78525d9c..31e1e8a040 100644 --- a/specification/ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts +++ b/specification/ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get GeoIP statistics. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts b/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts index f094254512..68730ebd7c 100644 --- a/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts +++ b/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get GeoIP database configurations. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ id?: Ids } + response_media_type: MediaType.Json } diff --git a/specification/ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts b/specification/ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts index 02165193fa..f755c5d947 100644 --- a/specification/ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts +++ b/specification/ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get IP geolocation database configurations. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ id?: Ids } + response_media_type: MediaType.Json } diff --git a/specification/ingest/get_pipeline/GetPipelineRequest.ts b/specification/ingest/get_pipeline/GetPipelineRequest.ts index 9b4a680784..784d1de899 100644 --- a/specification/ingest/get_pipeline/GetPipelineRequest.ts +++ b/specification/ingest/get_pipeline/GetPipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ingest/processor_grok/GrokProcessorPatternsRequest.ts b/specification/ingest/processor_grok/GrokProcessorPatternsRequest.ts index 42eb53d875..b6b366be36 100644 --- a/specification/ingest/processor_grok/GrokProcessorPatternsRequest.ts +++ b/specification/ingest/processor_grok/GrokProcessorPatternsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Run a grok processor. @@ -38,4 +39,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts index a8562298f6..de6da096ee 100644 --- a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts +++ b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name } from '@_types/common' +import { Id, MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Maxmind } from '@ingest/_types/Database' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts b/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts index eccefcaee5..77afa67d5a 100644 --- a/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts +++ b/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { DatabaseConfiguration } from '@ingest/_types/Database' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ingest/put_pipeline/PutPipelineRequest.ts b/specification/ingest/put_pipeline/PutPipelineRequest.ts index 79ad35d41a..afc4d6c936 100644 --- a/specification/ingest/put_pipeline/PutPipelineRequest.ts +++ b/specification/ingest/put_pipeline/PutPipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata, VersionNumber } from '@_types/common' +import { Id, MediaType, Metadata, VersionNumber } from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { FieldAccessPattern } from '@ingest/_types/Pipeline' @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ingest/simulate/SimulatePipelineRequest.ts b/specification/ingest/simulate/SimulatePipelineRequest.ts index cf32f592ce..572e35a793 100644 --- a/specification/ingest/simulate/SimulatePipelineRequest.ts +++ b/specification/ingest/simulate/SimulatePipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Pipeline } from '@ingest/_types/Pipeline' import { Document } from '../_types/Simulation' @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the response includes output data for each processor in the executed pipeline. diff --git a/specification/license/delete/DeleteLicenseRequest.ts b/specification/license/delete/DeleteLicenseRequest.ts index d9397061bc..3f3d880c6c 100644 --- a/specification/license/delete/DeleteLicenseRequest.ts +++ b/specification/license/delete/DeleteLicenseRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Delete the license. @@ -39,6 +40,7 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/license/get/GetLicenseRequest.ts b/specification/license/get/GetLicenseRequest.ts index cd00a7b796..c53110f6cb 100644 --- a/specification/license/get/GetLicenseRequest.ts +++ b/specification/license/get/GetLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get license information. @@ -39,6 +40,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * If `true`, this parameter returns enterprise for Enterprise license types. If `false`, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. diff --git a/specification/license/get_basic_status/GetBasicLicenseStatusRequest.ts b/specification/license/get_basic_status/GetBasicLicenseStatusRequest.ts index 515a4a3007..806ba93a97 100644 --- a/specification/license/get_basic_status/GetBasicLicenseStatusRequest.ts +++ b/specification/license/get_basic_status/GetBasicLicenseStatusRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get the basic license status. @@ -34,4 +35,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/license/get_trial_status/GetTrialLicenseStatusRequest.ts b/specification/license/get_trial_status/GetTrialLicenseStatusRequest.ts index e7c7bff946..58281528ac 100644 --- a/specification/license/get_trial_status/GetTrialLicenseStatusRequest.ts +++ b/specification/license/get_trial_status/GetTrialLicenseStatusRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get the trial status. @@ -34,4 +35,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/license/post/PostLicenseRequest.ts b/specification/license/post/PostLicenseRequest.ts index c5fb72ecff..f6f04ce85b 100644 --- a/specification/license/post/PostLicenseRequest.ts +++ b/specification/license/post/PostLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { License } from '@license/_types/License' @@ -43,6 +44,8 @@ export interface Request extends RequestBase { methods: ['PUT', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies whether you acknowledge the license changes. diff --git a/specification/license/post_start_basic/StartBasicLicenseRequest.ts b/specification/license/post_start_basic/StartBasicLicenseRequest.ts index b9bfadd74d..a62127d659 100644 --- a/specification/license/post_start_basic/StartBasicLicenseRequest.ts +++ b/specification/license/post_start_basic/StartBasicLicenseRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start a basic license. @@ -43,6 +44,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { acknowledge?: boolean /** diff --git a/specification/license/post_start_trial/StartTrialLicenseRequest.ts b/specification/license/post_start_trial/StartTrialLicenseRequest.ts index 9ff4b5eb18..e9d2c839fc 100644 --- a/specification/license/post_start_trial/StartTrialLicenseRequest.ts +++ b/specification/license/post_start_trial/StartTrialLicenseRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start a trial. @@ -41,6 +42,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { acknowledge?: boolean type?: string diff --git a/specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts b/specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts index 4b760e3632..f3a0773209 100644 --- a/specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts +++ b/specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a Logstash pipeline. @@ -45,4 +45,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts b/specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts index fd9d885685..ca051a9ef4 100644 --- a/specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts +++ b/specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get Logstash pipelines. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ id?: Ids } + response_media_type: MediaType.Json } diff --git a/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts b/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts index 53daa6c37f..71bcaefe8c 100644 --- a/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts +++ b/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Pipeline } from '@logstash/_types/Pipeline' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name pipeline */ body: Pipeline } diff --git a/specification/migration/deprecations/DeprecationInfoRequest.ts b/specification/migration/deprecations/DeprecationInfoRequest.ts index 563a442c75..f7802d0b0d 100644 --- a/specification/migration/deprecations/DeprecationInfoRequest.ts +++ b/specification/migration/deprecations/DeprecationInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Get deprecation information. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { /** Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported. */ index?: IndexName } + response_media_type: MediaType.Json } diff --git a/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts b/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts index abc2b77c10..9fbb80002b 100644 --- a/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts +++ b/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get feature migration information. @@ -40,4 +41,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts b/specification/migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts index 0cb17952ea..359c5879e6 100644 --- a/specification/migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts +++ b/specification/migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Start the feature migration. @@ -41,4 +42,5 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts b/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts index 5b92ea99b2..e5fbfd7c08 100644 --- a/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts +++ b/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Clear trained model deployment cache. @@ -47,4 +47,6 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/ml/close_job/MlCloseJobRequest.ts b/specification/ml/close_job/MlCloseJobRequest.ts index 8b3b14006c..74214b2d04 100644 --- a/specification/ml/close_job/MlCloseJobRequest.ts +++ b/specification/ml/close_job/MlCloseJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no jobs that match; contains the `_all` string or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty jobs array when there are no matches and the subset of results when there are partial matches. diff --git a/specification/ml/delete_calendar/MlDeleteCalendarRequest.ts b/specification/ml/delete_calendar/MlDeleteCalendarRequest.ts index e10d72d371..cbdba4623b 100644 --- a/specification/ml/delete_calendar/MlDeleteCalendarRequest.ts +++ b/specification/ml/delete_calendar/MlDeleteCalendarRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a calendar. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. */ calendar_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts b/specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts index 758028f2f4..5d1198c3fa 100644 --- a/specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts +++ b/specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete events from a calendar. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ event_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts b/specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts index 044508d4e9..c4d8701d2c 100644 --- a/specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts +++ b/specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Ids } from '@_types/common' +import { Id, Ids, MediaType } from '@_types/common' /** * Delete anomaly jobs from a calendar. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ job_id: Ids } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts b/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts index 0042ef7ea1..53df5ce089 100644 --- a/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts +++ b/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job. diff --git a/specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts b/specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts index af5d5e8969..f210126727 100644 --- a/specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts +++ b/specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a datafeed. @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Use to forcefully delete a started datafeed; this method is quicker than diff --git a/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts b/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts index 27c1ec28da..aabecc4f87 100644 --- a/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts +++ b/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { float } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ job_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The desired requests per second for the deletion processes. The default diff --git a/specification/ml/delete_filter/MlDeleteFilterRequest.ts b/specification/ml/delete_filter/MlDeleteFilterRequest.ts index 1c096d9938..29b56bdccc 100644 --- a/specification/ml/delete_filter/MlDeleteFilterRequest.ts +++ b/specification/ml/delete_filter/MlDeleteFilterRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a filter. @@ -45,4 +45,5 @@ export interface Request extends RequestBase { */ filter_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_forecast/MlDeleteForecastRequest.ts b/specification/ml/delete_forecast/MlDeleteForecastRequest.ts index ecc291643b..3983c7ae06 100644 --- a/specification/ml/delete_forecast/MlDeleteForecastRequest.ts +++ b/specification/ml/delete_forecast/MlDeleteForecastRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -58,6 +58,7 @@ export interface Request extends RequestBase { */ forecast_id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies whether an error occurs when there are no forecasts. In diff --git a/specification/ml/delete_job/MlDeleteJobRequest.ts b/specification/ml/delete_job/MlDeleteJobRequest.ts index 05e34611f4..380f43ba27 100644 --- a/specification/ml/delete_job/MlDeleteJobRequest.ts +++ b/specification/ml/delete_job/MlDeleteJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an anomaly detection job. @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ job_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Use to forcefully delete an opened job; this method is quicker than diff --git a/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts b/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts index 78c062e3d0..1390124372 100644 --- a/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts +++ b/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a model snapshot. @@ -50,4 +50,5 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts b/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts index 0822ff2f94..5696c4f4b4 100644 --- a/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts +++ b/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ model_id: Id } + response_media_type: MediaType.Json query_parameters: { /** Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment. **/ force?: boolean diff --git a/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts b/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts index 4da5715934..c044e54047 100644 --- a/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts +++ b/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name } from '@_types/common' +import { Id, MediaType, Name } from '@_types/common' /** * Delete a trained model alias. @@ -50,4 +50,6 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts b/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts index d1b6462413..efd250b37a 100644 --- a/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts +++ b/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field } from '@_types/common' +import { Field, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { AnalysisConfig } from '@ml/_types/Analysis' import { Dictionary } from '@spec_utils/Dictionary' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * For a list of the properties that you can specify in the diff --git a/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts b/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts index ab58bb4b15..8722de298b 100644 --- a/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts +++ b/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { DataframeEvaluationContainer } from '@ml/_types/DataframeEvaluation' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Defines the type of evaluation you want to perform. diff --git a/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts b/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts index 96e764ce97..10306d97ec 100644 --- a/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts +++ b/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { DataframeAnalysisAnalyzedFields, @@ -62,6 +62,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * The configuration of how to source the analysis data. It requires an diff --git a/specification/ml/flush_job/MlFlushJobRequest.ts b/specification/ml/flush_job/MlFlushJobRequest.ts index c222b26200..ddae8b8468 100644 --- a/specification/ml/flush_job/MlFlushJobRequest.ts +++ b/specification/ml/flush_job/MlFlushJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DateTime } from '@_types/Time' /** @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies to advance to a particular time value. Results are generated diff --git a/specification/ml/forecast/MlForecastJobRequest.ts b/specification/ml/forecast/MlForecastJobRequest.ts index 9133f93330..3d354f2827 100644 --- a/specification/ml/forecast/MlForecastJobRequest.ts +++ b/specification/ml/forecast/MlForecastJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A period of time that indicates how far into the future to forecast. For diff --git a/specification/ml/get_buckets/MlGetBucketsRequest.ts b/specification/ml/get_buckets/MlGetBucketsRequest.ts index d748ef9df8..badf86d5c1 100644 --- a/specification/ml/get_buckets/MlGetBucketsRequest.ts +++ b/specification/ml/get_buckets/MlGetBucketsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Id } from '@_types/common' +import { Field, Id, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { Page } from '@ml/_types/Page' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ timestamp?: DateTime } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Returns buckets with anomaly scores greater or equal than this value. diff --git a/specification/ml/get_calendar_events/MlGetCalendarEventsRequest.ts b/specification/ml/get_calendar_events/MlGetCalendarEventsRequest.ts index 95b4eb6ed1..d6b93fbc6c 100644 --- a/specification/ml/get_calendar_events/MlGetCalendarEventsRequest.ts +++ b/specification/ml/get_calendar_events/MlGetCalendarEventsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using `_all` or `*` or by omitting the calendar identifier.*/ calendar_id: Id } + response_media_type: MediaType.Json query_parameters: { /** Specifies to get events with timestamps earlier than this time. */ end?: DateTime diff --git a/specification/ml/get_calendars/MlGetCalendarsRequest.ts b/specification/ml/get_calendars/MlGetCalendarsRequest.ts index 11eb9c6e09..9f2194bddc 100644 --- a/specification/ml/get_calendars/MlGetCalendarsRequest.ts +++ b/specification/ml/get_calendars/MlGetCalendarsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Page } from '@ml/_types/Page' @@ -47,6 +47,8 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using `_all` or `*` or by omitting the calendar identifier.*/ calendar_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier. diff --git a/specification/ml/get_categories/MlGetCategoriesRequest.ts b/specification/ml/get_categories/MlGetCategoriesRequest.ts index 33775b7e0d..f2a908b9c0 100644 --- a/specification/ml/get_categories/MlGetCategoriesRequest.ts +++ b/specification/ml/get_categories/MlGetCategoriesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { CategoryId, Id } from '@_types/common' +import { CategoryId, Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Page } from '@ml/_types/Page' @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ category_id?: CategoryId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Skips the specified number of categories. diff --git a/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts b/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts index d08f8901b9..28eacc95c9 100644 --- a/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts +++ b/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts b/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts index f5dacfb80f..28f86a27f5 100644 --- a/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts +++ b/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts b/specification/ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts index 82a7fd891d..b18ddf5f99 100644 --- a/specification/ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts +++ b/specification/ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get datafeed stats. @@ -55,6 +55,7 @@ export interface Request extends RequestBase { */ datafeed_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_datafeeds/MlGetDatafeedsRequest.ts b/specification/ml/get_datafeeds/MlGetDatafeedsRequest.ts index 80697ab977..c09e4a89ee 100644 --- a/specification/ml/get_datafeeds/MlGetDatafeedsRequest.ts +++ b/specification/ml/get_datafeeds/MlGetDatafeedsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get datafeeds configuration info. @@ -54,6 +54,7 @@ export interface Request extends RequestBase { */ datafeed_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_filters/MlGetFiltersRequest.ts b/specification/ml/get_filters/MlGetFiltersRequest.ts index 38b0d4f0c0..59a87c2e36 100644 --- a/specification/ml/get_filters/MlGetFiltersRequest.ts +++ b/specification/ml/get_filters/MlGetFiltersRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ filter_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Skips the specified number of filters. diff --git a/specification/ml/get_influencers/MlGetInfluencersRequest.ts b/specification/ml/get_influencers/MlGetInfluencersRequest.ts index e0d79fdc8a..4e9a6880b9 100644 --- a/specification/ml/get_influencers/MlGetInfluencersRequest.ts +++ b/specification/ml/get_influencers/MlGetInfluencersRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Id } from '@_types/common' +import { Field, Id, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { Page } from '@ml/_types/Page' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, the results are sorted in descending order. diff --git a/specification/ml/get_job_stats/MlGetJobStatsRequest.ts b/specification/ml/get_job_stats/MlGetJobStatsRequest.ts index 3cf8bb1dc9..da2461b5b0 100644 --- a/specification/ml/get_job_stats/MlGetJobStatsRequest.ts +++ b/specification/ml/get_job_stats/MlGetJobStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get anomaly detection job stats. @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ job_id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_jobs/MlGetJobsRequest.ts b/specification/ml/get_jobs/MlGetJobsRequest.ts index 36928d7eab..09cb93e168 100644 --- a/specification/ml/get_jobs/MlGetJobsRequest.ts +++ b/specification/ml/get_jobs/MlGetJobsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get anomaly detection jobs configuration info. @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ job_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts b/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts index 08afd10949..9c0cc32c72 100644 --- a/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts +++ b/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ node_id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout diff --git a/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts b/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts index e66a059181..307392b103 100644 --- a/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts +++ b/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get anomaly detection job model snapshot upgrade usage info. @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts b/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts index 8343629001..45f0a7f4bd 100644 --- a/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts +++ b/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Id } from '@_types/common' +import { Field, Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { Page } from '@ml/_types/Page' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ snapshot_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, the results are sorted in descending order. diff --git a/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts b/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts index 54bbd5a805..681dd2aa73 100644 --- a/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts +++ b/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { DateTime, Duration } from '@_types/Time' @@ -67,6 +67,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts b/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts index 87bc44aaa3..be925513a3 100644 --- a/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts +++ b/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Id } from '@_types/common' +import { Field, Id, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { Page } from '@ml/_types/Page' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, the results are sorted in descending order. diff --git a/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts b/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts index 50bb0d7eda..dbead9ce41 100644 --- a/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts +++ b/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Include } from '@ml/_types/Include' @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ model_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts b/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts index f12cfe4a58..459b07fe22 100644 --- a/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts +++ b/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ model_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts b/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts index 93ab9923d9..6626376182 100644 --- a/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts +++ b/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { InferenceConfigUpdateContainer } from '@ml/_types/inference' import { Dictionary } from '@spec_utils/Dictionary' @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Controls the amount of time to wait for inference results. diff --git a/specification/ml/info/MlInfoRequest.ts b/specification/ml/info/MlInfoRequest.ts index d19e99646d..b49c376ab0 100644 --- a/specification/ml/info/MlInfoRequest.ts +++ b/specification/ml/info/MlInfoRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get machine learning information. @@ -42,4 +43,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ml/open_job/MlOpenJobRequest.ts b/specification/ml/open_job/MlOpenJobRequest.ts index c0eb92b59c..a9d75e5f45 100644 --- a/specification/ml/open_job/MlOpenJobRequest.ts +++ b/specification/ml/open_job/MlOpenJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Controls the time to wait until a job has opened. diff --git a/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts b/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts index d3a6d4d8f1..fdc62f7156 100644 --- a/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts +++ b/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CalendarEvent } from '../_types/CalendarEvent' /** @@ -42,6 +42,8 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. */ calendar_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format. */ events: CalendarEvent[] diff --git a/specification/ml/post_data/MlPostJobDataRequest.ts b/specification/ml/post_data/MlPostJobDataRequest.ts index 916ed586bf..6d3ca56d43 100644 --- a/specification/ml/post_data/MlPostJobDataRequest.ts +++ b/specification/ml/post_data/MlPostJobDataRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DateTime } from '@_types/Time' /** @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json | MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * Specifies the end of the bucket resetting range. diff --git a/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts b/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts index 7dc1e6d294..f6479ea11b 100644 --- a/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts +++ b/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DataframePreviewConfig } from './types' /** @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * A data frame analytics config as described in create data frame analytics diff --git a/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts b/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts index 434dc52c9f..3f4b7e629a 100644 --- a/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts +++ b/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DateTime } from '@_types/Time' import { DatafeedConfig } from '@ml/_types/Datafeed' import { JobConfig } from '@ml/_types/Job' @@ -62,6 +62,8 @@ export interface Request extends RequestBase { */ datafeed_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { start?: DateTime end?: DateTime diff --git a/specification/ml/put_calendar/MlPutCalendarRequest.ts b/specification/ml/put_calendar/MlPutCalendarRequest.ts index fd3780bb85..8016515673 100644 --- a/specification/ml/put_calendar/MlPutCalendarRequest.ts +++ b/specification/ml/put_calendar/MlPutCalendarRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Create a calendar. @@ -41,6 +41,8 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. */ calendar_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * An array of anomaly detection job identifiers. diff --git a/specification/ml/put_calendar_job/MlPutCalendarJobRequest.ts b/specification/ml/put_calendar_job/MlPutCalendarJobRequest.ts index a49e89f265..66603f2d25 100644 --- a/specification/ml/put_calendar_job/MlPutCalendarJobRequest.ts +++ b/specification/ml/put_calendar_job/MlPutCalendarJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Ids } from '@_types/common' +import { Id, Ids, MediaType } from '@_types/common' /** * Add anomaly detection job to calendar. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { /** An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. */ job_id: Ids } + response_media_type: MediaType.Json } diff --git a/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts b/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts index 058869c8f8..5539f705eb 100644 --- a/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts +++ b/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { HttpHeaders, Id, Metadata, VersionString } from '@_types/common' +import { + HttpHeaders, + Id, + MediaType, + Metadata, + VersionString +} from '@_types/common' import { integer } from '@_types/Numeric' import { DataframeAnalysisAnalyzedFields, @@ -60,6 +66,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Specifies whether this job can start when there is insufficient machine diff --git a/specification/ml/put_datafeed/MlPutDatafeedRequest.ts b/specification/ml/put_datafeed/MlPutDatafeedRequest.ts index e0df3bc5c9..b73aa67de8 100644 --- a/specification/ml/put_datafeed/MlPutDatafeedRequest.ts +++ b/specification/ml/put_datafeed/MlPutDatafeedRequest.ts @@ -24,7 +24,8 @@ import { HttpHeaders, Id, Indices, - IndicesOptions + IndicesOptions, + MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' @@ -71,6 +72,8 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the `_all` diff --git a/specification/ml/put_filter/MlPutFilterRequest.ts b/specification/ml/put_filter/MlPutFilterRequest.ts index 65b404573e..c8a8e289a6 100644 --- a/specification/ml/put_filter/MlPutFilterRequest.ts +++ b/specification/ml/put_filter/MlPutFilterRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Create a filter. @@ -45,6 +45,8 @@ export interface Request extends RequestBase { */ filter_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A description of the filter. diff --git a/specification/ml/put_job/MlPutJobRequest.ts b/specification/ml/put_job/MlPutJobRequest.ts index de0d231dcf..c68c9501bb 100644 --- a/specification/ml/put_job/MlPutJobRequest.ts +++ b/specification/ml/put_job/MlPutJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Id, IndexName } from '@_types/common' +import { ExpandWildcards, Id, IndexName, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { AnalysisConfig, AnalysisLimits } from '@ml/_types/Analysis' @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the diff --git a/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts b/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts index 6bfbaa8df5..fb0c03e325 100644 --- a/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts +++ b/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { InferenceConfigCreateContainer } from '@ml/_types/inference' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If set to `true` and a `compressed_definition` is provided, diff --git a/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts b/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts index ce66e70a3e..186fc0a8ef 100644 --- a/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts +++ b/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name } from '@_types/common' +import { Id, MediaType, Name } from '@_types/common' /** * Create or update a trained model alias. @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies whether the alias gets reassigned to the specified trained diff --git a/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts b/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts index 5b87206a0f..22451ff464 100644 --- a/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts +++ b/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer, long } from '@_types/Numeric' /** @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ part: integer } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The definition part for the model. Must be a base64 encoded string. diff --git a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts index 69de8c1779..ae33302953 100644 --- a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts +++ b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { double } from '@_types/Numeric' /** @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The model vocabulary, which must not be empty. diff --git a/specification/ml/reset_job/MlResetJobRequest.ts b/specification/ml/reset_job/MlResetJobRequest.ts index f30f4eb52d..ccb1b9eaae 100644 --- a/specification/ml/reset_job/MlResetJobRequest.ts +++ b/specification/ml/reset_job/MlResetJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Reset an anomaly detection job. @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ job_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Should this request wait until the operation has completed before diff --git a/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts b/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts index 7b91fae5da..354495bd09 100644 --- a/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts +++ b/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Revert to a snapshot. @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, deletes the results in the time period between the latest diff --git a/specification/ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts b/specification/ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts index a2d5c75060..6d2d234168 100644 --- a/specification/ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts +++ b/specification/ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Set upgrade_mode for ML indices. @@ -48,6 +49,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * When `true`, it enables `upgrade_mode` which temporarily halts all job diff --git a/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts b/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts index b3795eccfe..323194d443 100644 --- a/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts +++ b/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Controls the amount of time to wait until the data frame analytics job diff --git a/specification/ml/start_datafeed/MlStartDatafeedRequest.ts b/specification/ml/start_datafeed/MlStartDatafeedRequest.ts index 1db92aae09..af0aeae9e3 100644 --- a/specification/ml/start_datafeed/MlStartDatafeedRequest.ts +++ b/specification/ml/start_datafeed/MlStartDatafeedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DateTime, Duration } from '@_types/Time' /** @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The time that the datafeed should end, which can be specified by using one of the following formats: diff --git a/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts b/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts index 33008ff949..703b159e84 100644 --- a/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts +++ b/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, Id } from '@_types/common' +import { ByteSize, Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The inference cache size (in memory outside the JVM heap) per node for the model. diff --git a/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts b/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts index 75e8b94fd0..22b01017ff 100644 --- a/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts +++ b/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts b/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts index 3da646d13c..1884ad068e 100644 --- a/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts +++ b/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts b/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts index 614f213bb6..1e4ddc3dc7 100644 --- a/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts +++ b/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Stop a trained model deployment. @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no deployments that match; diff --git a/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts b/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts index 2ab5ed4e5e..41fb02999d 100644 --- a/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts +++ b/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A description of the job. diff --git a/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts b/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts index f89e40bbf4..6b1102d287 100644 --- a/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts +++ b/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts @@ -19,7 +19,7 @@ import { AggregationContainer } from '@_types/aggregations/AggregationContainer' import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Id, IndicesOptions } from '@_types/common' +import { ExpandWildcards, Id, IndicesOptions, MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the diff --git a/specification/ml/update_filter/MlUpdateFilterRequest.ts b/specification/ml/update_filter/MlUpdateFilterRequest.ts index 48d493a86a..8e656ffb44 100644 --- a/specification/ml/update_filter/MlUpdateFilterRequest.ts +++ b/specification/ml/update_filter/MlUpdateFilterRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update a filter. @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ filter_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The items to add to the filter. diff --git a/specification/ml/update_job/MlUpdateJobRequest.ts b/specification/ml/update_job/MlUpdateJobRequest.ts index 5ff310a307..2591a6714a 100644 --- a/specification/ml/update_job/MlUpdateJobRequest.ts +++ b/specification/ml/update_job/MlUpdateJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { @@ -54,6 +54,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Advanced configuration option. Specifies whether this job can open when diff --git a/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts b/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts index f76b62f03b..05cf42b317 100644 --- a/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts +++ b/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update a snapshot. @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A description of the model snapshot. diff --git a/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts b/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts index 17ef18c743..e2973f129d 100644 --- a/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts +++ b/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { AdaptiveAllocationsSettings } from '@ml/_types/TrainedModel' @@ -45,6 +45,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The number of model allocations on each node where the model is deployed. diff --git a/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts b/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts index 8cc5a01879..b2b3566c6b 100644 --- a/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts +++ b/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -57,6 +57,7 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * When true, the API won’t respond until the upgrade is complete. diff --git a/specification/ml/validate/MlValidateJobRequest.ts b/specification/ml/validate/MlValidateJobRequest.ts index 3a5d0bf38a..d020d52461 100644 --- a/specification/ml/validate/MlValidateJobRequest.ts +++ b/specification/ml/validate/MlValidateJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, IndexName } from '@_types/common' +import { Id, IndexName, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { AnalysisConfig, AnalysisLimits } from '@ml/_types/Analysis' import { DataDescription } from '@ml/_types/Job' @@ -39,6 +39,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { job_id?: Id analysis_config?: AnalysisConfig diff --git a/specification/ml/validate_detector/MlValidateDetectorRequest.ts b/specification/ml/validate_detector/MlValidateDetectorRequest.ts index d792a68521..972b18951e 100644 --- a/specification/ml/validate_detector/MlValidateDetectorRequest.ts +++ b/specification/ml/validate_detector/MlValidateDetectorRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Detector } from '@ml/_types/Detector' /** @@ -36,6 +37,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name detector */ body: Detector } diff --git a/specification/monitoring/bulk/BulkMonitoringRequest.ts b/specification/monitoring/bulk/BulkMonitoringRequest.ts index 4a20c31267..38a3558053 100644 --- a/specification/monitoring/bulk/BulkMonitoringRequest.ts +++ b/specification/monitoring/bulk/BulkMonitoringRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { OperationContainer, UpdateAction } from '@global/bulk/types' @@ -36,6 +37,8 @@ export interface Request extends RequestBase { methods: ['POST', 'PUT'] } ] + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * Identifier of the monitored system diff --git a/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts b/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts index 47cf1d7597..4fd07c791a 100644 --- a/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts +++ b/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { long } from '@_types/Numeric' /** @@ -50,4 +50,5 @@ export interface Request extends RequestBase { */ max_archive_version: long } + response_media_type: MediaType.Json } diff --git a/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts b/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts index 3a3357ca73..61f1998a3e 100644 --- a/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts +++ b/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' /** * Get cluster repositories metering. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ node_id: NodeIds } + response_media_type: MediaType.Json } diff --git a/specification/nodes/hot_threads/NodesHotThreadsRequest.ts b/specification/nodes/hot_threads/NodesHotThreadsRequest.ts index eac346a324..aeffa2e468 100644 --- a/specification/nodes/hot_threads/NodesHotThreadsRequest.ts +++ b/specification/nodes/hot_threads/NodesHotThreadsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds, ThreadType } from '@_types/common' +import { MediaType, NodeIds, ThreadType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ node_id?: NodeIds } + response_media_type: MediaType.Text query_parameters: { /** * If true, known idle threads (e.g. waiting in a socket select, or to get diff --git a/specification/nodes/info/NodesInfoRequest.ts b/specification/nodes/info/NodesInfoRequest.ts index 682eb3727d..cb6d2ecdec 100644 --- a/specification/nodes/info/NodesInfoRequest.ts +++ b/specification/nodes/info/NodesInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -56,6 +56,7 @@ export interface Request extends RequestBase { /** Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. */ metric?: NodesInfoMetrics } + response_media_type: MediaType.Json query_parameters: { /** * If true, returns settings in flat format. diff --git a/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts b/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts index abcd7e3856..9be1ca9acb 100644 --- a/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts +++ b/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds, Password } from '@_types/common' +import { MediaType, NodeIds, Password } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ node_id?: NodeIds } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. diff --git a/specification/nodes/stats/NodesStatsRequest.ts b/specification/nodes/stats/NodesStatsRequest.ts index 518e747a3e..154b0543e6 100644 --- a/specification/nodes/stats/NodesStatsRequest.ts +++ b/specification/nodes/stats/NodesStatsRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { CommonStatsFlags, Fields, + MediaType, NodeIds, NodeStatsLevel } from '@_types/common' @@ -73,6 +74,7 @@ export interface Request extends RequestBase { /** Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified.*/ index_metric?: CommonStatsFlags } + response_media_type: MediaType.Json query_parameters: { /** Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. */ completion_fields?: Fields diff --git a/specification/nodes/usage/NodesUsageRequest.ts b/specification/nodes/usage/NodesUsageRequest.ts index b10839afb1..0cb755bbb4 100644 --- a/specification/nodes/usage/NodesUsageRequest.ts +++ b/specification/nodes/usage/NodesUsageRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -58,6 +58,7 @@ export interface Request extends RequestBase { */ metric?: NodesUsageMetrics } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. diff --git a/specification/profiling/flamegraph/ProfilingFlamegraphRequest.ts b/specification/profiling/flamegraph/ProfilingFlamegraphRequest.ts index da2dcc4cef..2102b7a84a 100644 --- a/specification/profiling/flamegraph/ProfilingFlamegraphRequest.ts +++ b/specification/profiling/flamegraph/ProfilingFlamegraphRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** @@ -34,6 +35,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name conditions */ body: UserDefinedValue } diff --git a/specification/profiling/stacktraces/ProfilingStacktracesRequest.ts b/specification/profiling/stacktraces/ProfilingStacktracesRequest.ts index 6a44713c85..8b54655d9b 100644 --- a/specification/profiling/stacktraces/ProfilingStacktracesRequest.ts +++ b/specification/profiling/stacktraces/ProfilingStacktracesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** @@ -34,6 +35,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name conditions */ body: UserDefinedValue } diff --git a/specification/profiling/status/ProfilingStatusRequest.ts b/specification/profiling/status/ProfilingStatusRequest.ts index e214193301..e03f4954fd 100644 --- a/specification/profiling/status/ProfilingStatusRequest.ts +++ b/specification/profiling/status/ProfilingStatusRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Returns basic information about the status of Universal Profiling. @@ -34,6 +35,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/profiling/topn_functions/ProfilingTopnFunctionsRequest.ts b/specification/profiling/topn_functions/ProfilingTopnFunctionsRequest.ts index ee08212a06..b45bcbdde3 100644 --- a/specification/profiling/topn_functions/ProfilingTopnFunctionsRequest.ts +++ b/specification/profiling/topn_functions/ProfilingTopnFunctionsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** @@ -34,9 +35,11 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The filter conditions for stacktraces * @codegen_name conditions - * */ + */ body: UserDefinedValue } diff --git a/specification/project/tags/TagsRequest.ts b/specification/project/tags/TagsRequest.ts index 0a9f833e3f..91df5b4ecc 100644 --- a/specification/project/tags/TagsRequest.ts +++ b/specification/project/tags/TagsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get tags. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A Lucene query using project metadata tags used to filter which projects are returned in the response, such as _alias:_origin or _alias:*pr*. diff --git a/specification/query_rules/delete_rule/QueryRuleDeleteRequest.ts b/specification/query_rules/delete_rule/QueryRuleDeleteRequest.ts index 04474c7b8e..c05601b12a 100644 --- a/specification/query_rules/delete_rule/QueryRuleDeleteRequest.ts +++ b/specification/query_rules/delete_rule/QueryRuleDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a query rule. @@ -49,4 +49,5 @@ export interface Request extends RequestBase { */ rule_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts b/specification/query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts index 2e0b18b5d9..782c048708 100644 --- a/specification/query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts +++ b/specification/query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a query ruleset. @@ -44,4 +44,5 @@ export interface Request extends RequestBase { */ ruleset_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/query_rules/get_rule/QueryRuleGetRequest.ts b/specification/query_rules/get_rule/QueryRuleGetRequest.ts index b100b5eacf..0a9b6b235f 100644 --- a/specification/query_rules/get_rule/QueryRuleGetRequest.ts +++ b/specification/query_rules/get_rule/QueryRuleGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a query rule. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ rule_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/query_rules/get_ruleset/QueryRulesetGetRequest.ts b/specification/query_rules/get_ruleset/QueryRulesetGetRequest.ts index 24bc68c594..e9260cc44f 100644 --- a/specification/query_rules/get_ruleset/QueryRulesetGetRequest.ts +++ b/specification/query_rules/get_ruleset/QueryRulesetGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a query ruleset. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ ruleset_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/query_rules/list_rulesets/QueryRulesetListRequest.ts b/specification/query_rules/list_rulesets/QueryRulesetListRequest.ts index 70441e6b3b..b680439cc6 100644 --- a/specification/query_rules/list_rulesets/QueryRulesetListRequest.ts +++ b/specification/query_rules/list_rulesets/QueryRulesetListRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' +import { MediaType } from '@_types/common' /** * Get all query rulesets. @@ -37,6 +38,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The offset from the first result to fetch. diff --git a/specification/query_rules/put_rule/QueryRulePutRequest.ts b/specification/query_rules/put_rule/QueryRulePutRequest.ts index 173cea95a7..253cb18b57 100644 --- a/specification/query_rules/put_rule/QueryRulePutRequest.ts +++ b/specification/query_rules/put_rule/QueryRulePutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryRuleActions, @@ -59,6 +59,8 @@ export interface Request extends RequestBase { */ rule_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The query rule information. */ diff --git a/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts b/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts index 3ace2ef6be..1fd4c23763 100644 --- a/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts +++ b/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { QueryRule } from '../_types/QueryRuleset' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ ruleset_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The query rules in this ruleset */ diff --git a/specification/query_rules/test/QueryRulesetTestRequest.ts b/specification/query_rules/test/QueryRulesetTestRequest.ts index 6548948c0c..ef1ad7f8bd 100644 --- a/specification/query_rules/test/QueryRulesetTestRequest.ts +++ b/specification/query_rules/test/QueryRulesetTestRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ ruleset_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The criteria we're testing for */ diff --git a/specification/rollup/delete_job/DeleteRollupJobRequest.ts b/specification/rollup/delete_job/DeleteRollupJobRequest.ts index 014441f7bd..3aab01e616 100644 --- a/specification/rollup/delete_job/DeleteRollupJobRequest.ts +++ b/specification/rollup/delete_job/DeleteRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a rollup job. @@ -64,4 +64,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/rollup/get_jobs/GetRollupJobRequest.ts b/specification/rollup/get_jobs/GetRollupJobRequest.ts index b954d6ef27..99400dc20d 100644 --- a/specification/rollup/get_jobs/GetRollupJobRequest.ts +++ b/specification/rollup/get_jobs/GetRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get rollup job information. @@ -52,4 +52,5 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json } diff --git a/specification/rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts b/specification/rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts index 33643fdd45..ab2c632ac5 100644 --- a/specification/rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts +++ b/specification/rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get the rollup job capabilities. @@ -55,4 +55,5 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json } diff --git a/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts b/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts index c2e86eece9..490e9fb1e5 100644 --- a/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts +++ b/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get the rollup index capabilities. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ index: Ids } + response_media_type: MediaType.Json } diff --git a/specification/rollup/put_job/CreateRollupJobRequest.ts b/specification/rollup/put_job/CreateRollupJobRequest.ts index 969609ca60..5340c85fed 100644 --- a/specification/rollup/put_job/CreateRollupJobRequest.ts +++ b/specification/rollup/put_job/CreateRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { HttpHeaders, Id, IndexName } from '@_types/common' +import { HttpHeaders, Id, IndexName, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { Groupings } from '@rollup/_types/Groupings' @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A cron string which defines the intervals when the rollup job should be executed. When the interval diff --git a/specification/rollup/rollup_search/RollupSearchRequest.ts b/specification/rollup/rollup_search/RollupSearchRequest.ts index 65983912a9..da9b41fa8d 100644 --- a/specification/rollup/rollup_search/RollupSearchRequest.ts +++ b/specification/rollup/rollup_search/RollupSearchRequest.ts @@ -19,7 +19,7 @@ import { AggregationContainer } from '@_types/aggregations/AggregationContainer' import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Dictionary } from '@spec_utils/Dictionary' @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * @server_default false diff --git a/specification/rollup/start_job/StartRollupJobRequest.ts b/specification/rollup/start_job/StartRollupJobRequest.ts index d9f1966a67..038c57999a 100644 --- a/specification/rollup/start_job/StartRollupJobRequest.ts +++ b/specification/rollup/start_job/StartRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Start rollup jobs. @@ -44,4 +44,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/rollup/stop_job/StopRollupJobRequest.ts b/specification/rollup/stop_job/StopRollupJobRequest.ts index 755e14fc5e..ad589522b3 100644 --- a/specification/rollup/stop_job/StopRollupJobRequest.ts +++ b/specification/rollup/stop_job/StopRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -54,6 +54,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * If `wait_for_completion` is `true`, the API blocks for (at maximum) the specified duration while waiting for the job to stop. diff --git a/specification/search_application/delete/SearchApplicationsDeleteRequest.ts b/specification/search_application/delete/SearchApplicationsDeleteRequest.ts index f9a73147a2..84e844a25c 100644 --- a/specification/search_application/delete/SearchApplicationsDeleteRequest.ts +++ b/specification/search_application/delete/SearchApplicationsDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Delete a search application. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json } diff --git a/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts b/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts index 5bb0b73c28..fad686499b 100644 --- a/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts +++ b/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Delete a behavioral analytics collection. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json } diff --git a/specification/search_application/get/SearchApplicationsGetRequest.ts b/specification/search_application/get/SearchApplicationsGetRequest.ts index e62bbbf8e9..3bb40c650e 100644 --- a/specification/search_application/get/SearchApplicationsGetRequest.ts +++ b/specification/search_application/get/SearchApplicationsGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Get search application details. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json } diff --git a/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts b/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts index b1c6665794..b441db1c2d 100644 --- a/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts +++ b/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Get behavioral analytics collections. @@ -46,4 +46,5 @@ export interface Request extends RequestBase { */ name?: Name[] } + response_media_type: MediaType.Json } diff --git a/specification/search_application/list/SearchApplicationsListRequest.ts b/specification/search_application/list/SearchApplicationsListRequest.ts index be9c022d86..d9981bffb0 100644 --- a/specification/search_application/list/SearchApplicationsListRequest.ts +++ b/specification/search_application/list/SearchApplicationsListRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' +import { MediaType } from '@_types/common' /** * Get search applications. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Query in the Lucene query string syntax. diff --git a/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts b/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts index 3cdbb8f7b6..a25f274bbc 100644 --- a/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts +++ b/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { EventType } from '../_types/AnalyticsEvent' @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ event_type: EventType } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Whether the response type has to include more details diff --git a/specification/search_application/put/SearchApplicationsPutRequest.ts b/specification/search_application/put/SearchApplicationsPutRequest.ts index 6666192157..e1a734c55f 100644 --- a/specification/search_application/put/SearchApplicationsPutRequest.ts +++ b/specification/search_application/put/SearchApplicationsPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { SearchApplicationParameters } from '../_types/SearchApplicationParameters' /** @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, this request cannot replace or update existing Search Applications. diff --git a/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts b/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts index b0dc92b5e7..b78103a9ca 100644 --- a/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts +++ b/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Create a behavioral analytics collection. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json } diff --git a/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts b/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts index ead408d831..8a124d4a9d 100644 --- a/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts +++ b/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * Contains parameters for a search application. */ diff --git a/specification/search_application/search/SearchApplicationsSearchRequest.ts b/specification/search_application/search/SearchApplicationsSearchRequest.ts index c472a5a940..08c2458994 100644 --- a/specification/search_application/search/SearchApplicationsSearchRequest.ts +++ b/specification/search_application/search/SearchApplicationsSearchRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Determines whether aggregation names are prefixed by their respective types in the response. diff --git a/specification/searchable_snapshots/cache_stats/Request.ts b/specification/searchable_snapshots/cache_stats/Request.ts index 8b8f91c036..b8d2dd3c92 100644 --- a/specification/searchable_snapshots/cache_stats/Request.ts +++ b/specification/searchable_snapshots/cache_stats/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ node_id?: NodeIds } + response_media_type: MediaType.Json query_parameters: { master_timeout?: Duration } diff --git a/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts b/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts index 6fa43ab6ab..8d651229bd 100644 --- a/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts +++ b/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Clear the cache. @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** @server_default open */ expand_wildcards?: ExpandWildcards diff --git a/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts b/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts index 97d285a77f..1932ffc7ca 100644 --- a/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts +++ b/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Name } from '@_types/common' +import { IndexName, MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ snapshot: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts b/specification/searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts index 76fb3761fc..b917115670 100644 --- a/specification/searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts +++ b/specification/searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { StatsLevel } from '../_types/stats' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * @server_default indices diff --git a/specification/security/activate_user_profile/Request.ts b/specification/security/activate_user_profile/Request.ts index cbe9c3e93c..4d33852103 100644 --- a/specification/security/activate_user_profile/Request.ts +++ b/specification/security/activate_user_profile/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { GrantType } from '@security/_types/GrantType' /** @@ -48,6 +49,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The user's Elasticsearch access token or JWT. diff --git a/specification/security/authenticate/SecurityAuthenticateRequest.ts b/specification/security/authenticate/SecurityAuthenticateRequest.ts index 22f18dfaad..0f9ec67623 100644 --- a/specification/security/authenticate/SecurityAuthenticateRequest.ts +++ b/specification/security/authenticate/SecurityAuthenticateRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Authenticate a user. @@ -38,4 +39,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts b/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts index da7feb5b66..e080bb0ef9 100644 --- a/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts +++ b/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' /** * Bulk delete roles. @@ -38,6 +38,8 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts b/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts index 866d913dd0..3d64cc0adc 100644 --- a/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts +++ b/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' import { RoleDescriptor } from '@security/_types/RoleDescriptor' import { Dictionary } from '@spec_utils/Dictionary' @@ -40,6 +40,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts b/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts index cd9fe8656e..ba41ce3b48 100644 --- a/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts +++ b/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata } from '@_types/common' +import { MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { RoleDescriptor } from '@security/_types/RoleDescriptor' import { Dictionary } from '@spec_utils/Dictionary' @@ -53,6 +53,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Expiration time for the API keys. diff --git a/specification/security/change_password/SecurityChangePasswordRequest.ts b/specification/security/change_password/SecurityChangePasswordRequest.ts index 59f58d96cd..c92d9292ab 100644 --- a/specification/security/change_password/SecurityChangePasswordRequest.ts +++ b/specification/security/change_password/SecurityChangePasswordRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Password, Refresh, Username } from '@_types/common' +import { MediaType, Password, Refresh, Username } from '@_types/common' /** * Change passwords. @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ username?: Username } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts b/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts index 039a7e57ee..b5fea58409 100644 --- a/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts +++ b/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Clear the API key cache. @@ -46,4 +46,5 @@ export interface Request extends RequestBase { */ ids: Ids } + response_media_type: MediaType.Json } diff --git a/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts b/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts index fbf96c1eb2..f299f449cc 100644 --- a/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts +++ b/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Clear the privileges cache. @@ -46,4 +46,5 @@ export interface Request extends RequestBase { */ application: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts b/specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts index 6d812eba24..fa56cb479d 100644 --- a/specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts +++ b/specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Clear the user cache. @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ realms: Names } + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of the users to clear from the cache. diff --git a/specification/security/clear_cached_roles/ClearCachedRolesRequest.ts b/specification/security/clear_cached_roles/ClearCachedRolesRequest.ts index da2e1a37c0..f2abd1c8b9 100644 --- a/specification/security/clear_cached_roles/ClearCachedRolesRequest.ts +++ b/specification/security/clear_cached_roles/ClearCachedRolesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Clear the roles cache. @@ -45,4 +45,5 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts b/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts index 2bc0e2a8e3..1658d41045 100644 --- a/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts +++ b/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names, Namespace, Service } from '@_types/common' +import { MediaType, Names, Namespace, Service } from '@_types/common' /** * Clear service account token caches. @@ -55,4 +55,5 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts b/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts index 2075d8bbb4..79a0b20726 100644 --- a/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts +++ b/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name, Refresh } from '@_types/common' +import { MediaType, Metadata, Name, Refresh } from '@_types/common' import { Duration } from '@_types/Time' import { RoleDescriptor } from '@security/_types/RoleDescriptor' import { Dictionary } from '@spec_utils/Dictionary' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { methods: ['PUT', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts b/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts index 87d49830d0..1e8203ea31 100644 --- a/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts +++ b/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name } from '@_types/common' +import { MediaType, Metadata, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Access } from '@security/_types/Access' @@ -53,6 +53,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The access to be granted to this API key. diff --git a/specification/security/create_service_token/CreateServiceTokenRequest.ts b/specification/security/create_service_token/CreateServiceTokenRequest.ts index b7eb0f778f..a882b788cf 100644 --- a/specification/security/create_service_token/CreateServiceTokenRequest.ts +++ b/specification/security/create_service_token/CreateServiceTokenRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Namespace, Refresh, Service } from '@_types/common' +import { MediaType, Name, Namespace, Refresh, Service } from '@_types/common' /** * Create a service account token. @@ -66,6 +66,7 @@ export interface Request extends RequestBase { */ name?: Name } + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts b/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts index bdfe098d95..255055c374 100644 --- a/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts +++ b/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Delegate PKI authentication. @@ -44,6 +45,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json body: { /** * The X509Certificate chain, which is represented as an ordered string array. diff --git a/specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts b/specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts index 21494e9b76..d4ebbc31d5 100644 --- a/specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts +++ b/specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names, Refresh } from '@_types/common' +import { MediaType, Name, Names, Refresh } from '@_types/common' /** * Delete application privileges. @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/delete_role/SecurityDeleteRoleRequest.ts b/specification/security/delete_role/SecurityDeleteRoleRequest.ts index 4f08620f13..011b6db4e4 100644 --- a/specification/security/delete_role/SecurityDeleteRoleRequest.ts +++ b/specification/security/delete_role/SecurityDeleteRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Refresh } from '@_types/common' +import { MediaType, Name, Refresh } from '@_types/common' /** * Delete roles. @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** The name of the role. */ name: Name } + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts b/specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts index 860caa17fa..53421d35fa 100644 --- a/specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts +++ b/specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Refresh } from '@_types/common' +import { MediaType, Name, Refresh } from '@_types/common' /** * Delete role mappings. @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/delete_service_token/DeleteServiceTokenRequest.ts b/specification/security/delete_service_token/DeleteServiceTokenRequest.ts index 3507949cf0..0c3e1049ba 100644 --- a/specification/security/delete_service_token/DeleteServiceTokenRequest.ts +++ b/specification/security/delete_service_token/DeleteServiceTokenRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Namespace, Refresh, Service } from '@_types/common' +import { MediaType, Name, Namespace, Refresh, Service } from '@_types/common' /** * Delete service account tokens. @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/delete_user/SecurityDeleteUserRequest.ts b/specification/security/delete_user/SecurityDeleteUserRequest.ts index bc39856160..3e452d632e 100644 --- a/specification/security/delete_user/SecurityDeleteUserRequest.ts +++ b/specification/security/delete_user/SecurityDeleteUserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh, Username } from '@_types/common' +import { MediaType, Refresh, Username } from '@_types/common' /** * Delete users. @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ username: Username } + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/disable_user/SecurityDisableUserRequest.ts b/specification/security/disable_user/SecurityDisableUserRequest.ts index cbbba7450a..e0586c600b 100644 --- a/specification/security/disable_user/SecurityDisableUserRequest.ts +++ b/specification/security/disable_user/SecurityDisableUserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh, Username } from '@_types/common' +import { MediaType, Refresh, Username } from '@_types/common' /** * Disable users. @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ username: Username } + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/disable_user_profile/Request.ts b/specification/security/disable_user_profile/Request.ts index b2b4931764..046e19499e 100644 --- a/specification/security/disable_user_profile/Request.ts +++ b/specification/security/disable_user_profile/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' import { UserProfileId } from '@security/_types/UserProfile' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ uid: UserProfileId } + response_media_type: MediaType.Json query_parameters: { /** * If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. diff --git a/specification/security/enable_user/SecurityEnableUserRequest.ts b/specification/security/enable_user/SecurityEnableUserRequest.ts index 60c53228a4..c723ce9fc2 100644 --- a/specification/security/enable_user/SecurityEnableUserRequest.ts +++ b/specification/security/enable_user/SecurityEnableUserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh, Username } from '@_types/common' +import { MediaType, Refresh, Username } from '@_types/common' /** * Enable users. @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ username: Username } + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/enable_user_profile/Request.ts b/specification/security/enable_user_profile/Request.ts index 49084b3c5e..e46bd27ce1 100644 --- a/specification/security/enable_user_profile/Request.ts +++ b/specification/security/enable_user_profile/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' import { UserProfileId } from '@security/_types/UserProfile' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ uid: UserProfileId } + response_media_type: MediaType.Json query_parameters: { /** * If 'true', Elasticsearch refreshes the affected shards to make this operation diff --git a/specification/security/enroll_kibana/Request.ts b/specification/security/enroll_kibana/Request.ts index f7d8baad81..355f1f6044 100644 --- a/specification/security/enroll_kibana/Request.ts +++ b/specification/security/enroll_kibana/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Enroll Kibana. @@ -37,4 +38,6 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/security/enroll_node/Request.ts b/specification/security/enroll_node/Request.ts index 4356b3495c..a5f476acdc 100644 --- a/specification/security/enroll_node/Request.ts +++ b/specification/security/enroll_node/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Enroll a node. @@ -37,4 +38,6 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/security/get_api_key/SecurityGetApiKeyRequest.ts b/specification/security/get_api_key/SecurityGetApiKeyRequest.ts index f0319b2566..d39e151fed 100644 --- a/specification/security/get_api_key/SecurityGetApiKeyRequest.ts +++ b/specification/security/get_api_key/SecurityGetApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name, Username } from '@_types/common' +import { Id, MediaType, Name, Username } from '@_types/common' /** * Get API key information. @@ -39,6 +39,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * An API key id. diff --git a/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts b/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts index f74cc0aafd..7e9f5ce1fc 100644 --- a/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts +++ b/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get builtin privileges. @@ -37,4 +38,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/security/get_privileges/SecurityGetPrivilegesRequest.ts b/specification/security/get_privileges/SecurityGetPrivilegesRequest.ts index 3b5d44ec27..23a3a381af 100644 --- a/specification/security/get_privileges/SecurityGetPrivilegesRequest.ts +++ b/specification/security/get_privileges/SecurityGetPrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' /** * Get application privileges. @@ -62,4 +62,5 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/get_role/SecurityGetRoleRequest.ts b/specification/security/get_role/SecurityGetRoleRequest.ts index 010fecb76b..780222dc54 100644 --- a/specification/security/get_role/SecurityGetRoleRequest.ts +++ b/specification/security/get_role/SecurityGetRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Get roles. @@ -51,4 +51,5 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts b/specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts index ac34a59b85..1ee511dee9 100644 --- a/specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts +++ b/specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Get role mappings. @@ -50,4 +50,5 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/get_service_accounts/GetServiceAccountsRequest.ts b/specification/security/get_service_accounts/GetServiceAccountsRequest.ts index 616037c4d4..423e78ac38 100644 --- a/specification/security/get_service_accounts/GetServiceAccountsRequest.ts +++ b/specification/security/get_service_accounts/GetServiceAccountsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Namespace, Service } from '@_types/common' +import { MediaType, Namespace, Service } from '@_types/common' /** * Get service accounts. @@ -61,4 +61,5 @@ export interface Request extends RequestBase { */ service?: Service } + response_media_type: MediaType.Json } diff --git a/specification/security/get_service_credentials/GetServiceCredentialsRequest.ts b/specification/security/get_service_credentials/GetServiceCredentialsRequest.ts index 26fc44cef6..3183f01a27 100644 --- a/specification/security/get_service_credentials/GetServiceCredentialsRequest.ts +++ b/specification/security/get_service_credentials/GetServiceCredentialsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Namespace } from '@_types/common' +import { MediaType, Name, Namespace } from '@_types/common' /** * Get service account credentials. @@ -53,4 +53,5 @@ export interface Request extends RequestBase { */ service: Name } + response_media_type: MediaType.Json } diff --git a/specification/security/get_settings/SecurityGetSettingsRequest.ts b/specification/security/get_settings/SecurityGetSettingsRequest.ts index f11604eb34..664eb0ef73 100644 --- a/specification/security/get_settings/SecurityGetSettingsRequest.ts +++ b/specification/security/get_settings/SecurityGetSettingsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get security index settings. @@ -41,6 +42,8 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/security/get_stats/SecurityStatsRequest.ts b/specification/security/get_stats/SecurityStatsRequest.ts index 43ec29e216..4b9c726812 100644 --- a/specification/security/get_stats/SecurityStatsRequest.ts +++ b/specification/security/get_stats/SecurityStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get security stats. @@ -37,4 +38,6 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/security/get_token/GetUserAccessTokenRequest.ts b/specification/security/get_token/GetUserAccessTokenRequest.ts index eca8ec8249..aab8542daa 100644 --- a/specification/security/get_token/GetUserAccessTokenRequest.ts +++ b/specification/security/get_token/GetUserAccessTokenRequest.ts @@ -19,7 +19,7 @@ // TODO: once the compiler can handle it, the body should use the commented classes in this file import { RequestBase } from '@_types/Base' -import { Password, Username } from '@_types/common' +import { MediaType, Password, Username } from '@_types/common' import { AccessTokenGrantType } from './types' /** @@ -51,6 +51,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The type of grant. diff --git a/specification/security/get_user/SecurityGetUserRequest.ts b/specification/security/get_user/SecurityGetUserRequest.ts index 9bdcdfa190..2760294830 100644 --- a/specification/security/get_user/SecurityGetUserRequest.ts +++ b/specification/security/get_user/SecurityGetUserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Username } from '@_types/common' +import { MediaType, Username } from '@_types/common' /** * Get users. @@ -44,6 +44,7 @@ export interface Request extends RequestBase { /** An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users. */ username?: Username | Username[] } + response_media_type: MediaType.Json query_parameters: { /** * Determines whether to retrieve the user profile UID, if it exists, for the users. diff --git a/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts b/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts index 6d92d4ce9a..5e88389fab 100644 --- a/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts +++ b/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get user privileges. @@ -38,4 +39,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/security/get_user_profile/Request.ts b/specification/security/get_user_profile/Request.ts index 16d350c0b6..5e5142f55c 100644 --- a/specification/security/get_user_profile/Request.ts +++ b/specification/security/get_user_profile/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserProfileId } from '@security/_types/UserProfile' /** @@ -47,6 +48,7 @@ export interface Request extends RequestBase { */ uid: UserProfileId | UserProfileId[] } + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of filters for the `data` field of the profile document. diff --git a/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts b/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts index 259a522781..31a3a84faa 100644 --- a/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts +++ b/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Password, Refresh, Username } from '@_types/common' +import { MediaType, Password, Refresh, Username } from '@_types/common' import { ApiKeyGrantType, GrantApiKey } from './types' /** @@ -57,6 +57,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If 'true', Elasticsearch refreshes the affected shards to make this operation diff --git a/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts b/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts index 4aa616a508..752dd66244 100644 --- a/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts +++ b/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { ClusterPrivilege } from '@security/_types/Privileges' import { ApplicationPrivilegesCheck, IndexPrivilegesCheck } from './types' @@ -48,6 +48,8 @@ export interface Request extends RequestBase { path_parts: { user?: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { application?: ApplicationPrivilegesCheck[] /** diff --git a/specification/security/has_privileges_user_profile/Request.ts b/specification/security/has_privileges_user_profile/Request.ts index 20ad659027..defe323cff 100644 --- a/specification/security/has_privileges_user_profile/Request.ts +++ b/specification/security/has_privileges_user_profile/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserProfileId } from '@security/_types/UserProfile' import { PrivilegesCheck } from './types' @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A list of profile IDs. The privileges are checked for associated users of the profiles. diff --git a/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts b/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts index d0a58f5fe9..5f7db33efe 100644 --- a/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts +++ b/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name, Username } from '@_types/common' +import { Id, MediaType, Name, Username } from '@_types/common' /** * Invalidate API keys. @@ -48,6 +48,8 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { id?: Id /** diff --git a/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts b/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts index 30aa8fa0c1..4c03430624 100644 --- a/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts +++ b/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Username } from '@_types/common' +import { MediaType, Name, Username } from '@_types/common' /** * Invalidate a token. @@ -46,6 +46,8 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * An access token. diff --git a/specification/security/oidc_authenticate/Request.ts b/specification/security/oidc_authenticate/Request.ts index 394fa748f0..c1cba92548 100644 --- a/specification/security/oidc_authenticate/Request.ts +++ b/specification/security/oidc_authenticate/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Authenticate OpenID Connect. @@ -37,6 +38,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Associate a client session with an ID token and mitigate replay attacks. diff --git a/specification/security/oidc_logout/Request.ts b/specification/security/oidc_logout/Request.ts index cc91378583..a7759ee005 100644 --- a/specification/security/oidc_logout/Request.ts +++ b/specification/security/oidc_logout/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Logout of OpenID Connect. @@ -39,6 +40,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The access token to be invalidated. diff --git a/specification/security/oidc_prepare_authentication/Request.ts b/specification/security/oidc_prepare_authentication/Request.ts index 540b3c2b66..2ad60147ac 100644 --- a/specification/security/oidc_prepare_authentication/Request.ts +++ b/specification/security/oidc_prepare_authentication/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Prepare OpenID connect authentication. @@ -39,6 +40,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * In the case of a third party initiated single sign on, this is the issuer identifier for the OP that the RP is to send the authentication request to. diff --git a/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts b/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts index 213c612a44..b1e8c3e425 100644 --- a/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts +++ b/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { Actions } from './types' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { methods: ['PUT', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/put_role/SecurityPutRoleRequest.ts b/specification/security/put_role/SecurityPutRoleRequest.ts index e00051f74c..3783cf7f70 100644 --- a/specification/security/put_role/SecurityPutRoleRequest.ts +++ b/specification/security/put_role/SecurityPutRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name, Refresh } from '@_types/common' +import { MediaType, Metadata, Name, Refresh } from '@_types/common' import { ApplicationPrivileges, ClusterPrivilege, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts b/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts index 7aef398301..a0b2e5ca74 100644 --- a/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts +++ b/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name, Refresh } from '@_types/common' +import { MediaType, Metadata, Name, Refresh } from '@_types/common' import { RoleMappingRule } from '@security/_types/RoleMappingRule' import { RoleTemplate } from '@security/_types/RoleTemplate' @@ -70,6 +70,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { refresh?: Refresh } diff --git a/specification/security/put_user/SecurityPutUserRequest.ts b/specification/security/put_user/SecurityPutUserRequest.ts index d91ef6352e..deef9fac6b 100644 --- a/specification/security/put_user/SecurityPutUserRequest.ts +++ b/specification/security/put_user/SecurityPutUserRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Password, Refresh, Username } from '@_types/common' +import { + MediaType, + Metadata, + Password, + Refresh, + Username +} from '@_types/common' /** * Create or update users. @@ -48,6 +54,8 @@ export interface Request extends RequestBase { */ username: Username } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Valid values are `true`, `false`, and `wait_for`. diff --git a/specification/security/query_api_keys/QueryApiKeysRequest.ts b/specification/security/query_api_keys/QueryApiKeysRequest.ts index 510c390331..776fd5bde8 100644 --- a/specification/security/query_api_keys/QueryApiKeysRequest.ts +++ b/specification/security/query_api_keys/QueryApiKeysRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Sort, SortResults } from '@_types/sort' import { Dictionary } from '@spec_utils/Dictionary' @@ -47,6 +48,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Return the snapshot of the owner user's role descriptors associated with the API key. diff --git a/specification/security/query_role/QueryRolesRequest.ts b/specification/security/query_role/QueryRolesRequest.ts index 23550b23a3..df14d81852 100644 --- a/specification/security/query_role/QueryRolesRequest.ts +++ b/specification/security/query_role/QueryRolesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Sort, SortResults } from '@_types/sort' import { RoleQueryContainer } from './types' @@ -43,6 +44,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * A query to filter which roles to return. diff --git a/specification/security/query_user/SecurityQueryUserRequest.ts b/specification/security/query_user/SecurityQueryUserRequest.ts index 06e4bd591b..9c4fcf1fa2 100644 --- a/specification/security/query_user/SecurityQueryUserRequest.ts +++ b/specification/security/query_user/SecurityQueryUserRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Sort, SortResults } from '@_types/sort' import { UserQueryContainer } from './types' @@ -81,6 +82,8 @@ export interface Request extends RequestBase { */ search_after?: SortResults } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Determines whether to retrieve the user profile UID, if it exists, for the users. diff --git a/specification/security/saml_authenticate/Request.ts b/specification/security/saml_authenticate/Request.ts index 203fd5bf30..7643315a0c 100644 --- a/specification/security/saml_authenticate/Request.ts +++ b/specification/security/saml_authenticate/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Authenticate SAML. @@ -50,6 +50,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document. */ content: string diff --git a/specification/security/saml_complete_logout/Request.ts b/specification/security/saml_complete_logout/Request.ts index 123972015c..6a99d25ba7 100644 --- a/specification/security/saml_complete_logout/Request.ts +++ b/specification/security/saml_complete_logout/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Logout of SAML completely. @@ -46,6 +46,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response. */ realm: string diff --git a/specification/security/saml_invalidate/Request.ts b/specification/security/saml_invalidate/Request.ts index 7671a0877b..468d400386 100644 --- a/specification/security/saml_invalidate/Request.ts +++ b/specification/security/saml_invalidate/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Invalidate SAML. @@ -44,6 +45,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the `realm` parameter. */ acs?: string diff --git a/specification/security/saml_logout/Request.ts b/specification/security/saml_logout/Request.ts index cd687e85e3..45fd1d044d 100644 --- a/specification/security/saml_logout/Request.ts +++ b/specification/security/saml_logout/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Logout of SAML. @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The access token that was returned as a response to calling the SAML authenticate API. diff --git a/specification/security/saml_prepare_authentication/Request.ts b/specification/security/saml_prepare_authentication/Request.ts index 410cc0d849..fb1098869e 100644 --- a/specification/security/saml_prepare_authentication/Request.ts +++ b/specification/security/saml_prepare_authentication/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Prepare SAML authentication. @@ -47,6 +48,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. diff --git a/specification/security/saml_service_provider_metadata/Request.ts b/specification/security/saml_service_provider_metadata/Request.ts index 2c48e2af00..ceb753fac4 100644 --- a/specification/security/saml_service_provider_metadata/Request.ts +++ b/specification/security/saml_service_provider_metadata/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Create SAML service provider metadata. @@ -43,4 +43,6 @@ export interface Request extends RequestBase { /** The name of the SAML realm in Elasticsearch. */ realm_name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/security/suggest_user_profiles/Request.ts b/specification/security/suggest_user_profiles/Request.ts index c09034fea5..9011608b77 100644 --- a/specification/security/suggest_user_profiles/Request.ts +++ b/specification/security/suggest_user_profiles/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Hint } from './types' @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of filters for the `data` field of the profile document. diff --git a/specification/security/update_api_key/Request.ts b/specification/security/update_api_key/Request.ts index 9aa163dbd0..c8a1d1cdd6 100644 --- a/specification/security/update_api_key/Request.ts +++ b/specification/security/update_api_key/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { RoleDescriptor } from '@security/_types/RoleDescriptor' import { Dictionary } from '@spec_utils/Dictionary' @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * The role descriptors to assign to this API key. diff --git a/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts b/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts index 01592030d1..3a19d767d5 100644 --- a/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts +++ b/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { Access } from '@security/_types/Access' @@ -61,6 +61,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The access to be granted to this API key. diff --git a/specification/security/update_settings/SecurityUpdateSettingsRequest.ts b/specification/security/update_settings/SecurityUpdateSettingsRequest.ts index 2da4b02416..348ddba812 100644 --- a/specification/security/update_settings/SecurityUpdateSettingsRequest.ts +++ b/specification/security/update_settings/SecurityUpdateSettingsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { SecuritySettings } from '@security/_types/SecuritySettings' @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['PUT'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/security/update_user_profile_data/Request.ts b/specification/security/update_user_profile_data/Request.ts index 870eb46c09..379fc389ac 100644 --- a/specification/security/update_user_profile_data/Request.ts +++ b/specification/security/update_user_profile_data/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh, SequenceNumber } from '@_types/common' +import { MediaType, Refresh, SequenceNumber } from '@_types/common' import { long } from '@_types/Numeric' import { UserProfileId } from '@security/_types/UserProfile' import { Dictionary } from '@spec_utils/Dictionary' @@ -62,6 +62,8 @@ export interface Request extends RequestBase { */ uid: UserProfileId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Only perform the operation if the document has this sequence number. diff --git a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts index 6b211b4d2b..1303883d99 100644 --- a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts +++ b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeId } from '@_types/common' +import { MediaType, NodeId } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { path_parts: { node_id: NodeId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/shutdown/get_node/ShutdownGetNodeRequest.ts b/specification/shutdown/get_node/ShutdownGetNodeRequest.ts index 811baaff50..08c1bb622b 100644 --- a/specification/shutdown/get_node/ShutdownGetNodeRequest.ts +++ b/specification/shutdown/get_node/ShutdownGetNodeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -49,6 +49,8 @@ export interface Request extends RequestBase { path_parts: { node_id?: NodeIds } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/shutdown/put_node/ShutdownPutNodeRequest.ts b/specification/shutdown/put_node/ShutdownPutNodeRequest.ts index c178209373..ac91bb9872 100644 --- a/specification/shutdown/put_node/ShutdownPutNodeRequest.ts +++ b/specification/shutdown/put_node/ShutdownPutNodeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeId } from '@_types/common' +import { MediaType, NodeId } from '@_types/common' import { Duration } from '@_types/Time' import { Type } from '../_types/types' @@ -60,6 +60,8 @@ export interface Request extends RequestBase { */ node_id: NodeId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/simulate/ingest/SimulateIngestRequest.ts b/specification/simulate/ingest/SimulateIngestRequest.ts index 59c8f428b1..b6f96f504d 100644 --- a/specification/simulate/ingest/SimulateIngestRequest.ts +++ b/specification/simulate/ingest/SimulateIngestRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, PipelineName } from '@_types/common' +import { IndexName, MediaType, PipelineName } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { ComponentTemplateNode } from '@cluster/_types/ComponentTemplate' import { IndexTemplate } from '@indices/_types/IndexTemplate' @@ -70,6 +70,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The pipeline to use as the default pipeline. diff --git a/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts b/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts index 452bc50be5..efaf212376 100644 --- a/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts +++ b/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { path_parts: { policy_id: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts b/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts index 2285c0db98..942b4b4330 100644 --- a/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts +++ b/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { path_parts: { policy_id: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/execute_retention/ExecuteRetentionRequest.ts b/specification/slm/execute_retention/ExecuteRetentionRequest.ts index 223053f515..7c4a974687 100644 --- a/specification/slm/execute_retention/ExecuteRetentionRequest.ts +++ b/specification/slm/execute_retention/ExecuteRetentionRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Run a retention policy. @@ -38,6 +39,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts b/specification/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts index 1ab5a2e87c..b9c79a6836 100644 --- a/specification/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts +++ b/specification/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ policy_id?: Names } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts b/specification/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts index c893875b9c..e274a85749 100644 --- a/specification/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts +++ b/specification/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get snapshot lifecycle management statistics. @@ -37,6 +38,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts b/specification/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts index a767e33d25..2cb8e6cb70 100644 --- a/specification/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts +++ b/specification/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the snapshot lifecycle management status. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts index dec4f0ffb9..fb78cac2af 100644 --- a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts +++ b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Configuration, Retention } from '@slm/_types/SnapshotLifecycle' import { CronExpression } from '@watcher/_types/Schedule' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ policy_id: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts b/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts index 8fa68d3545..2703f6b6fb 100644 --- a/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts +++ b/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start snapshot lifecycle management. @@ -38,6 +39,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts b/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts index 54d112795a..b07978f7ff 100644 --- a/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts +++ b/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Stop snapshot lifecycle management. @@ -42,6 +43,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts b/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts index 32c61495e6..c723a76c33 100644 --- a/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts +++ b/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { * @codegen_name name */ repository: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/snapshot/clone/SnapshotCloneRequest.ts b/specification/snapshot/clone/SnapshotCloneRequest.ts index 425bfb9e72..8fadba4c6b 100644 --- a/specification/snapshot/clone/SnapshotCloneRequest.ts +++ b/specification/snapshot/clone/SnapshotCloneRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ target_snapshot: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/create/SnapshotCreateRequest.ts b/specification/snapshot/create/SnapshotCreateRequest.ts index dea4efb177..becd111e98 100644 --- a/specification/snapshot/create/SnapshotCreateRequest.ts +++ b/specification/snapshot/create/SnapshotCreateRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Metadata, Name } from '@_types/common' +import { + ExpandWildcards, + Indices, + MediaType, + Metadata, + Name +} from '@_types/common' import { Duration } from '@_types/Time' /** @@ -51,6 +57,8 @@ export interface Request extends RequestBase { */ snapshot: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts b/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts index 2e57938d9a..bc2bdeb14d 100644 --- a/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts +++ b/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Repository } from '@snapshot/_types/SnapshotRepository' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ repository: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/delete/SnapshotDeleteRequest.ts b/specification/snapshot/delete/SnapshotDeleteRequest.ts index c54ca11cb3..40b77afb7a 100644 --- a/specification/snapshot/delete/SnapshotDeleteRequest.ts +++ b/specification/snapshot/delete/SnapshotDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ snapshot: Names } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts b/specification/snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts index eb2e70ab89..86cff76b03 100644 --- a/specification/snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts +++ b/specification/snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { * @codegen_name name */ repository: Names } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/get/SnapshotGetRequest.ts b/specification/snapshot/get/SnapshotGetRequest.ts index a0e7bbfebf..3eff475cc8 100644 --- a/specification/snapshot/get/SnapshotGetRequest.ts +++ b/specification/snapshot/get/SnapshotGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' import { integer } from '@_types/Numeric' import { SortOrder } from '@_types/sort' import { Duration } from '@_types/Time' @@ -59,6 +59,7 @@ export interface Request extends RequestBase { */ snapshot: Names } + response_media_type: MediaType.Json query_parameters: { /** * An offset identifier to start pagination from as returned by the next field in the response body. diff --git a/specification/snapshot/get_repository/SnapshotGetRepositoryRequest.ts b/specification/snapshot/get_repository/SnapshotGetRepositoryRequest.ts index 90b2b7173a..682955fa17 100644 --- a/specification/snapshot/get_repository/SnapshotGetRepositoryRequest.ts +++ b/specification/snapshot/get_repository/SnapshotGetRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ repository?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request gets information from the local node only. diff --git a/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts b/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts index 58fb95d6a2..362883dc4f 100644 --- a/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts +++ b/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, Name } from '@_types/common' +import { ByteSize, MediaType, Name } from '@_types/common' import { double, integer } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -146,6 +146,7 @@ export interface Request extends RequestBase { */ repository: Name } + response_media_type: MediaType.Json query_parameters: { /** * The total number of blobs to write to the repository during the test. diff --git a/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts b/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts index 4cb195e3f3..304826bb26 100644 --- a/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts +++ b/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -77,6 +77,7 @@ export interface Request extends RequestBase { * @codegen_name name */ repository: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `verify_blob_contents` is `true`, this parameter specifies how many blobs to verify at once. diff --git a/specification/snapshot/restore/SnapshotRestoreRequest.ts b/specification/snapshot/restore/SnapshotRestoreRequest.ts index 0e011988f9..4909c6ff31 100644 --- a/specification/snapshot/restore/SnapshotRestoreRequest.ts +++ b/specification/snapshot/restore/SnapshotRestoreRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Name } from '@_types/common' +import { Indices, MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -66,6 +66,8 @@ export interface Request extends RequestBase { */ snapshot: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/status/SnapshotStatusRequest.ts b/specification/snapshot/status/SnapshotStatusRequest.ts index 2791b69352..a4389fbd78 100644 --- a/specification/snapshot/status/SnapshotStatusRequest.ts +++ b/specification/snapshot/status/SnapshotStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -79,6 +79,7 @@ export interface Request extends RequestBase { */ snapshot?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error for any snapshots that are unavailable. diff --git a/specification/snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts b/specification/snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts index ed8547fd71..123bc6c52c 100644 --- a/specification/snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts +++ b/specification/snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { * @codegen_name name */ repository: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/sql/clear_cursor/ClearSqlCursorRequest.ts b/specification/sql/clear_cursor/ClearSqlCursorRequest.ts index 6bbb7ca293..487d9ed54b 100644 --- a/specification/sql/clear_cursor/ClearSqlCursorRequest.ts +++ b/specification/sql/clear_cursor/ClearSqlCursorRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Clear an SQL search cursor. @@ -34,6 +35,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Cursor to clear. diff --git a/specification/sql/delete_async/SqlDeleteAsyncRequest.ts b/specification/sql/delete_async/SqlDeleteAsyncRequest.ts index 024a721d4d..1ee86063fb 100644 --- a/specification/sql/delete_async/SqlDeleteAsyncRequest.ts +++ b/specification/sql/delete_async/SqlDeleteAsyncRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an async SQL search. @@ -49,4 +49,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/sql/get_async/SqlGetAsyncRequest.ts b/specification/sql/get_async/SqlGetAsyncRequest.ts index 3e9249f69a..982297a86a 100644 --- a/specification/sql/get_async/SqlGetAsyncRequest.ts +++ b/specification/sql/get_async/SqlGetAsyncRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The separator for CSV results. diff --git a/specification/sql/get_async_status/SqlGetAsyncStatusRequest.ts b/specification/sql/get_async_status/SqlGetAsyncStatusRequest.ts index 6bafce1ca6..63383a4651 100644 --- a/specification/sql/get_async_status/SqlGetAsyncStatusRequest.ts +++ b/specification/sql/get_async_status/SqlGetAsyncStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get the async SQL search status. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/sql/query/QuerySqlRequest.ts b/specification/sql/query/QuerySqlRequest.ts index 33580becde..aa31128dcf 100644 --- a/specification/sql/query/QuerySqlRequest.ts +++ b/specification/sql/query/QuerySqlRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ProjectRouting } from '@_types/common' +import { MediaType, ProjectRouting } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' @@ -42,6 +42,8 @@ export interface Request extends RequestBase { methods: ['POST', 'GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The format for the response. diff --git a/specification/sql/translate/TranslateSqlRequest.ts b/specification/sql/translate/TranslateSqlRequest.ts index 94fb2679ed..25ab324673 100644 --- a/specification/sql/translate/TranslateSqlRequest.ts +++ b/specification/sql/translate/TranslateSqlRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { TimeZone } from '@_types/Time' @@ -40,6 +41,8 @@ export interface Request extends RequestBase { methods: ['POST', 'GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The maximum number of rows (or entries) to return in one response. diff --git a/specification/ssl/certificates/GetCertificatesRequest.ts b/specification/ssl/certificates/GetCertificatesRequest.ts index b14ffbf0cf..7c38ee6a7d 100644 --- a/specification/ssl/certificates/GetCertificatesRequest.ts +++ b/specification/ssl/certificates/GetCertificatesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get SSL certificates. @@ -52,4 +53,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/streams/logs_disable/StreamsLogsDisableRequest.ts b/specification/streams/logs_disable/StreamsLogsDisableRequest.ts index c44e6060cb..c79b25e753 100644 --- a/specification/streams/logs_disable/StreamsLogsDisableRequest.ts +++ b/specification/streams/logs_disable/StreamsLogsDisableRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Disable logs stream. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/streams/logs_enable/StreamsLogsEnableRequest.ts b/specification/streams/logs_enable/StreamsLogsEnableRequest.ts index 71915b4446..57a04d723e 100644 --- a/specification/streams/logs_enable/StreamsLogsEnableRequest.ts +++ b/specification/streams/logs_enable/StreamsLogsEnableRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Enable logs stream. @@ -40,6 +41,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/streams/status/StreamsStatusRequest.ts b/specification/streams/status/StreamsStatusRequest.ts index 76c748fa39..3af9d29160 100644 --- a/specification/streams/status/StreamsStatusRequest.ts +++ b/specification/streams/status/StreamsStatusRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the status of streams. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts b/specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts index dd8455aa6a..00ed079f5c 100644 --- a/specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts +++ b/specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a synonym set. @@ -57,4 +57,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts b/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts index c739de92e8..848c36d2ac 100644 --- a/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts +++ b/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a synonym rule. @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ rule_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request will refresh the analyzers with the deleted synonym rule and wait for the new synonyms to be available before returning. diff --git a/specification/synonyms/get_synonym/SynonymsGetRequest.ts b/specification/synonyms/get_synonym/SynonymsGetRequest.ts index a10b64a6e5..00624adc74 100644 --- a/specification/synonyms/get_synonym/SynonymsGetRequest.ts +++ b/specification/synonyms/get_synonym/SynonymsGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The starting offset for query rules to retrieve. diff --git a/specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts b/specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts index a93f51f64d..46d51ac533 100644 --- a/specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts +++ b/specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a synonym rule. @@ -46,4 +46,6 @@ export interface Request extends RequestBase { */ rule_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts b/specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts index 482717b04f..463c29c9e9 100644 --- a/specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts +++ b/specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' +import { MediaType } from '@_types/common' /** * Get all synonym sets. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The starting offset for synonyms sets to retrieve. diff --git a/specification/synonyms/put_synonym/SynonymsPutRequest.ts b/specification/synonyms/put_synonym/SynonymsPutRequest.ts index 3e3704343e..61a90d6a4b 100644 --- a/specification/synonyms/put_synonym/SynonymsPutRequest.ts +++ b/specification/synonyms/put_synonym/SynonymsPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { SynonymRule } from '../_types/SynonymRule' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The synonym rules definitions for the synonyms set. diff --git a/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts b/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts index ff2b1e0776..791edf2536 100644 --- a/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts +++ b/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { SynonymString } from '../_types/SynonymRule' /** @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ rule_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The synonym rule information definition, which must be in Solr format. diff --git a/specification/tasks/cancel/CancelTasksRequest.ts b/specification/tasks/cancel/CancelTasksRequest.ts index a400c36f95..d84ea136bc 100644 --- a/specification/tasks/cancel/CancelTasksRequest.ts +++ b/specification/tasks/cancel/CancelTasksRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { TaskId } from '@_types/common' +import { MediaType, TaskId } from '@_types/common' /** * Cancel a task. @@ -56,6 +56,7 @@ export interface Request extends RequestBase { */ task_id?: TaskId } + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list or wildcard expression of actions that is used to limit the request. diff --git a/specification/tasks/get/GetTaskRequest.ts b/specification/tasks/get/GetTaskRequest.ts index 3a78fa2728..65cd087ad5 100644 --- a/specification/tasks/get/GetTaskRequest.ts +++ b/specification/tasks/get/GetTaskRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ task_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a response. diff --git a/specification/tasks/list/ListTasksRequest.ts b/specification/tasks/list/ListTasksRequest.ts index e4406bbab2..bef15eee38 100644 --- a/specification/tasks/list/ListTasksRequest.ts +++ b/specification/tasks/list/ListTasksRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, NodeIds } from '@_types/common' +import { Id, MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' import { GroupBy } from '@tasks/_types/GroupBy' @@ -96,6 +96,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list or wildcard expression of actions used to limit the request. diff --git a/specification/text_structure/find_field_structure/FindFieldStructureRequest.ts b/specification/text_structure/find_field_structure/FindFieldStructureRequest.ts index 11c7c920e7..77a50d2515 100644 --- a/specification/text_structure/find_field_structure/FindFieldStructureRequest.ts +++ b/specification/text_structure/find_field_structure/FindFieldStructureRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, GrokPattern, IndexName } from '@_types/common' +import { Field, GrokPattern, IndexName, MediaType } from '@_types/common' import { uint } from '@_types/Numeric' import { Duration } from '@_types/Time' import { EcsCompatibilityType, FormatType } from '../_types/Structure' @@ -55,6 +55,7 @@ interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * If `format` is set to `delimited`, you can specify the column names in a comma-separated list. diff --git a/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts b/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts index af123f0d66..317de44b05 100644 --- a/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts +++ b/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, GrokPattern } from '@_types/common' +import { Field, GrokPattern, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { EcsCompatibilityType, FormatType } from '../_types/Structure' @@ -55,6 +55,8 @@ interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If the format is `delimited`, you can specify the column names in a comma-separated list. diff --git a/specification/text_structure/find_structure/FindStructureRequest.ts b/specification/text_structure/find_structure/FindStructureRequest.ts index 14efe1ca99..18ce2bbda2 100644 --- a/specification/text_structure/find_structure/FindStructureRequest.ts +++ b/specification/text_structure/find_structure/FindStructureRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Field, GrokPattern } from '@_types/common' +import { Field, GrokPattern, MediaType } from '@_types/common' import { uint } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -54,6 +54,8 @@ export interface Request { methods: ['POST'] } ] + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * The text's character set. diff --git a/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts b/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts index 4ea23738a7..1fad07c262 100644 --- a/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts +++ b/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { GrokPattern } from '@_types/common' +import { GrokPattern, MediaType } from '@_types/common' /** * Test a Grok pattern. @@ -38,6 +38,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The mode of compatibility with ECS compliant Grok patterns. diff --git a/specification/transform/delete_transform/DeleteTransformRequest.ts b/specification/transform/delete_transform/DeleteTransformRequest.ts index 8d94847884..1b62b1939c 100644 --- a/specification/transform/delete_transform/DeleteTransformRequest.ts +++ b/specification/transform/delete_transform/DeleteTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ transform_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * If this value is false, the transform must be stopped before it can be deleted. If true, the transform is diff --git a/specification/transform/get_node_stats/GetNodeStatsRequest.ts b/specification/transform/get_node_stats/GetNodeStatsRequest.ts index a9d95ad8e3..2ca310aa13 100644 --- a/specification/transform/get_node_stats/GetNodeStatsRequest.ts +++ b/specification/transform/get_node_stats/GetNodeStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get node stats. @@ -35,4 +36,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/transform/get_transform/GetTransformRequest.ts b/specification/transform/get_transform/GetTransformRequest.ts index b4cd626517..011096940a 100644 --- a/specification/transform/get_transform/GetTransformRequest.ts +++ b/specification/transform/get_transform/GetTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ transform_id?: Names } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/transform/get_transform_stats/GetTransformStatsRequest.ts b/specification/transform/get_transform_stats/GetTransformStatsRequest.ts index c01aeffcd1..60100b5043 100644 --- a/specification/transform/get_transform_stats/GetTransformStatsRequest.ts +++ b/specification/transform/get_transform_stats/GetTransformStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ transform_id: Names } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/transform/preview_transform/PreviewTransformRequest.ts b/specification/transform/preview_transform/PreviewTransformRequest.ts index 9ccbf3d820..b28d718f5f 100644 --- a/specification/transform/preview_transform/PreviewTransformRequest.ts +++ b/specification/transform/preview_transform/PreviewTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Destination, @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ transform_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. If no response is received before the diff --git a/specification/transform/put_transform/PutTransformRequest.ts b/specification/transform/put_transform/PutTransformRequest.ts index f507f82f24..c9ca5c0985 100644 --- a/specification/transform/put_transform/PutTransformRequest.ts +++ b/specification/transform/put_transform/PutTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { Destination, @@ -76,6 +76,8 @@ export interface Request extends RequestBase { */ transform_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * When the transform is created, a series of validations occur to ensure its success. For example, there is a diff --git a/specification/transform/reset_transform/ResetTransformRequest.ts b/specification/transform/reset_transform/ResetTransformRequest.ts index 5682d83237..53dc2f65e4 100644 --- a/specification/transform/reset_transform/ResetTransformRequest.ts +++ b/specification/transform/reset_transform/ResetTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ transform_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * If this value is `true`, the transform is reset regardless of its current state. If it's `false`, the transform diff --git a/specification/transform/schedule_now_transform/ScheduleNowTransformRequest.ts b/specification/transform/schedule_now_transform/ScheduleNowTransformRequest.ts index d5597e6cfa..c5a92826c5 100644 --- a/specification/transform/schedule_now_transform/ScheduleNowTransformRequest.ts +++ b/specification/transform/schedule_now_transform/ScheduleNowTransformRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ transform_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Controls the time to wait for the scheduling to take place diff --git a/specification/transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts b/specification/transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts index d9d4569baa..0389904b92 100644 --- a/specification/transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts +++ b/specification/transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Set upgrade_mode for transform indices. @@ -48,6 +49,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * When `true`, it enables `upgrade_mode` which temporarily halts all diff --git a/specification/transform/start_transform/StartTransformRequest.ts b/specification/transform/start_transform/StartTransformRequest.ts index 5b3b630e9c..02869a87f7 100644 --- a/specification/transform/start_transform/StartTransformRequest.ts +++ b/specification/transform/start_transform/StartTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -58,6 +58,7 @@ export interface Request extends RequestBase { */ transform_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/transform/stop_transform/StopTransformRequest.ts b/specification/transform/stop_transform/StopTransformRequest.ts index b71c2589a0..9917bcdd58 100644 --- a/specification/transform/stop_transform/StopTransformRequest.ts +++ b/specification/transform/stop_transform/StopTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ transform_id: Name } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; diff --git a/specification/transform/update_transform/UpdateTransformRequest.ts b/specification/transform/update_transform/UpdateTransformRequest.ts index 3e237cdb7e..738d15eba1 100644 --- a/specification/transform/update_transform/UpdateTransformRequest.ts +++ b/specification/transform/update_transform/UpdateTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { Destination, @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ transform_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * When true, deferrable validations are not run. This behavior may be diff --git a/specification/transform/upgrade_transforms/UpgradeTransformsRequest.ts b/specification/transform/upgrade_transforms/UpgradeTransformsRequest.ts index ac3675d7e8..8105c975d9 100644 --- a/specification/transform/upgrade_transforms/UpgradeTransformsRequest.ts +++ b/specification/transform/upgrade_transforms/UpgradeTransformsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Upgrade all transforms. @@ -49,6 +50,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * When true, the request checks for updates but does not run them. diff --git a/specification/watcher/ack_watch/WatcherAckWatchRequest.ts b/specification/watcher/ack_watch/WatcherAckWatchRequest.ts index edaf6bd216..fae5d8a01f 100644 --- a/specification/watcher/ack_watch/WatcherAckWatchRequest.ts +++ b/specification/watcher/ack_watch/WatcherAckWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' /** * Acknowledge a watch. @@ -61,4 +61,5 @@ export interface Request extends RequestBase { */ action_id?: Names } + response_media_type: MediaType.Json } diff --git a/specification/watcher/activate_watch/WatcherActivateWatchRequest.ts b/specification/watcher/activate_watch/WatcherActivateWatchRequest.ts index c42527a36c..68089697df 100644 --- a/specification/watcher/activate_watch/WatcherActivateWatchRequest.ts +++ b/specification/watcher/activate_watch/WatcherActivateWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Activate a watch. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ watch_id: Name } + response_media_type: MediaType.Json } diff --git a/specification/watcher/deactivate_watch/DeactivateWatchRequest.ts b/specification/watcher/deactivate_watch/DeactivateWatchRequest.ts index 418940a05d..81f5563259 100644 --- a/specification/watcher/deactivate_watch/DeactivateWatchRequest.ts +++ b/specification/watcher/deactivate_watch/DeactivateWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Deactivate a watch. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ watch_id: Name } + response_media_type: MediaType.Json } diff --git a/specification/watcher/delete_watch/DeleteWatchRequest.ts b/specification/watcher/delete_watch/DeleteWatchRequest.ts index f0f10b90b6..57c871cf45 100644 --- a/specification/watcher/delete_watch/DeleteWatchRequest.ts +++ b/specification/watcher/delete_watch/DeleteWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Delete a watch. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ id: Name } + response_media_type: MediaType.Json } diff --git a/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts b/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts index 926a09d9ec..f794029f78 100644 --- a/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts +++ b/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { ActionExecutionMode, SimulatedActions } from '@watcher/_types/Action' @@ -65,6 +65,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Defines whether the watch runs in debug mode. diff --git a/specification/watcher/get_settings/WatcherGetSettingsRequest.ts b/specification/watcher/get_settings/WatcherGetSettingsRequest.ts index a99686ef3f..2db150c082 100644 --- a/specification/watcher/get_settings/WatcherGetSettingsRequest.ts +++ b/specification/watcher/get_settings/WatcherGetSettingsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get Watcher index settings. @@ -36,6 +37,8 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/watcher/get_watch/GetWatchRequest.ts b/specification/watcher/get_watch/GetWatchRequest.ts index 206e1229d5..27b05d6821 100644 --- a/specification/watcher/get_watch/GetWatchRequest.ts +++ b/specification/watcher/get_watch/GetWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Get a watch. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ id: Name } + response_media_type: MediaType.Json } diff --git a/specification/watcher/put_watch/WatcherPutWatchRequest.ts b/specification/watcher/put_watch/WatcherPutWatchRequest.ts index 9106fee23c..d89ef25aa0 100644 --- a/specification/watcher/put_watch/WatcherPutWatchRequest.ts +++ b/specification/watcher/put_watch/WatcherPutWatchRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata, SequenceNumber, VersionNumber } from '@_types/common' +import { + Id, + MediaType, + Metadata, + SequenceNumber, + VersionNumber +} from '@_types/common' import { long } from '@_types/Numeric' import { Duration, DurationValue, UnitMillis } from '@_types/Time' import { TransformContainer } from '@_types/Transform' @@ -60,6 +66,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The initial state of the watch. diff --git a/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts b/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts index 2a2d8079d4..ea34d69273 100644 --- a/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts +++ b/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Sort, SortResults } from '@_types/sort' @@ -40,6 +41,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * The offset from the first result to fetch. diff --git a/specification/watcher/start/WatcherStartRequest.ts b/specification/watcher/start/WatcherStartRequest.ts index a6833f1b7a..08a5f454bb 100644 --- a/specification/watcher/start/WatcherStartRequest.ts +++ b/specification/watcher/start/WatcherStartRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start the watch service. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/watcher/stats/WatcherStatsRequest.ts b/specification/watcher/stats/WatcherStatsRequest.ts index 9798f08d14..160ac442df 100644 --- a/specification/watcher/stats/WatcherStatsRequest.ts +++ b/specification/watcher/stats/WatcherStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { WatcherMetric } from './types' /** @@ -47,6 +48,7 @@ export interface Request extends RequestBase { */ metric?: WatcherMetric | WatcherMetric[] } + response_media_type: MediaType.Json query_parameters: { /** * Defines whether stack traces are generated for each watch that is running. diff --git a/specification/watcher/stop/WatcherStopRequest.ts b/specification/watcher/stop/WatcherStopRequest.ts index 16e4476180..90a1fb8aad 100644 --- a/specification/watcher/stop/WatcherStopRequest.ts +++ b/specification/watcher/stop/WatcherStopRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Stop the watch service. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts b/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts index 1bb754ca8c..05e19b0bf1 100644 --- a/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts +++ b/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts @@ -20,6 +20,7 @@ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Update Watcher index settings. @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['PUT'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/xpack/info/XPackInfoRequest.ts b/specification/xpack/info/XPackInfoRequest.ts index 275e91afd3..42fecfd665 100644 --- a/specification/xpack/info/XPackInfoRequest.ts +++ b/specification/xpack/info/XPackInfoRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get information. @@ -40,6 +41,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of the information categories to include in the response. diff --git a/specification/xpack/usage/XPackUsageRequest.ts b/specification/xpack/usage/XPackUsageRequest.ts index 76459e5cfa..aa2d3386f3 100644 --- a/specification/xpack/usage/XPackUsageRequest.ts +++ b/specification/xpack/usage/XPackUsageRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get usage information. @@ -38,6 +39,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/validator/rules/no-inline-unions.js b/validator/rules/no-inline-unions.js index 93fd54c251..c780794592 100644 --- a/validator/rules/no-inline-unions.js +++ b/validator/rules/no-inline-unions.js @@ -38,6 +38,12 @@ export default createRule({ if (!isPropertyAnnotation && !isInterfaceProperty) { return; } + + // allow request_media_type and response_media_type + if (parent.parent?.key?.name === 'request_media_type' || + parent.parent?.key?.name === 'response_media_type') { + return; + } if (node.types.length === 2) { const [first, second] = node.types; diff --git a/validator/test/no-inline-unions.test.js b/validator/test/no-inline-unions.test.js index 9e3e7c1958..d29082838f 100644 --- a/validator/test/no-inline-unions.test.js +++ b/validator/test/no-inline-unions.test.js @@ -70,6 +70,11 @@ ruleTester.run('no-inline-unions', rule, { `interface Config { nodes: integer[] | integer }`, + `interface Config { + request_media_type: MediaType.Json + response_media_type: MediaType.Json + }`, + ], invalid: [ {