From be67d3b469c2021820550d2945fe6302e84418ab Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 04:54:34 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Inworld.AutoSDKHttpResponse.g.cs | 4 +- .../Inworld.ModelsClient.ListModels.g.cs | 10 +-- ...verters.SpeechToTextStreamServerEvent.g.cs | 6 +- ...verters.TextToSpeechStreamServerEvent.g.cs | 8 +-- ....Models.SpeechToTextStreamServerEvent.g.cs | 48 +++++++------- ....Models.TextToSpeechStreamServerEvent.g.cs | 64 +++++++++---------- ...ld.SpeechToTextClient.TranscribeAudio.g.cs | 10 +-- ...d.TextToSpeechClient.SynthesizeSpeech.g.cs | 10 +-- .../Inworld.VoicesClient.CloneVoice.g.cs | 10 +-- .../Inworld.VoicesClient.DeleteVoice.g.cs | 12 ++-- .../Inworld.VoicesClient.DesignVoice.g.cs | 10 +-- .../Inworld.VoicesClient.GetVoice.g.cs | 12 ++-- .../Inworld.VoicesClient.ListVoices.g.cs | 10 +-- .../Inworld.VoicesClient.PublishVoice.g.cs | 12 ++-- .../Inworld.VoicesClient.UpdateVoice.g.cs | 12 ++-- 15 files changed, 119 insertions(+), 119 deletions(-) diff --git a/src/libs/Inworld/Generated/Inworld.AutoSDKHttpResponse.g.cs b/src/libs/Inworld/Generated/Inworld.AutoSDKHttpResponse.g.cs index d6263c7..9dc1a4e 100644 --- a/src/libs/Inworld/Generated/Inworld.AutoSDKHttpResponse.g.cs +++ b/src/libs/Inworld/Generated/Inworld.AutoSDKHttpResponse.g.cs @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests { send = send ?? throw new global::System.ArgumentNullException(nameof(send)); requestOptions = CloneRequestOptions(requestOptions); - if (!string.IsNullOrWhiteSpace(entityTag)) + if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag)) { - requestOptions.Headers["If-None-Match"] = entityTag!; + requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag; } try diff --git a/src/libs/Inworld/Generated/Inworld.ModelsClient.ListModels.g.cs b/src/libs/Inworld/Generated/Inworld.ModelsClient.ListModels.g.cs index 3e88b2e..c22b22e 100644 --- a/src/libs/Inworld/Generated/Inworld.ModelsClient.ListModels.g.cs +++ b/src/libs/Inworld/Generated/Inworld.ModelsClient.ListModels.g.cs @@ -162,7 +162,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/llm/v1alpha/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -196,7 +196,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/llm/v1alpha/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -237,7 +237,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/llm/v1alpha/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/llm/v1alpha/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/llm/v1alpha/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 19f5604..cb80602 100644 --- a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SpeechToTextStreamServerEvent.g.cs +++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SpeechToTextStreamServerEvent.g.cs @@ -176,19 +176,19 @@ public override void Write( { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SttTranscription!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSttTranscription(), typeInfo); } else if (value.IsSttUsage) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SttUsage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSttUsage(), typeInfo); } else if (value.IsSttStarted) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SttStarted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSttStarted(), 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 62f1eca..2122483 100644 --- a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.TextToSpeechStreamServerEvent.g.cs +++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.TextToSpeechStreamServerEvent.g.cs @@ -235,25 +235,25 @@ public override void Write( { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TtsContextCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTtsContextCreated(), typeInfo); } else if (value.IsTtsAudioChunk) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TtsAudioChunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTtsAudioChunk(), typeInfo); } else if (value.IsTtsFlushCompleted) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TtsFlushCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTtsFlushCompleted(), typeInfo); } else if (value.IsTtsContextClosed) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TtsContextClosed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTtsContextClosed(), typeInfo); } } } diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.Models.SpeechToTextStreamServerEvent.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.Models.SpeechToTextStreamServerEvent.g.cs index 7c8e12e..c9b35b0 100644 --- a/src/libs/Inworld/Generated/Inworld.Realtime.Models.SpeechToTextStreamServerEvent.g.cs +++ b/src/libs/Inworld/Generated/Inworld.Realtime.Models.SpeechToTextStreamServerEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickSttTranscription( /// /// /// - public global::Inworld.Realtime.SttTranscription PickSttTranscription() => IsSttTranscription - ? SttTranscription! + public global::Inworld.Realtime.SttTranscription PickSttTranscription() => SttTranscription is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SttTranscription' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickSttUsage( /// /// /// - public global::Inworld.Realtime.SttUsage PickSttUsage() => IsSttUsage - ? SttUsage! + public global::Inworld.Realtime.SttUsage PickSttUsage() => SttUsage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SttUsage' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickSttStarted( /// /// /// - public global::Inworld.Realtime.SttSpeechStarted PickSttStarted() => IsSttStarted - ? SttStarted! + public global::Inworld.Realtime.SttSpeechStarted PickSttStarted() => SttStarted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SttStarted' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsSttTranscription && sttTranscription != null) + if (SttTranscription is { } __value0 && sttTranscription != null) { - return sttTranscription(SttTranscription!); + return sttTranscription(__value0); } - else if (IsSttUsage && sttUsage != null) + else if (SttUsage is { } __value1 && sttUsage != null) { - return sttUsage(SttUsage!); + return sttUsage(__value1); } - else if (IsSttStarted && sttStarted != null) + else if (SttStarted is { } __value2 && sttStarted != null) { - return sttStarted(SttStarted!); + return sttStarted(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsSttTranscription) + if (SttTranscription is { } __value0) { - sttTranscription?.Invoke(SttTranscription!); + sttTranscription?.Invoke(__value0); } - else if (IsSttUsage) + else if (SttUsage is { } __value1) { - sttUsage?.Invoke(SttUsage!); + sttUsage?.Invoke(__value1); } - else if (IsSttStarted) + else if (SttStarted is { } __value2) { - sttStarted?.Invoke(SttStarted!); + sttStarted?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsSttTranscription) + if (SttTranscription is { } __value0) { - sttTranscription?.Invoke(SttTranscription!); + sttTranscription?.Invoke(__value0); } - else if (IsSttUsage) + else if (SttUsage is { } __value1) { - sttUsage?.Invoke(SttUsage!); + sttUsage?.Invoke(__value1); } - else if (IsSttStarted) + else if (SttStarted is { } __value2) { - sttStarted?.Invoke(SttStarted!); + sttStarted?.Invoke(__value2); } } diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.Models.TextToSpeechStreamServerEvent.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.Models.TextToSpeechStreamServerEvent.g.cs index 1571a39..ad67565 100644 --- a/src/libs/Inworld/Generated/Inworld.Realtime.Models.TextToSpeechStreamServerEvent.g.cs +++ b/src/libs/Inworld/Generated/Inworld.Realtime.Models.TextToSpeechStreamServerEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickTtsContextCreated( /// /// /// - public global::Inworld.Realtime.TtsContextCreated PickTtsContextCreated() => IsTtsContextCreated - ? TtsContextCreated! + public global::Inworld.Realtime.TtsContextCreated PickTtsContextCreated() => TtsContextCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TtsContextCreated' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickTtsAudioChunk( /// /// /// - public global::Inworld.Realtime.TtsAudioChunk PickTtsAudioChunk() => IsTtsAudioChunk - ? TtsAudioChunk! + public global::Inworld.Realtime.TtsAudioChunk PickTtsAudioChunk() => TtsAudioChunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TtsAudioChunk' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickTtsFlushCompleted( /// /// /// - public global::Inworld.Realtime.TtsFlushCompleted PickTtsFlushCompleted() => IsTtsFlushCompleted - ? TtsFlushCompleted! + public global::Inworld.Realtime.TtsFlushCompleted PickTtsFlushCompleted() => TtsFlushCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TtsFlushCompleted' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickTtsContextClosed( /// /// /// - public global::Inworld.Realtime.TtsContextClosed PickTtsContextClosed() => IsTtsContextClosed - ? TtsContextClosed! + public global::Inworld.Realtime.TtsContextClosed PickTtsContextClosed() => TtsContextClosed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TtsContextClosed' but the value was {ToString()}."); /// /// @@ -307,21 +307,21 @@ public bool Validate() Validate(); } - if (IsTtsContextCreated && ttsContextCreated != null) + if (TtsContextCreated is { } __value0 && ttsContextCreated != null) { - return ttsContextCreated(TtsContextCreated!); + return ttsContextCreated(__value0); } - else if (IsTtsAudioChunk && ttsAudioChunk != null) + else if (TtsAudioChunk is { } __value1 && ttsAudioChunk != null) { - return ttsAudioChunk(TtsAudioChunk!); + return ttsAudioChunk(__value1); } - else if (IsTtsFlushCompleted && ttsFlushCompleted != null) + else if (TtsFlushCompleted is { } __value2 && ttsFlushCompleted != null) { - return ttsFlushCompleted(TtsFlushCompleted!); + return ttsFlushCompleted(__value2); } - else if (IsTtsContextClosed && ttsContextClosed != null) + else if (TtsContextClosed is { } __value3 && ttsContextClosed != null) { - return ttsContextClosed(TtsContextClosed!); + return ttsContextClosed(__value3); } return default(TResult); @@ -345,21 +345,21 @@ public void Match( Validate(); } - if (IsTtsContextCreated) + if (TtsContextCreated is { } __value0) { - ttsContextCreated?.Invoke(TtsContextCreated!); + ttsContextCreated?.Invoke(__value0); } - else if (IsTtsAudioChunk) + else if (TtsAudioChunk is { } __value1) { - ttsAudioChunk?.Invoke(TtsAudioChunk!); + ttsAudioChunk?.Invoke(__value1); } - else if (IsTtsFlushCompleted) + else if (TtsFlushCompleted is { } __value2) { - ttsFlushCompleted?.Invoke(TtsFlushCompleted!); + ttsFlushCompleted?.Invoke(__value2); } - else if (IsTtsContextClosed) + else if (TtsContextClosed is { } __value3) { - ttsContextClosed?.Invoke(TtsContextClosed!); + ttsContextClosed?.Invoke(__value3); } } @@ -378,21 +378,21 @@ public void Switch( Validate(); } - if (IsTtsContextCreated) + if (TtsContextCreated is { } __value0) { - ttsContextCreated?.Invoke(TtsContextCreated!); + ttsContextCreated?.Invoke(__value0); } - else if (IsTtsAudioChunk) + else if (TtsAudioChunk is { } __value1) { - ttsAudioChunk?.Invoke(TtsAudioChunk!); + ttsAudioChunk?.Invoke(__value1); } - else if (IsTtsFlushCompleted) + else if (TtsFlushCompleted is { } __value2) { - ttsFlushCompleted?.Invoke(TtsFlushCompleted!); + ttsFlushCompleted?.Invoke(__value2); } - else if (IsTtsContextClosed) + else if (TtsContextClosed is { } __value3) { - ttsContextClosed?.Invoke(TtsContextClosed!); + ttsContextClosed?.Invoke(__value3); } } diff --git a/src/libs/Inworld/Generated/Inworld.SpeechToTextClient.TranscribeAudio.g.cs b/src/libs/Inworld/Generated/Inworld.SpeechToTextClient.TranscribeAudio.g.cs index 6e072e2..e7a89ca 100644 --- a/src/libs/Inworld/Generated/Inworld.SpeechToTextClient.TranscribeAudio.g.cs +++ b/src/libs/Inworld/Generated/Inworld.SpeechToTextClient.TranscribeAudio.g.cs @@ -180,7 +180,7 @@ partial void ProcessTranscribeAudioResponseContent( pathTemplate: "\"/stt/v1/transcribe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessTranscribeAudioResponseContent( pathTemplate: "\"/stt/v1/transcribe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessTranscribeAudioResponseContent( pathTemplate: "\"/stt/v1/transcribe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessTranscribeAudioResponseContent( pathTemplate: "\"/stt/v1/transcribe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessTranscribeAudioResponseContent( pathTemplate: "\"/stt/v1/transcribe\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Inworld/Generated/Inworld.TextToSpeechClient.SynthesizeSpeech.g.cs b/src/libs/Inworld/Generated/Inworld.TextToSpeechClient.SynthesizeSpeech.g.cs index 25603d4..9de76ac 100644 --- a/src/libs/Inworld/Generated/Inworld.TextToSpeechClient.SynthesizeSpeech.g.cs +++ b/src/libs/Inworld/Generated/Inworld.TextToSpeechClient.SynthesizeSpeech.g.cs @@ -184,7 +184,7 @@ partial void ProcessSynthesizeSpeechResponseContent( pathTemplate: "\"/tts/v1/voice\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessSynthesizeSpeechResponseContent( pathTemplate: "\"/tts/v1/voice\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessSynthesizeSpeechResponseContent( pathTemplate: "\"/tts/v1/voice\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessSynthesizeSpeechResponseContent( pathTemplate: "\"/tts/v1/voice\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessSynthesizeSpeechResponseContent( pathTemplate: "\"/tts/v1/voice\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Inworld/Generated/Inworld.VoicesClient.CloneVoice.g.cs b/src/libs/Inworld/Generated/Inworld.VoicesClient.CloneVoice.g.cs index a795cc1..8a847d7 100644 --- a/src/libs/Inworld/Generated/Inworld.VoicesClient.CloneVoice.g.cs +++ b/src/libs/Inworld/Generated/Inworld.VoicesClient.CloneVoice.g.cs @@ -182,7 +182,7 @@ partial void ProcessCloneVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:clone\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCloneVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:clone\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCloneVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:clone\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCloneVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:clone\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCloneVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:clone\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Inworld/Generated/Inworld.VoicesClient.DeleteVoice.g.cs b/src/libs/Inworld/Generated/Inworld.VoicesClient.DeleteVoice.g.cs index de95335..ad6ccec 100644 --- a/src/libs/Inworld/Generated/Inworld.VoicesClient.DeleteVoice.g.cs +++ b/src/libs/Inworld/Generated/Inworld.VoicesClient.DeleteVoice.g.cs @@ -145,7 +145,7 @@ partial void ProcessDeleteVoiceResponseContent( PrepareDeleteVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceId: voiceId!); + voiceId: voiceId); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessDeleteVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Inworld/Generated/Inworld.VoicesClient.DesignVoice.g.cs b/src/libs/Inworld/Generated/Inworld.VoicesClient.DesignVoice.g.cs index 8fb2993..9d53b47 100644 --- a/src/libs/Inworld/Generated/Inworld.VoicesClient.DesignVoice.g.cs +++ b/src/libs/Inworld/Generated/Inworld.VoicesClient.DesignVoice.g.cs @@ -182,7 +182,7 @@ partial void ProcessDesignVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:design\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessDesignVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:design\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessDesignVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:design\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessDesignVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:design\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessDesignVoiceResponseContent( pathTemplate: "\"/voices/v1/voices:design\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Inworld/Generated/Inworld.VoicesClient.GetVoice.g.cs b/src/libs/Inworld/Generated/Inworld.VoicesClient.GetVoice.g.cs index f5bf191..3e1e263 100644 --- a/src/libs/Inworld/Generated/Inworld.VoicesClient.GetVoice.g.cs +++ b/src/libs/Inworld/Generated/Inworld.VoicesClient.GetVoice.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetVoiceResponseContent( PrepareGetVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceId: voiceId!); + voiceId: voiceId); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessGetVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessGetVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessGetVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessGetVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessGetVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Inworld/Generated/Inworld.VoicesClient.ListVoices.g.cs b/src/libs/Inworld/Generated/Inworld.VoicesClient.ListVoices.g.cs index 86fbb02..bdfa132 100644 --- a/src/libs/Inworld/Generated/Inworld.VoicesClient.ListVoices.g.cs +++ b/src/libs/Inworld/Generated/Inworld.VoicesClient.ListVoices.g.cs @@ -172,7 +172,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices/v1/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -206,7 +206,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices/v1/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -247,7 +247,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices/v1/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -295,7 +295,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices/v1/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -317,7 +317,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/voices/v1/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Inworld/Generated/Inworld.VoicesClient.PublishVoice.g.cs b/src/libs/Inworld/Generated/Inworld.VoicesClient.PublishVoice.g.cs index 9d82a8e..dddc41a 100644 --- a/src/libs/Inworld/Generated/Inworld.VoicesClient.PublishVoice.g.cs +++ b/src/libs/Inworld/Generated/Inworld.VoicesClient.PublishVoice.g.cs @@ -166,7 +166,7 @@ partial void ProcessPublishVoiceResponseContent( PreparePublishVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceId: voiceId!, + voiceId: voiceId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessPublishVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}:publish\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessPublishVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}:publish\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessPublishVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}:publish\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessPublishVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}:publish\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessPublishVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}:publish\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Inworld/Generated/Inworld.VoicesClient.UpdateVoice.g.cs b/src/libs/Inworld/Generated/Inworld.VoicesClient.UpdateVoice.g.cs index 13f2174..ec35cd3 100644 --- a/src/libs/Inworld/Generated/Inworld.VoicesClient.UpdateVoice.g.cs +++ b/src/libs/Inworld/Generated/Inworld.VoicesClient.UpdateVoice.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateVoiceResponseContent( PrepareUpdateVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voiceId: voiceId!, + voiceId: voiceId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessUpdateVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessUpdateVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessUpdateVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUpdateVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessUpdateVoiceResponseContent( pathTemplate: "$\"/voices/v1/voices/{voiceId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options,