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 @@ -82,16 +82,16 @@ public sealed partial class CreateStyleRequest
/// <summary>
/// Initializes a new instance of the <see cref="CreateStyleRequest" /> class.
/// </summary>
/// <param name="imageWeights"></param>
/// <param name="images"></param>
/// <param name="style"></param>
/// <param name="imageWeights"></param>
/// <param name="mixPolicy"></param>
/// <param name="model"></param>
/// <param name="palette"></param>
/// <param name="private"></param>
/// <param name="prompt"></param>
/// <param name="sourceStyleWeights"></param>
/// <param name="sourceStyles"></param>
/// <param name="style"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -107,16 +107,16 @@ public CreateStyleRequest(
global::System.Collections.Generic.IList<double>? sourceStyleWeights,
global::System.Collections.Generic.IList<global::System.Guid>? sourceStyles)
{
this.Images = images ?? throw new global::System.ArgumentNullException(nameof(images));
this.Style = style;
this.ImageWeights = imageWeights;
this.Images = images ?? throw new global::System.ArgumentNullException(nameof(images));
this.MixPolicy = mixPolicy;
this.Model = model;
this.Palette = palette;
this.Private = @private;
this.Prompt = prompt;
this.SourceStyleWeights = sourceStyleWeights;
this.SourceStyles = sourceStyles;
this.Style = style;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ public sealed partial class EraseRegionRequest
/// <summary>
/// Initializes a new instance of the <see cref="EraseRegionRequest" /> class.
/// </summary>
/// <param name="expire"></param>
/// <param name="image"></param>
/// <param name="imagename"></param>
/// <param name="imageFormat"></param>
/// <param name="mask"></param>
/// <param name="maskname"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="responseFormat"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand All @@ -84,12 +84,12 @@ public EraseRegionRequest(
global::Recraft.ImageFormat? imageFormat,
global::Recraft.ResponseFormat? responseFormat)
{
this.Expire = expire;
this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
this.ImageFormat = imageFormat;
this.Mask = mask ?? throw new global::System.ArgumentNullException(nameof(mask));
this.Maskname = maskname ?? throw new global::System.ArgumentNullException(nameof(maskname));
this.Expire = expire;
this.ImageFormat = imageFormat;
this.ResponseFormat = responseFormat;
}

