diff --git a/src/libs/Meshy/Generated/Meshy.AnimationClient.CreateAnimationTask.g.cs b/src/libs/Meshy/Generated/Meshy.AnimationClient.CreateAnimationTask.g.cs
index d4360e9..b46b1e3 100644
--- a/src/libs/Meshy/Generated/Meshy.AnimationClient.CreateAnimationTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.AnimationClient.CreateAnimationTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateAnimationTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateAnimationTaskAsync(
+ global::Meshy.AnimationRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateAnimationTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create an Animation task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateAnimationTaskAsResponseAsync(
+
global::Meshy.AnimationRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateAnimationTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/animations",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateAnimationTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateAnimationTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateAnimationTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateAnimationTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateAnimationTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateAnimationTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateAnimationTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateAnimationTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -481,9 +522,13 @@ partial void ProcessCreateAnimationTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -511,9 +556,13 @@ partial void ProcessCreateAnimationTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.AnimationClient.DeleteAnimationTask.g.cs b/src/libs/Meshy/Generated/Meshy.AnimationClient.DeleteAnimationTask.g.cs
index 324fa40..3901f9b 100644
--- a/src/libs/Meshy/Generated/Meshy.AnimationClient.DeleteAnimationTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.AnimationClient.DeleteAnimationTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteAnimationTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteAnimationTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete an Animation task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteAnimationTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteAnimationTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/animations/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteAnimationTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteAnimationTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteAnimationTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteAnimationTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteAnimationTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteAnimationTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteAnimationTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteAnimationTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteAnimationTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteAnimationTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.AnimationClient.GetAnimationTask.g.cs b/src/libs/Meshy/Generated/Meshy.AnimationClient.GetAnimationTask.g.cs
index 059cd41..d570174 100644
--- a/src/libs/Meshy/Generated/Meshy.AnimationClient.GetAnimationTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.AnimationClient.GetAnimationTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetAnimationTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetAnimationTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve an Animation task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetAnimationTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetAnimationTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/animations/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetAnimationTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetAnimationTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetAnimationTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetAnimationTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetAnimationTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetAnimationTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetAnimationTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetAnimationTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetAnimationTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.AnimationTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.AnimationTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetAnimationTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.AnimationTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.AnimationTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.AnimationClient.g.cs b/src/libs/Meshy/Generated/Meshy.AnimationClient.g.cs
index aa87974..e7037b4 100644
--- a/src/libs/Meshy/Generated/Meshy.AnimationClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.AnimationClient.g.cs
@@ -72,10 +72,10 @@ public AnimationClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public AnimationClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.AutoSDKHttpResponse.g.cs b/src/libs/Meshy/Generated/Meshy.AutoSDKHttpResponse.g.cs
new file mode 100644
index 0000000..abf3b34
--- /dev/null
+++ b/src/libs/Meshy/Generated/Meshy.AutoSDKHttpResponse.g.cs
@@ -0,0 +1,121 @@
+
+#nullable enable
+
+namespace Meshy
+{
+ ///
+ /// Represents a successful HTTP response with status code and headers.
+ ///
+ public partial class AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers)
+ : this(
+ statusCode: statusCode,
+ headers: headers,
+ requestUri: null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ global::System.Uri? requestUri)
+ {
+ StatusCode = statusCode;
+ Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers));
+ RequestUri = requestUri;
+ }
+
+ ///
+ /// Gets the HTTP status code.
+ ///
+ public global::System.Net.HttpStatusCode StatusCode { get; }
+ ///
+ /// Gets the response headers.
+ ///
+ public global::System.Collections.Generic.Dictionary> Headers { get; }
+ ///
+ /// Gets the final request URI associated with the response.
+ ///
+ public global::System.Uri? RequestUri { get; }
+
+ internal static global::System.Collections.Generic.Dictionary> CreateHeaders(
+ global::System.Net.Http.HttpResponseMessage response)
+ {
+ response = response ?? throw new global::System.ArgumentNullException(nameof(response));
+
+ var headers = global::System.Linq.Enumerable.ToDictionary(
+ response.Headers,
+ static header => header.Key,
+ static header => (global::System.Collections.Generic.IEnumerable)global::System.Linq.Enumerable.ToArray(header.Value),
+ global::System.StringComparer.OrdinalIgnoreCase);
+
+ if (response.Content?.Headers == null)
+ {
+ return headers;
+ }
+
+ foreach (var header in response.Content.Headers)
+ {
+ if (headers.TryGetValue(header.Key, out var existingValues))
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(
+ global::System.Linq.Enumerable.Concat(existingValues, header.Value));
+ }
+ else
+ {
+ headers[header.Key] = global::System.Linq.Enumerable.ToArray(header.Value);
+ }
+ }
+
+ return headers;
+ }
+ }
+
+ ///
+ /// Represents a successful HTTP response with status code, headers, and body.
+ ///
+ public partial class AutoSDKHttpResponse : AutoSDKHttpResponse
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ T body)
+ : this(
+ statusCode: statusCode,
+ headers: headers,
+ requestUri: null,
+ body: body)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AutoSDKHttpResponse(
+ global::System.Net.HttpStatusCode statusCode,
+ global::System.Collections.Generic.Dictionary> headers,
+ global::System.Uri? requestUri,
+ T body)
+ : base(statusCode, headers, requestUri)
+ {
+ Body = body;
+ }
+
+ ///
+ /// Gets the response body.
+ ///
+ public T Body { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.BalanceClient.GetBalance.g.cs b/src/libs/Meshy/Generated/Meshy.BalanceClient.GetBalance.g.cs
index 5700040..6a9ca89 100644
--- a/src/libs/Meshy/Generated/Meshy.BalanceClient.GetBalance.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.BalanceClient.GetBalance.g.cs
@@ -48,6 +48,23 @@ partial void ProcessGetBalanceResponseContent(
public async global::System.Threading.Tasks.Task GetBalanceAsync(
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetBalanceAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get credit balance
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetBalanceAsResponseAsync(
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +93,7 @@ partial void ProcessGetBalanceResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/balance",
baseUri: HttpClient.BaseAddress);
@@ -148,6 +166,8 @@ partial void ProcessGetBalanceResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -158,6 +178,11 @@ partial void ProcessGetBalanceResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -175,6 +200,8 @@ partial void ProcessGetBalanceResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -184,8 +211,7 @@ partial void ProcessGetBalanceResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -194,6 +220,11 @@ partial void ProcessGetBalanceResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -210,14 +241,15 @@ partial void ProcessGetBalanceResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -257,6 +289,8 @@ partial void ProcessGetBalanceResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -277,6 +311,8 @@ partial void ProcessGetBalanceResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -334,9 +370,13 @@ partial void ProcessGetBalanceResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.BalanceResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.BalanceResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -364,9 +404,13 @@ partial void ProcessGetBalanceResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.BalanceResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.BalanceResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.BalanceClient.g.cs b/src/libs/Meshy/Generated/Meshy.BalanceClient.g.cs
index e7a8eac..0f29dbc 100644
--- a/src/libs/Meshy/Generated/Meshy.BalanceClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.BalanceClient.g.cs
@@ -72,10 +72,10 @@ public BalanceClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public BalanceClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.IAnimationClient.CreateAnimationTask.g.cs b/src/libs/Meshy/Generated/Meshy.IAnimationClient.CreateAnimationTask.g.cs
index 2300904..f09e770 100644
--- a/src/libs/Meshy/Generated/Meshy.IAnimationClient.CreateAnimationTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IAnimationClient.CreateAnimationTask.g.cs
@@ -19,6 +19,18 @@ public partial interface IAnimationClient
///
/// Create an Animation task
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateAnimationTaskAsResponseAsync(
+
+ global::Meshy.AnimationRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create an Animation task
+ ///
///
/// ID of completed rigging task
///
diff --git a/src/libs/Meshy/Generated/Meshy.IAnimationClient.DeleteAnimationTask.g.cs b/src/libs/Meshy/Generated/Meshy.IAnimationClient.DeleteAnimationTask.g.cs
index 0b96834..d771792 100644
--- a/src/libs/Meshy/Generated/Meshy.IAnimationClient.DeleteAnimationTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IAnimationClient.DeleteAnimationTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IAnimationClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete an Animation task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteAnimationTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IAnimationClient.GetAnimationTask.g.cs b/src/libs/Meshy/Generated/Meshy.IAnimationClient.GetAnimationTask.g.cs
index 7175ef7..5a70fba 100644
--- a/src/libs/Meshy/Generated/Meshy.IAnimationClient.GetAnimationTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IAnimationClient.GetAnimationTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IAnimationClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve an Animation task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetAnimationTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IBalanceClient.GetBalance.g.cs b/src/libs/Meshy/Generated/Meshy.IBalanceClient.GetBalance.g.cs
index 88e258d..c1c44e7 100644
--- a/src/libs/Meshy/Generated/Meshy.IBalanceClient.GetBalance.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IBalanceClient.GetBalance.g.cs
@@ -13,5 +13,14 @@ public partial interface IBalanceClient
global::System.Threading.Tasks.Task GetBalanceAsync(
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get credit balance
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetBalanceAsResponseAsync(
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.CreateImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.CreateImageTo3DTask.g.cs
index d7d581c..f97d03c 100644
--- a/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.CreateImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.CreateImageTo3DTask.g.cs
@@ -19,6 +19,18 @@ public partial interface IImageTo3dClient
///
/// Create an Image to 3D task
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateImageTo3DTaskAsResponseAsync(
+
+ global::Meshy.ImageTo3DRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create an Image to 3D task
+ ///
///
/// Public URL or base64 data URI (.jpg/.jpeg/.png)
///
diff --git a/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.DeleteImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.DeleteImageTo3DTask.g.cs
index 7ec91a4..a33e536 100644
--- a/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.DeleteImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.DeleteImageTo3DTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IImageTo3dClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete an Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteImageTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.GetImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.GetImageTo3DTask.g.cs
index c381944..9c6c07b 100644
--- a/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.GetImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.GetImageTo3DTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IImageTo3dClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve an Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetImageTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.ListImageTo3DTasks.g.cs b/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.ListImageTo3DTasks.g.cs
index 23aa573..ecc7314 100644
--- a/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.ListImageTo3DTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IImageTo3dClient.ListImageTo3DTasks.g.cs
@@ -23,5 +23,24 @@ public partial interface IImageTo3dClient
global::Meshy.ListImageTo3DTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Image to 3D tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task>> ListImageTo3DTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListImageTo3DTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IImageToImageClient.CreateImageToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.IImageToImageClient.CreateImageToImageTask.g.cs
index 2bfb018..9f383db 100644
--- a/src/libs/Meshy/Generated/Meshy.IImageToImageClient.CreateImageToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IImageToImageClient.CreateImageToImageTask.g.cs
@@ -19,6 +19,18 @@ public partial interface IImageToImageClient
///
/// Create an Image to Image task
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateImageToImageTaskAsResponseAsync(
+
+ global::Meshy.ImageToImageRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create an Image to Image task
+ ///
///
///
/// Transformation description
diff --git a/src/libs/Meshy/Generated/Meshy.IImageToImageClient.DeleteImageToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.IImageToImageClient.DeleteImageToImageTask.g.cs
index 76b9929..8613669 100644
--- a/src/libs/Meshy/Generated/Meshy.IImageToImageClient.DeleteImageToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IImageToImageClient.DeleteImageToImageTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IImageToImageClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete an Image to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteImageToImageTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IImageToImageClient.GetImageToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.IImageToImageClient.GetImageToImageTask.g.cs
index b1b3eec..6105d01 100644
--- a/src/libs/Meshy/Generated/Meshy.IImageToImageClient.GetImageToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IImageToImageClient.GetImageToImageTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IImageToImageClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve an Image to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetImageToImageTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IImageToImageClient.ListImageToImageTasks.g.cs b/src/libs/Meshy/Generated/Meshy.IImageToImageClient.ListImageToImageTasks.g.cs
index 0588e6f..dacf228 100644
--- a/src/libs/Meshy/Generated/Meshy.IImageToImageClient.ListImageToImageTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IImageToImageClient.ListImageToImageTasks.g.cs
@@ -23,5 +23,24 @@ public partial interface IImageToImageClient
global::Meshy.ListImageToImageTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Image to Image tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task>> ListImageToImageTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListImageToImageTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.CreateMultiImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.CreateMultiImageTo3DTask.g.cs
index b7a7838..33a9dc1 100644
--- a/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.CreateMultiImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.CreateMultiImageTo3DTask.g.cs
@@ -19,6 +19,18 @@ public partial interface IMultiImageTo3dClient
///
/// Create a Multi-Image to 3D task
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateMultiImageTo3DTaskAsResponseAsync(
+
+ global::Meshy.MultiImageTo3DRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a Multi-Image to 3D task
+ ///
///
/// 1-4 images (URLs or base64 data URIs)
///
diff --git a/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.DeleteMultiImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.DeleteMultiImageTo3DTask.g.cs
index a1de8db..1dac668 100644
--- a/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.DeleteMultiImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.DeleteMultiImageTo3DTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IMultiImageTo3dClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a Multi-Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteMultiImageTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.GetMultiImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.GetMultiImageTo3DTask.g.cs
index 6103338..a4c7655 100644
--- a/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.GetMultiImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.GetMultiImageTo3DTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IMultiImageTo3dClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve a Multi-Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetMultiImageTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.ListMultiImageTo3DTasks.g.cs b/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.ListMultiImageTo3DTasks.g.cs
index c4c60f8..527a5de 100644
--- a/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.ListMultiImageTo3DTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IMultiImageTo3dClient.ListMultiImageTo3DTasks.g.cs
@@ -23,5 +23,24 @@ public partial interface IMultiImageTo3dClient
global::Meshy.ListMultiImageTo3DTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Multi-Image to 3D tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task>> ListMultiImageTo3DTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListMultiImageTo3DTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IRemeshClient.CreateRemeshTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRemeshClient.CreateRemeshTask.g.cs
index 0be1eda..899e285 100644
--- a/src/libs/Meshy/Generated/Meshy.IRemeshClient.CreateRemeshTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRemeshClient.CreateRemeshTask.g.cs
@@ -19,6 +19,18 @@ public partial interface IRemeshClient
///
/// Create a Remesh task
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateRemeshTaskAsResponseAsync(
+
+ global::Meshy.RemeshRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a Remesh task
+ ///
///
/// ID of completed task to remesh
///
diff --git a/src/libs/Meshy/Generated/Meshy.IRemeshClient.DeleteRemeshTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRemeshClient.DeleteRemeshTask.g.cs
index be466fa..ce415fd 100644
--- a/src/libs/Meshy/Generated/Meshy.IRemeshClient.DeleteRemeshTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRemeshClient.DeleteRemeshTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IRemeshClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a Remesh task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteRemeshTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IRemeshClient.GetRemeshTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRemeshClient.GetRemeshTask.g.cs
index 67c72b2..e96e77f 100644
--- a/src/libs/Meshy/Generated/Meshy.IRemeshClient.GetRemeshTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRemeshClient.GetRemeshTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IRemeshClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve a Remesh task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetRemeshTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IRemeshClient.ListRemeshTasks.g.cs b/src/libs/Meshy/Generated/Meshy.IRemeshClient.ListRemeshTasks.g.cs
index 369a6f9..0519c83 100644
--- a/src/libs/Meshy/Generated/Meshy.IRemeshClient.ListRemeshTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRemeshClient.ListRemeshTasks.g.cs
@@ -23,5 +23,24 @@ public partial interface IRemeshClient
global::Meshy.ListRemeshTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Remesh tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task>> ListRemeshTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListRemeshTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IRetextureClient.CreateRetextureTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRetextureClient.CreateRetextureTask.g.cs
index e2924b9..13699bd 100644
--- a/src/libs/Meshy/Generated/Meshy.IRetextureClient.CreateRetextureTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRetextureClient.CreateRetextureTask.g.cs
@@ -19,6 +19,18 @@ public partial interface IRetextureClient
///
/// Create a Retexture task
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateRetextureTaskAsResponseAsync(
+
+ global::Meshy.RetextureRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a Retexture task
+ ///
///
/// ID of completed task
///
diff --git a/src/libs/Meshy/Generated/Meshy.IRetextureClient.DeleteRetextureTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRetextureClient.DeleteRetextureTask.g.cs
index 622d14c..1e07531 100644
--- a/src/libs/Meshy/Generated/Meshy.IRetextureClient.DeleteRetextureTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRetextureClient.DeleteRetextureTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IRetextureClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a Retexture task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteRetextureTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IRetextureClient.GetRetextureTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRetextureClient.GetRetextureTask.g.cs
index c584ffe..998eefb 100644
--- a/src/libs/Meshy/Generated/Meshy.IRetextureClient.GetRetextureTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRetextureClient.GetRetextureTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IRetextureClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve a Retexture task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetRetextureTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IRetextureClient.ListRetextureTasks.g.cs b/src/libs/Meshy/Generated/Meshy.IRetextureClient.ListRetextureTasks.g.cs
index 1ba24fc..7c0b2db 100644
--- a/src/libs/Meshy/Generated/Meshy.IRetextureClient.ListRetextureTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRetextureClient.ListRetextureTasks.g.cs
@@ -23,5 +23,24 @@ public partial interface IRetextureClient
global::Meshy.ListRetextureTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Retexture tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task>> ListRetextureTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListRetextureTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IRiggingClient.CreateRiggingTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRiggingClient.CreateRiggingTask.g.cs
index 59d57ec..4b0b3a7 100644
--- a/src/libs/Meshy/Generated/Meshy.IRiggingClient.CreateRiggingTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRiggingClient.CreateRiggingTask.g.cs
@@ -19,6 +19,18 @@ public partial interface IRiggingClient
///
/// Create a Rigging task
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateRiggingTaskAsResponseAsync(
+
+ global::Meshy.RiggingRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a Rigging task
+ ///
///
/// ID of completed task
///
diff --git a/src/libs/Meshy/Generated/Meshy.IRiggingClient.DeleteRiggingTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRiggingClient.DeleteRiggingTask.g.cs
index 94487c9..84fa7d6 100644
--- a/src/libs/Meshy/Generated/Meshy.IRiggingClient.DeleteRiggingTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRiggingClient.DeleteRiggingTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IRiggingClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a Rigging task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteRiggingTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.IRiggingClient.GetRiggingTask.g.cs b/src/libs/Meshy/Generated/Meshy.IRiggingClient.GetRiggingTask.g.cs
index 7d0c49c..fddebea 100644
--- a/src/libs/Meshy/Generated/Meshy.IRiggingClient.GetRiggingTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.IRiggingClient.GetRiggingTask.g.cs
@@ -15,5 +15,16 @@ public partial interface IRiggingClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve a Rigging task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetRiggingTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.CreateTextTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.CreateTextTo3DTask.g.cs
index 9a51de1..2eca48b 100644
--- a/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.CreateTextTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.CreateTextTo3DTask.g.cs
@@ -19,6 +19,18 @@ public partial interface ITextTo3dClient
///
/// Create a Text to 3D task (preview or refine)
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateTextTo3DTaskAsResponseAsync(
+
+ global::Meshy.CreateTextTo3DTaskRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a Text to 3D task (preview or refine)
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
diff --git a/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.DeleteTextTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.DeleteTextTo3DTask.g.cs
index 4e44c77..37106d0 100644
--- a/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.DeleteTextTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.DeleteTextTo3DTask.g.cs
@@ -15,5 +15,16 @@ public partial interface ITextTo3dClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a Text to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteTextTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.GetTextTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.GetTextTo3DTask.g.cs
index 92ec359..2541320 100644
--- a/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.GetTextTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.GetTextTo3DTask.g.cs
@@ -15,5 +15,16 @@ public partial interface ITextTo3dClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve a Text to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetTextTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.ListTextTo3DTasks.g.cs b/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.ListTextTo3DTasks.g.cs
index bf2c96b..67d5c9e 100644
--- a/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.ListTextTo3DTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ITextTo3dClient.ListTextTo3DTasks.g.cs
@@ -23,5 +23,24 @@ public partial interface ITextTo3dClient
global::Meshy.ListTextTo3DTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Text to 3D tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task>> ListTextTo3DTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListTextTo3DTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.ITextToImageClient.CreateTextToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.ITextToImageClient.CreateTextToImageTask.g.cs
index 442ac73..8365d7d 100644
--- a/src/libs/Meshy/Generated/Meshy.ITextToImageClient.CreateTextToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ITextToImageClient.CreateTextToImageTask.g.cs
@@ -19,6 +19,18 @@ public partial interface ITextToImageClient
///
/// Create a Text to Image task
///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> CreateTextToImageTaskAsResponseAsync(
+
+ global::Meshy.TextToImageRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create a Text to Image task
+ ///
///
///
/// Text description for image generation
diff --git a/src/libs/Meshy/Generated/Meshy.ITextToImageClient.DeleteTextToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.ITextToImageClient.DeleteTextToImageTask.g.cs
index 1e896e6..20e4d63 100644
--- a/src/libs/Meshy/Generated/Meshy.ITextToImageClient.DeleteTextToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ITextToImageClient.DeleteTextToImageTask.g.cs
@@ -15,5 +15,16 @@ public partial interface ITextToImageClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete a Text to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task DeleteTextToImageTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.ITextToImageClient.GetTextToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.ITextToImageClient.GetTextToImageTask.g.cs
index 56eb03c..f664283 100644
--- a/src/libs/Meshy/Generated/Meshy.ITextToImageClient.GetTextToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ITextToImageClient.GetTextToImageTask.g.cs
@@ -15,5 +15,16 @@ public partial interface ITextToImageClient
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retrieve a Text to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task> GetTextToImageTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.ITextToImageClient.ListTextToImageTasks.g.cs b/src/libs/Meshy/Generated/Meshy.ITextToImageClient.ListTextToImageTasks.g.cs
index 55e8b39..fdf9e45 100644
--- a/src/libs/Meshy/Generated/Meshy.ITextToImageClient.ListTextToImageTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ITextToImageClient.ListTextToImageTasks.g.cs
@@ -23,5 +23,24 @@ public partial interface ITextToImageClient
global::Meshy.ListTextToImageTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Text to Image tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task>> ListTextToImageTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListTextToImageTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.CreateImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.CreateImageTo3DTask.g.cs
index 2135cfc..baf1e77 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.CreateImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.CreateImageTo3DTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateImageTo3DTaskAsync(
+ global::Meshy.ImageTo3DRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateImageTo3DTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create an Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateImageTo3DTaskAsResponseAsync(
+
global::Meshy.ImageTo3DRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/image-to-3d",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -448,9 +489,13 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -478,9 +523,13 @@ partial void ProcessCreateImageTo3DTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.DeleteImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.DeleteImageTo3DTask.g.cs
index ef85974..57420e8 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.DeleteImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.DeleteImageTo3DTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteImageTo3DTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteImageTo3DTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete an Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteImageTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteImageTo3DTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/image-to-3d/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteImageTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteImageTo3DTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteImageTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteImageTo3DTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteImageTo3DTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteImageTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteImageTo3DTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteImageTo3DTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteImageTo3DTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteImageTo3DTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.GetImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.GetImageTo3DTask.g.cs
index 8b73e2f..6920364 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.GetImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.GetImageTo3DTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetImageTo3DTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetImageTo3DTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve an Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetImageTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetImageTo3DTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/image-to-3d/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetImageTo3DTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetImageTo3DTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetImageTo3DTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetImageTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetImageTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetImageTo3DTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.ImageTo3DTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.ImageTo3DTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetImageTo3DTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.ImageTo3DTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.ImageTo3DTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.ListImageTo3DTasks.g.cs b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.ListImageTo3DTasks.g.cs
index 83951b4..0549a47 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.ListImageTo3DTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.ListImageTo3DTasks.g.cs
@@ -64,6 +64,36 @@ partial void ProcessListImageTo3DTasksResponseContent(
global::Meshy.ListImageTo3DTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListImageTo3DTasksAsResponseAsync(
+ pageNum: pageNum,
+ pageSize: pageSize,
+ sortBy: sortBy,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Image to 3D tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task>> ListImageTo3DTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListImageTo3DTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,13 +125,14 @@ partial void ProcessListImageTo3DTasksResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/image-to-3d",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_num", pageNum?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("sort_by", sortBy?.ToValueString())
+ .AddOptionalParameter("sort_by", sortBy?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::Meshy.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -175,6 +206,8 @@ partial void ProcessListImageTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +218,11 @@ partial void ProcessListImageTo3DTasksResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +240,8 @@ partial void ProcessListImageTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +251,7 @@ partial void ProcessListImageTo3DTasksResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +260,11 @@ partial void ProcessListImageTo3DTasksResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +281,15 @@ partial void ProcessListImageTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +329,8 @@ partial void ProcessListImageTo3DTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +351,8 @@ partial void ProcessListImageTo3DTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +377,13 @@ partial void ProcessListImageTo3DTasksResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +411,13 @@ partial void ProcessListImageTo3DTasksResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.g.cs b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.g.cs
index c2f6a7b..3d8fe50 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageTo3dClient.g.cs
@@ -72,10 +72,10 @@ public ImageTo3dClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public ImageTo3dClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.CreateImageToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.CreateImageToImageTask.g.cs
index 6e53908..8f87c53 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.CreateImageToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.CreateImageToImageTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateImageToImageTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateImageToImageTaskAsync(
+ global::Meshy.ImageToImageRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateImageToImageTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create an Image to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateImageToImageTaskAsResponseAsync(
+
global::Meshy.ImageToImageRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateImageToImageTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/image-to-image",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateImageToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateImageToImageTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateImageToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateImageToImageTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateImageToImageTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateImageToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateImageToImageTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateImageToImageTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -448,9 +489,13 @@ partial void ProcessCreateImageToImageTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -478,9 +523,13 @@ partial void ProcessCreateImageToImageTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.DeleteImageToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.DeleteImageToImageTask.g.cs
index faae01b..b6d56ce 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.DeleteImageToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.DeleteImageToImageTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteImageToImageTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteImageToImageTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete an Image to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteImageToImageTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteImageToImageTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/image-to-image/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteImageToImageTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteImageToImageTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteImageToImageTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteImageToImageTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteImageToImageTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteImageToImageTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteImageToImageTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteImageToImageTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteImageToImageTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteImageToImageTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.GetImageToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.GetImageToImageTask.g.cs
index 83f4b43..2100b22 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.GetImageToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.GetImageToImageTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetImageToImageTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetImageToImageTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve an Image to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetImageToImageTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetImageToImageTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/image-to-image/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetImageToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetImageToImageTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetImageToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetImageToImageTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetImageToImageTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetImageToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetImageToImageTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetImageToImageTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetImageToImageTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.ImageToImageTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.ImageToImageTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetImageToImageTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.ImageToImageTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.ImageToImageTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.ListImageToImageTasks.g.cs b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.ListImageToImageTasks.g.cs
index f8f650c..6528c4a 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.ListImageToImageTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.ListImageToImageTasks.g.cs
@@ -64,6 +64,36 @@ partial void ProcessListImageToImageTasksResponseContent(
global::Meshy.ListImageToImageTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListImageToImageTasksAsResponseAsync(
+ pageNum: pageNum,
+ pageSize: pageSize,
+ sortBy: sortBy,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Image to Image tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task>> ListImageToImageTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListImageToImageTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,13 +125,14 @@ partial void ProcessListImageToImageTasksResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/image-to-image",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_num", pageNum?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("sort_by", sortBy?.ToValueString())
+ .AddOptionalParameter("sort_by", sortBy?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::Meshy.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -175,6 +206,8 @@ partial void ProcessListImageToImageTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +218,11 @@ partial void ProcessListImageToImageTasksResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +240,8 @@ partial void ProcessListImageToImageTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +251,7 @@ partial void ProcessListImageToImageTasksResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +260,11 @@ partial void ProcessListImageToImageTasksResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +281,15 @@ partial void ProcessListImageToImageTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +329,8 @@ partial void ProcessListImageToImageTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +351,8 @@ partial void ProcessListImageToImageTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +377,13 @@ partial void ProcessListImageToImageTasksResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +411,13 @@ partial void ProcessListImageToImageTasksResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.g.cs b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.g.cs
index 8a6e31c..7232972 100644
--- a/src/libs/Meshy/Generated/Meshy.ImageToImageClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.ImageToImageClient.g.cs
@@ -72,10 +72,10 @@ public ImageToImageClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public ImageToImageClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.MeshyClient.g.cs b/src/libs/Meshy/Generated/Meshy.MeshyClient.g.cs
index 5be4541..bfa97e4 100644
--- a/src/libs/Meshy/Generated/Meshy.MeshyClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.MeshyClient.g.cs
@@ -43,7 +43,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public AnimationClient Animation => new AnimationClient(HttpClient, authorizations: Authorizations, options: Options)
+ public AnimationClient Animation => new AnimationClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -52,7 +52,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public BalanceClient Balance => new BalanceClient(HttpClient, authorizations: Authorizations, options: Options)
+ public BalanceClient Balance => new BalanceClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -61,7 +61,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public ImageTo3dClient ImageTo3d => new ImageTo3dClient(HttpClient, authorizations: Authorizations, options: Options)
+ public ImageTo3dClient ImageTo3d => new ImageTo3dClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -70,7 +70,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public ImageToImageClient ImageToImage => new ImageToImageClient(HttpClient, authorizations: Authorizations, options: Options)
+ public ImageToImageClient ImageToImage => new ImageToImageClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -79,7 +79,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public MultiImageTo3dClient MultiImageTo3d => new MultiImageTo3dClient(HttpClient, authorizations: Authorizations, options: Options)
+ public MultiImageTo3dClient MultiImageTo3d => new MultiImageTo3dClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -88,7 +88,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public RemeshClient Remesh => new RemeshClient(HttpClient, authorizations: Authorizations, options: Options)
+ public RemeshClient Remesh => new RemeshClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -97,7 +97,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public RetextureClient Retexture => new RetextureClient(HttpClient, authorizations: Authorizations, options: Options)
+ public RetextureClient Retexture => new RetextureClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -106,7 +106,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public RiggingClient Rigging => new RiggingClient(HttpClient, authorizations: Authorizations, options: Options)
+ public RiggingClient Rigging => new RiggingClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -115,7 +115,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public TextTo3dClient TextTo3d => new TextTo3dClient(HttpClient, authorizations: Authorizations, options: Options)
+ public TextTo3dClient TextTo3d => new TextTo3dClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -124,7 +124,7 @@ public sealed partial class MeshyClient : global::Meshy.IMeshyClient, global::Sy
///
///
///
- public TextToImageClient TextToImage => new TextToImageClient(HttpClient, authorizations: Authorizations, options: Options)
+ public TextToImageClient TextToImage => new TextToImageClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
JsonSerializerContext = JsonSerializerContext,
@@ -163,10 +163,10 @@ public MeshyClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public MeshyClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.CreateMultiImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.CreateMultiImageTo3DTask.g.cs
index bc59474..49c0162 100644
--- a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.CreateMultiImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.CreateMultiImageTo3DTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateMultiImageTo3DTaskAsync(
+ global::Meshy.MultiImageTo3DRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateMultiImageTo3DTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a Multi-Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateMultiImageTo3DTaskAsResponseAsync(
+
global::Meshy.MultiImageTo3DRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/multi-image-to-3d",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -448,9 +489,13 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -478,9 +523,13 @@ partial void ProcessCreateMultiImageTo3DTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.DeleteMultiImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.DeleteMultiImageTo3DTask.g.cs
index f569fd9..dbec4cc 100644
--- a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.DeleteMultiImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.DeleteMultiImageTo3DTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteMultiImageTo3DTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a Multi-Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteMultiImageTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/multi-image-to-3d/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteMultiImageTo3DTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.GetMultiImageTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.GetMultiImageTo3DTask.g.cs
index 703260f..a872bff 100644
--- a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.GetMultiImageTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.GetMultiImageTo3DTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetMultiImageTo3DTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve a Multi-Image to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetMultiImageTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/multi-image-to-3d/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.ImageTo3DTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.ImageTo3DTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetMultiImageTo3DTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.ImageTo3DTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.ImageTo3DTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.ListMultiImageTo3DTasks.g.cs b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.ListMultiImageTo3DTasks.g.cs
index 600b105..53fbcca 100644
--- a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.ListMultiImageTo3DTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.ListMultiImageTo3DTasks.g.cs
@@ -64,6 +64,36 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
global::Meshy.ListMultiImageTo3DTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListMultiImageTo3DTasksAsResponseAsync(
+ pageNum: pageNum,
+ pageSize: pageSize,
+ sortBy: sortBy,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Multi-Image to 3D tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task>> ListMultiImageTo3DTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListMultiImageTo3DTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,13 +125,14 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/multi-image-to-3d",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_num", pageNum?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("sort_by", sortBy?.ToValueString())
+ .AddOptionalParameter("sort_by", sortBy?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::Meshy.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -175,6 +206,8 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +218,11 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +240,8 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +251,7 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +260,11 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +281,15 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +329,8 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +351,8 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +377,13 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +411,13 @@ partial void ProcessListMultiImageTo3DTasksResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.g.cs b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.g.cs
index 2a0d9bc..f7488e1 100644
--- a/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.MultiImageTo3dClient.g.cs
@@ -72,10 +72,10 @@ public MultiImageTo3dClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public MultiImageTo3dClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.OptionsSupport.g.cs b/src/libs/Meshy/Generated/Meshy.OptionsSupport.g.cs
index 6c02a0c..063c688 100644
--- a/src/libs/Meshy/Generated/Meshy.OptionsSupport.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.OptionsSupport.g.cs
@@ -101,9 +101,45 @@ public sealed class AutoSDKRetryOptions
public int MaxAttempts { get; set; } = 1;
///
- /// Optional fixed delay between retry attempts.
+ /// Optional fixed delay between retry attempts. When set, this takes precedence over exponential backoff.
///
public global::System.TimeSpan? Delay { get; set; }
+
+ ///
+ /// Initial exponential backoff delay used when is not set.
+ ///
+ public global::System.TimeSpan InitialDelay { get; set; } = global::System.TimeSpan.FromSeconds(1);
+
+ ///
+ /// Maximum retry delay after applying retry headers, backoff, and jitter.
+ ///
+ public global::System.TimeSpan MaxDelay { get; set; } = global::System.TimeSpan.FromSeconds(30);
+
+ ///
+ /// Multiplier applied to exponential backoff after each failed attempt.
+ /// Values below 1 are normalized to 1.
+ ///
+ public double BackoffMultiplier { get; set; } = 2D;
+
+ ///
+ /// Randomizes computed backoff by plus or minus this ratio. Values are clamped to 0..1.
+ ///
+ public double JitterRatio { get; set; } = 0.2D;
+
+ ///
+ /// Whether Retry-After response headers should control retry delay when present.
+ ///
+ public bool UseRetryAfterHeader { get; set; } = true;
+
+ ///
+ /// Whether a rate-limit reset response header should control retry delay when present.
+ ///
+ public bool UseRateLimitResetHeader { get; set; }
+
+ ///
+ /// Optional provider-specific rate-limit reset header name. Values may be Unix seconds or an HTTP date.
+ ///
+ public string? RateLimitResetHeaderName { get; set; } = "X-RateLimit-Reset";
}
@@ -231,6 +267,16 @@ public sealed class AutoSDKHookContext
///
public bool WillRetry { get; set; }
+ ///
+ /// The computed retry delay when is true.
+ ///
+ public global::System.TimeSpan? RetryDelay { get; set; }
+
+ ///
+ /// A short retry reason such as exception or status:429.
+ ///
+ public string RetryReason { get; set; } = string.Empty;
+
///
/// The effective cancellation token for the current request attempt.
///
@@ -254,6 +300,8 @@ internal static class AutoSDKRequestOptionsSupport
int attempt,
int maxAttempts,
bool willRetry,
+ global::System.TimeSpan? retryDelay,
+ string retryReason,
global::System.Threading.CancellationToken cancellationToken)
{
return new global::Meshy.AutoSDKHookContext
@@ -271,6 +319,8 @@ internal static class AutoSDKRequestOptionsSupport
Attempt = attempt,
MaxAttempts = maxAttempts,
WillRetry = willRetry,
+ RetryDelay = retryDelay,
+ RetryReason = retryReason ?? string.Empty,
CancellationToken = cancellationToken,
};
}
@@ -338,19 +388,188 @@ internal static int GetMaxAttempts(
return maxAttempts < 1 ? 1 : maxAttempts;
}
- internal static async global::System.Threading.Tasks.Task DelayBeforeRetryAsync(
+ internal static global::System.TimeSpan GetRetryDelay(
global::Meshy.AutoSDKClientOptions clientOptions,
global::Meshy.AutoSDKRequestOptions? requestOptions,
+ global::System.Net.Http.HttpResponseMessage? response,
+ int attempt)
+ {
+ var retryOptions = requestOptions?.Retry ?? clientOptions.Retry ?? new global::Meshy.AutoSDKRetryOptions();
+
+ if (retryOptions.UseRetryAfterHeader &&
+ TryGetRetryAfterDelay(response, out var retryAfterDelay))
+ {
+ return ClampRetryDelay(retryAfterDelay, retryOptions);
+ }
+
+ if (retryOptions.UseRateLimitResetHeader &&
+ TryGetRateLimitResetDelay(response, retryOptions.RateLimitResetHeaderName, out var rateLimitResetDelay))
+ {
+ return ClampRetryDelay(rateLimitResetDelay, retryOptions);
+ }
+
+ if (retryOptions.Delay.HasValue)
+ {
+ return ClampRetryDelay(retryOptions.Delay.Value, retryOptions);
+ }
+
+ var initialDelay = retryOptions.InitialDelay;
+ if (initialDelay <= global::System.TimeSpan.Zero)
+ {
+ return global::System.TimeSpan.Zero;
+ }
+
+ var multiplier = retryOptions.BackoffMultiplier < 1D ? 1D : retryOptions.BackoffMultiplier;
+ var exponent = attempt <= 1 ? 0 : attempt - 1;
+ var delayMilliseconds = initialDelay.TotalMilliseconds * global::System.Math.Pow(multiplier, exponent);
+ if (double.IsNaN(delayMilliseconds) || double.IsInfinity(delayMilliseconds) || delayMilliseconds < 0D)
+ {
+ delayMilliseconds = 0D;
+ }
+
+ var delay = global::System.TimeSpan.FromMilliseconds(delayMilliseconds);
+ delay = ApplyJitter(delay, retryOptions.JitterRatio);
+ return ClampRetryDelay(delay, retryOptions);
+ }
+
+ internal static async global::System.Threading.Tasks.Task DelayBeforeRetryAsync(
+ global::System.TimeSpan retryDelay,
global::System.Threading.CancellationToken cancellationToken)
{
- var delay = requestOptions?.Retry?.Delay ??
- clientOptions.Retry?.Delay;
- if (!delay.HasValue || delay.Value <= global::System.TimeSpan.Zero)
+ if (retryDelay <= global::System.TimeSpan.Zero)
{
return;
}
- await global::System.Threading.Tasks.Task.Delay(delay.Value, cancellationToken).ConfigureAwait(false);
+ await global::System.Threading.Tasks.Task.Delay(retryDelay, cancellationToken).ConfigureAwait(false);
+ }
+
+ private static bool TryGetRetryAfterDelay(
+ global::System.Net.Http.HttpResponseMessage? response,
+ out global::System.TimeSpan delay)
+ {
+ delay = global::System.TimeSpan.Zero;
+ var retryAfter = response?.Headers.RetryAfter;
+ if (retryAfter == null)
+ {
+ return false;
+ }
+
+ if (retryAfter.Delta.HasValue)
+ {
+ delay = retryAfter.Delta.Value;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ if (retryAfter.Date.HasValue)
+ {
+ delay = retryAfter.Date.Value - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ return false;
+ }
+
+ private static bool TryGetRateLimitResetDelay(
+ global::System.Net.Http.HttpResponseMessage? response,
+ string? headerName,
+ out global::System.TimeSpan delay)
+ {
+ delay = global::System.TimeSpan.Zero;
+ if (response == null || string.IsNullOrWhiteSpace(headerName))
+ {
+ return false;
+ }
+
+ if (!response.Headers.TryGetValues(headerName, out var values) &&
+ (response.Content?.Headers == null || !response.Content.Headers.TryGetValues(headerName, out values)))
+ {
+ return false;
+ }
+
+ var value = global::System.Linq.Enumerable.FirstOrDefault(values);
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ return false;
+ }
+
+ value = value.Trim();
+ if (long.TryParse(
+ value,
+ global::System.Globalization.NumberStyles.Integer,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ out var unixSeconds))
+ {
+ delay = global::System.DateTimeOffset.FromUnixTimeSeconds(unixSeconds) - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ if (global::System.DateTimeOffset.TryParse(
+ value,
+ global::System.Globalization.CultureInfo.InvariantCulture,
+ global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal,
+ out var resetAt))
+ {
+ delay = resetAt - global::System.DateTimeOffset.UtcNow;
+ return delay > global::System.TimeSpan.Zero;
+ }
+
+ return false;
+ }
+
+ private static global::System.TimeSpan ApplyJitter(
+ global::System.TimeSpan delay,
+ double jitterRatio)
+ {
+ if (delay <= global::System.TimeSpan.Zero || jitterRatio <= 0D)
+ {
+ return delay;
+ }
+
+ if (jitterRatio > 1D)
+ {
+ jitterRatio = 1D;
+ }
+
+ var sample = NextJitterSample();
+ var multiplier = 1D - jitterRatio + (sample * jitterRatio * 2D);
+ var milliseconds = delay.TotalMilliseconds * multiplier;
+ if (double.IsNaN(milliseconds) || double.IsInfinity(milliseconds) || milliseconds < 0D)
+ {
+ milliseconds = 0D;
+ }
+
+ return global::System.TimeSpan.FromMilliseconds(milliseconds);
+ }
+
+ private static double NextJitterSample()
+ {
+ var bytes = new byte[8];
+ using (var randomNumberGenerator = global::System.Security.Cryptography.RandomNumberGenerator.Create())
+ {
+ randomNumberGenerator.GetBytes(bytes);
+ }
+
+ var value = global::System.BitConverter.ToUInt64(bytes, 0);
+ return value / (double)ulong.MaxValue;
+ }
+
+ private static global::System.TimeSpan ClampRetryDelay(
+ global::System.TimeSpan delay,
+ global::Meshy.AutoSDKRetryOptions retryOptions)
+ {
+ if (delay <= global::System.TimeSpan.Zero)
+ {
+ return global::System.TimeSpan.Zero;
+ }
+
+ var maxDelay = retryOptions.MaxDelay;
+ if (maxDelay > global::System.TimeSpan.Zero && delay > maxDelay)
+ {
+ return maxDelay;
+ }
+
+ return delay;
}
internal static bool ShouldRetryStatusCode(
diff --git a/src/libs/Meshy/Generated/Meshy.RemeshClient.CreateRemeshTask.g.cs b/src/libs/Meshy/Generated/Meshy.RemeshClient.CreateRemeshTask.g.cs
index 937c669..73fdf0e 100644
--- a/src/libs/Meshy/Generated/Meshy.RemeshClient.CreateRemeshTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RemeshClient.CreateRemeshTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateRemeshTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateRemeshTaskAsync(
+ global::Meshy.RemeshRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateRemeshTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a Remesh task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateRemeshTaskAsResponseAsync(
+
global::Meshy.RemeshRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateRemeshTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/remesh",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateRemeshTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateRemeshTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateRemeshTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateRemeshTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateRemeshTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateRemeshTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateRemeshTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateRemeshTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -448,9 +489,13 @@ partial void ProcessCreateRemeshTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -478,9 +523,13 @@ partial void ProcessCreateRemeshTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RemeshClient.DeleteRemeshTask.g.cs b/src/libs/Meshy/Generated/Meshy.RemeshClient.DeleteRemeshTask.g.cs
index 9ab509a..8376bb8 100644
--- a/src/libs/Meshy/Generated/Meshy.RemeshClient.DeleteRemeshTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RemeshClient.DeleteRemeshTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteRemeshTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteRemeshTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a Remesh task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteRemeshTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteRemeshTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/remesh/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteRemeshTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteRemeshTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteRemeshTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteRemeshTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteRemeshTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteRemeshTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteRemeshTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteRemeshTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteRemeshTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteRemeshTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RemeshClient.GetRemeshTask.g.cs b/src/libs/Meshy/Generated/Meshy.RemeshClient.GetRemeshTask.g.cs
index bced0de..9f39139 100644
--- a/src/libs/Meshy/Generated/Meshy.RemeshClient.GetRemeshTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RemeshClient.GetRemeshTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetRemeshTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetRemeshTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve a Remesh task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetRemeshTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetRemeshTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/remesh/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetRemeshTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetRemeshTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetRemeshTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetRemeshTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetRemeshTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetRemeshTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetRemeshTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetRemeshTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetRemeshTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.RemeshTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.RemeshTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetRemeshTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.RemeshTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.RemeshTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RemeshClient.ListRemeshTasks.g.cs b/src/libs/Meshy/Generated/Meshy.RemeshClient.ListRemeshTasks.g.cs
index 64b10a4..97bd3ed 100644
--- a/src/libs/Meshy/Generated/Meshy.RemeshClient.ListRemeshTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RemeshClient.ListRemeshTasks.g.cs
@@ -64,6 +64,36 @@ partial void ProcessListRemeshTasksResponseContent(
global::Meshy.ListRemeshTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListRemeshTasksAsResponseAsync(
+ pageNum: pageNum,
+ pageSize: pageSize,
+ sortBy: sortBy,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Remesh tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task>> ListRemeshTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListRemeshTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,13 +125,14 @@ partial void ProcessListRemeshTasksResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/remesh",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_num", pageNum?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("sort_by", sortBy?.ToValueString())
+ .AddOptionalParameter("sort_by", sortBy?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::Meshy.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -175,6 +206,8 @@ partial void ProcessListRemeshTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +218,11 @@ partial void ProcessListRemeshTasksResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +240,8 @@ partial void ProcessListRemeshTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +251,7 @@ partial void ProcessListRemeshTasksResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +260,11 @@ partial void ProcessListRemeshTasksResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +281,15 @@ partial void ProcessListRemeshTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +329,8 @@ partial void ProcessListRemeshTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +351,8 @@ partial void ProcessListRemeshTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +377,13 @@ partial void ProcessListRemeshTasksResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +411,13 @@ partial void ProcessListRemeshTasksResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RemeshClient.g.cs b/src/libs/Meshy/Generated/Meshy.RemeshClient.g.cs
index 0df3a1d..f5509f1 100644
--- a/src/libs/Meshy/Generated/Meshy.RemeshClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RemeshClient.g.cs
@@ -72,10 +72,10 @@ public RemeshClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public RemeshClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RetextureClient.CreateRetextureTask.g.cs b/src/libs/Meshy/Generated/Meshy.RetextureClient.CreateRetextureTask.g.cs
index 8a7aa9c..ec64e05 100644
--- a/src/libs/Meshy/Generated/Meshy.RetextureClient.CreateRetextureTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RetextureClient.CreateRetextureTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateRetextureTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateRetextureTaskAsync(
+ global::Meshy.RetextureRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateRetextureTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a Retexture task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateRetextureTaskAsResponseAsync(
+
global::Meshy.RetextureRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateRetextureTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/retexture",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateRetextureTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateRetextureTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateRetextureTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateRetextureTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateRetextureTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateRetextureTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateRetextureTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateRetextureTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -448,9 +489,13 @@ partial void ProcessCreateRetextureTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -478,9 +523,13 @@ partial void ProcessCreateRetextureTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RetextureClient.DeleteRetextureTask.g.cs b/src/libs/Meshy/Generated/Meshy.RetextureClient.DeleteRetextureTask.g.cs
index afac446..7dbfbc9 100644
--- a/src/libs/Meshy/Generated/Meshy.RetextureClient.DeleteRetextureTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RetextureClient.DeleteRetextureTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteRetextureTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteRetextureTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a Retexture task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteRetextureTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteRetextureTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/retexture/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteRetextureTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteRetextureTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteRetextureTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteRetextureTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteRetextureTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteRetextureTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteRetextureTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteRetextureTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteRetextureTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteRetextureTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RetextureClient.GetRetextureTask.g.cs b/src/libs/Meshy/Generated/Meshy.RetextureClient.GetRetextureTask.g.cs
index 03ea0dd..e79f2c1 100644
--- a/src/libs/Meshy/Generated/Meshy.RetextureClient.GetRetextureTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RetextureClient.GetRetextureTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetRetextureTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetRetextureTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve a Retexture task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetRetextureTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetRetextureTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/retexture/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetRetextureTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetRetextureTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetRetextureTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetRetextureTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetRetextureTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetRetextureTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetRetextureTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetRetextureTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetRetextureTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.RetextureTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.RetextureTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetRetextureTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.RetextureTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.RetextureTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RetextureClient.ListRetextureTasks.g.cs b/src/libs/Meshy/Generated/Meshy.RetextureClient.ListRetextureTasks.g.cs
index 31d2cc0..9feb6bb 100644
--- a/src/libs/Meshy/Generated/Meshy.RetextureClient.ListRetextureTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RetextureClient.ListRetextureTasks.g.cs
@@ -64,6 +64,36 @@ partial void ProcessListRetextureTasksResponseContent(
global::Meshy.ListRetextureTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListRetextureTasksAsResponseAsync(
+ pageNum: pageNum,
+ pageSize: pageSize,
+ sortBy: sortBy,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Retexture tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task>> ListRetextureTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListRetextureTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,13 +125,14 @@ partial void ProcessListRetextureTasksResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/retexture",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_num", pageNum?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("sort_by", sortBy?.ToValueString())
+ .AddOptionalParameter("sort_by", sortBy?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::Meshy.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -175,6 +206,8 @@ partial void ProcessListRetextureTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +218,11 @@ partial void ProcessListRetextureTasksResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +240,8 @@ partial void ProcessListRetextureTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +251,7 @@ partial void ProcessListRetextureTasksResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +260,11 @@ partial void ProcessListRetextureTasksResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +281,15 @@ partial void ProcessListRetextureTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +329,8 @@ partial void ProcessListRetextureTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +351,8 @@ partial void ProcessListRetextureTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +377,13 @@ partial void ProcessListRetextureTasksResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +411,13 @@ partial void ProcessListRetextureTasksResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RetextureClient.g.cs b/src/libs/Meshy/Generated/Meshy.RetextureClient.g.cs
index ac93a11..6df8527 100644
--- a/src/libs/Meshy/Generated/Meshy.RetextureClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RetextureClient.g.cs
@@ -72,10 +72,10 @@ public RetextureClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public RetextureClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RiggingClient.CreateRiggingTask.g.cs b/src/libs/Meshy/Generated/Meshy.RiggingClient.CreateRiggingTask.g.cs
index 7830d6f..d0904eb 100644
--- a/src/libs/Meshy/Generated/Meshy.RiggingClient.CreateRiggingTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RiggingClient.CreateRiggingTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateRiggingTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateRiggingTaskAsync(
+ global::Meshy.RiggingRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateRiggingTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a Rigging task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateRiggingTaskAsResponseAsync(
+
global::Meshy.RiggingRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateRiggingTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/rigging",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateRiggingTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateRiggingTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateRiggingTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateRiggingTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateRiggingTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateRiggingTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateRiggingTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateRiggingTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -481,9 +522,13 @@ partial void ProcessCreateRiggingTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -511,9 +556,13 @@ partial void ProcessCreateRiggingTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RiggingClient.DeleteRiggingTask.g.cs b/src/libs/Meshy/Generated/Meshy.RiggingClient.DeleteRiggingTask.g.cs
index fe50ae4..2adfadd 100644
--- a/src/libs/Meshy/Generated/Meshy.RiggingClient.DeleteRiggingTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RiggingClient.DeleteRiggingTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteRiggingTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteRiggingTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a Rigging task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteRiggingTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteRiggingTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/rigging/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteRiggingTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteRiggingTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteRiggingTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteRiggingTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteRiggingTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteRiggingTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteRiggingTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteRiggingTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteRiggingTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteRiggingTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RiggingClient.GetRiggingTask.g.cs b/src/libs/Meshy/Generated/Meshy.RiggingClient.GetRiggingTask.g.cs
index 46839eb..a3f1842 100644
--- a/src/libs/Meshy/Generated/Meshy.RiggingClient.GetRiggingTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RiggingClient.GetRiggingTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetRiggingTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetRiggingTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve a Rigging task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetRiggingTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetRiggingTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/rigging/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetRiggingTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetRiggingTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetRiggingTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetRiggingTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetRiggingTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetRiggingTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetRiggingTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetRiggingTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetRiggingTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.RiggingTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.RiggingTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetRiggingTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.RiggingTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.RiggingTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.RiggingClient.g.cs b/src/libs/Meshy/Generated/Meshy.RiggingClient.g.cs
index 7e16475..0675a81 100644
--- a/src/libs/Meshy/Generated/Meshy.RiggingClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.RiggingClient.g.cs
@@ -72,10 +72,10 @@ public RiggingClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public RiggingClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.CreateTextTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.CreateTextTo3DTask.g.cs
index 0722433..f54ae29 100644
--- a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.CreateTextTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.CreateTextTo3DTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateTextTo3DTaskAsync(
+ global::Meshy.CreateTextTo3DTaskRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateTextTo3DTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a Text to 3D task (preview or refine)
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateTextTo3DTaskAsResponseAsync(
+
global::Meshy.CreateTextTo3DTaskRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -82,6 +104,7 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v2/text-to-3d",
baseUri: HttpClient.BaseAddress);
@@ -161,6 +184,8 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -171,6 +196,11 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -188,6 +218,8 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -197,8 +229,7 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -207,6 +238,11 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -223,14 +259,15 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -270,6 +307,8 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -290,6 +329,8 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Bad request
@@ -451,9 +492,13 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -481,9 +526,13 @@ partial void ProcessCreateTextTo3DTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.DeleteTextTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.DeleteTextTo3DTask.g.cs
index f4da49b..c5d943b 100644
--- a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.DeleteTextTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.DeleteTextTo3DTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteTextTo3DTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteTextTo3DTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a Text to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteTextTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteTextTo3DTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v2/text-to-3d/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteTextTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteTextTo3DTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteTextTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteTextTo3DTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteTextTo3DTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteTextTo3DTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteTextTo3DTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteTextTo3DTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteTextTo3DTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteTextTo3DTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.GetTextTo3DTask.g.cs b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.GetTextTo3DTask.g.cs
index f1e4e74..f6bf304 100644
--- a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.GetTextTo3DTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.GetTextTo3DTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetTextTo3DTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetTextTo3DTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve a Text to 3D task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetTextTo3DTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetTextTo3DTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v2/text-to-3d/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetTextTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetTextTo3DTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetTextTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetTextTo3DTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetTextTo3DTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetTextTo3DTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetTextTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetTextTo3DTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetTextTo3DTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.TextTo3DTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.TextTo3DTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetTextTo3DTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.TextTo3DTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.TextTo3DTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.ListTextTo3DTasks.g.cs b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.ListTextTo3DTasks.g.cs
index 87d86f4..6a71c24 100644
--- a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.ListTextTo3DTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.ListTextTo3DTasks.g.cs
@@ -64,6 +64,36 @@ partial void ProcessListTextTo3DTasksResponseContent(
global::Meshy.ListTextTo3DTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListTextTo3DTasksAsResponseAsync(
+ pageNum: pageNum,
+ pageSize: pageSize,
+ sortBy: sortBy,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Text to 3D tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task>> ListTextTo3DTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListTextTo3DTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,13 +125,14 @@ partial void ProcessListTextTo3DTasksResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v2/text-to-3d",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_num", pageNum?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("sort_by", sortBy?.ToValueString())
+ .AddOptionalParameter("sort_by", sortBy?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::Meshy.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -175,6 +206,8 @@ partial void ProcessListTextTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +218,11 @@ partial void ProcessListTextTo3DTasksResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +240,8 @@ partial void ProcessListTextTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +251,7 @@ partial void ProcessListTextTo3DTasksResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +260,11 @@ partial void ProcessListTextTo3DTasksResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +281,15 @@ partial void ProcessListTextTo3DTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +329,8 @@ partial void ProcessListTextTo3DTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +351,8 @@ partial void ProcessListTextTo3DTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +377,13 @@ partial void ProcessListTextTo3DTasksResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +411,13 @@ partial void ProcessListTextTo3DTasksResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.g.cs b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.g.cs
index 74a5805..28d6294 100644
--- a/src/libs/Meshy/Generated/Meshy.TextTo3dClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextTo3dClient.g.cs
@@ -72,10 +72,10 @@ public TextTo3dClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public TextTo3dClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextToImageClient.CreateTextToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.TextToImageClient.CreateTextToImageTask.g.cs
index 0257132..b1a9e05 100644
--- a/src/libs/Meshy/Generated/Meshy.TextToImageClient.CreateTextToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextToImageClient.CreateTextToImageTask.g.cs
@@ -50,6 +50,28 @@ partial void ProcessCreateTextToImageTaskResponseContent(
///
public async global::System.Threading.Tasks.Task CreateTextToImageTaskAsync(
+ global::Meshy.TextToImageRequest request,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateTextToImageTaskAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create a Text to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> CreateTextToImageTaskAsResponseAsync(
+
global::Meshy.TextToImageRequest request,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -84,6 +106,7 @@ partial void ProcessCreateTextToImageTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/text-to-image",
baseUri: HttpClient.BaseAddress);
@@ -163,6 +186,8 @@ partial void ProcessCreateTextToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -173,6 +198,11 @@ partial void ProcessCreateTextToImageTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -190,6 +220,8 @@ partial void ProcessCreateTextToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -199,8 +231,7 @@ partial void ProcessCreateTextToImageTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -209,6 +240,11 @@ partial void ProcessCreateTextToImageTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -225,14 +261,15 @@ partial void ProcessCreateTextToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -272,6 +309,8 @@ partial void ProcessCreateTextToImageTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -292,6 +331,8 @@ partial void ProcessCreateTextToImageTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -448,9 +489,13 @@ partial void ProcessCreateTextToImageTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.CreateTaskResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -478,9 +523,13 @@ partial void ProcessCreateTextToImageTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.CreateTaskResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextToImageClient.DeleteTextToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.TextToImageClient.DeleteTextToImageTask.g.cs
index e2ee2e1..a7a58a2 100644
--- a/src/libs/Meshy/Generated/Meshy.TextToImageClient.DeleteTextToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextToImageClient.DeleteTextToImageTask.g.cs
@@ -47,6 +47,24 @@ partial void ProcessDeleteTextToImageTaskResponse(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ await DeleteTextToImageTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+ }
+ ///
+ /// Delete a Text to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteTextToImageTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -76,6 +94,7 @@ partial void ProcessDeleteTextToImageTaskResponse(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/text-to-image/{id}",
baseUri: HttpClient.BaseAddress);
@@ -149,6 +168,8 @@ partial void ProcessDeleteTextToImageTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -159,6 +180,11 @@ partial void ProcessDeleteTextToImageTaskResponse(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -176,6 +202,8 @@ partial void ProcessDeleteTextToImageTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -185,8 +213,7 @@ partial void ProcessDeleteTextToImageTaskResponse(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -195,6 +222,11 @@ partial void ProcessDeleteTextToImageTaskResponse(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -211,14 +243,15 @@ partial void ProcessDeleteTextToImageTaskResponse(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -258,6 +291,8 @@ partial void ProcessDeleteTextToImageTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -278,6 +313,8 @@ partial void ProcessDeleteTextToImageTaskResponse(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -298,6 +335,10 @@ partial void ProcessDeleteTextToImageTaskResponse(
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
@@ -319,6 +360,10 @@ partial void ProcessDeleteTextToImageTaskResponse(
try
{
__response.EnsureSuccessStatusCode();
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextToImageClient.GetTextToImageTask.g.cs b/src/libs/Meshy/Generated/Meshy.TextToImageClient.GetTextToImageTask.g.cs
index b57f7fa..9ba99be 100644
--- a/src/libs/Meshy/Generated/Meshy.TextToImageClient.GetTextToImageTask.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextToImageClient.GetTextToImageTask.g.cs
@@ -52,6 +52,26 @@ partial void ProcessGetTextToImageTaskResponseContent(
string id,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await GetTextToImageTaskAsResponseAsync(
+ id: id,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Retrieve a Text to Image task
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task> GetTextToImageTaskAsResponseAsync(
+ string id,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -81,6 +101,7 @@ partial void ProcessGetTextToImageTaskResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: $"/openapi/v1/text-to-image/{id}",
baseUri: HttpClient.BaseAddress);
@@ -154,6 +175,8 @@ partial void ProcessGetTextToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -164,6 +187,11 @@ partial void ProcessGetTextToImageTaskResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -181,6 +209,8 @@ partial void ProcessGetTextToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -190,8 +220,7 @@ partial void ProcessGetTextToImageTaskResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -200,6 +229,11 @@ partial void ProcessGetTextToImageTaskResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -216,14 +250,15 @@ partial void ProcessGetTextToImageTaskResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -263,6 +298,8 @@ partial void ProcessGetTextToImageTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -283,6 +320,8 @@ partial void ProcessGetTextToImageTaskResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
@@ -340,9 +379,13 @@ partial void ProcessGetTextToImageTaskResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Meshy.TextToImageTask.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Meshy.TextToImageTask.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -370,9 +413,13 @@ partial void ProcessGetTextToImageTaskResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Meshy.TextToImageTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Meshy.TextToImageTask.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextToImageClient.ListTextToImageTasks.g.cs b/src/libs/Meshy/Generated/Meshy.TextToImageClient.ListTextToImageTasks.g.cs
index 7c19c0e..1e4ccd5 100644
--- a/src/libs/Meshy/Generated/Meshy.TextToImageClient.ListTextToImageTasks.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextToImageClient.ListTextToImageTasks.g.cs
@@ -64,6 +64,36 @@ partial void ProcessListTextToImageTasksResponseContent(
global::Meshy.ListTextToImageTasksSortBy? sortBy = default,
global::Meshy.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ListTextToImageTasksAsResponseAsync(
+ pageNum: pageNum,
+ pageSize: pageSize,
+ sortBy: sortBy,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// List Text to Image tasks
+ ///
+ ///
+ /// Default Value: 1
+ ///
+ ///
+ /// Default Value: 10
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task>> ListTextToImageTasksAsResponseAsync(
+ int? pageNum = default,
+ int? pageSize = default,
+ global::Meshy.ListTextToImageTasksSortBy? sortBy = default,
+ global::Meshy.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -95,13 +125,14 @@ partial void ProcessListTextToImageTasksResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Meshy.PathBuilder(
path: "/openapi/v1/text-to-image",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_num", pageNum?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
- .AddOptionalParameter("sort_by", sortBy?.ToValueString())
+ .AddOptionalParameter("sort_by", sortBy?.ToValueString())
;
var __path = __pathBuilder.ToString();
__path = global::Meshy.AutoSDKRequestOptionsSupport.AppendQueryParameters(
@@ -175,6 +206,8 @@ partial void ProcessListTextToImageTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +218,11 @@ partial void ProcessListTextToImageTasksResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +240,8 @@ partial void ProcessListTextToImageTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -211,8 +251,7 @@ partial void ProcessListTextToImageTasksResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +260,11 @@ partial void ProcessListTextToImageTasksResponseContent(
__attempt < __maxAttempts &&
global::Meshy.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Meshy.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Meshy.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Meshy.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +281,15 @@ partial void ProcessListTextToImageTasksResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
__response.Dispose();
__response = null;
__httpRequest.Dispose();
__httpRequest = null;
await global::Meshy.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +329,8 @@ partial void ProcessListTextToImageTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +351,8 @@ partial void ProcessListTextToImageTasksResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -328,9 +377,13 @@ partial void ProcessListTextToImageTasksResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
+ var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -358,9 +411,13 @@ partial void ProcessListTextToImageTasksResponseContent(
#endif
).ConfigureAwait(false);
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Meshy.AutoSDKHttpResponse>(
+ statusCode: __response.StatusCode,
+ headers: global::Meshy.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Meshy/Generated/Meshy.TextToImageClient.g.cs b/src/libs/Meshy/Generated/Meshy.TextToImageClient.g.cs
index e96b1ae..0fb50eb 100644
--- a/src/libs/Meshy/Generated/Meshy.TextToImageClient.g.cs
+++ b/src/libs/Meshy/Generated/Meshy.TextToImageClient.g.cs
@@ -72,10 +72,10 @@ public TextToImageClient(
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// Dispose the HttpClient when the instance is disposed. True by default.
public TextToImageClient(
- global::System.Net.Http.HttpClient? httpClient = null,
- global::System.Uri? baseUri = null,
- global::System.Collections.Generic.List? authorizations = null,
- global::Meshy.AutoSDKClientOptions? options = null,
+ global::System.Net.Http.HttpClient? httpClient,
+ global::System.Uri? baseUri,
+ global::System.Collections.Generic.List? authorizations,
+ global::Meshy.AutoSDKClientOptions? options,
bool disposeHttpClient = true)
{