From 3d06bd5d7e233574c34f5f893cd64fc63b820ccb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Mar 2026 01:29:16 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Runway/Generated/Runway.Exceptions.g.cs | 4 +++- .../Generated/Runway.IOrganizationClient.g.cs | 3 +++ .../Generated/Runway.IRunwayClient.g.cs | 3 +++ .../Runway.IStartGeneratingClient.g.cs | 3 +++ .../Runway.ITaskManagementClient.g.cs | 3 +++ .../Generated/Runway.IUploadsClient.g.cs | 3 +++ ...izationClient.CreateOrganizationUsage.g.cs | 16 +++++++++++++- ...ay.OrganizationClient.GetOrganization.g.cs | 16 +++++++++++++- ...tingClient.CreateCharacterPerformance.g.cs | 21 ++++++++++++++++--- ...rtGeneratingClient.CreateImageToVideo.g.cs | 21 ++++++++++++++++--- ...artGeneratingClient.CreateSoundEffect.g.cs | 21 ++++++++++++++++--- ...GeneratingClient.CreateSpeechToSpeech.g.cs | 21 ++++++++++++++++--- ...artGeneratingClient.CreateTextToImage.g.cs | 21 ++++++++++++++++--- ...rtGeneratingClient.CreateTextToSpeech.g.cs | 21 ++++++++++++++++--- ...artGeneratingClient.CreateTextToVideo.g.cs | 21 ++++++++++++++++--- ...rtGeneratingClient.CreateVideoToVideo.g.cs | 21 ++++++++++++++++--- ...rtGeneratingClient.CreateVoiceDubbing.g.cs | 21 ++++++++++++++++--- ...GeneratingClient.CreateVoiceIsolation.g.cs | 21 ++++++++++++++++--- ....TaskManagementClient.DeleteTasksById.g.cs | 16 +++++++++++++- ...way.TaskManagementClient.GetTasksById.g.cs | 21 ++++++++++++++++--- .../Runway.UploadsClient.CreateUploads.g.cs | 18 ++++++++++++++-- 21 files changed, 277 insertions(+), 39 deletions(-) diff --git a/src/libs/Runway/Generated/Runway.Exceptions.g.cs b/src/libs/Runway/Generated/Runway.Exceptions.g.cs index efe236c..39de712 100644 --- a/src/libs/Runway/Generated/Runway.Exceptions.g.cs +++ b/src/libs/Runway/Generated/Runway.Exceptions.g.cs @@ -13,7 +13,9 @@ public partial class ApiException : global::System.Exception /// public global::System.Net.HttpStatusCode StatusCode { get; } /// - /// The response body. + /// The response body as a string, or null if the body could not be read. + /// This is always populated for error responses regardless of the ReadResponseAsString setting. + /// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read. /// public string? ResponseBody { get; set; } /// diff --git a/src/libs/Runway/Generated/Runway.IOrganizationClient.g.cs b/src/libs/Runway/Generated/Runway.IOrganizationClient.g.cs index dd326c8..93e3b5a 100644 --- a/src/libs/Runway/Generated/Runway.IOrganizationClient.g.cs +++ b/src/libs/Runway/Generated/Runway.IOrganizationClient.g.cs @@ -27,6 +27,9 @@ public partial interface IOrganizationClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Runway/Generated/Runway.IRunwayClient.g.cs b/src/libs/Runway/Generated/Runway.IRunwayClient.g.cs index 322196e..c85b67d 100644 --- a/src/libs/Runway/Generated/Runway.IRunwayClient.g.cs +++ b/src/libs/Runway/Generated/Runway.IRunwayClient.g.cs @@ -28,6 +28,9 @@ public partial interface IRunwayClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Runway/Generated/Runway.IStartGeneratingClient.g.cs b/src/libs/Runway/Generated/Runway.IStartGeneratingClient.g.cs index bcfc05c..ccdc693 100644 --- a/src/libs/Runway/Generated/Runway.IStartGeneratingClient.g.cs +++ b/src/libs/Runway/Generated/Runway.IStartGeneratingClient.g.cs @@ -28,6 +28,9 @@ public partial interface IStartGeneratingClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Runway/Generated/Runway.ITaskManagementClient.g.cs b/src/libs/Runway/Generated/Runway.ITaskManagementClient.g.cs index 208da59..f2f7e71 100644 --- a/src/libs/Runway/Generated/Runway.ITaskManagementClient.g.cs +++ b/src/libs/Runway/Generated/Runway.ITaskManagementClient.g.cs @@ -28,6 +28,9 @@ public partial interface ITaskManagementClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Runway/Generated/Runway.IUploadsClient.g.cs b/src/libs/Runway/Generated/Runway.IUploadsClient.g.cs index 71c9859..74c1892 100644 --- a/src/libs/Runway/Generated/Runway.IUploadsClient.g.cs +++ b/src/libs/Runway/Generated/Runway.IUploadsClient.g.cs @@ -28,6 +28,9 @@ public partial interface IUploadsClient : global::System.IDisposable /// /// Gets or sets a value indicating whether the response content should be read as a string. /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. /// public bool ReadResponseAsString { get; set; } diff --git a/src/libs/Runway/Generated/Runway.OrganizationClient.CreateOrganizationUsage.g.cs b/src/libs/Runway/Generated/Runway.OrganizationClient.CreateOrganizationUsage.g.cs index f28eae4..962cfda 100644 --- a/src/libs/Runway/Generated/Runway.OrganizationClient.CreateOrganizationUsage.g.cs +++ b/src/libs/Runway/Generated/Runway.OrganizationClient.CreateOrganizationUsage.g.cs @@ -164,11 +164,25 @@ partial void ProcessCreateOrganizationUsageResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganization.g.cs b/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganization.g.cs index d6d1a50..e0c867a 100644 --- a/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganization.g.cs +++ b/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganization.g.cs @@ -149,11 +149,25 @@ partial void ProcessGetOrganizationResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateCharacterPerformance.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateCharacterPerformance.g.cs index 46fe357..bd6c0dc 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateCharacterPerformance.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateCharacterPerformance.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateCharacterPerformanceResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response12.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response12.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateCharacterPerformanceResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageToVideo.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageToVideo.g.cs index 37d4022..9aa3c73 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageToVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageToVideo.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateImageToVideoResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response4.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response4.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateImageToVideoResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSoundEffect.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSoundEffect.g.cs index 58587b5..8be0058 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSoundEffect.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSoundEffect.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateSoundEffectResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response14.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response14.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateSoundEffectResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSpeechToSpeech.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSpeechToSpeech.g.cs index bb79f16..a37f2d2 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSpeechToSpeech.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSpeechToSpeech.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateSpeechToSpeechResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response16.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response16.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateSpeechToSpeechResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToImage.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToImage.g.cs index f8bb623..595494a 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToImage.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToImage.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateTextToImageResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response10.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response10.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateTextToImageResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToSpeech.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToSpeech.g.cs index 40b2781..6b620b3 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToSpeech.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToSpeech.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateTextToSpeechResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response18.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response18.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateTextToSpeechResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToVideo.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToVideo.g.cs index 2bc7682..3f798cf 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToVideo.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateTextToVideoResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response6.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response6.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateTextToVideoResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoToVideo.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoToVideo.g.cs index 30ab121..243d1db 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoToVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoToVideo.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateVideoToVideoResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response8.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response8.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateVideoToVideoResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceDubbing.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceDubbing.g.cs index 0162c7e..b8141d9 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceDubbing.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceDubbing.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateVoiceDubbingResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response20.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response20.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateVoiceDubbingResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceIsolation.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceIsolation.g.cs index 2f6807a..8233fd4 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceIsolation.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceIsolation.g.cs @@ -118,8 +118,9 @@ partial void ProcessCreateVoiceIsolationResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_429 = await global::Runway.Response22.FromJsonStreamAsync(__contentStream_429, JsonSerializerContext).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.Response22.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -199,11 +200,25 @@ partial void ProcessCreateVoiceIsolationResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.TaskManagementClient.DeleteTasksById.g.cs b/src/libs/Runway/Generated/Runway.TaskManagementClient.DeleteTasksById.g.cs index 5d1b5d0..9b224e3 100644 --- a/src/libs/Runway/Generated/Runway.TaskManagementClient.DeleteTasksById.g.cs +++ b/src/libs/Runway/Generated/Runway.TaskManagementClient.DeleteTasksById.g.cs @@ -141,11 +141,25 @@ partial void ProcessDeleteTasksByIdResponse( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.TaskManagementClient.GetTasksById.g.cs b/src/libs/Runway/Generated/Runway.TaskManagementClient.GetTasksById.g.cs index 7d6099a..f47d94a 100644 --- a/src/libs/Runway/Generated/Runway.TaskManagementClient.GetTasksById.g.cs +++ b/src/libs/Runway/Generated/Runway.TaskManagementClient.GetTasksById.g.cs @@ -111,8 +111,9 @@ partial void ProcessGetTasksByIdResponseContent( } else { - var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_404 = await global::Runway.Response2.FromJsonStreamAsync(__contentStream_404, JsonSerializerContext).ConfigureAwait(false); + __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + __value_404 = global::Runway.Response2.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -192,11 +193,25 @@ partial void ProcessGetTasksByIdResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, diff --git a/src/libs/Runway/Generated/Runway.UploadsClient.CreateUploads.g.cs b/src/libs/Runway/Generated/Runway.UploadsClient.CreateUploads.g.cs index 9a972d0..c0922da 100644 --- a/src/libs/Runway/Generated/Runway.UploadsClient.CreateUploads.g.cs +++ b/src/libs/Runway/Generated/Runway.UploadsClient.CreateUploads.g.cs @@ -118,7 +118,7 @@ partial void ProcessCreateUploadsResponseContent( } else { - var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); } } catch (global::System.Exception __ex) @@ -197,11 +197,25 @@ partial void ProcessCreateUploadsResponseContent( } catch (global::System.Exception __ex) { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + throw new global::Runway.ApiException( - message: __response.ReasonPhrase ?? string.Empty, + message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, statusCode: __response.StatusCode) { + ResponseBody = __content, ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key,