From db97a9ec14df8244e594001250520e433918165b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 04:12:11 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/PlayHT.AutoSDKHttpResponse.g.cs | 4 +-- ...yHT.JsonConverters.ListVoicesResponse.g.cs | 4 +-- ...HT.JsonConverters.StreamSpeechRequest.g.cs | 4 +-- .../PlayHT.Models.ListVoicesResponse.g.cs | 32 +++++++++---------- .../PlayHT.Models.StreamSpeechRequest.g.cs | 32 +++++++++---------- ...layHT.TextToSpeechClient.CreateSpeech.g.cs | 10 +++--- ...layHT.TextToSpeechClient.GetSpeechJob.g.cs | 12 +++---- ...layHT.TextToSpeechClient.StreamSpeech.g.cs | 20 ++++++------ .../PlayHT.VoicesClient.ListVoices.g.cs | 10 +++--- ...T.WebSocketClient.CreateWebSocketAuth.g.cs | 10 +++--- 10 files changed, 69 insertions(+), 69 deletions(-) diff --git a/src/libs/PlayHT/Generated/PlayHT.AutoSDKHttpResponse.g.cs b/src/libs/PlayHT/Generated/PlayHT.AutoSDKHttpResponse.g.cs index 83ed809..12e955f 100644 --- a/src/libs/PlayHT/Generated/PlayHT.AutoSDKHttpResponse.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.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/PlayHT/Generated/PlayHT.JsonConverters.ListVoicesResponse.g.cs b/src/libs/PlayHT/Generated/PlayHT.JsonConverters.ListVoicesResponse.g.cs index 4e4f675..a0dcf39 100644 --- a/src/libs/PlayHT/Generated/PlayHT.JsonConverters.ListVoicesResponse.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.JsonConverters.ListVoicesResponse.g.cs @@ -127,13 +127,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ListVoicesResponseVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickListVoicesResponseVariant1(), typeInfo); } else if (value.IsListVoicesResponseVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PlayHT.ListVoicesResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PlayHT.ListVoicesResponseVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ListVoicesResponseVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickListVoicesResponseVariant2(), typeInfo); } } } diff --git a/src/libs/PlayHT/Generated/PlayHT.JsonConverters.StreamSpeechRequest.g.cs b/src/libs/PlayHT/Generated/PlayHT.JsonConverters.StreamSpeechRequest.g.cs index 594e85f..71a54b7 100644 --- a/src/libs/PlayHT/Generated/PlayHT.JsonConverters.StreamSpeechRequest.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.JsonConverters.StreamSpeechRequest.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PlayHT.CreateSpeechRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PlayHT.CreateSpeechRequest).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Create!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCreate(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PlayHT.StreamSpeechRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PlayHT.StreamSpeechRequestVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.StreamSpeechRequestVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickStreamSpeechRequestVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/PlayHT/Generated/PlayHT.Models.ListVoicesResponse.g.cs b/src/libs/PlayHT/Generated/PlayHT.Models.ListVoicesResponse.g.cs index 5cef62a..7787849 100644 --- a/src/libs/PlayHT/Generated/PlayHT.Models.ListVoicesResponse.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.Models.ListVoicesResponse.g.cs @@ -42,8 +42,8 @@ public bool TryPickListVoicesResponseVariant1( /// /// /// - public global::System.Collections.Generic.IList PickListVoicesResponseVariant1() => IsListVoicesResponseVariant1 - ? ListVoicesResponseVariant1! + public global::System.Collections.Generic.IList PickListVoicesResponseVariant1() => ListVoicesResponseVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ListVoicesResponseVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickListVoicesResponseVariant2( /// /// /// - public global::PlayHT.ListVoicesResponseVariant2 PickListVoicesResponseVariant2() => IsListVoicesResponseVariant2 - ? ListVoicesResponseVariant2! + public global::PlayHT.ListVoicesResponseVariant2 PickListVoicesResponseVariant2() => ListVoicesResponseVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ListVoicesResponseVariant2' but the value was {ToString()}."); /// /// @@ -154,13 +154,13 @@ public bool Validate() Validate(); } - if (IsListVoicesResponseVariant1 && listVoicesResponseVariant1 != null) + if (ListVoicesResponseVariant1 is { } __value0 && listVoicesResponseVariant1 != null) { - return listVoicesResponseVariant1(ListVoicesResponseVariant1!); + return listVoicesResponseVariant1(__value0); } - else if (IsListVoicesResponseVariant2 && listVoicesResponseVariant2 != null) + else if (ListVoicesResponseVariant2 is { } __value1 && listVoicesResponseVariant2 != null) { - return listVoicesResponseVariant2(ListVoicesResponseVariant2!); + return listVoicesResponseVariant2(__value1); } return default(TResult); @@ -180,13 +180,13 @@ public void Match( Validate(); } - if (IsListVoicesResponseVariant1) + if (ListVoicesResponseVariant1 is { } __value0) { - listVoicesResponseVariant1?.Invoke(ListVoicesResponseVariant1!); + listVoicesResponseVariant1?.Invoke(__value0); } - else if (IsListVoicesResponseVariant2) + else if (ListVoicesResponseVariant2 is { } __value1) { - listVoicesResponseVariant2?.Invoke(ListVoicesResponseVariant2!); + listVoicesResponseVariant2?.Invoke(__value1); } } @@ -203,13 +203,13 @@ public void Switch( Validate(); } - if (IsListVoicesResponseVariant1) + if (ListVoicesResponseVariant1 is { } __value0) { - listVoicesResponseVariant1?.Invoke(ListVoicesResponseVariant1!); + listVoicesResponseVariant1?.Invoke(__value0); } - else if (IsListVoicesResponseVariant2) + else if (ListVoicesResponseVariant2 is { } __value1) { - listVoicesResponseVariant2?.Invoke(ListVoicesResponseVariant2!); + listVoicesResponseVariant2?.Invoke(__value1); } } diff --git a/src/libs/PlayHT/Generated/PlayHT.Models.StreamSpeechRequest.g.cs b/src/libs/PlayHT/Generated/PlayHT.Models.StreamSpeechRequest.g.cs index 5bdf8c5..689fd2d 100644 --- a/src/libs/PlayHT/Generated/PlayHT.Models.StreamSpeechRequest.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.Models.StreamSpeechRequest.g.cs @@ -42,8 +42,8 @@ public bool TryPickCreate( /// /// /// - public global::PlayHT.CreateSpeechRequest PickCreate() => IsCreate - ? Create! + public global::PlayHT.CreateSpeechRequest PickCreate() => Create is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Create' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickStreamSpeechRequestVariant2( /// /// /// - public global::PlayHT.StreamSpeechRequestVariant2 PickStreamSpeechRequestVariant2() => IsStreamSpeechRequestVariant2 - ? StreamSpeechRequestVariant2! + public global::PlayHT.StreamSpeechRequestVariant2 PickStreamSpeechRequestVariant2() => StreamSpeechRequestVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StreamSpeechRequestVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsCreate && create != null) + if (Create is { } __value0 && create != null) { - return create(Create!); + return create(__value0); } - else if (IsStreamSpeechRequestVariant2 && streamSpeechRequestVariant2 != null) + else if (StreamSpeechRequestVariant2 is { } __value1 && streamSpeechRequestVariant2 != null) { - return streamSpeechRequestVariant2(StreamSpeechRequestVariant2!); + return streamSpeechRequestVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsCreate) + if (Create is { } __value0) { - create?.Invoke(Create!); + create?.Invoke(__value0); } - else if (IsStreamSpeechRequestVariant2) + else if (StreamSpeechRequestVariant2 is { } __value1) { - streamSpeechRequestVariant2?.Invoke(StreamSpeechRequestVariant2!); + streamSpeechRequestVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsCreate) + if (Create is { } __value0) { - create?.Invoke(Create!); + create?.Invoke(__value0); } - else if (IsStreamSpeechRequestVariant2) + else if (StreamSpeechRequestVariant2 is { } __value1) { - streamSpeechRequestVariant2?.Invoke(StreamSpeechRequestVariant2!); + streamSpeechRequestVariant2?.Invoke(__value1); } } diff --git a/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.CreateSpeech.g.cs b/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.CreateSpeech.g.cs index d9043fe..6223388 100644 --- a/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.CreateSpeech.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.CreateSpeech.g.cs @@ -188,7 +188,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/api/v1/tts\"", 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, @@ -222,7 +222,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/api/v1/tts\"", 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, @@ -263,7 +263,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/api/v1/tts\"", 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, @@ -311,7 +311,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/api/v1/tts\"", 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, @@ -333,7 +333,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/api/v1/tts\"", 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/PlayHT/Generated/PlayHT.TextToSpeechClient.GetSpeechJob.g.cs b/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.GetSpeechJob.g.cs index 2bdb064..960eaf3 100644 --- a/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.GetSpeechJob.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.GetSpeechJob.g.cs @@ -153,7 +153,7 @@ partial void ProcessGetSpeechJobResponseContent( PrepareGetSpeechJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - asyncTtsJobId: asyncTtsJobId!); + asyncTtsJobId: asyncTtsJobId); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessGetSpeechJobResponseContent( pathTemplate: "$\"/api/v1/tts/{asyncTtsJobId}\"", 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, @@ -209,7 +209,7 @@ partial void ProcessGetSpeechJobResponseContent( pathTemplate: "$\"/api/v1/tts/{asyncTtsJobId}\"", 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, @@ -250,7 +250,7 @@ partial void ProcessGetSpeechJobResponseContent( pathTemplate: "$\"/api/v1/tts/{asyncTtsJobId}\"", 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, @@ -298,7 +298,7 @@ partial void ProcessGetSpeechJobResponseContent( pathTemplate: "$\"/api/v1/tts/{asyncTtsJobId}\"", 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, @@ -320,7 +320,7 @@ partial void ProcessGetSpeechJobResponseContent( pathTemplate: "$\"/api/v1/tts/{asyncTtsJobId}\"", 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/PlayHT/Generated/PlayHT.TextToSpeechClient.StreamSpeech.g.cs b/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.StreamSpeech.g.cs index dca4f52..253cc0e 100644 --- a/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.StreamSpeech.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.TextToSpeechClient.StreamSpeech.g.cs @@ -186,7 +186,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -220,7 +220,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -261,7 +261,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -309,7 +309,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -331,7 +331,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -545,7 +545,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -579,7 +579,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -620,7 +620,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -668,7 +668,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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, @@ -690,7 +690,7 @@ partial void ProcessStreamSpeechResponseContent( pathTemplate: "\"/api/v1/tts/stream\"", 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/PlayHT/Generated/PlayHT.VoicesClient.ListVoices.g.cs b/src/libs/PlayHT/Generated/PlayHT.VoicesClient.ListVoices.g.cs index 95256db..d114b72 100644 --- a/src/libs/PlayHT/Generated/PlayHT.VoicesClient.ListVoices.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.VoicesClient.ListVoices.g.cs @@ -166,7 +166,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/api/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, @@ -200,7 +200,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/api/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, @@ -241,7 +241,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/api/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, @@ -289,7 +289,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/api/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, @@ -311,7 +311,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/api/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/PlayHT/Generated/PlayHT.WebSocketClient.CreateWebSocketAuth.g.cs b/src/libs/PlayHT/Generated/PlayHT.WebSocketClient.CreateWebSocketAuth.g.cs index 53e0497..22d4f5b 100644 --- a/src/libs/PlayHT/Generated/PlayHT.WebSocketClient.CreateWebSocketAuth.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.WebSocketClient.CreateWebSocketAuth.g.cs @@ -166,7 +166,7 @@ partial void ProcessCreateWebSocketAuthResponseContent( pathTemplate: "\"/api/v1/tts/websocket-auth\"", 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, @@ -200,7 +200,7 @@ partial void ProcessCreateWebSocketAuthResponseContent( pathTemplate: "\"/api/v1/tts/websocket-auth\"", 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, @@ -241,7 +241,7 @@ partial void ProcessCreateWebSocketAuthResponseContent( pathTemplate: "\"/api/v1/tts/websocket-auth\"", 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, @@ -289,7 +289,7 @@ partial void ProcessCreateWebSocketAuthResponseContent( pathTemplate: "\"/api/v1/tts/websocket-auth\"", 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, @@ -311,7 +311,7 @@ partial void ProcessCreateWebSocketAuthResponseContent( pathTemplate: "\"/api/v1/tts/websocket-auth\"", 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,