From 40c216359f8d4116e56bed1c986113bfee7436b4 Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Fri, 30 Aug 2024 11:38:44 +0000 Subject: [PATCH] Update specification output --- output/openapi/elasticsearch-openapi.json | 64 +++++ .../elasticsearch-serverless-openapi.json | 64 +++++ output/schema/schema-serverless.json | 248 ++++++++++++++---- output/schema/schema.json | 248 ++++++++++++++---- output/typescript/types.ts | 16 ++ 5 files changed, 552 insertions(+), 88 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index c21a958449..8b9f826254 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -86341,6 +86341,9 @@ "gsub": { "$ref": "#/components/schemas/ingest._types:GsubProcessor" }, + "html_strip": { + "$ref": "#/components/schemas/ingest._types:HtmlStripProcessor" + }, "inference": { "$ref": "#/components/schemas/ingest._types:InferenceProcessor" }, @@ -86392,6 +86395,9 @@ "urldecode": { "$ref": "#/components/schemas/ingest._types:UrlDecodeProcessor" }, + "uri_parts": { + "$ref": "#/components/schemas/ingest._types:UriPartsProcessor" + }, "user_agent": { "$ref": "#/components/schemas/ingest._types:UserAgentProcessor" } @@ -87012,6 +87018,31 @@ } ] }, + "ingest._types:HtmlStripProcessor": { + "allOf": [ + { + "$ref": "#/components/schemas/ingest._types:ProcessorBase" + }, + { + "type": "object", + "properties": { + "field": { + "$ref": "#/components/schemas/_types:Field" + }, + "ignore_missing": { + "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document,", + "type": "boolean" + }, + "target_field": { + "$ref": "#/components/schemas/_types:Field" + } + }, + "required": [ + "field" + ] + } + ] + }, "ingest._types:InferenceProcessor": { "allOf": [ { @@ -87588,6 +87619,39 @@ } ] }, + "ingest._types:UriPartsProcessor": { + "allOf": [ + { + "$ref": "#/components/schemas/ingest._types:ProcessorBase" + }, + { + "type": "object", + "properties": { + "field": { + "$ref": "#/components/schemas/_types:Field" + }, + "ignore_missing": { + "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", + "type": "boolean" + }, + "keep_original": { + "description": "If `true`, the processor copies the unparsed URI to `.original`.", + "type": "boolean" + }, + "remove_if_successful": { + "description": "If `true`, the processor removes the `field` after parsing the URI string.\nIf parsing fails, the processor does not remove the `field`.", + "type": "boolean" + }, + "target_field": { + "$ref": "#/components/schemas/_types:Field" + } + }, + "required": [ + "field" + ] + } + ] + }, "ingest._types:UserAgentProcessor": { "allOf": [ { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index fbbfd7eda0..869fa13311 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -55150,6 +55150,9 @@ "gsub": { "$ref": "#/components/schemas/ingest._types:GsubProcessor" }, + "html_strip": { + "$ref": "#/components/schemas/ingest._types:HtmlStripProcessor" + }, "inference": { "$ref": "#/components/schemas/ingest._types:InferenceProcessor" }, @@ -55201,6 +55204,9 @@ "urldecode": { "$ref": "#/components/schemas/ingest._types:UrlDecodeProcessor" }, + "uri_parts": { + "$ref": "#/components/schemas/ingest._types:UriPartsProcessor" + }, "user_agent": { "$ref": "#/components/schemas/ingest._types:UserAgentProcessor" } @@ -55821,6 +55827,31 @@ } ] }, + "ingest._types:HtmlStripProcessor": { + "allOf": [ + { + "$ref": "#/components/schemas/ingest._types:ProcessorBase" + }, + { + "type": "object", + "properties": { + "field": { + "$ref": "#/components/schemas/_types:Field" + }, + "ignore_missing": { + "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document,", + "type": "boolean" + }, + "target_field": { + "$ref": "#/components/schemas/_types:Field" + } + }, + "required": [ + "field" + ] + } + ] + }, "ingest._types:InferenceProcessor": { "allOf": [ { @@ -56397,6 +56428,39 @@ } ] }, + "ingest._types:UriPartsProcessor": { + "allOf": [ + { + "$ref": "#/components/schemas/ingest._types:ProcessorBase" + }, + { + "type": "object", + "properties": { + "field": { + "$ref": "#/components/schemas/_types:Field" + }, + "ignore_missing": { + "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", + "type": "boolean" + }, + "keep_original": { + "description": "If `true`, the processor copies the unparsed URI to `.original`.", + "type": "boolean" + }, + "remove_if_successful": { + "description": "If `true`, the processor removes the `field` after parsing the URI string.\nIf parsing fails, the processor does not remove the `field`.", + "type": "boolean" + }, + "target_field": { + "$ref": "#/components/schemas/_types:Field" + } + }, + "required": [ + "field" + ] + } + ] + }, "ingest._types:UserAgentProcessor": { "allOf": [ { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index ab19375a3a..754e17113d 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -92689,7 +92689,7 @@ "name": "ConvertType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L435-L443" + "specLocation": "ingest/_types/Processors.ts#L447-L455" }, { "kind": "enum", @@ -92707,7 +92707,7 @@ "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L849-L854" + "specLocation": "ingest/_types/Processors.ts#L879-L884" }, { "kind": "enum", @@ -92723,7 +92723,7 @@ "name": "ShapeType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L1074-L1077" + "specLocation": "ingest/_types/Processors.ts#L1104-L1107" }, { "kind": "enum", @@ -92763,7 +92763,7 @@ "name": "UserAgentProperty", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L266-L277" + "specLocation": "ingest/_types/Processors.ts#L278-L289" }, { "kind": "enum", @@ -119294,6 +119294,19 @@ } } }, + { + "description": "Removes HTML tags from the field.\nIf the field is an array of strings, HTML tags will be removed from all members of the array.", + "docId": "htmlstrip-processor", + "name": "html_strip", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "HtmlStripProcessor", + "namespace": "ingest._types" + } + } + }, { "description": "Uses a pre-trained data frame analytics model or a model deployed for natural language processing tasks to infer against the data that is being ingested in the pipeline.", "docId": "inference-processor", @@ -119532,6 +119545,19 @@ } } }, + { + "description": "Parses a Uniform Resource Identifier (URI) string and extracts its components as an object.\nThis URI object includes properties for the URI’s domain, path, fragment, port, query, scheme, user info, username, and password.", + "docId": "uri-parts-processor", + "name": "uri_parts", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "UriPartsProcessor", + "namespace": "ingest._types" + } + } + }, { "description": "The `user_agent` processor extracts details from the user agent string a browser sends with its web requests.\nThis processor adds this information by default under the `user_agent` field.", "docId": "user-agent-processor", @@ -119547,7 +119573,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L27-L239", + "specLocation": "ingest/_types/Processors.ts#L27-L251", "variants": { "kind": "container", "nonExhaustive": true @@ -119603,7 +119629,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L279-L294" + "specLocation": "ingest/_types/Processors.ts#L291-L306" }, { "kind": "interface", @@ -119676,7 +119702,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L241-L264" + "specLocation": "ingest/_types/Processors.ts#L253-L276" }, { "inherits": { @@ -119796,7 +119822,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L296-L337" + "specLocation": "ingest/_types/Processors.ts#L308-L349" }, { "inherits": { @@ -119850,7 +119876,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L392-L408" + "specLocation": "ingest/_types/Processors.ts#L404-L420" }, { "inherits": { @@ -119927,7 +119953,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L410-L433" + "specLocation": "ingest/_types/Processors.ts#L422-L445" }, { "inherits": { @@ -119993,7 +120019,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L445-L465" + "specLocation": "ingest/_types/Processors.ts#L457-L477" }, { "inherits": { @@ -120091,7 +120117,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L467-L500" + "specLocation": "ingest/_types/Processors.ts#L479-L512" }, { "inherits": { @@ -120173,7 +120199,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L542-L569" + "specLocation": "ingest/_types/Processors.ts#L554-L581" }, { "inherits": { @@ -120279,7 +120305,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L502-L540" + "specLocation": "ingest/_types/Processors.ts#L514-L552" }, { "inherits": { @@ -120345,7 +120371,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L571-L590" + "specLocation": "ingest/_types/Processors.ts#L583-L602" }, { "inherits": { @@ -120385,7 +120411,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L592-L603" + "specLocation": "ingest/_types/Processors.ts#L604-L615" }, { "inherits": { @@ -120400,7 +120426,7 @@ "namespace": "ingest._types" }, "properties": [], - "specLocation": "ingest/_types/Processors.ts#L605-L605" + "specLocation": "ingest/_types/Processors.ts#L617-L617" }, { "inherits": { @@ -120504,7 +120530,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L607-L646" + "specLocation": "ingest/_types/Processors.ts#L619-L658" }, { "inherits": { @@ -120532,7 +120558,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L648-L654" + "specLocation": "ingest/_types/Processors.ts#L660-L666" }, { "inherits": { @@ -120585,7 +120611,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L656-L670" + "specLocation": "ingest/_types/Processors.ts#L668-L682" }, { "inherits": { @@ -120680,7 +120706,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L339-L368" + "specLocation": "ingest/_types/Processors.ts#L351-L380" }, { "inherits": { @@ -120772,7 +120798,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L672-L697" + "specLocation": "ingest/_types/Processors.ts#L684-L709" }, { "inherits": { @@ -120850,7 +120876,61 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L699-L723" + "specLocation": "ingest/_types/Processors.ts#L711-L735" + }, + { + "inherits": { + "type": { + "name": "ProcessorBase", + "namespace": "ingest._types" + } + }, + "kind": "interface", + "name": { + "name": "HtmlStripProcessor", + "namespace": "ingest._types" + }, + "properties": [ + { + "description": "The string-valued field to remove HTML tags from.", + "name": "field", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + }, + { + "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document,", + "name": "ignore_missing", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "The field to assign the converted value to\nBy default, the `field` is updated in-place.", + "name": "target_field", + "required": false, + "serverDefault": "field", + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + } + ], + "specLocation": "ingest/_types/Processors.ts#L737-L753" }, { "inherits": { @@ -120922,7 +121002,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L725-L744" + "specLocation": "ingest/_types/Processors.ts#L755-L774" }, { "kind": "interface", @@ -120956,7 +121036,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L746-L758", + "specLocation": "ingest/_types/Processors.ts#L776-L788", "variants": { "kind": "container" } @@ -120995,7 +121075,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L760-L771" + "specLocation": "ingest/_types/Processors.ts#L790-L801" }, { "kind": "interface", @@ -121069,7 +121149,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L773-L799" + "specLocation": "ingest/_types/Processors.ts#L803-L829" }, { "inherits": { @@ -121122,7 +121202,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L801-L816" + "specLocation": "ingest/_types/Processors.ts#L831-L846" }, { "inherits": { @@ -121201,7 +121281,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L818-L847" + "specLocation": "ingest/_types/Processors.ts#L848-L877" }, { "inherits": { @@ -121358,7 +121438,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L856-L908" + "specLocation": "ingest/_types/Processors.ts#L886-L938" }, { "inherits": { @@ -121412,7 +121492,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L910-L926" + "specLocation": "ingest/_types/Processors.ts#L940-L956" }, { "inherits": { @@ -121453,7 +121533,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L928-L939" + "specLocation": "ingest/_types/Processors.ts#L958-L969" }, { "inherits": { @@ -121506,7 +121586,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L941-L955" + "specLocation": "ingest/_types/Processors.ts#L971-L985" }, { "inherits": { @@ -121559,7 +121639,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L957-L973" + "specLocation": "ingest/_types/Processors.ts#L987-L1003" }, { "inherits": { @@ -121641,7 +121721,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L975-L1003" + "specLocation": "ingest/_types/Processors.ts#L1005-L1033" }, { "inherits": { @@ -121713,7 +121793,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1005-L1025" + "specLocation": "ingest/_types/Processors.ts#L1035-L1055" }, { "inherits": { @@ -121799,7 +121879,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1027-L1061" + "specLocation": "ingest/_types/Processors.ts#L1057-L1091" }, { "inherits": { @@ -121842,7 +121922,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1063-L1072" + "specLocation": "ingest/_types/Processors.ts#L1093-L1102" }, { "inherits": { @@ -121895,7 +121975,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1079-L1095" + "specLocation": "ingest/_types/Processors.ts#L1109-L1125" }, { "inherits": { @@ -121974,7 +122054,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1097-L1122" + "specLocation": "ingest/_types/Processors.ts#L1127-L1152" }, { "inherits": { @@ -122028,7 +122108,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1124-L1140" + "specLocation": "ingest/_types/Processors.ts#L1154-L1170" }, { "inherits": { @@ -122082,7 +122162,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1142-L1158" + "specLocation": "ingest/_types/Processors.ts#L1172-L1188" }, { "inherits": { @@ -122136,7 +122216,87 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1160-L1176" + "specLocation": "ingest/_types/Processors.ts#L1190-L1206" + }, + { + "inherits": { + "type": { + "name": "ProcessorBase", + "namespace": "ingest._types" + } + }, + "kind": "interface", + "name": { + "name": "UriPartsProcessor", + "namespace": "ingest._types" + }, + "properties": [ + { + "description": "Field containing the URI string.", + "name": "field", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + }, + { + "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", + "name": "ignore_missing", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "If `true`, the processor copies the unparsed URI to `.original`.", + "name": "keep_original", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "If `true`, the processor removes the `field` after parsing the URI string.\nIf parsing fails, the processor does not remove the `field`.", + "name": "remove_if_successful", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "Output field for the URI object.", + "name": "target_field", + "required": false, + "serverDefault": "url", + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + } + ], + "specLocation": "ingest/_types/Processors.ts#L1208-L1234" }, { "inherits": { @@ -122216,7 +122376,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L370-L390" + "specLocation": "ingest/_types/Processors.ts#L382-L402" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 8e69bcf099..e5425894d0 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -138662,7 +138662,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L279-L294" + "specLocation": "ingest/_types/Processors.ts#L291-L306" }, { "kind": "interface", @@ -138782,7 +138782,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L296-L337" + "specLocation": "ingest/_types/Processors.ts#L308-L349" }, { "kind": "interface", @@ -138836,7 +138836,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L392-L408" + "specLocation": "ingest/_types/Processors.ts#L404-L420" }, { "kind": "interface", @@ -138913,7 +138913,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L410-L433" + "specLocation": "ingest/_types/Processors.ts#L422-L445" }, { "kind": "interface", @@ -138979,7 +138979,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L445-L465" + "specLocation": "ingest/_types/Processors.ts#L457-L477" }, { "kind": "enum", @@ -139010,7 +139010,7 @@ "name": "ConvertType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L435-L443" + "specLocation": "ingest/_types/Processors.ts#L447-L455" }, { "kind": "interface", @@ -139108,7 +139108,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L467-L500" + "specLocation": "ingest/_types/Processors.ts#L479-L512" }, { "kind": "interface", @@ -139248,7 +139248,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L502-L540" + "specLocation": "ingest/_types/Processors.ts#L514-L552" }, { "kind": "interface", @@ -139330,7 +139330,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L542-L569" + "specLocation": "ingest/_types/Processors.ts#L554-L581" }, { "kind": "interface", @@ -139396,7 +139396,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L571-L590" + "specLocation": "ingest/_types/Processors.ts#L583-L602" }, { "kind": "interface", @@ -139436,7 +139436,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L592-L603" + "specLocation": "ingest/_types/Processors.ts#L604-L615" }, { "kind": "interface", @@ -139451,7 +139451,7 @@ "namespace": "ingest._types" }, "properties": [], - "specLocation": "ingest/_types/Processors.ts#L605-L605" + "specLocation": "ingest/_types/Processors.ts#L617-L617" }, { "kind": "interface", @@ -139555,7 +139555,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L607-L646" + "specLocation": "ingest/_types/Processors.ts#L619-L658" }, { "kind": "interface", @@ -139583,7 +139583,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L648-L654" + "specLocation": "ingest/_types/Processors.ts#L660-L666" }, { "kind": "interface", @@ -139636,7 +139636,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L656-L670" + "specLocation": "ingest/_types/Processors.ts#L668-L682" }, { "kind": "interface", @@ -139731,7 +139731,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L339-L368" + "specLocation": "ingest/_types/Processors.ts#L351-L380" }, { "kind": "interface", @@ -139823,7 +139823,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L672-L697" + "specLocation": "ingest/_types/Processors.ts#L684-L709" }, { "kind": "interface", @@ -139901,7 +139901,61 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L699-L723" + "specLocation": "ingest/_types/Processors.ts#L711-L735" + }, + { + "kind": "interface", + "inherits": { + "type": { + "name": "ProcessorBase", + "namespace": "ingest._types" + } + }, + "name": { + "name": "HtmlStripProcessor", + "namespace": "ingest._types" + }, + "properties": [ + { + "description": "The string-valued field to remove HTML tags from.", + "name": "field", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + }, + { + "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document,", + "name": "ignore_missing", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "The field to assign the converted value to\nBy default, the `field` is updated in-place.", + "name": "target_field", + "required": false, + "serverDefault": "field", + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + } + ], + "specLocation": "ingest/_types/Processors.ts#L737-L753" }, { "kind": "interface", @@ -139935,7 +139989,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L746-L758", + "specLocation": "ingest/_types/Processors.ts#L776-L788", "variants": { "kind": "container" } @@ -140012,7 +140066,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L773-L799" + "specLocation": "ingest/_types/Processors.ts#L803-L829" }, { "kind": "interface", @@ -140048,7 +140102,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L760-L771" + "specLocation": "ingest/_types/Processors.ts#L790-L801" }, { "kind": "interface", @@ -140120,7 +140174,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L725-L744" + "specLocation": "ingest/_types/Processors.ts#L755-L774" }, { "kind": "interface", @@ -140173,7 +140227,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L801-L816" + "specLocation": "ingest/_types/Processors.ts#L831-L846" }, { "kind": "interface", @@ -140252,7 +140306,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L818-L847" + "specLocation": "ingest/_types/Processors.ts#L848-L877" }, { "kind": "enum", @@ -140270,7 +140324,7 @@ "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L849-L854" + "specLocation": "ingest/_types/Processors.ts#L879-L884" }, { "kind": "interface", @@ -140427,7 +140481,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L856-L908" + "specLocation": "ingest/_types/Processors.ts#L886-L938" }, { "kind": "interface", @@ -140481,7 +140535,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L910-L926" + "specLocation": "ingest/_types/Processors.ts#L940-L956" }, { "kind": "interface", @@ -140668,7 +140722,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L928-L939" + "specLocation": "ingest/_types/Processors.ts#L958-L969" }, { "kind": "interface", @@ -140741,7 +140795,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L241-L264" + "specLocation": "ingest/_types/Processors.ts#L253-L276" }, { "kind": "interface", @@ -140988,6 +141042,19 @@ } } }, + { + "description": "Removes HTML tags from the field.\nIf the field is an array of strings, HTML tags will be removed from all members of the array.", + "docId": "htmlstrip-processor", + "name": "html_strip", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "HtmlStripProcessor", + "namespace": "ingest._types" + } + } + }, { "description": "Uses a pre-trained data frame analytics model or a model deployed for natural language processing tasks to infer against the data that is being ingested in the pipeline.", "docId": "inference-processor", @@ -141226,6 +141293,19 @@ } } }, + { + "description": "Parses a Uniform Resource Identifier (URI) string and extracts its components as an object.\nThis URI object includes properties for the URI’s domain, path, fragment, port, query, scheme, user info, username, and password.", + "docId": "uri-parts-processor", + "name": "uri_parts", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "UriPartsProcessor", + "namespace": "ingest._types" + } + } + }, { "description": "The `user_agent` processor extracts details from the user agent string a browser sends with its web requests.\nThis processor adds this information by default under the `user_agent` field.", "docId": "user-agent-processor", @@ -141241,7 +141321,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L27-L239", + "specLocation": "ingest/_types/Processors.ts#L27-L251", "variants": { "kind": "container", "nonExhaustive": true @@ -141298,7 +141378,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L941-L955" + "specLocation": "ingest/_types/Processors.ts#L971-L985" }, { "kind": "interface", @@ -141351,7 +141431,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L957-L973" + "specLocation": "ingest/_types/Processors.ts#L987-L1003" }, { "kind": "interface", @@ -141433,7 +141513,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L975-L1003" + "specLocation": "ingest/_types/Processors.ts#L1005-L1033" }, { "kind": "interface", @@ -141505,7 +141585,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1005-L1025" + "specLocation": "ingest/_types/Processors.ts#L1035-L1055" }, { "kind": "interface", @@ -141591,7 +141671,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1027-L1061" + "specLocation": "ingest/_types/Processors.ts#L1057-L1091" }, { "kind": "interface", @@ -141634,7 +141714,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1063-L1072" + "specLocation": "ingest/_types/Processors.ts#L1093-L1102" }, { "kind": "enum", @@ -141650,7 +141730,7 @@ "name": "ShapeType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L1074-L1077" + "specLocation": "ingest/_types/Processors.ts#L1104-L1107" }, { "kind": "interface", @@ -141703,7 +141783,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1079-L1095" + "specLocation": "ingest/_types/Processors.ts#L1109-L1125" }, { "kind": "interface", @@ -141782,7 +141862,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1097-L1122" + "specLocation": "ingest/_types/Processors.ts#L1127-L1152" }, { "kind": "interface", @@ -141836,7 +141916,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1124-L1140" + "specLocation": "ingest/_types/Processors.ts#L1154-L1170" }, { "kind": "interface", @@ -141890,7 +141970,87 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1142-L1158" + "specLocation": "ingest/_types/Processors.ts#L1172-L1188" + }, + { + "kind": "interface", + "inherits": { + "type": { + "name": "ProcessorBase", + "namespace": "ingest._types" + } + }, + "name": { + "name": "UriPartsProcessor", + "namespace": "ingest._types" + }, + "properties": [ + { + "description": "Field containing the URI string.", + "name": "field", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + }, + { + "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", + "name": "ignore_missing", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "If `true`, the processor copies the unparsed URI to `.original`.", + "name": "keep_original", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "If `true`, the processor removes the `field` after parsing the URI string.\nIf parsing fails, the processor does not remove the `field`.", + "name": "remove_if_successful", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "Output field for the URI object.", + "name": "target_field", + "required": false, + "serverDefault": "url", + "type": { + "kind": "instance_of", + "type": { + "name": "Field", + "namespace": "_types" + } + } + } + ], + "specLocation": "ingest/_types/Processors.ts#L1208-L1234" }, { "kind": "interface", @@ -141944,7 +142104,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1160-L1176" + "specLocation": "ingest/_types/Processors.ts#L1190-L1206" }, { "kind": "interface", @@ -142024,7 +142184,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L370-L390" + "specLocation": "ingest/_types/Processors.ts#L382-L402" }, { "kind": "enum", @@ -142064,7 +142224,7 @@ "name": "UserAgentProperty", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L266-L277" + "specLocation": "ingest/_types/Processors.ts#L278-L289" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c464f67b89..a6131f3281 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -12727,6 +12727,12 @@ export interface IngestGsubProcessor extends IngestProcessorBase { target_field?: Field } +export interface IngestHtmlStripProcessor extends IngestProcessorBase { + field: Field + ignore_missing?: boolean + target_field?: Field +} + export interface IngestInferenceConfig { regression?: IngestInferenceConfigRegression classification?: IngestInferenceConfigClassification @@ -12837,6 +12843,7 @@ export interface IngestProcessorContainer { geoip?: IngestGeoIpProcessor grok?: IngestGrokProcessor gsub?: IngestGsubProcessor + html_strip?: IngestHtmlStripProcessor inference?: IngestInferenceProcessor join?: IngestJoinProcessor json?: IngestJsonProcessor @@ -12854,6 +12861,7 @@ export interface IngestProcessorContainer { trim?: IngestTrimProcessor uppercase?: IngestUppercaseProcessor urldecode?: IngestUrlDecodeProcessor + uri_parts?: IngestUriPartsProcessor user_agent?: IngestUserAgentProcessor } @@ -12924,6 +12932,14 @@ export interface IngestUppercaseProcessor extends IngestProcessorBase { target_field?: Field } +export interface IngestUriPartsProcessor extends IngestProcessorBase { + field: Field + ignore_missing?: boolean + keep_original?: boolean + remove_if_successful?: boolean + target_field?: Field +} + export interface IngestUrlDecodeProcessor extends IngestProcessorBase { field: Field ignore_missing?: boolean