Expand Down
4 changes: 2 additions & 2 deletions src/libs/Recraft/Generated/Recraft.Models.ExploreRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ public sealed partial class ExploreRequest
/// <summary>
/// Initializes a new instance of the <see cref="ExploreRequest" /> class.
/// </summary>
/// <param name="prompt"></param>
/// <param name="blockNsfw"></param>
/// <param name="controls"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
/// <param name="prompt"></param>
/// <param name="responseFormat"></param>
/// <param name="size"></param>
/// <param name="style"></param>
Expand All @@ -116,12 +116,12 @@ public ExploreRequest(
global::System.Guid? styleId,
global::Recraft.ImageSubStyle? substyle)
{
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.BlockNsfw = blockNsfw;
this.Controls = controls;
this.Expire = expire;
this.ImageFormat = imageFormat;
this.Model = model;
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.ResponseFormat = responseFormat;
this.Size = size;
this.Style = style;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ public sealed partial class ExploreSimilarRequest
/// <summary>
/// Initializes a new instance of the <see cref="ExploreSimilarRequest" /> class.
/// </summary>
/// <param name="similarity"></param>
/// <param name="sourceImageId"></param>
/// <param name="blockNsfw"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="responseFormat"></param>
/// <param name="similarity"></param>
/// <param name="sourceImageId"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -74,12 +74,12 @@ public ExploreSimilarRequest(
global::Recraft.ImageFormat? imageFormat,
global::Recraft.ResponseFormat? responseFormat)
{
this.Similarity = similarity;
this.SourceImageId = sourceImageId;
this.BlockNsfw = blockNsfw;
this.Expire = expire;
this.ImageFormat = imageFormat;
this.ResponseFormat = responseFormat;
this.Similarity = similarity;
this.SourceImageId = sourceImageId;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public sealed partial class GenerateImageRequest
/// <summary>
/// Initializes a new instance of the <see cref="GenerateImageRequest" /> class.
/// </summary>
/// <param name="prompt"></param>
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
Expand All @@ -134,7 +135,6 @@ public sealed partial class GenerateImageRequest
/// <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="size"></param>
Expand Down Expand Up @@ -165,7 +165,6 @@ public GenerateImageRequest(
global::System.Collections.Generic.IList<global::Recraft.TextLayoutItem>? textLayout,
global::Recraft.UpscaleMode? upscale)
{
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.BlockNsfw = blockNsfw;
this.CalculateFeatures = calculateFeatures;
this.Controls = controls;
Expand All @@ -174,6 +173,7 @@ public GenerateImageRequest(
this.Model = model;
this.N = n;
this.NegativePrompt = negativePrompt;
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.RandomSeed = randomSeed;
this.ResponseFormat = responseFormat;
this.Size = size;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Recraft/Generated/Recraft.Models.Image.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public sealed partial class Image
/// <summary>
/// Initializes a new instance of the <see cref="Image" /> class.
/// </summary>
/// <param name="imageId"></param>
/// <param name="b64Json"></param>
/// <param name="features"></param>
/// <param name="imageId"></param>
/// <param name="revisedPrompt"></param>
/// <param name="url"></param>
#if NET7_0_OR_GREATER
Expand All @@ -63,9 +63,9 @@ public Image(
string? revisedPrompt,
string? url)
{
this.ImageId = imageId;
this.B64Json = b64Json;
this.Features = features;
this.ImageId = imageId;
this.RevisedPrompt = revisedPrompt;
this.Url = url;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,20 @@ public sealed partial class ImageToImageRequest
/// <summary>
/// Initializes a new instance of the <see cref="ImageToImageRequest" /> class.
/// </summary>
/// <param name="image"></param>
/// <param name="imagename"></param>
/// <param name="prompt"></param>
/// <param name="strength"></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>
Expand Down Expand Up @@ -174,20 +174,20 @@ public ImageToImageRequest(
global::Recraft.ImageSubStyle? substyle,
global::System.Collections.Generic.IList<global::Recraft.TextLayoutItem>? textLayout)
{
this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.Strength = strength;
this.BlockNsfw = blockNsfw;
this.CalculateFeatures = calculateFeatures;
this.Controls = controls;
this.Expire = expire;
this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
this.ImageFormat = imageFormat;
this.Model = model;
this.N = n;
this.NegativePrompt = negativePrompt;
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.RandomSeed = randomSeed;
this.ResponseFormat = responseFormat;
this.Strength = strength;
this.Style = style;
this.StyleId = styleId;
this.Substyle = substyle;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Recraft/Generated/Recraft.Models.PaletteSuggest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ public sealed partial class PaletteSuggest
/// <summary>
/// Initializes a new instance of the <see cref="PaletteSuggest" /> class.
/// </summary>
/// <param name="backgroundColor"></param>
/// <param name="colors"></param>
/// <param name="backgroundColor"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public PaletteSuggest(
global::System.Collections.Generic.IList<global::Recraft.ImageColor> colors,
global::Recraft.ImageColor? backgroundColor)
{
this.Colors = colors ?? throw new global::System.ArgumentNullException(nameof(colors));
this.BackgroundColor = backgroundColor;
this.Colors = colors ?? throw new global::System.ArgumentNullException(nameof(colors));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public sealed partial class ProcessImageRequest
/// <summary>
/// Initializes a new instance of the <see cref="ProcessImageRequest" /> class.
/// </summary>
/// <param name="expire"></param>
/// <param name="image"></param>
/// <param name="imagename"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="responseFormat"></param>
/// <param name="upscale"></param>
Expand All @@ -75,9 +75,9 @@ public ProcessImageRequest(
global::Recraft.ResponseFormat? responseFormat,
global::Recraft.UpscaleMode? upscale)
{
this.Expire = expire;
this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
this.Expire = expire;
this.ImageFormat = imageFormat;
this.ResponseFormat = responseFormat;
this.Upscale = upscale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ public sealed partial class TransformImageRequest
/// <summary>
/// Initializes a new instance of the <see cref="TransformImageRequest" /> class.
/// </summary>
/// <param name="image"></param>
/// <param name="imagename"></param>
/// <param name="prompt"></param>
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></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="style"></param>
Expand Down Expand Up @@ -157,16 +157,16 @@ public TransformImageRequest(
global::Recraft.ImageSubStyle? substyle,
global::System.Collections.Generic.IList<global::Recraft.TextLayoutItem>? textLayout)
{
this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.BlockNsfw = blockNsfw;
this.CalculateFeatures = calculateFeatures;
this.Expire = expire;
this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
this.ImageFormat = imageFormat;
this.Model = model;
this.N = n;
this.NegativePrompt = negativePrompt;
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.RandomSeed = randomSeed;
this.ResponseFormat = responseFormat;
this.Style = style;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Recraft/Generated/Recraft.Models.User.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public sealed partial class User
/// Initializes a new instance of the <see cref="User" /> class.
/// </summary>
/// <param name="credits"></param>
/// <param name="email"></param>
/// <param name="id"></param>
/// <param name="email"></param>
/// <param name="name"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand All @@ -57,8 +57,8 @@ public User(
string? name)
{
this.Credits = credits;
this.Id = id;
this.Email = email;
this.Id = id;
this.Name = name;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ public sealed partial class VariateImageRequest
/// <summary>
/// Initializes a new instance of the <see cref="VariateImageRequest" /> class.
/// </summary>
/// <param name="expire"></param>
/// <param name="image"></param>
/// <param name="imagename"></param>
/// <param name="size"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="n"></param>
/// <param name="randomSeed"></param>
/// <param name="responseFormat"></param>
/// <param name="size"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -92,14 +92,14 @@ public VariateImageRequest(
int? randomSeed,
global::Recraft.ResponseFormat? responseFormat)
{
this.Expire = expire;
this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
this.Size = size;
this.Expire = expire;
this.ImageFormat = imageFormat;
this.N = n;
this.RandomSeed = randomSeed;
this.ResponseFormat = responseFormat;
this.Size = size;
}

/// <summary>
Expand Down