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
379 changes: 281 additions & 98 deletions src/libs/Writer/Generated/Writer.FileApiClient.GatewayDeleteFile.g.cs

Large diffs are not rendered by default.

376 changes: 281 additions & 95 deletions src/libs/Writer/Generated/Writer.FileApiClient.GatewayDownloadFile.g.cs

Large diffs are not rendered by default.

379 changes: 281 additions & 98 deletions src/libs/Writer/Generated/Writer.FileApiClient.GatewayGetFile.g.cs

Large diffs are not rendered by default.

409 changes: 296 additions & 113 deletions src/libs/Writer/Generated/Writer.FileApiClient.GatewayGetFiles.g.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

405 changes: 294 additions & 111 deletions src/libs/Writer/Generated/Writer.FileApiClient.GatewayUploadFile.g.cs

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions src/libs/Writer/Generated/Writer.FileApiClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public sealed partial class FileApiClient : global::Writer.IFileApiClient, globa
#if DEBUG
= true;
#endif

/// <inheritdoc/>
public global::Writer.AutoSDKClientOptions Options { get; }
/// <summary>
///
/// </summary>
Expand All @@ -49,11 +52,37 @@ public FileApiClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Writer.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true) : this(
httpClient,
baseUri,
authorizations,
options: null,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the FileApiClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public FileApiClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Writer.EndPointAuthorization>? authorizations = null,
global::Writer.AutoSDKClientOptions? options = null,
bool disposeHttpClient = true)
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Writer.EndPointAuthorization>();
Options = options ?? new global::Writer.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
Expand Down
394 changes: 290 additions & 104 deletions src/libs/Writer/Generated/Writer.GenerationApiClient.Chat.g.cs

Large diffs are not rendered by default.

350 changes: 268 additions & 82 deletions src/libs/Writer/Generated/Writer.GenerationApiClient.ChatAsStream.g.cs

Large diffs are not rendered by default.

394 changes: 290 additions & 104 deletions src/libs/Writer/Generated/Writer.GenerationApiClient.Completions.g.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

396 changes: 291 additions & 105 deletions src/libs/Writer/Generated/Writer.GenerationApiClient.GenerateContent.g.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

401 changes: 292 additions & 109 deletions src/libs/Writer/Generated/Writer.GenerationApiClient.GetApplications.g.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

377 changes: 280 additions & 97 deletions src/libs/Writer/Generated/Writer.GenerationApiClient.Models.g.cs

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions src/libs/Writer/Generated/Writer.GenerationApiClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public sealed partial class GenerationApiClient : global::Writer.IGenerationApiC
#if DEBUG
= true;
#endif

