From 25ec3c5bac556b2d96ad4ace04411d11b325f519 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Mon, 2 Jun 2025 13:18:58 +0200 Subject: [PATCH] Preserve `BucketsPath` alias --- .../Inference/PutAlibabacloudResponse.g.cs | 4 +- .../AverageBucketAggregation.g.cs | 6 +- .../BucketCorrelationAggregation.g.cs | 6 +- .../Aggregations/BucketKsAggregation.g.cs | 6 +- .../Aggregations/BucketScriptAggregation.g.cs | 6 +- .../BucketSelectorAggregation.g.cs | 6 +- .../CumulativeCardinalityAggregation.g.cs | 6 +- .../CumulativeSumAggregation.g.cs | 6 +- .../Aggregations/DerivativeAggregation.g.cs | 6 +- .../ExtendedStatsBucketAggregation.g.cs | 6 +- .../Aggregations/InferenceAggregation.g.cs | 8 +- .../Aggregations/MaxBucketAggregation.g.cs | 6 +- .../Aggregations/MinBucketAggregation.g.cs | 6 +- .../MovingFunctionAggregation.g.cs | 6 +- .../MovingPercentilesAggregation.g.cs | 6 +- .../Aggregations/NormalizeAggregation.g.cs | 6 +- .../PercentilesBucketAggregation.g.cs | 6 +- .../SerialDifferencingAggregation.g.cs | 6 +- .../Aggregations/StatsBucketAggregation.g.cs | 6 +- .../Aggregations/SumBucketAggregation.g.cs | 6 +- .../Types/Enums/Enums.Inference.g.cs | 130 ++++++++++++++++++ .../Inference/CohereServiceSettings.g.cs | 4 + .../_Shared/Types/Aggregations/BucketsPath.cs | 2 +- 23 files changed, 195 insertions(+), 61 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs index 31d317bddda..f4cd328413d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs @@ -40,7 +40,7 @@ public override Elastic.Clients.Elasticsearch.Inference.PutAlibabacloudResponse LocalJsonValue propService = default; LocalJsonValue propServiceSettings = default; LocalJsonValue propTaskSettings = default; - LocalJsonValue propTaskType = default; + LocalJsonValue propTaskType = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { if (propChunkingSettings.TryReadProperty(ref reader, options, PropChunkingSettings, null)) @@ -177,5 +177,5 @@ internal PutAlibabacloudResponse(Elastic.Clients.Elasticsearch.Serialization.Jso #if NET7_0_OR_GREATER required #endif - Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; set; } + Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI TaskType { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs index e8b8325c251..653b81d3506 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class AverageBucketAggregationConverter : System.Text.Js public override Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal AverageBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.Js /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public AverageBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs index 1d49f101c3e..19f9aa62061 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketCorrelationAggregation.g.cs @@ -31,7 +31,7 @@ internal sealed partial class BucketCorrelationAggregationConverter : System.Tex public override Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFunction = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { @@ -106,7 +106,7 @@ internal BucketCorrelationAggregation(Elastic.Clients.Elasticsearch.Serializatio /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -149,7 +149,7 @@ public BucketCorrelationAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs index ee4fc75c001..864f6c6734a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketKsAggregation.g.cs @@ -34,7 +34,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregation R { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue?> propAlternative = default; - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue?> propFractions = default; LocalJsonValue propSamplingMethod = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -135,7 +135,7 @@ internal BucketKsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -222,7 +222,7 @@ public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs index 1710fb3031a..dc99267dd8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class BucketScriptAggregationConverter : System.Text.Jso public override Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propScript = default; @@ -113,7 +113,7 @@ internal BucketScriptAggregation(Elastic.Clients.Elasticsearch.Serialization.Jso /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public BucketScriptAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs index 3ddde26218a..7edf3928eff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class BucketSelectorAggregationConverter : System.Text.J public override Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propScript = default; @@ -113,7 +113,7 @@ internal BucketSelectorAggregation(Elastic.Clients.Elasticsearch.Serialization.J /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public BucketSelectorAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs index 0ab62d50197..4c5ca6686a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class CumulativeCardinalityAggregationConverter : System public override Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal CumulativeCardinalityAggregation(Elastic.Clients.Elasticsearch.Serializ /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public CumulativeCardinalityAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs index fad254c7c5f..6accac4ce31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class CumulativeSumAggregationConverter : System.Text.Js public override Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal CumulativeSumAggregation(Elastic.Clients.Elasticsearch.Serialization.Js /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public CumulativeSumAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs index 4b0b1058c34..071389957a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DerivativeAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class DerivativeAggregationConverter : System.Text.Json. public override Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal DerivativeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonC /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public DerivativeAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs index 5dfd076bdd2..9ce88b542ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class ExtendedStatsBucketAggregationConverter : System.T public override Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propSigma = default; @@ -113,7 +113,7 @@ internal ExtendedStatsBucketAggregation(Elastic.Clients.Elasticsearch.Serializat /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public ExtendedStatsBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs index 0c3b9ec1430..fdaa3f727b4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/InferenceAggregation.g.cs @@ -34,7 +34,7 @@ internal sealed partial class InferenceAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propInferenceConfig = default; @@ -128,7 +128,7 @@ internal InferenceAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -188,7 +188,7 @@ public InferenceAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; @@ -283,7 +283,7 @@ public InferenceAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs index b3c8d5d2853..104fb9d0de5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class MaxBucketAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal MaxBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public MaxBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs index d0f72b4a683..0fc1b852002 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MinBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class MinBucketAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal MinBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public MinBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs index 324449678c8..365e54719a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs @@ -35,7 +35,7 @@ internal sealed partial class MovingFunctionAggregationConverter : System.Text.J public override Elastic.Clients.Elasticsearch.Aggregations.MovingFunctionAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propScript = default; @@ -131,7 +131,7 @@ internal MovingFunctionAggregation(Elastic.Clients.Elasticsearch.Serialization.J /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -195,7 +195,7 @@ public MovingFunctionAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.MovingFunctionAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.MovingFunctionAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs index 3772feb36de..7913a01f015 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs @@ -34,7 +34,7 @@ internal sealed partial class MovingPercentilesAggregationConverter : System.Tex public override Elastic.Clients.Elasticsearch.Aggregations.MovingPercentilesAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propShift = default; @@ -122,7 +122,7 @@ internal MovingPercentilesAggregation(Elastic.Clients.Elasticsearch.Serializatio /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -179,7 +179,7 @@ public MovingPercentilesAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.MovingPercentilesAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.MovingPercentilesAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs index c68734fa656..bf7dc2b11cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/NormalizeAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class NormalizeAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.NormalizeAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propMethod = default; @@ -113,7 +113,7 @@ internal NormalizeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public NormalizeAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.NormalizeAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.NormalizeAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs index 42531e3ec0e..4c3764150c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class PercentilesBucketAggregationConverter : System.Tex public override Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue?> propPercents = default; @@ -113,7 +113,7 @@ internal PercentilesBucketAggregation(Elastic.Clients.Elasticsearch.Serializatio /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -162,7 +162,7 @@ public PercentilesBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs index d1efae4908b..05dde915331 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs @@ -33,7 +33,7 @@ internal sealed partial class SerialDifferencingAggregationConverter : System.Te public override Elastic.Clients.Elasticsearch.Aggregations.SerialDifferencingAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; LocalJsonValue propLag = default; @@ -113,7 +113,7 @@ internal SerialDifferencingAggregation(Elastic.Clients.Elasticsearch.Serializati /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -163,7 +163,7 @@ public SerialDifferencingAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.SerialDifferencingAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.SerialDifferencingAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs index 9541dc640e6..cfd5441f9fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class StatsBucketAggregationConverter : System.Text.Json public override Elastic.Clients.Elasticsearch.Aggregations.StatsBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal StatsBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.Json /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public StatsBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.StatsBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.StatsBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs index fc7136321e6..2f4aaede5ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/SumBucketAggregation.g.cs @@ -32,7 +32,7 @@ internal sealed partial class SumBucketAggregationConverter : System.Text.Json.S public override Elastic.Clients.Elasticsearch.Aggregations.SumBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propBucketsPath = default; + LocalJsonValue propBucketsPath = default; LocalJsonValue propFormat = default; LocalJsonValue propGapPolicy = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -104,7 +104,7 @@ internal SumBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// Path to the buckets that contain one set of values to correlate. /// /// - public object? BucketsPath { get; set; } + public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; } /// /// @@ -146,7 +146,7 @@ public SumBucketAggregationDescriptor() /// Path to the buckets that contain one set of values to correlate. /// /// - public Elastic.Clients.Elasticsearch.Aggregations.SumBucketAggregationDescriptor BucketsPath(object? value) + public Elastic.Clients.Elasticsearch.Aggregations.SumBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value) { Instance.BucketsPath = value; return this; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs index 9962b1d2183..ed4e2d81572 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs @@ -1034,6 +1034,91 @@ public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, } } +internal sealed partial class TaskTypeAlibabaCloudAIConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberCompletion = System.Text.Json.JsonEncodedText.Encode("completion"); + private static readonly System.Text.Json.JsonEncodedText MemberRerank = System.Text.Json.JsonEncodedText.Encode("rerank"); + private static readonly System.Text.Json.JsonEncodedText MemberSparseEmbedding = System.Text.Json.JsonEncodedText.Encode("sparse_embedding"); + private static readonly System.Text.Json.JsonEncodedText MemberTextEmbedding = System.Text.Json.JsonEncodedText.Encode("text_embedding"); + + public override Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberCompletion)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.Completion; + } + + if (reader.ValueTextEquals(MemberRerank)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.Rerank; + } + + if (reader.ValueTextEquals(MemberSparseEmbedding)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.SparseEmbedding; + } + + if (reader.ValueTextEquals(MemberTextEmbedding)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.TextEmbedding; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberCompletion.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.Completion; + } + + if (string.Equals(value, MemberRerank.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.Rerank; + } + + if (string.Equals(value, MemberSparseEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.SparseEmbedding; + } + + if (string.Equals(value, MemberTextEmbedding.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.TextEmbedding; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.Completion: + writer.WriteStringValue(MemberCompletion); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.Rerank: + writer.WriteStringValue(MemberRerank); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.SparseEmbedding: + writer.WriteStringValue(MemberSparseEmbedding); + break; + case Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI.TextEmbedding: + writer.WriteStringValue(MemberTextEmbedding); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAI value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} + internal sealed partial class TaskTypeJinaAiConverter : System.Text.Json.Serialization.JsonConverter { private static readonly System.Text.Json.JsonEncodedText MemberRerank = System.Text.Json.JsonEncodedText.Encode("rerank"); @@ -1093,12 +1178,24 @@ public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, internal sealed partial class CohereEmbeddingTypeConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText MemberBinary = System.Text.Json.JsonEncodedText.Encode("binary"); + private static readonly System.Text.Json.JsonEncodedText MemberBit = System.Text.Json.JsonEncodedText.Encode("bit"); private static readonly System.Text.Json.JsonEncodedText MemberByte = System.Text.Json.JsonEncodedText.Encode("byte"); private static readonly System.Text.Json.JsonEncodedText MemberFloat = System.Text.Json.JsonEncodedText.Encode("float"); private static readonly System.Text.Json.JsonEncodedText MemberInt8 = System.Text.Json.JsonEncodedText.Encode("int8"); public override Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { + if (reader.ValueTextEquals(MemberBinary)) + { + return Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Binary; + } + + if (reader.ValueTextEquals(MemberBit)) + { + return Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Bit; + } + if (reader.ValueTextEquals(MemberByte)) { return Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Byte; @@ -1115,6 +1212,16 @@ public override Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType Read } var value = reader.GetString()!; + if (string.Equals(value, MemberBinary.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Binary; + } + + if (string.Equals(value, MemberBit.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Bit; + } + if (string.Equals(value, MemberByte.Value, System.StringComparison.OrdinalIgnoreCase)) { return Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Byte; @@ -1137,6 +1244,12 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien { switch (value) { + case Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Binary: + writer.WriteStringValue(MemberBinary); + break; + case Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Bit: + writer.WriteStringValue(MemberBit); + break; case Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType.Byte: writer.WriteStringValue(MemberByte); break; @@ -1704,6 +1817,19 @@ public enum WatsonxTaskType TextEmbedding } +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.TaskTypeAlibabaCloudAIConverter))] +public enum TaskTypeAlibabaCloudAI +{ + [System.Runtime.Serialization.EnumMember(Value = "completion")] + Completion, + [System.Runtime.Serialization.EnumMember(Value = "rerank")] + Rerank, + [System.Runtime.Serialization.EnumMember(Value = "sparse_embedding")] + SparseEmbedding, + [System.Runtime.Serialization.EnumMember(Value = "text_embedding")] + TextEmbedding +} + [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.TaskTypeJinaAiConverter))] public enum TaskTypeJinaAi { @@ -1716,6 +1842,10 @@ public enum TaskTypeJinaAi [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingTypeConverter))] public enum CohereEmbeddingType { + [System.Runtime.Serialization.EnumMember(Value = "binary")] + Binary, + [System.Runtime.Serialization.EnumMember(Value = "bit")] + Bit, [System.Runtime.Serialization.EnumMember(Value = "byte")] Byte, [System.Runtime.Serialization.EnumMember(Value = "float")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs index eb557ec44ff..e1ddc8bf595 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs @@ -144,6 +144,8 @@ internal CohereServiceSettings(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// /// For a text_embedding task, the types of embeddings you want to get back. + /// Use binary for binary embeddings, which are encoded as bytes with signed int8 precision. + /// Use bit for binary embeddings, which are encoded as bytes with signed int8 precision (this is a synonym of binary). /// Use byte for signed int8 embeddings (this is a synonym of int8). /// Use float for the default float embeddings. /// Use int8 for signed int8 embeddings. @@ -236,6 +238,8 @@ public Elastic.Clients.Elasticsearch.Inference.CohereServiceSettingsDescriptor A /// /// /// For a text_embedding task, the types of embeddings you want to get back. + /// Use binary for binary embeddings, which are encoded as bytes with signed int8 precision. + /// Use bit for binary embeddings, which are encoded as bytes with signed int8 precision (this is a synonym of binary). /// Use byte for signed int8 embeddings (this is a synonym of int8). /// Use float for the default float embeddings. /// Use int8 for signed int8 embeddings. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs index 2a68eb2bf8d..c44849da3e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs @@ -19,7 +19,7 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; /// Buckets path can be expressed in different ways, and an aggregation may accept some or all of these
forms depending on its type. Please refer to each aggregation's documentation to know what buckets
path forms they accept.
///
[JsonConverter(typeof(BucketsPathConverter))] -public sealed partial class BucketsPath : IComplexUnion +public sealed class BucketsPath : IComplexUnion { public enum Kind {