From 29a552117889c1d897b57e24e3f7645826207224 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 12 Sep 2026 02:39:51 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/V0/Generated/V0.AnyOf.6.Json.g.cs | 141 ++++ src/libs/V0/Generated/V0.AnyOf.6.g.cs | 626 ++++++++++++++++++ .../V0.ChatsClient.ChatsResolveTask.g.cs | 2 +- .../V0.IChatsClient.ChatsResolveTask.g.cs | 2 +- .../Generated/V0.JsonConverters.AnyOf6.g.cs | 381 +++++++++++ ...atsResolveTaskRequestTaskVariant6Type.g.cs | 53 ++ ...veTaskRequestTaskVariant6TypeNullable.g.cs | 60 ++ .../Generated/V0.JsonSerializerContext.g.cs | 12 +- .../V0.JsonSerializerContextTypes.g.cs | 306 ++++----- .../V0.Models.ChatsResolveTaskRequest.g.cs | 6 +- ...tsResolveTaskRequestTaskVariant6.Json.g.cs | 141 ++++ ...s.ChatsResolveTaskRequestTaskVariant6.g.cs | 45 ++ ...atsResolveTaskRequestTaskVariant6Type.g.cs | 45 ++ src/libs/V0/openapi.yaml | 10 + 14 files changed, 1673 insertions(+), 157 deletions(-) create mode 100644 src/libs/V0/Generated/V0.AnyOf.6.Json.g.cs create mode 100644 src/libs/V0/Generated/V0.AnyOf.6.g.cs create mode 100644 src/libs/V0/Generated/V0.JsonConverters.AnyOf6.g.cs create mode 100644 src/libs/V0/Generated/V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6Type.g.cs create mode 100644 src/libs/V0/Generated/V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6TypeNullable.g.cs create mode 100644 src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6.Json.g.cs create mode 100644 src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6.g.cs create mode 100644 src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6Type.g.cs diff --git a/src/libs/V0/Generated/V0.AnyOf.6.Json.g.cs b/src/libs/V0/Generated/V0.AnyOf.6.Json.g.cs new file mode 100644 index 0000000..275661a --- /dev/null +++ b/src/libs/V0/Generated/V0.AnyOf.6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace V0 +{ + 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::V0.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::V0.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::V0.AnyOf? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::V0.AnyOf), + jsonSerializerContext) as global::V0.AnyOf?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::V0.AnyOf? FromJson( + string json) + { + return FromJson( + json, + global::V0.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::V0.AnyOf? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::V0.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::V0.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::V0.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::V0.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::V0.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/V0/Generated/V0.AnyOf.6.g.cs b/src/libs/V0/Generated/V0.AnyOf.6.g.cs new file mode 100644 index 0000000..0cd89a3 --- /dev/null +++ b/src/libs/V0/Generated/V0.AnyOf.6.g.cs @@ -0,0 +1,626 @@ + +#nullable enable + +namespace V0 +{ + /// + /// + /// + 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() => IsValue1 + ? Value1! + : 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() => IsValue2 + ? Value2! + : 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() => IsValue3 + ? Value3! + : 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() => IsValue4 + ? Value4! + : 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() => IsValue5 + ? Value5! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public T6? Value6 { get; init; } +#else + public T6? Value6 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value6))] +#endif + public bool IsValue6 => Value6 != null; + + /// + /// + /// + public bool TryPickValue6( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out T6? value) + { + value = Value6; + return IsValue6; + } + + /// + /// + /// + public T6 PickValue6() => IsValue6 + ? Value6! + : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' 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 static implicit operator AnyOf(T6 value) => new AnyOf((T6?)value); + + /// + /// + /// + public static implicit operator T6?(AnyOf @this) => @this.Value6; + + /// + /// + /// + public AnyOf(T6? value) + { + Value6 = value; + } + + /// + /// + /// + public static AnyOf FromValue6(T6? value) => new AnyOf(value); + + /// + /// + /// + public AnyOf( + T1? value1, + T2? value2, + T3? value3, + T4? value4, + T5? value5, + T6? value6 + ) + { + Value1 = value1; + Value2 = value2; + Value3 = value3; + Value4 = value4; + Value5 = value5; + Value6 = value6; + } + + /// + /// + /// + public object? Object => + Value6 as 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() ?? + Value6?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5 || IsValue6; + } + + /// + /// + /// + 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, + global::System.Func? value6 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + else if (IsValue3 && value3 != null) + { + return value3(Value3!); + } + else if (IsValue4 && value4 != null) + { + return value4(Value4!); + } + else if (IsValue5 && value5 != null) + { + return value5(Value5!); + } + else if (IsValue6 && value6 != null) + { + return value6(Value6!); + } + + 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, + + global::System.Action? value6 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + else if (IsValue4) + { + value4?.Invoke(Value4!); + } + else if (IsValue5) + { + value5?.Invoke(Value5!); + } + else if (IsValue6) + { + value6?.Invoke(Value6!); + } + } + + /// + /// + /// + 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, + global::System.Action? value6 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + else if (IsValue4) + { + value4?.Invoke(Value4!); + } + else if (IsValue5) + { + value5?.Invoke(Value5!); + } + else if (IsValue6) + { + value6?.Invoke(Value6!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(T1), + Value2, + typeof(T2), + Value3, + typeof(T3), + Value4, + typeof(T4), + Value5, + typeof(T5), + Value6, + typeof(T6), + }; + 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) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value6, other.Value6) + ; + } + + /// + /// + /// + 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/V0/Generated/V0.ChatsClient.ChatsResolveTask.g.cs b/src/libs/V0/Generated/V0.ChatsClient.ChatsResolveTask.g.cs index 9219551..6710e8f 100644 --- a/src/libs/V0/Generated/V0.ChatsClient.ChatsResolveTask.g.cs +++ b/src/libs/V0/Generated/V0.ChatsClient.ChatsResolveTask.g.cs @@ -761,7 +761,7 @@ partial void ProcessChatsResolveTaskResponseContent( /// public async global::System.Threading.Tasks.Task ChatsResolveTaskAsync( string chatId, - global::V0.AnyOf task, + global::V0.AnyOf task, global::V0.ChatsResolveTaskRequestResponseMode? responseMode = default, global::V0.ChatsResolveTaskRequestModelConfiguration? modelConfiguration = default, global::V0.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/V0/Generated/V0.IChatsClient.ChatsResolveTask.g.cs b/src/libs/V0/Generated/V0.IChatsClient.ChatsResolveTask.g.cs index 0fe7f2a..253aeb2 100644 --- a/src/libs/V0/Generated/V0.IChatsClient.ChatsResolveTask.g.cs +++ b/src/libs/V0/Generated/V0.IChatsClient.ChatsResolveTask.g.cs @@ -57,7 +57,7 @@ public partial interface IChatsClient /// global::System.Threading.Tasks.Task ChatsResolveTaskAsync( string chatId, - global::V0.AnyOf task, + global::V0.AnyOf task, global::V0.ChatsResolveTaskRequestResponseMode? responseMode = default, global::V0.ChatsResolveTaskRequestModelConfiguration? modelConfiguration = default, global::V0.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/V0/Generated/V0.JsonConverters.AnyOf6.g.cs b/src/libs/V0/Generated/V0.JsonConverters.AnyOf6.g.cs new file mode 100644 index 0000000..ddb97c1 --- /dev/null +++ b/src/libs/V0/Generated/V0.JsonConverters.AnyOf6.g.cs @@ -0,0 +1,381 @@ +#nullable enable + +namespace V0.JsonConverters +{ + /// + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + { + /// + public override global::V0.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 __score5 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(T6), 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)) __score5++; + } + } + } + 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; } + if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + + T1? value1 = default; + T2? value2 = default; + T3? value3 = default; + T4? value4 = default; + T5? value5 = default; + T6? value6 = 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) + { + } + } + + else if (__bestIndex == 5) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + value6 = 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) + { + 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 && value6 == 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 && value6 == 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 && value6 == 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 && value6 == 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) + { + } + } + + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::V0.AnyOf( + value1, + + value2, + + value3, + + value4, + + value5, + + value6 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::V0.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.Value1!, 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.Value2!, 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.Value3!, 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.Value4!, 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.Value5!, typeInfo); + } + else if (value.IsValue6) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/V0/Generated/V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6Type.g.cs b/src/libs/V0/Generated/V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6Type.g.cs new file mode 100644 index 0000000..a51aec9 --- /dev/null +++ b/src/libs/V0/Generated/V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace V0.JsonConverters +{ + /// + public sealed class ChatsResolveTaskRequestTaskVariant6TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::V0.ChatsResolveTaskRequestTaskVariant6Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::V0.ChatsResolveTaskRequestTaskVariant6TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::V0.ChatsResolveTaskRequestTaskVariant6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::V0.ChatsResolveTaskRequestTaskVariant6Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::V0.ChatsResolveTaskRequestTaskVariant6Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::V0.ChatsResolveTaskRequestTaskVariant6TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/V0/Generated/V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6TypeNullable.g.cs b/src/libs/V0/Generated/V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6TypeNullable.g.cs new file mode 100644 index 0000000..677c09e --- /dev/null +++ b/src/libs/V0/Generated/V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace V0.JsonConverters +{ + /// + public sealed class ChatsResolveTaskRequestTaskVariant6TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::V0.ChatsResolveTaskRequestTaskVariant6Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::V0.ChatsResolveTaskRequestTaskVariant6TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::V0.ChatsResolveTaskRequestTaskVariant6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::V0.ChatsResolveTaskRequestTaskVariant6Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::V0.ChatsResolveTaskRequestTaskVariant6Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::V0.ChatsResolveTaskRequestTaskVariant6TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/V0/Generated/V0.JsonSerializerContext.g.cs b/src/libs/V0/Generated/V0.JsonSerializerContext.g.cs index 8c0f229..26ef771 100644 --- a/src/libs/V0/Generated/V0.JsonSerializerContext.g.cs +++ b/src/libs/V0/Generated/V0.JsonSerializerContext.g.cs @@ -261,6 +261,10 @@ namespace V0 typeof(global::V0.JsonConverters.ChatsResolveTaskRequestTaskVariant5TypeNullableJsonConverter), + typeof(global::V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6TypeJsonConverter), + + typeof(global::V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6TypeNullableJsonConverter), + typeof(global::V0.JsonConverters.ChatsResolveTaskRequestResponseModeJsonConverter), typeof(global::V0.JsonConverters.ChatsResolveTaskRequestResponseModeNullableJsonConverter), @@ -403,7 +407,7 @@ namespace V0 typeof(global::V0.JsonConverters.AnyOfJsonConverter), - typeof(global::V0.JsonConverters.AnyOfJsonConverter), + typeof(global::V0.JsonConverters.AnyOfJsonConverter), typeof(global::V0.JsonConverters.AnyOfJsonConverter), @@ -621,7 +625,7 @@ namespace V0 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsUpdateVersionRequestFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsDeleteVersionFilesRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AnyOf), TypeInfoPropertyName = "ChatsResolveTaskRequestTaskVariant5_4cf5592d9a7af8c8")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AnyOf), TypeInfoPropertyName = "ChatsResolveTaskRequestTaskVariant6_7a8be2f0b5581c21")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestTaskVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestTaskVariant1Type), TypeInfoPropertyName = "ChatsResolveTaskRequestTaskVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -640,6 +644,8 @@ namespace V0 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestTaskVariant4PermissionType), TypeInfoPropertyName = "ChatsResolveTaskRequestTaskVariant4PermissionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestTaskVariant5))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestTaskVariant5Type), TypeInfoPropertyName = "ChatsResolveTaskRequestTaskVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestTaskVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestTaskVariant6Type), TypeInfoPropertyName = "ChatsResolveTaskRequestTaskVariant6Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestResponseMode), TypeInfoPropertyName = "ChatsResolveTaskRequestResponseMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestModelConfiguration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.ChatsResolveTaskRequestModelConfigurationModelId), TypeInfoPropertyName = "ChatsResolveTaskRequestModelConfigurationModelId2")] @@ -794,7 +800,7 @@ namespace V0 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AllOf?>?), TypeInfoPropertyName = "ChatsInitRequestVariant5_37d682f35fad2e9d")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AnyOf?), TypeInfoPropertyName = "ChatsInitRequestVariant5_81f724b881d7ba5b")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AnyOf?), TypeInfoPropertyName = "ChatsSendMessageRequestSkillVariant3_7388c3805f550d48")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AnyOf?), TypeInfoPropertyName = "ChatsResolveTaskRequestTaskVariant5_9f2d990b7b0e7875")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AnyOf?), TypeInfoPropertyName = "ChatsResolveTaskRequestTaskVariant6_bc72d93293534fdd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AnyOf?), TypeInfoPropertyName = "McpServersCreateRequestAuthVariant4_8f63dc24968d8440")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::V0.AnyOf?), TypeInfoPropertyName = "McpServersUpdateRequestAuthVariant4_cf08077114de3796")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/V0/Generated/V0.JsonSerializerContextTypes.g.cs b/src/libs/V0/Generated/V0.JsonSerializerContextTypes.g.cs index 0538e77..676b538 100644 --- a/src/libs/V0/Generated/V0.JsonSerializerContextTypes.g.cs +++ b/src/libs/V0/Generated/V0.JsonSerializerContextTypes.g.cs @@ -913,599 +913,607 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::V0.ChatsResolveTaskRequestResponseMode? Type220 { get; set; } + public global::V0.ChatsResolveTaskRequestTaskVariant6? Type220 { get; set; } /// /// /// - public global::V0.ChatsResolveTaskRequestModelConfiguration? Type221 { get; set; } + public global::V0.ChatsResolveTaskRequestTaskVariant6Type? Type221 { get; set; } /// /// /// - public global::V0.ChatsResolveTaskRequestModelConfigurationModelId? Type222 { get; set; } + public global::V0.ChatsResolveTaskRequestResponseMode? Type222 { get; set; } /// /// /// - public global::V0.ChatsResolveTaskRequestModelConfigurationThinkingEffort? Type223 { get; set; } + public global::V0.ChatsResolveTaskRequestModelConfiguration? Type223 { get; set; } /// /// /// - public global::V0.DeploymentsCreateRequest? Type224 { get; set; } + public global::V0.ChatsResolveTaskRequestModelConfigurationModelId? Type224 { get; set; } /// /// /// - public global::V0.HooksCreateRequest? Type225 { get; set; } + public global::V0.ChatsResolveTaskRequestModelConfigurationThinkingEffort? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::V0.DeploymentsCreateRequest? Type226 { get; set; } /// /// /// - public global::V0.HooksCreateRequestEvent? Type227 { get; set; } + public global::V0.HooksCreateRequest? Type227 { get; set; } /// /// /// - public global::V0.HooksUpdateRequest? Type228 { get; set; } + public global::System.Collections.Generic.IList? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::V0.HooksCreateRequestEvent? Type229 { get; set; } /// /// /// - public global::V0.HooksUpdateRequestEvent? Type230 { get; set; } + public global::V0.HooksUpdateRequest? Type230 { get; set; } /// /// /// - public global::V0.IntegrationsVercelProjectsCreateRequest? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::V0.ProjectsCreateRequest? Type232 { get; set; } + public global::V0.HooksUpdateRequestEvent? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::V0.IntegrationsVercelProjectsCreateRequest? Type233 { get; set; } /// /// /// - public global::V0.ProjectsCreateRequestEnvironmentVariable? Type234 { get; set; } + public global::V0.ProjectsCreateRequest? Type234 { get; set; } /// /// /// - public global::V0.ProjectsCreateRequestPrivacy? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::V0.ProjectsUpdateRequest? Type236 { get; set; } + public global::V0.ProjectsCreateRequestEnvironmentVariable? Type236 { get; set; } /// /// /// - public global::V0.ProjectsUpdateRequestPrivacy? Type237 { get; set; } + public global::V0.ProjectsCreateRequestPrivacy? Type237 { get; set; } /// /// /// - public global::V0.ProjectsAssignRequest? Type238 { get; set; } + public global::V0.ProjectsUpdateRequest? Type238 { get; set; } /// /// /// - public global::V0.ProjectsCreateEnvVarsRequest? Type239 { get; set; } + public global::V0.ProjectsUpdateRequestPrivacy? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::V0.ProjectsAssignRequest? Type240 { get; set; } /// /// /// - public global::V0.ProjectsCreateEnvVarsRequestEnvironmentVariable? Type241 { get; set; } + public global::V0.ProjectsCreateEnvVarsRequest? Type241 { get; set; } /// /// /// - public global::V0.ProjectsUpdateEnvVarsRequest? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::V0.ProjectsCreateEnvVarsRequestEnvironmentVariable? Type243 { get; set; } /// /// /// - public global::V0.ProjectsUpdateEnvVarsRequestEnvironmentVariable? Type244 { get; set; } + public global::V0.ProjectsUpdateEnvVarsRequest? Type244 { get; set; } /// /// /// - public global::V0.ProjectsDeleteEnvVarsRequest? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::V0.McpServersCreateRequest? Type246 { get; set; } + public global::V0.ProjectsUpdateEnvVarsRequestEnvironmentVariable? Type246 { get; set; } /// /// /// - public global::V0.McpServersCreateRequestAuthVariant1? Type247 { get; set; } + public global::V0.ProjectsDeleteEnvVarsRequest? Type247 { get; set; } /// /// /// - public global::V0.McpServersCreateRequestAuthVariant2? Type248 { get; set; } + public global::V0.McpServersCreateRequest? Type248 { get; set; } /// /// /// - public global::V0.McpServersCreateRequestAuthVariant3? Type249 { get; set; } + public global::V0.McpServersCreateRequestAuthVariant1? Type249 { get; set; } /// /// /// - public global::V0.McpServersCreateRequestAuthVariant4? Type250 { get; set; } + public global::V0.McpServersCreateRequestAuthVariant2? Type250 { get; set; } /// /// /// - public global::V0.McpServersCreateRequestAuthVariant4Config? Type251 { get; set; } + public global::V0.McpServersCreateRequestAuthVariant3? Type251 { get; set; } /// /// /// - public global::V0.McpServersCreateRequestScope? Type252 { get; set; } + public global::V0.McpServersCreateRequestAuthVariant4? Type252 { get; set; } /// /// /// - public global::V0.McpServersUpdateRequest? Type253 { get; set; } + public global::V0.McpServersCreateRequestAuthVariant4Config? Type253 { get; set; } /// /// /// - public global::V0.McpServersUpdateRequestAuthVariant1? Type254 { get; set; } + public global::V0.McpServersCreateRequestScope? Type254 { get; set; } /// /// /// - public global::V0.McpServersUpdateRequestAuthVariant2? Type255 { get; set; } + public global::V0.McpServersUpdateRequest? Type255 { get; set; } /// /// /// - public global::V0.McpServersUpdateRequestAuthVariant3? Type256 { get; set; } + public global::V0.McpServersUpdateRequestAuthVariant1? Type256 { get; set; } /// /// /// - public global::V0.McpServersUpdateRequestAuthVariant4? Type257 { get; set; } + public global::V0.McpServersUpdateRequestAuthVariant2? Type257 { get; set; } /// /// /// - public global::V0.McpServersUpdateRequestAuthVariant4Config? Type258 { get; set; } + public global::V0.McpServersUpdateRequestAuthVariant3? Type258 { get; set; } /// /// /// - public global::V0.McpServersUpdateRequestScope? Type259 { get; set; } + public global::V0.McpServersUpdateRequestAuthVariant4? Type259 { get; set; } /// /// /// - public global::V0.McpServersCreateOAuthAuthorizationUrlRequest? Type260 { get; set; } + public global::V0.McpServersUpdateRequestAuthVariant4Config? Type260 { get; set; } /// /// /// - public global::V0.ChatsFindIsFavorite? Type261 { get; set; } + public global::V0.McpServersUpdateRequestScope? Type261 { get; set; } /// /// /// - public global::V0.ChatsGetVersionIncludeDefaultFiles? Type262 { get; set; } + public global::V0.McpServersCreateOAuthAuthorizationUrlRequest? Type262 { get; set; } /// /// /// - public global::V0.ChatsDownloadVersionFormat? Type263 { get; set; } + public global::V0.ChatsFindIsFavorite? Type263 { get; set; } /// /// /// - public global::V0.ChatsDownloadVersionIncludeDefaultFiles? Type264 { get; set; } + public global::V0.ChatsGetVersionIncludeDefaultFiles? Type264 { get; set; } /// /// /// - public global::V0.ProjectsDeleteDeleteAllChats? Type265 { get; set; } + public global::V0.ChatsDownloadVersionFormat? Type265 { get; set; } /// /// /// - public global::V0.ProjectsFindEnvVarsDecrypted? Type266 { get; set; } + public global::V0.ChatsDownloadVersionIncludeDefaultFiles? Type266 { get; set; } /// /// /// - public global::V0.ProjectsCreateEnvVarsDecrypted? Type267 { get; set; } + public global::V0.ProjectsDeleteDeleteAllChats? Type267 { get; set; } /// /// /// - public global::V0.ProjectsUpdateEnvVarsDecrypted? Type268 { get; set; } + public global::V0.ProjectsFindEnvVarsDecrypted? Type268 { get; set; } /// /// /// - public global::V0.ProjectsGetEnvVarDecrypted? Type269 { get; set; } + public global::V0.ProjectsCreateEnvVarsDecrypted? Type269 { get; set; } /// /// /// - public int? Type270 { get; set; } + public global::V0.ProjectsUpdateEnvVarsDecrypted? Type270 { get; set; } /// /// /// - public global::V0.ChatsFindResponse? Type271 { get; set; } + public global::V0.ProjectsGetEnvVarDecrypted? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public int? Type272 { get; set; } /// /// /// - public global::V0.ChatsFindResponseDataItem? Type273 { get; set; } + public global::V0.ChatsFindResponse? Type273 { get; set; } /// /// /// - public global::V0.ChatsFindResponseDataItemPrivacy? Type274 { get; set; } + public global::System.Collections.Generic.IList? Type274 { get; set; } /// /// /// - public global::V0.ChatsFindResponseDataItemLatestVersion? Type275 { get; set; } + public global::V0.ChatsFindResponseDataItem? Type275 { get; set; } /// /// /// - public global::V0.ChatsFindResponseDataItemLatestVersionStatus? Type276 { get; set; } + public global::V0.ChatsFindResponseDataItemPrivacy? Type276 { get; set; } /// /// /// - public global::V0.ChatsDeleteResponse? Type277 { get; set; } + public global::V0.ChatsFindResponseDataItemLatestVersion? Type277 { get; set; } /// /// /// - public global::V0.ChatsFavoriteResponse? Type278 { get; set; } + public global::V0.ChatsFindResponseDataItemLatestVersionStatus? Type278 { get; set; } /// /// /// - public global::V0.ChatsFindMessagesResponse? Type279 { get; set; } + public global::V0.ChatsDeleteResponse? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::V0.ChatsFavoriteResponse? Type280 { get; set; } /// /// /// - public global::V0.ChatsFindMessagesResponsePagination? Type281 { get; set; } + public global::V0.ChatsFindMessagesResponse? Type281 { get; set; } /// /// /// - public global::V0.ChatsFindVersionsResponse? Type282 { get; set; } + public global::System.Collections.Generic.IList? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::V0.ChatsFindMessagesResponsePagination? Type283 { get; set; } /// /// /// - public global::V0.ChatsFindVersionsResponsePagination? Type284 { get; set; } + public global::V0.ChatsFindVersionsResponse? Type284 { get; set; } /// /// /// - public global::V0.ChatsFindVersionsResponseMeta? Type285 { get; set; } + public global::System.Collections.Generic.IList? Type285 { get; set; } /// /// /// - public global::V0.ChatsStopResponse? Type286 { get; set; } + public global::V0.ChatsFindVersionsResponsePagination? Type286 { get; set; } /// /// /// - public global::V0.DeploymentsFindResponse? Type287 { get; set; } + public global::V0.ChatsFindVersionsResponseMeta? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::V0.ChatsStopResponse? Type288 { get; set; } /// /// /// - public global::V0.DeploymentsDeleteResponse? Type289 { get; set; } + public global::V0.DeploymentsFindResponse? Type289 { get; set; } /// /// /// - public global::V0.DeploymentsFindLogsResponse? Type290 { get; set; } + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type291 { get; set; } + public global::V0.DeploymentsDeleteResponse? Type291 { get; set; } /// /// /// - public global::V0.DeploymentsFindLogsResponseLog? Type292 { get; set; } + public global::V0.DeploymentsFindLogsResponse? Type292 { get; set; } /// /// /// - public global::V0.DeploymentsFindLogsResponseLogType? Type293 { get; set; } + public global::System.Collections.Generic.IList? Type293 { get; set; } /// /// /// - public global::V0.DeploymentsFindLogsResponseLogLevel? Type294 { get; set; } + public global::V0.DeploymentsFindLogsResponseLog? Type294 { get; set; } /// /// /// - public global::V0.DeploymentsFindErrorsResponse? Type295 { get; set; } + public global::V0.DeploymentsFindLogsResponseLogType? Type295 { get; set; } /// /// /// - public global::V0.HooksFindResponse? Type296 { get; set; } + public global::V0.DeploymentsFindLogsResponseLogLevel? Type296 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type297 { get; set; } + public global::V0.DeploymentsFindErrorsResponse? Type297 { get; set; } /// /// /// - public global::V0.HooksDeleteResponse? Type298 { get; set; } + public global::V0.HooksFindResponse? Type298 { get; set; } /// /// /// - public global::V0.IntegrationsVercelProjectsFindResponse? Type299 { get; set; } + public global::System.Collections.Generic.IList? Type299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type300 { get; set; } + public global::V0.HooksDeleteResponse? Type300 { get; set; } /// /// /// - public global::V0.ProjectsFindResponse? Type301 { get; set; } + public global::V0.IntegrationsVercelProjectsFindResponse? Type301 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type302 { get; set; } + public global::System.Collections.Generic.IList? Type302 { get; set; } /// /// /// - public global::V0.ProjectsDeleteResponse? Type303 { get; set; } + public global::V0.ProjectsFindResponse? Type303 { get; set; } /// /// /// - public global::V0.ProjectsAssignResponse? Type304 { get; set; } + public global::System.Collections.Generic.IList? Type304 { get; set; } /// /// /// - public global::V0.ProjectsFindEnvVarsResponse? Type305 { get; set; } + public global::V0.ProjectsDeleteResponse? Type305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type306 { get; set; } + public global::V0.ProjectsAssignResponse? Type306 { get; set; } /// /// /// - public global::V0.ProjectsCreateEnvVarsResponse? Type307 { get; set; } + public global::V0.ProjectsFindEnvVarsResponse? Type307 { get; set; } /// /// /// - public global::V0.ProjectsUpdateEnvVarsResponse? Type308 { get; set; } + public global::System.Collections.Generic.IList? Type308 { get; set; } /// /// /// - public global::V0.ProjectsDeleteEnvVarsResponse? Type309 { get; set; } + public global::V0.ProjectsCreateEnvVarsResponse? Type309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type310 { get; set; } + public global::V0.ProjectsUpdateEnvVarsResponse? Type310 { get; set; } /// /// /// - public global::V0.ProjectsDeleteEnvVarsResponseDataItem? Type311 { get; set; } + public global::V0.ProjectsDeleteEnvVarsResponse? Type311 { get; set; } /// /// /// - public global::V0.ProjectsGetEnvVarResponse? Type312 { get; set; } + public global::System.Collections.Generic.IList? Type312 { get; set; } /// /// /// - public global::V0.RateLimitsFindResponse? Type313 { get; set; } + public global::V0.ProjectsDeleteEnvVarsResponseDataItem? Type313 { get; set; } /// /// /// - public global::V0.RateLimitsFindResponseDailyLimit? Type314 { get; set; } + public global::V0.ProjectsGetEnvVarResponse? Type314 { get; set; } /// /// /// - public global::V0.AnyOf? Type315 { get; set; } + public global::V0.RateLimitsFindResponse? Type315 { get; set; } /// /// /// - public global::V0.UserGetBillingResponseVariant1? Type316 { get; set; } + public global::V0.RateLimitsFindResponseDailyLimit? Type316 { get; set; } /// /// /// - public global::V0.UserGetBillingResponseVariant1Data? Type317 { get; set; } + public global::V0.AnyOf? Type317 { get; set; } /// /// /// - public global::V0.UserGetBillingResponseVariant1DataBillingCycle? Type318 { get; set; } + public global::V0.UserGetBillingResponseVariant1? Type318 { get; set; } /// /// /// - public global::V0.UserGetBillingResponseVariant1DataBalance? Type319 { get; set; } + public global::V0.UserGetBillingResponseVariant1Data? Type319 { get; set; } /// /// /// - public global::V0.UserGetBillingResponseVariant1DataOnDemand? Type320 { get; set; } + public global::V0.UserGetBillingResponseVariant1DataBillingCycle? Type320 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type321 { get; set; } + public global::V0.UserGetBillingResponseVariant1DataBalance? Type321 { get; set; } /// /// /// - public global::V0.UserGetBillingResponseVariant1DataOnDemandBlock? Type322 { get; set; } + public global::V0.UserGetBillingResponseVariant1DataOnDemand? Type322 { get; set; } /// /// /// - public global::V0.UserGetBillingResponseVariant2? Type323 { get; set; } + public global::System.Collections.Generic.IList? Type323 { get; set; } /// /// /// - public global::V0.UserGetBillingResponseVariant2Data? Type324 { get; set; } + public global::V0.UserGetBillingResponseVariant1DataOnDemandBlock? Type324 { get; set; } /// /// /// - public global::V0.UserGetPlanResponse? Type325 { get; set; } + public global::V0.UserGetBillingResponseVariant2? Type325 { get; set; } /// /// /// - public global::V0.UserGetPlanResponseBillingCycle? Type326 { get; set; } + public global::V0.UserGetBillingResponseVariant2Data? Type326 { get; set; } /// /// /// - public global::V0.UserGetPlanResponseBalance? Type327 { get; set; } + public global::V0.UserGetPlanResponse? Type327 { get; set; } /// /// /// - public global::V0.UserGetScopesResponse? Type328 { get; set; } + public global::V0.UserGetPlanResponseBillingCycle? Type328 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type329 { get; set; } + public global::V0.UserGetPlanResponseBalance? Type329 { get; set; } /// /// /// - public global::V0.ReportsGetUsageResponse? Type330 { get; set; } + public global::V0.UserGetScopesResponse? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::System.Collections.Generic.IList? Type331 { get; set; } /// /// /// - public global::V0.ReportsGetUsageResponseDataItem? Type332 { get; set; } + public global::V0.ReportsGetUsageResponse? Type332 { get; set; } /// /// /// - public global::V0.ReportsGetUsageResponseDataItemType? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::V0.ReportsGetUsageResponseDataItemCostBreakdownStatus? Type334 { get; set; } + public global::V0.ReportsGetUsageResponseDataItem? Type334 { get; set; } /// /// /// - public global::V0.ReportsGetUsageResponsePagination? Type335 { get; set; } + public global::V0.ReportsGetUsageResponseDataItemType? Type335 { get; set; } /// /// /// - public global::V0.ReportsGetUsageResponseMeta? Type336 { get; set; } + public global::V0.ReportsGetUsageResponseDataItemCostBreakdownStatus? Type336 { get; set; } /// /// /// - public global::V0.ReportsGetAIUsageResponse? Type337 { get; set; } + public global::V0.ReportsGetUsageResponsePagination? Type337 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type338 { get; set; } + public global::V0.ReportsGetUsageResponseMeta? Type338 { get; set; } /// /// /// - public global::V0.ReportsGetAIUsageResponseDataItem? Type339 { get; set; } + public global::V0.ReportsGetAIUsageResponse? Type339 { get; set; } /// /// /// - public global::V0.ReportsGetAIUsageResponsePagination? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::V0.ReportsGetAIUsageResponseDateRange? Type341 { get; set; } + public global::V0.ReportsGetAIUsageResponseDataItem? Type341 { get; set; } /// /// /// - public global::V0.ReportsGetUserActivityResponse? Type342 { get; set; } + public global::V0.ReportsGetAIUsageResponsePagination? Type342 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type343 { get; set; } + public global::V0.ReportsGetAIUsageResponseDateRange? Type343 { get; set; } /// /// /// - public global::V0.ReportsGetUserActivityResponseDataItem? Type344 { get; set; } + public global::V0.ReportsGetUserActivityResponse? Type344 { get; set; } /// /// /// - public global::V0.ReportsGetUserActivityResponseDataItemUser? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::V0.ReportsGetUserActivityResponseDataItemUserTeamV0Role? Type346 { get; set; } + public global::V0.ReportsGetUserActivityResponseDataItem? Type346 { get; set; } /// /// /// - public global::V0.ReportsGetUserActivityResponseMeta? Type347 { get; set; } + public global::V0.ReportsGetUserActivityResponseDataItemUser? Type347 { get; set; } /// /// /// - public global::V0.ReportsGetUserActivityResponseMetaDateRange? Type348 { get; set; } + public global::V0.ReportsGetUserActivityResponseDataItemUserTeamV0Role? Type348 { get; set; } /// /// /// - public global::V0.McpServersFindResponse? Type349 { get; set; } + public global::V0.ReportsGetUserActivityResponseMeta? Type349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type350 { get; set; } + public global::V0.ReportsGetUserActivityResponseMetaDateRange? Type350 { get; set; } /// /// /// - public global::V0.McpServersFindResponseDataItem? Type351 { get; set; } + public global::V0.McpServersFindResponse? Type351 { get; set; } /// /// /// - public global::V0.McpServersFindResponseDataItemAuth? Type352 { get; set; } + public global::System.Collections.Generic.IList? Type352 { get; set; } /// /// /// - public global::V0.McpServersFindResponseDataItemAuthType? Type353 { get; set; } + public global::V0.McpServersFindResponseDataItem? Type353 { get; set; } /// /// /// - public global::V0.McpServersFindResponseDataItemScope? Type354 { get; set; } + public global::V0.McpServersFindResponseDataItemAuth? Type354 { get; set; } /// /// /// - public global::V0.McpServersCreateResponse? Type355 { get; set; } + public global::V0.McpServersFindResponseDataItemAuthType? Type355 { get; set; } /// /// /// - public global::V0.McpServersCreateResponseAuth? Type356 { get; set; } + public global::V0.McpServersFindResponseDataItemScope? Type356 { get; set; } /// /// /// - public global::V0.McpServersCreateResponseAuthType? Type357 { get; set; } + public global::V0.McpServersCreateResponse? Type357 { get; set; } /// /// /// - public global::V0.McpServersCreateResponseScope? Type358 { get; set; } + public global::V0.McpServersCreateResponseAuth? Type358 { get; set; } /// /// /// - public global::V0.McpServersGetByIdResponse? Type359 { get; set; } + public global::V0.McpServersCreateResponseAuthType? Type359 { get; set; } /// /// /// - public global::V0.McpServersGetByIdResponseAuth? Type360 { get; set; } + public global::V0.McpServersCreateResponseScope? Type360 { get; set; } /// /// /// - public global::V0.McpServersGetByIdResponseAuthType? Type361 { get; set; } + public global::V0.McpServersGetByIdResponse? Type361 { get; set; } /// /// /// - public global::V0.McpServersGetByIdResponseScope? Type362 { get; set; } + public global::V0.McpServersGetByIdResponseAuth? Type362 { get; set; } /// /// /// - public global::V0.McpServersUpdateResponse? Type363 { get; set; } + public global::V0.McpServersGetByIdResponseAuthType? Type363 { get; set; } /// /// /// - public global::V0.McpServersUpdateResponseAuth? Type364 { get; set; } + public global::V0.McpServersGetByIdResponseScope? Type364 { get; set; } /// /// /// - public global::V0.McpServersUpdateResponseAuthType? Type365 { get; set; } + public global::V0.McpServersUpdateResponse? Type365 { get; set; } /// /// /// - public global::V0.McpServersUpdateResponseScope? Type366 { get; set; } + public global::V0.McpServersUpdateResponseAuth? Type366 { get; set; } /// /// /// - public global::V0.McpServersDeleteResponse? Type367 { get; set; } + public global::V0.McpServersUpdateResponseAuthType? Type367 { get; set; } /// /// /// - public global::V0.McpServersCreateOAuthAuthorizationUrlResponse? Type368 { get; set; } + public global::V0.McpServersUpdateResponseScope? Type368 { get; set; } + /// + /// + /// + public global::V0.McpServersDeleteResponse? Type369 { get; set; } + /// + /// + /// + public global::V0.McpServersCreateOAuthAuthorizationUrlResponse? Type370 { get; set; } /// /// diff --git a/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequest.g.cs b/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequest.g.cs index 92a2e14..0d8c266 100644 --- a/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequest.g.cs +++ b/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequest.g.cs @@ -12,9 +12,9 @@ public sealed partial class ChatsResolveTaskRequest /// The task resolution data. Use this when the chat is waiting for user input on the matching task type. /// [global::System.Text.Json.Serialization.JsonPropertyName("task")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::V0.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::V0.JsonConverters.AnyOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::V0.AnyOf Task { get; set; } + public required global::V0.AnyOf Task { get; set; } /// /// Controls how the response is delivered.
@@ -59,7 +59,7 @@ public sealed partial class ChatsResolveTaskRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatsResolveTaskRequest( - global::V0.AnyOf task, + global::V0.AnyOf task, global::V0.ChatsResolveTaskRequestResponseMode? responseMode, global::V0.ChatsResolveTaskRequestModelConfiguration? modelConfiguration) { diff --git a/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6.Json.g.cs b/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6.Json.g.cs new file mode 100644 index 0000000..7929336 --- /dev/null +++ b/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace V0 +{ + public sealed partial class ChatsResolveTaskRequestTaskVariant6 + { + /// + /// 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::V0.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::V0.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::V0.ChatsResolveTaskRequestTaskVariant6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::V0.ChatsResolveTaskRequestTaskVariant6), + jsonSerializerContext) as global::V0.ChatsResolveTaskRequestTaskVariant6; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::V0.ChatsResolveTaskRequestTaskVariant6? FromJson( + string json) + { + return FromJson( + json, + global::V0.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::V0.ChatsResolveTaskRequestTaskVariant6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::V0.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::V0.ChatsResolveTaskRequestTaskVariant6), + jsonSerializerContext).ConfigureAwait(false)) as global::V0.ChatsResolveTaskRequestTaskVariant6; + } + + /// + /// 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::V0.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::V0.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6.g.cs b/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6.g.cs new file mode 100644 index 0000000..8dca856 --- /dev/null +++ b/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace V0 +{ + /// + /// Resolves a Vercel Connect authorization task (a `configure_vercel_connect` agent action with `status: "authorization-required"`). Sign in at the action's `authorizationUrl`, poll GET /chats/{chatId}/connect/status until `ready`, then send this task. Returns 409 while authorization is pending or after it failed, 404 if it has not started or expired. + /// + public sealed partial class ChatsResolveTaskRequestTaskVariant6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::V0.JsonConverters.ChatsResolveTaskRequestTaskVariant6TypeJsonConverter))] + public global::V0.ChatsResolveTaskRequestTaskVariant6Type Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatsResolveTaskRequestTaskVariant6( + global::V0.ChatsResolveTaskRequestTaskVariant6Type type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatsResolveTaskRequestTaskVariant6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6Type.g.cs b/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6Type.g.cs new file mode 100644 index 0000000..994037d --- /dev/null +++ b/src/libs/V0/Generated/V0.Models.ChatsResolveTaskRequestTaskVariant6Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace V0 +{ + /// + /// + /// + public enum ChatsResolveTaskRequestTaskVariant6Type + { + /// + /// + /// + VercelConnectAuthorization, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatsResolveTaskRequestTaskVariant6TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatsResolveTaskRequestTaskVariant6Type value) + { + return value switch + { + ChatsResolveTaskRequestTaskVariant6Type.VercelConnectAuthorization => "vercel-connect-authorization", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatsResolveTaskRequestTaskVariant6Type? ToEnum(string value) + { + return value switch + { + "vercel-connect-authorization" => ChatsResolveTaskRequestTaskVariant6Type.VercelConnectAuthorization, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/V0/openapi.yaml b/src/libs/V0/openapi.yaml index eb3c068..a34288b 100644 --- a/src/libs/V0/openapi.yaml +++ b/src/libs/V0/openapi.yaml @@ -2547,6 +2547,16 @@ paths: - type additionalProperties: false description: 'Resolves a Vercel Connect setup task. The agent asked the user to complete connector setup in a browser (a `configure_vercel_connect` agent action with `status: "setup-required"`). Complete setup at the action’s `setupUrl`, poll GET /chats/{chatId}/connect/status until it returns `ready`, then send this task. The server verifies the setup result and attaches the connector; no connector ID is needed. Returns 409 if setup is still pending or failed, or 404 if setup has not started or the request expired.' + - type: object + properties: + type: + type: string + enum: + - vercel-connect-authorization + required: + - type + additionalProperties: false + description: "Resolves a Vercel Connect authorization task (a `configure_vercel_connect` agent action with `status: \"authorization-required\"`). Sign in at the action's `authorizationUrl`, poll GET /chats/{chatId}/connect/status until `ready`, then send this task. Returns 409 while authorization is pending or after it failed, 404 if it has not started or expired." description: The task resolution data. Use this when the chat is waiting for user input on the matching task type. responseMode: default: sync