diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 58d7f9f4bc..956908f5c9 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -105018,6 +105018,11 @@ } ] }, + "media_type": { + "description": "The media type for encoding `value`.\nApplies only when value is a template snippet.\nMust be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`.", + "default": "\"application/json\"", + "type": "string" + }, "copy_from": { "description": "The origin field which will be appended to `field`, cannot set `value` simultaneously.", "allOf": [ @@ -106922,6 +106927,7 @@ }, "media_type": { "description": "The media type for encoding `value`.\nApplies only when value is a template snippet.\nMust be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`.", + "default": "\"application/json\"", "type": "string" }, "override": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 542f5946ea..b9f4361cb5 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -69001,6 +69001,11 @@ } ] }, + "media_type": { + "description": "The media type for encoding `value`.\nApplies only when value is a template snippet.\nMust be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`.", + "default": "\"application/json\"", + "type": "string" + }, "copy_from": { "description": "The origin field which will be appended to `field`, cannot set `value` simultaneously.", "allOf": [ @@ -70905,6 +70910,7 @@ }, "media_type": { "description": "The media type for encoding `value`.\nApplies only when value is a template snippet.\nMust be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`.", + "default": "\"application/json\"", "type": "string" }, "override": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 16d6faf090..cd3196089e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -183886,6 +183886,19 @@ ] } }, + { + "description": "The media type for encoding `value`.\nApplies only when value is a template snippet.\nMust be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`.", + "name": "media_type", + "required": false, + "serverDefault": "\"application/json\"", + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, { "description": "The origin field which will be appended to `field`, cannot set `value` simultaneously.", "name": "copy_from", @@ -183912,7 +183925,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L329-L348" + "specLocation": "ingest/_types/Processors.ts#L329-L355" }, { "kind": "interface", @@ -184032,7 +184045,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L350-L391" + "specLocation": "ingest/_types/Processors.ts#L357-L398" }, { "kind": "interface", @@ -184086,7 +184099,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L560-L576" + "specLocation": "ingest/_types/Processors.ts#L567-L583" }, { "kind": "interface", @@ -184163,7 +184176,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L578-L601" + "specLocation": "ingest/_types/Processors.ts#L585-L608" }, { "kind": "interface", @@ -184322,7 +184335,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L603-L664" + "specLocation": "ingest/_types/Processors.ts#L610-L671" }, { "kind": "interface", @@ -184388,7 +184401,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L677-L697" + "specLocation": "ingest/_types/Processors.ts#L684-L704" }, { "kind": "enum", @@ -184422,7 +184435,7 @@ "name": "ConvertType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L666-L675" + "specLocation": "ingest/_types/Processors.ts#L673-L682" }, { "kind": "interface", @@ -184520,7 +184533,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L699-L732" + "specLocation": "ingest/_types/Processors.ts#L706-L739" }, { "kind": "interface", @@ -184745,7 +184758,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L734-L772" + "specLocation": "ingest/_types/Processors.ts#L741-L779" }, { "kind": "interface", @@ -184840,7 +184853,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L774-L807" + "specLocation": "ingest/_types/Processors.ts#L781-L814" }, { "kind": "interface", @@ -184906,7 +184919,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L809-L828" + "specLocation": "ingest/_types/Processors.ts#L816-L835" }, { "kind": "interface", @@ -185141,7 +185154,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L830-L848" + "specLocation": "ingest/_types/Processors.ts#L837-L855" }, { "kind": "interface", @@ -185156,7 +185169,7 @@ "namespace": "ingest._types" }, "properties": [], - "specLocation": "ingest/_types/Processors.ts#L850-L850" + "specLocation": "ingest/_types/Processors.ts#L857-L857" }, { "kind": "interface", @@ -185260,7 +185273,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L852-L891" + "specLocation": "ingest/_types/Processors.ts#L859-L898" }, { "kind": "interface", @@ -185288,7 +185301,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L893-L899" + "specLocation": "ingest/_types/Processors.ts#L900-L906" }, { "kind": "enum", @@ -185334,7 +185347,7 @@ "name": "FingerprintDigest", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L901-L907" + "specLocation": "ingest/_types/Processors.ts#L908-L914" }, { "kind": "interface", @@ -185413,7 +185426,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L909-L937" + "specLocation": "ingest/_types/Processors.ts#L916-L944" }, { "kind": "interface", @@ -185466,7 +185479,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L939-L953" + "specLocation": "ingest/_types/Processors.ts#L946-L960" }, { "kind": "interface", @@ -185593,7 +185606,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L393-L434" + "specLocation": "ingest/_types/Processors.ts#L400-L441" }, { "kind": "enum", @@ -185609,7 +185622,7 @@ "name": "GeoGridTargetFormat", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L442-L445" + "specLocation": "ingest/_types/Processors.ts#L449-L452" }, { "kind": "enum", @@ -185628,7 +185641,7 @@ "name": "GeoGridTileType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L436-L440" + "specLocation": "ingest/_types/Processors.ts#L443-L447" }, { "kind": "interface", @@ -185735,7 +185748,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L447-L481" + "specLocation": "ingest/_types/Processors.ts#L454-L488" }, { "kind": "interface", @@ -185840,7 +185853,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L955-L986" + "specLocation": "ingest/_types/Processors.ts#L962-L993" }, { "kind": "interface", @@ -185918,7 +185931,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L988-L1012" + "specLocation": "ingest/_types/Processors.ts#L995-L1019" }, { "kind": "interface", @@ -185972,7 +185985,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1014-L1030" + "specLocation": "ingest/_types/Processors.ts#L1021-L1037" }, { "kind": "interface", @@ -186006,7 +186019,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1071-L1083", + "specLocation": "ingest/_types/Processors.ts#L1078-L1090", "variants": { "kind": "container" } @@ -186083,7 +186096,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1098-L1124" + "specLocation": "ingest/_types/Processors.ts#L1105-L1131" }, { "kind": "interface", @@ -186119,7 +186132,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1085-L1096" + "specLocation": "ingest/_types/Processors.ts#L1092-L1103" }, { "kind": "interface", @@ -186230,7 +186243,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1032-L1064" + "specLocation": "ingest/_types/Processors.ts#L1039-L1071" }, { "kind": "interface", @@ -186311,7 +186324,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1066-L1069" + "specLocation": "ingest/_types/Processors.ts#L1073-L1076" }, { "kind": "interface", @@ -186418,7 +186431,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L483-L517" + "specLocation": "ingest/_types/Processors.ts#L490-L524" }, { "kind": "interface", @@ -186480,7 +186493,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1126-L1141" + "specLocation": "ingest/_types/Processors.ts#L1133-L1148" }, { "kind": "interface", @@ -186559,7 +186572,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1143-L1172" + "specLocation": "ingest/_types/Processors.ts#L1150-L1179" }, { "kind": "enum", @@ -186577,7 +186590,7 @@ "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L1174-L1179" + "specLocation": "ingest/_types/Processors.ts#L1181-L1186" }, { "kind": "interface", @@ -186734,7 +186747,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1181-L1233" + "specLocation": "ingest/_types/Processors.ts#L1188-L1240" }, { "kind": "interface", @@ -186809,7 +186822,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1235-L1251" + "specLocation": "ingest/_types/Processors.ts#L1242-L1258" }, { "kind": "interface", @@ -186925,7 +186938,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1253-L1287" + "specLocation": "ingest/_types/Processors.ts#L1260-L1294" }, { "kind": "interface", @@ -187213,7 +187226,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1289-L1300" + "specLocation": "ingest/_types/Processors.ts#L1296-L1307" }, { "kind": "interface", @@ -188196,7 +188209,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1302-L1343" + "specLocation": "ingest/_types/Processors.ts#L1309-L1350" }, { "kind": "interface", @@ -188249,7 +188262,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1345-L1361" + "specLocation": "ingest/_types/Processors.ts#L1352-L1368" }, { "kind": "interface", @@ -188302,7 +188315,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1363-L1377" + "specLocation": "ingest/_types/Processors.ts#L1370-L1384" }, { "kind": "interface", @@ -188355,7 +188368,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1379-L1395" + "specLocation": "ingest/_types/Processors.ts#L1386-L1402" }, { "kind": "interface", @@ -188437,7 +188450,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1397-L1425" + "specLocation": "ingest/_types/Processors.ts#L1404-L1432" }, { "kind": "interface", @@ -188509,7 +188522,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1427-L1447" + "specLocation": "ingest/_types/Processors.ts#L1434-L1454" }, { "kind": "interface", @@ -188565,6 +188578,7 @@ "description": "The media type for encoding `value`.\nApplies only when value is a template snippet.\nMust be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`.", "name": "media_type", "required": false, + "serverDefault": "\"application/json\"", "type": { "kind": "instance_of", "type": { @@ -188595,7 +188609,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1449-L1483" + "specLocation": "ingest/_types/Processors.ts#L1456-L1491" }, { "kind": "interface", @@ -188638,7 +188652,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1485-L1494" + "specLocation": "ingest/_types/Processors.ts#L1493-L1502" }, { "kind": "enum", @@ -188654,7 +188668,7 @@ "name": "ShapeType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L1496-L1499" + "specLocation": "ingest/_types/Processors.ts#L1504-L1507" }, { "kind": "interface", @@ -188753,7 +188767,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1501-L1517" + "specLocation": "ingest/_types/Processors.ts#L1509-L1525" }, { "kind": "interface", @@ -188832,7 +188846,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1519-L1544" + "specLocation": "ingest/_types/Processors.ts#L1527-L1552" }, { "kind": "interface", @@ -188847,7 +188861,7 @@ "namespace": "ingest._types" }, "properties": [], - "specLocation": "ingest/_types/Processors.ts#L1546-L1546" + "specLocation": "ingest/_types/Processors.ts#L1554-L1554" }, { "kind": "interface", @@ -188901,7 +188915,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1548-L1564" + "specLocation": "ingest/_types/Processors.ts#L1556-L1572" }, { "kind": "interface", @@ -188955,7 +188969,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1566-L1582" + "specLocation": "ingest/_types/Processors.ts#L1574-L1590" }, { "kind": "interface", @@ -189035,7 +189049,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1602-L1628" + "specLocation": "ingest/_types/Processors.ts#L1610-L1636" }, { "kind": "interface", @@ -189089,7 +189103,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1584-L1600" + "specLocation": "ingest/_types/Processors.ts#L1592-L1608" }, { "kind": "interface", @@ -189197,7 +189211,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L519-L550" + "specLocation": "ingest/_types/Processors.ts#L526-L557" }, { "kind": "enum", @@ -189222,7 +189236,7 @@ "name": "UserAgentProperty", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L552-L558" + "specLocation": "ingest/_types/Processors.ts#L559-L565" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b44ed0fc97..d177bd0e4a 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -15193,6 +15193,7 @@ export type InferenceUpdateResponse = InferenceInferenceEndpointInfo export interface IngestAppendProcessor extends IngestProcessorBase { field: Field value?: any | any[] + media_type?: string copy_from?: Field allow_duplicates?: boolean } diff --git a/specification/ingest/_types/Processors.ts b/specification/ingest/_types/Processors.ts index 9c4d375d25..9da4669e8c 100644 --- a/specification/ingest/_types/Processors.ts +++ b/specification/ingest/_types/Processors.ts @@ -336,6 +336,13 @@ export class AppendProcessor extends ProcessorBase { * The value to be appended. Supports template snippets. May specify only one of `value` or `copy_from`. */ value?: UserDefinedValue | UserDefinedValue[] + /** + * The media type for encoding `value`. + * Applies only when value is a template snippet. + * Must be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`. + * @server_default "application/json" + */ + media_type?: string /** * The origin field which will be appended to `field`, cannot set `value` simultaneously. */ @@ -1466,6 +1473,7 @@ export class SetProcessor extends ProcessorBase { * The media type for encoding `value`. * Applies only when value is a template snippet. * Must be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`. + * @server_default "application/json" */ media_type?: string /**