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
402 changes: 294 additions & 108 deletions src/libs/Recraft/Generated/Recraft.ColorsClient.OptimizeColors.g.cs

Large diffs are not rendered by default.

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

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

/// <summary>
/// Creates a new instance of the ColorsClient.
/// 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 ColorsClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Recraft.EndPointAuthorization>? authorizations = null,
global::Recraft.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::Recraft.EndPointAuthorization>();
Options = options ?? new global::Recraft.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,29 @@ public partial interface IColorsClient
/// </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.OptimizeColorsResponse> OptimizeColorsAsync(

global::Recraft.OptimizeColorsRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Optimize colors
/// </summary>
/// <param name="billing"></param>
/// <param name="colors"></param>
/// <param name="numColorsLimit"></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.OptimizeColorsResponse> OptimizeColorsAsync(
global::System.Collections.Generic.IList<global::Recraft.ColorHexAndWeight> colors,
int numColorsLimit,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
5 changes: 5 additions & 0 deletions src/libs/Recraft/Generated/Recraft.IColorsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public partial interface IColorsClient : 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::Recraft.AutoSDKClientOptions Options { get; }

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ public partial interface IImageClient
/// </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.ProcessImageResponse> CreativeUpscaleAsync(

global::Recraft.ProcessImageRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Creative Upscale
Expand All @@ -26,6 +28,7 @@ public partial interface IImageClient
/// <param name="imageFormat"></param>
/// <param name="responseFormat"></param>
/// <param name="upscale"></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.ProcessImageResponse> CreativeUpscaleAsync(
Expand All @@ -36,6 +39,7 @@ public partial interface IImageClient
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.ResponseFormat? responseFormat = default,
global::Recraft.UpscaleMode? upscale = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ public partial interface IImageClient
/// </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.ProcessImageResponse> CrispUpscaleAsync(

global::Recraft.ProcessImageRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Crisp Upscale
Expand All @@ -26,6 +28,7 @@ public partial interface IImageClient
/// <param name="imageFormat"></param>
/// <param name="responseFormat"></param>
/// <param name="upscale"></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.ProcessImageResponse> CrispUpscaleAsync(
Expand All @@ -36,6 +39,7 @@ public partial interface IImageClient
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.ResponseFormat? responseFormat = default,
global::Recraft.UpscaleMode? upscale = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ public partial interface IImageClient
/// </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.ProcessImageResponse> EraseRegionAsync(

global::Recraft.EraseRegionRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Erase Region
Expand All @@ -27,6 +29,7 @@ public partial interface IImageClient
/// <param name="mask"></param>
/// <param name="maskname"></param>
/// <param name="responseFormat"></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.ProcessImageResponse> EraseRegionAsync(
Expand All @@ -38,6 +41,7 @@ public partial interface IImageClient
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.ResponseFormat? responseFormat = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 4 additions & 0 deletions src/libs/Recraft/Generated/Recraft.IImageClient.Explore.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ public partial interface IImageClient
/// </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> ExploreAsync(

global::Recraft.ExploreRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Exploration
Expand All @@ -31,6 +33,7 @@ public partial interface IImageClient
/// <param name="style"></param>
/// <param name="styleId"></param>
/// <param name="substyle"></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> ExploreAsync(
Expand All @@ -46,6 +49,7 @@ public partial interface IImageClient
string? style = default,
global::System.Guid? styleId = default,
global::Recraft.ImageSubStyle? substyle = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ public partial interface IImageClient
/// </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> ExploreSimilarAsync(

global::Recraft.ExploreSimilarRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Continue exploration from a source image
Expand All @@ -26,6 +28,7 @@ public partial interface IImageClient
/// <param name="responseFormat"></param>
/// <param name="similarity"></param>
/// <param name="sourceImageId"></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> ExploreSimilarAsync(
Expand All @@ -36,6 +39,7 @@ public partial interface IImageClient
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.ResponseFormat? responseFormat = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@ public partial interface IImageClient
/// </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> GenerateBackgroundAsync(

global::Recraft.TransformImageWithMaskRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate Background
/// </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> GenerateBackgroundAsync(
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 @@ -9,12 +9,14 @@ public partial interface IImageClient
/// </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> GenerateImageAsync(

global::Recraft.GenerateImageRequest request,
global::Recraft.BillingType? billing = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate image from prompt
Expand All @@ -37,6 +39,7 @@ public partial interface IImageClient
/// <param name="substyle"></param>
/// <param name="textLayout"></param>
/// <param name="upscale"></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> GenerateImageAsync(
Expand All @@ -58,6 +61,7 @@ public partial interface IImageClient
global::Recraft.ImageSubStyle? substyle = default,
global::System.Collections.Generic.IList<global::Recraft.TextLayoutItem>? textLayout = default,
global::Recraft.UpscaleMode? upscale = default,
global::Recraft.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading
Loading