diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.AnyOf.2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AnyOf.2.g.cs index 94afbae..57f9e7b 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.AnyOf.2.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.AnyOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.AutoSDKHttpResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.AutoSDKHttpResponse.g.cs index 98581af..949c137 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.AutoSDKHttpResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.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/AssemblyAI/Generated/AssemblyAI.FilesClient.Upload.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.FilesClient.Upload.g.cs index 06d942b..1a662fe 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.FilesClient.Upload.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.FilesClient.Upload.g.cs @@ -196,7 +196,7 @@ partial void ProcessUploadResponseContent( pathTemplate: "\"/v2/upload\"", 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, @@ -230,7 +230,7 @@ partial void ProcessUploadResponseContent( pathTemplate: "\"/v2/upload\"", 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, @@ -271,7 +271,7 @@ partial void ProcessUploadResponseContent( pathTemplate: "\"/v2/upload\"", 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, @@ -319,7 +319,7 @@ partial void ProcessUploadResponseContent( pathTemplate: "\"/v2/upload\"", 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, @@ -341,7 +341,7 @@ partial void ProcessUploadResponseContent( pathTemplate: "\"/v2/upload\"", 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/AssemblyAI/Generated/AssemblyAI.JsonConverters.AnyOf2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AnyOf2.g.cs index c49b53a..061555e 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AnyOf2.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.AnyOf2.g.cs @@ -148,13 +148,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf5.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf5.g.cs index f092970..fcf4e24 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf5.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.OneOf5.g.cs @@ -295,31 +295,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioNotification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioNotification.g.cs index 61074ce..4016da2 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioNotification.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.RedactedAudioNotification.g.cs @@ -54,7 +54,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.RedactedAudioResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.RedactedAudioResponse).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Response!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResponse(), typeInfo); if (__element0.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/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptParams.g.cs index 195b0e1..c25350d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptParams.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.TranscriptParamsVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranscriptParamsVariant1).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.TranscriptParamsVariant1!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickTranscriptParamsVariant1(), 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::AssemblyAI.TranscriptOptionalParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.TranscriptOptionalParams).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Optional!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickOptional(), 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/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs index 1882a4b..5e63f40 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs @@ -43,8 +43,8 @@ public bool TryPickResponse( /// /// /// - public global::AssemblyAI.RedactedAudioResponse PickResponse() => IsResponse - ? Response! + public global::AssemblyAI.RedactedAudioResponse PickResponse() => Response is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Response' but the value was {ToString()}."); /// /// @@ -103,9 +103,9 @@ public bool Validate() Validate(); } - if (IsResponse && response != null) + if (Response is { } __value0 && response != null) { - return response(Response!); + return response(__value0); } return default(TResult); @@ -123,9 +123,9 @@ public void Match( Validate(); } - if (IsResponse) + if (Response is { } __value0) { - response?.Invoke(Response!); + response?.Invoke(__value0); } } @@ -141,9 +141,9 @@ public void Switch( Validate(); } - if (IsResponse) + if (Response is { } __value0) { - response?.Invoke(Response!); + response?.Invoke(__value0); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs index 4bbeaba..62e8531 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs @@ -43,8 +43,8 @@ public bool TryPickTranscriptParamsVariant1( /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1 PickTranscriptParamsVariant1() => IsTranscriptParamsVariant1 - ? TranscriptParamsVariant1! + public global::AssemblyAI.TranscriptParamsVariant1 PickTranscriptParamsVariant1() => TranscriptParamsVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TranscriptParamsVariant1' but the value was {ToString()}."); /// @@ -81,8 +81,8 @@ public bool TryPickOptional( /// /// /// - public global::AssemblyAI.TranscriptOptionalParams PickOptional() => IsOptional - ? Optional! + public global::AssemblyAI.TranscriptOptionalParams PickOptional() => Optional is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Optional' but the value was {ToString()}."); /// /// @@ -179,13 +179,13 @@ public bool Validate() Validate(); } - if (IsTranscriptParamsVariant1 && transcriptParamsVariant1 != null) + if (TranscriptParamsVariant1 is { } __value0 && transcriptParamsVariant1 != null) { - return transcriptParamsVariant1(TranscriptParamsVariant1!); + return transcriptParamsVariant1(__value0); } - else if (IsOptional && optional != null) + else if (Optional is { } __value1 && optional != null) { - return optional(Optional!); + return optional(__value1); } return default(TResult); @@ -205,13 +205,13 @@ public void Match( Validate(); } - if (IsTranscriptParamsVariant1) + if (TranscriptParamsVariant1 is { } __value0) { - transcriptParamsVariant1?.Invoke(TranscriptParamsVariant1!); + transcriptParamsVariant1?.Invoke(__value0); } - else if (IsOptional) + else if (Optional is { } __value1) { - optional?.Invoke(Optional!); + optional?.Invoke(__value1); } } @@ -228,13 +228,13 @@ public void Switch( Validate(); } - if (IsTranscriptParamsVariant1) + if (TranscriptParamsVariant1 is { } __value0) { - transcriptParamsVariant1?.Invoke(TranscriptParamsVariant1!); + transcriptParamsVariant1?.Invoke(__value0); } - else if (IsOptional) + else if (Optional is { } __value1) { - optional?.Invoke(Optional!); + optional?.Invoke(__value1); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.5.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.5.g.cs index c4222c6..2bbc345 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.5.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.OneOf.5.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// /// @@ -371,25 +371,25 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } return default(TResult); @@ -415,25 +415,25 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } } @@ -453,25 +453,25 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.JsonConverters.ServerEvent.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.JsonConverters.ServerEvent.g.cs index 5a643af..7bece17 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.JsonConverters.ServerEvent.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.JsonConverters.ServerEvent.g.cs @@ -95,37 +95,37 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Realtime.SessionBeginsPayload), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Realtime.SessionBeginsPayload).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Begin!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBegin(), typeInfo); } else if (value.IsTurn) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Realtime.TurnPayload), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Realtime.TurnPayload).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Turn!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTurn(), typeInfo); } else if (value.IsSpeechStarted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Realtime.SpeechStartedPayload), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Realtime.SpeechStartedPayload).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeechStarted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechStarted(), typeInfo); } else if (value.IsSpeakerRevision) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Realtime.SpeakerRevisionPayload), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Realtime.SpeakerRevisionPayload).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpeakerRevision!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeakerRevision(), typeInfo); } else if (value.IsTermination) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Realtime.TerminationPayload), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Realtime.TerminationPayload).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Termination!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTermination(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::AssemblyAI.Realtime.ErrorPayload), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::AssemblyAI.Realtime.ErrorPayload).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.Models.ServerEvent.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.Models.ServerEvent.g.cs index a9b195f..a9630fb 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.Models.ServerEvent.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.Models.ServerEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickBegin( /// /// /// - public global::AssemblyAI.Realtime.SessionBeginsPayload PickBegin() => IsBegin - ? Begin! + public global::AssemblyAI.Realtime.SessionBeginsPayload PickBegin() => Begin is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Begin' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTurn( /// /// /// - public global::AssemblyAI.Realtime.TurnPayload PickTurn() => IsTurn - ? Turn! + public global::AssemblyAI.Realtime.TurnPayload PickTurn() => Turn is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Turn' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickSpeechStarted( /// /// /// - public global::AssemblyAI.Realtime.SpeechStartedPayload PickSpeechStarted() => IsSpeechStarted - ? SpeechStarted! + public global::AssemblyAI.Realtime.SpeechStartedPayload PickSpeechStarted() => SpeechStarted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpeechStarted' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickSpeakerRevision( /// /// /// - public global::AssemblyAI.Realtime.SpeakerRevisionPayload PickSpeakerRevision() => IsSpeakerRevision - ? SpeakerRevision! + public global::AssemblyAI.Realtime.SpeakerRevisionPayload PickSpeakerRevision() => SpeakerRevision is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpeakerRevision' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickTermination( /// /// /// - public global::AssemblyAI.Realtime.TerminationPayload PickTermination() => IsTermination - ? Termination! + public global::AssemblyAI.Realtime.TerminationPayload PickTermination() => Termination is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Termination' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickError( /// /// /// - public global::AssemblyAI.Realtime.ErrorPayload PickError() => IsError - ? Error! + public global::AssemblyAI.Realtime.ErrorPayload PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -445,29 +445,29 @@ public bool Validate() Validate(); } - if (IsBegin && begin != null) + if (Begin is { } __value0 && begin != null) { - return begin(Begin!); + return begin(__value0); } - else if (IsTurn && turn != null) + else if (Turn is { } __value1 && turn != null) { - return turn(Turn!); + return turn(__value1); } - else if (IsSpeechStarted && speechStarted != null) + else if (SpeechStarted is { } __value2 && speechStarted != null) { - return speechStarted(SpeechStarted!); + return speechStarted(__value2); } - else if (IsSpeakerRevision && speakerRevision != null) + else if (SpeakerRevision is { } __value3 && speakerRevision != null) { - return speakerRevision(SpeakerRevision!); + return speakerRevision(__value3); } - else if (IsTermination && termination != null) + else if (Termination is { } __value4 && termination != null) { - return termination(Termination!); + return termination(__value4); } - else if (IsError && error != null) + else if (Error is { } __value5 && error != null) { - return error(Error!); + return error(__value5); } return default(TResult); @@ -495,29 +495,29 @@ public void Match( Validate(); } - if (IsBegin) + if (Begin is { } __value0) { - begin?.Invoke(Begin!); + begin?.Invoke(__value0); } - else if (IsTurn) + else if (Turn is { } __value1) { - turn?.Invoke(Turn!); + turn?.Invoke(__value1); } - else if (IsSpeechStarted) + else if (SpeechStarted is { } __value2) { - speechStarted?.Invoke(SpeechStarted!); + speechStarted?.Invoke(__value2); } - else if (IsSpeakerRevision) + else if (SpeakerRevision is { } __value3) { - speakerRevision?.Invoke(SpeakerRevision!); + speakerRevision?.Invoke(__value3); } - else if (IsTermination) + else if (Termination is { } __value4) { - termination?.Invoke(Termination!); + termination?.Invoke(__value4); } - else if (IsError) + else if (Error is { } __value5) { - error?.Invoke(Error!); + error?.Invoke(__value5); } } @@ -538,29 +538,29 @@ public void Switch( Validate(); } - if (IsBegin) + if (Begin is { } __value0) { - begin?.Invoke(Begin!); + begin?.Invoke(__value0); } - else if (IsTurn) + else if (Turn is { } __value1) { - turn?.Invoke(Turn!); + turn?.Invoke(__value1); } - else if (IsSpeechStarted) + else if (SpeechStarted is { } __value2) { - speechStarted?.Invoke(SpeechStarted!); + speechStarted?.Invoke(__value2); } - else if (IsSpeakerRevision) + else if (SpeakerRevision is { } __value3) { - speakerRevision?.Invoke(SpeakerRevision!); + speakerRevision?.Invoke(__value3); } - else if (IsTermination) + else if (Termination is { } __value4) { - termination?.Invoke(Termination!); + termination?.Invoke(__value4); } - else if (IsError) + else if (Error is { } __value5) { - error?.Invoke(Error!); + error?.Invoke(__value5); } } diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Delete.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Delete.g.cs index 3b63ba4..0654001 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Delete.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Delete.g.cs @@ -169,7 +169,7 @@ partial void ProcessDeleteResponseContent( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - transcriptId: transcriptId!); + transcriptId: transcriptId); return __httpRequest; } @@ -191,7 +191,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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, @@ -225,7 +225,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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, @@ -266,7 +266,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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, @@ -314,7 +314,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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, @@ -336,7 +336,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Get.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Get.g.cs index 02cd8f2..f72939b 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Get.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Get.g.cs @@ -167,7 +167,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - transcriptId: transcriptId!); + transcriptId: transcriptId); return __httpRequest; } @@ -189,7 +189,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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, @@ -223,7 +223,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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, @@ -264,7 +264,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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 ProcessGetResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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, @@ -334,7 +334,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}\"", 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/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetParagraphs.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetParagraphs.g.cs index a6349b8..3964f08 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetParagraphs.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetParagraphs.g.cs @@ -169,7 +169,7 @@ partial void ProcessGetParagraphsResponseContent( PrepareGetParagraphsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - transcriptId: transcriptId!); + transcriptId: transcriptId); return __httpRequest; } @@ -191,7 +191,7 @@ partial void ProcessGetParagraphsResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", 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, @@ -225,7 +225,7 @@ partial void ProcessGetParagraphsResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", 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, @@ -266,7 +266,7 @@ partial void ProcessGetParagraphsResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", 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, @@ -314,7 +314,7 @@ partial void ProcessGetParagraphsResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", 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, @@ -336,7 +336,7 @@ partial void ProcessGetParagraphsResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/paragraphs\"", 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/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetRedactedAudio.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetRedactedAudio.g.cs index eb24d89..8ec55c5 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetRedactedAudio.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetRedactedAudio.g.cs @@ -169,7 +169,7 @@ partial void ProcessGetRedactedAudioResponseContent( PrepareGetRedactedAudioRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - transcriptId: transcriptId!); + transcriptId: transcriptId); return __httpRequest; } @@ -191,7 +191,7 @@ partial void ProcessGetRedactedAudioResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", 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, @@ -225,7 +225,7 @@ partial void ProcessGetRedactedAudioResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", 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, @@ -266,7 +266,7 @@ partial void ProcessGetRedactedAudioResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", 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, @@ -314,7 +314,7 @@ partial void ProcessGetRedactedAudioResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", 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, @@ -336,7 +336,7 @@ partial void ProcessGetRedactedAudioResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/redacted-audio\"", 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/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetSentences.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetSentences.g.cs index 9ae2b4d..65fc65f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetSentences.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetSentences.g.cs @@ -169,7 +169,7 @@ partial void ProcessGetSentencesResponseContent( PrepareGetSentencesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - transcriptId: transcriptId!); + transcriptId: transcriptId); return __httpRequest; } @@ -191,7 +191,7 @@ partial void ProcessGetSentencesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", 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, @@ -225,7 +225,7 @@ partial void ProcessGetSentencesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", 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, @@ -266,7 +266,7 @@ partial void ProcessGetSentencesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", 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, @@ -314,7 +314,7 @@ partial void ProcessGetSentencesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", 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, @@ -336,7 +336,7 @@ partial void ProcessGetSentencesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/sentences\"", 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/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetSubtitles.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetSubtitles.g.cs index 73a9ce1..cfbaa28 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetSubtitles.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.GetSubtitles.g.cs @@ -194,8 +194,8 @@ partial void ProcessGetSubtitlesResponseContent( PrepareGetSubtitlesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - subtitleFormat: subtitleFormat!, + transcriptId: transcriptId, + subtitleFormat: subtitleFormat, charsPerCaption: charsPerCaption); return __httpRequest; @@ -218,7 +218,7 @@ partial void ProcessGetSubtitlesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", 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, @@ -252,7 +252,7 @@ partial void ProcessGetSubtitlesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", 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, @@ -293,7 +293,7 @@ partial void ProcessGetSubtitlesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", 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, @@ -341,7 +341,7 @@ partial void ProcessGetSubtitlesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", 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, @@ -363,7 +363,7 @@ partial void ProcessGetSubtitlesResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/{(global::System.Uri.EscapeDataString(subtitleFormat.ToValueString()))}\"", 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/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.List.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.List.g.cs index 9e99903..b40eaee 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.List.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.List.g.cs @@ -276,7 +276,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v2/transcript\"", 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, @@ -310,7 +310,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v2/transcript\"", 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, @@ -351,7 +351,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v2/transcript\"", 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, @@ -399,7 +399,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v2/transcript\"", 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, @@ -421,7 +421,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v2/transcript\"", 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/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Submit.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Submit.g.cs index 2637147..8563d7d 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Submit.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.Submit.g.cs @@ -196,7 +196,7 @@ partial void ProcessSubmitResponseContent( pathTemplate: "\"/v2/transcript\"", 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, @@ -230,7 +230,7 @@ partial void ProcessSubmitResponseContent( pathTemplate: "\"/v2/transcript\"", 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, @@ -271,7 +271,7 @@ partial void ProcessSubmitResponseContent( pathTemplate: "\"/v2/transcript\"", 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, @@ -319,7 +319,7 @@ partial void ProcessSubmitResponseContent( pathTemplate: "\"/v2/transcript\"", 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, @@ -341,7 +341,7 @@ partial void ProcessSubmitResponseContent( pathTemplate: "\"/v2/transcript\"", 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/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.WordSearch.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.WordSearch.g.cs index 06c1a03..0ddd190 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.WordSearch.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptsClient.WordSearch.g.cs @@ -182,8 +182,8 @@ partial void ProcessWordSearchResponseContent( PrepareWordSearchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - transcriptId: transcriptId!, - words: words!); + transcriptId: transcriptId, + words: words); return __httpRequest; } @@ -205,7 +205,7 @@ partial void ProcessWordSearchResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", 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, @@ -239,7 +239,7 @@ partial void ProcessWordSearchResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", 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, @@ -280,7 +280,7 @@ partial void ProcessWordSearchResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", 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, @@ -328,7 +328,7 @@ partial void ProcessWordSearchResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", 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, @@ -350,7 +350,7 @@ partial void ProcessWordSearchResponseContent( pathTemplate: "$\"/v2/transcript/{transcriptId}/word-search\"", 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,