/// <inheritdoc/>
public global::Writer.AutoSDKClientOptions Options { get; }
/// <summary>
///
/// </summary>
Expand All @@ -49,11 +52,37 @@ public GenerationApiClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Writer.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true) : this(
httpClient,
baseUri,
authorizations,
options: null,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the GenerationApiClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public GenerationApiClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Writer.EndPointAuthorization>? authorizations = null,
global::Writer.AutoSDKClientOptions? options = null,
bool disposeHttpClient = true)
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Writer.EndPointAuthorization>();
Options = options ?? new global::Writer.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IFileApiClient
/// Permanently delete a file from the system. This action cannot be undone.
/// </summary>
/// <param name="fileId"></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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -17,6 +18,7 @@ public partial interface IFileApiClient
/// </remarks>
global::System.Threading.Tasks.Task<global::Writer.DeleteFileResponse> GatewayDeleteFileAsync(
string fileId,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IFileApiClient
/// Download the binary content of a file. The response will contain the file data in the appropriate MIME type.
/// </summary>
/// <param name="fileId"></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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -17,12 +18,14 @@ public partial interface IFileApiClient
/// </remarks>
global::System.Threading.Tasks.Task<byte[]> GatewayDownloadFileAsync(
string fileId,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Download file<br/>
/// Download the binary content of a file. The response will contain the file data in the appropriate MIME type.
/// </summary>
/// <param name="fileId"></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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -31,6 +34,7 @@ public partial interface IFileApiClient
/// </remarks>
global::System.Threading.Tasks.Task<global::Writer.AutoSDKHttpResponse<byte[]>> GatewayDownloadFileAsResponseAsync(
string fileId,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IFileApiClient
/// Retrieve detailed information about a specific file, including its metadata, status, and associated graphs.
/// </summary>
/// <param name="fileId"></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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -17,6 +18,7 @@ public partial interface IFileApiClient
/// </remarks>
global::System.Threading.Tasks.Task<global::Writer.FileResponse> GatewayGetFileAsync(
string fileId,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public partial interface IFileApiClient
/// <param name="graphId"></param>
/// <param name="status"></param>
/// <param name="fileTypes"></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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -33,6 +34,7 @@ public partial interface IFileApiClient
global::System.Guid? graphId = default,
global::Writer.GatewayGetFilesStatus? status = default,
string? fileTypes = default,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IFileApiClient
/// Retry processing of files that previously failed to process. This will re-attempt the processing of the specified files.
/// </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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IFileApiClient
global::System.Threading.Tasks.Task<global::Writer.RetryFilesResponse> GatewayRetryFailedFilesAsync(

global::Writer.RetryFilesRequest request,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retry failed files<br/>
Expand All @@ -28,10 +30,12 @@ public partial interface IFileApiClient
/// <param name="fileIds">
/// The unique identifier of the files to retry.
/// </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::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Writer.RetryFilesResponse> GatewayRetryFailedFilesAsync(
global::System.Collections.Generic.IList<global::System.Guid> fileIds,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public partial interface IFileApiClient
/// <param name="contentLength"></param>
/// <param name="graphId"></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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -31,6 +32,7 @@ public partial interface IFileApiClient

byte[] request,
global::System.Guid? graphId = default,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
5 changes: 5 additions & 0 deletions src/libs/Writer/Generated/Writer.IFileApiClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public partial interface IFileApiClient : global::System.IDisposable
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Writer.AutoSDKClientOptions Options { get; }

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IGenerationApiClient
/// Generate a chat completion based on the provided messages. The response shown below is for non-streaming. To learn about streaming responses, see the [chat completion guide](https://dev.writer.com/home/chat-completion).
/// </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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IGenerationApiClient
global::System.Threading.Tasks.Task<global::Writer.ChatResponse> ChatAsync(

global::Writer.ChatRequest request,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Chat completion<br/>
Expand Down Expand Up @@ -67,6 +69,7 @@ public partial interface IGenerationApiClient
/// The response format to use for the chat completion, available with `palmyra-x4` and `palmyra-x5`.<br/>
/// `text` is the default response format. [JSON Schema](https://json-schema.org/) is supported for structured responses. If you specify `json_schema`, you must also provide a `json_schema` object.
/// </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::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Writer.ChatResponse> ChatAsync(
Expand All @@ -82,6 +85,7 @@ public partial interface IGenerationApiClient
global::Writer.ToolChoice? toolChoice = default,
global::Writer.StreamOptions? streamOptions = default,
global::Writer.ResponseFormat? responseFormat = default,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IGenerationApiClient
/// Generate a chat completion based on the provided messages. The response shown below is for non-streaming. To learn about streaming responses, see the [chat completion guide](https://dev.writer.com/home/chat-completion).
/// </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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IGenerationApiClient
global::System.Collections.Generic.IAsyncEnumerable<global::Writer.ChatCompletionChunk> ChatAsStreamAsync(

global::Writer.ChatRequest request,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Chat completion<br/>
Expand Down Expand Up @@ -67,6 +69,7 @@ public partial interface IGenerationApiClient
/// The response format to use for the chat completion, available with `palmyra-x4` and `palmyra-x5`.<br/>
/// `text` is the default response format. [JSON Schema](https://json-schema.org/) is supported for structured responses. If you specify `json_schema`, you must also provide a `json_schema` object.
/// </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::System.InvalidOperationException"></exception>
global::System.Collections.Generic.IAsyncEnumerable<global::Writer.ChatCompletionChunk> ChatAsStreamAsync(
Expand All @@ -82,6 +85,7 @@ public partial interface IGenerationApiClient
global::Writer.ToolChoice? toolChoice = default,
global::Writer.StreamOptions? streamOptions = default,
global::Writer.ResponseFormat? responseFormat = default,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IGenerationApiClient
/// Generate text completions using the specified model and prompt. This endpoint is useful for text generation tasks that don't require conversational context.
/// </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::Writer.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IGenerationApiClient
global::System.Threading.Tasks.Task<global::Writer.CompletionsResponse> CompletionsAsync(

global::Writer.CompletionsRequest request,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Text generation<br/>
Expand Down Expand Up @@ -49,6 +51,7 @@ public partial interface IGenerationApiClient
/// <param name="randomSeed">
/// A seed used to initialize the random number generator for the model, ensuring reproducibility of the output when the same inputs are provided.
/// </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::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Writer.CompletionsResponse> CompletionsAsync(
Expand All @@ -60,6 +63,7 @@ public partial interface IGenerationApiClient
global::Writer.OneOf<global::System.Collections.Generic.IList<string>, string>? stop = default,
int? bestOf = default,
int? randomSeed = default,
global::Writer.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading
Loading