From 56ff12021f880fc18754a99267c2c27114b1e191 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 May 2026 03:56:29 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...sonConverters.SpeechToTextStreamServerEvent.g.cs | 9 +++++++++ ...sonConverters.TextToSpeechStreamServerEvent.g.cs | 13 +++++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SpeechToTextStreamServerEvent.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SpeechToTextStreamServerEvent.g.cs index a6d7ac5..19f5604 100644 --- a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SpeechToTextStreamServerEvent.g.cs +++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SpeechToTextStreamServerEvent.g.cs @@ -105,6 +105,7 @@ public class SpeechToTextStreamServerEventJsonConverter : global::System.Text.Js { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Inworld.Realtime.SttTranscription), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Inworld.Realtime.SttTranscription).Name}"); sttTranscription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -115,9 +116,13 @@ public class SpeechToTextStreamServerEventJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (sttTranscription == null && sttUsage == null && sttStarted == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Inworld.Realtime.SttUsage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Inworld.Realtime.SttUsage).Name}"); sttUsage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -128,9 +133,13 @@ public class SpeechToTextStreamServerEventJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (sttTranscription == null && sttUsage == null && sttStarted == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Inworld.Realtime.SttSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Inworld.Realtime.SttSpeechStarted).Name}"); sttStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.TextToSpeechStreamServerEvent.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.TextToSpeechStreamServerEvent.g.cs index 20a709e..62f1eca 100644 --- a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.TextToSpeechStreamServerEvent.g.cs +++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.TextToSpeechStreamServerEvent.g.cs @@ -145,6 +145,7 @@ public class TextToSpeechStreamServerEventJsonConverter : global::System.Text.Js { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Inworld.Realtime.TtsContextCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Inworld.Realtime.TtsContextCreated).Name}"); ttsContextCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -155,9 +156,13 @@ public class TextToSpeechStreamServerEventJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (ttsContextCreated == null && ttsAudioChunk == null && ttsFlushCompleted == null && ttsContextClosed == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Inworld.Realtime.TtsAudioChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Inworld.Realtime.TtsAudioChunk).Name}"); ttsAudioChunk = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -168,9 +173,13 @@ public class TextToSpeechStreamServerEventJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (ttsContextCreated == null && ttsAudioChunk == null && ttsFlushCompleted == null && ttsContextClosed == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Inworld.Realtime.TtsFlushCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Inworld.Realtime.TtsFlushCompleted).Name}"); ttsFlushCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -181,9 +190,13 @@ public class TextToSpeechStreamServerEventJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (ttsContextCreated == null && ttsAudioChunk == null && ttsFlushCompleted == null && ttsContextClosed == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Inworld.Realtime.TtsContextClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Inworld.Realtime.TtsContextClosed).Name}"); ttsContextClosed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);