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
135 changes: 0 additions & 135 deletions src/libs/Recraft/Generated/Recraft.IImageClient.ImageToImage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,146 +36,11 @@ public partial interface IImageClient
/// Generate image from image and prompt
/// </summary>
/// <param name="billing"></param>
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="expire"></param>
/// <param name="image"></param>
/// <param name="imagename"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
/// <param name="n"></param>
/// <param name="negativePrompt"></param>
/// <param name="prompt"></param>
/// <param name="randomSeed"></param>
/// <param name="responseFormat"></param>
/// <param name="strength"></param>
/// <param name="style"></param>
/// <param name="styleId"></param>
/// <param name="substyle"></param>
/// <param name="textLayout"></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::Recraft.GenerateImageResponse> ImageToImageAsync(
byte[] image,
string imagename,
string prompt,
double strength,
global::Recraft.BillingType? billing = default,
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
int? n = default,
string? negativePrompt = default,
int? randomSeed = default,
global::Recraft.ResponseFormat? responseFormat = default,
string? style = default,
global::System.Guid? styleId = default,
global::Recraft.ImageSubStyle? substyle = default,
global::System.Collections.Generic.IList<global::Recraft.TextLayoutItem>? textLayout = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Generate image from image and prompt
/// </summary>
/// <param name="billing"></param>
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="expire"></param>
/// <param name="image">
/// The stream to send as the multipart 'image' file part.
/// </param>
/// <param name="imagename"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
/// <param name="n"></param>
/// <param name="negativePrompt"></param>
/// <param name="prompt"></param>
/// <param name="randomSeed"></param>
/// <param name="responseFormat"></param>
/// <param name="strength"></param>
/// <param name="style"></param>
/// <param name="styleId"></param>
/// <param name="substyle"></param>
/// <param name="textLayout"></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::Recraft.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Recraft.GenerateImageResponse> ImageToImageAsync(
global::System.IO.Stream image,
string imagename,
string prompt,
double strength,
global::Recraft.BillingType? billing = default,
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
int? n = default,
string? negativePrompt = default,
int? randomSeed = default,
global::Recraft.ResponseFormat? responseFormat = default,
string? style = default,
global::System.Guid? styleId = default,
global::Recraft.ImageSubStyle? substyle = default,
global::System.Collections.Generic.IList<global::Recraft.TextLayoutItem>? textLayout = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate image from image and prompt
/// </summary>
/// <param name="billing"></param>
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="expire"></param>
/// <param name="image">
/// The stream to send as the multipart 'image' file part.
/// </param>
/// <param name="imagename"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
/// <param name="n"></param>
/// <param name="negativePrompt"></param>
/// <param name="prompt"></param>
/// <param name="randomSeed"></param>
/// <param name="responseFormat"></param>
/// <param name="strength"></param>
/// <param name="style"></param>
/// <param name="styleId"></param>
/// <param name="substyle"></param>
/// <param name="textLayout"></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::Recraft.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Recraft.AutoSDKHttpResponse<global::Recraft.GenerateImageResponse>> ImageToImageAsResponseAsync(
global::System.IO.Stream image,
string imagename,
string prompt,
double strength,
global::Recraft.BillingType? billing = default,
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
int? n = default,
string? negativePrompt = default,
int? randomSeed = default,
global::Recraft.ResponseFormat? responseFormat = default,
string? style = default,
global::System.Guid? styleId = default,
global::Recraft.ImageSubStyle? substyle = default,
global::System.Collections.Generic.IList<global::Recraft.TextLayoutItem>? textLayout = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
47 changes: 47 additions & 0 deletions src/libs/Recraft/Generated/Recraft.IImageClient.OutpaintImage.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#nullable enable

namespace Recraft
{
public partial interface IImageClient
{
/// <summary>
/// Outpaint Image
/// </summary>
/// <param name="billing"></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::Recraft.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Recraft.GenerateImageResponse> OutpaintImageAsync(

global::Recraft.OutpaintImageRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Outpaint Image
/// </summary>
/// <param name="billing"></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::Recraft.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Recraft.AutoSDKHttpResponse<global::Recraft.GenerateImageResponse>> OutpaintImageAsResponseAsync(

global::Recraft.OutpaintImageRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Outpaint Image
/// </summary>
/// <param name="billing"></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::Recraft.GenerateImageResponse> OutpaintImageAsync(
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public partial interface IImageClient
/// <param name="billing"></param>
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="expire"></param>
/// <param name="image"></param>
/// <param name="imagename"></param>
Expand All @@ -62,6 +63,7 @@ public partial interface IImageClient
global::Recraft.BillingType? billing = default,
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -82,6 +84,7 @@ public partial interface IImageClient
/// <param name="billing"></param>
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="expire"></param>
/// <param name="image">
/// The stream to send as the multipart 'image' file part.
Expand All @@ -108,6 +111,7 @@ public partial interface IImageClient
global::Recraft.BillingType? billing = default,
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -127,6 +131,7 @@ public partial interface IImageClient
/// <param name="billing"></param>
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="expire"></param>
/// <param name="image">
/// The stream to send as the multipart 'image' file part.
Expand All @@ -153,6 +158,7 @@ public partial interface IImageClient
global::Recraft.BillingType? billing = default,
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#nullable enable

namespace Recraft
{
public partial interface IPromptClient
{
/// <summary>
/// Enhance a prompt using an LLM
/// </summary>
/// <param name="billing"></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::Recraft.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Recraft.EnhancePromptResponse> EnhancePromptAsync(

global::Recraft.EnhancePromptRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Enhance a prompt using an LLM
/// </summary>
/// <param name="billing"></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::Recraft.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Recraft.AutoSDKHttpResponse<global::Recraft.EnhancePromptResponse>> EnhancePromptAsResponseAsync(

global::Recraft.EnhancePromptRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Enhance a prompt using an LLM
/// </summary>
/// <param name="billing"></param>
/// <param name="prompt"></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::Recraft.EnhancePromptResponse> EnhancePromptAsync(
string prompt,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
48 changes: 48 additions & 0 deletions src/libs/Recraft/Generated/Recraft.IPromptClient.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

#nullable enable

namespace Recraft
{
/// <summary>
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public partial interface IPromptClient : global::System.IDisposable
{
/// <summary>
/// The HttpClient instance.
/// </summary>
public global::System.Net.Http.HttpClient HttpClient { get; }

/// <summary>
/// The base URL for the API.
/// </summary>
public System.Uri? BaseUri { get; }

/// <summary>
/// The authorizations to use for the requests.
/// </summary>
public global::System.Collections.Generic.List<global::Recraft.EndPointAuthorization> Authorizations { get; }

/// <summary>
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
/// When false, successful responses are deserialized directly from the response stream for better performance.
/// Error responses are always read as strings regardless of this setting,
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }
/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Recraft.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }


}
}
5 changes: 5 additions & 0 deletions src/libs/Recraft/Generated/Recraft.IRecraftClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public partial interface IRecraftClient : global::System.IDisposable
/// </summary>
public ImageClient Image { get; }

/// <summary>
///
/// </summary>
public PromptClient Prompt { get; }

/// <summary>
///
/// </summary>
Expand Down
Loading