From 01b89a832df863e248d28d0811f57a5f1f0589dc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 03:35:46 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../WaveSpeedAI.AutoSDKHttpResponse.g.cs | 4 +-- ...ImageGenerationClient.GenerateFluxDev.g.cs | 10 +++--- ...eGenerationClient.GenerateFluxDevFast.g.cs | 10 +++--- ...GenerationClient.GenerateFluxDevUltra.g.cs | 10 +++--- ...eGenerationClient.GenerateFluxSchnell.g.cs | 10 +++--- ...JsonConverters.PredictionListResponse.g.cs | 4 +-- ...veSpeedAI.JsonConverters.TaskResponse.g.cs | 4 +-- ...SpeedAI.JsonConverters.UploadResponse.g.cs | 4 +-- .../WaveSpeedAI.MediaClient.UploadMedia.g.cs | 30 ++++++++--------- ...SpeedAI.Models.PredictionListResponse.g.cs | 32 +++++++++---------- .../WaveSpeedAI.Models.TaskResponse.g.cs | 32 +++++++++---------- .../WaveSpeedAI.Models.UploadResponse.g.cs | 32 +++++++++---------- ...AI.PredictionsClient.CreatePrediction.g.cs | 12 +++---- ...eedAI.PredictionsClient.GetTaskResult.g.cs | 12 +++---- ...dAI.PredictionsClient.ListPredictions.g.cs | 10 +++--- ...ionClient.GenerateWanImageToVideo480p.g.cs | 10 +++--- ...ionClient.GenerateWanImageToVideo720p.g.cs | 10 +++--- ...tionClient.GenerateWanTextToVideo480p.g.cs | 10 +++--- ...tionClient.GenerateWanTextToVideo720p.g.cs | 10 +++--- 19 files changed, 128 insertions(+), 128 deletions(-) diff --git a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.AutoSDKHttpResponse.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.AutoSDKHttpResponse.g.cs index 0c7e38b..edd3881 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.AutoSDKHttpResponse.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.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/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDev.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDev.g.cs index 4ef7d2d..6b6eed4 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDev.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDev.g.cs @@ -180,7 +180,7 @@ partial void ProcessGenerateFluxDevResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev\"", 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 ProcessGenerateFluxDevResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev\"", 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 ProcessGenerateFluxDevResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev\"", 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 ProcessGenerateFluxDevResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev\"", 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 ProcessGenerateFluxDevResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDevFast.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDevFast.g.cs index 0d2cdaf..1f64ed1 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDevFast.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDevFast.g.cs @@ -180,7 +180,7 @@ partial void ProcessGenerateFluxDevFastResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"", 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 ProcessGenerateFluxDevFastResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"", 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 ProcessGenerateFluxDevFastResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"", 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 ProcessGenerateFluxDevFastResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"", 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 ProcessGenerateFluxDevFastResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDevUltra.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDevUltra.g.cs index 68048e1..6899693 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDevUltra.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxDevUltra.g.cs @@ -180,7 +180,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"", 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 ProcessGenerateFluxDevUltraResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"", 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 ProcessGenerateFluxDevUltraResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"", 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 ProcessGenerateFluxDevUltraResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"", 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 ProcessGenerateFluxDevUltraResponseContent( pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxSchnell.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxSchnell.g.cs index d931e45..da8d915 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxSchnell.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.ImageGenerationClient.GenerateFluxSchnell.g.cs @@ -180,7 +180,7 @@ partial void ProcessGenerateFluxSchnellResponseContent( pathTemplate: "\"/wavespeed-ai/flux-schnell\"", 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 ProcessGenerateFluxSchnellResponseContent( pathTemplate: "\"/wavespeed-ai/flux-schnell\"", 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 ProcessGenerateFluxSchnellResponseContent( pathTemplate: "\"/wavespeed-ai/flux-schnell\"", 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 ProcessGenerateFluxSchnellResponseContent( pathTemplate: "\"/wavespeed-ai/flux-schnell\"", 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 ProcessGenerateFluxSchnellResponseContent( pathTemplate: "\"/wavespeed-ai/flux-schnell\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.PredictionListResponse.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.PredictionListResponse.g.cs index be5ef0e..1434851 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.PredictionListResponse.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.PredictionListResponse.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.ApiResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.ApiResponse).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Api!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickApi(), 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::WaveSpeedAI.PredictionListResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.PredictionListResponseVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PredictionListResponseVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickPredictionListResponseVariant2(), 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/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.TaskResponse.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.TaskResponse.g.cs index 60d2a4d..7583fd5 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.TaskResponse.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.TaskResponse.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.ApiResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.ApiResponse).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Api!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickApi(), 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::WaveSpeedAI.TaskResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.TaskResponseVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.TaskResponseVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickTaskResponseVariant2(), 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/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.UploadResponse.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.UploadResponse.g.cs index 7872c22..b605910 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.UploadResponse.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.JsonConverters.UploadResponse.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.ApiResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.ApiResponse).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Api!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickApi(), 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::WaveSpeedAI.UploadResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.UploadResponseVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.UploadResponseVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickUploadResponseVariant2(), 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/WaveSpeedAI/Generated/WaveSpeedAI.MediaClient.UploadMedia.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.MediaClient.UploadMedia.g.cs index 315d4bf..9eac327 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.MediaClient.UploadMedia.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.MediaClient.UploadMedia.g.cs @@ -222,7 +222,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -256,7 +256,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -297,7 +297,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -345,7 +345,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -367,7 +367,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -738,7 +738,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -772,7 +772,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -813,7 +813,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -861,7 +861,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -883,7 +883,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -1212,7 +1212,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -1246,7 +1246,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -1287,7 +1287,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -1335,7 +1335,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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, @@ -1357,7 +1357,7 @@ request.Filename is null pathTemplate: "\"/media/upload/binary\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.Models.PredictionListResponse.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.PredictionListResponse.g.cs index 5c499da..f80439c 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.PredictionListResponse.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.PredictionListResponse.g.cs @@ -42,8 +42,8 @@ public bool TryPickApi( /// /// /// - public global::WaveSpeedAI.ApiResponse PickApi() => IsApi - ? Api! + public global::WaveSpeedAI.ApiResponse PickApi() => Api is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Api' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickPredictionListResponseVariant2( /// /// /// - public global::WaveSpeedAI.PredictionListResponseVariant2 PickPredictionListResponseVariant2() => IsPredictionListResponseVariant2 - ? PredictionListResponseVariant2! + public global::WaveSpeedAI.PredictionListResponseVariant2 PickPredictionListResponseVariant2() => PredictionListResponseVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PredictionListResponseVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsApi && api != null) + if (Api is { } __value0 && api != null) { - return api(Api!); + return api(__value0); } - else if (IsPredictionListResponseVariant2 && predictionListResponseVariant2 != null) + else if (PredictionListResponseVariant2 is { } __value1 && predictionListResponseVariant2 != null) { - return predictionListResponseVariant2(PredictionListResponseVariant2!); + return predictionListResponseVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsApi) + if (Api is { } __value0) { - api?.Invoke(Api!); + api?.Invoke(__value0); } - else if (IsPredictionListResponseVariant2) + else if (PredictionListResponseVariant2 is { } __value1) { - predictionListResponseVariant2?.Invoke(PredictionListResponseVariant2!); + predictionListResponseVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsApi) + if (Api is { } __value0) { - api?.Invoke(Api!); + api?.Invoke(__value0); } - else if (IsPredictionListResponseVariant2) + else if (PredictionListResponseVariant2 is { } __value1) { - predictionListResponseVariant2?.Invoke(PredictionListResponseVariant2!); + predictionListResponseVariant2?.Invoke(__value1); } } diff --git a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.TaskResponse.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.TaskResponse.g.cs index 1b90dcb..34b1a24 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.TaskResponse.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.TaskResponse.g.cs @@ -42,8 +42,8 @@ public bool TryPickApi( /// /// /// - public global::WaveSpeedAI.ApiResponse PickApi() => IsApi - ? Api! + public global::WaveSpeedAI.ApiResponse PickApi() => Api is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Api' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickTaskResponseVariant2( /// /// /// - public global::WaveSpeedAI.TaskResponseVariant2 PickTaskResponseVariant2() => IsTaskResponseVariant2 - ? TaskResponseVariant2! + public global::WaveSpeedAI.TaskResponseVariant2 PickTaskResponseVariant2() => TaskResponseVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TaskResponseVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsApi && api != null) + if (Api is { } __value0 && api != null) { - return api(Api!); + return api(__value0); } - else if (IsTaskResponseVariant2 && taskResponseVariant2 != null) + else if (TaskResponseVariant2 is { } __value1 && taskResponseVariant2 != null) { - return taskResponseVariant2(TaskResponseVariant2!); + return taskResponseVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsApi) + if (Api is { } __value0) { - api?.Invoke(Api!); + api?.Invoke(__value0); } - else if (IsTaskResponseVariant2) + else if (TaskResponseVariant2 is { } __value1) { - taskResponseVariant2?.Invoke(TaskResponseVariant2!); + taskResponseVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsApi) + if (Api is { } __value0) { - api?.Invoke(Api!); + api?.Invoke(__value0); } - else if (IsTaskResponseVariant2) + else if (TaskResponseVariant2 is { } __value1) { - taskResponseVariant2?.Invoke(TaskResponseVariant2!); + taskResponseVariant2?.Invoke(__value1); } } diff --git a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.UploadResponse.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.UploadResponse.g.cs index 90ee643..e433c84 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.UploadResponse.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.Models.UploadResponse.g.cs @@ -42,8 +42,8 @@ public bool TryPickApi( /// /// /// - public global::WaveSpeedAI.ApiResponse PickApi() => IsApi - ? Api! + public global::WaveSpeedAI.ApiResponse PickApi() => Api is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Api' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickUploadResponseVariant2( /// /// /// - public global::WaveSpeedAI.UploadResponseVariant2 PickUploadResponseVariant2() => IsUploadResponseVariant2 - ? UploadResponseVariant2! + public global::WaveSpeedAI.UploadResponseVariant2 PickUploadResponseVariant2() => UploadResponseVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UploadResponseVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsApi && api != null) + if (Api is { } __value0 && api != null) { - return api(Api!); + return api(__value0); } - else if (IsUploadResponseVariant2 && uploadResponseVariant2 != null) + else if (UploadResponseVariant2 is { } __value1 && uploadResponseVariant2 != null) { - return uploadResponseVariant2(UploadResponseVariant2!); + return uploadResponseVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsApi) + if (Api is { } __value0) { - api?.Invoke(Api!); + api?.Invoke(__value0); } - else if (IsUploadResponseVariant2) + else if (UploadResponseVariant2 is { } __value1) { - uploadResponseVariant2?.Invoke(UploadResponseVariant2!); + uploadResponseVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsApi) + if (Api is { } __value0) { - api?.Invoke(Api!); + api?.Invoke(__value0); } - else if (IsUploadResponseVariant2) + else if (UploadResponseVariant2 is { } __value1) { - uploadResponseVariant2?.Invoke(UploadResponseVariant2!); + uploadResponseVariant2?.Invoke(__value1); } } diff --git a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.CreatePrediction.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.CreatePrediction.g.cs index 9c15f29..8f0d0d0 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.CreatePrediction.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.CreatePrediction.g.cs @@ -181,7 +181,7 @@ partial void ProcessCreatePredictionResponseContent( PrepareCreatePredictionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - modelId: modelId!, + modelId: modelId, webhook: webhook, request: request); @@ -205,7 +205,7 @@ partial void ProcessCreatePredictionResponseContent( pathTemplate: "$\"/{modelId}\"", 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, @@ -239,7 +239,7 @@ partial void ProcessCreatePredictionResponseContent( pathTemplate: "$\"/{modelId}\"", 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, @@ -280,7 +280,7 @@ partial void ProcessCreatePredictionResponseContent( pathTemplate: "$\"/{modelId}\"", 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, @@ -328,7 +328,7 @@ partial void ProcessCreatePredictionResponseContent( pathTemplate: "$\"/{modelId}\"", 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, @@ -350,7 +350,7 @@ partial void ProcessCreatePredictionResponseContent( pathTemplate: "$\"/{modelId}\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.GetTaskResult.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.GetTaskResult.g.cs index ce0dc28..35f806a 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.GetTaskResult.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.GetTaskResult.g.cs @@ -149,7 +149,7 @@ partial void ProcessGetTaskResultResponseContent( PrepareGetTaskResultRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - taskId: taskId!); + taskId: taskId); return __httpRequest; } @@ -171,7 +171,7 @@ partial void ProcessGetTaskResultResponseContent( pathTemplate: "$\"/predictions/{taskId}/result\"", 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, @@ -205,7 +205,7 @@ partial void ProcessGetTaskResultResponseContent( pathTemplate: "$\"/predictions/{taskId}/result\"", 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, @@ -246,7 +246,7 @@ partial void ProcessGetTaskResultResponseContent( pathTemplate: "$\"/predictions/{taskId}/result\"", 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, @@ -294,7 +294,7 @@ partial void ProcessGetTaskResultResponseContent( pathTemplate: "$\"/predictions/{taskId}/result\"", 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, @@ -316,7 +316,7 @@ partial void ProcessGetTaskResultResponseContent( pathTemplate: "$\"/predictions/{taskId}/result\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.ListPredictions.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.ListPredictions.g.cs index b817dcc..58fbae3 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.ListPredictions.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.PredictionsClient.ListPredictions.g.cs @@ -184,7 +184,7 @@ partial void ProcessListPredictionsResponseContent( pathTemplate: "\"/predictions\"", 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 ProcessListPredictionsResponseContent( pathTemplate: "\"/predictions\"", 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 ProcessListPredictionsResponseContent( pathTemplate: "\"/predictions\"", 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 ProcessListPredictionsResponseContent( pathTemplate: "\"/predictions\"", 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 ProcessListPredictionsResponseContent( pathTemplate: "\"/predictions\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanImageToVideo480p.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanImageToVideo480p.g.cs index 81166e0..c6c5d7c 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanImageToVideo480p.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanImageToVideo480p.g.cs @@ -180,7 +180,7 @@ partial void ProcessGenerateWanImageToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-480p\"", 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 ProcessGenerateWanImageToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-480p\"", 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 ProcessGenerateWanImageToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-480p\"", 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 ProcessGenerateWanImageToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-480p\"", 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 ProcessGenerateWanImageToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-480p\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanImageToVideo720p.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanImageToVideo720p.g.cs index 42cd86a..e63bceb 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanImageToVideo720p.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanImageToVideo720p.g.cs @@ -180,7 +180,7 @@ partial void ProcessGenerateWanImageToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-720p\"", 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 ProcessGenerateWanImageToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-720p\"", 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 ProcessGenerateWanImageToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-720p\"", 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 ProcessGenerateWanImageToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-720p\"", 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 ProcessGenerateWanImageToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-i2v-720p\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanTextToVideo480p.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanTextToVideo480p.g.cs index 27d6ab2..a654662 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanTextToVideo480p.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanTextToVideo480p.g.cs @@ -180,7 +180,7 @@ partial void ProcessGenerateWanTextToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-480p\"", 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 ProcessGenerateWanTextToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-480p\"", 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 ProcessGenerateWanTextToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-480p\"", 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 ProcessGenerateWanTextToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-480p\"", 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 ProcessGenerateWanTextToVideo480pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-480p\"", 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/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanTextToVideo720p.g.cs b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanTextToVideo720p.g.cs index 1896b5d..9a163d9 100644 --- a/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanTextToVideo720p.g.cs +++ b/src/libs/WaveSpeedAI/Generated/WaveSpeedAI.VideoGenerationClient.GenerateWanTextToVideo720p.g.cs @@ -180,7 +180,7 @@ partial void ProcessGenerateWanTextToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-720p\"", 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 ProcessGenerateWanTextToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-720p\"", 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 ProcessGenerateWanTextToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-720p\"", 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 ProcessGenerateWanTextToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-720p\"", 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 ProcessGenerateWanTextToVideo720pResponseContent( pathTemplate: "\"/wavespeed-ai/wan-2.1/wan-2.1-t2v-720p\"", 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,