From 6c28a6bd37fa172f0e0c66968d0933b92becf9a4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 03:32:22 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...hreeDAIStudio.AccountClient.GetWallet.g.cs | 24 ++-- .../Generated/ThreeDAIStudio.Exceptions.g.cs | 134 ++++++++++++++++++ ...uanClient.CreateTencentHunyuanProTask.g.cs | 24 ++-- ...nClient.CreateTencentHunyuanRapidTask.g.cs | 24 ++-- ...asksClient.GetGenerationRequestStatus.g.cs | 24 ++-- ...IStudio.ToolsClient.CreateConvertTask.g.cs | 24 ++-- ...udio.TrellisClient.CreateTrellis2Task.g.cs | 24 ++-- ....TripoClient.CreateTripoImageTo3DTask.g.cs | 24 ++-- ...lient.CreateTripoImageTo3DVersionTask.g.cs | 24 ++-- ...poClient.CreateTripoMultiviewTo3DTask.g.cs | 24 ++-- ...t.CreateTripoMultiviewTo3DVersionTask.g.cs | 24 ++-- ...ripoClient.CreateTripoP1ImageTo3DTask.g.cs | 24 ++-- ...Client.CreateTripoP1MultiviewTo3DTask.g.cs | 24 ++-- ...TripoClient.CreateTripoP1TextTo3DTask.g.cs | 24 ++-- ...o.TripoClient.CreateTripoTextTo3DTask.g.cs | 24 ++-- ...Client.CreateTripoTextTo3DVersionTask.g.cs | 24 ++-- 16 files changed, 284 insertions(+), 210 deletions(-) diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AccountClient.GetWallet.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AccountClient.GetWallet.g.cs index b00c80e..180ea15 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AccountClient.GetWallet.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.AccountClient.GetWallet.g.cs @@ -347,17 +347,15 @@ partial void ProcessGetWalletResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessGetWalletResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Exceptions.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Exceptions.g.cs index 18abff0..7ee3c79 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Exceptions.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.Exceptions.g.cs @@ -12,16 +12,19 @@ public partial class ApiException : global::System.Exception /// The HTTP status code of the response. /// public global::System.Net.HttpStatusCode StatusCode { get; } + /// /// 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; } + /// /// The response headers. /// public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; } + /// /// Initializes a new instance of the class. /// @@ -49,6 +52,103 @@ public ApiException(string message, global::System.Exception? innerException, gl { StatusCode = statusCode; } + + /// + /// Constructs an instance whose runtime type matches the response status code when the typed exception hierarchy is enabled. Always returns a plain when the hierarchy is disabled. + /// + /// The HTTP status code of the response. + /// The error message. + /// An inner exception, when one is available. + /// The response headers; consulted for 429 Retry-After parsing when present. + public static global::ThreeDAIStudio.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::ThreeDAIStudio.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::ThreeDAIStudio.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::ThreeDAIStudio.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseHeaders = responseHeaders; + return exception; + } + + /// + /// Parses a Retry-After response header (delta-seconds or HTTP-date) into a . + /// Returns null when the header is missing or unparseable. Public so consumer code that observes + /// directly can recover the value without re-implementing the parser. + /// + public static global::System.TimeSpan? TryParseRetryAfter( + global::System.Collections.Generic.IDictionary>? headers) + { + if (headers == null) + { + return null; + } + + global::System.Collections.Generic.IEnumerable? values = null; + foreach (var entry in headers) + { + if (string.Equals(entry.Key, "Retry-After", global::System.StringComparison.OrdinalIgnoreCase)) + { + values = entry.Value; + break; + } + } + + if (values == null) + { + return null; + } + + string? raw = null; + foreach (var value in values) + { + if (!string.IsNullOrWhiteSpace(value)) + { + raw = value.Trim(); + break; + } + } + + if (string.IsNullOrEmpty(raw)) + { + return null; + } + + if (int.TryParse( + raw, + global::System.Globalization.NumberStyles.Integer, + global::System.Globalization.CultureInfo.InvariantCulture, + out var seconds) && seconds >= 0) + { + return global::System.TimeSpan.FromSeconds(seconds); + } + + if (global::System.DateTimeOffset.TryParse( + raw, + global::System.Globalization.CultureInfo.InvariantCulture, + global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal, + out var when)) + { + var delta = when - global::System.DateTimeOffset.UtcNow; + return delta > global::System.TimeSpan.Zero ? delta : global::System.TimeSpan.Zero; + } + + return null; + } } /// @@ -88,5 +188,39 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode) { } + + /// + /// Constructs an whose runtime type matches the response status code when the typed exception hierarchy is enabled. + /// + /// The HTTP status code of the response. + /// The error message. + /// An inner exception, when one is available. + /// The response headers; consulted for 429 Retry-After parsing when present. + public static new global::ThreeDAIStudio.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::ThreeDAIStudio.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::ThreeDAIStudio.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + T? responseObject, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::ThreeDAIStudio.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseObject = responseObject; + exception.ResponseHeaders = responseHeaders; + return exception; + } } } \ No newline at end of file diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanProTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanProTask.g.cs index 69c550d..0bb8c0e 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanProTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanProTask.g.cs @@ -367,17 +367,15 @@ partial void ProcessCreateTencentHunyuanProTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -414,17 +412,15 @@ partial void ProcessCreateTencentHunyuanProTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanRapidTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanRapidTask.g.cs index 393e759..ea738c3 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanRapidTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.HunyuanClient.CreateTencentHunyuanRapidTask.g.cs @@ -367,17 +367,15 @@ partial void ProcessCreateTencentHunyuanRapidTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -414,17 +412,15 @@ partial void ProcessCreateTencentHunyuanRapidTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TasksClient.GetGenerationRequestStatus.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TasksClient.GetGenerationRequestStatus.g.cs index 7830eac..323982b 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TasksClient.GetGenerationRequestStatus.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TasksClient.GetGenerationRequestStatus.g.cs @@ -356,17 +356,15 @@ partial void ProcessGetGenerationRequestStatusResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -403,17 +401,15 @@ partial void ProcessGetGenerationRequestStatusResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.ToolsClient.CreateConvertTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.ToolsClient.CreateConvertTask.g.cs index 4ca3030..668082b 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.ToolsClient.CreateConvertTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.ToolsClient.CreateConvertTask.g.cs @@ -367,17 +367,15 @@ partial void ProcessCreateConvertTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -414,17 +412,15 @@ partial void ProcessCreateConvertTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TrellisClient.CreateTrellis2Task.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TrellisClient.CreateTrellis2Task.g.cs index cbbc169..e6b996f 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TrellisClient.CreateTrellis2Task.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TrellisClient.CreateTrellis2Task.g.cs @@ -367,17 +367,15 @@ partial void ProcessCreateTrellis2TaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -414,17 +412,15 @@ partial void ProcessCreateTrellis2TaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DTask.g.cs index 26315b3..71643d4 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DTask.g.cs @@ -365,17 +365,15 @@ partial void ProcessCreateTripoImageTo3DTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -412,17 +410,15 @@ partial void ProcessCreateTripoImageTo3DTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DVersionTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DVersionTask.g.cs index 5d81fc2..1b09cfa 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DVersionTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoImageTo3DVersionTask.g.cs @@ -374,17 +374,15 @@ partial void ProcessCreateTripoImageTo3DVersionTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -421,17 +419,15 @@ partial void ProcessCreateTripoImageTo3DVersionTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DTask.g.cs index 12611c0..2a26546 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DTask.g.cs @@ -365,17 +365,15 @@ partial void ProcessCreateTripoMultiviewTo3DTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -412,17 +410,15 @@ partial void ProcessCreateTripoMultiviewTo3DTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DVersionTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DVersionTask.g.cs index 6cb396e..15a84a9 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DVersionTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoMultiviewTo3DVersionTask.g.cs @@ -374,17 +374,15 @@ partial void ProcessCreateTripoMultiviewTo3DVersionTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -421,17 +419,15 @@ partial void ProcessCreateTripoMultiviewTo3DVersionTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1ImageTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1ImageTo3DTask.g.cs index bacd4da..55f9310 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1ImageTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1ImageTo3DTask.g.cs @@ -365,17 +365,15 @@ partial void ProcessCreateTripoP1ImageTo3DTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -412,17 +410,15 @@ partial void ProcessCreateTripoP1ImageTo3DTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1MultiviewTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1MultiviewTo3DTask.g.cs index d60cf9e..ca57407 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1MultiviewTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1MultiviewTo3DTask.g.cs @@ -365,17 +365,15 @@ partial void ProcessCreateTripoP1MultiviewTo3DTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -412,17 +410,15 @@ partial void ProcessCreateTripoP1MultiviewTo3DTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1TextTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1TextTo3DTask.g.cs index 13669c8..ab72fa9 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1TextTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoP1TextTo3DTask.g.cs @@ -365,17 +365,15 @@ partial void ProcessCreateTripoP1TextTo3DTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -412,17 +410,15 @@ partial void ProcessCreateTripoP1TextTo3DTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DTask.g.cs index f85e740..8873b02 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DTask.g.cs @@ -365,17 +365,15 @@ partial void ProcessCreateTripoTextTo3DTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -412,17 +410,15 @@ partial void ProcessCreateTripoTextTo3DTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DVersionTask.g.cs b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DVersionTask.g.cs index a84f7fa..5cc2199 100644 --- a/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DVersionTask.g.cs +++ b/src/libs/ThreeDAIStudio/Generated/ThreeDAIStudio.TripoClient.CreateTripoTextTo3DVersionTask.g.cs @@ -374,17 +374,15 @@ partial void ProcessCreateTripoTextTo3DVersionTaskResponseContent( } catch (global::System.Exception __ex) { - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -421,17 +419,15 @@ partial void ProcessCreateTripoTextTo3DVersionTaskResponseContent( { } - throw new global::ThreeDAIStudio.ApiException( + throw global::ThreeDAIStudio.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } }