From 323a7c38d172e01928fb7dca1a18709fec601206 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 4 Oct 2026 11:53:45 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Reducto.AnyOf.5.Json.g.cs | 141 ----- .../Reducto/Generated/Reducto.AnyOf.5.g.cs | 543 ------------------ ....8.Json.g.cs => Reducto.AnyOf.7.Json.g.cs} | 26 +- ...ucto.AnyOf.8.g.cs => Reducto.AnyOf.7.g.cs} | 145 +---- ...o.IReductoClient.ClassifyClassifyPost.g.cs | 2 +- .../Reducto.JsonConverters.AnyOf5.g.cs | 326 ----------- ....cs => Reducto.JsonConverters.AnyOf7.g.cs} | 79 +-- .../Reducto.JsonSerializerContext.g.cs | 33 +- .../Reducto.JsonSerializerContextTypes.g.cs | 318 +++++----- .../Reducto.Models.AsyncJobResponse.g.cs | 6 +- .../Reducto.Models.ClassifyConfig.g.cs | 6 +- .../Reducto.Models.ConfigV3AsyncConfig.g.cs | 6 +- ...ducto.Models.EnhancedAsyncJobResponse.g.cs | 6 +- .../Reducto.Models.PipelineResult.g.cs | 14 +- .../Generated/Reducto.Models.Settings.g.cs | 6 +- ...to.ReductoClient.ClassifyClassifyPost.g.cs | 2 +- 16 files changed, 251 insertions(+), 1408 deletions(-) delete mode 100644 src/libs/Reducto/Generated/Reducto.AnyOf.5.Json.g.cs delete mode 100644 src/libs/Reducto/Generated/Reducto.AnyOf.5.g.cs rename src/libs/Reducto/Generated/{Reducto.AnyOf.8.Json.g.cs => Reducto.AnyOf.7.Json.g.cs} (92%) rename src/libs/Reducto/Generated/{Reducto.AnyOf.8.g.cs => Reducto.AnyOf.7.g.cs} (78%) delete mode 100644 src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf5.g.cs rename src/libs/Reducto/Generated/{Reducto.JsonConverters.AnyOf8.g.cs => Reducto.JsonConverters.AnyOf7.g.cs} (86%) diff --git a/src/libs/Reducto/Generated/Reducto.AnyOf.5.Json.g.cs b/src/libs/Reducto/Generated/Reducto.AnyOf.5.Json.g.cs deleted file mode 100644 index bc0c473..0000000 --- a/src/libs/Reducto/Generated/Reducto.AnyOf.5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Reducto -{ - public readonly partial struct AnyOf - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Reducto.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Reducto.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Reducto.AnyOf? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Reducto.AnyOf), - jsonSerializerContext) as global::Reducto.AnyOf?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Reducto.AnyOf? FromJson( - string json) - { - return FromJson( - json, - global::Reducto.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Reducto.AnyOf? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Reducto.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize>( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Reducto.AnyOf), - jsonSerializerContext).ConfigureAwait(false)) as global::Reducto.AnyOf?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Reducto.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Reducto.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Reducto/Generated/Reducto.AnyOf.5.g.cs b/src/libs/Reducto/Generated/Reducto.AnyOf.5.g.cs deleted file mode 100644 index 2f8079b..0000000 --- a/src/libs/Reducto/Generated/Reducto.AnyOf.5.g.cs +++ /dev/null @@ -1,543 +0,0 @@ - -#nullable enable - -namespace Reducto -{ - /// - /// - /// - public readonly partial struct AnyOf : global::System.IEquatable> - { - /// - /// - /// -#if NET6_0_OR_GREATER - public T1? Value1 { get; init; } -#else - public T1? Value1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] -#endif - public bool IsValue1 => Value1 != null; - - /// - /// - /// - public bool TryPickValue1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T1? value) - { - value = Value1; - return IsValue1; - } - - /// - /// - /// - public T1 PickValue1() => Value1 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; - - /// - /// - /// - public bool TryPickValue2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T2? value) - { - value = Value2; - return IsValue2; - } - - /// - /// - /// - public T2 PickValue2() => Value2 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T3? Value3 { get; init; } -#else - public T3? Value3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] -#endif - public bool IsValue3 => Value3 != null; - - /// - /// - /// - public bool TryPickValue3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T3? value) - { - value = Value3; - return IsValue3; - } - - /// - /// - /// - public T3 PickValue3() => Value3 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T4? Value4 { get; init; } -#else - public T4? Value4 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] -#endif - public bool IsValue4 => Value4 != null; - - /// - /// - /// - public bool TryPickValue4( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T4? value) - { - value = Value4; - return IsValue4; - } - - /// - /// - /// - public T4 PickValue4() => Value4 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T5? Value5 { get; init; } -#else - public T5? Value5 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] -#endif - public bool IsValue5 => Value5 != null; - - /// - /// - /// - public bool TryPickValue5( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T5? value) - { - value = Value5; - return IsValue5; - } - - /// - /// - /// - public T5 PickValue5() => Value5 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); - - /// - /// - /// - public static implicit operator T1?(AnyOf @this) => @this.Value1; - - /// - /// - /// - public AnyOf(T1? value) - { - Value1 = value; - } - - /// - /// - /// - public static AnyOf FromValue1(T1? value) => new AnyOf(value); - - /// - /// - /// - public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); - - /// - /// - /// - public static implicit operator T2?(AnyOf @this) => @this.Value2; - - /// - /// - /// - public AnyOf(T2? value) - { - Value2 = value; - } - - /// - /// - /// - public static AnyOf FromValue2(T2? value) => new AnyOf(value); - - /// - /// - /// - public static implicit operator AnyOf(T3 value) => new AnyOf((T3?)value); - - /// - /// - /// - public static implicit operator T3?(AnyOf @this) => @this.Value3; - - /// - /// - /// - public AnyOf(T3? value) - { - Value3 = value; - } - - /// - /// - /// - public static AnyOf FromValue3(T3? value) => new AnyOf(value); - - /// - /// - /// - public static implicit operator AnyOf(T4 value) => new AnyOf((T4?)value); - - /// - /// - /// - public static implicit operator T4?(AnyOf @this) => @this.Value4; - - /// - /// - /// - public AnyOf(T4? value) - { - Value4 = value; - } - - /// - /// - /// - public static AnyOf FromValue4(T4? value) => new AnyOf(value); - - /// - /// - /// - public static implicit operator AnyOf(T5 value) => new AnyOf((T5?)value); - - /// - /// - /// - public static implicit operator T5?(AnyOf @this) => @this.Value5; - - /// - /// - /// - public AnyOf(T5? value) - { - Value5 = value; - } - - /// - /// - /// - public static AnyOf FromValue5(T5? value) => new AnyOf(value); - - /// - /// - /// - public AnyOf( - T1? value1, - T2? value2, - T3? value3, - T4? value4, - T5? value5 - ) - { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; - } - - /// - /// - /// - public object? Object => - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object - ; - - /// - /// - /// - public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() ?? - Value5?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Value1 is { } __value0 && value1 != null) - { - return value1(__value0); - } - else if (Value2 is { } __value1 && value2 != null) - { - return value2(__value1); - } - else if (Value3 is { } __value2 && value3 != null) - { - return value3(__value2); - } - else if (Value4 is { } __value3 && value4 != null) - { - return value4(__value3); - } - else if (Value5 is { } __value4 && value5 != null) - { - return value5(__value4); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? value1 = null, - - global::System.Action? value2 = null, - - global::System.Action? value3 = null, - - global::System.Action? value4 = null, - - global::System.Action? value5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Value1 is { } __value0) - { - value1?.Invoke(__value0); - } - else if (Value2 is { } __value1) - { - value2?.Invoke(__value1); - } - else if (Value3 is { } __value2) - { - value3?.Invoke(__value2); - } - else if (Value4 is { } __value3) - { - value4?.Invoke(__value3); - } - else if (Value5 is { } __value4) - { - value5?.Invoke(__value4); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Value1 is { } __value0) - { - value1?.Invoke(__value0); - } - else if (Value2 is { } __value1) - { - value2?.Invoke(__value1); - } - else if (Value3 is { } __value2) - { - value3?.Invoke(__value2); - } - else if (Value4 is { } __value3) - { - value4?.Invoke(__value3); - } - else if (Value5 is { } __value4) - { - value5?.Invoke(__value4); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Value1, - typeof(T1), - Value2, - typeof(T2), - Value3, - typeof(T3), - Value4, - typeof(T4), - Value5, - typeof(T5), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(AnyOf other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) - ; - } - - /// - /// - /// - public static bool operator ==(AnyOf obj1, AnyOf obj2) - { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(AnyOf obj1, AnyOf obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is AnyOf o && Equals(o); - } - } -} diff --git a/src/libs/Reducto/Generated/Reducto.AnyOf.8.Json.g.cs b/src/libs/Reducto/Generated/Reducto.AnyOf.7.Json.g.cs similarity index 92% rename from src/libs/Reducto/Generated/Reducto.AnyOf.8.Json.g.cs rename to src/libs/Reducto/Generated/Reducto.AnyOf.7.Json.g.cs index 838abab..461be07 100644 --- a/src/libs/Reducto/Generated/Reducto.AnyOf.8.Json.g.cs +++ b/src/libs/Reducto/Generated/Reducto.AnyOf.7.Json.g.cs @@ -2,7 +2,7 @@ namespace Reducto { - public readonly partial struct AnyOf + public readonly partial struct AnyOf { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Reducto.AnyOf? FromJson( + public static global::Reducto.AnyOf? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Reducto.AnyOf), - jsonSerializerContext) as global::Reducto.AnyOf?; + typeof(global::Reducto.AnyOf), + jsonSerializerContext) as global::Reducto.AnyOf?; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Reducto.AnyOf? FromJson( + public static global::Reducto.AnyOf? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Reducto.AnyOf? FromJson( + public static global::Reducto.AnyOf? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Reducto.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize>( + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Reducto.AnyOf), - jsonSerializerContext).ConfigureAwait(false)) as global::Reducto.AnyOf?; + typeof(global::Reducto.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::Reducto.AnyOf?; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Reducto.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Reducto/Generated/Reducto.AnyOf.8.g.cs b/src/libs/Reducto/Generated/Reducto.AnyOf.7.g.cs similarity index 78% rename from src/libs/Reducto/Generated/Reducto.AnyOf.8.g.cs rename to src/libs/Reducto/Generated/Reducto.AnyOf.7.g.cs index 670c80c..ec4bb56 100644 --- a/src/libs/Reducto/Generated/Reducto.AnyOf.8.g.cs +++ b/src/libs/Reducto/Generated/Reducto.AnyOf.7.g.cs @@ -6,7 +6,7 @@ namespace Reducto /// /// /// - public readonly partial struct AnyOf : global::System.IEquatable> + public readonly partial struct AnyOf : global::System.IEquatable> { /// /// @@ -266,52 +266,15 @@ public bool TryPickValue7( public T7 PickValue7() => Value7 is { } value ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T8? Value8 { get; init; } -#else - public T8? Value8 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value8))] -#endif - public bool IsValue8 => Value8 != null; - - /// - /// - /// - public bool TryPickValue8( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T8? value) - { - value = Value8; - return IsValue8; - } - - /// - /// - /// - public T8 PickValue8() => Value8 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// /// /// - public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); + public static implicit operator AnyOf(T1 value) => new AnyOf((T1?)value); /// /// /// - public static implicit operator T1?(AnyOf @this) => @this.Value1; + public static implicit operator T1?(AnyOf @this) => @this.Value1; /// /// @@ -324,17 +287,17 @@ public AnyOf(T1? value) /// /// /// - public static AnyOf FromValue1(T1? value) => new AnyOf(value); + public static AnyOf FromValue1(T1? value) => new AnyOf(value); /// /// /// - public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); + public static implicit operator AnyOf(T2 value) => new AnyOf((T2?)value); /// /// /// - public static implicit operator T2?(AnyOf @this) => @this.Value2; + public static implicit operator T2?(AnyOf @this) => @this.Value2; /// /// @@ -347,17 +310,17 @@ public AnyOf(T2? value) /// /// /// - public static AnyOf FromValue2(T2? value) => new AnyOf(value); + public static AnyOf FromValue2(T2? value) => new AnyOf(value); /// /// /// - public static implicit operator AnyOf(T3 value) => new AnyOf((T3?)value); + public static implicit operator AnyOf(T3 value) => new AnyOf((T3?)value); /// /// /// - public static implicit operator T3?(AnyOf @this) => @this.Value3; + public static implicit operator T3?(AnyOf @this) => @this.Value3; /// /// @@ -370,17 +333,17 @@ public AnyOf(T3? value) /// /// /// - public static AnyOf FromValue3(T3? value) => new AnyOf(value); + public static AnyOf FromValue3(T3? value) => new AnyOf(value); /// /// /// - public static implicit operator AnyOf(T4 value) => new AnyOf((T4?)value); + public static implicit operator AnyOf(T4 value) => new AnyOf((T4?)value); /// /// /// - public static implicit operator T4?(AnyOf @this) => @this.Value4; + public static implicit operator T4?(AnyOf @this) => @this.Value4; /// /// @@ -393,17 +356,17 @@ public AnyOf(T4? value) /// /// /// - public static AnyOf FromValue4(T4? value) => new AnyOf(value); + public static AnyOf FromValue4(T4? value) => new AnyOf(value); /// /// /// - public static implicit operator AnyOf(T5 value) => new AnyOf((T5?)value); + public static implicit operator AnyOf(T5 value) => new AnyOf((T5?)value); /// /// /// - public static implicit operator T5?(AnyOf @this) => @this.Value5; + public static implicit operator T5?(AnyOf @this) => @this.Value5; /// /// @@ -416,17 +379,17 @@ public AnyOf(T5? value) /// /// /// - public static AnyOf FromValue5(T5? value) => new AnyOf(value); + public static AnyOf FromValue5(T5? value) => new AnyOf(value); /// /// /// - public static implicit operator AnyOf(T6 value) => new AnyOf((T6?)value); + public static implicit operator AnyOf(T6 value) => new AnyOf((T6?)value); /// /// /// - public static implicit operator T6?(AnyOf @this) => @this.Value6; + public static implicit operator T6?(AnyOf @this) => @this.Value6; /// /// @@ -439,17 +402,17 @@ public AnyOf(T6? value) /// /// /// - public static AnyOf FromValue6(T6? value) => new AnyOf(value); + public static AnyOf FromValue6(T6? value) => new AnyOf(value); /// /// /// - public static implicit operator AnyOf(T7 value) => new AnyOf((T7?)value); + public static implicit operator AnyOf(T7 value) => new AnyOf((T7?)value); /// /// /// - public static implicit operator T7?(AnyOf @this) => @this.Value7; + public static implicit operator T7?(AnyOf @this) => @this.Value7; /// /// @@ -462,30 +425,7 @@ public AnyOf(T7? value) /// /// /// - public static AnyOf FromValue7(T7? value) => new AnyOf(value); - - /// - /// - /// - public static implicit operator AnyOf(T8 value) => new AnyOf((T8?)value); - - /// - /// - /// - public static implicit operator T8?(AnyOf @this) => @this.Value8; - - /// - /// - /// - public AnyOf(T8? value) - { - Value8 = value; - } - - /// - /// - /// - public static AnyOf FromValue8(T8? value) => new AnyOf(value); + public static AnyOf FromValue7(T7? value) => new AnyOf(value); /// /// @@ -497,8 +437,7 @@ public AnyOf( T4? value4, T5? value5, T6? value6, - T7? value7, - T8? value8 + T7? value7 ) { Value1 = value1; @@ -508,14 +447,12 @@ public AnyOf( Value5 = value5; Value6 = value6; Value7 = value7; - Value8 = value8; } /// /// /// public object? Object => - Value8 as object ?? Value7 as object ?? Value6 as object ?? Value5 as object ?? @@ -535,8 +472,7 @@ Value1 as object Value4?.ToString() ?? Value5?.ToString() ?? Value6?.ToString() ?? - Value7?.ToString() ?? - Value8?.ToString() + Value7?.ToString() ; /// @@ -544,7 +480,7 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5 || IsValue6 || IsValue7 || IsValue8; + return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5 || IsValue6 || IsValue7; } /// @@ -558,7 +494,6 @@ public bool Validate() global::System.Func? value5 = null, global::System.Func? value6 = null, global::System.Func? value7 = null, - global::System.Func? value8 = null, bool validate = true) { if (validate) @@ -594,10 +529,6 @@ public bool Validate() { return value7(__value6); } - else if (Value8 is { } __value7 && value8 != null) - { - return value8(__value7); - } return default(TResult); } @@ -619,8 +550,6 @@ public void Match( global::System.Action? value6 = null, global::System.Action? value7 = null, - - global::System.Action? value8 = null, bool validate = true) { if (validate) @@ -656,10 +585,6 @@ public void Match( { value7?.Invoke(__value6); } - else if (Value8 is { } __value7) - { - value8?.Invoke(__value7); - } } /// @@ -673,7 +598,6 @@ public void Switch( global::System.Action? value5 = null, global::System.Action? value6 = null, global::System.Action? value7 = null, - global::System.Action? value8 = null, bool validate = true) { if (validate) @@ -709,10 +633,6 @@ public void Switch( { value7?.Invoke(__value6); } - else if (Value8 is { } __value7) - { - value8?.Invoke(__value7); - } } /// @@ -736,8 +656,6 @@ public override int GetHashCode() typeof(T6), Value7, typeof(T7), - Value8, - typeof(T8), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -751,7 +669,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(AnyOf other) + public bool Equals(AnyOf other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && @@ -760,23 +678,22 @@ public bool Equals(AnyOf other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value6, other.Value6) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value7, other.Value7) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value8, other.Value8) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value7, other.Value7) ; } /// /// /// - public static bool operator ==(AnyOf obj1, AnyOf obj2) + public static bool operator ==(AnyOf obj1, AnyOf obj2) { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(AnyOf obj1, AnyOf obj2) + public static bool operator !=(AnyOf obj1, AnyOf obj2) { return !(obj1 == obj2); } @@ -786,7 +703,7 @@ public bool Equals(AnyOf other) /// public override bool Equals(object? obj) { - return obj is AnyOf o && Equals(o); + return obj is AnyOf o && Equals(o); } } } diff --git a/src/libs/Reducto/Generated/Reducto.IReductoClient.ClassifyClassifyPost.g.cs b/src/libs/Reducto/Generated/Reducto.IReductoClient.ClassifyClassifyPost.g.cs index 75f588a..8574090 100644 --- a/src/libs/Reducto/Generated/Reducto.IReductoClient.ClassifyClassifyPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.IReductoClient.ClassifyClassifyPost.g.cs @@ -61,7 +61,7 @@ public partial interface IReductoClient global::Reducto.AnyOf, global::Reducto.UploadResponse> input, bool? persistResults = default, global::System.Collections.Generic.IList? classificationSchema = default, - global::Reducto.AnyOf, global::System.Collections.Generic.IList, object>? pageRange = default, + global::Reducto.AnyOf, global::System.Collections.Generic.IList>? pageRange = default, string? documentMetadata = default, global::Reducto.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf5.g.cs b/src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf5.g.cs deleted file mode 100644 index d51cfec..0000000 --- a/src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf5.g.cs +++ /dev/null @@ -1,326 +0,0 @@ -#nullable enable - -namespace Reducto.JsonConverters -{ - /// - public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> - { - /// - public override global::Reducto.AnyOf Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } - var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } - var __score4 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score4++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - - T1? value1 = default; - T2? value2 = default; - T3? value3 = default; - T4? value4 = default; - T5? value5 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 3) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 4) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::Reducto.AnyOf( - value1, - - value2, - - value3, - - value4, - - value5 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Reducto.AnyOf value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsValue1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); - } - else if (value.IsValue2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); - } - else if (value.IsValue3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); - } - else if (value.IsValue4) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); - } - else if (value.IsValue5) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf8.g.cs b/src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf7.g.cs similarity index 86% rename from src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf8.g.cs rename to src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf7.g.cs index 9f44a12..febb616 100644 --- a/src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf8.g.cs +++ b/src/libs/Reducto/Generated/Reducto.JsonConverters.AnyOf7.g.cs @@ -3,10 +3,10 @@ namespace Reducto.JsonConverters { /// - public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> { /// - public override global::Reducto.AnyOf Read( + public override global::Reducto.AnyOf Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -103,17 +103,6 @@ public class AnyOfJsonConverter : global::System } } } - var __score7 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T8), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score7++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -123,7 +112,6 @@ public class AnyOfJsonConverter : global::System if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } T1? value1 = default; T2? value2 = default; @@ -132,7 +120,6 @@ public class AnyOfJsonConverter : global::System T5? value5 = default; T6? value6 = default; T7? value7 = default; - T8? value8 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -253,26 +240,9 @@ public class AnyOfJsonConverter : global::System { } } - - else if (__bestIndex == 7) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) { try { @@ -289,7 +259,7 @@ public class AnyOfJsonConverter : global::System } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) { try { @@ -306,7 +276,7 @@ public class AnyOfJsonConverter : global::System } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) { try { @@ -323,7 +293,7 @@ public class AnyOfJsonConverter : global::System } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) { try { @@ -340,7 +310,7 @@ public class AnyOfJsonConverter : global::System } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) { try { @@ -357,7 +327,7 @@ public class AnyOfJsonConverter : global::System } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) { try { @@ -374,7 +344,7 @@ public class AnyOfJsonConverter : global::System } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null) + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) { try { @@ -391,24 +361,7 @@ public class AnyOfJsonConverter : global::System } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::Reducto.AnyOf( + var __value = new global::Reducto.AnyOf( value1, value2, @@ -421,9 +374,7 @@ public class AnyOfJsonConverter : global::System value6, - value7, - - value8 + value7 ); return __value; @@ -432,7 +383,7 @@ public class AnyOfJsonConverter : global::System /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Reducto.AnyOf value, + global::Reducto.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); @@ -480,12 +431,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } - else if (value.IsValue8) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); - } } } } \ No newline at end of file diff --git a/src/libs/Reducto/Generated/Reducto.JsonSerializerContext.g.cs b/src/libs/Reducto/Generated/Reducto.JsonSerializerContext.g.cs index f9cecb7..f61d22c 100644 --- a/src/libs/Reducto/Generated/Reducto.JsonSerializerContext.g.cs +++ b/src/libs/Reducto/Generated/Reducto.JsonSerializerContext.g.cs @@ -231,7 +231,7 @@ namespace Reducto typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.UploadResponse>), - typeof(global::Reducto.JsonConverters.AnyOfJsonConverter), + typeof(global::Reducto.JsonConverters.AnyOfJsonConverter), typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.UploadResponse>), @@ -241,13 +241,13 @@ namespace Reducto typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.UploadResponse>), - typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, object>), + typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>), typeof(global::Reducto.JsonConverters.AnyOfJsonConverter), typeof(global::Reducto.JsonConverters.AnyOfJsonConverter), - typeof(global::Reducto.JsonConverters.AnyOfJsonConverter), + typeof(global::Reducto.JsonConverters.AnyOfJsonConverter), typeof(global::Reducto.JsonConverters.AnyOfJsonConverter>), @@ -263,13 +263,13 @@ namespace Reducto typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.UploadResponse>), - typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, object>), + typeof(global::Reducto.JsonConverters.AnyOfJsonConverter>), - typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse, object>), + typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse>), typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>), - typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, object>), + typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>), typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.UploadResponse>), @@ -293,7 +293,7 @@ namespace Reducto typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.UploadResponse>), - typeof(global::Reducto.JsonConverters.AnyOfJsonConverter), + typeof(global::Reducto.JsonConverters.AnyOfJsonConverter), typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.UploadResponse>), @@ -352,7 +352,7 @@ namespace Reducto [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AsyncExtractResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AsyncJobResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AsyncJobResponseStatus), TypeInfoPropertyName = "AsyncJobResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf), TypeInfoPropertyName = "AnyOfParseResponseExtractResponseSplitResponseEditResponsePipelineResponseV3ExtractResponseClassifyResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf), TypeInfoPropertyName = "AnyOfParseResponseExtractResponseSplitResponseEditResponsePipelineResponseV3ExtractResponseClassifyResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ParseResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ExtractResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.SplitResponse))] @@ -394,7 +394,7 @@ namespace Reducto [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ClassificationCategory))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ClassifyConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::System.Collections.Generic.IList, object>), TypeInfoPropertyName = "AnyOfPageRange3IListPageRange3IListInt32Object2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::System.Collections.Generic.IList>), TypeInfoPropertyName = "AnyOfPageRange3IListPageRange3IListInt322")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ClassifyResponseCategory))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ResponseConfidence))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.CriteriaConfidenceConfidence), TypeInfoPropertyName = "CriteriaConfidenceConfidence2")] @@ -470,9 +470,9 @@ namespace Reducto [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.PipelineConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.PipelineResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, object>), TypeInfoPropertyName = "AnyOfParseResponseIListParseResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf>), TypeInfoPropertyName = "AnyOfParseResponseIListParseResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse, object>), TypeInfoPropertyName = "AnyOfIListExtractSplitResponseExtractResponseV3ExtractResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse>), TypeInfoPropertyName = "AnyOfIListExtractSplitResponseExtractResponseV3ExtractResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ProcessingOptionsVersion), TypeInfoPropertyName = "ProcessingOptionsVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ProcessingOptionsPdfOcr), TypeInfoPropertyName = "ProcessingOptionsPdfOcr2")] @@ -497,7 +497,6 @@ namespace Reducto [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.SettingsExtractionMode), TypeInfoPropertyName = "SettingsExtractionMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.SettingsReturnImage), TypeInfoPropertyName = "SettingsReturnImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, object>), TypeInfoPropertyName = "AnyOfPageRange3IListPageRange3IListInt32IListStringObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.SingleJobStatus), TypeInfoPropertyName = "SingleJobStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.SingleJobType), TypeInfoPropertyName = "SingleJobType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.Split))] @@ -538,14 +537,13 @@ namespace Reducto [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.WebhookConfigMode), TypeInfoPropertyName = "WebhookConfigMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.WebhookConfigNewMode), TypeInfoPropertyName = "WebhookConfigNewMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ConfigV2AsyncSplitConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf), TypeInfoPropertyName = "AnyOfSvixWebhookConfigDirectWebhookConfigObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf), TypeInfoPropertyName = "AnyOfSvixWebhookConfigDirectWebhookConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.ConfigV3AsyncSplitConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.OneOf), TypeInfoPropertyName = "OneOfSyncParseConfigAsyncParseConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.OneOf), TypeInfoPropertyName = "OneOfSyncExtractConfigAsyncExtractConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf), TypeInfoPropertyName = "AnyOfParseResponseAsyncParseResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.OneOf), TypeInfoPropertyName = "OneOfV3ExtractResponseAsyncExtractResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf), TypeInfoPropertyName = "AnyOfAsyncJobResponseEnhancedAsyncJobResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf?), TypeInfoPropertyName = "ClassifyResponse_object_2da2e6b49be8df16")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -555,7 +553,7 @@ namespace Reducto [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::System.Collections.Generic.List, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -568,15 +566,14 @@ namespace Reducto [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse, object>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Reducto.AnyOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List, object>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] diff --git a/src/libs/Reducto/Generated/Reducto.JsonSerializerContextTypes.g.cs b/src/libs/Reducto/Generated/Reducto.JsonSerializerContextTypes.g.cs index ba107ac..b3c26ce 100644 --- a/src/libs/Reducto/Generated/Reducto.JsonSerializerContextTypes.g.cs +++ b/src/libs/Reducto/Generated/Reducto.JsonSerializerContextTypes.g.cs @@ -193,583 +193,583 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Reducto.ParseResponse? Type40 { get; set; } + public global::Reducto.AnyOf? Type40 { get; set; } /// /// /// - public global::Reducto.ExtractResponse? Type41 { get; set; } + public global::Reducto.ParseResponse? Type41 { get; set; } /// /// /// - public global::Reducto.SplitResponse? Type42 { get; set; } + public global::Reducto.ExtractResponse? Type42 { get; set; } /// /// /// - public global::Reducto.EditResponse? Type43 { get; set; } + public global::Reducto.SplitResponse? Type43 { get; set; } /// /// /// - public global::Reducto.PipelineResponse? Type44 { get; set; } + public global::Reducto.EditResponse? Type44 { get; set; } /// /// /// - public global::Reducto.V3ExtractResponse? Type45 { get; set; } + public global::Reducto.PipelineResponse? Type45 { get; set; } /// /// /// - public global::Reducto.ClassifyResponse? Type46 { get; set; } + public global::Reducto.V3ExtractResponse? Type46 { get; set; } /// /// /// - public double? Type47 { get; set; } + public global::Reducto.ClassifyResponse? Type47 { get; set; } /// /// /// - public global::Reducto.AsyncParseConfig? Type48 { get; set; } + public double? Type48 { get; set; } /// /// /// - public global::Reducto.Enhance? Type49 { get; set; } + public global::Reducto.AsyncParseConfig? Type49 { get; set; } /// /// /// - public global::Reducto.Retrieval? Type50 { get; set; } + public global::Reducto.Enhance? Type50 { get; set; } /// /// /// - public global::Reducto.Formatting? Type51 { get; set; } + public global::Reducto.Retrieval? Type51 { get; set; } /// /// /// - public global::Reducto.Spreadsheet? Type52 { get; set; } + public global::Reducto.Formatting? Type52 { get; set; } /// /// /// - public global::Reducto.Settings? Type53 { get; set; } + public global::Reducto.Spreadsheet? Type53 { get; set; } /// /// /// - public global::Reducto.QueuePriority? Type54 { get; set; } + public global::Reducto.Settings? Type54 { get; set; } /// /// /// - public global::Reducto.AsyncParseConfigNew? Type55 { get; set; } + public global::Reducto.QueuePriority? Type55 { get; set; } /// /// /// - public global::Reducto.AsyncParseResponse? Type56 { get; set; } + public global::Reducto.AsyncParseConfigNew? Type56 { get; set; } /// /// /// - public global::Reducto.AsyncPipelineConfig? Type57 { get; set; } + public global::Reducto.AsyncParseResponse? Type57 { get; set; } /// /// /// - public global::Reducto.PipelineSettings? Type58 { get; set; } + public global::Reducto.AsyncPipelineConfig? Type58 { get; set; } /// /// /// - public global::Reducto.AsyncPipelineResponse? Type59 { get; set; } + public global::Reducto.PipelineSettings? Type59 { get; set; } /// /// /// - public global::Reducto.AsyncSplitResponse? Type60 { get; set; } + public global::Reducto.AsyncPipelineResponse? Type60 { get; set; } /// /// /// - public global::Reducto.BaseProcessingOptionsOcrMode? Type61 { get; set; } + public global::Reducto.AsyncSplitResponse? Type61 { get; set; } /// /// /// - public global::Reducto.BaseProcessingOptionsExtractionMode? Type62 { get; set; } + public global::Reducto.BaseProcessingOptionsOcrMode? Type62 { get; set; } /// /// /// - public global::Reducto.ChunkingConfig? Type63 { get; set; } + public global::Reducto.BaseProcessingOptionsExtractionMode? Type63 { get; set; } /// /// /// - public global::Reducto.TableSummaryConfig? Type64 { get; set; } + public global::Reducto.ChunkingConfig? Type64 { get; set; } /// /// /// - public global::Reducto.FigureSummaryConfig? Type65 { get; set; } + public global::Reducto.TableSummaryConfig? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::Reducto.FigureSummaryConfig? Type66 { get; set; } /// /// /// - public global::Reducto.BaseProcessingOptionsFilterBlock? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type67 { get; set; } /// /// /// - public global::Reducto.BodyUploadUploadPost? Type68 { get; set; } + public global::Reducto.BaseProcessingOptionsFilterBlock? Type68 { get; set; } /// /// /// - public byte[]? Type69 { get; set; } + public global::Reducto.BodyUploadUploadPost? Type69 { get; set; } /// /// /// - public global::Reducto.BoundingBox? Type70 { get; set; } + public byte[]? Type70 { get; set; } /// /// /// - public global::Reducto.CategoryConfidence? Type71 { get; set; } + public global::Reducto.BoundingBox? Type71 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type72 { get; set; } + public global::Reducto.CategoryConfidence? Type72 { get; set; } /// /// /// - public global::Reducto.CriteriaConfidence? Type73 { get; set; } + public global::System.Collections.Generic.IList? Type73 { get; set; } /// /// /// - public global::Reducto.Chunking? Type74 { get; set; } + public global::Reducto.CriteriaConfidence? Type74 { get; set; } /// /// /// - public global::Reducto.ChunkingChunkMode? Type75 { get; set; } + public global::Reducto.Chunking? Type75 { get; set; } /// /// /// - public global::Reducto.ChunkingConfigChunkMode? Type76 { get; set; } + public global::Reducto.ChunkingChunkMode? Type76 { get; set; } /// /// /// - public global::Reducto.Citations? Type77 { get; set; } + public global::Reducto.ChunkingConfigChunkMode? Type77 { get; set; } /// /// /// - public global::Reducto.ClassificationCategory? Type78 { get; set; } + public global::Reducto.Citations? Type78 { get; set; } /// /// /// - public global::Reducto.ClassifyConfig? Type79 { get; set; } + public global::Reducto.ClassificationCategory? Type79 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type80 { get; set; } + public global::Reducto.ClassifyConfig? Type80 { get; set; } /// /// /// - public global::Reducto.AnyOf, global::System.Collections.Generic.IList, object>? Type81 { get; set; } + public global::System.Collections.Generic.IList? Type81 { get; set; } /// /// /// - public global::Reducto.ClassifyResponseCategory? Type82 { get; set; } + public global::Reducto.AnyOf, global::System.Collections.Generic.IList>? Type82 { get; set; } /// /// /// - public global::Reducto.ResponseConfidence? Type83 { get; set; } + public global::Reducto.ClassifyResponseCategory? Type83 { get; set; } /// /// /// - public global::Reducto.CriteriaConfidenceConfidence? Type84 { get; set; } + public global::Reducto.ResponseConfidence? Type84 { get; set; } /// /// /// - public global::Reducto.CustomerQueueOverrides? Type85 { get; set; } + public global::Reducto.CriteriaConfidenceConfidence? Type85 { get; set; } /// /// /// - public global::Reducto.DeepSplit? Type86 { get; set; } + public global::Reducto.CustomerQueueOverrides? Type86 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type87 { get; set; } + public global::Reducto.DeepSplit? Type87 { get; set; } /// /// /// - public global::Reducto.DeepSplitPageEvidence? Type88 { get; set; } + public global::System.Collections.Generic.IList? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public global::Reducto.DeepSplitPageEvidence? Type89 { get; set; } /// /// /// - public global::Reducto.DeepSplitPartition? Type90 { get; set; } + public global::System.Collections.Generic.IList? Type90 { get; set; } /// /// /// - public global::Reducto.DeepSplitPageEvidenceConfidence? Type91 { get; set; } + public global::Reducto.DeepSplitPartition? Type91 { get; set; } /// /// /// - public global::Reducto.DeepSplitResult? Type92 { get; set; } + public global::Reducto.DeepSplitPageEvidenceConfidence? Type92 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type93 { get; set; } + public global::Reducto.DeepSplitResult? Type93 { get; set; } /// /// /// - public global::Reducto.DirectWebhookConfig? Type94 { get; set; } + public global::System.Collections.Generic.IList? Type94 { get; set; } /// /// /// - public global::Reducto.EditConfig? Type95 { get; set; } + public global::Reducto.DirectWebhookConfig? Type95 { get; set; } /// /// /// - public global::Reducto.EditOptionsLlmProviderPreference? Type96 { get; set; } + public global::Reducto.EditConfig? Type96 { get; set; } /// /// /// - public global::Reducto.ParseUsage? Type97 { get; set; } + public global::Reducto.EditOptionsLlmProviderPreference? Type97 { get; set; } /// /// /// - public global::Reducto.EditWidgetType? Type98 { get; set; } + public global::Reducto.ParseUsage? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type99 { get; set; } + public global::Reducto.EditWidgetType? Type99 { get; set; } /// /// /// - public global::Reducto.AnyOf? Type100 { get; set; } + public global::System.Collections.Generic.IList>? Type100 { get; set; } /// /// /// - public global::Reducto.TableAgentic? Type101 { get; set; } + public global::Reducto.AnyOf? Type101 { get; set; } /// /// /// - public global::Reducto.FigureAgentic? Type102 { get; set; } + public global::Reducto.TableAgentic? Type102 { get; set; } /// /// /// - public global::Reducto.TextAgentic? Type103 { get; set; } + public global::Reducto.FigureAgentic? Type103 { get; set; } /// /// /// - public global::Reducto.EnhancedAsyncJobResponse? Type104 { get; set; } + public global::Reducto.TextAgentic? Type104 { get; set; } /// /// /// - public global::Reducto.EnhancedAsyncJobResponseStatus? Type105 { get; set; } + public global::Reducto.EnhancedAsyncJobResponse? Type105 { get; set; } /// /// /// - public global::Reducto.EnhancedAsyncJobResponseType? Type106 { get; set; } + public global::Reducto.EnhancedAsyncJobResponseStatus? Type106 { get; set; } /// /// /// - public global::System.DateTime? Type107 { get; set; } + public global::Reducto.EnhancedAsyncJobResponseType? Type107 { get; set; } /// /// /// - public global::Reducto.EnrichConfig? Type108 { get; set; } + public global::System.DateTime? Type108 { get; set; } /// /// /// - public global::Reducto.EnrichConfigMode? Type109 { get; set; } + public global::Reducto.EnrichConfig? Type109 { get; set; } /// /// /// - public global::Reducto.ExperimentalProcessingOptionsLayoutModel? Type110 { get; set; } + public global::Reducto.EnrichConfigMode? Type110 { get; set; } /// /// /// - public global::Reducto.ExtractAlpha? Type111 { get; set; } + public global::Reducto.ExperimentalProcessingOptionsLayoutModel? Type111 { get; set; } /// /// /// - public global::Reducto.ExtractCitationsOverrides? Type112 { get; set; } + public global::Reducto.ExtractAlpha? Type112 { get; set; } /// /// /// - public global::Reducto.ExtractConfig? Type113 { get; set; } + public global::Reducto.ExtractCitationsOverrides? Type113 { get; set; } /// /// /// - public global::Reducto.AnyOf>? Type114 { get; set; } + public global::Reducto.ExtractConfig? Type114 { get; set; } /// /// /// - public global::Reducto.ProcessingOptions? Type115 { get; set; } + public global::Reducto.AnyOf>? Type115 { get; set; } /// /// /// - public global::Reducto.ExtractConfigOptions? Type116 { get; set; } + public global::Reducto.ProcessingOptions? Type116 { get; set; } /// /// /// - public global::Reducto.ConfigInternalAsyncConfig? Type117 { get; set; } + public global::Reducto.ExtractConfigOptions? Type117 { get; set; } /// /// /// - public global::Reducto.ExtractConfigNew? Type118 { get; set; } + public global::Reducto.ConfigInternalAsyncConfig? Type118 { get; set; } /// /// /// - public global::Reducto.ExtractConfigOptionsExtractAlgorithm? Type119 { get; set; } + public global::Reducto.ExtractConfigNew? Type119 { get; set; } /// /// /// - public global::Reducto.ExtractUsage? Type120 { get; set; } + public global::Reducto.ExtractConfigOptionsExtractAlgorithm? Type120 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type121 { get; set; } + public global::Reducto.ExtractUsage? Type121 { get; set; } /// /// /// - public global::Reducto.ExtractSplitResponse? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::Reducto.AnyOf? Type123 { get; set; } + public global::Reducto.ExtractSplitResponse? Type123 { get; set; } /// /// /// - public global::Reducto.ExtractUsageExtractMode? Type124 { get; set; } + public global::Reducto.AnyOf? Type124 { get; set; } /// /// /// - public global::Reducto.FormattingTableOutputFormat? Type125 { get; set; } + public global::Reducto.ExtractUsageExtractMode? Type125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type126 { get; set; } + public global::Reducto.FormattingTableOutputFormat? Type126 { get; set; } /// /// /// - public global::Reducto.FormattingIncludeItem? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::Reducto.FullResult? Type128 { get; set; } + public global::Reducto.FormattingIncludeItem? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::Reducto.FullResult? Type129 { get; set; } /// /// /// - public global::Reducto.ParseChunk? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::Reducto.OCRResult? Type131 { get; set; } + public global::Reducto.ParseChunk? Type131 { get; set; } /// /// /// - public global::Reducto.GranularConfidence? Type132 { get; set; } + public global::Reducto.OCRResult? Type132 { get; set; } /// /// /// - public global::Reducto.HTTPValidationError? Type133 { get; set; } + public global::Reducto.GranularConfidence? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::Reducto.HTTPValidationError? Type134 { get; set; } /// /// /// - public global::Reducto.ValidationError? Type135 { get; set; } + public global::System.Collections.Generic.IList? Type135 { get; set; } /// /// /// - public global::Reducto.JobsResponse? Type136 { get; set; } + public global::Reducto.ValidationError? Type136 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type137 { get; set; } + public global::Reducto.JobsResponse? Type137 { get; set; } /// /// /// - public global::Reducto.SingleJob? Type138 { get; set; } + public global::System.Collections.Generic.IList? Type138 { get; set; } /// /// /// - public global::Reducto.KeyValueOverrides? Type139 { get; set; } + public global::Reducto.SingleJob? Type139 { get; set; } /// /// /// - public global::Reducto.LayoutAgentic? Type140 { get; set; } + public global::Reducto.KeyValueOverrides? Type140 { get; set; } /// /// /// - public global::Reducto.OCRLine? Type141 { get; set; } + public global::Reducto.LayoutAgentic? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::Reducto.OCRLine? Type142 { get; set; } /// /// /// - public global::Reducto.OCRWord? Type143 { get; set; } + public global::System.Collections.Generic.IList? Type143 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type144 { get; set; } + public global::Reducto.OCRWord? Type144 { get; set; } /// /// /// - public global::Reducto.ParseAlpha? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::Reducto.ProcessingOverrides? Type146 { get; set; } + public global::Reducto.ParseAlpha? Type146 { get; set; } /// /// /// - public global::Reducto.ParseBlock? Type147 { get; set; } + public global::Reducto.ProcessingOverrides? Type147 { get; set; } /// /// /// - public global::Reducto.ParseBlockType? Type148 { get; set; } + public global::Reducto.ParseBlock? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::Reducto.ParseBlockType? Type149 { get; set; } /// /// /// - public global::Reducto.ParseConfig? Type150 { get; set; } + public global::System.Collections.Generic.IList? Type150 { get; set; } /// /// /// - public global::Reducto.ParseConfigNew? Type151 { get; set; } + public global::Reducto.ParseConfig? Type151 { get; set; } /// /// /// - public global::Reducto.AnyOf? Type152 { get; set; } + public global::Reducto.ParseConfigNew? Type152 { get; set; } /// /// /// - public global::Reducto.UrlResult? Type153 { get; set; } + public global::Reducto.AnyOf? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type154 { get; set; } + public global::Reducto.UrlResult? Type154 { get; set; } /// /// /// - public global::Reducto.PipelineConfig? Type155 { get; set; } + public global::System.Collections.Generic.Dictionary? Type155 { get; set; } /// /// /// - public global::Reducto.PipelineResult? Type156 { get; set; } + public global::Reducto.PipelineConfig? Type156 { get; set; } /// /// /// - public global::Reducto.AnyOf, object>? Type157 { get; set; } + public global::Reducto.PipelineResult? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type158 { get; set; } + public global::Reducto.AnyOf>? Type158 { get; set; } /// /// /// - public global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse, object>? Type159 { get; set; } + public global::System.Collections.Generic.IList? Type159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type160 { get; set; } + public global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse>? Type160 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsVersion? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsPdfOcr? Type162 { get; set; } + public global::Reducto.ProcessingOptionsVersion? Type162 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsOcrSystem? Type163 { get; set; } + public global::Reducto.ProcessingOptionsPdfOcr? Type163 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsOcrMode? Type164 { get; set; } + public global::Reducto.ProcessingOptionsOcrSystem? Type164 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsTableOutputFormat? Type165 { get; set; } + public global::Reducto.ProcessingOptionsOcrMode? Type165 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsChunkMode? Type166 { get; set; } + public global::Reducto.ProcessingOptionsTableOutputFormat? Type166 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsMode? Type167 { get; set; } + public global::Reducto.ProcessingOptionsChunkMode? Type167 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsEnrichMode? Type168 { get; set; } + public global::Reducto.ProcessingOptionsMode? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::Reducto.ProcessingOptionsEnrichMode? Type169 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsIgnoreBlock? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type170 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsCustomFormat? Type171 { get; set; } + public global::Reducto.ProcessingOptionsIgnoreBlock? Type171 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsSpreadsheetTableClustering? Type172 { get; set; } + public global::Reducto.ProcessingOptionsCustomFormat? Type172 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsSpreadsheetLoader? Type173 { get; set; } + public global::Reducto.ProcessingOptionsSpreadsheetTableClustering? Type173 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsLayoutModel? Type174 { get; set; } + public global::Reducto.ProcessingOptionsSpreadsheetLoader? Type174 { get; set; } /// /// /// - public global::Reducto.ProcessingOptionsAgenticTextThinkingLevel? Type175 { get; set; } + public global::Reducto.ProcessingOptionsLayoutModel? Type175 { get; set; } /// /// /// - public global::Reducto.ProcessingOverridesBase? Type176 { get; set; } + public global::Reducto.ProcessingOptionsAgenticTextThinkingLevel? Type176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type177 { get; set; } + public global::Reducto.ProcessingOverridesBase? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::Reducto.RetrievalFilterBlock? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::Reducto.SettingsOcrSystem? Type180 { get; set; } + public global::Reducto.RetrievalFilterBlock? Type180 { get; set; } /// /// /// - public global::Reducto.SettingsExtractionMode? Type181 { get; set; } + public global::Reducto.SettingsOcrSystem? Type181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type182 { get; set; } + public global::Reducto.SettingsExtractionMode? Type182 { get; set; } /// /// /// - public global::Reducto.SettingsReturnImage? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::Reducto.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, object>? Type184 { get; set; } + public global::Reducto.SettingsReturnImage? Type184 { get; set; } /// /// /// @@ -933,7 +933,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Reducto.AnyOf? Type225 { get; set; } + public global::Reducto.AnyOf? Type225 { get; set; } /// /// /// @@ -998,7 +998,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Reducto.AnyOf, global::System.Collections.Generic.List, object>? ListType9 { get; set; } + public global::Reducto.AnyOf, global::System.Collections.Generic.List>? ListType9 { get; set; } /// /// /// @@ -1054,7 +1054,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Reducto.AnyOf, object>? ListType23 { get; set; } + public global::Reducto.AnyOf>? ListType23 { get; set; } /// /// /// @@ -1062,7 +1062,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse, object>? ListType25 { get; set; } + public global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse>? ListType25 { get; set; } /// /// /// @@ -1086,38 +1086,34 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Reducto.AnyOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List, object>? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::Reducto.AnyOf>? ListType37 { get; set; } /// /// /// - public global::Reducto.AnyOf>? ListType38 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType39 { get; set; } + public global::System.Collections.Generic.List>? ListType38 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Reducto/Generated/Reducto.Models.AsyncJobResponse.g.cs b/src/libs/Reducto/Generated/Reducto.Models.AsyncJobResponse.g.cs index 808a8f3..25516be 100644 --- a/src/libs/Reducto/Generated/Reducto.Models.AsyncJobResponse.g.cs +++ b/src/libs/Reducto/Generated/Reducto.Models.AsyncJobResponse.g.cs @@ -20,8 +20,8 @@ public sealed partial class AsyncJobResponse /// /// [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter))] - public global::Reducto.AnyOf? Result { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter))] + public global::Reducto.AnyOf? Result { get; set; } /// /// @@ -53,7 +53,7 @@ public sealed partial class AsyncJobResponse #endif public AsyncJobResponse( global::Reducto.AsyncJobResponseStatus status, - global::Reducto.AnyOf? result, + global::Reducto.AnyOf? result, double? progress, string? reason) { diff --git a/src/libs/Reducto/Generated/Reducto.Models.ClassifyConfig.g.cs b/src/libs/Reducto/Generated/Reducto.Models.ClassifyConfig.g.cs index 193650e..10b8ecd 100644 --- a/src/libs/Reducto/Generated/Reducto.Models.ClassifyConfig.g.cs +++ b/src/libs/Reducto/Generated/Reducto.Models.ClassifyConfig.g.cs @@ -40,8 +40,8 @@ public sealed partial class ClassifyConfig /// The page range to process (1-indexed). By default, the first 5 pages are used. If more than 25 pages are selected, only the first 25 (after sorting) are used. Only applies to PDFs; ignored for other document types. /// [global::System.Text.Json.Serialization.JsonPropertyName("page_range")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, object>))] - public global::Reducto.AnyOf, global::System.Collections.Generic.IList, object>? PageRange { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList>))] + public global::Reducto.AnyOf, global::System.Collections.Generic.IList>? PageRange { get; set; } /// /// Optional document-level metadata to include in classification prompts. @@ -88,7 +88,7 @@ public ClassifyConfig( global::Reducto.AnyOf, global::Reducto.UploadResponse> input, bool? persistResults, global::System.Collections.Generic.IList? classificationSchema, - global::Reducto.AnyOf, global::System.Collections.Generic.IList, object>? pageRange, + global::Reducto.AnyOf, global::System.Collections.Generic.IList>? pageRange, string? documentMetadata) { this.PersistResults = persistResults; diff --git a/src/libs/Reducto/Generated/Reducto.Models.ConfigV3AsyncConfig.g.cs b/src/libs/Reducto/Generated/Reducto.Models.ConfigV3AsyncConfig.g.cs index ad5540e..8ed7925 100644 --- a/src/libs/Reducto/Generated/Reducto.Models.ConfigV3AsyncConfig.g.cs +++ b/src/libs/Reducto/Generated/Reducto.Models.ConfigV3AsyncConfig.g.cs @@ -25,8 +25,8 @@ public sealed partial class ConfigV3AsyncConfig /// The webhook configuration for the asynchronous processing. /// [global::System.Text.Json.Serialization.JsonPropertyName("webhook")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter))] - public global::Reducto.AnyOf? Webhook { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter))] + public global::Reducto.AnyOf? Webhook { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -53,7 +53,7 @@ public sealed partial class ConfigV3AsyncConfig public ConfigV3AsyncConfig( object? metadata, bool? priority, - global::Reducto.AnyOf? webhook) + global::Reducto.AnyOf? webhook) { this.Metadata = metadata; this.Priority = priority; diff --git a/src/libs/Reducto/Generated/Reducto.Models.EnhancedAsyncJobResponse.g.cs b/src/libs/Reducto/Generated/Reducto.Models.EnhancedAsyncJobResponse.g.cs index b22139a..503b1e4 100644 --- a/src/libs/Reducto/Generated/Reducto.Models.EnhancedAsyncJobResponse.g.cs +++ b/src/libs/Reducto/Generated/Reducto.Models.EnhancedAsyncJobResponse.g.cs @@ -20,8 +20,8 @@ public sealed partial class EnhancedAsyncJobResponse /// /// [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter))] - public global::Reducto.AnyOf? Result { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter))] + public global::Reducto.AnyOf? Result { get; set; } /// /// @@ -109,7 +109,7 @@ public sealed partial class EnhancedAsyncJobResponse #endif public EnhancedAsyncJobResponse( global::Reducto.EnhancedAsyncJobResponseStatus status, - global::Reducto.AnyOf? result, + global::Reducto.AnyOf? result, double? progress, string? reason, global::Reducto.EnhancedAsyncJobResponseType? type, diff --git a/src/libs/Reducto/Generated/Reducto.Models.PipelineResult.g.cs b/src/libs/Reducto/Generated/Reducto.Models.PipelineResult.g.cs index 1e13c9b..9b3a725 100644 --- a/src/libs/Reducto/Generated/Reducto.Models.PipelineResult.g.cs +++ b/src/libs/Reducto/Generated/Reducto.Models.PipelineResult.g.cs @@ -12,17 +12,15 @@ public sealed partial class PipelineResult /// /// [global::System.Text.Json.Serialization.JsonPropertyName("parse")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, object>))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Reducto.AnyOf, object> Parse { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter>))] + public global::Reducto.AnyOf>? Parse { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("extract")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse, object>))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse, object> Extract { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse>))] + public global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse>? Extract { get; set; } /// /// @@ -53,8 +51,8 @@ public sealed partial class PipelineResult [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PipelineResult( - global::Reducto.AnyOf, object> parse, - global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse, object> extract, + global::Reducto.AnyOf>? parse, + global::Reducto.AnyOf, global::Reducto.ExtractResponse, global::Reducto.V3ExtractResponse>? extract, global::Reducto.SplitResponse? split, global::Reducto.EditResponse? edit) { diff --git a/src/libs/Reducto/Generated/Reducto.Models.Settings.g.cs b/src/libs/Reducto/Generated/Reducto.Models.Settings.g.cs index ca0b1e6..349a9c2 100644 --- a/src/libs/Reducto/Generated/Reducto.Models.Settings.g.cs +++ b/src/libs/Reducto/Generated/Reducto.Models.Settings.g.cs @@ -75,8 +75,8 @@ public sealed partial class Settings /// The page range to process (1-indexed). By default, the entire document is processed. For spreadsheets, you can also provide a list of sheet names. /// [global::System.Text.Json.Serialization.JsonPropertyName("page_range")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, object>))] - public global::Reducto.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, object>? PageRange { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Reducto.JsonConverters.AnyOfJsonConverter, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>))] + public global::Reducto.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>? PageRange { get; set; } /// /// Password to decrypt password-protected documents. @@ -146,7 +146,7 @@ public Settings( bool? embedPdfMetadata, bool? persistResults, double? timeout, - global::Reducto.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList, object>? pageRange, + global::Reducto.AnyOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>? pageRange, string? documentPassword) { this.OcrSystem = ocrSystem; diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.ClassifyClassifyPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.ClassifyClassifyPost.g.cs index 25db35d..3b351c3 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.ClassifyClassifyPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.ClassifyClassifyPost.g.cs @@ -501,7 +501,7 @@ partial void ProcessClassifyClassifyPostResponseContent( global::Reducto.AnyOf, global::Reducto.UploadResponse> input, bool? persistResults = default, global::System.Collections.Generic.IList? classificationSchema = default, - global::Reducto.AnyOf, global::System.Collections.Generic.IList, object>? pageRange = default, + global::Reducto.AnyOf, global::System.Collections.Generic.IList>? pageRange = default, string? documentMetadata = default, global::Reducto.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default)