From 1fcc8cb6dc0b2b8583656aea7e0f1adf8dd1f264 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 May 2026 02:28:09 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Cohere.JsonConverters.ChatCitationGenerationEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatContentDeltaEvent.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.ChatContentEndEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatContentStartEvent.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.ChatDebugEvent.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.ChatMessageEndEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatMessageStartEvent.g.cs | 5 +++++ ...here.JsonConverters.ChatSearchQueriesGenerationEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatSearchResultsEvent.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.ChatStreamEndEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatStreamStartEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatTextGenerationEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatToolCallDeltaEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatToolCallEndEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatToolCallStartEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatToolCallsChunkEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatToolCallsGenerationEvent.g.cs | 5 +++++ .../Cohere.JsonConverters.ChatToolPlanDeltaEvent.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.CitationEndEvent.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.CitationStartEvent.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.GenerateStreamEnd.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.GenerateStreamError.g.cs | 5 +++++ .../Generated/Cohere.JsonConverters.GenerateStreamText.g.cs | 5 +++++ src/libs/Cohere/Generated/Cohere.JsonConverters.OneOf2.g.cs | 3 +++ 24 files changed, 118 insertions(+) diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatCitationGenerationEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatCitationGenerationEvent.g.cs index 1e30fc21..bc68282f 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatCitationGenerationEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatCitationGenerationEvent.g.cs @@ -76,6 +76,7 @@ public class ChatCitationGenerationEventJsonConverter : global::System.Text.Json { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class ChatCitationGenerationEventJsonConverter : global::System.Text.Json catch (global::System.InvalidOperationException) { } + } + if (stream == null && lg3v2o == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatCitationGenerationEventLg3v2o), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatCitationGenerationEventLg3v2o).Name}"); lg3v2o = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentDeltaEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentDeltaEvent.g.cs index 3030969d..8700340e 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentDeltaEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentDeltaEvent.g.cs @@ -89,6 +89,7 @@ public class ChatContentDeltaEventJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -99,9 +100,13 @@ public class ChatContentDeltaEventJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (streamType == null && event3m0vqs == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatContentDeltaEvent3m0vqs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatContentDeltaEvent3m0vqs).Name}"); event3m0vqs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentEndEvent.g.cs index 9d963f89..fdd186c6 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentEndEvent.g.cs @@ -76,6 +76,7 @@ public class ChatContentEndEventJsonConverter : global::System.Text.Json.Seriali { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class ChatContentEndEventJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (streamType == null && ma278i == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatContentEndEventMa278i), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatContentEndEventMa278i).Name}"); ma278i = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentStartEvent.g.cs index 9f12b834..701e0369 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatContentStartEvent.g.cs @@ -85,6 +85,7 @@ public class ChatContentStartEventJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -95,9 +96,13 @@ public class ChatContentStartEventJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (streamType == null && event6xvlq1 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatContentStartEvent6xvlq1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatContentStartEvent6xvlq1).Name}"); event6xvlq1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatDebugEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatDebugEvent.g.cs index 3324c07f..32658277 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatDebugEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatDebugEvent.g.cs @@ -76,6 +76,7 @@ public class ChatDebugEventJsonConverter : global::System.Text.Json.Serializatio { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class ChatDebugEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (stream == null && event352j0t == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatDebugEvent352j0t), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatDebugEvent352j0t).Name}"); event352j0t = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageEndEvent.g.cs index b4e64864..888fdb74 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageEndEvent.g.cs @@ -87,6 +87,7 @@ public class ChatMessageEndEventJsonConverter : global::System.Text.Json.Seriali { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -97,9 +98,13 @@ public class ChatMessageEndEventJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (streamType == null && u3fzny == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatMessageEndEventU3fzny), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatMessageEndEventU3fzny).Name}"); u3fzny = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageStartEvent.g.cs index 4baf30a7..aa1344a6 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatMessageStartEvent.g.cs @@ -85,6 +85,7 @@ public class ChatMessageStartEventJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -95,9 +96,13 @@ public class ChatMessageStartEventJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (streamType == null && lsegeq == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatMessageStartEventLsegeq), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatMessageStartEventLsegeq).Name}"); lsegeq = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatSearchQueriesGenerationEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatSearchQueriesGenerationEvent.g.cs index 78c95ac0..939e790d 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatSearchQueriesGenerationEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatSearchQueriesGenerationEvent.g.cs @@ -76,6 +76,7 @@ public class ChatSearchQueriesGenerationEventJsonConverter : global::System.Text { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class ChatSearchQueriesGenerationEventJsonConverter : global::System.Text catch (global::System.InvalidOperationException) { } + } + if (stream == null && event6evypd == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatSearchQueriesGenerationEvent6evypd), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatSearchQueriesGenerationEvent6evypd).Name}"); event6evypd = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatSearchResultsEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatSearchResultsEvent.g.cs index cfda468f..f3369a37 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatSearchResultsEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatSearchResultsEvent.g.cs @@ -77,6 +77,7 @@ public class ChatSearchResultsEventJsonConverter : global::System.Text.Json.Seri { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -87,9 +88,13 @@ public class ChatSearchResultsEventJsonConverter : global::System.Text.Json.Seri catch (global::System.InvalidOperationException) { } + } + if (stream == null && event44axt5 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatSearchResultsEvent44axt5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatSearchResultsEvent44axt5).Name}"); event44axt5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatStreamEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatStreamEndEvent.g.cs index 19e25656..b8159a2f 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatStreamEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatStreamEndEvent.g.cs @@ -96,6 +96,7 @@ public class ChatStreamEndEventJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); chatStreamEvent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -106,9 +107,13 @@ public class ChatStreamEndEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (chatStreamEvent == null && y8gq2x == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEndEventY8gq2x), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEndEventY8gq2x).Name}"); y8gq2x = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatStreamStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatStreamStartEvent.g.cs index 7d6d6ab5..7f48fd95 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatStreamStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatStreamStartEvent.g.cs @@ -76,6 +76,7 @@ public class ChatStreamStartEventJsonConverter : global::System.Text.Json.Serial { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); chatStreamEvent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class ChatStreamStartEventJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (chatStreamEvent == null && event5v9jyv == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamStartEvent5v9jyv), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamStartEvent5v9jyv).Name}"); event5v9jyv = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatTextGenerationEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatTextGenerationEvent.g.cs index 3d043487..7365c136 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatTextGenerationEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatTextGenerationEvent.g.cs @@ -76,6 +76,7 @@ public class ChatTextGenerationEventJsonConverter : global::System.Text.Json.Ser { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class ChatTextGenerationEventJsonConverter : global::System.Text.Json.Ser catch (global::System.InvalidOperationException) { } + } + if (stream == null && event8yyj22 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatTextGenerationEvent8yyj22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatTextGenerationEvent8yyj22).Name}"); event8yyj22 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallDeltaEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallDeltaEvent.g.cs index 41276f16..7465f611 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallDeltaEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallDeltaEvent.g.cs @@ -85,6 +85,7 @@ public class ChatToolCallDeltaEventJsonConverter : global::System.Text.Json.Seri { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -95,9 +96,13 @@ public class ChatToolCallDeltaEventJsonConverter : global::System.Text.Json.Seri catch (global::System.InvalidOperationException) { } + } + if (streamType == null && event2bxzoc == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatToolCallDeltaEvent2bxzoc), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatToolCallDeltaEvent2bxzoc).Name}"); event2bxzoc = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallEndEvent.g.cs index a046c7e5..3e42b385 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallEndEvent.g.cs @@ -76,6 +76,7 @@ public class ChatToolCallEndEventJsonConverter : global::System.Text.Json.Serial { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class ChatToolCallEndEventJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (streamType == null && t6ph9s == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatToolCallEndEventT6ph9s), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatToolCallEndEventT6ph9s).Name}"); t6ph9s = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallStartEvent.g.cs index 18b91ead..f416fbf3 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallStartEvent.g.cs @@ -85,6 +85,7 @@ public class ChatToolCallStartEventJsonConverter : global::System.Text.Json.Seri { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -95,9 +96,13 @@ public class ChatToolCallStartEventJsonConverter : global::System.Text.Json.Seri catch (global::System.InvalidOperationException) { } + } + if (streamType == null && lv559x == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatToolCallStartEventLv559x), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatToolCallStartEventLv559x).Name}"); lv559x = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallsChunkEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallsChunkEvent.g.cs index eb48c2ed..c727ee15 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallsChunkEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallsChunkEvent.g.cs @@ -88,6 +88,7 @@ public class ChatToolCallsChunkEventJsonConverter : global::System.Text.Json.Ser { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -98,9 +99,13 @@ public class ChatToolCallsChunkEventJsonConverter : global::System.Text.Json.Ser catch (global::System.InvalidOperationException) { } + } + if (stream == null && t7lliu == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatToolCallsChunkEventT7lliu), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatToolCallsChunkEventT7lliu).Name}"); t7lliu = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallsGenerationEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallsGenerationEvent.g.cs index ab578280..7dabe809 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallsGenerationEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolCallsGenerationEvent.g.cs @@ -77,6 +77,7 @@ public class ChatToolCallsGenerationEventJsonConverter : global::System.Text.Jso { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}"); stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -87,9 +88,13 @@ public class ChatToolCallsGenerationEventJsonConverter : global::System.Text.Jso catch (global::System.InvalidOperationException) { } + } + if (stream == null && nykiww == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatToolCallsGenerationEventNykiww), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatToolCallsGenerationEventNykiww).Name}"); nykiww = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolPlanDeltaEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolPlanDeltaEvent.g.cs index 9c369f6c..faec7e6f 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolPlanDeltaEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.ChatToolPlanDeltaEvent.g.cs @@ -84,6 +84,7 @@ public class ChatToolPlanDeltaEventJsonConverter : global::System.Text.Json.Seri { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -94,9 +95,13 @@ public class ChatToolPlanDeltaEventJsonConverter : global::System.Text.Json.Seri catch (global::System.InvalidOperationException) { } + } + if (streamType == null && event2obfex == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatToolPlanDeltaEvent2obfex), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatToolPlanDeltaEvent2obfex).Name}"); event2obfex = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.CitationEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.CitationEndEvent.g.cs index 0248b734..042ca98c 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.CitationEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.CitationEndEvent.g.cs @@ -76,6 +76,7 @@ public class CitationEndEventJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); chatStreamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -86,9 +87,13 @@ public class CitationEndEventJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (chatStreamType == null && fs3igt == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.CitationEndEventFs3igt), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.CitationEndEventFs3igt).Name}"); fs3igt = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.CitationStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.CitationStartEvent.g.cs index 8a61f6f9..31196a2d 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.CitationStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.CitationStartEvent.g.cs @@ -85,6 +85,7 @@ public class CitationStartEventJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}"); chatStreamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -95,9 +96,13 @@ public class CitationStartEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (chatStreamType == null && t3df62 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.CitationStartEventT3df62), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.CitationStartEventT3df62).Name}"); t3df62 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamEnd.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamEnd.g.cs index 90bb08bc..d31ca9cd 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamEnd.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamEnd.g.cs @@ -88,6 +88,7 @@ public class GenerateStreamEndJsonConverter : global::System.Text.Json.Serializa { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.GenerateStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.GenerateStreamEvent).Name}"); @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -98,9 +99,13 @@ public class GenerateStreamEndJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (@event == null && ubzr0t == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.GenerateStreamEndUbzr0t), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.GenerateStreamEndUbzr0t).Name}"); ubzr0t = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamError.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamError.g.cs index 9babf7bd..09a3af40 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamError.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamError.g.cs @@ -79,6 +79,7 @@ public class GenerateStreamErrorJsonConverter : global::System.Text.Json.Seriali { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.GenerateStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.GenerateStreamEvent).Name}"); @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -89,9 +90,13 @@ public class GenerateStreamErrorJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (@event == null && error49d5xw == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.GenerateStreamError49d5xw), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.GenerateStreamError49d5xw).Name}"); error49d5xw = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamText.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamText.g.cs index 999dd86e..ba54b397 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamText.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.GenerateStreamText.g.cs @@ -78,6 +78,7 @@ public class GenerateStreamTextJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.GenerateStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.GenerateStreamEvent).Name}"); @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -88,9 +89,13 @@ public class GenerateStreamTextJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (@event == null && yai5v6 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.GenerateStreamTextYai5v6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.GenerateStreamTextYai5v6).Name}"); yai5v6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Cohere/Generated/Cohere.JsonConverters.OneOf2.g.cs b/src/libs/Cohere/Generated/Cohere.JsonConverters.OneOf2.g.cs index 10e98129..403b95d8 100644 --- a/src/libs/Cohere/Generated/Cohere.JsonConverters.OneOf2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.JsonConverters.OneOf2.g.cs @@ -107,7 +107,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try {