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 @@ -39,6 +39,7 @@ public partial interface IImageClient
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
Expand All @@ -62,6 +63,7 @@ public partial interface IImageClient
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = 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
Expand Up @@ -39,6 +39,7 @@ public partial interface IImageClient
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
Expand All @@ -62,6 +63,7 @@ public partial interface IImageClient
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = 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
Expand Up @@ -39,6 +39,7 @@ public partial interface IImageClient
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
Expand All @@ -62,6 +63,7 @@ public partial interface IImageClient
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = 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
Expand Up @@ -39,6 +39,7 @@ public partial interface IImageClient
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="image"></param>
/// <param name="imagename"></param>
Expand All @@ -64,6 +65,7 @@ public partial interface IImageClient
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -85,6 +87,7 @@ public partial interface IImageClient
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="image">
/// The stream to send as the multipart 'image' file part.
Expand Down Expand Up @@ -112,6 +115,7 @@ public partial interface IImageClient
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -132,6 +136,7 @@ public partial interface IImageClient
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="image">
/// The stream to send as the multipart 'image' file part.
Expand Down Expand Up @@ -159,6 +164,7 @@ public partial interface IImageClient
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = 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
Expand Up @@ -40,6 +40,7 @@ public partial interface IImageClient
/// <param name="image"></param>
/// <param name="imagename"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
/// <param name="n"></param>
/// <param name="randomSeed"></param>
/// <param name="responseFormat"></param>
Expand All @@ -54,6 +55,7 @@ public partial interface IImageClient
global::Recraft.BillingType? billing = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
int? n = default,
int? randomSeed = default,
global::Recraft.ResponseFormat? responseFormat = default,
Expand All @@ -70,6 +72,7 @@ public partial interface IImageClient
/// </param>
/// <param name="imagename"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
/// <param name="n"></param>
/// <param name="randomSeed"></param>
/// <param name="responseFormat"></param>
Expand All @@ -84,6 +87,7 @@ public partial interface IImageClient
global::Recraft.BillingType? billing = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
int? n = default,
int? randomSeed = default,
global::Recraft.ResponseFormat? responseFormat = default,
Expand All @@ -99,6 +103,7 @@ public partial interface IImageClient
/// </param>
/// <param name="imagename"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
/// <param name="n"></param>
/// <param name="randomSeed"></param>
/// <param name="responseFormat"></param>
Expand All @@ -113,6 +118,7 @@ public partial interface IImageClient
global::Recraft.BillingType? billing = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
int? n = default,
int? randomSeed = default,
global::Recraft.ResponseFormat? responseFormat = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ partial void ProcessGenerateImageResponseContent(
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
Expand All @@ -477,6 +478,7 @@ partial void ProcessGenerateImageResponseContent(
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -498,6 +500,7 @@ partial void ProcessGenerateImageResponseContent(
BlockNsfw = blockNsfw,
CalculateFeatures = calculateFeatures,
Controls = controls,
Creativity = creativity,
Expire = expire,
ImageFormat = imageFormat,
Model = model,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ partial void ProcessGenerateImageRasterResponseContent(
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
Expand All @@ -477,6 +478,7 @@ partial void ProcessGenerateImageRasterResponseContent(
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -498,6 +500,7 @@ partial void ProcessGenerateImageRasterResponseContent(
BlockNsfw = blockNsfw,
CalculateFeatures = calculateFeatures,
Controls = controls,
Creativity = creativity,
Expire = expire,
ImageFormat = imageFormat,
Model = model,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ partial void ProcessGenerateImageVectorResponseContent(
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="imageFormat"></param>
/// <param name="model"></param>
Expand All @@ -477,6 +478,7 @@ partial void ProcessGenerateImageVectorResponseContent(
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -498,6 +500,7 @@ partial void ProcessGenerateImageVectorResponseContent(
BlockNsfw = blockNsfw,
CalculateFeatures = calculateFeatures,
Controls = controls,
Creativity = creativity,
Expire = expire,
ImageFormat = imageFormat,
Model = model,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ partial void ProcessReplaceBackgroundResponseContent(
content: new global::System.Net.Http.StringContent(request.Controls.ToJson(JsonSerializerContext)),
name: "\"controls\"");

}
if (request.Creativity != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent((request.Creativity).HasValue ? (request.Creativity).GetValueOrDefault().ToValueString() : string.Empty),
name: "\"creativity\"");

}
if (request.Expire != default)
{
Expand Down Expand Up @@ -615,6 +623,7 @@ request.Imagename is null
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="image"></param>
/// <param name="imagename"></param>
Expand All @@ -640,6 +649,7 @@ request.Imagename is null
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -659,6 +669,7 @@ request.Imagename is null
BlockNsfw = blockNsfw,
CalculateFeatures = calculateFeatures,
Controls = controls,
Creativity = creativity,
Expire = expire,
Image = image,
Imagename = imagename,
Expand Down Expand Up @@ -689,6 +700,7 @@ request.Imagename is null
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="image">
/// The stream to send as the multipart 'image' file part.
Expand Down Expand Up @@ -716,6 +728,7 @@ request.Imagename is null
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -737,6 +750,7 @@ request.Imagename is null
BlockNsfw = blockNsfw,
CalculateFeatures = calculateFeatures,
Controls = controls,
Creativity = creativity,
Expire = expire,
Image = global::System.Array.Empty<byte>(),
Imagename = imagename,
Expand Down Expand Up @@ -850,6 +864,14 @@ request.Imagename is null
content: new global::System.Net.Http.StringContent(request.Controls.ToJson(JsonSerializerContext)),
name: "\"controls\"");

}
if (request.Creativity != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent((request.Creativity).HasValue ? (request.Creativity).GetValueOrDefault().ToValueString() : string.Empty),
name: "\"creativity\"");

}
if (request.Expire != default)
{
Expand Down Expand Up @@ -1274,6 +1296,7 @@ request.Imagename is null
/// <param name="blockNsfw"></param>
/// <param name="calculateFeatures"></param>
/// <param name="controls"></param>
/// <param name="creativity"></param>
/// <param name="expire"></param>
/// <param name="image">
/// The stream to send as the multipart 'image' file part.
Expand Down Expand Up @@ -1301,6 +1324,7 @@ request.Imagename is null
bool? blockNsfw = default,
bool? calculateFeatures = default,
global::Recraft.UserControls? controls = default,
global::Recraft.Creativity? creativity = default,
bool? expire = default,
global::Recraft.ImageFormat? imageFormat = default,
global::Recraft.TransformModel? model = default,
Expand All @@ -1322,6 +1346,7 @@ request.Imagename is null
BlockNsfw = blockNsfw,
CalculateFeatures = calculateFeatures,
Controls = controls,
Creativity = creativity,
Expire = expire,
Image = global::System.Array.Empty<byte>(),
Imagename = imagename,
Expand Down Expand Up @@ -1435,6 +1460,14 @@ request.Imagename is null
content: new global::System.Net.Http.StringContent(request.Controls.ToJson(JsonSerializerContext)),
name: "\"controls\"");

}
if (request.Creativity != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent((request.Creativity).HasValue ? (request.Creativity).GetValueOrDefault().ToValueString() : string.Empty),
name: "\"creativity\"");

}
if (request.Expire != default)
{
Expand Down
Loading