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 @@ -26,6 +26,7 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationRejectReason), TypeInfoPropertyName = "GenerationRejectReason2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed), TypeInfoPropertyName = "GenerationErrorResponseTaskCompletionSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetIdentifier))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Ideogram.AssetIdentifier>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Ideogram.GeneratedImageObject>))]
Expand All @@ -51,6 +52,7 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationRejectReason?), TypeInfoPropertyName = "NullableGenerationRejectReason2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?), TypeInfoPropertyName = "NullableGenerationErrorResponseTaskCompletionSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.MagicPromptMode?), TypeInfoPropertyName = "NullableMagicPromptMode2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramColorPalette?), TypeInfoPropertyName = "NullableIdeogramColorPalette2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramV3StyleType?), TypeInfoPropertyName = "NullableIdeogramV3StyleType2")]
Expand Down Expand Up @@ -133,7 +135,11 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser
public override bool CanConvert(global::System.Type typeToConvert)
{
return
typeToConvert == typeof(global::Ideogram.GenerationRejectReason)
typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed)

|| typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?)

|| typeToConvert == typeof(global::Ideogram.GenerationRejectReason)

|| typeToConvert == typeof(global::Ideogram.GenerationRejectReason?)

Expand Down Expand Up @@ -174,6 +180,16 @@ public override bool CanConvert(global::System.Type typeToConvert)
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
if (typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed))
{
return new global::Ideogram.JsonConverters.GenerationErrorResponseTaskCompletionSpeedJsonConverter();
}

if (typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?))
{
return new global::Ideogram.JsonConverters.GenerationErrorResponseTaskCompletionSpeedNullableJsonConverter();
}

if (typeToConvert == typeof(global::Ideogram.GenerationRejectReason))
{
return new global::Ideogram.JsonConverters.GenerationRejectReasonJsonConverter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationRejectReason), TypeInfoPropertyName = "GenerationRejectReason2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed), TypeInfoPropertyName = "GenerationErrorResponseTaskCompletionSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetIdentifier))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Ideogram.AssetIdentifier>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ReplaceBackgroundResponse))]
Expand Down Expand Up @@ -104,6 +105,7 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationRejectReason?), TypeInfoPropertyName = "NullableGenerationRejectReason2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?), TypeInfoPropertyName = "NullableGenerationErrorResponseTaskCompletionSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ReplaceBackgroundQuality?), TypeInfoPropertyName = "NullableReplaceBackgroundQuality2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ReplaceBackgroundIdeogramV3RequestRenderingSpeed?), TypeInfoPropertyName = "NullableReplaceBackgroundIdeogramV3RequestRenderingSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.LookbookRequestCategory?), TypeInfoPropertyName = "NullableLookbookRequestCategory2")]
Expand Down Expand Up @@ -207,7 +209,11 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser
public override bool CanConvert(global::System.Type typeToConvert)
{
return
typeToConvert == typeof(global::Ideogram.GenerationRejectReason)
typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed)

|| typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?)

|| typeToConvert == typeof(global::Ideogram.GenerationRejectReason)

|| typeToConvert == typeof(global::Ideogram.GenerationRejectReason?)

Expand Down Expand Up @@ -352,6 +358,16 @@ public override bool CanConvert(global::System.Type typeToConvert)
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
if (typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed))
{
return new global::Ideogram.JsonConverters.GenerationErrorResponseTaskCompletionSpeedJsonConverter();
}

if (typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?))
{
return new global::Ideogram.JsonConverters.GenerationErrorResponseTaskCompletionSpeedNullableJsonConverter();
}

