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
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public partial class AudioAssetsClient
partial void PrepareUploadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? speechifyVersion,
global::Speechify.AudioAssetsUploadRequest request);
global::Speechify.UploadRequest request);
partial void PrepareUploadRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? speechifyVersion,
global::Speechify.AudioAssetsUploadRequest request);
global::Speechify.UploadRequest request);
partial void ProcessUploadResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand Down Expand Up @@ -61,7 +61,7 @@ partial void ProcessUploadResponseContent(
/// <exception cref="global::Speechify.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Speechify.AudioAsset> UploadAsync(

global::Speechify.AudioAssetsUploadRequest request,
global::Speechify.UploadRequest request,
string? speechifyVersion = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -94,7 +94,7 @@ partial void ProcessUploadResponseContent(
/// <exception cref="global::Speechify.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Speechify.AutoSDKHttpResponse<global::Speechify.AudioAsset>> UploadAsResponseAsync(

global::Speechify.AudioAssetsUploadRequest request,
global::Speechify.UploadRequest request,
string? speechifyVersion = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -616,7 +616,7 @@ request.Filename is null
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Speechify.AudioAssetsUploadRequest
var __request = new global::Speechify.UploadRequest
{
ProjectId = projectId,
File = file,
Expand Down Expand Up @@ -668,7 +668,7 @@ request.Filename is null
{

file = file ?? throw new global::System.ArgumentNullException(nameof(file));
var request = new global::Speechify.AudioAssetsUploadRequest
var request = new global::Speechify.UploadRequest
{
ProjectId = projectId,
File = global::System.Array.Empty<byte>(),
Expand Down Expand Up @@ -1183,7 +1183,7 @@ request.Filename is null
{

file = file ?? throw new global::System.ArgumentNullException(nameof(file));
var request = new global::Speechify.AudioAssetsUploadRequest
var request = new global::Speechify.UploadRequest
{
ProjectId = projectId,
File = global::System.Array.Empty<byte>(),
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

884 changes: 884 additions & 0 deletions src/libs/Speechify/Generated/Speechify.ConversationsClient.Prompt.g.cs

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public partial class FilesClient
partial void PrepareUploadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? speechifyVersion,
global::Speechify.FilesUploadRequest request);
global::Speechify.UploadRequest2 request);
partial void PrepareUploadRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? speechifyVersion,
global::Speechify.FilesUploadRequest request);
global::Speechify.UploadRequest2 request);
partial void ProcessUploadResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand Down Expand Up @@ -77,7 +77,7 @@ partial void ProcessUploadResponseContent(
/// <exception cref="global::Speechify.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Speechify.File> UploadAsync(

global::Speechify.FilesUploadRequest request,
global::Speechify.UploadRequest2 request,
string? speechifyVersion = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -126,7 +126,7 @@ partial void ProcessUploadResponseContent(
/// <exception cref="global::Speechify.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Speechify.AutoSDKHttpResponse<global::Speechify.File>> UploadAsResponseAsync(

global::Speechify.FilesUploadRequest request,
global::Speechify.UploadRequest2 request,
string? speechifyVersion = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -905,7 +905,7 @@ request.Filename is null
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Speechify.FilesUploadRequest
var __request = new global::Speechify.UploadRequest2
{
File = file,
Filename = filename,
Expand Down Expand Up @@ -1007,7 +1007,7 @@ request.Filename is null
{

file = file ?? throw new global::System.ArgumentNullException(nameof(file));
var request = new global::Speechify.FilesUploadRequest
var request = new global::Speechify.UploadRequest2
{
File = global::System.Array.Empty<byte>(),
Filename = filename,
Expand Down Expand Up @@ -1782,7 +1782,7 @@ request.Filename is null
{

file = file ?? throw new global::System.ArgumentNullException(nameof(file));
var request = new global::Speechify.FilesUploadRequest
var request = new global::Speechify.UploadRequest2
{
File = global::System.Array.Empty<byte>(),
Filename = filename,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial interface IAudioAssetsClient
/// <exception cref="global::Speechify.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Speechify.AudioAsset> UploadAsync(

global::Speechify.AudioAssetsUploadRequest request,
global::Speechify.UploadRequest request,
string? speechifyVersion = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand All @@ -44,7 +44,7 @@ public partial interface IAudioAssetsClient
/// <exception cref="global::Speechify.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Speechify.AutoSDKHttpResponse<global::Speechify.AudioAsset>> UploadAsResponseAsync(

global::Speechify.AudioAssetsUploadRequest request,
global::Speechify.UploadRequest request,
string? speechifyVersion = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#nullable enable

namespace Speechify
{
public partial interface IConversationsClient
{
/// <summary>
/// Cancel Conversation Prompt<br/>
/// Cancel an agent-initiated turn the worker has not started. Idempotent:<br/>
/// a `pending` prompt moves to `cancelled` and nothing is posted; a<br/>
/// prompt already `running` or terminal is returned unchanged - a<br/>
/// running turn is seconds from posting and its reply is already the<br/>
/// agent's own words, so there is nothing to recall.
/// </summary>
/// <param name="conversationId"></param>
/// <param name="promptId"></param>
/// <param name="speechifyVersion"></param>
/// <param name="idempotencyKey">
/// Optional idempotency key. When omitted, the SDK generates one for this 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::Speechify.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Speechify.ConversationPrompt> CancelPromptAsync(
string conversationId,
string promptId,
string? speechifyVersion = default,
string? idempotencyKey = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Cancel Conversation Prompt<br/>
/// Cancel an agent-initiated turn the worker has not started. Idempotent:<br/>
/// a `pending` prompt moves to `cancelled` and nothing is posted; a<br/>
/// prompt already `running` or terminal is returned unchanged - a<br/>
/// running turn is seconds from posting and its reply is already the<br/>
/// agent's own words, so there is nothing to recall.
/// </summary>
/// <param name="conversationId"></param>
/// <param name="promptId"></param>
/// <param name="speechifyVersion"></param>
/// <param name="idempotencyKey">
/// Optional idempotency key. When omitted, the SDK generates one for this 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::Speechify.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Speechify.AutoSDKHttpResponse<global::Speechify.ConversationPrompt>> CancelPromptAsResponseAsync(
string conversationId,
string promptId,
string? speechifyVersion = default,
string? idempotencyKey = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#nullable enable

namespace Speechify
{
public partial interface IConversationsClient
{
/// <summary>
/// Get Conversation Prompt<br/>
/// Poll an agent-initiated turn. `pending` is queued, `running` is on the<br/>
/// worker, `completed` means the reply reached the thread (or the agent<br/>
/// chose to say nothing), `failed` carries `error` saying why it never<br/>
/// posted, and `cancelled` means a cancel got there before the worker.
/// </summary>
/// <param name="conversationId"></param>
/// <param name="promptId"></param>
/// <param name="speechifyVersion"></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::Speechify.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Speechify.ConversationPrompt> GetPromptAsync(
string conversationId,
string promptId,
string? speechifyVersion = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get Conversation Prompt<br/>
/// Poll an agent-initiated turn. `pending` is queued, `running` is on the<br/>
/// worker, `completed` means the reply reached the thread (or the agent<br/>
/// chose to say nothing), `failed` carries `error` saying why it never<br/>
/// posted, and `cancelled` means a cancel got there before the worker.
/// </summary>
/// <param name="conversationId"></param>
/// <param name="promptId"></param>
/// <param name="speechifyVersion"></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::Speechify.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Speechify.AutoSDKHttpResponse<global::Speechify.ConversationPrompt>> GetPromptAsResponseAsync(
string conversationId,
string promptId,
string? speechifyVersion = default,
global::Speechify.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading