Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions src/libs/Voicebox/Generated/Voicebox.AutoSDKHttpResponse.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@

#nullable enable

namespace Voicebox
{
/// <summary>
/// Represents a successful HTTP response with status code and headers.
/// </summary>
public partial class AutoSDKHttpResponse
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers)
: this(
statusCode: statusCode,
headers: headers,
requestUri: null)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
global::System.Uri? requestUri)
{
StatusCode = statusCode;
Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers));
RequestUri = requestUri;
}

/// <summary>
/// Gets the HTTP status code.
/// </summary>
public global::System.Net.HttpStatusCode StatusCode { get; }
/// <summary>
/// Gets the response headers.
/// </summary>
public global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> Headers { get; }
/// <summary>
/// Gets the final request URI associated with the response.
/// </summary>
public global::System.Uri? RequestUri { get; }

internal static global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> 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<string>)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;
}
}

/// <summary>
/// Represents a successful HTTP response with status code, headers, and body.
/// </summary>
public partial class AutoSDKHttpResponse<T> : AutoSDKHttpResponse
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse{T}"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
T body)
: this(
statusCode: statusCode,
headers: headers,
requestUri: null,
body: body)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse{T}"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
global::System.Uri? requestUri,
T body)
: base(statusCode, headers, requestUri)
{
Body = body;
}

/// <summary>
/// Gets the response body.
/// </summary>
public T Body { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Add a sample to a voice profile.
/// </summary>
/// <param name="profileId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<global::Voicebox.ProfileSampleResponse>> AddProfileSampleProfilesProfileIdSamplesPostAsResponseAsync(
string profileId,

global::Voicebox.BodyAddProfileSampleProfilesProfileIdSamplesPost request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Add Profile Sample<br/>
/// Add a sample to a voice profile.
/// </summary>
/// <param name="profileId"></param>
/// <param name="file"></param>
/// <param name="filename"></param>
/// <param name="referenceText"></param>
Expand All @@ -37,5 +52,46 @@ public partial interface IVoiceboxClient
string referenceText,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Add Profile Sample<br/>
/// Add a sample to a voice profile.
/// </summary>
/// <param name="profileId"></param>
/// <param name="file">
/// The stream to send as the multipart 'file' file part.
/// </param>
/// <param name="filename"></param>
/// <param name="referenceText"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.ProfileSampleResponse> AddProfileSampleProfilesProfileIdSamplesPostAsync(
string profileId,
global::System.IO.Stream file,
string filename,
string referenceText,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Add Profile Sample<br/>
/// Add a sample to a voice profile.
/// </summary>
/// <param name="profileId"></param>
/// <param name="file">
/// The stream to send as the multipart 'file' file part.
/// </param>
/// <param name="filename"></param>
/// <param name="referenceText"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<global::Voicebox.ProfileSampleResponse>> AddProfileSampleProfilesProfileIdSamplesPostAsResponseAsync(
string profileId,
global::System.IO.Stream file,
string filename,
string referenceText,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Add a generation to a story.
/// </summary>
/// <param name="storyId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<global::Voicebox.StoryItemDetail>> AddStoryItemStoriesStoryIdItemsPostAsResponseAsync(
string storyId,

global::Voicebox.StoryItemCreate request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Add Story Item<br/>
/// Add a generation to a story.
/// </summary>
/// <param name="storyId"></param>
/// <param name="generationId"></param>
/// <param name="startTimeMs"></param>
/// <param name="track">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ public partial interface IVoiceboxClient
/// Apply an effects chain to an existing generation, creating a new version.
/// </summary>
/// <param name="generationId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<global::Voicebox.GenerationVersionResponse>> ApplyEffectsToGenerationGenerationsGenerationIdVersionsApplyEffectsPostAsResponseAsync(
string generationId,

global::Voicebox.ApplyEffectsRequest request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Apply Effects To Generation<br/>
/// Apply an effects chain to an existing generation, creating a new version.
/// </summary>
/// <param name="generationId"></param>
/// <param name="effectsChain"></param>
/// <param name="label">
/// Label for this version (auto-generated if omitted)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Cancel Generation<br/>
/// Cancel a queued or running generation.
/// </summary>
/// <param name="generationId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<string>> CancelGenerationGenerateGenerationIdCancelPostAsResponseAsync(
string generationId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ public partial interface IVoiceboxClient
/// Cancel Model Download<br/>
/// Cancel or dismiss an errored/stale download task.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<string>> CancelModelDownloadModelsDownloadCancelPostAsResponseAsync(

global::Voicebox.ModelDownloadRequest request,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Cancel Model Download<br/>
/// Cancel or dismiss an errored/stale download task.
/// </summary>
/// <param name="modelName"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,19 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task<global::Voicebox.CaptureReadinessResponse> CaptureReadinessEndpointCaptureReadinessGetAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Capture Readiness Endpoint<br/>
/// Whether the STT and LLM models the user has selected are downloaded.<br/>
/// The frontend gates the global hotkey on this — pressing the chord with<br/>
/// a missing model would otherwise produce a stuck "transcribing" pill that<br/>
/// waits forever for a download to finish. Checks on-disk cache, not RAM<br/>
/// load, so the answer survives backend restarts.
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<global::Voicebox.CaptureReadinessResponse>> CaptureReadinessEndpointCaptureReadinessGetAsResponseAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task<string> ClearAllTasksTasksClearPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Clear All Tasks<br/>
/// Clear all download tasks and progress state.
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<string>> ClearAllTasksTasksClearPostAsResponseAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task<string> ClearCacheCacheClearPostAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Clear Cache<br/>
/// Clear all voice prompt caches (memory and disk).
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<string>> ClearCacheCacheClearPostAsResponseAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@ public partial interface IVoiceboxClient
global::System.Threading.Tasks.Task<string> ClearFailedGenerationsHistoryFailedDeleteAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Clear Failed Generations<br/>
/// Delete every generation with status='failed'. Used by the UI's 'Clear failed' button (#410).
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<string>> ClearFailedGenerationsHistoryFailedDeleteAsResponseAsync(
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,17 @@ public partial interface IVoiceboxClient
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Compose In Character<br/>
/// Produce a fresh utterance in the profile's character voice.
/// </summary>
/// <param name="profileId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Voicebox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Voicebox.AutoSDKHttpResponse<global::Voicebox.PersonalityTextResponse>> ComposeInCharacterProfilesProfileIdComposePostAsResponseAsync(
string profileId,
global::Voicebox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading
Loading