if (typeToConvert == typeof(global::Ideogram.GenerationRejectReason))
{
return new global::Ideogram.JsonConverters.GenerationRejectReasonJsonConverter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public partial interface IImagesGenerateClient
/// Example: 2048x2048
/// </param>
/// <param name="quality">
/// The rendering quality to use. Higher quality renders take longer.<br/>
/// The rendering quality to use. Higher quality renders take longer. `very_high` requires source images and an explicit `size` or `size: source`, supports at most 4 images per request, takes longer than `high`, and is priced higher.<br/>
/// Default Value: high
/// </param>
/// <param name="seed">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public partial interface IImagesPreciseEditClient
/// An optional mask confining the edit to part of `image`, as raw bytes (multipart requests only; JPEG, PNG, or WEBP, max 25MB). Black marks the area to edit and white the area to preserve; values in between are rounded to whichever is nearer. The mask must have the same width and height as `image`, and must contain both black and white areas. Requires the image being edited to be uploaded as raw `image` bytes in the same request; masks cannot be combined with asset references. The mask is supplied to the model as an additional reference image, so a masked request may carry at most three `reference_images`.
/// </param>
/// <param name="quality">
/// The rendering quality to use. `very_high` renders multiple candidate edits internally and returns the one that best applies the instruction; it takes longer than `high`, is priced higher, and supports at most 4 images per request.<br/>
/// The rendering quality to use. `very_high` takes longer than `high`, is priced higher, and supports at most 4 images per request.<br/>
/// Default Value: high
/// </param>
/// <param name="seed">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationRejectReason), TypeInfoPropertyName = "GenerationRejectReason2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed), TypeInfoPropertyName = "GenerationErrorResponseTaskCompletionSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetIdentifier))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.DescribeImageIdeogramV3Response))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Ideogram.GeneratedDescription>))]
Expand All @@ -51,6 +52,7 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationRejectReason?), TypeInfoPropertyName = "NullableGenerationRejectReason2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?), TypeInfoPropertyName = "NullableGenerationErrorResponseTaskCompletionSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.V4PromptElement?), TypeInfoPropertyName = "NullableV4PromptElement2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.V4PromptElementDiscriminatorType?), TypeInfoPropertyName = "NullableV4PromptElementDiscriminatorType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.V4ObjPromptElementType?), TypeInfoPropertyName = "NullableV4ObjPromptElementType2")]
Expand Down Expand Up @@ -127,7 +129,11 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser
public override bool CanConvert(global::System.Type typeToConvert)
{
return
typeToConvert == typeof(global::Ideogram.GenerationRejectReason)
typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed)

|| typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?)

|| typeToConvert == typeof(global::Ideogram.GenerationRejectReason)

|| typeToConvert == typeof(global::Ideogram.GenerationRejectReason?)

Expand All @@ -152,6 +158,16 @@ public override bool CanConvert(global::System.Type typeToConvert)
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
if (typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed))
{
return new global::Ideogram.JsonConverters.GenerationErrorResponseTaskCompletionSpeedJsonConverter();
}

if (typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?))
{
return new global::Ideogram.JsonConverters.GenerationErrorResponseTaskCompletionSpeedNullableJsonConverter();
}

if (typeToConvert == typeof(global::Ideogram.GenerationRejectReason))
{
return new global::Ideogram.JsonConverters.GenerationRejectReasonJsonConverter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationRejectReason), TypeInfoPropertyName = "GenerationRejectReason2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed), TypeInfoPropertyName = "GenerationErrorResponseTaskCompletionSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetIdentifier))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Ideogram.AssetIdentifier>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerateImageIdeogramV3Response))]
Expand Down Expand Up @@ -110,6 +111,7 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AspectRatioV3?), TypeInfoPropertyName = "NullableAspectRatioV32")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ResolutionV3?), TypeInfoPropertyName = "NullableResolutionV32")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationRejectReason?), TypeInfoPropertyName = "NullableGenerationRejectReason2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?), TypeInfoPropertyName = "NullableGenerationErrorResponseTaskCompletionSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramV3AspectRatio?), TypeInfoPropertyName = "NullableIdeogramV3AspectRatio2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerateImageIdeogramV3RequestRenderingSpeed?), TypeInfoPropertyName = "NullableGenerateImageIdeogramV3RequestRenderingSpeed2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.MagicPromptMode?), TypeInfoPropertyName = "NullableMagicPromptMode2")]
Expand Down Expand Up @@ -214,7 +216,11 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser
public override bool CanConvert(global::System.Type typeToConvert)
{
return
typeToConvert == typeof(global::Ideogram.GenerationRejectReason)
typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed)

|| typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?)

|| typeToConvert == typeof(global::Ideogram.GenerationRejectReason)

|| typeToConvert == typeof(global::Ideogram.GenerationRejectReason?)

Expand Down Expand Up @@ -351,6 +357,16 @@ public override bool CanConvert(global::System.Type typeToConvert)
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
if (typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed))
{
return new global::Ideogram.JsonConverters.GenerationErrorResponseTaskCompletionSpeedJsonConverter();
}

if (typeToConvert == typeof(global::Ideogram.GenerationErrorResponseTaskCompletionSpeed?))
{
return new global::Ideogram.JsonConverters.GenerationErrorResponseTaskCompletionSpeedNullableJsonConverter();
}

if (typeToConvert == typeof(global::Ideogram.GenerationRejectReason))
{
return new global::Ideogram.JsonConverters.GenerationRejectReasonJsonConverter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ request.Maskname is null
/// Example: 2048x2048
/// </param>
/// <param name="quality">
/// The rendering quality to use. Higher quality renders take longer.<br/>
/// The rendering quality to use. Higher quality renders take longer. `very_high` requires source images and an explicit `size` or `size: source`, supports at most 4 images per request, takes longer than `high`, and is priced higher.<br/>
/// Default Value: high
/// </param>
/// <param name="seed">
Expand Down
Loading
Loading