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/Inworld/Generated/Inworld.AutoSDKHttpResponse.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@

#nullable enable

namespace Inworld
{
/// <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; }
}
}
11 changes: 11 additions & 0 deletions src/libs/Inworld/Generated/Inworld.IModelsClient.ListModels.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@ public partial interface IModelsClient
global::System.Threading.Tasks.Task<global::Inworld.ListModelsResponse> ListModelsAsync(
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List available LLM models<br/>
/// List all LLM models supported by the Inworld LLM Router, including<br/>
/// provider, pricing, modalities, capabilities, and context length.
/// </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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.ListModelsResponse>> ListModelsAsResponseAsync(
global::Inworld.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 ISpeechToTextClient
/// Transcribe audio<br/>
/// Transcribe a complete audio file using the configured STT model.
/// </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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.TranscribeResponse>> TranscribeAudioAsResponseAsync(

global::Inworld.TranscribeRequest request,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Transcribe audio<br/>
/// Transcribe a complete audio file using the configured STT model.
/// </summary>
/// <param name="transcribeConfig">
/// Configuration for STT transcription.
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ public partial interface ITextToSpeechClient
/// Returns the full audio payload once generation completes. Maximum<br/>
/// input is 2,000 characters; maximum output is 16 MB.
/// </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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.SynthesizeSpeechResponse>> SynthesizeSpeechAsResponseAsync(

global::Inworld.SynthesizeSpeechRequest request,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Synthesize speech<br/>
/// Synthesize speech from text using the specified voice and model.<br/>
/// Returns the full audio payload once generation completes. Maximum<br/>
/// input is 2,000 characters; maximum output is 16 MB.
/// </summary>
/// <param name="text">
/// The text to synthesize. Maximum 2,000 characters.
/// </param>
Expand Down
14 changes: 14 additions & 0 deletions src/libs/Inworld/Generated/Inworld.IVoicesClient.CloneVoice.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ public partial interface IVoicesClient
/// Create an Instant Voice Clone (IVC) from one or more short audio<br/>
/// samples. The returned voice can be used in TTS synthesis.
/// </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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.CloneVoiceResponse>> CloneVoiceAsResponseAsync(

global::Inworld.CloneVoiceRequest request,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Clone voice<br/>
/// Create an Instant Voice Clone (IVC) from one or more short audio<br/>
/// samples. The returned voice can be used in TTS synthesis.
/// </summary>
/// <param name="displayName"></param>
/// <param name="langCode">
/// BCP-47-like language code used by Inworld voice APIs.
Expand Down
11 changes: 11 additions & 0 deletions src/libs/Inworld/Generated/Inworld.IVoicesClient.DeleteVoice.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@ public partial interface IVoicesClient
string voiceId,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete voice
/// </summary>
/// <param name="voiceId"></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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<string>> DeleteVoiceAsResponseAsync(
string voiceId,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
14 changes: 14 additions & 0 deletions src/libs/Inworld/Generated/Inworld.IVoicesClient.DesignVoice.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ public partial interface IVoicesClient
/// Generate candidate voice previews from a text description. Previews<br/>
/// can be promoted to a persistent voice via Publish Voice.
/// </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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.DesignVoiceResponse>> DesignVoiceAsResponseAsync(

global::Inworld.DesignVoiceRequest request,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Design voice<br/>
/// Generate candidate voice previews from a text description. Previews<br/>
/// can be promoted to a persistent voice via Publish Voice.
/// </summary>
/// <param name="langCode">
/// BCP-47-like language code used by Inworld voice APIs.
/// </param>
Expand Down
11 changes: 11 additions & 0 deletions src/libs/Inworld/Generated/Inworld.IVoicesClient.GetVoice.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@ public partial interface IVoicesClient
string voiceId,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get voice
/// </summary>
/// <param name="voiceId"></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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.Voice>> GetVoiceAsResponseAsync(
string voiceId,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
12 changes: 12 additions & 0 deletions src/libs/Inworld/Generated/Inworld.IVoicesClient.ListVoices.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,17 @@ public partial interface IVoicesClient
global::System.Collections.Generic.IList<global::Inworld.LangCode>? languages = default,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List voices<br/>
/// List voices available to the authenticated workspace, optionally filtered by language.
/// </summary>
/// <param name="languages"></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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.ListVoicesResponse>> ListVoicesAsResponseAsync(
global::System.Collections.Generic.IList<global::Inworld.LangCode>? languages = default,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
15 changes: 15 additions & 0 deletions src/libs/Inworld/Generated/Inworld.IVoicesClient.PublishVoice.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ public partial interface IVoicesClient
/// Promote a drafted Design Voice preview into a persistent voice.
/// </summary>
/// <param name="voiceId"></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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.Voice>> PublishVoiceAsResponseAsync(
string voiceId,

global::Inworld.PublishVoiceRequest request,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Publish voice<br/>
/// Promote a drafted Design Voice preview into a persistent voice.
/// </summary>
/// <param name="voiceId"></param>
/// <param name="displayName"></param>
/// <param name="description"></param>
/// <param name="tags"></param>
Expand Down
15 changes: 15 additions & 0 deletions src/libs/Inworld/Generated/Inworld.IVoicesClient.UpdateVoice.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ public partial interface IVoicesClient
/// Update editable voice metadata (display name, description, tags).
/// </summary>
/// <param name="voiceId"></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::Inworld.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Inworld.AutoSDKHttpResponse<global::Inworld.Voice>> UpdateVoiceAsResponseAsync(
string voiceId,

global::Inworld.UpdateVoiceRequest request,
global::Inworld.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Update voice<br/>
/// Update editable voice metadata (display name, description, tags).
/// </summary>
/// <param name="voiceId"></param>
/// <param name="displayName"></param>
/// <param name="description"></param>
/// <param name="tags"></param>
Expand Down
Loading
Loading