diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 7247ccb79f..d691ea20a8 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -7083,7 +7083,7 @@ { "in": "path", "name": "name", - "description": "Index or template name to simulate", + "description": "Name of the index to simulate", "required": true, "deprecated": false, "schema": { @@ -7091,20 +7091,10 @@ }, "style": "simple" }, - { - "in": "query", - "name": "create", - "description": "If `true`, the template passed in the body is only used if no existing\ntemplates match the same index patterns. If `false`, the simulation uses\nthe template with the highest priority. Note that the template is not\npermanently added or updated in either case; it is only used for the\nsimulation.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, { "in": "query", "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received\nbefore the timeout expires, the request fails and returns an error.", + "description": "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.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types:Duration" @@ -7122,54 +7112,27 @@ "style": "form" } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "allow_auto_create": { - "description": "This setting overrides the value of the `action.auto_create_index` cluster setting.\nIf set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`.\nIf set to `false`, then indices or data streams matching the template must always be explicitly created, and may never be automatically created.", - "type": "boolean" - }, - "index_patterns": { - "$ref": "#/components/schemas/_types:Indices" - }, - "composed_of": { - "description": "An ordered list of component template names.\nComponent templates are merged in the order specified, meaning that the last component template specified has the highest precedence.", - "type": "array", - "items": { - "$ref": "#/components/schemas/_types:Name" - } - }, - "template": { - "$ref": "#/components/schemas/indices.put_index_template:IndexTemplateMapping" - }, - "data_stream": { - "$ref": "#/components/schemas/indices._types:DataStreamVisibility" - }, - "priority": { - "description": "Priority to determine index template precedence when a new data stream or index is created.\nThe index template with the highest priority is chosen.\nIf no priority is specified the template is treated as though it is of priority 0 (lowest priority).\nThis number is not automatically generated by Elasticsearch.", - "type": "number" - }, - "version": { - "$ref": "#/components/schemas/_types:VersionNumber" - }, - "_meta": { - "$ref": "#/components/schemas/_types:Metadata" - } - } - } - } - } - }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { - "type": "object" + "type": "object", + "properties": { + "overlapping": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices.simulate_template:Overlapping" + } + }, + "template": { + "$ref": "#/components/schemas/indices.simulate_template:Template" + } + }, + "required": [ + "template" + ] } } } @@ -26318,7 +26281,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/indices._types:IndexTemplate" + "type": "object", + "properties": { + "allow_auto_create": { + "description": "This setting overrides the value of the `action.auto_create_index` cluster setting.\nIf set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`.\nIf set to `false`, then indices or data streams matching the template must always be explicitly created, and may never be automatically created.", + "type": "boolean" + }, + "index_patterns": { + "$ref": "#/components/schemas/_types:Indices" + }, + "composed_of": { + "description": "An ordered list of component template names.\nComponent templates are merged in the order specified, meaning that the last component template specified has the highest precedence.", + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:Name" + } + }, + "template": { + "$ref": "#/components/schemas/indices.put_index_template:IndexTemplateMapping" + }, + "data_stream": { + "$ref": "#/components/schemas/indices._types:DataStreamVisibility" + }, + "priority": { + "description": "Priority to determine index template precedence when a new data stream or index is created.\nThe index template with the highest priority is chosen.\nIf no priority is specified the template is treated as though it is of priority 0 (lowest priority).\nThis number is not automatically generated by Elasticsearch.", + "type": "number" + }, + "version": { + "$ref": "#/components/schemas/_types:VersionNumber" + }, + "_meta": { + "$ref": "#/components/schemas/_types:Metadata" + }, + "ignore_missing_component_templates": { + "description": "The configuration option ignore_missing_component_templates can be used when an index template\nreferences a component template that might not exist", + "type": "array", + "items": { + "type": "string" + } + } + } } } } @@ -35249,13 +35251,6 @@ "description": "The minimum word length below which the terms are ignored.", "type": "number" }, - "per_field_analyzer": { - "description": "Overrides the default analyzer.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, "routing": { "$ref": "#/components/schemas/_types:Routing" }, @@ -35323,6 +35318,7 @@ "$ref": "#/components/schemas/_types:IndexName" }, "per_field_analyzer": { + "description": "Overrides the default analyzer.", "type": "object", "additionalProperties": { "type": "string" @@ -36686,15 +36682,7 @@ ] }, "_types.aggregations:Aggregation": { - "type": "object", - "properties": { - "meta": { - "$ref": "#/components/schemas/_types:Metadata" - }, - "name": { - "type": "string" - } - } + "type": "object" }, "_types.aggregations:AutoDateHistogramAggregation": { "allOf": [ @@ -37451,11 +37439,7 @@ "min": { "$ref": "#/components/schemas/_types.aggregations:FieldDateMath" } - }, - "required": [ - "max", - "min" - ] + } }, "_types.aggregations:FieldDateMath": { "description": "A date range limit, represented either as a DateMath expression or a number expressed\naccording to the target field's precision.", @@ -38086,11 +38070,7 @@ "description": "Minimum value for the bound.", "type": "number" } - }, - "required": [ - "max", - "min" - ] + } }, "_types.aggregations:IpRangeAggregation": { "allOf": [ @@ -39585,21 +39565,35 @@ "initial_buffer": { "description": "Specifies the number of individual documents that will be stored in memory on a shard before the initial bucketing algorithm is run.\nDefaults to `min(10 * shard_size, 50000)`.", "type": "number" + }, + "script": { + "$ref": "#/components/schemas/_types:Script" } } }, "_global.search._types:Rescore": { - "type": "object", - "properties": { - "query": { - "$ref": "#/components/schemas/_global.search._types:RescoreQuery" + "allOf": [ + { + "type": "object", + "properties": { + "window_size": { + "type": "number" + } + } }, - "window_size": { - "type": "number" + { + "type": "object", + "properties": { + "query": { + "$ref": "#/components/schemas/_global.search._types:RescoreQuery" + }, + "learning_to_rank": { + "$ref": "#/components/schemas/_global.search._types:LearningToRank" + } + }, + "minProperties": 1, + "maxProperties": 1 } - }, - "required": [ - "query" ] }, "_global.search._types:RescoreQuery": { @@ -39634,6 +39628,22 @@ "total" ] }, + "_global.search._types:LearningToRank": { + "type": "object", + "properties": { + "model_id": { + "description": "The unique identifier of the trained model uploaded to Elasticsearch", + "type": "string" + }, + "params": { + "description": "Named parameters to be passed to the query templates used for feature", + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, "_types:SlicedScroll": { "type": "object", "properties": { @@ -39736,6 +39746,7 @@ "type": "string", "enum": [ "boolean", + "composite", "date", "double", "geo_point", @@ -42450,6 +42461,12 @@ "enum": [ "html_strip" ] + }, + "escaped_tags": { + "type": "array", + "items": { + "type": "string" + } } }, "required": [ @@ -45805,7 +45822,7 @@ "type": { "type": "string", "enum": [ - "{dynamic_property}" + "{dynamic_type}" ] }, "enabled": { @@ -47964,7 +47981,6 @@ "required": [ "_id", "_index", - "_primary_term", "result", "_seq_no", "_shards", diff --git a/output/schema/schema.json b/output/schema/schema.json index af363f86ae..f88e3a6ea1 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -26712,7 +26712,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L214-L217" + "specLocation": "_global/msearch/types.ts#L213-L216" }, { "generics": [ @@ -26762,7 +26762,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L204-L207" + "specLocation": "_global/msearch/types.ts#L203-L206" }, { "kind": "interface", @@ -27235,7 +27235,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L71-L202" + "specLocation": "_global/msearch/types.ts#L70-L201" }, { "description": "Contains parameters used to limit or change the subsequent search body request.", @@ -27367,7 +27367,7 @@ } } ], - "specLocation": "_global/msearch/types.ts#L53-L68" + "specLocation": "_global/msearch/types.ts#L52-L67" }, { "attachedBehaviors": [ @@ -27578,7 +27578,7 @@ "name": "RequestItem", "namespace": "_global.msearch" }, - "specLocation": "_global/msearch/types.ts#L48-L51", + "specLocation": "_global/msearch/types.ts#L47-L50", "type": { "items": [ { @@ -27648,7 +27648,7 @@ "name": "ResponseItem", "namespace": "_global.msearch" }, - "specLocation": "_global/msearch/types.ts#L209-L212", + "specLocation": "_global/msearch/types.ts#L208-L211", "type": { "items": [ { @@ -35142,6 +35142,47 @@ ], "specLocation": "_global/search/_types/suggester.ts#L427-L432" }, + { + "kind": "interface", + "name": { + "name": "LearningToRank", + "namespace": "_global.search._types" + }, + "properties": [ + { + "description": "The unique identifier of the trained model uploaded to Elasticsearch", + "name": "model_id", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "Named parameters to be passed to the query templates used for feature", + "name": "params", + "required": false, + "type": { + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "kind": "dictionary_of", + "singleKey": false, + "value": { + "kind": "user_defined_value" + } + } + } + ], + "specLocation": "_global/search/_types/rescoring.ts#L88-L97" + }, { "kind": "interface", "name": { @@ -36020,9 +36061,21 @@ "namespace": "_global.search._types" }, "properties": [ + { + "containerProperty": true, + "name": "window_size", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, { "name": "query", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -36032,18 +36085,22 @@ } }, { - "name": "window_size", + "name": "learning_to_rank", "required": false, "type": { "kind": "instance_of", "type": { - "name": "integer", - "namespace": "_types" + "name": "LearningToRank", + "namespace": "_global.search._types" } } } ], - "specLocation": "_global/search/_types/rescoring.ts#L23-L26" + "specLocation": "_global/search/_types/rescoring.ts#L25-L38", + "variants": { + "kind": "container", + "nonExhaustive": true + } }, { "kind": "interface", @@ -36105,7 +36162,7 @@ } } ], - "specLocation": "_global/search/_types/rescoring.ts#L28-L50" + "specLocation": "_global/search/_types/rescoring.ts#L40-L62" }, { "kind": "enum", @@ -36135,7 +36192,7 @@ "name": "ScoreMode", "namespace": "_global.search._types" }, - "specLocation": "_global/search/_types/rescoring.ts#L52-L74" + "specLocation": "_global/search/_types/rescoring.ts#L64-L86" }, { "kind": "interface", @@ -48051,7 +48108,7 @@ }, { "name": "_primary_term", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -48300,7 +48357,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L57-L63" + "specLocation": "_types/aggregations/bucket.ts#L55-L61" }, { "attachedBehaviors": [ @@ -48859,7 +48916,7 @@ "name": "AggregateOrder", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L976-L978", + "specLocation": "_types/aggregations/bucket.ts#L974-L976", "type": { "items": [ { @@ -48911,31 +48968,8 @@ "name": "Aggregation", "namespace": "_types.aggregations" }, - "properties": [ - { - "name": "meta", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Metadata", - "namespace": "_types" - } - } - }, - { - "name": "name", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - ], - "specLocation": "_types/aggregations/Aggregation.ts#L22-L25" + "properties": [], + "specLocation": "_types/aggregations/Aggregation.ts#L20-L20" }, { "kind": "interface", @@ -50067,7 +50101,7 @@ } } ], - "specLocation": "_types/aggregations/AggregationContainer.ts#L106-L515", + "specLocation": "_types/aggregations/AggregationContainer.ts#L105-L514", "variants": { "kind": "container", "nonExhaustive": true @@ -50155,7 +50189,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L672-L685" + "specLocation": "_types/aggregations/bucket.ts#L670-L683" }, { "kind": "interface", @@ -50377,7 +50411,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L65-L100" + "specLocation": "_types/aggregations/bucket.ts#L63-L98" }, { "inherits": { @@ -50638,7 +50672,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/bucket.ts#L50-L55" + "specLocation": "_types/aggregations/bucket.ts#L48-L53" }, { "description": "A sibling pipeline aggregation which executes a correlation function on the configured sibling multi-bucket aggregation.", @@ -51172,7 +51206,7 @@ "name": "CalendarInterval", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L249-L266" + "specLocation": "_types/aggregations/bucket.ts#L247-L264" }, { "inherits": { @@ -51426,7 +51460,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L1037-L1101" + "specLocation": "_types/aggregations/bucket.ts#L1036-L1100" }, { "codegenNames": [ @@ -51438,7 +51472,7 @@ "name": "CategorizeTextAnalyzer", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L1103-L1106", + "specLocation": "_types/aggregations/bucket.ts#L1102-L1105", "type": { "items": [ { @@ -51491,7 +51525,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L735-L744" + "specLocation": "_types/aggregations/bucket.ts#L733-L742" }, { "attachedBehaviors": [ @@ -51538,7 +51572,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L111-L116" + "specLocation": "_types/aggregations/bucket.ts#L109-L114" }, { "inherits": { @@ -51583,7 +51617,7 @@ "name": "CompositeAggregateKey", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L118-L118", + "specLocation": "_types/aggregations/bucket.ts#L116-L116", "type": { "key": { "kind": "instance_of", @@ -51668,7 +51702,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L120-L136" + "specLocation": "_types/aggregations/bucket.ts#L118-L134" }, { "kind": "interface", @@ -51746,7 +51780,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L157-L166" + "specLocation": "_types/aggregations/bucket.ts#L155-L164" }, { "kind": "interface", @@ -51804,7 +51838,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L138-L155" + "specLocation": "_types/aggregations/bucket.ts#L136-L153" }, { "attachedBehaviors": [ @@ -51907,7 +51941,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L174-L182" + "specLocation": "_types/aggregations/bucket.ts#L172-L180" }, { "inherits": { @@ -51945,7 +51979,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L184-L187" + "specLocation": "_types/aggregations/bucket.ts#L182-L185" }, { "inherits": { @@ -51972,7 +52006,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L170-L172" + "specLocation": "_types/aggregations/bucket.ts#L168-L170" }, { "inherits": { @@ -51987,7 +52021,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/bucket.ts#L168-L168" + "specLocation": "_types/aggregations/bucket.ts#L166-L166" }, { "description": "Result of the `cumulative_cardinality` aggregation", @@ -52106,7 +52140,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L1108-L1112" + "specLocation": "_types/aggregations/bucket.ts#L1107-L1111" }, { "inherits": { @@ -52353,7 +52387,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L189-L247" + "specLocation": "_types/aggregations/bucket.ts#L187-L245" }, { "attachedBehaviors": [ @@ -52511,7 +52545,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L268-L294" + "specLocation": "_types/aggregations/bucket.ts#L266-L292" }, { "kind": "interface", @@ -52557,7 +52591,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L305-L318" + "specLocation": "_types/aggregations/bucket.ts#L303-L316" }, { "inherits": { @@ -52689,7 +52723,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L320-L341" + "specLocation": "_types/aggregations/bucket.ts#L318-L339" }, { "description": "Result of a `terms` aggregation when the field is some kind of decimal number like a float, double, or distance.", @@ -52830,7 +52864,7 @@ { "description": "Maximum value for the bound.", "name": "max", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52842,7 +52876,7 @@ { "description": "Minimum value for the bound.", "name": "min", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -52852,7 +52886,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L489-L498" + "specLocation": "_types/aggregations/bucket.ts#L487-L496" }, { "inherits": { @@ -53192,7 +53226,7 @@ "name": "FieldDateMath", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L296-L303", + "specLocation": "_types/aggregations/bucket.ts#L294-L301", "type": { "items": [ { @@ -53330,7 +53364,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L358-L378" + "specLocation": "_types/aggregations/bucket.ts#L356-L376" }, { "attachedBehaviors": [ @@ -53503,7 +53537,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L1159-L1183" + "specLocation": "_types/aggregations/bucket.ts#L1158-L1182" }, { "attachedBehaviors": [ @@ -53603,7 +53637,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L1145-L1157" + "specLocation": "_types/aggregations/bucket.ts#L1144-L1156" }, { "kind": "enum", @@ -53857,7 +53891,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L380-L403" + "specLocation": "_types/aggregations/bucket.ts#L378-L401" }, { "inherits": { @@ -53960,7 +53994,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L405-L430" + "specLocation": "_types/aggregations/bucket.ts#L403-L428" }, { "attachedBehaviors": [ @@ -54310,7 +54344,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L432-L458" + "specLocation": "_types/aggregations/bucket.ts#L430-L456" }, { "attachedBehaviors": [ @@ -54418,7 +54452,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L460-L485" + "specLocation": "_types/aggregations/bucket.ts#L458-L483" }, { "attachedBehaviors": [ @@ -54452,7 +54486,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/bucket.ts#L487-L487" + "specLocation": "_types/aggregations/bucket.ts#L485-L485" }, { "kind": "interface", @@ -54474,7 +54508,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L746-L751" + "specLocation": "_types/aggregations/bucket.ts#L744-L749" }, { "kind": "interface", @@ -54718,7 +54752,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L500-L546" + "specLocation": "_types/aggregations/bucket.ts#L498-L544" }, { "attachedBehaviors": [ @@ -55359,7 +55393,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L1114-L1143" + "specLocation": "_types/aggregations/bucket.ts#L1113-L1142" }, { "attachedBehaviors": [ @@ -55490,7 +55524,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L548-L557" + "specLocation": "_types/aggregations/bucket.ts#L546-L555" }, { "kind": "interface", @@ -55560,7 +55594,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L559-L572" + "specLocation": "_types/aggregations/bucket.ts#L557-L570" }, { "attachedBehaviors": [ @@ -56278,7 +56312,7 @@ "name": "MinimumInterval", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L102-L109" + "specLocation": "_types/aggregations/bucket.ts#L100-L107" }, { "kind": "type_alias", @@ -56286,7 +56320,7 @@ "name": "Missing", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/AggregationContainer.ts#L517-L517", + "specLocation": "_types/aggregations/AggregationContainer.ts#L516-L516", "type": { "items": [ { @@ -56377,7 +56411,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L574-L580" + "specLocation": "_types/aggregations/bucket.ts#L572-L578" }, { "kind": "enum", @@ -56396,7 +56430,7 @@ "name": "MissingOrder", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/AggregationContainer.ts#L518-L522" + "specLocation": "_types/aggregations/AggregationContainer.ts#L517-L521" }, { "kind": "type_alias", @@ -56727,7 +56761,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L624-L634" + "specLocation": "_types/aggregations/bucket.ts#L622-L632" }, { "inherits": { @@ -56872,7 +56906,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L582-L622" + "specLocation": "_types/aggregations/bucket.ts#L580-L620" }, { "attachedBehaviors": [ @@ -56961,7 +56995,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L753-L762" + "specLocation": "_types/aggregations/bucket.ts#L751-L760" }, { "attachedBehaviors": [ @@ -57008,7 +57042,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L636-L641" + "specLocation": "_types/aggregations/bucket.ts#L634-L639" }, { "inherits": { @@ -57118,7 +57152,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L643-L648" + "specLocation": "_types/aggregations/bucket.ts#L641-L646" }, { "kind": "interface", @@ -57127,7 +57161,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/bucket.ts#L764-L764" + "specLocation": "_types/aggregations/bucket.ts#L762-L762" }, { "inherits": { @@ -57540,7 +57574,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L650-L670" + "specLocation": "_types/aggregations/bucket.ts#L648-L668" }, { "attachedBehaviors": [ @@ -57716,7 +57750,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L687-L717" + "specLocation": "_types/aggregations/bucket.ts#L685-L715" }, { "inherits": { @@ -57861,7 +57895,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L719-L725" + "specLocation": "_types/aggregations/bucket.ts#L717-L723" }, { "attachedBehaviors": [ @@ -57909,7 +57943,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L727-L733" + "specLocation": "_types/aggregations/bucket.ts#L725-L731" }, { "kind": "enum", @@ -57931,7 +57965,7 @@ "name": "SamplerAggregationExecutionHint", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L343-L356" + "specLocation": "_types/aggregations/bucket.ts#L341-L354" }, { "kind": "interface", @@ -57952,7 +57986,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L766-L768" + "specLocation": "_types/aggregations/bucket.ts#L764-L766" }, { "inherits": { @@ -58458,7 +58492,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L770-L834" + "specLocation": "_types/aggregations/bucket.ts#L768-L832" }, { "attachedBehaviors": [ @@ -58720,7 +58754,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L836-L908" + "specLocation": "_types/aggregations/bucket.ts#L834-L906" }, { "inherits": { @@ -60114,7 +60148,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L910-L970" + "specLocation": "_types/aggregations/bucket.ts#L908-L968" }, { "kind": "enum", @@ -60132,7 +60166,7 @@ "name": "TermsAggregationCollectMode", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L980-L989" + "specLocation": "_types/aggregations/bucket.ts#L978-L987" }, { "kind": "enum", @@ -60154,7 +60188,7 @@ "name": "TermsAggregationExecutionHint", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L991-L996" + "specLocation": "_types/aggregations/bucket.ts#L989-L994" }, { "attachedBehaviors": [ @@ -60196,7 +60230,7 @@ "name": "TermsExclude", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L1001-L1002", + "specLocation": "_types/aggregations/bucket.ts#L999-L1000", "type": { "items": [ { @@ -60231,7 +60265,7 @@ "name": "TermsInclude", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/bucket.ts#L998-L999", + "specLocation": "_types/aggregations/bucket.ts#L996-L997", "type": { "items": [ { @@ -60294,7 +60328,7 @@ } } ], - "specLocation": "_types/aggregations/bucket.ts#L1004-L1013" + "specLocation": "_types/aggregations/bucket.ts#L1002-L1011" }, { "kind": "interface", @@ -60990,9 +61024,20 @@ "namespace": "_types" } } + }, + { + "name": "script", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Script", + "namespace": "_types" + } + } } ], - "specLocation": "_types/aggregations/bucket.ts#L1015-L1035" + "specLocation": "_types/aggregations/bucket.ts#L1013-L1034" }, { "attachedBehaviors": [ @@ -62361,9 +62406,23 @@ "kind": "literal_value", "value": "html_strip" } + }, + { + "name": "escaped_tags", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } } ], - "specLocation": "_types/analysis/char_filters.ts#L43-L45" + "specLocation": "_types/analysis/char_filters.ts#L43-L46" }, { "inherits": { @@ -64012,7 +64071,7 @@ } } ], - "specLocation": "_types/analysis/char_filters.ts#L47-L51" + "specLocation": "_types/analysis/char_filters.ts#L48-L52" }, { "inherits": { @@ -64727,7 +64786,7 @@ } } ], - "specLocation": "_types/analysis/char_filters.ts#L53-L58" + "specLocation": "_types/analysis/char_filters.ts#L54-L59" }, { "inherits": { @@ -68196,7 +68255,7 @@ "required": true, "type": { "kind": "literal_value", - "value": "{dynamic_property}" + "value": "{dynamic_type}" } }, { @@ -70909,6 +70968,9 @@ { "name": "boolean" }, + { + "name": "composite" + }, { "name": "date" }, @@ -70935,7 +70997,7 @@ "name": "RuntimeFieldType", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/RuntimeFields.ts#L56-L65" + "specLocation": "_types/mapping/RuntimeFields.ts#L56-L66" }, { "kind": "type_alias", @@ -75176,6 +75238,7 @@ } }, { + "description": "Overrides the default analyzer.", "name": "per_field_analyzer", "required": false, "type": { @@ -75232,7 +75295,7 @@ } } ], - "specLocation": "_types/query_dsl/specialized.ts#L165-L184" + "specLocation": "_types/query_dsl/specialized.ts#L162-L184" }, { "inherits": { @@ -75961,29 +76024,6 @@ } } }, - { - "description": "Overrides the default analyzer.", - "name": "per_field_analyzer", - "required": false, - "type": { - "key": { - "kind": "instance_of", - "type": { - "name": "Field", - "namespace": "_types" - } - }, - "kind": "dictionary_of", - "singleKey": false, - "value": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - }, { "name": "routing", "required": false, @@ -76058,7 +76098,7 @@ } } ], - "specLocation": "_types/query_dsl/specialized.ts#L78-L163" + "specLocation": "_types/query_dsl/specialized.ts#L78-L160" }, { "inherits": { @@ -110562,7 +110602,7 @@ "codegenName": "name", "description": "Identifier for the policy.", "name": "policy", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -125365,112 +125405,7 @@ "CommonQueryParameters" ], "body": { - "kind": "properties", - "properties": [ - { - "description": "This setting overrides the value of the `action.auto_create_index` cluster setting.\nIf set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`.\nIf set to `false`, then indices or data streams matching the template must always be explicitly created, and may never be automatically created.", - "name": "allow_auto_create", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, - { - "description": "Array of wildcard (`*`) expressions used to match the names of data streams and indices during creation.", - "docId": "avoid-index-pattern-collisions", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/index-templates.html#avoid-index-pattern-collisions", - "name": "index_patterns", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } - } - }, - { - "description": "An ordered list of component template names.\nComponent templates are merged in the order specified, meaning that the last component template specified has the highest precedence.", - "name": "composed_of", - "required": false, - "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - } - } - }, - { - "description": "Template to be applied.\nIt may optionally include an `aliases`, `mappings`, or `settings` configuration.", - "name": "template", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexTemplateMapping", - "namespace": "indices.put_index_template" - } - } - }, - { - "description": "If this object is included, the template is used to create data streams and their backing indices.\nSupports an empty object.\nData streams require a matching index template with a `data_stream` object.", - "name": "data_stream", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "DataStreamVisibility", - "namespace": "indices._types" - } - } - }, - { - "description": "Priority to determine index template precedence when a new data stream or index is created.\nThe index template with the highest priority is chosen.\nIf no priority is specified the template is treated as though it is of priority 0 (lowest priority).\nThis number is not automatically generated by Elasticsearch.", - "name": "priority", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "description": "Version number used to manage index templates externally.\nThis number is not automatically generated by Elasticsearch.", - "name": "version", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "VersionNumber", - "namespace": "_types" - } - } - }, - { - "description": "Optional user metadata about the index template.\nMay have any contents.\nThis map is not automatically generated by Elasticsearch.", - "docId": "mapping-meta-field", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-meta-field.html", - "name": "_meta", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Metadata", - "namespace": "_types" - } - } - } - ] + "kind": "no_body" }, "description": "", "inherits": { @@ -125486,7 +125421,7 @@ }, "path": [ { - "description": "Index or template name to simulate", + "description": "Name of the index to simulate", "name": "name", "required": true, "type": { @@ -125500,20 +125435,7 @@ ], "query": [ { - "description": "If `true`, the template passed in the body is only used if no existing\ntemplates match the same index patterns. If `false`, the simulation uses\nthe template with the highest priority. Note that the template is not\npermanently added or updated in either case; it is only used for the\nsimulation.", - "name": "create", - "required": false, - "serverDefault": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, - { - "description": "Period to wait for a connection to the master node. If no response is received\nbefore the timeout expires, the request fails and returns an error.", + "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", @@ -125550,19 +125472,45 @@ } } ], - "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L33-L115" + "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L24-L49" }, { "body": { "kind": "properties", - "properties": [] + "properties": [ + { + "name": "overlapping", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "Overlapping", + "namespace": "indices.simulate_template" + } + } + } + }, + { + "name": "template", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Template", + "namespace": "indices.simulate_template" + } + } + } + ] }, "kind": "response", "name": { "name": "Response", "namespace": "indices.simulate_index_template" }, - "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L20-L22" + "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30" }, { "kind": "interface", @@ -125604,15 +125552,127 @@ "CommonQueryParameters" ], "body": { - "codegenName": "template", - "kind": "value", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexTemplate", - "namespace": "indices._types" + "kind": "properties", + "properties": [ + { + "description": "This setting overrides the value of the `action.auto_create_index` cluster setting.\nIf set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`.\nIf set to `false`, then indices or data streams matching the template must always be explicitly created, and may never be automatically created.", + "name": "allow_auto_create", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "Array of wildcard (`*`) expressions used to match the names of data streams and indices during creation.", + "docId": "avoid-index-pattern-collisions", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/index-templates.html#avoid-index-pattern-collisions", + "name": "index_patterns", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" + } + } + }, + { + "description": "An ordered list of component template names.\nComponent templates are merged in the order specified, meaning that the last component template specified has the highest precedence.", + "name": "composed_of", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "Name", + "namespace": "_types" + } + } + } + }, + { + "description": "Template to be applied.\nIt may optionally include an `aliases`, `mappings`, or `settings` configuration.", + "name": "template", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexTemplateMapping", + "namespace": "indices.put_index_template" + } + } + }, + { + "description": "If this object is included, the template is used to create data streams and their backing indices.\nSupports an empty object.\nData streams require a matching index template with a `data_stream` object.", + "name": "data_stream", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DataStreamVisibility", + "namespace": "indices._types" + } + } + }, + { + "description": "Priority to determine index template precedence when a new data stream or index is created.\nThe index template with the highest priority is chosen.\nIf no priority is specified the template is treated as though it is of priority 0 (lowest priority).\nThis number is not automatically generated by Elasticsearch.", + "name": "priority", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "description": "Version number used to manage index templates externally.\nThis number is not automatically generated by Elasticsearch.", + "name": "version", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "VersionNumber", + "namespace": "_types" + } + } + }, + { + "description": "Optional user metadata about the index template.\nMay have any contents.\nThis map is not automatically generated by Elasticsearch.", + "docId": "mapping-meta-field", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-meta-field.html", + "name": "_meta", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Metadata", + "namespace": "_types" + } + } + }, + { + "description": "The configuration option ignore_missing_component_templates can be used when an index template\nreferences a component template that might not exist", + "name": "ignore_missing_component_templates", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } } - } + ] }, "description": "Returns the index configuration that would be applied by a particular index template.", "inherits": { @@ -125692,7 +125752,7 @@ } } ], - "specLocation": "indices/simulate_template/IndicesSimulateTemplateRequest.ts#L25-L61" + "specLocation": "indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L114" }, { "body": { @@ -137081,7 +137141,7 @@ } } ], - "specLocation": "ml/_types/Datafeed.ts#L239-L252" + "specLocation": "ml/_types/Datafeed.ts#L238-L251" }, { "kind": "enum", @@ -137100,7 +137160,7 @@ "name": "ChunkingMode", "namespace": "ml._types" }, - "specLocation": "ml/_types/Datafeed.ts#L233-L237" + "specLocation": "ml/_types/Datafeed.ts#L232-L236" }, { "kind": "interface", @@ -137703,7 +137763,7 @@ } } ], - "specLocation": "ml/_types/Datafeed.ts#L37-L58" + "specLocation": "ml/_types/Datafeed.ts#L36-L57" }, { "kind": "interface", @@ -137961,7 +138021,7 @@ } } ], - "specLocation": "ml/_types/Datafeed.ts#L60-L117" + "specLocation": "ml/_types/Datafeed.ts#L59-L116" }, { "kind": "interface", @@ -138007,7 +138067,7 @@ } } ], - "specLocation": "ml/_types/Datafeed.ts#L198-L212" + "specLocation": "ml/_types/Datafeed.ts#L197-L211" }, { "kind": "enum", @@ -138029,7 +138089,7 @@ "name": "DatafeedState", "namespace": "ml._types" }, - "specLocation": "ml/_types/Datafeed.ts#L133-L138" + "specLocation": "ml/_types/Datafeed.ts#L132-L137" }, { "kind": "interface", @@ -138114,7 +138174,7 @@ } } ], - "specLocation": "ml/_types/Datafeed.ts#L140-L169" + "specLocation": "ml/_types/Datafeed.ts#L139-L168" }, { "kind": "interface", @@ -138223,7 +138283,7 @@ } } ], - "specLocation": "ml/_types/Datafeed.ts#L171-L196" + "specLocation": "ml/_types/Datafeed.ts#L170-L195" }, { "kind": "interface", @@ -140474,7 +140534,7 @@ } } ], - "specLocation": "ml/_types/Datafeed.ts#L119-L130" + "specLocation": "ml/_types/Datafeed.ts#L118-L129" }, { "kind": "enum", @@ -144738,7 +144798,7 @@ } } ], - "specLocation": "ml/_types/Datafeed.ts#L214-L231" + "specLocation": "ml/_types/Datafeed.ts#L213-L230" }, { "kind": "enum", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 952ad87ffd..326996873f 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -687,6 +687,7 @@ }, "ilm.put_lifecycle": { "request": [ + "Request: path parameter 'policy' is required in the json spec", "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], @@ -869,6 +870,7 @@ }, "indices.simulate_index_template": { "request": [ + "Request: missing json spec query parameter 'create'", "Request: missing json spec query parameter 'cause'" ], "response": [] diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 65f4a4c74b..22a91d5676 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1505,6 +1505,11 @@ export interface SearchLaplaceSmoothingModel { alpha: double } +export interface SearchLearningToRank { + model_id?: string + params?: Record +} + export interface SearchLinearInterpolationSmoothingModel { bigram_lambda: double trigram_lambda: double @@ -1604,8 +1609,9 @@ export interface SearchRegexOptions { } export interface SearchRescore { - query: SearchRescoreQuery window_size?: integer + query?: SearchRescoreQuery + learning_to_rank?: SearchLearningToRank } export interface SearchRescoreQuery { @@ -2807,7 +2813,7 @@ export interface WktGeoBounds { export interface WriteResponseBase { _id: Id _index: IndexName - _primary_term: long + _primary_term?: long result: Result _seq_no: SequenceNumber _shards: ShardStatistics @@ -2853,8 +2859,7 @@ export interface AggregationsAggregateBase { export type AggregationsAggregateOrder = Partial> | Partial>[] export interface AggregationsAggregation { - meta?: Metadata - name?: string + [key: string]: never } export interface AggregationsAggregationContainer { @@ -2997,7 +3002,8 @@ export interface AggregationsBoxplotAggregation extends AggregationsMetricAggreg compression?: double } -export interface AggregationsBucketAggregationBase extends AggregationsAggregation { +export interface AggregationsBucketAggregationBase { + [key: string]: never } export interface AggregationsBucketCorrelationAggregation extends AggregationsBucketPathAggregation { @@ -3028,7 +3034,7 @@ export interface AggregationsBucketMetricValueAggregate extends AggregationsSing keys: string[] } -export interface AggregationsBucketPathAggregation extends AggregationsAggregation { +export interface AggregationsBucketPathAggregation { buckets_path?: AggregationsBucketsPath } @@ -3040,7 +3046,7 @@ export interface AggregationsBucketSelectorAggregation extends AggregationsPipel script?: Script } -export interface AggregationsBucketSortAggregation extends AggregationsAggregation { +export interface AggregationsBucketSortAggregation { from?: integer gap_policy?: AggregationsGapPolicy size?: integer @@ -3065,7 +3071,7 @@ export interface AggregationsCardinalityAggregation extends AggregationsMetricAg export type AggregationsCardinalityExecutionMode = 'global_ordinals' | 'segment_ordinals' | 'direct' | 'save_memory_heuristic' | 'save_time_heuristic' -export interface AggregationsCategorizeTextAggregation extends AggregationsAggregation { +export interface AggregationsCategorizeTextAggregation { field: Field max_unique_tokens?: integer max_matched_tokens?: integer @@ -3247,8 +3253,8 @@ export interface AggregationsEwmaMovingAverageAggregation extends AggregationsMo } export interface AggregationsExtendedBounds { - max: T - min: T + max?: T + min?: T } export interface AggregationsExtendedStatsAggregate extends AggregationsStatsAggregate { @@ -3615,7 +3621,7 @@ export interface AggregationsLongTermsBucketKeys extends AggregationsTermsBucket export type AggregationsLongTermsBucket = AggregationsLongTermsBucketKeys & { [property: string]: AggregationsAggregate | long | string } -export interface AggregationsMatrixAggregation extends AggregationsAggregation { +export interface AggregationsMatrixAggregation { fields?: Fields missing?: Record } @@ -4072,7 +4078,7 @@ export interface AggregationsTTestAggregate extends AggregationsAggregateBase { value_as_string?: string } -export interface AggregationsTTestAggregation extends AggregationsAggregation { +export interface AggregationsTTestAggregation { a?: AggregationsTestPopulation b?: AggregationsTestPopulation type?: AggregationsTTestType @@ -4195,6 +4201,7 @@ export interface AggregationsVariableWidthHistogramAggregation { buckets?: integer shard_size?: integer initial_buffer?: integer + script?: Script } export interface AggregationsVariableWidthHistogramBucketKeys extends AggregationsMultiBucketBase { @@ -4208,7 +4215,7 @@ export interface AggregationsVariableWidthHistogramBucketKeys extends Aggregatio export type AggregationsVariableWidthHistogramBucket = AggregationsVariableWidthHistogramBucketKeys & { [property: string]: AggregationsAggregate | double | string | long } -export interface AggregationsWeightedAverageAggregation extends AggregationsAggregation { +export interface AggregationsWeightedAverageAggregation { format?: string value?: AggregationsWeightedAverageValue value_type?: AggregationsValueType @@ -4344,6 +4351,7 @@ export interface AnalysisFingerprintTokenFilter extends AnalysisTokenFilterBase export interface AnalysisHtmlStripCharFilter extends AnalysisCharFilterBase { type: 'html_strip' + escaped_tags?: string[] } export interface AnalysisHunspellTokenFilter extends AnalysisTokenFilterBase { @@ -4970,7 +4978,7 @@ export interface MappingDoubleRangeProperty extends MappingRangePropertyBase { export type MappingDynamicMapping = boolean | 'strict' | 'runtime' | 'true' | 'false' export interface MappingDynamicProperty extends MappingDocValuesPropertyBase { - type: '{dynamic_property}' + type: '{dynamic_type}' enabled?: boolean null_value?: FieldValue boost?: double @@ -5229,7 +5237,7 @@ export interface MappingRuntimeFieldFetchFields { format?: string } -export type MappingRuntimeFieldType = 'boolean' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup' +export type MappingRuntimeFieldType = 'boolean' | 'composite' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long' | 'lookup' export type MappingRuntimeFields = Record @@ -5728,7 +5736,6 @@ export interface QueryDslMoreLikeThisQuery extends QueryDslQueryBase { minimum_should_match?: MinimumShouldMatch min_term_freq?: integer min_word_length?: integer - per_field_analyzer?: Record routing?: Routing stop_words?: AnalysisStopWords unlike?: QueryDslLike | QueryDslLike[] @@ -9646,7 +9653,7 @@ export interface IlmMoveToStepStepKey { } export interface IlmPutLifecycleRequest extends RequestBase { - name: Name + name?: Name master_timeout?: Duration timeout?: Duration body?: { @@ -11194,22 +11201,13 @@ export interface IndicesShrinkResponse { export interface IndicesSimulateIndexTemplateRequest extends RequestBase { name: Name - create?: boolean master_timeout?: Duration include_defaults?: boolean - body?: { - allow_auto_create?: boolean - index_patterns?: Indices - composed_of?: Name[] - template?: IndicesPutIndexTemplateIndexTemplateMapping - data_stream?: IndicesDataStreamVisibility - priority?: integer - version?: VersionNumber - _meta?: Metadata - } } export interface IndicesSimulateIndexTemplateResponse { + overlapping?: IndicesSimulateTemplateOverlapping[] + template: IndicesSimulateTemplateTemplate } export interface IndicesSimulateTemplateOverlapping { @@ -11222,7 +11220,17 @@ export interface IndicesSimulateTemplateRequest extends RequestBase { create?: boolean master_timeout?: Duration include_defaults?: boolean - body?: IndicesIndexTemplate + body?: { + allow_auto_create?: boolean + index_patterns?: Indices + composed_of?: Name[] + template?: IndicesPutIndexTemplateIndexTemplateMapping + data_stream?: IndicesDataStreamVisibility + priority?: integer + version?: VersionNumber + _meta?: Metadata + ignore_missing_component_templates?: string[] + } } export interface IndicesSimulateTemplateResponse { diff --git a/specification/_global/msearch/types.ts b/specification/_global/msearch/types.ts index 46934beba4..57495ade82 100644 --- a/specification/_global/msearch/types.ts +++ b/specification/_global/msearch/types.ts @@ -41,7 +41,6 @@ import { Rescore } from '@global/search/_types/rescoring' import { SourceConfig } from '@global/search/_types/SourceFilter' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { ScriptField } from '@_types/Scripting' -import { SlicedScroll } from '@_types/SlicedScroll' import { KnnQuery } from '@_types/Knn' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' diff --git a/specification/_global/search/_types/rescoring.ts b/specification/_global/search/_types/rescoring.ts index e144891920..ede27346ed 100644 --- a/specification/_global/search/_types/rescoring.ts +++ b/specification/_global/search/_types/rescoring.ts @@ -19,10 +19,22 @@ import { double, integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' +import { Dictionary } from '@spec_utils/Dictionary' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' +/** + * @variants container + * @non_exhaustive + */ export class Rescore { - query: RescoreQuery + /** + * @variant container_property + */ window_size?: integer + + query?: RescoreQuery + + learning_to_rank?: LearningToRank } export class RescoreQuery { @@ -72,3 +84,14 @@ export enum ScoreMode { */ total } + +export class LearningToRank { + /** + * The unique identifier of the trained model uploaded to Elasticsearch + */ + model_id: string + /** + * Named parameters to be passed to the query templates used for feature + */ + params?: Dictionary +} diff --git a/specification/_types/Base.ts b/specification/_types/Base.ts index 8f5c13e4b4..3b4c3b9dca 100644 --- a/specification/_types/Base.ts +++ b/specification/_types/Base.ts @@ -36,7 +36,7 @@ export class RequestBase implements CommonQueryParameters {} export class WriteResponseBase { _id: Id _index: IndexName - _primary_term: long + _primary_term?: long result: Result _seq_no: SequenceNumber _shards: ShardStatistics diff --git a/specification/_types/aggregations/Aggregation.ts b/specification/_types/aggregations/Aggregation.ts index 13c54dc87f..24e9854c23 100644 --- a/specification/_types/aggregations/Aggregation.ts +++ b/specification/_types/aggregations/Aggregation.ts @@ -17,9 +17,4 @@ * under the License. */ -import { Metadata } from '@_types/common' - -export class Aggregation { - meta?: Metadata - name?: string -} +export class Aggregation {} diff --git a/specification/_types/aggregations/AggregationContainer.ts b/specification/_types/aggregations/AggregationContainer.ts index 4af550c9e1..7a0a1795f6 100644 --- a/specification/_types/aggregations/AggregationContainer.ts +++ b/specification/_types/aggregations/AggregationContainer.ts @@ -18,7 +18,6 @@ */ import { Dictionary } from '@spec_utils/Dictionary' -import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { Metadata } from '@_types/common' import { integer, double } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' diff --git a/specification/_types/aggregations/bucket.ts b/specification/_types/aggregations/bucket.ts index 5183060fa4..061abe95f8 100644 --- a/specification/_types/aggregations/bucket.ts +++ b/specification/_types/aggregations/bucket.ts @@ -30,7 +30,7 @@ import { GeoLocation, GeoBounds } from '@_types/Geo' -import { integer, float, long, double } from '@_types/Numeric' +import { integer, long, double } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Script } from '@_types/Scripting' import { @@ -40,11 +40,9 @@ import { TimeZone, DurationLarge } from '@_types/Time' -import { Buckets, TermsAggregateBase } from './Aggregate' +import { Buckets } from './Aggregate' import { Aggregation } from './Aggregation' import { Missing, MissingOrder } from './AggregationContainer' -import { OverloadOf } from '@spec_utils/behaviors' -import { Term } from '@global/termvectors/types' import { ValueType } from '@_types/aggregations/metric' /** @@ -490,11 +488,11 @@ export class ExtendedBounds { /** * Maximum value for the bound. */ - max: T + max?: T /** * Minimum value for the bound. */ - min: T + min?: T } export class HistogramAggregation extends BucketAggregationBase { @@ -1032,6 +1030,7 @@ export class VariableWidthHistogramAggregation { * Defaults to `min(10 * shard_size, 50000)`. */ initial_buffer?: integer + script?: Script } /** diff --git a/specification/_types/analysis/char_filters.ts b/specification/_types/analysis/char_filters.ts index c0d17cc833..e139070596 100644 --- a/specification/_types/analysis/char_filters.ts +++ b/specification/_types/analysis/char_filters.ts @@ -42,6 +42,7 @@ export type CharFilterDefinition = export class HtmlStripCharFilter extends CharFilterBase { type: 'html_strip' + escaped_tags?: string[] } export class MappingCharFilter extends CharFilterBase { diff --git a/specification/_types/mapping/RuntimeFields.ts b/specification/_types/mapping/RuntimeFields.ts index de3a0e9e33..b5ad85f52d 100644 --- a/specification/_types/mapping/RuntimeFields.ts +++ b/specification/_types/mapping/RuntimeFields.ts @@ -55,6 +55,7 @@ export class RuntimeFieldFetchFields { export enum RuntimeFieldType { boolean, + composite, date, double, geo_point, diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index 0cdbe2cee6..ddd44429a0 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -284,7 +284,7 @@ export class WildcardProperty extends DocValuesPropertyBase { } export class DynamicProperty extends DocValuesPropertyBase { - type: '{dynamic_property}' + type: '{dynamic_type}' enabled?: boolean null_value?: FieldValue diff --git a/specification/_types/query_dsl/specialized.ts b/specification/_types/query_dsl/specialized.ts index 72753097bc..f4e99b5277 100644 --- a/specification/_types/query_dsl/specialized.ts +++ b/specification/_types/query_dsl/specialized.ts @@ -143,10 +143,7 @@ export class MoreLikeThisQuery extends QueryBase { * @server_default 0 */ min_word_length?: integer - /** - * Overrides the default analyzer. - */ - per_field_analyzer?: Dictionary + routing?: Routing /** * An array of stop words. @@ -176,6 +173,9 @@ export class LikeDocument { * Index of a document. */ _index?: IndexName + /** + * Overrides the default analyzer. + */ per_field_analyzer?: Dictionary routing?: Routing version?: VersionNumber diff --git a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts index 3247d4921c..c36a3bebb8 100644 --- a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -35,7 +35,7 @@ export interface Request extends RequestBase { * Identifier for the policy. * @codegen_name name */ - policy: Name + policy?: Name } query_parameters: { /** diff --git a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts index 44899682ce..b4d1d32b00 100644 --- a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts +++ b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts @@ -17,18 +17,9 @@ * under the License. */ -import { DataStreamVisibility } from '@indices/_types/DataStream' import { RequestBase } from '@_types/Base' -import { - IndexName, - Indices, - Metadata, - Name, - VersionNumber -} from '@_types/common' +import { Name } from '@_types/common' import { Duration } from '@_types/Time' -import { integer } from '@_types/Numeric' -import { IndexTemplateMapping } from '../put_index_template/IndicesPutIndexTemplateRequest' /** * @@ -38,22 +29,12 @@ import { IndexTemplateMapping } from '../put_index_template/IndicesPutIndexTempl */ export interface Request extends RequestBase { path_parts: { - /** Index or template name to simulate */ + /** Name of the index to simulate */ name: Name } 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. - * @server_default false - * */ - create?: boolean - /** - * 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. + * 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. * @server_default 30s */ master_timeout?: Duration @@ -65,51 +46,4 @@ export interface Request extends RequestBase { */ include_defaults?: boolean } - body: { - /** - * This setting overrides the value of the `action.auto_create_index` cluster setting. - * If set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`. - * If set to `false`, then indices or data streams matching the template must always be explicitly created, and may never be automatically created. - */ - allow_auto_create?: boolean - /** - * Array of wildcard (`*`) expressions used to match the names of data streams and indices during creation. - * @doc_id avoid-index-pattern-collisions - */ - index_patterns?: Indices - /** - * An ordered list of component template names. - * Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. - */ - composed_of?: Name[] - /** - * Template to be applied. - * It may optionally include an `aliases`, `mappings`, or `settings` configuration. - */ - template?: IndexTemplateMapping - /** - * If this object is included, the template is used to create data streams and their backing indices. - * Supports an empty object. - * Data streams require a matching index template with a `data_stream` object. - */ - data_stream?: DataStreamVisibility - /** - * Priority to determine index template precedence when a new data stream or index is created. - * The index template with the highest priority is chosen. - * If no priority is specified the template is treated as though it is of priority 0 (lowest priority). - * This number is not automatically generated by Elasticsearch. - */ - priority?: integer - /** - * Version number used to manage index templates externally. - * This number is not automatically generated by Elasticsearch. - */ - version?: VersionNumber - /** - * Optional user metadata about the index template. - * May have any contents. - * This map is not automatically generated by Elasticsearch. - * @doc_id mapping-meta-field */ - _meta?: Metadata - } } diff --git a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts index 0769bf66cb..b333a4f0db 100644 --- a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts +++ b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts @@ -17,6 +17,14 @@ * under the License. */ +import { + Overlapping, + Template +} from '@indices/simulate_template/IndicesSimulateTemplateResponse' + export class Response { - body: {} + body: { + overlapping?: Overlapping[] + template: Template + } } diff --git a/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts b/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts index 7af09e2292..cde9569914 100644 --- a/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts +++ b/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts @@ -17,10 +17,12 @@ * under the License. */ -import { IndexTemplate } from '@indices/_types/IndexTemplate' import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { Indices, Metadata, Name, VersionNumber } from '@_types/common' import { Duration } from '@_types/Time' +import { IndexTemplateMapping } from '@indices/put_index_template/IndicesPutIndexTemplateRequest' +import { DataStreamVisibility } from '@indices/_types/DataStream' +import { integer } from '@_types/Numeric' /** * Returns the index configuration that would be applied by a particular index template. @@ -56,6 +58,57 @@ export interface Request extends RequestBase { */ include_defaults?: boolean } - /** @codegen_name template */ - body?: IndexTemplate + body: { + /** + * This setting overrides the value of the `action.auto_create_index` cluster setting. + * If set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`. + * If set to `false`, then indices or data streams matching the template must always be explicitly created, and may never be automatically created. + */ + allow_auto_create?: boolean + /** + * Array of wildcard (`*`) expressions used to match the names of data streams and indices during creation. + * @doc_id avoid-index-pattern-collisions + */ + index_patterns?: Indices + /** + * An ordered list of component template names. + * Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. + */ + composed_of?: Name[] + /** + * Template to be applied. + * It may optionally include an `aliases`, `mappings`, or `settings` configuration. + */ + template?: IndexTemplateMapping + /** + * If this object is included, the template is used to create data streams and their backing indices. + * Supports an empty object. + * Data streams require a matching index template with a `data_stream` object. + */ + data_stream?: DataStreamVisibility + /** + * Priority to determine index template precedence when a new data stream or index is created. + * The index template with the highest priority is chosen. + * If no priority is specified the template is treated as though it is of priority 0 (lowest priority). + * This number is not automatically generated by Elasticsearch. + */ + priority?: integer + /** + * Version number used to manage index templates externally. + * This number is not automatically generated by Elasticsearch. + */ + version?: VersionNumber + /** + * Optional user metadata about the index template. + * May have any contents. + * This map is not automatically generated by Elasticsearch. + * @doc_id mapping-meta-field */ + _meta?: Metadata + + /** + * The configuration option ignore_missing_component_templates can be used when an index template + * references a component template that might not exist + */ + ignore_missing_component_templates?: string[] + } } diff --git a/specification/ml/_types/Datafeed.ts b/specification/ml/_types/Datafeed.ts index 4cd58fa3ba..8aef286f59 100644 --- a/specification/ml/_types/Datafeed.ts +++ b/specification/ml/_types/Datafeed.ts @@ -19,14 +19,13 @@ import { Dictionary } from '@spec_utils/Dictionary' import { AggregationContainer } from '@_types/aggregations/AggregationContainer' -import { ExpandWildcards, Id, Indices, IndicesOptions } from '@_types/common' +import { Id, IndicesOptions } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' -import { double, integer, long } from '@_types/Numeric' +import { integer, long } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { ScriptField } from '@_types/Scripting' import { Duration, - DateTime, DurationValue, UnitMillis, UnitFloatMillis