diff --git a/src/libs/Voicebox/Generated/Voicebox.AutoSDKHttpResponse.g.cs b/src/libs/Voicebox/Generated/Voicebox.AutoSDKHttpResponse.g.cs
new file mode 100644
index 0000000..e04a98f
--- /dev/null
+++ b/src/libs/Voicebox/Generated/Voicebox.AutoSDKHttpResponse.g.cs
@@ -0,0 +1,121 @@
+
+#nullable enable
+
+namespace Voicebox
+{
+ ///
+ /// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs
index 7e04270..987fc12 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Add a sample to a voice profile.
///
///
+ ///
+ /// 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> AddProfileSampleProfilesProfileIdSamplesPostAsResponseAsync(
+ string profileId,
+
+ global::Voicebox.BodyAddProfileSampleProfilesProfileIdSamplesPost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Add Profile Sample
+ /// Add a sample to a voice profile.
+ ///
+ ///
///
///
///
@@ -37,5 +52,46 @@ public partial interface IVoiceboxClient
string referenceText,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Add Profile Sample
+ /// Add a sample to a voice profile.
+ ///
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ /// 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 AddProfileSampleProfilesProfileIdSamplesPostAsync(
+ string profileId,
+ global::System.IO.Stream file,
+ string filename,
+ string referenceText,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Add Profile Sample
+ /// Add a sample to a voice profile.
+ ///
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ /// 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> AddProfileSampleProfilesProfileIdSamplesPostAsResponseAsync(
+ string profileId,
+ global::System.IO.Stream file,
+ string filename,
+ string referenceText,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs
index 6c89c49..0481c5b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Add a generation to a story.
///
///
+ ///
+ /// 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> AddStoryItemStoriesStoryIdItemsPostAsResponseAsync(
+ string storyId,
+
+ global::Voicebox.StoryItemCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Add Story Item
+ /// Add a generation to a story.
+ ///
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs
index 0f19e8a..60e122b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Apply an effects chain to an existing generation, creating a new version.
///
///
+ ///
+ /// 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> ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPostAsResponseAsync(
+ string generationId,
+
+ global::Voicebox.ApplyEffectsRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Apply Effects To Generation
+ /// Apply an effects chain to an existing generation, creating a new version.
+ ///
+ ///
///
///
/// Label for this version (auto-generated if omitted)
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs
index b9a7cda..5918d7c 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Cancel Generation
+ /// Cancel a queued or running generation.
+ ///
+ ///
+ /// 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> CancelGenerationGenerateGenerationIdCancelPostAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs
index e6cab4e..9604fd9 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Cancel Model Download
/// Cancel or dismiss an errored/stale download 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> CancelModelDownloadModelsDownloadCancelPostAsResponseAsync(
+
+ global::Voicebox.ModelDownloadRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Cancel Model Download
+ /// Cancel or dismiss an errored/stale download task.
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs
index af272ed..794bd36 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs
@@ -18,5 +18,19 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task CaptureReadinessEndpointCaptureReadinessGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Capture Readiness Endpoint
+ /// Whether the STT and LLM models the user has selected are downloaded.
+ /// The frontend gates the global hotkey on this — pressing the chord with
+ /// a missing model would otherwise produce a stuck "transcribing" pill that
+ /// waits forever for a download to finish. Checks on-disk cache, not RAM
+ /// load, so the answer survives backend restarts.
+ ///
+ /// 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> CaptureReadinessEndpointCaptureReadinessGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearAllTasksTasksClearPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearAllTasksTasksClearPost.g.cs
index 156ea1e..81df979 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearAllTasksTasksClearPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearAllTasksTasksClearPost.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task ClearAllTasksTasksClearPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Clear All Tasks
+ /// Clear all download tasks and progress state.
+ ///
+ /// 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> ClearAllTasksTasksClearPostAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearCacheCacheClearPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearCacheCacheClearPost.g.cs
index 5a5813d..82a4cfe 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearCacheCacheClearPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearCacheCacheClearPost.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task ClearCacheCacheClearPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Clear Cache
+ /// Clear all voice prompt caches (memory and disk).
+ ///
+ /// 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> ClearCacheCacheClearPostAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs
index 2968319..2838173 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task ClearFailedGenerationsHistoryFailedDeleteAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Clear Failed Generations
+ /// Delete every generation with status='failed'. Used by the UI's 'Clear failed' button (#410).
+ ///
+ /// 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> ClearFailedGenerationsHistoryFailedDeleteAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs
index 37e89a3..f371ee7 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Compose In Character
+ /// Produce a fresh utterance in the profile's character voice.
+ ///
+ ///
+ /// 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> ComposeInCharacterProfilesProfileIdComposePostAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs
index f2fafa3..2035268 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Create Capture Endpoint
/// Upload audio, run STT, persist the capture.
///
+ ///
+ /// 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> CreateCaptureEndpointCapturesPostAsResponseAsync(
+
+ global::Voicebox.BodyCreateCaptureEndpointCapturesPost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Capture Endpoint
+ /// Upload audio, run STT, persist the capture.
+ ///
///
///
///
@@ -39,5 +52,54 @@ public partial interface IVoiceboxClient
string? sttModel = default,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Create Capture Endpoint
+ /// Upload audio, run STT, persist the capture.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: file
+ ///
+ ///
+ /// 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 CreateCaptureEndpointCapturesPostAsync(
+ global::System.IO.Stream file,
+ string filename,
+ string? language = default,
+ string? source = default,
+ string? sttModel = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Capture Endpoint
+ /// Upload audio, run STT, persist the capture.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: file
+ ///
+ ///
+ /// 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> CreateCaptureEndpointCapturesPostAsResponseAsync(
+ global::System.IO.Stream file,
+ string filename,
+ string? language = default,
+ string? source = default,
+ string? sttModel = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateChannelChannelsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateChannelChannelsPost.g.cs
index 8338662..aea2e1b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateChannelChannelsPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateChannelChannelsPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Create Channel
/// Create a new audio channel.
///
+ ///
+ /// 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> CreateChannelChannelsPostAsResponseAsync(
+
+ global::Voicebox.AudioChannelCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Channel
+ /// Create a new audio channel.
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs
index 4bf7532..4ec0686 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Create Effect Preset
/// Create a new effect preset.
///
+ ///
+ /// 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> CreateEffectPresetEffectsPresetsPostAsResponseAsync(
+
+ global::Voicebox.EffectPresetCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Effect Preset
+ /// Create a new effect preset.
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateProfileProfilesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateProfileProfilesPost.g.cs
index 0645a4f..641d23d 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateProfileProfilesPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateProfileProfilesPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Create Profile
/// Create a new voice profile.
///
+ ///
+ /// 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> CreateProfileProfilesPostAsResponseAsync(
+
+ global::Voicebox.VoiceProfileCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Profile
+ /// Create a new voice profile.
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateStoryStoriesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateStoryStoriesPost.g.cs
index edf4fe0..5ba4aba 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateStoryStoriesPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.CreateStoryStoriesPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Create Story
/// Create a new story.
///
+ ///
+ /// 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> CreateStoryStoriesPostAsResponseAsync(
+
+ global::Voicebox.StoryCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Create Story
+ /// Create a new story.
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs
index 0644282..5a6963a 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs
@@ -15,5 +15,16 @@ public partial interface IVoiceboxClient
string captureId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Capture Endpoint
+ ///
+ ///
+ /// 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> DeleteCaptureEndpointCapturesCaptureIdDeleteAsResponseAsync(
+ string captureId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs
index a4a6cf7..bf4bf5f 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string channelId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Channel
+ /// Delete an audio channel.
+ ///
+ ///
+ /// 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> DeleteChannelChannelsChannelIdDeleteAsResponseAsync(
+ string channelId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs
index 9558ece..0d13a41 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task DeleteCudaBackendBackendCudaDeleteAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Cuda Backend
+ /// Delete the downloaded CUDA backend binary.
+ ///
+ /// 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> DeleteCudaBackendBackendCudaDeleteAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs
index fe5b762..b204762 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string presetId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Effect Preset
+ /// Delete a user effect preset.
+ ///
+ ///
+ /// 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> DeleteEffectPresetEffectsPresetsPresetIdDeleteAsResponseAsync(
+ string presetId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs
index 2bc9705..31592b9 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Generation
+ /// Delete a generation.
+ ///
+ ///
+ /// 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> DeleteGenerationHistoryGenerationIdDeleteAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs
index 1f96eec..54cf3fc 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDelete.g.cs
@@ -18,5 +18,19 @@ public partial interface IVoiceboxClient
string versionId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Generation Version
+ /// Delete a version. Cannot delete the last remaining version.
+ ///
+ ///
+ ///
+ /// 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> DeleteGenerationVersionGenerationsGenerationIdVersionsVersionIdDeleteAsResponseAsync(
+ string generationId,
+ string versionId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs
index c20eae7..927a92d 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteMcpBindingMcpBindingsClientIdDelete.g.cs
@@ -15,5 +15,16 @@ public partial interface IVoiceboxClient
string clientId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Mcp Binding
+ ///
+ ///
+ /// 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> DeleteMcpBindingMcpBindingsClientIdDeleteAsResponseAsync(
+ string clientId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteModelModelsModelNameDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteModelModelsModelNameDelete.g.cs
index ca3d873..a98aaba 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteModelModelsModelNameDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteModelModelsModelNameDelete.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string modelName,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Model
+ /// Delete a downloaded model from the HuggingFace cache.
+ ///
+ ///
+ /// 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> DeleteModelModelsModelNameDeleteAsResponseAsync(
+ string modelName,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs
index f5eeb53..646dfe4 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileAvatarProfilesProfileIdAvatarDelete.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Profile Avatar
+ /// Delete avatar image for a profile.
+ ///
+ ///
+ /// 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> DeleteProfileAvatarProfilesProfileIdAvatarDeleteAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs
index f37bd29..b9af3bb 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileProfilesProfileIdDelete.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Profile
+ /// Delete a voice profile.
+ ///
+ ///
+ /// 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> DeleteProfileProfilesProfileIdDeleteAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs
index a8998c2..1b45bb6 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteProfileSampleProfilesSamplesSampleIdDelete.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string sampleId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Profile Sample
+ /// Delete a profile sample.
+ ///
+ ///
+ /// 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> DeleteProfileSampleProfilesSamplesSampleIdDeleteAsResponseAsync(
+ string sampleId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs
index 543f64d..3cd79b2 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DeleteStoryStoriesStoryIdDelete.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string storyId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Delete Story
+ /// Delete a story.
+ ///
+ ///
+ /// 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> DeleteStoryStoriesStoryIdDeleteAsResponseAsync(
+ string storyId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DownloadCudaBackendBackendDownloadCudaPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DownloadCudaBackendBackendDownloadCudaPost.g.cs
index 6d2c0b1..b8a604a 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DownloadCudaBackendBackendDownloadCudaPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DownloadCudaBackendBackendDownloadCudaPost.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task DownloadCudaBackendBackendDownloadCudaPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Download Cuda Backend
+ /// Download the CUDA backend binary.
+ ///
+ /// 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> DownloadCudaBackendBackendDownloadCudaPostAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs
index 2b4dab8..edf85fa 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePost.g.cs
@@ -18,5 +18,19 @@ public partial interface IVoiceboxClient
string itemId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Duplicate Story Item
+ /// Duplicate a story item.
+ ///
+ ///
+ ///
+ /// 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> DuplicateStoryItemStoriesStoryIdItemsItemIdDuplicatePostAsResponseAsync(
+ string storyId,
+ string itemId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs
index c599dbb..1aa06fa 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportGenerationAudioHistoryGenerationIdExportAudioGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Export Generation Audio
+ /// Export only the audio file from a generation.
+ ///
+ ///
+ /// 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> ExportGenerationAudioHistoryGenerationIdExportAudioGetAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs
index 17b98aa..f5e0d1b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportGenerationHistoryGenerationIdExportGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Export Generation
+ /// Export a generation as a ZIP archive.
+ ///
+ ///
+ /// 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> ExportGenerationHistoryGenerationIdExportGetAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs
index d4abd79..4cc66ad 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportProfileProfilesProfileIdExportGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Export Profile
+ /// Export a voice profile as a ZIP archive.
+ ///
+ ///
+ /// 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> ExportProfileProfilesProfileIdExportGetAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs
index 6e1b082..ab8cdae 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ExportStoryAudioStoriesStoryIdExportAudioGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string storyId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Export Story Audio
+ /// Export story as single mixed audio file.
+ ///
+ ///
+ /// 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> ExportStoryAudioStoriesStoryIdExportAudioGetAsResponseAsync(
+ string storyId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.FilesystemHealthHealthFilesystemGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.FilesystemHealthHealthFilesystemGet.g.cs
index d8b731a..08bbcb5 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.FilesystemHealthHealthFilesystemGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.FilesystemHealthHealthFilesystemGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task FilesystemHealthHealthFilesystemGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Filesystem Health
+ /// Check filesystem health: directory existence, write permissions, and disk space.
+ ///
+ /// 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> FilesystemHealthHealthFilesystemGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GenerateSpeechGeneratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GenerateSpeechGeneratePost.g.cs
index a491d62..f471aa9 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GenerateSpeechGeneratePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GenerateSpeechGeneratePost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Generate Speech
/// Generate speech from text using a voice profile.
///
+ ///
+ /// 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> GenerateSpeechGeneratePostAsResponseAsync(
+
+ global::Voicebox.GenerationRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Generate Speech
+ /// Generate speech from text using a voice profile.
+ ///
///
/// Crossfade duration in ms between chunks (0 for hard cut)
/// Default Value: 50
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetActiveTasksTasksActiveGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetActiveTasksTasksActiveGet.g.cs
index ee08a98..938f282 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetActiveTasksTasksActiveGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetActiveTasksTasksActiveGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetActiveTasksTasksActiveGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Active Tasks
+ /// Return all currently active downloads and generations.
+ ///
+ /// 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> GetActiveTasksTasksActiveGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetAudioAudioGenerationIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetAudioAudioGenerationIdGet.g.cs
index 6dbb131..1c8a8e2 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetAudioAudioGenerationIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetAudioAudioGenerationIdGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Audio
+ /// Serve generated audio file (serves the default version).
+ ///
+ ///
+ /// 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> GetAudioAudioGenerationIdGetAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetAvailableEffectsEffectsAvailableGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetAvailableEffectsEffectsAvailableGet.g.cs
index 661af6b..cc399fb 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetAvailableEffectsEffectsAvailableGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetAvailableEffectsEffectsAvailableGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetAvailableEffectsEffectsAvailableGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Available Effects
+ /// List all available effect types with parameter definitions.
+ ///
+ /// 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> GetAvailableEffectsEffectsAvailableGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs
index f1ac026..10000e1 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureAudioEndpointCapturesCaptureIdAudioGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string captureId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Capture Audio Endpoint
+ /// Stream the original capture audio file.
+ ///
+ ///
+ /// 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> GetCaptureAudioEndpointCapturesCaptureIdAudioGetAsResponseAsync(
+ string captureId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs
index 56cbd8d..64bb658 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureEndpointCapturesCaptureIdGet.g.cs
@@ -15,5 +15,16 @@ public partial interface IVoiceboxClient
string captureId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Capture Endpoint
+ ///
+ ///
+ /// 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> GetCaptureEndpointCapturesCaptureIdGetAsResponseAsync(
+ string captureId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureSettingsEndpointSettingsCapturesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureSettingsEndpointSettingsCapturesGet.g.cs
index 7aa51fd..74a76f6 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureSettingsEndpointSettingsCapturesGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCaptureSettingsEndpointSettingsCapturesGet.g.cs
@@ -13,5 +13,14 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetCaptureSettingsEndpointSettingsCapturesGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Capture Settings Endpoint
+ ///
+ /// 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> GetCaptureSettingsEndpointSettingsCapturesGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetChannelChannelsChannelIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetChannelChannelsChannelIdGet.g.cs
index 59b28cf..4eab69b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetChannelChannelsChannelIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetChannelChannelsChannelIdGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string channelId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Channel
+ /// Get an audio channel by ID.
+ ///
+ ///
+ /// 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> GetChannelChannelsChannelIdGetAsResponseAsync(
+ string channelId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs
index 584aac0..c4d85b7 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetChannelVoicesChannelsChannelIdVoicesGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string channelId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Channel Voices
+ /// Get list of profile IDs assigned to a channel.
+ ///
+ ///
+ /// 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> GetChannelVoicesChannelsChannelIdVoicesGetAsResponseAsync(
+ string channelId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCudaDownloadProgressBackendCudaProgressGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCudaDownloadProgressBackendCudaProgressGet.g.cs
index 672c582..3b90659 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCudaDownloadProgressBackendCudaProgressGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCudaDownloadProgressBackendCudaProgressGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetCudaDownloadProgressBackendCudaProgressGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Cuda Download Progress
+ /// Get CUDA backend download progress via Server-Sent Events.
+ ///
+ /// 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> GetCudaDownloadProgressBackendCudaProgressGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCudaStatusBackendCudaStatusGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCudaStatusBackendCudaStatusGet.g.cs
index bcb2ca6..04099f8 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCudaStatusBackendCudaStatusGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetCudaStatusBackendCudaStatusGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetCudaStatusBackendCudaStatusGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Cuda Status
+ /// Get CUDA backend download/availability status.
+ ///
+ /// 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> GetCudaStatusBackendCudaStatusGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs
index d95f5b2..706de8d 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetEffectPresetEffectsPresetsPresetIdGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string presetId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Effect Preset
+ /// Get a specific effect preset.
+ ///
+ ///
+ /// 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> GetEffectPresetEffectsPresetsPresetIdGetAsResponseAsync(
+ string presetId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs
index ffc7763..414765f 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationHistoryGenerationIdGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Generation
+ /// Get a generation by ID.
+ ///
+ ///
+ /// 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> GetGenerationHistoryGenerationIdGetAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationSettingsEndpointSettingsGenerationGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationSettingsEndpointSettingsGenerationGet.g.cs
index 80ea522..f703cd8 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationSettingsEndpointSettingsGenerationGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationSettingsEndpointSettingsGenerationGet.g.cs
@@ -13,5 +13,14 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetGenerationSettingsEndpointSettingsGenerationGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Generation Settings Endpoint
+ ///
+ /// 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> GetGenerationSettingsEndpointSettingsGenerationGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs
index d1e0f46..582253f 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetGenerationStatusGenerateGenerationIdStatusGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Generation Status
+ /// SSE endpoint that streams generation status updates.
+ ///
+ ///
+ /// 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> GetGenerationStatusGenerateGenerationIdStatusGetAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetMigrationProgressModelsMigrateProgressGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetMigrationProgressModelsMigrateProgressGet.g.cs
index 4b4b0e8..7f617d0 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetMigrationProgressModelsMigrateProgressGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetMigrationProgressModelsMigrateProgressGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetMigrationProgressModelsMigrateProgressGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Migration Progress
+ /// Get model migration progress via Server-Sent Events.
+ ///
+ /// 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> GetMigrationProgressModelsMigrateProgressGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs
index d0c9939..b15778c 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelProgressModelsProgressModelNameGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string modelName,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Model Progress
+ /// Get model download progress via Server-Sent Events.
+ ///
+ ///
+ /// 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> GetModelProgressModelsProgressModelNameGetAsResponseAsync(
+ string modelName,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelStatusModelsStatusGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelStatusModelsStatusGet.g.cs
index 0b4cd7b..5a1a8e5 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelStatusModelsStatusGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelStatusModelsStatusGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetModelStatusModelsStatusGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Model Status
+ /// Get status of all available models.
+ ///
+ /// 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> GetModelStatusModelsStatusGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelsCacheDirModelsCacheDirGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelsCacheDirModelsCacheDirGet.g.cs
index 3e8d508..e98cae4 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelsCacheDirModelsCacheDirGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetModelsCacheDirModelsCacheDirGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetModelsCacheDirModelsCacheDirGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Models Cache Dir
+ /// Get the path to the HuggingFace model cache directory.
+ ///
+ /// 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> GetModelsCacheDirModelsCacheDirGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs
index 72a76b1..e97e085 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileAvatarProfilesProfileIdAvatarGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Profile Avatar
+ /// Get avatar image for a profile.
+ ///
+ ///
+ /// 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> GetProfileAvatarProfilesProfileIdAvatarGetAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs
index 60b2c26..eb9ab3a 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileChannelsProfilesProfileIdChannelsGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Profile Channels
+ /// Get list of channel IDs assigned to a profile.
+ ///
+ ///
+ /// 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> GetProfileChannelsProfilesProfileIdChannelsGetAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileProfilesProfileIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileProfilesProfileIdGet.g.cs
index fcf12b0..8834454 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileProfilesProfileIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileProfilesProfileIdGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Profile
+ /// Get a voice profile by ID.
+ ///
+ ///
+ /// 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> GetProfileProfilesProfileIdGetAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs
index 81847b1..d18aedd 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetProfileSamplesProfilesProfileIdSamplesGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Profile Samples
+ /// Get all samples for a profile.
+ ///
+ ///
+ /// 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>> GetProfileSamplesProfilesProfileIdSamplesGetAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs
index c1c9912..6d0cb0b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetSampleAudioSamplesSampleIdGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string sampleId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Sample Audio
+ /// Serve profile sample audio file.
+ ///
+ ///
+ /// 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> GetSampleAudioSamplesSampleIdGetAsResponseAsync(
+ string sampleId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetStatsHistoryStatsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetStatsHistoryStatsGet.g.cs
index d7f8a52..7b2ac6a 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetStatsHistoryStatsGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetStatsHistoryStatsGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task GetStatsHistoryStatsGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Stats
+ /// Get generation statistics.
+ ///
+ /// 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> GetStatsHistoryStatsGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetStoryStoriesStoryIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetStoryStoriesStoryIdGet.g.cs
index ae305ca..ae10676 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetStoryStoriesStoryIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetStoryStoriesStoryIdGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string storyId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Story
+ /// Get a story with all its items.
+ ///
+ ///
+ /// 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> GetStoryStoriesStoryIdGetAsResponseAsync(
+ string storyId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs
index c9658ea..4492f9a 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.GetVersionAudioAudioVersionVersionIdGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string versionId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get Version Audio
+ /// Serve audio for a specific version.
+ ///
+ ///
+ /// 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> GetVersionAudioAudioVersionVersionIdGetAsResponseAsync(
+ string versionId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.HealthHealthGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.HealthHealthGet.g.cs
index eb75114..dce7985 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.HealthHealthGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.HealthHealthGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task HealthHealthGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Health
+ /// Health check endpoint.
+ ///
+ /// 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> HealthHealthGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportAudioGenerateImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportAudioGenerateImportPost.g.cs
index 92a2ac1..3e7684e 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportAudioGenerateImportPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportAudioGenerateImportPost.g.cs
@@ -27,6 +27,22 @@ public partial interface IVoiceboxClient
/// non-TTS audio. The row points at a singleton "Imported Audio" profile
/// so the existing generation/story plumbing keeps working unchanged.
///
+ ///
+ /// 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> ImportAudioGenerateImportPostAsResponseAsync(
+
+ global::Voicebox.BodyImportAudioGenerateImportPost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Import Audio
+ /// Register an external audio file as a generation row.
+ /// Designed for the story timeline so users can drop in music or other
+ /// non-TTS audio. The row points at a singleton "Imported Audio" profile
+ /// so the existing generation/story plumbing keeps working unchanged.
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -37,5 +53,44 @@ public partial interface IVoiceboxClient
string filename,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Import Audio
+ /// Register an external audio file as a generation row.
+ /// Designed for the story timeline so users can drop in music or other
+ /// non-TTS audio. The row points at a singleton "Imported Audio" profile
+ /// so the existing generation/story plumbing keeps working unchanged.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ /// 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 ImportAudioGenerateImportPostAsync(
+ global::System.IO.Stream file,
+ string filename,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Import Audio
+ /// Register an external audio file as a generation row.
+ /// Designed for the story timeline so users can drop in music or other
+ /// non-TTS audio. The row points at a singleton "Imported Audio" profile
+ /// so the existing generation/story plumbing keeps working unchanged.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ /// 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> ImportAudioGenerateImportPostAsResponseAsync(
+ global::System.IO.Stream file,
+ string filename,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportGenerationHistoryImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportGenerationHistoryImportPost.g.cs
index b73fbf0..7546910 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportGenerationHistoryImportPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportGenerationHistoryImportPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Import Generation
/// Import a generation from a ZIP archive.
///
+ ///
+ /// 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> ImportGenerationHistoryImportPostAsResponseAsync(
+
+ global::Voicebox.BodyImportGenerationHistoryImportPost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Import Generation
+ /// Import a generation from a ZIP archive.
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -31,5 +44,38 @@ public partial interface IVoiceboxClient
string filename,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Import Generation
+ /// Import a generation from a ZIP archive.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ /// 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 ImportGenerationHistoryImportPostAsync(
+ global::System.IO.Stream file,
+ string filename,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Import Generation
+ /// Import a generation from a ZIP archive.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ /// 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> ImportGenerationHistoryImportPostAsResponseAsync(
+ global::System.IO.Stream file,
+ string filename,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportProfileProfilesImportPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportProfileProfilesImportPost.g.cs
index 7cfb600..0fddbb8 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportProfileProfilesImportPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ImportProfileProfilesImportPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Import Profile
/// Import a voice profile from a ZIP archive.
///
+ ///
+ /// 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> ImportProfileProfilesImportPostAsResponseAsync(
+
+ global::Voicebox.BodyImportProfileProfilesImportPost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Import Profile
+ /// Import a voice profile from a ZIP archive.
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -31,5 +44,38 @@ public partial interface IVoiceboxClient
string filename,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Import Profile
+ /// Import a voice profile from a ZIP archive.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ /// 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 ImportProfileProfilesImportPostAsync(
+ global::System.IO.Stream file,
+ string filename,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Import Profile
+ /// Import a voice profile from a ZIP archive.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ /// 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> ImportProfileProfilesImportPostAsResponseAsync(
+ global::System.IO.Stream file,
+ string filename,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListCapturesEndpointCapturesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListCapturesEndpointCapturesGet.g.cs
index 92d3bff..1338bd4 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListCapturesEndpointCapturesGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListCapturesEndpointCapturesGet.g.cs
@@ -21,5 +21,22 @@ public partial interface IVoiceboxClient
int? offset = default,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Captures Endpoint
+ ///
+ ///
+ /// Default Value: 50
+ ///
+ ///
+ /// Default Value: 0
+ ///
+ /// 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> ListCapturesEndpointCapturesGetAsResponseAsync(
+ int? limit = default,
+ int? offset = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListChannelsChannelsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListChannelsChannelsGet.g.cs
index 216d8b8..586e884 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListChannelsChannelsGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListChannelsChannelsGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task> ListChannelsChannelsGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Channels
+ /// List all audio channels.
+ ///
+ /// 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>> ListChannelsChannelsGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListEffectPresetsEffectsPresetsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListEffectPresetsEffectsPresetsGet.g.cs
index ce13fda..3f2f5c9 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListEffectPresetsEffectsPresetsGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListEffectPresetsEffectsPresetsGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task> ListEffectPresetsEffectsPresetsGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Effect Presets
+ /// List all effect presets (built-in + user-created).
+ ///
+ /// 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>> ListEffectPresetsEffectsPresetsGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs
index fc19c14..a692db8 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListGenerationVersionsGenerationsGenerationIdVersionsGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Generation Versions
+ /// List all versions for a generation.
+ ///
+ ///
+ /// 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>> ListGenerationVersionsGenerationsGenerationIdVersionsGetAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListHistoryHistoryGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListHistoryHistoryGet.g.cs
index 402884d..9b88470 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListHistoryHistoryGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListHistoryHistoryGet.g.cs
@@ -26,5 +26,27 @@ public partial interface IVoiceboxClient
int? offset = default,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List History
+ /// List generation history with optional filters.
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: 50
+ ///
+ ///
+ /// Default Value: 0
+ ///
+ /// 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> ListHistoryHistoryGetAsResponseAsync(
+ string? profileId = default,
+ string? search = default,
+ int? limit = default,
+ int? offset = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListMcpBindingsMcpBindingsGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListMcpBindingsMcpBindingsGet.g.cs
index a3eee20..c3f90a8 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListMcpBindingsMcpBindingsGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListMcpBindingsMcpBindingsGet.g.cs
@@ -13,5 +13,14 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task ListMcpBindingsMcpBindingsGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Mcp Bindings
+ ///
+ /// 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> ListMcpBindingsMcpBindingsGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs
index 3dfc1a8..d49ceaf 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListPresetVoicesProfilesPresetsEngineGet.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string engine,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Preset Voices
+ /// List available preset voices for an engine.
+ ///
+ ///
+ /// 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> ListPresetVoicesProfilesPresetsEngineGetAsResponseAsync(
+ string engine,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListProfilesProfilesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListProfilesProfilesGet.g.cs
index ea017b7..c43d81d 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListProfilesProfilesGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListProfilesProfilesGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task> ListProfilesProfilesGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Profiles
+ /// List all voice profiles.
+ ///
+ /// 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>> ListProfilesProfilesGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListStoriesStoriesGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListStoriesStoriesGet.g.cs
index b673948..17dc9f6 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListStoriesStoriesGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ListStoriesStoriesGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task> ListStoriesStoriesGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// List Stories
+ /// List all stories.
+ ///
+ /// 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>> ListStoriesStoriesGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.LlmGenerateLlmGeneratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.LlmGenerateLlmGeneratePost.g.cs
index 7af8eb5..10a8b94 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.LlmGenerateLlmGeneratePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.LlmGenerateLlmGeneratePost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Llm Generate
/// Run a single-turn Qwen3 completion.
///
+ ///
+ /// 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> LlmGenerateLlmGeneratePostAsResponseAsync(
+
+ global::Voicebox.LLMGenerateRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Llm Generate
+ /// Run a single-turn Qwen3 completion.
+ ///
///
///
/// Default Value: 512
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.LoadModelModelsLoadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.LoadModelModelsLoadPost.g.cs
index 3aa60fb..dba49ed 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.LoadModelModelsLoadPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.LoadModelModelsLoadPost.g.cs
@@ -18,5 +18,19 @@ public partial interface IVoiceboxClient
string? modelSize = default,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Load Model
+ /// Manually load TTS model.
+ ///
+ ///
+ /// Default Value: 1.7B
+ ///
+ /// 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> LoadModelModelsLoadPostAsResponseAsync(
+ string? modelSize = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.MigrateModelsModelsMigratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.MigrateModelsModelsMigratePost.g.cs
index d5f17c6..393cf99 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.MigrateModelsModelsMigratePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.MigrateModelsModelsMigratePost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Migrate Models
/// Move all downloaded models to a new directory with byte-level progress via SSE.
///
+ ///
+ /// 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> MigrateModelsModelsMigratePostAsResponseAsync(
+
+ global::Voicebox.ModelMigrateRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Migrate Models
+ /// Move all downloaded models to a new directory with byte-level progress via SSE.
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs
index 36de6be..7193b1f 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.MoveStoryItemStoriesStoryIdItemsItemIdMovePut.g.cs
@@ -27,6 +27,23 @@ public partial interface IVoiceboxClient
///
///
///
+ ///
+ /// 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> MoveStoryItemStoriesStoryIdItemsItemIdMovePutAsResponseAsync(
+ string storyId,
+ string itemId,
+
+ global::Voicebox.StoryItemMove request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Move Story Item
+ /// Move a story item (update position and/or track).
+ ///
+ ///
+ ///
///
///
/// Default Value: 0
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs
index dc82041..d264e91 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.PreviewEffectsEffectsPreviewGenerationIdPost.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Apply effects to a generation's clean audio and stream back without saving.
///
///
+ ///
+ /// 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> PreviewEffectsEffectsPreviewGenerationIdPostAsResponseAsync(
+ string generationId,
+
+ global::Voicebox.ApplyEffectsRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Preview Effects
+ /// Apply effects to a generation's clean audio and stream back without saving.
+ ///
+ ///
///
///
/// Label for this version (auto-generated if omitted)
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs
index b5e1229..9f186a3 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RefineCaptureEndpointCapturesCaptureIdRefinePost.g.cs
@@ -22,6 +22,20 @@ public partial interface IVoiceboxClient
/// Refine Capture Endpoint
///
///
+ ///
+ /// 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> RefineCaptureEndpointCapturesCaptureIdRefinePostAsResponseAsync(
+ string captureId,
+
+ global::Voicebox.CaptureRefineRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Refine Capture Endpoint
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs
index 059f2b1..ad7dc62 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RegenerateGenerationGenerateGenerationIdRegeneratePost.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Regenerate Generation
+ /// Re-run TTS with the same parameters and save the result as a new version.
+ ///
+ ///
+ /// 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> RegenerateGenerationGenerateGenerationIdRegeneratePostAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs
index 0e04f80..6b5462b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RemoveStoryItemStoriesStoryIdItemsItemIdDelete.g.cs
@@ -18,5 +18,19 @@ public partial interface IVoiceboxClient
string itemId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Remove Story Item
+ /// Remove a story item from a story.
+ ///
+ ///
+ ///
+ /// 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> RemoveStoryItemStoriesStoryIdItemsItemIdDeleteAsResponseAsync(
+ string storyId,
+ string itemId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs
index 08b313c..b0c6d57 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ReorderStoryItemsStoriesStoryIdItemsReorderPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Reorder story items and recalculate timecodes.
///
///
+ ///
+ /// 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>> ReorderStoryItemsStoriesStoryIdItemsReorderPutAsResponseAsync(
+ string storyId,
+
+ global::Voicebox.StoryItemReorder request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Reorder Story Items
+ /// Reorder story items and recalculate timecodes.
+ ///
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs
index 95c44c7..fc4fdb6 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePost.g.cs
@@ -22,6 +22,20 @@ public partial interface IVoiceboxClient
/// Retranscribe Capture Endpoint
///
///
+ ///
+ /// 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> RetranscribeCaptureEndpointCapturesCaptureIdRetranscribePostAsResponseAsync(
+ string captureId,
+
+ global::Voicebox.CaptureRetranscribeRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retranscribe Capture Endpoint
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs
index db02f04..d2251c8 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RetryGenerationGenerateGenerationIdRetryPost.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Retry Generation
+ /// Retry a failed generation using the same parameters.
+ ///
+ ///
+ /// 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> RetryGenerationGenerateGenerationIdRetryPostAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RootGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RootGet.g.cs
index 622d974..11812e0 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RootGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.RootGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task RootGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Root
+ /// Root endpoint — serves SPA index.html in Docker, JSON otherwise.
+ ///
+ /// 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> RootGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs
index efdf1ee..de0d4f3 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetChannelVoicesChannelsChannelIdVoicesPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Set which voices are assigned to a channel.
///
///
+ ///
+ /// 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> SetChannelVoicesChannelsChannelIdVoicesPutAsResponseAsync(
+ string channelId,
+
+ global::Voicebox.ChannelVoiceAssignment request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Set Channel Voices
+ /// Set which voices are assigned to a channel.
+ ///
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs
index ae6db8d..c083025 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPut.g.cs
@@ -18,5 +18,19 @@ public partial interface IVoiceboxClient
string versionId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Set Default Version
+ /// Set a specific version as the default for a generation.
+ ///
+ ///
+ ///
+ /// 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> SetDefaultVersionGenerationsGenerationIdVersionsVersionIdSetDefaultPutAsResponseAsync(
+ string generationId,
+ string versionId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs
index 80a05fa..506b3a3 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetProfileChannelsProfilesProfileIdChannelsPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Set which channels a profile is assigned to.
///
///
+ ///
+ /// 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> SetProfileChannelsProfilesProfileIdChannelsPutAsResponseAsync(
+ string profileId,
+
+ global::Voicebox.ProfileChannelAssignment request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Set Profile Channels
+ /// Set which channels a profile is assigned to.
+ ///
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs
index ba692e9..a6df2ec 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPut.g.cs
@@ -27,6 +27,23 @@ public partial interface IVoiceboxClient
///
///
///
+ ///
+ /// 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> SetStoryItemVersionStoriesStoryIdItemsItemIdVersionPutAsResponseAsync(
+ string storyId,
+ string itemId,
+
+ global::Voicebox.StoryItemVersionUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Set Story Item Version
+ /// Pin a story item to a specific generation version.
+ ///
+ ///
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.ShutdownShutdownPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ShutdownShutdownPost.g.cs
index d844b83..db021d9 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ShutdownShutdownPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ShutdownShutdownPost.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task ShutdownShutdownPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Shutdown
+ /// Gracefully shutdown the server.
+ ///
+ /// 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> ShutdownShutdownPostAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SpeakEventsEventsSpeakGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SpeakEventsEventsSpeakGet.g.cs
index f4d1a16..847ece7 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SpeakEventsEventsSpeakGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SpeakEventsEventsSpeakGet.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task SpeakEventsEventsSpeakGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Speak Events
+ /// SSE stream of speak-start / speak-end events.
+ ///
+ /// 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> SpeakEventsEventsSpeakGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SpeakSpeakPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SpeakSpeakPost.g.cs
index 195047d..ceb7192 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SpeakSpeakPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SpeakSpeakPost.g.cs
@@ -27,6 +27,22 @@ public partial interface IVoiceboxClient
/// ``status="generating"`` and an ``id`` the caller polls at
/// ``GET /generate/{id}/status``.
///
+ ///
+ /// 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> SpeakSpeakPostAsResponseAsync(
+
+ global::Voicebox.SpeakRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Speak
+ /// Speak text in a voice profile. Mirrors voicebox.speak (MCP).
+ /// Response shape matches POST /generate — a ``GenerationResponse`` with
+ /// ``status="generating"`` and an ``id`` the caller polls at
+ /// ``GET /generate/{id}/status``.
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs
index 2155b2c..1108ced 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.SplitStoryItemStoriesStoryIdItemsItemIdSplitPost.g.cs
@@ -27,6 +27,23 @@ public partial interface IVoiceboxClient
///
///
///
+ ///
+ /// 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>> SplitStoryItemStoriesStoryIdItemsItemIdSplitPostAsResponseAsync(
+ string storyId,
+ string itemId,
+
+ global::Voicebox.StoryItemSplit request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Split Story Item
+ /// Split a story item at a given time, creating two clips.
+ ///
+ ///
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.StreamSpeechGenerateStreamPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.StreamSpeechGenerateStreamPost.g.cs
index f5b6dd9..7dc4bff 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.StreamSpeechGenerateStreamPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.StreamSpeechGenerateStreamPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Stream Speech
/// Generate speech and stream the WAV audio directly without saving to disk.
///
+ ///
+ /// 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> StreamSpeechGenerateStreamPostAsResponseAsync(
+
+ global::Voicebox.GenerationRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Stream Speech
+ /// Generate speech and stream the WAV audio directly without saving to disk.
+ ///
///
/// Crossfade duration in ms between chunks (0 for hard cut)
/// Default Value: 50
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs
index efdb717..95b6fcd 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.ToggleFavoriteHistoryGenerationIdFavoritePost.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Toggle Favorite
+ /// Toggle the favorite status of a generation.
+ ///
+ ///
+ /// 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> ToggleFavoriteHistoryGenerationIdFavoritePostAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TranscribeAudioTranscribePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TranscribeAudioTranscribePost.g.cs
index d2cc68e..32761dc 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TranscribeAudioTranscribePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TranscribeAudioTranscribePost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Transcribe Audio
/// Transcribe audio file to text.
///
+ ///
+ /// 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> TranscribeAudioTranscribePostAsResponseAsync(
+
+ global::Voicebox.BodyTranscribeAudioTranscribePost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Transcribe Audio
+ /// Transcribe audio file to text.
+ ///
///
///
///
@@ -35,5 +48,46 @@ public partial interface IVoiceboxClient
string? model = default,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Transcribe Audio
+ /// Transcribe audio file to text.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ ///
+ /// 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 TranscribeAudioTranscribePostAsync(
+ global::System.IO.Stream file,
+ string filename,
+ string? language = default,
+ string? model = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Transcribe Audio
+ /// Transcribe audio file to text.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ ///
+ /// 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> TranscribeAudioTranscribePostAsResponseAsync(
+ global::System.IO.Stream file,
+ string filename,
+ string? language = default,
+ string? model = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TriggerModelDownloadModelsDownloadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TriggerModelDownloadModelsDownloadPost.g.cs
index 2cad40d..334088a 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TriggerModelDownloadModelsDownloadPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TriggerModelDownloadModelsDownloadPost.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Trigger Model Download
/// Trigger download of a specific model.
///
+ ///
+ /// 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> TriggerModelDownloadModelsDownloadPostAsResponseAsync(
+
+ global::Voicebox.ModelDownloadRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Trigger Model Download
+ /// Trigger download of a specific model.
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs
index cf99081..98da84f 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.TrimStoryItemStoriesStoryIdItemsItemIdTrimPut.g.cs
@@ -27,6 +27,23 @@ public partial interface IVoiceboxClient
///
///
///
+ ///
+ /// 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> TrimStoryItemStoriesStoryIdItemsItemIdTrimPutAsResponseAsync(
+ string storyId,
+ string itemId,
+
+ global::Voicebox.StoryItemTrim request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Trim Story Item
+ /// Trim a story item.
+ ///
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs
index fbfbd66..1d45fd0 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UnloadModelByNameModelsModelNameUnloadPost.g.cs
@@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string modelName,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Unload Model By Name
+ /// Unload a specific model from memory without deleting it from disk.
+ ///
+ ///
+ /// 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> UnloadModelByNameModelsModelNameUnloadPostAsResponseAsync(
+ string modelName,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UnloadModelModelsUnloadPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UnloadModelModelsUnloadPost.g.cs
index c006a0c..a9317c8 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UnloadModelModelsUnloadPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UnloadModelModelsUnloadPost.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task UnloadModelModelsUnloadPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Unload Model
+ /// Unload the default Qwen TTS model to free memory.
+ ///
+ /// 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> UnloadModelModelsUnloadPostAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateCaptureSettingsEndpointSettingsCapturesPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateCaptureSettingsEndpointSettingsCapturesPut.g.cs
index d5039c9..4fd6e02 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateCaptureSettingsEndpointSettingsCapturesPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateCaptureSettingsEndpointSettingsCapturesPut.g.cs
@@ -19,6 +19,18 @@ public partial interface IVoiceboxClient
///
/// Update Capture Settings Endpoint
///
+ ///
+ /// 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> UpdateCaptureSettingsEndpointSettingsCapturesPutAsResponseAsync(
+
+ global::Voicebox.CaptureSettingsUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Capture Settings Endpoint
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs
index 5f9b4df..15ba0dd 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateChannelChannelsChannelIdPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Update an audio channel.
///
///
+ ///
+ /// 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> UpdateChannelChannelsChannelIdPutAsResponseAsync(
+ string channelId,
+
+ global::Voicebox.AudioChannelUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Channel
+ /// Update an audio channel.
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs
index 8c448af..7906a35 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateEffectPresetEffectsPresetsPresetIdPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Update an effect preset.
///
///
+ ///
+ /// 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> UpdateEffectPresetEffectsPresetsPresetIdPutAsResponseAsync(
+ string presetId,
+
+ global::Voicebox.EffectPresetUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Effect Preset
+ /// Update an effect preset.
+ ///
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateGenerationSettingsEndpointSettingsGenerationPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateGenerationSettingsEndpointSettingsGenerationPut.g.cs
index 742f350..9509d44 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateGenerationSettingsEndpointSettingsGenerationPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateGenerationSettingsEndpointSettingsGenerationPut.g.cs
@@ -19,6 +19,18 @@ public partial interface IVoiceboxClient
///
/// Update Generation Settings Endpoint
///
+ ///
+ /// 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> UpdateGenerationSettingsEndpointSettingsGenerationPutAsResponseAsync(
+
+ global::Voicebox.GenerationSettingsUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Generation Settings Endpoint
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs
index 8e88567..edb240f 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileEffectsProfilesProfileIdEffectsPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Set or clear the default effects chain for a voice profile.
///
///
+ ///
+ /// 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> UpdateProfileEffectsProfilesProfileIdEffectsPutAsResponseAsync(
+ string profileId,
+
+ global::Voicebox.ProfileEffectsUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Profile Effects
+ /// Set or clear the default effects chain for a voice profile.
+ ///
+ ///
///
/// Effects chain (null to remove)
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs
index 9e3b85b..e8fdbed 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileProfilesProfileIdPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Update a voice profile.
///
///
+ ///
+ /// 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> UpdateProfileProfilesProfileIdPutAsResponseAsync(
+ string profileId,
+
+ global::Voicebox.VoiceProfileCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Profile
+ /// Update a voice profile.
+ ///
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs
index 7f1c6c0..75793e1 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateProfileSampleProfilesSamplesSampleIdPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Update a profile sample's reference text.
///
///
+ ///
+ /// 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> UpdateProfileSampleProfilesSamplesSampleIdPutAsResponseAsync(
+ string sampleId,
+
+ global::Voicebox.ProfileSampleUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Profile Sample
+ /// Update a profile sample's reference text.
+ ///
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs
index 164aba4..c9c1a66 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryItemTimesStoriesStoryIdItemsTimesPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Update story item timecodes.
///
///
+ ///
+ /// 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> UpdateStoryItemTimesStoriesStoryIdItemsTimesPutAsResponseAsync(
+ string storyId,
+
+ global::Voicebox.StoryItemBatchUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Story Item Times
+ /// Update story item timecodes.
+ ///
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs
index 32cf691..69ae1ea 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePut.g.cs
@@ -27,6 +27,23 @@ public partial interface IVoiceboxClient
///
///
///
+ ///
+ /// 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> UpdateStoryItemVolumeStoriesStoryIdItemsItemIdVolumePutAsResponseAsync(
+ string storyId,
+ string itemId,
+
+ global::Voicebox.StoryItemVolumeUpdate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Story Item Volume
+ /// Set a story item's per-clip volume (linear gain, 0.0–2.0).
+ ///
+ ///
+ ///
///
/// 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/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs
index 4a08aa1..174bb0d 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpdateStoryStoriesStoryIdPut.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Update a story.
///
///
+ ///
+ /// 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> UpdateStoryStoriesStoryIdPutAsResponseAsync(
+ string storyId,
+
+ global::Voicebox.StoryCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Update Story
+ /// Update a story.
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs
index 70cde31..b873094 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UploadProfileAvatarProfilesProfileIdAvatarPost.g.cs
@@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Upload or update avatar image for a profile.
///
///
+ ///
+ /// 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> UploadProfileAvatarProfilesProfileIdAvatarPostAsResponseAsync(
+ string profileId,
+
+ global::Voicebox.BodyUploadProfileAvatarProfilesProfileIdAvatarPost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Upload Profile Avatar
+ /// Upload or update avatar image for a profile.
+ ///
+ ///
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
@@ -35,5 +50,42 @@ public partial interface IVoiceboxClient
string filename,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Upload Profile Avatar
+ /// Upload or update avatar image for a profile.
+ ///
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ /// 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 UploadProfileAvatarProfilesProfileIdAvatarPostAsync(
+ string profileId,
+ global::System.IO.Stream file,
+ string filename,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Upload Profile Avatar
+ /// Upload or update avatar image for a profile.
+ ///
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ /// 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> UploadProfileAvatarProfilesProfileIdAvatarPostAsResponseAsync(
+ string profileId,
+ global::System.IO.Stream file,
+ string filename,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpsertMcpBindingMcpBindingsPut.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpsertMcpBindingMcpBindingsPut.g.cs
index 1671d5d..d83d9ca 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpsertMcpBindingMcpBindingsPut.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.UpsertMcpBindingMcpBindingsPut.g.cs
@@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Upsert Mcp Binding
/// Create-or-update a binding. Matches by client_id.
///
+ ///
+ /// 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> UpsertMcpBindingMcpBindingsPutAsResponseAsync(
+
+ global::Voicebox.MCPClientBindingUpsert request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Upsert Mcp Binding
+ /// Create-or-update a binding. Matches by client_id.
+ ///
///
///
///
diff --git a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.WatchdogDisableWatchdogDisablePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.WatchdogDisableWatchdogDisablePost.g.cs
index 61e9f86..b9c5f31 100644
--- a/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.WatchdogDisableWatchdogDisablePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.IVoiceboxClient.WatchdogDisableWatchdogDisablePost.g.cs
@@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task WatchdogDisableWatchdogDisablePostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Watchdog Disable
+ /// Disable the parent process watchdog so the server keeps running.
+ ///
+ /// 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> WatchdogDisableWatchdogDisablePostAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.OptionsSupport.g.cs b/src/libs/Voicebox/Generated/Voicebox.OptionsSupport.g.cs
index 8ea1102..798150e 100644
--- a/src/libs/Voicebox/Generated/Voicebox.OptionsSupport.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.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::Voicebox.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::Voicebox.AutoSDKClientOptions clientOptions,
global::Voicebox.AutoSDKRequestOptions? requestOptions,
+ global::System.Net.Http.HttpResponseMessage? response,
+ int attempt)
+ {
+ var retryOptions = requestOptions?.Retry ?? clientOptions.Retry ?? new global::Voicebox.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::Voicebox.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/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs
index b62f851..63425e3 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddProfileSampleProfilesProfileIdSamplesPost.g.cs
@@ -35,6 +35,32 @@ partial void ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent(
public async global::System.Threading.Tasks.Task AddProfileSampleProfilesProfileIdSamplesPostAsync(
string profileId,
+ global::Voicebox.BodyAddProfileSampleProfilesProfileIdSamplesPost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await AddProfileSampleProfilesProfileIdSamplesPostAsResponseAsync(
+ profileId: profileId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Add Profile Sample
+ /// Add a sample to a voice profile.
+ ///
+ ///
+ ///
+ /// 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> AddProfileSampleProfilesProfileIdSamplesPostAsResponseAsync(
+ string profileId,
+
global::Voicebox.BodyAddProfileSampleProfilesProfileIdSamplesPost request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -60,10 +86,11 @@ partial void ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent(
var __maxAttempts = global::Voicebox.AutoSDKRequestOptionsSupport.GetMaxAttempts(
clientOptions: Options,
requestOptions: requestOptions,
- supportsRetry: true);
+ supportsRetry: false);
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: $"/profiles/{profileId}/samples",
baseUri: HttpClient.BaseAddress);
@@ -79,10 +106,12 @@ partial void ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent(
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
+
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(profileId ?? string.Empty),
name: "\"profile_id\"");
+
var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty());
__contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Filename is null
@@ -120,10 +149,13 @@ request.Filename is null
{
__contentFile.Headers.ContentDisposition.FileNameStar = null;
}
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.ReferenceText ?? string.Empty),
name: "\"reference_text\"");
+
__httpRequest.Content = __httpRequestContent;
+
global::Voicebox.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
clientHeaders: Options.Headers,
@@ -166,6 +198,8 @@ request.Filename is null
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -176,6 +210,11 @@ request.Filename is null
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -193,6 +232,8 @@ request.Filename is null
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -202,8 +243,7 @@ request.Filename is null
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -212,6 +252,11 @@ request.Filename is null
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -228,14 +273,15 @@ request.Filename is null
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -275,6 +321,8 @@ request.Filename is null
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -295,6 +343,8 @@ request.Filename is null
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -357,9 +407,13 @@ request.Filename is null
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.ProfileSampleResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.ProfileSampleResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -387,9 +441,13 @@ request.Filename is null
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.ProfileSampleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.ProfileSampleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -459,5 +517,892 @@ request.Filename is null
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
+
+ ///
+ /// Add Profile Sample
+ /// Add a sample to a voice profile.
+ ///
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ /// 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 AddProfileSampleProfilesProfileIdSamplesPostAsync(
+ string profileId,
+ global::System.IO.Stream file,
+ string filename,
+ string referenceText,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+
+ file = file ?? throw new global::System.ArgumentNullException(nameof(file));
+ var request = new global::Voicebox.BodyAddProfileSampleProfilesProfileIdSamplesPost
+ {
+ File = global::System.Array.Empty(),
+ Filename = filename,
+ ReferenceText = referenceText,
+ };
+ PrepareArguments(
+ client: HttpClient);
+ PrepareAddProfileSampleProfilesProfileIdSamplesPostArguments(
+ httpClient: HttpClient,
+ profileId: ref profileId,
+ request: request);
+
+ using var __timeoutCancellationTokenSource = global::Voicebox.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Voicebox.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Voicebox.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: false);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Voicebox.PathBuilder(
+ path: $"/profiles/{profileId}/samples",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Voicebox.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(profileId ?? string.Empty),
+ name: "\"profile_id\"");
+
+ var __contentFile = new global::System.Net.Http.StreamContent(file);
+ __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
+ request.Filename is null
+ ? "application/octet-stream"
+ : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
+ {
+ ".aac" => "audio/aac",
+ ".flac" => "audio/flac",
+ ".gif" => "image/gif",
+ ".jpeg" => "image/jpeg",
+ ".jpg" => "image/jpeg",
+ ".json" => "application/json",
+ ".m4a" => "audio/mp4",
+ ".mp3" => "audio/mpeg",
+ ".mp4" => "video/mp4",
+ ".mpeg" => "audio/mpeg",
+ ".mpga" => "audio/mpeg",
+ ".oga" => "audio/ogg",
+ ".ogg" => "audio/ogg",
+ ".opus" => "audio/ogg",
+ ".pdf" => "application/pdf",
+ ".png" => "image/png",
+ ".txt" => "text/plain",
+ ".wav" => "audio/wav",
+ ".weba" => "audio/webm",
+ ".webm" => "video/webm",
+ ".webp" => "image/webp",
+ _ => "application/octet-stream",
+ });
+ __httpRequestContent.Add(
+ content: __contentFile,
+ name: "\"file\"",
+ fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty);
+ if (__contentFile.Headers.ContentDisposition != null)
+ {
+ __contentFile.Headers.ContentDisposition.FileNameStar = null;
+ }
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.ReferenceText ?? string.Empty),
+ name: "\"reference_text\"");
+
+ __httpRequest.Content = __httpRequestContent;
+
+ global::Voicebox.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareAddProfileSampleProfilesProfileIdSamplesPostRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ profileId: profileId!,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ 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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessAddProfileSampleProfilesProfileIdSamplesPostResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Validation Error
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Voicebox.HTTPValidationError? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::Voicebox.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::Voicebox.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+ throw new global::Voicebox.ApiException(
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return
+ global::Voicebox.ProfileSampleResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Voicebox.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Voicebox.ProfileSampleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Voicebox.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Add Profile Sample
+ /// Add a sample to a voice profile.
+ ///
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ /// 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> AddProfileSampleProfilesProfileIdSamplesPostAsResponseAsync(
+ string profileId,
+ global::System.IO.Stream file,
+ string filename,
+ string referenceText,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+
+ file = file ?? throw new global::System.ArgumentNullException(nameof(file));
+ var request = new global::Voicebox.BodyAddProfileSampleProfilesProfileIdSamplesPost
+ {
+ File = global::System.Array.Empty(),
+ Filename = filename,
+ ReferenceText = referenceText,
+ };
+ PrepareArguments(
+ client: HttpClient);
+ PrepareAddProfileSampleProfilesProfileIdSamplesPostArguments(
+ httpClient: HttpClient,
+ profileId: ref profileId,
+ request: request);
+
+ using var __timeoutCancellationTokenSource = global::Voicebox.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Voicebox.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Voicebox.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: false);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Voicebox.PathBuilder(
+ path: $"/profiles/{profileId}/samples",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Voicebox.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(profileId ?? string.Empty),
+ name: "\"profile_id\"");
+
+ var __contentFile = new global::System.Net.Http.StreamContent(file);
+ __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
+ request.Filename is null
+ ? "application/octet-stream"
+ : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
+ {
+ ".aac" => "audio/aac",
+ ".flac" => "audio/flac",
+ ".gif" => "image/gif",
+ ".jpeg" => "image/jpeg",
+ ".jpg" => "image/jpeg",
+ ".json" => "application/json",
+ ".m4a" => "audio/mp4",
+ ".mp3" => "audio/mpeg",
+ ".mp4" => "video/mp4",
+ ".mpeg" => "audio/mpeg",
+ ".mpga" => "audio/mpeg",
+ ".oga" => "audio/ogg",
+ ".ogg" => "audio/ogg",
+ ".opus" => "audio/ogg",
+ ".pdf" => "application/pdf",
+ ".png" => "image/png",
+ ".txt" => "text/plain",
+ ".wav" => "audio/wav",
+ ".weba" => "audio/webm",
+ ".webm" => "video/webm",
+ ".webp" => "image/webp",
+ _ => "application/octet-stream",
+ });
+ __httpRequestContent.Add(
+ content: __contentFile,
+ name: "\"file\"",
+ fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty);
+ if (__contentFile.Headers.ContentDisposition != null)
+ {
+ __contentFile.Headers.ContentDisposition.FileNameStar = null;
+ }
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.ReferenceText ?? string.Empty),
+ name: "\"reference_text\"");
+
+ __httpRequest.Content = __httpRequestContent;
+
+ global::Voicebox.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareAddProfileSampleProfilesProfileIdSamplesPostRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ profileId: profileId!,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ 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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessAddProfileSampleProfilesProfileIdSamplesPostResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "AddProfileSampleProfilesProfileIdSamplesPost",
+ methodName: "AddProfileSampleProfilesProfileIdSamplesPostAsync",
+ pathTemplate: "$\"/profiles/{profileId}/samples\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Validation Error
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Voicebox.HTTPValidationError? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::Voicebox.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::Voicebox.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+ throw new global::Voicebox.ApiException(
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessAddProfileSampleProfilesProfileIdSamplesPostResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Voicebox.ProfileSampleResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Voicebox.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Voicebox.ProfileSampleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Voicebox.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs
index 89c294f..27326c5 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.AddStoryItemStoriesStoryIdItemsPost.g.cs
@@ -35,6 +35,32 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
public async global::System.Threading.Tasks.Task AddStoryItemStoriesStoryIdItemsPostAsync(
string storyId,
+ global::Voicebox.StoryItemCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await AddStoryItemStoriesStoryIdItemsPostAsResponseAsync(
+ storyId: storyId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Add Story Item
+ /// Add a generation to a story.
+ ///
+ ///
+ ///
+ /// 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> AddStoryItemStoriesStoryIdItemsPostAsResponseAsync(
+ string storyId,
+
global::Voicebox.StoryItemCreate request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -64,6 +90,7 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: $"/stories/{storyId}/items",
baseUri: HttpClient.BaseAddress);
@@ -127,6 +154,8 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -137,6 +166,11 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -154,6 +188,8 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -163,8 +199,7 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -173,6 +208,11 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -189,14 +229,15 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -236,6 +277,8 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -256,6 +299,8 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -318,9 +363,13 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.StoryItemDetail.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.StoryItemDetail.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -348,9 +397,13 @@ partial void ProcessAddStoryItemStoriesStoryIdItemsPostResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.StoryItemDetail.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.StoryItemDetail.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs
index e78e056..ba5a8a9 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPost.g.cs
@@ -35,6 +35,32 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
public async global::System.Threading.Tasks.Task ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPostAsync(
string generationId,
+ global::Voicebox.ApplyEffectsRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPostAsResponseAsync(
+ generationId: generationId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Apply Effects To Generation
+ /// Apply an effects chain to an existing generation, creating a new version.
+ ///
+ ///
+ ///
+ /// 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> ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPostAsResponseAsync(
+ string generationId,
+
global::Voicebox.ApplyEffectsRequest request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -64,6 +90,7 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: $"/generations/{generationId}/versions/apply-effects",
baseUri: HttpClient.BaseAddress);
@@ -127,6 +154,8 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -137,6 +166,11 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -154,6 +188,8 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -163,8 +199,7 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -173,6 +208,11 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -189,14 +229,15 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -236,6 +277,8 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -256,6 +299,8 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -318,9 +363,13 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.GenerationVersionResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.GenerationVersionResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -348,9 +397,13 @@ partial void ProcessApplyEffectsToGenerationGenerationsGenerationIdVersionsApply
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.GenerationVersionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.GenerationVersionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs
index 4726380..6864a7e 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelGenerationGenerateGenerationIdCancelPost.g.cs
@@ -33,6 +33,27 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CancelGenerationGenerateGenerationIdCancelPostAsResponseAsync(
+ generationId: generationId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Cancel Generation
+ /// Cancel a queued or running generation.
+ ///
+ ///
+ /// 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> CancelGenerationGenerateGenerationIdCancelPostAsResponseAsync(
+ string generationId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -56,6 +77,7 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: $"/generate/{generationId}/cancel",
baseUri: HttpClient.BaseAddress);
@@ -112,6 +134,8 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -122,6 +146,11 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -139,6 +168,8 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -148,8 +179,7 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -158,6 +188,11 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -174,14 +209,15 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +257,8 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -241,6 +279,8 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -303,7 +343,11 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -331,7 +375,11 @@ partial void ProcessCancelGenerationGenerateGenerationIdCancelPostResponseConten
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs
index ee4e094..28f4dfe 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CancelModelDownloadModelsDownloadCancelPost.g.cs
@@ -31,6 +31,29 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
///
public async global::System.Threading.Tasks.Task CancelModelDownloadModelsDownloadCancelPostAsync(
+ global::Voicebox.ModelDownloadRequest request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CancelModelDownloadModelsDownloadCancelPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Cancel Model Download
+ /// Cancel or dismiss an errored/stale download 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> CancelModelDownloadModelsDownloadCancelPostAsResponseAsync(
+
global::Voicebox.ModelDownloadRequest request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -59,6 +82,7 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/models/download/cancel",
baseUri: HttpClient.BaseAddress);
@@ -121,6 +145,8 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -131,6 +157,11 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -148,6 +179,8 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -157,8 +190,7 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -167,6 +199,11 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -183,14 +220,15 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -230,6 +268,8 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -250,6 +290,8 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -312,7 +354,11 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -340,7 +386,11 @@ partial void ProcessCancelModelDownloadModelsDownloadCancelPostResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs
index 963f20d..4ce6d4b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CaptureReadinessEndpointCaptureReadinessGet.g.cs
@@ -33,6 +33,28 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
public async global::System.Threading.Tasks.Task CaptureReadinessEndpointCaptureReadinessGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CaptureReadinessEndpointCaptureReadinessGetAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Capture Readiness Endpoint
+ /// Whether the STT and LLM models the user has selected are downloaded.
+ /// The frontend gates the global hotkey on this — pressing the chord with
+ /// a missing model would otherwise produce a stuck "transcribing" pill that
+ /// waits forever for a download to finish. Checks on-disk cache, not RAM
+ /// load, so the answer survives backend restarts.
+ ///
+ /// 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> CaptureReadinessEndpointCaptureReadinessGetAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -55,6 +77,7 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/capture/readiness",
baseUri: HttpClient.BaseAddress);
@@ -110,6 +133,8 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -120,6 +145,11 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -137,6 +167,8 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -146,8 +178,7 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -156,6 +187,11 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -172,14 +208,15 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -219,6 +256,8 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -239,6 +278,8 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -263,9 +304,13 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.CaptureReadinessResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.CaptureReadinessResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -293,9 +338,13 @@ partial void ProcessCaptureReadinessEndpointCaptureReadinessGetResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.CaptureReadinessResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.CaptureReadinessResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearAllTasksTasksClearPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearAllTasksTasksClearPost.g.cs
index f7cc404..a6c6c43 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearAllTasksTasksClearPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearAllTasksTasksClearPost.g.cs
@@ -29,6 +29,24 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
public async global::System.Threading.Tasks.Task ClearAllTasksTasksClearPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ClearAllTasksTasksClearPostAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Clear All Tasks
+ /// Clear all download tasks and progress state.
+ ///
+ /// 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> ClearAllTasksTasksClearPostAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -51,6 +69,7 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/tasks/clear",
baseUri: HttpClient.BaseAddress);
@@ -106,6 +125,8 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -116,6 +137,11 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -133,6 +159,8 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -142,8 +170,7 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -152,6 +179,11 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -168,14 +200,15 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +248,8 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -235,6 +270,8 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -259,7 +296,11 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -287,7 +328,11 @@ partial void ProcessClearAllTasksTasksClearPostResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearCacheCacheClearPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearCacheCacheClearPost.g.cs
index 5d94195..23efbe4 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearCacheCacheClearPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearCacheCacheClearPost.g.cs
@@ -29,6 +29,24 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
public async global::System.Threading.Tasks.Task ClearCacheCacheClearPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ClearCacheCacheClearPostAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Clear Cache
+ /// Clear all voice prompt caches (memory and disk).
+ ///
+ /// 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> ClearCacheCacheClearPostAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -51,6 +69,7 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/cache/clear",
baseUri: HttpClient.BaseAddress);
@@ -106,6 +125,8 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -116,6 +137,11 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -133,6 +159,8 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -142,8 +170,7 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -152,6 +179,11 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -168,14 +200,15 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +248,8 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -235,6 +270,8 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -259,7 +296,11 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -287,7 +328,11 @@ partial void ProcessClearCacheCacheClearPostResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs
index ca5e6c1..26fba5b 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ClearFailedGenerationsHistoryFailedDelete.g.cs
@@ -29,6 +29,24 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
public async global::System.Threading.Tasks.Task ClearFailedGenerationsHistoryFailedDeleteAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ClearFailedGenerationsHistoryFailedDeleteAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Clear Failed Generations
+ /// Delete every generation with status='failed'. Used by the UI's 'Clear failed' button (#410).
+ ///
+ /// 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> ClearFailedGenerationsHistoryFailedDeleteAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -51,6 +69,7 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/history/failed",
baseUri: HttpClient.BaseAddress);
@@ -106,6 +125,8 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -116,6 +137,11 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -133,6 +159,8 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -142,8 +170,7 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -152,6 +179,11 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -168,14 +200,15 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +248,8 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -235,6 +270,8 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -259,7 +296,11 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -287,7 +328,11 @@ partial void ProcessClearFailedGenerationsHistoryFailedDeleteResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs
index 5f5912d..724db92 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.ComposeInCharacterProfilesProfileIdComposePost.g.cs
@@ -33,6 +33,27 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await ComposeInCharacterProfilesProfileIdComposePostAsResponseAsync(
+ profileId: profileId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Compose In Character
+ /// Produce a fresh utterance in the profile's character voice.
+ ///
+ ///
+ /// 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> ComposeInCharacterProfilesProfileIdComposePostAsResponseAsync(
+ string profileId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -56,6 +77,7 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: $"/profiles/{profileId}/compose",
baseUri: HttpClient.BaseAddress);
@@ -112,6 +134,8 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -122,6 +146,11 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -139,6 +168,8 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -148,8 +179,7 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -158,6 +188,11 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -174,14 +209,15 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +257,8 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -241,6 +279,8 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -303,9 +343,13 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.PersonalityTextResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.PersonalityTextResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -333,9 +377,13 @@ partial void ProcessComposeInCharacterProfilesProfileIdComposePostResponseConten
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.PersonalityTextResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.PersonalityTextResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs
index fa2cd01..94cde8e 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateCaptureEndpointCapturesPost.g.cs
@@ -31,6 +31,29 @@ partial void ProcessCreateCaptureEndpointCapturesPostResponseContent(
///
public async global::System.Threading.Tasks.Task CreateCaptureEndpointCapturesPostAsync(
+ global::Voicebox.BodyCreateCaptureEndpointCapturesPost request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateCaptureEndpointCapturesPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create Capture Endpoint
+ /// Upload audio, run STT, persist the capture.
+ ///
+ ///
+ /// 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> CreateCaptureEndpointCapturesPostAsResponseAsync(
+
global::Voicebox.BodyCreateCaptureEndpointCapturesPost request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -55,10 +78,11 @@ partial void ProcessCreateCaptureEndpointCapturesPostResponseContent(
var __maxAttempts = global::Voicebox.AutoSDKRequestOptionsSupport.GetMaxAttempts(
clientOptions: Options,
requestOptions: requestOptions,
- supportsRetry: true);
+ supportsRetry: false);
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/captures",
baseUri: HttpClient.BaseAddress);
@@ -74,6 +98,7 @@ partial void ProcessCreateCaptureEndpointCapturesPostResponseContent(
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
+
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty());
__contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
@@ -112,28 +137,34 @@ request.Filename is null
{
__contentFile.Headers.ContentDisposition.FileNameStar = null;
}
+
if (request.Language != default)
{
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.Language ?? string.Empty),
name: "\"language\"");
- }
+
+ }
if (request.Source != default)
{
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.Source ?? string.Empty),
name: "\"source\"");
- }
+
+ }
if (request.SttModel != default)
{
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.SttModel ?? string.Empty),
name: "\"stt_model\"");
+
}
+
__httpRequest.Content = __httpRequestContent;
+
global::Voicebox.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
clientHeaders: Options.Headers,
@@ -175,6 +206,8 @@ request.Filename is null
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -185,6 +218,11 @@ request.Filename is null
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -202,6 +240,8 @@ request.Filename is null
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 @@ request.Filename is null
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +260,11 @@ request.Filename is null
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -237,14 +281,15 @@ request.Filename is null
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -284,6 +329,8 @@ request.Filename is null
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -304,6 +351,8 @@ request.Filename is null
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -366,9 +415,13 @@ request.Filename is null
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.CaptureCreateResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.CaptureCreateResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -396,9 +449,13 @@ request.Filename is null
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.CaptureCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.CaptureCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -473,5 +530,934 @@ request.Filename is null
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
+
+ ///
+ /// Create Capture Endpoint
+ /// Upload audio, run STT, persist the capture.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: file
+ ///
+ ///
+ /// 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 CreateCaptureEndpointCapturesPostAsync(
+ global::System.IO.Stream file,
+ string filename,
+ string? language = default,
+ string? source = default,
+ string? sttModel = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+
+ file = file ?? throw new global::System.ArgumentNullException(nameof(file));
+ var request = new global::Voicebox.BodyCreateCaptureEndpointCapturesPost
+ {
+ File = global::System.Array.Empty(),
+ Filename = filename,
+ Language = language,
+ Source = source,
+ SttModel = sttModel,
+ };
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateCaptureEndpointCapturesPostArguments(
+ httpClient: HttpClient,
+ request: request);
+
+ using var __timeoutCancellationTokenSource = global::Voicebox.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Voicebox.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Voicebox.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: false);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Voicebox.PathBuilder(
+ path: "/captures",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Voicebox.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentFile = new global::System.Net.Http.StreamContent(file);
+ __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
+ request.Filename is null
+ ? "application/octet-stream"
+ : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
+ {
+ ".aac" => "audio/aac",
+ ".flac" => "audio/flac",
+ ".gif" => "image/gif",
+ ".jpeg" => "image/jpeg",
+ ".jpg" => "image/jpeg",
+ ".json" => "application/json",
+ ".m4a" => "audio/mp4",
+ ".mp3" => "audio/mpeg",
+ ".mp4" => "video/mp4",
+ ".mpeg" => "audio/mpeg",
+ ".mpga" => "audio/mpeg",
+ ".oga" => "audio/ogg",
+ ".ogg" => "audio/ogg",
+ ".opus" => "audio/ogg",
+ ".pdf" => "application/pdf",
+ ".png" => "image/png",
+ ".txt" => "text/plain",
+ ".wav" => "audio/wav",
+ ".weba" => "audio/webm",
+ ".webm" => "video/webm",
+ ".webp" => "image/webp",
+ _ => "application/octet-stream",
+ });
+ __httpRequestContent.Add(
+ content: __contentFile,
+ name: "\"file\"",
+ fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty);
+ if (__contentFile.Headers.ContentDisposition != null)
+ {
+ __contentFile.Headers.ContentDisposition.FileNameStar = null;
+ }
+
+ if (request.Language != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.Language ?? string.Empty),
+ name: "\"language\"");
+
+ }
+ if (request.Source != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.Source ?? string.Empty),
+ name: "\"source\"");
+
+ }
+ if (request.SttModel != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.SttModel ?? string.Empty),
+ name: "\"stt_model\"");
+
+ }
+
+ __httpRequest.Content = __httpRequestContent;
+
+ global::Voicebox.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateCaptureEndpointCapturesPostRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ 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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessCreateCaptureEndpointCapturesPostResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Validation Error
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Voicebox.HTTPValidationError? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::Voicebox.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::Voicebox.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+ throw new global::Voicebox.ApiException(
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessCreateCaptureEndpointCapturesPostResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return
+ global::Voicebox.CaptureCreateResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Voicebox.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Voicebox.CaptureCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Voicebox.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Create Capture Endpoint
+ /// Upload audio, run STT, persist the capture.
+ ///
+ ///
+ /// The stream to send as the multipart 'file' file part.
+ ///
+ ///
+ ///
+ ///
+ /// Default Value: file
+ ///
+ ///
+ /// 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> CreateCaptureEndpointCapturesPostAsResponseAsync(
+ global::System.IO.Stream file,
+ string filename,
+ string? language = default,
+ string? source = default,
+ string? sttModel = default,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+
+ file = file ?? throw new global::System.ArgumentNullException(nameof(file));
+ var request = new global::Voicebox.BodyCreateCaptureEndpointCapturesPost
+ {
+ File = global::System.Array.Empty(),
+ Filename = filename,
+ Language = language,
+ Source = source,
+ SttModel = sttModel,
+ };
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateCaptureEndpointCapturesPostArguments(
+ httpClient: HttpClient,
+ request: request);
+
+ using var __timeoutCancellationTokenSource = global::Voicebox.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Voicebox.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Voicebox.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: false);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Voicebox.PathBuilder(
+ path: "/captures",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Voicebox.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentFile = new global::System.Net.Http.StreamContent(file);
+ __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
+ request.Filename is null
+ ? "application/octet-stream"
+ : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
+ {
+ ".aac" => "audio/aac",
+ ".flac" => "audio/flac",
+ ".gif" => "image/gif",
+ ".jpeg" => "image/jpeg",
+ ".jpg" => "image/jpeg",
+ ".json" => "application/json",
+ ".m4a" => "audio/mp4",
+ ".mp3" => "audio/mpeg",
+ ".mp4" => "video/mp4",
+ ".mpeg" => "audio/mpeg",
+ ".mpga" => "audio/mpeg",
+ ".oga" => "audio/ogg",
+ ".ogg" => "audio/ogg",
+ ".opus" => "audio/ogg",
+ ".pdf" => "application/pdf",
+ ".png" => "image/png",
+ ".txt" => "text/plain",
+ ".wav" => "audio/wav",
+ ".weba" => "audio/webm",
+ ".webm" => "video/webm",
+ ".webp" => "image/webp",
+ _ => "application/octet-stream",
+ });
+ __httpRequestContent.Add(
+ content: __contentFile,
+ name: "\"file\"",
+ fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty);
+ if (__contentFile.Headers.ContentDisposition != null)
+ {
+ __contentFile.Headers.ContentDisposition.FileNameStar = null;
+ }
+
+ if (request.Language != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.Language ?? string.Empty),
+ name: "\"language\"");
+
+ }
+ if (request.Source != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.Source ?? string.Empty),
+ name: "\"source\"");
+
+ }
+ if (request.SttModel != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.SttModel ?? string.Empty),
+ name: "\"stt_model\"");
+
+ }
+
+ __httpRequest.Content = __httpRequestContent;
+
+ global::Voicebox.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateCaptureEndpointCapturesPostRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ 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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessCreateCaptureEndpointCapturesPostResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "CreateCaptureEndpointCapturesPost",
+ methodName: "CreateCaptureEndpointCapturesPostAsync",
+ pathTemplate: "\"/captures\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ // Validation Error
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Voicebox.HTTPValidationError? __value_422 = null;
+ try
+ {
+ if (__effectiveReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+ __value_422 = global::Voicebox.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::Voicebox.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+ throw new global::Voicebox.ApiException(
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessCreateCaptureEndpointCapturesPostResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Voicebox.CaptureCreateResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Voicebox.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Voicebox.CaptureCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Voicebox.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
}
}
\ No newline at end of file
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateChannelChannelsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateChannelChannelsPost.g.cs
index 07576e6..00548d3 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateChannelChannelsPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateChannelChannelsPost.g.cs
@@ -31,6 +31,29 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
///
public async global::System.Threading.Tasks.Task CreateChannelChannelsPostAsync(
+ global::Voicebox.AudioChannelCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateChannelChannelsPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create Channel
+ /// Create a new audio channel.
+ ///
+ ///
+ /// 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> CreateChannelChannelsPostAsResponseAsync(
+
global::Voicebox.AudioChannelCreate request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -59,6 +82,7 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/channels",
baseUri: HttpClient.BaseAddress);
@@ -121,6 +145,8 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -131,6 +157,11 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -148,6 +179,8 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -157,8 +190,7 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -167,6 +199,11 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -183,14 +220,15 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -230,6 +268,8 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -250,6 +290,8 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -312,9 +354,13 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.AudioChannelResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.AudioChannelResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -342,9 +388,13 @@ partial void ProcessCreateChannelChannelsPostResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.AudioChannelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.AudioChannelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs
index 5947e9d..f55534d 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateEffectPresetEffectsPresetsPost.g.cs
@@ -31,6 +31,29 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
///
public async global::System.Threading.Tasks.Task CreateEffectPresetEffectsPresetsPostAsync(
+ global::Voicebox.EffectPresetCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateEffectPresetEffectsPresetsPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create Effect Preset
+ /// Create a new effect preset.
+ ///
+ ///
+ /// 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> CreateEffectPresetEffectsPresetsPostAsResponseAsync(
+
global::Voicebox.EffectPresetCreate request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -59,6 +82,7 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/effects/presets",
baseUri: HttpClient.BaseAddress);
@@ -121,6 +145,8 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -131,6 +157,11 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -148,6 +179,8 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -157,8 +190,7 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -167,6 +199,11 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -183,14 +220,15 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -230,6 +268,8 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -250,6 +290,8 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -312,9 +354,13 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.EffectPresetResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.EffectPresetResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -342,9 +388,13 @@ partial void ProcessCreateEffectPresetEffectsPresetsPostResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.EffectPresetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.EffectPresetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateProfileProfilesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateProfileProfilesPost.g.cs
index 51a6175..6ef55b6 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateProfileProfilesPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateProfileProfilesPost.g.cs
@@ -31,6 +31,29 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
///
public async global::System.Threading.Tasks.Task CreateProfileProfilesPostAsync(
+ global::Voicebox.VoiceProfileCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateProfileProfilesPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create Profile
+ /// Create a new voice profile.
+ ///
+ ///
+ /// 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> CreateProfileProfilesPostAsResponseAsync(
+
global::Voicebox.VoiceProfileCreate request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -59,6 +82,7 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/profiles",
baseUri: HttpClient.BaseAddress);
@@ -121,6 +145,8 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -131,6 +157,11 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -148,6 +179,8 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -157,8 +190,7 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -167,6 +199,11 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -183,14 +220,15 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -230,6 +268,8 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -250,6 +290,8 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -312,9 +354,13 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.VoiceProfileResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.VoiceProfileResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -342,9 +388,13 @@ partial void ProcessCreateProfileProfilesPostResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.VoiceProfileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.VoiceProfileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateStoryStoriesPost.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateStoryStoriesPost.g.cs
index 269f254..9d2cf8e 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateStoryStoriesPost.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.CreateStoryStoriesPost.g.cs
@@ -31,6 +31,29 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
///
public async global::System.Threading.Tasks.Task CreateStoryStoriesPostAsync(
+ global::Voicebox.StoryCreate request,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateStoryStoriesPostAsResponseAsync(
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Create Story
+ /// Create a new story.
+ ///
+ ///
+ /// 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> CreateStoryStoriesPostAsResponseAsync(
+
global::Voicebox.StoryCreate request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -59,6 +82,7 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/stories",
baseUri: HttpClient.BaseAddress);
@@ -121,6 +145,8 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -131,6 +157,11 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -148,6 +179,8 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -157,8 +190,7 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -167,6 +199,11 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -183,14 +220,15 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -230,6 +268,8 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -250,6 +290,8 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -312,9 +354,13 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
{
__response.EnsureSuccessStatusCode();
- return
- global::Voicebox.StoryResponse.FromJson(__content, JsonSerializerContext) ??
+ var __value = global::Voicebox.StoryResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
@@ -342,9 +388,13 @@ partial void ProcessCreateStoryStoriesPostResponseContent(
#endif
).ConfigureAwait(false);
- return
- await global::Voicebox.StoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ var __value = await global::Voicebox.StoryResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs
index 4d9452f..cceb895 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCaptureEndpointCapturesCaptureIdDelete.g.cs
@@ -32,6 +32,26 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
string captureId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteCaptureEndpointCapturesCaptureIdDeleteAsResponseAsync(
+ captureId: captureId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete Capture Endpoint
+ ///
+ ///
+ /// 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> DeleteCaptureEndpointCapturesCaptureIdDeleteAsResponseAsync(
+ string captureId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -55,6 +75,7 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: $"/captures/{captureId}",
baseUri: HttpClient.BaseAddress);
@@ -111,6 +132,8 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -121,6 +144,11 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -138,6 +166,8 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -147,8 +177,7 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -157,6 +186,11 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -173,14 +207,15 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -220,6 +255,8 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -240,6 +277,8 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -302,7 +341,11 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -330,7 +373,11 @@ partial void ProcessDeleteCaptureEndpointCapturesCaptureIdDeleteResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs
index 460dce6..fb07206 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteChannelChannelsChannelIdDelete.g.cs
@@ -33,6 +33,27 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
string channelId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteChannelChannelsChannelIdDeleteAsResponseAsync(
+ channelId: channelId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete Channel
+ /// Delete an audio channel.
+ ///
+ ///
+ /// 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> DeleteChannelChannelsChannelIdDeleteAsResponseAsync(
+ string channelId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -56,6 +77,7 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: $"/channels/{channelId}",
baseUri: HttpClient.BaseAddress);
@@ -112,6 +134,8 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -122,6 +146,11 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -139,6 +168,8 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -148,8 +179,7 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -158,6 +188,11 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -174,14 +209,15 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +257,8 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -241,6 +279,8 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -303,7 +343,11 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -331,7 +375,11 @@ partial void ProcessDeleteChannelChannelsChannelIdDeleteResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs
index c50cbb5..8ae915d 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteCudaBackendBackendCudaDelete.g.cs
@@ -29,6 +29,24 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
public async global::System.Threading.Tasks.Task DeleteCudaBackendBackendCudaDeleteAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteCudaBackendBackendCudaDeleteAsResponseAsync(
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete Cuda Backend
+ /// Delete the downloaded CUDA backend binary.
+ ///
+ /// 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> DeleteCudaBackendBackendCudaDeleteAsResponseAsync(
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -51,6 +69,7 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: "/backend/cuda",
baseUri: HttpClient.BaseAddress);
@@ -106,6 +125,8 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -116,6 +137,11 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -133,6 +159,8 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -142,8 +170,7 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -152,6 +179,11 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -168,14 +200,15 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -215,6 +248,8 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -235,6 +270,8 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
@@ -259,7 +296,11 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -287,7 +328,11 @@ partial void ProcessDeleteCudaBackendBackendCudaDeleteResponseContent(
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs
index b1bba2c..327799d 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteEffectPresetEffectsPresetsPresetIdDelete.g.cs
@@ -33,6 +33,27 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
string presetId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteEffectPresetEffectsPresetsPresetIdDeleteAsResponseAsync(
+ presetId: presetId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete Effect Preset
+ /// Delete a user effect preset.
+ ///
+ ///
+ /// 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> DeleteEffectPresetEffectsPresetsPresetIdDeleteAsResponseAsync(
+ string presetId,
+ global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -56,6 +77,7 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
+
var __pathBuilder = new global::Voicebox.PathBuilder(
path: $"/effects/presets/{presetId}",
baseUri: HttpClient.BaseAddress);
@@ -112,6 +134,8 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
try
{
@@ -122,6 +146,11 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
}
catch (global::System.Net.Http.HttpRequestException __exception)
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
@@ -139,6 +168,8 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
attempt: __attempt,
maxAttempts: __maxAttempts,
willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
if (!__willRetry)
{
@@ -148,8 +179,7 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
__httpRequest.Dispose();
__httpRequest = null;
await global::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -158,6 +188,11 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
__attempt < __maxAttempts &&
global::Voicebox.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
{
+ var __retryDelay = global::Voicebox.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
await global::Voicebox.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
clientOptions: Options,
context: global::Voicebox.AutoSDKRequestOptionsSupport.CreateHookContext(
@@ -174,14 +209,15 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
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::Voicebox.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
- clientOptions: Options,
- requestOptions: requestOptions,
+ retryDelay: __retryDelay,
cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
continue;
}
@@ -221,6 +257,8 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
else
@@ -241,6 +279,8 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
attempt: __attemptNumber,
maxAttempts: __maxAttempts,
willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// Validation Error
@@ -303,7 +343,11 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
{
__response.EnsureSuccessStatusCode();
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
@@ -331,7 +375,11 @@ partial void ProcessDeleteEffectPresetEffectsPresetsPresetIdDeleteResponseConten
#endif
).ConfigureAwait(false);
- return __content;
+ return new global::Voicebox.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Voicebox.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __content);
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs
index a3e98cd..deb4018 100644
--- a/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs
+++ b/src/libs/Voicebox/Generated/Voicebox.VoiceboxClient.DeleteGenerationHistoryGenerationIdDelete.g.cs
@@ -33,6 +33,27 @@ partial void ProcessDeleteGenerationHistoryGenerationIdDeleteResponseContent(
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await DeleteGenerationHistoryGenerationIdDeleteAsResponseAsync(
+ generationId: generationId,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Delete Generation