diff --git a/src/libs/Ideogram/Generated/Ideogram..JsonSerializerContext.g.cs b/src/libs/Ideogram/Generated/Ideogram..JsonSerializerContext.g.cs
index 88af2d9..1ebf416 100644
--- a/src/libs/Ideogram/Generated/Ideogram..JsonSerializerContext.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram..JsonSerializerContext.g.cs
@@ -39,14 +39,20 @@ namespace Ideogram
typeof(global::Ideogram.JsonConverters.StyleTypeV3NullableJsonConverter),
typeof(global::Ideogram.JsonConverters.StylePresetV3JsonConverter),
typeof(global::Ideogram.JsonConverters.StylePresetV3NullableJsonConverter),
+ typeof(global::Ideogram.JsonConverters.UpscaleFactorJsonConverter),
+ typeof(global::Ideogram.JsonConverters.UpscaleFactorNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.InternalTestingEnumFieldJsonConverter),
typeof(global::Ideogram.JsonConverters.InternalTestingEnumFieldNullableJsonConverter),
+ typeof(global::Ideogram.JsonConverters.TextLayerV3AlignmentJsonConverter),
+ typeof(global::Ideogram.JsonConverters.TextLayerV3AlignmentNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.ToolTypeJsonConverter),
typeof(global::Ideogram.JsonConverters.ToolTypeNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.ModelVersionJsonConverter),
typeof(global::Ideogram.JsonConverters.ModelVersionNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.SegmentByJsonConverter),
typeof(global::Ideogram.JsonConverters.SegmentByNullableJsonConverter),
+ typeof(global::Ideogram.JsonConverters.UsageSourceJsonConverter),
+ typeof(global::Ideogram.JsonConverters.UsageSourceNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.ApiProfileTypeJsonConverter),
typeof(global::Ideogram.JsonConverters.ApiProfileTypeNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.ApiProfileRoleJsonConverter),
diff --git a/src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs b/src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs
index 671f6b3..1f037e9 100644
--- a/src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs
@@ -30,6 +30,7 @@ partial void ProcessPostBatchResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostBatchAsync(
+
global::Ideogram.InternalBatchRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -312,7 +313,9 @@ partial void ProcessPostBatchResponseContent(
/// The experiment variant used for template selection for the magic prompts.
/// Example: MAGIC_PROMPT_NO_TEXT
///
- ///
+ ///
+ /// Example: {"aspect_ratio":"1x1","style_type":"GENERAL","magic_prompt_version":"V_0","seed":12345,"negative_prompt":"brush strokes, painting","magic_prompt_option":"ON","model":"V_2_TURBO","resolution":"1280x800","num_images":1,"color_palette":{"name":"PASTEL"}}
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostBatchAsync(
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
index ba65adc..62147c2 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
@@ -32,6 +32,7 @@ partial void ProcessPostEditImageResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostEditImageAsync(
+
global::Ideogram.EditImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -71,43 +72,57 @@ partial void ProcessPostEditImageResponseContent(
}
}
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentImageFile = new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()),
- name: "image_file",
- fileName: request.ImageFilename ?? string.Empty);
+ content: __contentImageFile,
+ name: "\"image_file\"",
+ fileName: request.ImageFilename != null ? $"\"{request.ImageFilename}\"" : string.Empty);
+ if (__contentImageFile.Headers.ContentDisposition != null)
+ {
+ __contentImageFile.Headers.ContentDisposition.FileNameStar = null;
+ }
+ var __contentMask = new global::System.Net.Http.ByteArrayContent(request.Mask ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.Mask ?? global::System.Array.Empty()),
- name: "mask",
- fileName: request.Maskname ?? string.Empty);
+ content: __contentMask,
+ name: "\"mask\"",
+ fileName: request.Maskname != null ? $"\"{request.Maskname}\"" : string.Empty);
+ if (__contentMask.Headers.ContentDisposition != null)
+ {
+ __contentMask.Headers.ContentDisposition.FileNameStar = null;
+ }
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
- name: "prompt");
+ name: "\"prompt\"");
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Model.ToValueString()}"),
- name: "model");
+ name: "\"model\"");
if (request.MagicPromptOption != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.MagicPromptOption?.ToValueString()}"),
- name: "magic_prompt_option");
+ name: "\"magic_prompt_option\"");
}
if (request.NumImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
- name: "num_images");
+ name: "\"num_images\"");
}
if (request.Seed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Seed}"),
- name: "seed");
+ name: "\"seed\"");
}
if (request.StyleType != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
- name: "style_type");
+ name: "\"style_type\"");
}
__httpRequest.Content = __httpRequestContent;
@@ -391,7 +406,7 @@ partial void ProcessPostEditImageResponseContent(
byte[] mask,
string maskname,
string prompt,
- global::Ideogram.ModelEnum model,
+ global::Ideogram.ModelEnum model = global::Ideogram.ModelEnum.V2,
global::Ideogram.MagicPromptOption? magicPromptOption = default,
int? numImages = default,
int? seed = default,
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV3.g.cs
index a58fde3..b67c64f 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV3.g.cs
@@ -32,6 +32,7 @@ partial void ProcessPostEditImageV3ResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostEditImageV3Async(
+
global::Ideogram.EditImageRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -71,82 +72,110 @@ partial void ProcessPostEditImageV3ResponseContent(
}
}
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()),
- name: "image",
- fileName: request.Imagename ?? string.Empty);
+ content: __contentImage,
+ name: "\"image\"",
+ fileName: request.Imagename != null ? $"\"{request.Imagename}\"" : string.Empty);
+ if (__contentImage.Headers.ContentDisposition != null)
+ {
+ __contentImage.Headers.ContentDisposition.FileNameStar = null;
+ }
+ var __contentMask = new global::System.Net.Http.ByteArrayContent(request.Mask ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.Mask ?? global::System.Array.Empty()),
- name: "mask",
- fileName: request.Maskname ?? string.Empty);
+ content: __contentMask,
+ name: "\"mask\"",
+ fileName: request.Maskname != null ? $"\"{request.Maskname}\"" : string.Empty);
+ if (__contentMask.Headers.ContentDisposition != null)
+ {
+ __contentMask.Headers.ContentDisposition.FileNameStar = null;
+ }
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
- name: "prompt");
+ name: "\"prompt\"");
if (request.MagicPrompt != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.MagicPrompt?.ToValueString()}"),
- name: "magic_prompt");
+ name: "\"magic_prompt\"");
}
if (request.NumImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
- name: "num_images");
+ name: "\"num_images\"");
}
if (request.Seed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Seed}"),
- name: "seed");
+ name: "\"seed\"");
}
if (request.RenderingSpeed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
- name: "rendering_speed");
+ name: "\"rendering_speed\"");
}
if (request.StyleType != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
- name: "style_type");
+ name: "\"style_type\"");
}
if (request.StylePreset != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StylePreset?.ToValueString()}"),
- name: "style_preset");
+ name: "\"style_preset\"");
+ }
+ if (request.CustomModelUri != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.CustomModelUri}"),
+ name: "\"custom_model_uri\"");
}
if (request.ColorPalette != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.ColorPalette?.ToString() ?? string.Empty),
- name: "color_palette");
+ name: "\"color_palette\"");
}
if (request.StyleCodes != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleCodes, x => x))}]"),
- name: "style_codes");
+ name: "\"style_codes\"");
}
if (request.StyleReferenceImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleReferenceImages, x => x))}]"),
- name: "style_reference_images");
+ name: "\"style_reference_images\"");
}
if (request.CharacterReferenceImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.CharacterReferenceImages, x => x))}]"),
- name: "character_reference_images");
+ name: "\"character_reference_images\"");
}
if (request.CharacterReferenceImagesMask != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.CharacterReferenceImagesMask, x => x))}]"),
- name: "character_reference_images_mask");
+ name: "\"character_reference_images_mask\"");
}
__httpRequest.Content = __httpRequestContent;
@@ -426,6 +455,11 @@ partial void ProcessPostEditImageV3ResponseContent(
/// A predefined style preset that applies a specific artistic style to the generated image.
/// Example: BRIGHT_ART
///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
///
/// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
///
@@ -456,6 +490,7 @@ partial void ProcessPostEditImageV3ResponseContent(
global::Ideogram.RenderingSpeed? renderingSpeed = default,
global::Ideogram.StyleTypeV3? styleType = default,
global::Ideogram.StylePresetV3? stylePreset = default,
+ string? customModelUri = default,
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
global::System.Collections.Generic.IList? styleCodes = default,
global::System.Collections.Generic.IList? styleReferenceImages = default,
@@ -476,6 +511,7 @@ partial void ProcessPostEditImageV3ResponseContent(
RenderingSpeed = renderingSpeed,
StyleType = styleType,
StylePreset = stylePreset,
+ CustomModelUri = customModelUri,
ColorPalette = colorPalette,
StyleCodes = styleCodes,
StyleReferenceImages = styleReferenceImages,
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateDesignV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateDesignV3.g.cs
new file mode 100644
index 0000000..6e49845
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateDesignV3.g.cs
@@ -0,0 +1,550 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ public partial class GenerateClient
+ {
+ partial void PreparePostGenerateDesignV3Arguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Ideogram.GenerateDesignRequestV3 request);
+ partial void PreparePostGenerateDesignV3Request(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Ideogram.GenerateDesignRequestV3 request);
+ partial void ProcessPostGenerateDesignV3Response(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessPostGenerateDesignV3ResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Generate a design from a text prompt with text detection and correction
+ /// Generates a design synchronously from a text prompt using the Ideogram 3.0 model, then detects and corrects text layers within the generated image.
+ /// The response includes the generated image URL along with detected text layers (with font, size, color, position) and image asset layers.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostGenerateDesignV3Async(
+
+ global::Ideogram.GenerateDesignRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PreparePostGenerateDesignV3Arguments(
+ httpClient: HttpClient,
+ request: request);
+
+ var __pathBuilder = new global::Ideogram.PathBuilder(
+ path: "/v1/ideogram-v3/generate-design",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
+ name: "\"prompt\"");
+ if (request.Seed != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Seed}"),
+ name: "\"seed\"");
+ }
+ if (request.Resolution != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Resolution?.ToValueString()}"),
+ name: "\"resolution\"");
+ }
+ if (request.AspectRatio != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.AspectRatio?.ToValueString()}"),
+ name: "\"aspect_ratio\"");
+ }
+ if (request.RenderingSpeed != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
+ name: "\"rendering_speed\"");
+ }
+ if (request.MagicPrompt != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.MagicPrompt?.ToValueString()}"),
+ name: "\"magic_prompt\"");
+ }
+ if (request.NegativePrompt != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.NegativePrompt}"),
+ name: "\"negative_prompt\"");
+ }
+ if (request.NumImages != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
+ name: "\"num_images\"");
+ }
+ if (request.ColorPalette != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent(request.ColorPalette?.ToString() ?? string.Empty),
+ name: "\"color_palette\"");
+ }
+ if (request.StyleCodes != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleCodes, x => x))}]"),
+ name: "\"style_codes\"");
+ }
+ if (request.StyleType != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
+ name: "\"style_type\"");
+ }
+ if (request.StylePreset != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.StylePreset?.ToValueString()}"),
+ name: "\"style_preset\"");
+ }
+ if (request.CustomModelUri != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.CustomModelUri}"),
+ name: "\"custom_model_uri\"");
+ }
+ if (request.RequestedFontFile != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.RequestedFontFile}"),
+ name: "\"requested_font_file\"");
+ }
+ if (request.UploadedFontFile != default)
+ {
+
+ var __contentUploadedFontFile = new global::System.Net.Http.ByteArrayContent(request.UploadedFontFile ?? global::System.Array.Empty());
+ __httpRequestContent.Add(
+ content: __contentUploadedFontFile,
+ name: "\"uploaded_font_file\"",
+ fileName: request.UploadedFontFilename != null ? $"\"{request.UploadedFontFilename}\"" : string.Empty);
+ if (__contentUploadedFontFile.Headers.ContentDisposition != null)
+ {
+ __contentUploadedFontFile.Headers.ContentDisposition.FileNameStar = null;
+ }
+ }
+ if (request.StyleReferenceImages != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleReferenceImages, x => x))}]"),
+ name: "\"style_reference_images\"");
+ }
+ if (request.ReferenceAssetImages != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.ReferenceAssetImages, x => x))}]"),
+ name: "\"reference_asset_images\"");
+ }
+ __httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PreparePostGenerateDesignV3Request(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessPostGenerateDesignV3Response(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ //
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_400,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Prompt failed the safety check.
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Ideogram.GenerateImageSafetyError? __value_422 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_422 = global::Ideogram.GenerateImageSafetyError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_422 = await global::Ideogram.GenerateImageSafetyError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 429)
+ {
+ string? __content_429 = null;
+ global::System.Exception? __exception_429 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_429 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_429,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_429,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessPostGenerateDesignV3ResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return
+ global::Ideogram.LayeredImageGenerationResponseV3.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Ideogram.LayeredImageGenerationResponseV3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ }
+
+ ///
+ /// Generate a design from a text prompt with text detection and correction
+ /// Generates a design synchronously from a text prompt using the Ideogram 3.0 model, then detects and corrects text layers within the generated image.
+ /// The response includes the generated image URL along with detected text layers (with font, size, color, position) and image asset layers.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The prompt to use to generate the design.
+ /// Example: A birthday card saying 'Happy Birthday'
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// The resolutions supported for Ideogram 3.0.
+ /// Example: 1280x800
+ ///
+ ///
+ /// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// Description of what to exclude from a design. Descriptions in the prompt take precedence
+ /// to descriptions in the negative prompt.
+ /// Example: brush strokes, painting
+ ///
+ ///
+ /// Number of designs to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ ///
+ /// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ ///
+ /// The style type to generate with.
+ /// Default Value: GENERAL
+ /// Example: GENERAL
+ ///
+ ///
+ /// A predefined style preset that applies a specific artistic style to the generated image.
+ /// Example: BRIGHT_ART
+ ///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
+ ///
+ /// A font name from the available font library to use for text rendering. When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with uploaded_font_file.
+ /// Example: Ubuntu-Regular.ttf
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+ ///
+ /// A set of asset images (e.g., logos, icons) to use as references for detection and replacement (maximum 10 images). The images should be in JPEG, PNG or WebP format.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostGenerateDesignV3Async(
+ string prompt,
+ int? seed = default,
+ global::Ideogram.ResolutionV3? resolution = default,
+ global::Ideogram.AspectRatioV3? aspectRatio = default,
+ global::Ideogram.RenderingSpeed? renderingSpeed = default,
+ global::Ideogram.MagicPromptOption? magicPrompt = default,
+ string? negativePrompt = default,
+ int? numImages = default,
+ global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
+ global::System.Collections.Generic.IList? styleCodes = default,
+ global::Ideogram.StyleTypeV3? styleType = default,
+ global::Ideogram.StylePresetV3? stylePreset = default,
+ string? customModelUri = default,
+ string? requestedFontFile = default,
+ byte[]? uploadedFontFile = default,
+ string? uploadedFontFilename = default,
+ global::System.Collections.Generic.IList? styleReferenceImages = default,
+ global::System.Collections.Generic.IList? referenceAssetImages = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Ideogram.GenerateDesignRequestV3
+ {
+ Prompt = prompt,
+ Seed = seed,
+ Resolution = resolution,
+ AspectRatio = aspectRatio,
+ RenderingSpeed = renderingSpeed,
+ MagicPrompt = magicPrompt,
+ NegativePrompt = negativePrompt,
+ NumImages = numImages,
+ ColorPalette = colorPalette,
+ StyleCodes = styleCodes,
+ StyleType = styleType,
+ StylePreset = stylePreset,
+ CustomModelUri = customModelUri,
+ RequestedFontFile = requestedFontFile,
+ UploadedFontFile = uploadedFontFile,
+ UploadedFontFilename = uploadedFontFilename,
+ StyleReferenceImages = styleReferenceImages,
+ ReferenceAssetImages = referenceAssetImages,
+ };
+
+ return await PostGenerateDesignV3Async(
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs
index 61a86bf..d0fd54e 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs
@@ -30,6 +30,7 @@ partial void ProcessPostGenerateImageResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostGenerateImageAsync(
+
global::Ideogram.GenerateImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -308,7 +309,9 @@ partial void ProcessPostGenerateImageResponseContent(
/// Generates images synchronously based on a given prompt and optional parameters.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
- ///
+ ///
+ /// Example: {"aspect_ratio":"ASPECT_10_16","magic_prompt_option":"AUTO","model":"V_2","prompt":"A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset."}
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostGenerateImageAsync(
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
index 215fd2f..0218c6a 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
@@ -30,6 +30,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostGenerateImageV3Async(
+
global::Ideogram.GenerateImageRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -71,90 +72,111 @@ partial void ProcessPostGenerateImageV3ResponseContent(
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
- name: "prompt");
+ name: "\"prompt\"");
if (request.Seed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Seed}"),
- name: "seed");
+ name: "\"seed\"");
}
if (request.Resolution != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Resolution?.ToValueString()}"),
- name: "resolution");
+ name: "\"resolution\"");
}
if (request.AspectRatio != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.AspectRatio?.ToValueString()}"),
- name: "aspect_ratio");
+ name: "\"aspect_ratio\"");
}
if (request.RenderingSpeed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
- name: "rendering_speed");
+ name: "\"rendering_speed\"");
}
if (request.MagicPrompt != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.MagicPrompt?.ToValueString()}"),
- name: "magic_prompt");
+ name: "\"magic_prompt\"");
}
if (request.NegativePrompt != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NegativePrompt}"),
- name: "negative_prompt");
+ name: "\"negative_prompt\"");
}
if (request.NumImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
- name: "num_images");
+ name: "\"num_images\"");
}
if (request.ColorPalette != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.ColorPalette?.ToString() ?? string.Empty),
- name: "color_palette");
+ name: "\"color_palette\"");
}
if (request.StyleCodes != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleCodes, x => x))}]"),
- name: "style_codes");
+ name: "\"style_codes\"");
}
if (request.StyleType != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
- name: "style_type");
+ name: "\"style_type\"");
}
if (request.StylePreset != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StylePreset?.ToValueString()}"),
- name: "style_preset");
+ name: "\"style_preset\"");
+ }
+ if (request.CustomModelUri != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.CustomModelUri}"),
+ name: "\"custom_model_uri\"");
}
if (request.StyleReferenceImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleReferenceImages, x => x))}]"),
- name: "style_reference_images");
+ name: "\"style_reference_images\"");
}
if (request.CharacterReferenceImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.CharacterReferenceImages, x => x))}]"),
- name: "character_reference_images");
+ name: "\"character_reference_images\"");
}
if (request.CharacterReferenceImagesMask != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.CharacterReferenceImagesMask, x => x))}]"),
- name: "character_reference_images_mask");
+ name: "\"character_reference_images_mask\"");
}
__httpRequest.Content = __httpRequestContent;
@@ -439,6 +461,11 @@ partial void ProcessPostGenerateImageV3ResponseContent(
/// A predefined style preset that applies a specific artistic style to the generated image.
/// Example: BRIGHT_ART
///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
///
/// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
///
@@ -463,6 +490,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
global::System.Collections.Generic.IList? styleCodes = default,
global::Ideogram.StyleTypeV3? styleType = default,
global::Ideogram.StylePresetV3? stylePreset = default,
+ string? customModelUri = default,
global::System.Collections.Generic.IList? styleReferenceImages = default,
global::System.Collections.Generic.IList? characterReferenceImages = default,
global::System.Collections.Generic.IList? characterReferenceImagesMask = default,
@@ -482,6 +510,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
StyleCodes = styleCodes,
StyleType = styleType,
StylePreset = stylePreset,
+ CustomModelUri = customModelUri,
StyleReferenceImages = styleReferenceImages,
CharacterReferenceImages = characterReferenceImages,
CharacterReferenceImagesMask = characterReferenceImagesMask,
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3Transparent.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3Transparent.g.cs
new file mode 100644
index 0000000..a6039f2
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3Transparent.g.cs
@@ -0,0 +1,444 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ public partial class GenerateClient
+ {
+ partial void PreparePostGenerateImageV3TransparentArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Ideogram.GenerateTransparentImageRequestV3 request);
+ partial void PreparePostGenerateImageV3TransparentRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Ideogram.GenerateTransparentImageRequestV3 request);
+ partial void ProcessPostGenerateImageV3TransparentResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessPostGenerateImageV3TransparentResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Generate with Ideogram 3.0 (Transparent Background)
+ /// Generates images with transparent background synchronously based on a given prompt and optional parameters using
+ /// the Ideogram 3.0 model. Images will be generated using maximum supported resolution at the specified aspect ratio
+ /// to allow best results with upscaler. The selected resolution is written to the response, not the upscaled final
+ /// resolution.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostGenerateImageV3TransparentAsync(
+
+ global::Ideogram.GenerateTransparentImageRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PreparePostGenerateImageV3TransparentArguments(
+ httpClient: HttpClient,
+ request: request);
+
+ var __pathBuilder = new global::Ideogram.PathBuilder(
+ path: "/v1/ideogram-v3/generate-transparent",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
+ name: "\"prompt\"");
+ if (request.Seed != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Seed}"),
+ name: "\"seed\"");
+ }
+ if (request.UpscaleFactor != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.UpscaleFactor?.ToValueString()}"),
+ name: "\"upscale_factor\"");
+ }
+ if (request.AspectRatio != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.AspectRatio?.ToValueString()}"),
+ name: "\"aspect_ratio\"");
+ }
+ if (request.RenderingSpeed != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
+ name: "\"rendering_speed\"");
+ }
+ if (request.MagicPrompt != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.MagicPrompt?.ToValueString()}"),
+ name: "\"magic_prompt\"");
+ }
+ if (request.NegativePrompt != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.NegativePrompt}"),
+ name: "\"negative_prompt\"");
+ }
+ if (request.NumImages != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
+ name: "\"num_images\"");
+ }
+ if (request.CustomModelUri != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.CustomModelUri}"),
+ name: "\"custom_model_uri\"");
+ }
+ __httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PreparePostGenerateImageV3TransparentRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessPostGenerateImageV3TransparentResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ //
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_400,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Prompt failed the safety check.
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Ideogram.GenerateImageSafetyError? __value_422 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_422 = global::Ideogram.GenerateImageSafetyError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_422 = await global::Ideogram.GenerateImageSafetyError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 429)
+ {
+ string? __content_429 = null;
+ global::System.Exception? __exception_429 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_429 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_429,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_429,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessPostGenerateImageV3TransparentResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return
+ global::Ideogram.ImageGenerationResponseV3.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Ideogram.ImageGenerationResponseV3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ }
+
+ ///
+ /// Generate with Ideogram 3.0 (Transparent Background)
+ /// Generates images with transparent background synchronously based on a given prompt and optional parameters using
+ /// the Ideogram 3.0 model. Images will be generated using maximum supported resolution at the specified aspect ratio
+ /// to allow best results with upscaler. The selected resolution is written to the response, not the upscaled final
+ /// resolution.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The prompt to use to generate the image.
+ /// Example: A photo of a cat
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// Upscale the initially generated image by the given factor. Upscale factors other than X1 will incur additional cost.
+ /// Default Value: X1
+ /// Example: X2
+ ///
+ ///
+ /// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// Description of what to exclude from an image. Descriptions in the prompt take precedence
+ /// to descriptions in the negative prompt.
+ /// Example: brush strokes, painting
+ ///
+ ///
+ /// Number of images to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// A model must be able to generate transparent background to be used for this endpoint.
+ /// Example: model/my-custom-model/version/1
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostGenerateImageV3TransparentAsync(
+ string prompt,
+ int? seed = default,
+ global::Ideogram.UpscaleFactor? upscaleFactor = default,
+ global::Ideogram.AspectRatioV3? aspectRatio = default,
+ global::Ideogram.RenderingSpeed? renderingSpeed = default,
+ global::Ideogram.MagicPromptOption? magicPrompt = default,
+ string? negativePrompt = default,
+ int? numImages = default,
+ string? customModelUri = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Ideogram.GenerateTransparentImageRequestV3
+ {
+ Prompt = prompt,
+ Seed = seed,
+ UpscaleFactor = upscaleFactor,
+ AspectRatio = aspectRatio,
+ RenderingSpeed = renderingSpeed,
+ MagicPrompt = magicPrompt,
+ NegativePrompt = negativePrompt,
+ NumImages = numImages,
+ CustomModelUri = customModelUri,
+ };
+
+ return await PostGenerateImageV3TransparentAsync(
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostLayerizeDesignV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostLayerizeDesignV3.g.cs
new file mode 100644
index 0000000..0665a15
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostLayerizeDesignV3.g.cs
@@ -0,0 +1,381 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ public partial class GenerateClient
+ {
+ partial void PreparePostLayerizeDesignV3Arguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Ideogram.LayerizeDesignRequestV3 request);
+ partial void PreparePostLayerizeDesignV3Request(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Ideogram.LayerizeDesignRequestV3 request);
+ partial void ProcessPostLayerizeDesignV3Response(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessPostLayerizeDesignV3ResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Layerize an existing flat graphic image with text detection and correction
+ /// Processes an existing flat graphic image to detect and correct text layers without generating a new image from scratch.
+ /// The uploaded image is analyzed for text content, which is then removed and returned as structured text layers with font matching, sizing, and color information.
+ /// Supported image formats include JPEG, PNG, and WebP (max size 10MB).
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostLayerizeDesignV3Async(
+
+ global::Ideogram.LayerizeDesignRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PreparePostLayerizeDesignV3Arguments(
+ httpClient: HttpClient,
+ request: request);
+
+ var __pathBuilder = new global::Ideogram.PathBuilder(
+ path: "/v1/ideogram-v3/layerize-design",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentFlatGraphicImage = new global::System.Net.Http.ByteArrayContent(request.FlatGraphicImage ?? global::System.Array.Empty());
+ __httpRequestContent.Add(
+ content: __contentFlatGraphicImage,
+ name: "\"flat_graphic_image\"",
+ fileName: request.FlatGraphicImagename != null ? $"\"{request.FlatGraphicImagename}\"" : string.Empty);
+ if (__contentFlatGraphicImage.Headers.ContentDisposition != null)
+ {
+ __contentFlatGraphicImage.Headers.ContentDisposition.FileNameStar = null;
+ }
+ if (request.Prompt != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
+ name: "\"prompt\"");
+ }
+ if (request.Seed != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Seed}"),
+ name: "\"seed\"");
+ }
+ if (request.RequestedFontFile != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.RequestedFontFile}"),
+ name: "\"requested_font_file\"");
+ }
+ if (request.UploadedFontFile != default)
+ {
+
+ var __contentUploadedFontFile = new global::System.Net.Http.ByteArrayContent(request.UploadedFontFile ?? global::System.Array.Empty());
+ __httpRequestContent.Add(
+ content: __contentUploadedFontFile,
+ name: "\"uploaded_font_file\"",
+ fileName: request.UploadedFontFilename != null ? $"\"{request.UploadedFontFilename}\"" : string.Empty);
+ if (__contentUploadedFontFile.Headers.ContentDisposition != null)
+ {
+ __contentUploadedFontFile.Headers.ContentDisposition.FileNameStar = null;
+ }
+ }
+ if (request.ReferenceAssetImages != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.ReferenceAssetImages, x => x))}]"),
+ name: "\"reference_asset_images\"");
+ }
+ __httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PreparePostLayerizeDesignV3Request(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessPostLayerizeDesignV3Response(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ //
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_400,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 429)
+ {
+ string? __content_429 = null;
+ global::System.Exception? __exception_429 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_429 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_429,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_429,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessPostLayerizeDesignV3ResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return
+ global::Ideogram.LayeredImageGenerationResponseV3.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Ideogram.LayeredImageGenerationResponseV3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ }
+
+ ///
+ /// Layerize an existing flat graphic image with text detection and correction
+ /// Processes an existing flat graphic image to detect and correct text layers without generating a new image from scratch.
+ /// The uploaded image is analyzed for text content, which is then removed and returned as structured text layers with font matching, sizing, and color information.
+ /// Supported image formats include JPEG, PNG, and WebP (max size 10MB).
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The flat graphic image to process for text detection and correction. The image should be in JPEG, PNG or WebP format (max size 10MB).
+ ///
+ ///
+ /// The flat graphic image to process for text detection and correction. The image should be in JPEG, PNG or WebP format (max size 10MB).
+ ///
+ ///
+ /// An optional prompt to describe the image. If not provided, a prompt will be auto-generated from the image via captioning.
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// A font name from the available font library to use for text rendering. When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with uploaded_font_file.
+ /// Example: Ubuntu-Regular.ttf
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A set of asset images (e.g., logos, icons) to use as references for detection and replacement (maximum 10 images). The images should be in JPEG, PNG or WebP format.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostLayerizeDesignV3Async(
+ byte[] flatGraphicImage,
+ string flatGraphicImagename,
+ string? prompt = default,
+ int? seed = default,
+ string? requestedFontFile = default,
+ byte[]? uploadedFontFile = default,
+ string? uploadedFontFilename = default,
+ global::System.Collections.Generic.IList? referenceAssetImages = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Ideogram.LayerizeDesignRequestV3
+ {
+ FlatGraphicImage = flatGraphicImage,
+ FlatGraphicImagename = flatGraphicImagename,
+ Prompt = prompt,
+ Seed = seed,
+ RequestedFontFile = requestedFontFile,
+ UploadedFontFile = uploadedFontFile,
+ UploadedFontFilename = uploadedFontFilename,
+ ReferenceAssetImages = referenceAssetImages,
+ };
+
+ return await PostLayerizeDesignV3Async(
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs
index ee7b77c..3fcb9eb 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs
@@ -30,6 +30,7 @@ partial void ProcessPostReframeImageResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostReframeImageAsync(
+
global::Ideogram.ReframeImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -69,33 +70,41 @@ partial void ProcessPostReframeImageResponseContent(
}
}
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentImageFile = new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()),
- name: "image_file",
- fileName: request.ImageFilename ?? string.Empty);
+ content: __contentImageFile,
+ name: "\"image_file\"",
+ fileName: request.ImageFilename != null ? $"\"{request.ImageFilename}\"" : string.Empty);
+ if (__contentImageFile.Headers.ContentDisposition != null)
+ {
+ __contentImageFile.Headers.ContentDisposition.FileNameStar = null;
+ }
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Resolution.ToValueString()}"),
- name: "resolution");
+ name: "\"resolution\"");
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Model.ToValueString()}"),
- name: "model");
+ name: "\"model\"");
if (request.NumImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
- name: "num_images");
+ name: "\"num_images\"");
}
if (request.Seed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Seed}"),
- name: "seed");
+ name: "\"seed\"");
}
if (request.StyleType != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
- name: "style_type");
+ name: "\"style_type\"");
}
__httpRequest.Content = __httpRequestContent;
@@ -365,7 +374,7 @@ partial void ProcessPostReframeImageResponseContent(
byte[] imageFile,
string imageFilename,
global::Ideogram.Resolution resolution,
- global::Ideogram.ModelEnum model,
+ global::Ideogram.ModelEnum model = global::Ideogram.ModelEnum.V2,
int? numImages = default,
int? seed = default,
global::Ideogram.StyleType? styleType = default,
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
index 9c7dabe..2767afc 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
@@ -30,6 +30,7 @@ partial void ProcessPostReframeImageV3ResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostReframeImageV3Async(
+
global::Ideogram.ReframeImageRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -69,54 +70,66 @@ partial void ProcessPostReframeImageV3ResponseContent(
}
}
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()),
- name: "image",
- fileName: request.Imagename ?? string.Empty);
+ content: __contentImage,
+ name: "\"image\"",
+ fileName: request.Imagename != null ? $"\"{request.Imagename}\"" : string.Empty);
+ if (__contentImage.Headers.ContentDisposition != null)
+ {
+ __contentImage.Headers.ContentDisposition.FileNameStar = null;
+ }
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Resolution.ToValueString()}"),
- name: "resolution");
+ name: "\"resolution\"");
if (request.NumImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
- name: "num_images");
+ name: "\"num_images\"");
}
if (request.Seed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Seed}"),
- name: "seed");
+ name: "\"seed\"");
}
if (request.RenderingSpeed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
- name: "rendering_speed");
+ name: "\"rendering_speed\"");
}
if (request.StylePreset != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StylePreset?.ToValueString()}"),
- name: "style_preset");
+ name: "\"style_preset\"");
}
if (request.ColorPalette != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.ColorPalette?.ToString() ?? string.Empty),
- name: "color_palette");
+ name: "\"color_palette\"");
}
if (request.StyleCodes != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleCodes, x => x))}]"),
- name: "style_codes");
+ name: "\"style_codes\"");
}
if (request.StyleReferenceImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleReferenceImages, x => x))}]"),
- name: "style_reference_images");
+ name: "\"style_reference_images\"");
}
__httpRequest.Content = __httpRequestContent;
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
index 8c1a7e1..cd8d65c 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
@@ -32,6 +32,7 @@ partial void ProcessPostRemixImageResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostRemixImageAsync(
+
global::Ideogram.RemixImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -73,11 +74,16 @@ partial void ProcessPostRemixImageResponseContent(
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageRequest}"),
- name: "image_request");
+ name: "\"image_request\"");
+ var __contentImageFile = new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()),
- name: "image_file",
- fileName: request.ImageFilename ?? string.Empty);
+ content: __contentImageFile,
+ name: "\"image_file\"",
+ fileName: request.ImageFilename != null ? $"\"{request.ImageFilename}\"" : string.Empty);
+ if (__contentImageFile.Headers.ContentDisposition != null)
+ {
+ __contentImageFile.Headers.ContentDisposition.FileNameStar = null;
+ }
__httpRequest.Content = __httpRequestContent;
PrepareRequest(
@@ -316,7 +322,8 @@ partial void ProcessPostRemixImageResponseContent(
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
- /// A request to generate a new image using a provided image and a prompt.
+ /// A request to generate a new image using a provided image and a prompt.
+ /// Example: {"aspect_ratio":"ASPECT_10_16","magic_prompt_option":"ON","model":"V_2","prompt":"A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.","image_weight":50}
///
///
/// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
index 656610d..6e9e4d6 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
@@ -32,6 +32,7 @@ partial void ProcessPostRemixImageV3ResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostRemixImageV3Async(
+
global::Ideogram.RemixImageRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -71,102 +72,129 @@ partial void ProcessPostRemixImageV3ResponseContent(
}
}
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()),
- name: "image",
- fileName: request.Imagename ?? string.Empty);
+ content: __contentImage,
+ name: "\"image\"",
+ fileName: request.Imagename != null ? $"\"{request.Imagename}\"" : string.Empty);
+ if (__contentImage.Headers.ContentDisposition != null)
+ {
+ __contentImage.Headers.ContentDisposition.FileNameStar = null;
+ }
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
- name: "prompt");
+ name: "\"prompt\"");
if (request.ImageWeight != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageWeight}"),
- name: "image_weight");
+ name: "\"image_weight\"");
}
if (request.Seed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Seed}"),
- name: "seed");
+ name: "\"seed\"");
}
if (request.Resolution != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Resolution?.ToValueString()}"),
- name: "resolution");
+ name: "\"resolution\"");
}
if (request.AspectRatio != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.AspectRatio?.ToValueString()}"),
- name: "aspect_ratio");
+ name: "\"aspect_ratio\"");
}
if (request.RenderingSpeed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
- name: "rendering_speed");
+ name: "\"rendering_speed\"");
}
if (request.MagicPrompt != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.MagicPrompt?.ToValueString()}"),
- name: "magic_prompt");
+ name: "\"magic_prompt\"");
}
if (request.NegativePrompt != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NegativePrompt}"),
- name: "negative_prompt");
+ name: "\"negative_prompt\"");
}
if (request.NumImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
- name: "num_images");
+ name: "\"num_images\"");
}
if (request.ColorPalette != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.ColorPalette?.ToString() ?? string.Empty),
- name: "color_palette");
+ name: "\"color_palette\"");
}
if (request.StyleCodes != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleCodes, x => x))}]"),
- name: "style_codes");
+ name: "\"style_codes\"");
}
if (request.StyleType != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
- name: "style_type");
+ name: "\"style_type\"");
}
if (request.StylePreset != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StylePreset?.ToValueString()}"),
- name: "style_preset");
+ name: "\"style_preset\"");
+ }
+ if (request.CustomModelUri != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.CustomModelUri}"),
+ name: "\"custom_model_uri\"");
}
if (request.StyleReferenceImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleReferenceImages, x => x))}]"),
- name: "style_reference_images");
+ name: "\"style_reference_images\"");
}
if (request.CharacterReferenceImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.CharacterReferenceImages, x => x))}]"),
- name: "character_reference_images");
+ name: "\"character_reference_images\"");
}
if (request.CharacterReferenceImagesMask != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.CharacterReferenceImagesMask, x => x))}]"),
- name: "character_reference_images_mask");
+ name: "\"character_reference_images_mask\"");
}
__httpRequest.Content = __httpRequestContent;
@@ -463,6 +491,11 @@ partial void ProcessPostRemixImageV3ResponseContent(
/// A predefined style preset that applies a specific artistic style to the generated image.
/// Example: BRIGHT_ART
///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
///
/// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
///
@@ -490,6 +523,7 @@ partial void ProcessPostRemixImageV3ResponseContent(
global::System.Collections.Generic.IList? styleCodes = default,
global::Ideogram.StyleTypeV3? styleType = default,
global::Ideogram.StylePresetV3? stylePreset = default,
+ string? customModelUri = default,
global::System.Collections.Generic.IList? styleReferenceImages = default,
global::System.Collections.Generic.IList? characterReferenceImages = default,
global::System.Collections.Generic.IList? characterReferenceImagesMask = default,
@@ -512,6 +546,7 @@ partial void ProcessPostRemixImageV3ResponseContent(
StyleCodes = styleCodes,
StyleType = styleType,
StylePreset = stylePreset,
+ CustomModelUri = customModelUri,
StyleReferenceImages = styleReferenceImages,
CharacterReferenceImages = characterReferenceImages,
CharacterReferenceImagesMask = characterReferenceImagesMask,
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs
index ecd2ce2..1484d2a 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs
@@ -32,6 +32,7 @@ partial void ProcessPostReplaceBackgroundV3ResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostReplaceBackgroundV3Async(
+
global::Ideogram.ReplaceBackgroundRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -71,60 +72,73 @@ partial void ProcessPostReplaceBackgroundV3ResponseContent(
}
}
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()),
- name: "image",
- fileName: request.Imagename ?? string.Empty);
+ content: __contentImage,
+ name: "\"image\"",
+ fileName: request.Imagename != null ? $"\"{request.Imagename}\"" : string.Empty);
+ if (__contentImage.Headers.ContentDisposition != null)
+ {
+ __contentImage.Headers.ContentDisposition.FileNameStar = null;
+ }
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
- name: "prompt");
+ name: "\"prompt\"");
if (request.MagicPrompt != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.MagicPrompt?.ToValueString()}"),
- name: "magic_prompt");
+ name: "\"magic_prompt\"");
}
if (request.NumImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
- name: "num_images");
+ name: "\"num_images\"");
}
if (request.Seed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.Seed}"),
- name: "seed");
+ name: "\"seed\"");
}
if (request.RenderingSpeed != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
- name: "rendering_speed");
+ name: "\"rendering_speed\"");
}
if (request.StylePreset != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.StylePreset?.ToValueString()}"),
- name: "style_preset");
+ name: "\"style_preset\"");
}
if (request.ColorPalette != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent(request.ColorPalette?.ToString() ?? string.Empty),
- name: "color_palette");
+ name: "\"color_palette\"");
}
if (request.StyleCodes != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleCodes, x => x))}]"),
- name: "style_codes");
+ name: "\"style_codes\"");
}
if (request.StyleReferenceImages != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.StyleReferenceImages, x => x))}]"),
- name: "style_reference_images");
+ name: "\"style_reference_images\"");
}
__httpRequest.Content = __httpRequestContent;
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostTryOnV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostTryOnV3.g.cs
new file mode 100644
index 0000000..cb9b193
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostTryOnV3.g.cs
@@ -0,0 +1,443 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ public partial class GenerateClient
+ {
+ partial void PreparePostTryOnV3Arguments(
+ global::System.Net.Http.HttpClient httpClient,
+ global::Ideogram.TryOnRequestV3 request);
+ partial void PreparePostTryOnV3Request(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ global::Ideogram.TryOnRequestV3 request);
+ partial void ProcessPostTryOnV3Response(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessPostTryOnV3ResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Virtual Try-On with Ideogram 3.0
+ /// Performs virtual clothing try-on by automatically segmenting the clothing in the provided image
+ /// and replacing it based on the prompt. The user provides an image and a prompt describing the
+ /// desired clothing change (e.g., "change his shirt to a pink shirt").
+ /// Supported image formats include JPEG, PNG, and WebP.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostTryOnV3Async(
+
+ global::Ideogram.TryOnRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PreparePostTryOnV3Arguments(
+ httpClient: HttpClient,
+ request: request);
+
+ var __pathBuilder = new global::Ideogram.PathBuilder(
+ path: "/v1/ideogram-v3/try-on",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in Authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
+ var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty());
+ __httpRequestContent.Add(
+ content: __contentImage,
+ name: "\"image\"",
+ fileName: request.Imagename != null ? $"\"{request.Imagename}\"" : string.Empty);
+ if (__contentImage.Headers.ContentDisposition != null)
+ {
+ __contentImage.Headers.ContentDisposition.FileNameStar = null;
+ }
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Prompt}"),
+ name: "\"prompt\"");
+ if (request.MagicPrompt != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.MagicPrompt?.ToValueString()}"),
+ name: "\"magic_prompt\"");
+ }
+ if (request.NumImages != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.NumImages}"),
+ name: "\"num_images\"");
+ }
+ if (request.Seed != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.Seed}"),
+ name: "\"seed\"");
+ }
+ if (request.RenderingSpeed != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.RenderingSpeed?.ToValueString()}"),
+ name: "\"rendering_speed\"");
+ }
+ if (request.StyleType != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.StyleType?.ToValueString()}"),
+ name: "\"style_type\"");
+ }
+ if (request.StylePreset != default)
+ {
+
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"{request.StylePreset?.ToValueString()}"),
+ name: "\"style_preset\"");
+ }
+ __httpRequestContent.Add(
+ content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.ProductReferenceImages, x => x))}]"),
+ name: "\"product_reference_images\"");
+ __httpRequest.Content = __httpRequestContent;
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PreparePostTryOnV3Request(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ request: request);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessPostTryOnV3Response(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ //
+ if ((int)__response.StatusCode == 400)
+ {
+ string? __content_400 = null;
+ global::System.Exception? __exception_400 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_400 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_400 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_400,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_400,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_401 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_401,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_401,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ // Prompt or provided image failed safety check, or clothing segmentation failed.
+ if ((int)__response.StatusCode == 422)
+ {
+ string? __content_422 = null;
+ global::System.Exception? __exception_422 = null;
+ global::Ideogram.GenerateImageSafetyError? __value_422 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ __value_422 = global::Ideogram.GenerateImageSafetyError.FromJson(__content_422, JsonSerializerContext);
+ }
+ else
+ {
+ var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ __value_422 = await global::Ideogram.GenerateImageSafetyError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_422 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_422,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_422,
+ ResponseObject = __value_422,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ //
+ if ((int)__response.StatusCode == 429)
+ {
+ string? __content_429 = null;
+ global::System.Exception? __exception_429 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_429 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_429 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_429 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_429,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_429,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+
+ if (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessPostTryOnV3ResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return
+ global::Ideogram.ImageGenerationResponseV3.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ using var __content = await __response.Content.ReadAsStreamAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Ideogram.ImageGenerationResponseV3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ }
+
+ ///
+ /// Virtual Try-On with Ideogram 3.0
+ /// Performs virtual clothing try-on by automatically segmenting the clothing in the provided image
+ /// and replacing it based on the prompt. The user provides an image and a prompt describing the
+ /// desired clothing change (e.g., "change his shirt to a pink shirt").
+ /// Supported image formats include JPEG, PNG, and WebP.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The image containing a person wearing clothing to be modified (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The image containing a person wearing clothing to be modified (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The prompt describing the desired clothing change.
+ /// Example: Change his shirt to a pink shirt
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// The number of images to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ ///
+ /// The style type to generate with.
+ /// Default Value: GENERAL
+ /// Example: GENERAL
+ ///
+ ///
+ /// A predefined style preset that applies a specific artistic style to the generated image.
+ /// Example: BRIGHT_ART
+ ///
+ ///
+ /// An image to use as the product reference for the try-on (exactly 1 image required). The image should be in JPEG, PNG or WebP format.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task PostTryOnV3Async(
+ byte[] image,
+ string imagename,
+ string prompt,
+ global::System.Collections.Generic.IList productReferenceImages,
+ global::Ideogram.MagicPromptOption? magicPrompt = default,
+ int? numImages = default,
+ int? seed = default,
+ global::Ideogram.RenderingSpeed? renderingSpeed = default,
+ global::Ideogram.StyleTypeV3? styleType = default,
+ global::Ideogram.StylePresetV3? stylePreset = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Ideogram.TryOnRequestV3
+ {
+ Image = image,
+ Imagename = imagename,
+ Prompt = prompt,
+ MagicPrompt = magicPrompt,
+ NumImages = numImages,
+ Seed = seed,
+ RenderingSpeed = renderingSpeed,
+ StyleType = styleType,
+ StylePreset = stylePreset,
+ ProductReferenceImages = productReferenceImages,
+ };
+
+ return await PostTryOnV3Async(
+ request: __request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
index 3b0a48b..e25ebc7 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
@@ -31,6 +31,7 @@ partial void ProcessPostUpscaleImageResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostUpscaleImageAsync(
+
global::Ideogram.UpscaleImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -72,11 +73,16 @@ partial void ProcessPostUpscaleImageResponseContent(
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageRequest}"),
- name: "image_request");
+ name: "\"image_request\"");
+ var __contentImageFile = new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()),
- name: "image_file",
- fileName: request.ImageFilename ?? string.Empty);
+ content: __contentImageFile,
+ name: "\"image_file\"",
+ fileName: request.ImageFilename != null ? $"\"{request.ImageFilename}\"" : string.Empty);
+ if (__contentImageFile.Headers.ContentDisposition != null)
+ {
+ __contentImageFile.Headers.ContentDisposition.FileNameStar = null;
+ }
__httpRequest.Content = __httpRequestContent;
PrepareRequest(
diff --git a/src/libs/Ideogram/Generated/Ideogram.IBatchClient.PostBatch.g.cs b/src/libs/Ideogram/Generated/Ideogram.IBatchClient.PostBatch.g.cs
index 9121698..0f5b4f6 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IBatchClient.PostBatch.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IBatchClient.PostBatch.g.cs
@@ -13,6 +13,7 @@ public partial interface IBatchClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostBatchAsync(
+
global::Ideogram.InternalBatchRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -29,7 +30,9 @@ public partial interface IBatchClient
/// The experiment variant used for template selection for the magic prompts.
/// Example: MAGIC_PROMPT_NO_TEXT
///
- ///
+ ///
+ /// Example: {"aspect_ratio":"1x1","style_type":"GENERAL","magic_prompt_version":"V_0","seed":12345,"negative_prompt":"brush strokes, painting","magic_prompt_option":"ON","model":"V_2_TURBO","resolution":"1280x800","num_images":1,"color_palette":{"name":"PASTEL"}}
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostBatchAsync(
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
index f38b192..bd7a750 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs
@@ -15,6 +15,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostEditImageAsync(
+
global::Ideogram.EditImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -70,7 +71,7 @@ public partial interface IGenerateClient
byte[] mask,
string maskname,
string prompt,
- global::Ideogram.ModelEnum model,
+ global::Ideogram.ModelEnum model = global::Ideogram.ModelEnum.V2,
global::Ideogram.MagicPromptOption? magicPromptOption = default,
int? numImages = default,
int? seed = default,
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImageV3.g.cs
index 88d15bd..d2ecde5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImageV3.g.cs
@@ -15,6 +15,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostEditImageV3Async(
+
global::Ideogram.EditImageRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -66,6 +67,11 @@ public partial interface IGenerateClient
/// A predefined style preset that applies a specific artistic style to the generated image.
/// Example: BRIGHT_ART
///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
///
/// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
///
@@ -96,6 +102,7 @@ public partial interface IGenerateClient
global::Ideogram.RenderingSpeed? renderingSpeed = default,
global::Ideogram.StyleTypeV3? styleType = default,
global::Ideogram.StylePresetV3? stylePreset = default,
+ string? customModelUri = default,
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
global::System.Collections.Generic.IList? styleCodes = default,
global::System.Collections.Generic.IList? styleReferenceImages = default,
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateDesignV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateDesignV3.g.cs
new file mode 100644
index 0000000..38e9312
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateDesignV3.g.cs
@@ -0,0 +1,119 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public partial interface IGenerateClient
+ {
+ ///
+ /// Generate a design from a text prompt with text detection and correction
+ /// Generates a design synchronously from a text prompt using the Ideogram 3.0 model, then detects and corrects text layers within the generated image.
+ /// The response includes the generated image URL along with detected text layers (with font, size, color, position) and image asset layers.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostGenerateDesignV3Async(
+
+ global::Ideogram.GenerateDesignRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Generate a design from a text prompt with text detection and correction
+ /// Generates a design synchronously from a text prompt using the Ideogram 3.0 model, then detects and corrects text layers within the generated image.
+ /// The response includes the generated image URL along with detected text layers (with font, size, color, position) and image asset layers.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The prompt to use to generate the design.
+ /// Example: A birthday card saying 'Happy Birthday'
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// The resolutions supported for Ideogram 3.0.
+ /// Example: 1280x800
+ ///
+ ///
+ /// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// Description of what to exclude from a design. Descriptions in the prompt take precedence
+ /// to descriptions in the negative prompt.
+ /// Example: brush strokes, painting
+ ///
+ ///
+ /// Number of designs to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ ///
+ /// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ ///
+ /// The style type to generate with.
+ /// Default Value: GENERAL
+ /// Example: GENERAL
+ ///
+ ///
+ /// A predefined style preset that applies a specific artistic style to the generated image.
+ /// Example: BRIGHT_ART
+ ///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
+ ///
+ /// A font name from the available font library to use for text rendering. When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with uploaded_font_file.
+ /// Example: Ubuntu-Regular.ttf
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+ ///
+ /// A set of asset images (e.g., logos, icons) to use as references for detection and replacement (maximum 10 images). The images should be in JPEG, PNG or WebP format.
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostGenerateDesignV3Async(
+ string prompt,
+ int? seed = default,
+ global::Ideogram.ResolutionV3? resolution = default,
+ global::Ideogram.AspectRatioV3? aspectRatio = default,
+ global::Ideogram.RenderingSpeed? renderingSpeed = default,
+ global::Ideogram.MagicPromptOption? magicPrompt = default,
+ string? negativePrompt = default,
+ int? numImages = default,
+ global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette = default,
+ global::System.Collections.Generic.IList? styleCodes = default,
+ global::Ideogram.StyleTypeV3? styleType = default,
+ global::Ideogram.StylePresetV3? stylePreset = default,
+ string? customModelUri = default,
+ string? requestedFontFile = default,
+ byte[]? uploadedFontFile = default,
+ string? uploadedFontFilename = default,
+ global::System.Collections.Generic.IList? styleReferenceImages = default,
+ global::System.Collections.Generic.IList? referenceAssetImages = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImage.g.cs
index 7150531..dc9899f 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImage.g.cs
@@ -13,6 +13,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostGenerateImageAsync(
+
global::Ideogram.GenerateImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -21,7 +22,9 @@ public partial interface IGenerateClient
/// Generates images synchronously based on a given prompt and optional parameters.
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
- ///
+ ///
+ /// Example: {"aspect_ratio":"ASPECT_10_16","magic_prompt_option":"AUTO","model":"V_2","prompt":"A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset."}
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostGenerateImageAsync(
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
index e5baf93..cb76061 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3.g.cs
@@ -13,6 +13,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostGenerateImageV3Async(
+
global::Ideogram.GenerateImageRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -69,6 +70,11 @@ public partial interface IGenerateClient
/// A predefined style preset that applies a specific artistic style to the generated image.
/// Example: BRIGHT_ART
///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
///
/// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
///
@@ -93,6 +99,7 @@ public partial interface IGenerateClient
global::System.Collections.Generic.IList? styleCodes = default,
global::Ideogram.StyleTypeV3? styleType = default,
global::Ideogram.StylePresetV3? stylePreset = default,
+ string? customModelUri = default,
global::System.Collections.Generic.IList? styleReferenceImages = default,
global::System.Collections.Generic.IList? characterReferenceImages = default,
global::System.Collections.Generic.IList? characterReferenceImagesMask = default,
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3Transparent.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3Transparent.g.cs
new file mode 100644
index 0000000..11f5757
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostGenerateImageV3Transparent.g.cs
@@ -0,0 +1,84 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public partial interface IGenerateClient
+ {
+ ///
+ /// Generate with Ideogram 3.0 (Transparent Background)
+ /// Generates images with transparent background synchronously based on a given prompt and optional parameters using
+ /// the Ideogram 3.0 model. Images will be generated using maximum supported resolution at the specified aspect ratio
+ /// to allow best results with upscaler. The selected resolution is written to the response, not the upscaled final
+ /// resolution.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostGenerateImageV3TransparentAsync(
+
+ global::Ideogram.GenerateTransparentImageRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Generate with Ideogram 3.0 (Transparent Background)
+ /// Generates images with transparent background synchronously based on a given prompt and optional parameters using
+ /// the Ideogram 3.0 model. Images will be generated using maximum supported resolution at the specified aspect ratio
+ /// to allow best results with upscaler. The selected resolution is written to the response, not the upscaled final
+ /// resolution.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The prompt to use to generate the image.
+ /// Example: A photo of a cat
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// Upscale the initially generated image by the given factor. Upscale factors other than X1 will incur additional cost.
+ /// Default Value: X1
+ /// Example: X2
+ ///
+ ///
+ /// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// Description of what to exclude from an image. Descriptions in the prompt take precedence
+ /// to descriptions in the negative prompt.
+ /// Example: brush strokes, painting
+ ///
+ ///
+ /// Number of images to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// A model must be able to generate transparent background to be used for this endpoint.
+ /// Example: model/my-custom-model/version/1
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostGenerateImageV3TransparentAsync(
+ string prompt,
+ int? seed = default,
+ global::Ideogram.UpscaleFactor? upscaleFactor = default,
+ global::Ideogram.AspectRatioV3? aspectRatio = default,
+ global::Ideogram.RenderingSpeed? renderingSpeed = default,
+ global::Ideogram.MagicPromptOption? magicPrompt = default,
+ string? negativePrompt = default,
+ int? numImages = default,
+ string? customModelUri = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostLayerizeDesignV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostLayerizeDesignV3.g.cs
new file mode 100644
index 0000000..23682c9
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostLayerizeDesignV3.g.cs
@@ -0,0 +1,68 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public partial interface IGenerateClient
+ {
+ ///
+ /// Layerize an existing flat graphic image with text detection and correction
+ /// Processes an existing flat graphic image to detect and correct text layers without generating a new image from scratch.
+ /// The uploaded image is analyzed for text content, which is then removed and returned as structured text layers with font matching, sizing, and color information.
+ /// Supported image formats include JPEG, PNG, and WebP (max size 10MB).
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostLayerizeDesignV3Async(
+
+ global::Ideogram.LayerizeDesignRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Layerize an existing flat graphic image with text detection and correction
+ /// Processes an existing flat graphic image to detect and correct text layers without generating a new image from scratch.
+ /// The uploaded image is analyzed for text content, which is then removed and returned as structured text layers with font matching, sizing, and color information.
+ /// Supported image formats include JPEG, PNG, and WebP (max size 10MB).
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The flat graphic image to process for text detection and correction. The image should be in JPEG, PNG or WebP format (max size 10MB).
+ ///
+ ///
+ /// The flat graphic image to process for text detection and correction. The image should be in JPEG, PNG or WebP format (max size 10MB).
+ ///
+ ///
+ /// An optional prompt to describe the image. If not provided, a prompt will be auto-generated from the image via captioning.
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// A font name from the available font library to use for text rendering. When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with uploaded_font_file.
+ /// Example: Ubuntu-Regular.ttf
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A set of asset images (e.g., logos, icons) to use as references for detection and replacement (maximum 10 images). The images should be in JPEG, PNG or WebP format.
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostLayerizeDesignV3Async(
+ byte[] flatGraphicImage,
+ string flatGraphicImagename,
+ string? prompt = default,
+ int? seed = default,
+ string? requestedFontFile = default,
+ byte[]? uploadedFontFile = default,
+ string? uploadedFontFilename = default,
+ global::System.Collections.Generic.IList? referenceAssetImages = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImage.g.cs
index f3522ee..c622c11 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImage.g.cs
@@ -13,6 +13,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostReframeImageAsync(
+
global::Ideogram.ReframeImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -54,7 +55,7 @@ public partial interface IGenerateClient
byte[] imageFile,
string imageFilename,
global::Ideogram.Resolution resolution,
- global::Ideogram.ModelEnum model,
+ global::Ideogram.ModelEnum model = global::Ideogram.ModelEnum.V2,
int? numImages = default,
int? seed = default,
global::Ideogram.StyleType? styleType = default,
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImageV3.g.cs
index 4709d08..eff1ef1 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReframeImageV3.g.cs
@@ -13,6 +13,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostReframeImageV3Async(
+
global::Ideogram.ReframeImageRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImage.g.cs
index a656d50..de33950 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImage.g.cs
@@ -15,6 +15,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostRemixImageAsync(
+
global::Ideogram.RemixImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -26,7 +27,8 @@ public partial interface IGenerateClient
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
///
///
- /// A request to generate a new image using a provided image and a prompt.
+ /// A request to generate a new image using a provided image and a prompt.
+ /// Example: {"aspect_ratio":"ASPECT_10_16","magic_prompt_option":"ON","model":"V_2","prompt":"A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there is an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.","image_weight":50}
///
///
/// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImageV3.g.cs
index a7a89be..d7f2a13 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostRemixImageV3.g.cs
@@ -15,6 +15,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostRemixImageV3Async(
+
global::Ideogram.RemixImageRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -83,6 +84,11 @@ public partial interface IGenerateClient
/// A predefined style preset that applies a specific artistic style to the generated image.
/// Example: BRIGHT_ART
///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
///
/// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
///
@@ -110,6 +116,7 @@ public partial interface IGenerateClient
global::System.Collections.Generic.IList? styleCodes = default,
global::Ideogram.StyleTypeV3? styleType = default,
global::Ideogram.StylePresetV3? stylePreset = default,
+ string? customModelUri = default,
global::System.Collections.Generic.IList? styleReferenceImages = default,
global::System.Collections.Generic.IList? characterReferenceImages = default,
global::System.Collections.Generic.IList? characterReferenceImagesMask = default,
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReplaceBackgroundV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReplaceBackgroundV3.g.cs
index f210554..aa3a1d3 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReplaceBackgroundV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostReplaceBackgroundV3.g.cs
@@ -15,6 +15,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostReplaceBackgroundV3Async(
+
global::Ideogram.ReplaceBackgroundRequestV3 request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostTryOnV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostTryOnV3.g.cs
new file mode 100644
index 0000000..ca72610
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostTryOnV3.g.cs
@@ -0,0 +1,84 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public partial interface IGenerateClient
+ {
+ ///
+ /// Virtual Try-On with Ideogram 3.0
+ /// Performs virtual clothing try-on by automatically segmenting the clothing in the provided image
+ /// and replacing it based on the prompt. The user provides an image and a prompt describing the
+ /// desired clothing change (e.g., "change his shirt to a pink shirt").
+ /// Supported image formats include JPEG, PNG, and WebP.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostTryOnV3Async(
+
+ global::Ideogram.TryOnRequestV3 request,
+ global::System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Virtual Try-On with Ideogram 3.0
+ /// Performs virtual clothing try-on by automatically segmenting the clothing in the provided image
+ /// and replacing it based on the prompt. The user provides an image and a prompt describing the
+ /// desired clothing change (e.g., "change his shirt to a pink shirt").
+ /// Supported image formats include JPEG, PNG, and WebP.
+ /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
+ ///
+ ///
+ /// The image containing a person wearing clothing to be modified (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The image containing a person wearing clothing to be modified (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
+ ///
+ ///
+ /// The prompt describing the desired clothing change.
+ /// Example: Change his shirt to a pink shirt
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// The number of images to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ ///
+ /// The style type to generate with.
+ /// Default Value: GENERAL
+ /// Example: GENERAL
+ ///
+ ///
+ /// A predefined style preset that applies a specific artistic style to the generated image.
+ /// Example: BRIGHT_ART
+ ///
+ ///
+ /// An image to use as the product reference for the try-on (exactly 1 image required). The image should be in JPEG, PNG or WebP format.
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task PostTryOnV3Async(
+ byte[] image,
+ string imagename,
+ string prompt,
+ global::System.Collections.Generic.IList productReferenceImages,
+ global::Ideogram.MagicPromptOption? magicPrompt = default,
+ int? numImages = default,
+ int? seed = default,
+ global::Ideogram.RenderingSpeed? renderingSpeed = default,
+ global::Ideogram.StyleTypeV3? styleType = default,
+ global::Ideogram.StylePresetV3? stylePreset = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostUpscaleImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostUpscaleImage.g.cs
index 53070f2..55fe847 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostUpscaleImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostUpscaleImage.g.cs
@@ -14,6 +14,7 @@ public partial interface IGenerateClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostUpscaleImageAsync(
+
global::Ideogram.UpscaleImageRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IInternalTestingClient.PostInternalTesting.g.cs b/src/libs/Ideogram/Generated/Ideogram.IInternalTestingClient.PostInternalTesting.g.cs
index 8cb07db..8b9fbc5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IInternalTestingClient.PostInternalTesting.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IInternalTestingClient.PostInternalTesting.g.cs
@@ -14,6 +14,7 @@ public partial interface IInternalTestingClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostInternalTestingAsync(
+
global::Ideogram.InternalTestingRequest request,
string? xTestHeader = default,
string? xTestHeader2 = default,
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.AddOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.AddOrganizationMembers.g.cs
index 0d642bb..0801726 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.AddOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.AddOrganizationMembers.g.cs
@@ -13,6 +13,7 @@ public partial interface IManageClient
///
global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
string organizationId,
+
global::Ideogram.AddOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.GetUsageInfo.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.GetUsageInfo.g.cs
index e91fabd..a5000f6 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.GetUsageInfo.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.GetUsageInfo.g.cs
@@ -17,6 +17,11 @@ public partial interface IManageClient
///
///
///
+ ///
+ ///
+ /// Filter usage by source - API for programmatic API usage, APP for web application usage
+ /// Default Value: API
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task GetUsageInfoAsync(
@@ -27,6 +32,8 @@ public partial interface IManageClient
global::System.Collections.Generic.IList? modelVersions = default,
global::System.Collections.Generic.IList? tools = default,
global::System.Collections.Generic.IList? apiKeyIds = default,
+ global::System.Collections.Generic.IList? userEmails = default,
+ global::Ideogram.UsageSource? source = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostAddCreditsForApi.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostAddCreditsForApi.g.cs
index ce55ecc..09b55b1 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostAddCreditsForApi.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostAddCreditsForApi.g.cs
@@ -11,6 +11,7 @@ public partial interface IManageClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostAddCreditsForApiAsync(
+
global::Ideogram.PostAddCreditsRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -18,7 +19,8 @@ public partial interface IManageClient
/// Add credits to an API user's account.
///
///
- /// Represents a price.
+ /// Represents a price.
+ /// Example: {"amount":1050,"currency_code":"USD"}
///
/// The token to cancel the operation with
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostApiSubscription.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostApiSubscription.g.cs
index 9b94a2b..e9490d4 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostApiSubscription.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostApiSubscription.g.cs
@@ -11,6 +11,7 @@ public partial interface IManageClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostApiSubscriptionAsync(
+
global::Ideogram.PostApiSubscriptionRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -18,7 +19,8 @@ public partial interface IManageClient
/// Update API subscription settings
///
///
- /// The current recharge settings for the API subscription.
+ /// The current recharge settings for the API subscription.
+ /// Example: {"minimum_balance_threshold":{"amount":1050,"currency_code":"USD"},"top_up_balance":{"amount":1050,"currency_code":"USD"}}
///
///
/// Whether to enable or disable auto recharge.
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostApiTerms.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostApiTerms.g.cs
index 089d326..cb90b6a 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostApiTerms.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PostApiTerms.g.cs
@@ -11,6 +11,7 @@ public partial interface IManageClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostApiTermsAsync(
+
global::Ideogram.PostApiTermsRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationMembers.g.cs
index 1de7b7a..0e1da8a 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationMembers.g.cs
@@ -13,6 +13,7 @@ public partial interface IManageClient
///
global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
string organizationId,
+
global::Ideogram.PromoteOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.RemoveOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.RemoveOrganizationMembers.g.cs
index e277f95..28b3241 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.RemoveOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.RemoveOrganizationMembers.g.cs
@@ -13,6 +13,7 @@ public partial interface IManageClient
///
global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
string organizationId,
+
global::Ideogram.RemoveOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IPromptClient.PostMagicPrompt.g.cs b/src/libs/Ideogram/Generated/Ideogram.IPromptClient.PostMagicPrompt.g.cs
index 4268f32..0639d83 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IPromptClient.PostMagicPrompt.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IPromptClient.PostMagicPrompt.g.cs
@@ -12,6 +12,7 @@ public partial interface IPromptClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostMagicPromptAsync(
+
global::Ideogram.MagicPromptRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs b/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs
index b3e5496..bfcdeaa 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs
@@ -13,6 +13,7 @@ public partial interface IVisionClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task PostDescribeAsync(
+
global::Ideogram.DescribeRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs b/src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs
index d2d21c0..11126eb 100644
--- a/src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs
@@ -35,6 +35,7 @@ partial void ProcessPostInternalTestingResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostInternalTestingAsync(
+
global::Ideogram.InternalTestingRequest request,
string? xTestHeader = default,
string? xTestHeader2 = default,
@@ -90,86 +91,109 @@ partial void ProcessPostInternalTestingResponseContent(
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
if (xTestHeader != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{xTestHeader}"),
- name: "X-Test-Header");
+ name: "\"X-Test-Header\"");
}
if (xTestHeader2 != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{xTestHeader2}"),
- name: "X-Test-Header-2");
+ name: "\"X-Test-Header-2\"");
}
if (request.XPosition != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.XPosition}"),
- name: "x_position");
+ name: "\"x_position\"");
}
if (request.ImageFile != default)
{
+
+ var __contentImageFile = new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()),
- name: "image_file",
- fileName: request.ImageFilename ?? string.Empty);
+ content: __contentImageFile,
+ name: "\"image_file\"",
+ fileName: request.ImageFilename != null ? $"\"{request.ImageFilename}\"" : string.Empty);
+ if (__contentImageFile.Headers.ContentDisposition != null)
+ {
+ __contentImageFile.Headers.ContentDisposition.FileNameStar = null;
+ }
}
if (request.AnotherImageFile != default)
{
+
+ var __contentAnotherImageFile = new global::System.Net.Http.ByteArrayContent(request.AnotherImageFile ?? global::System.Array.Empty());
__httpRequestContent.Add(
- content: new global::System.Net.Http.ByteArrayContent(request.AnotherImageFile ?? global::System.Array.Empty()),
- name: "another_image_file",
- fileName: request.AnotherImageFilename ?? string.Empty);
+ content: __contentAnotherImageFile,
+ name: "\"another_image_file\"",
+ fileName: request.AnotherImageFilename != null ? $"\"{request.AnotherImageFilename}\"" : string.Empty);
+ if (__contentAnotherImageFile.Headers.ContentDisposition != null)
+ {
+ __contentAnotherImageFile.Headers.ContentDisposition.FileNameStar = null;
+ }
}
if (request.SomeText != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.SomeText}"),
- name: "some_text");
+ name: "\"some_text\"");
}
if (request.NestedObject != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NestedObject}"),
- name: "nested_object");
+ name: "\"nested_object\"");
}
if (request.NestedObjectRequiredFields != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.NestedObjectRequiredFields}"),
- name: "nested_object_required_fields");
+ name: "\"nested_object_required_fields\"");
}
if (request.DateTypeField != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.DateTypeField}"),
- name: "date_type_field");
- }
+ name: "\"date_type_field\"");
+ }
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.RequiredDateTypeField}"),
- name: "required_date_type_field");
+ name: "\"required_date_type_field\"");
if (request.DateTimeTypeField != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.DateTimeTypeField}"),
- name: "date_time_type_field");
+ name: "\"date_time_type_field\"");
}
if (request.RepeatedPrimitiveField != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.RepeatedPrimitiveField, x => x))}]"),
- name: "repeated_primitive_field");
+ name: "\"repeated_primitive_field\"");
}
if (request.RepeatedComplexField != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.RepeatedComplexField, x => x))}]"),
- name: "repeated_complex_field");
+ name: "\"repeated_complex_field\"");
}
if (request.EnumTypeField != default)
{
+
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.EnumTypeField?.ToValueString()}"),
- name: "enum_type_field");
+ name: "\"enum_type_field\"");
}
__httpRequest.Content = __httpRequestContent;
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.ColorPaletteWithPresetNameOrMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.ColorPaletteWithPresetNameOrMembers.g.cs
index 74467e1..7e10a53 100644
--- a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.ColorPaletteWithPresetNameOrMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.ColorPaletteWithPresetNameOrMembers.g.cs
@@ -17,41 +17,41 @@ public class ColorPaletteWithPresetNameOrMembersJsonConverter : global::System.T
var
readerCopy = reader;
- global::Ideogram.ColorPaletteWithPresetName? value1 = default;
+ global::Ideogram.ColorPaletteWithPresetName? colorPaletteWithPresetName = default;
try
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Ideogram.ColorPaletteWithPresetName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Ideogram.ColorPaletteWithPresetName).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
+ colorPaletteWithPresetName = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
}
readerCopy = reader;
- global::Ideogram.ColorPaletteWithMembers? value2 = default;
+ global::Ideogram.ColorPaletteWithMembers? colorPaletteWithMembers = default;
try
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Ideogram.ColorPaletteWithMembers), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Ideogram.ColorPaletteWithMembers).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
+ colorPaletteWithMembers = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
}
var result = new global::Ideogram.ColorPaletteWithPresetNameOrMembers(
- value1,
- value2
+ colorPaletteWithPresetName,
+ colorPaletteWithMembers
);
- if (value1 != null)
+ if (colorPaletteWithPresetName != null)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Ideogram.ColorPaletteWithPresetName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Ideogram.ColorPaletteWithPresetName).Name}");
_ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
}
- else if (value2 != null)
+ else if (colorPaletteWithMembers != null)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Ideogram.ColorPaletteWithMembers), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Ideogram.ColorPaletteWithMembers).Name}");
@@ -70,17 +70,17 @@ public override void Write(
options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
- if (value.IsValue1)
+ if (value.IsColorPaletteWithPresetName)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Ideogram.ColorPaletteWithPresetName), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Ideogram.ColorPaletteWithPresetName).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ColorPaletteWithPresetName, typeInfo);
}
- else if (value.IsValue2)
+ else if (value.IsColorPaletteWithMembers)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Ideogram.ColorPaletteWithMembers), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Ideogram.ColorPaletteWithMembers).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ColorPaletteWithMembers, typeInfo);
}
}
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.TextLayerV3Alignment.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.TextLayerV3Alignment.g.cs
new file mode 100644
index 0000000..6bc3940
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.TextLayerV3Alignment.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Ideogram.JsonConverters
+{
+ ///
+ public sealed class TextLayerV3AlignmentJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ideogram.TextLayerV3Alignment Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ideogram.TextLayerV3AlignmentExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ideogram.TextLayerV3Alignment)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Ideogram.TextLayerV3Alignment);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ideogram.TextLayerV3Alignment value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ideogram.TextLayerV3AlignmentExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.TextLayerV3AlignmentNullable.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.TextLayerV3AlignmentNullable.g.cs
new file mode 100644
index 0000000..5afc798
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.TextLayerV3AlignmentNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Ideogram.JsonConverters
+{
+ ///
+ public sealed class TextLayerV3AlignmentNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ideogram.TextLayerV3Alignment? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ideogram.TextLayerV3AlignmentExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ideogram.TextLayerV3Alignment)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Ideogram.TextLayerV3Alignment?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ideogram.TextLayerV3Alignment? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ideogram.TextLayerV3AlignmentExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UpscaleFactor.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UpscaleFactor.g.cs
new file mode 100644
index 0000000..137e5bb
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UpscaleFactor.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Ideogram.JsonConverters
+{
+ ///
+ public sealed class UpscaleFactorJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ideogram.UpscaleFactor Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ideogram.UpscaleFactorExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ideogram.UpscaleFactor)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Ideogram.UpscaleFactor);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ideogram.UpscaleFactor value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ideogram.UpscaleFactorExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UpscaleFactorNullable.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UpscaleFactorNullable.g.cs
new file mode 100644
index 0000000..b3374bd
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UpscaleFactorNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Ideogram.JsonConverters
+{
+ ///
+ public sealed class UpscaleFactorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ideogram.UpscaleFactor? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ideogram.UpscaleFactorExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ideogram.UpscaleFactor)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Ideogram.UpscaleFactor?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ideogram.UpscaleFactor? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ideogram.UpscaleFactorExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UsageSource.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UsageSource.g.cs
new file mode 100644
index 0000000..2deaa05
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UsageSource.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Ideogram.JsonConverters
+{
+ ///
+ public sealed class UsageSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ideogram.UsageSource Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ideogram.UsageSourceExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ideogram.UsageSource)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Ideogram.UsageSource);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ideogram.UsageSource value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ideogram.UsageSourceExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UsageSourceNullable.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UsageSourceNullable.g.cs
new file mode 100644
index 0000000..8387f76
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.UsageSourceNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Ideogram.JsonConverters
+{
+ ///
+ public sealed class UsageSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ideogram.UsageSource? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ideogram.UsageSourceExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ideogram.UsageSource)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Ideogram.UsageSource?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ideogram.UsageSource? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ideogram.UsageSourceExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
index 4868e93..942a6b0 100644
--- a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
@@ -14,10 +14,12 @@ public sealed partial class JsonSerializerContextTypes
///
///
public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; }
+
///
///
///
public global::System.Collections.Generic.Dictionary? StringObjectDictionary { get; set; }
+
///
///
///
@@ -154,390 +156,555 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Ideogram.RemixImageRequestV3? Type32 { get; set; }
+ public global::Ideogram.GenerateGraphicRequestV3? Type32 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.GenerateDesignRequestV3? Type33 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.LayerizeDesignRequestV3? Type34 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.GenerateTransparentImageRequestV3? Type35 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.UpscaleFactor? Type36 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.RemixImageRequestV3? Type37 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.EditImageRequestV3? Type38 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.TryOnRequestV3? Type39 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.ReframeImageRequestV3? Type40 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.ReplaceBackgroundRequestV3? Type41 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.InternalTestingRequest? Type42 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.InternalTestingNestedObject? Type43 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.InternalTestingNestedObjectRequiredFields? Type44 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.DateTime? Type45 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type46 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.InternalTestingEnumField? Type47 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.RemixImageRequest? Type48 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.InitialImageRequest? Type49 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.ReframeImageRequest? Type50 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.UpscaleImageRequest? Type51 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.UpscaleInitialImageRequest? Type52 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.GenerateImageResponse? Type53 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type54 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.ImageObject? Type55 { get; set; }
+ ///
+ ///
+ ///
+ public bool? Type56 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.ImageGenerationResponseV3? Type57 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type58 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.ImageGenerationObjectV3? Type59 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.LayeredImageGenerationObjectV3? Type60 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type61 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.TextLayerV3? Type62 { get; set; }
+ ///
+ ///
+ ///
+ public float? Type63 { get; set; }
///
///
///
- public global::Ideogram.EditImageRequestV3? Type33 { get; set; }
+ public global::Ideogram.TextLayerV3Alignment? Type64 { get; set; }
///
///
///
- public global::Ideogram.ReframeImageRequestV3? Type34 { get; set; }
+ public global::System.Collections.Generic.IList? Type65 { get; set; }
///
///
///
- public global::Ideogram.ReplaceBackgroundRequestV3? Type35 { get; set; }
+ public global::Ideogram.ImageLayerV3? Type66 { get; set; }
///
///
///
- public global::Ideogram.InternalTestingRequest? Type36 { get; set; }
+ public global::Ideogram.LayeredImageGenerationResponseV3? Type67 { get; set; }
///
///
///
- public global::Ideogram.InternalTestingNestedObject? Type37 { get; set; }
+ public global::System.Collections.Generic.IList? Type68 { get; set; }
///
///
///
- public global::Ideogram.InternalTestingNestedObjectRequiredFields? Type38 { get; set; }
+ public global::Ideogram.GenerateImageSafetyError? Type69 { get; set; }
///
///
///
- public global::System.DateTime? Type39 { get; set; }
+ public global::Ideogram.MagicPromptRequest? Type70 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type40 { get; set; }
+ public global::Ideogram.MagicPromptResponse? Type71 { get; set; }
///
///
///
- public global::Ideogram.InternalTestingEnumField? Type41 { get; set; }
+ public global::Ideogram.InternalBatchRequest? Type72 { get; set; }
///
///
///
- public global::Ideogram.RemixImageRequest? Type42 { get; set; }
+ public global::Ideogram.SamplingRequestParams? Type73 { get; set; }
///
///
///
- public global::Ideogram.InitialImageRequest? Type43 { get; set; }
+ public global::Ideogram.InternalBatchResponse? Type74 { get; set; }
///
///
///
- public global::Ideogram.ReframeImageRequest? Type44 { get; set; }
+ public global::Ideogram.InternalBatchResultsResponse? Type75 { get; set; }
///
///
///
- public global::Ideogram.UpscaleImageRequest? Type45 { get; set; }
+ public global::System.Collections.Generic.IList? Type76 { get; set; }
///
///
///
- public global::Ideogram.UpscaleInitialImageRequest? Type46 { get; set; }
+ public global::Ideogram.InternalBatchResultsResponseResultsInner? Type77 { get; set; }
///
///
///
- public global::Ideogram.GenerateImageResponse? Type47 { get; set; }
+ public global::Ideogram.ImageSafetyError? Type78 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type48 { get; set; }
+ public global::Ideogram.ManageApiSubscriptionResponse? Type79 { get; set; }
///
///
///
- public global::Ideogram.ImageObject? Type49 { get; set; }
+ public global::Ideogram.MetronomeLinks? Type80 { get; set; }
///
///
///
- public bool? Type50 { get; set; }
+ public global::Ideogram.RechargeSettingsResponse? Type81 { get; set; }
///
///
///
- public global::Ideogram.ImageGenerationResponseV3? Type51 { get; set; }
+ public global::Ideogram.RechargeSettings? Type82 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type52 { get; set; }
+ public global::Ideogram.Price? Type83 { get; set; }
///
///
///
- public global::Ideogram.ImageGenerationObjectV3? Type53 { get; set; }
+ public global::Ideogram.PostApiSubscriptionResponse? Type84 { get; set; }
///
///
///
- public global::Ideogram.GenerateImageSafetyError? Type54 { get; set; }
+ public global::Ideogram.PostApiSubscriptionError? Type85 { get; set; }
///
///
///
- public global::Ideogram.MagicPromptRequest? Type55 { get; set; }
+ public global::Ideogram.PostApiSubscriptionRequest? Type86 { get; set; }
///
///
///
- public global::Ideogram.MagicPromptResponse? Type56 { get; set; }
+ public global::Ideogram.PostApiReactivateResponse? Type87 { get; set; }
///
///
///
- public global::Ideogram.InternalBatchRequest? Type57 { get; set; }
+ public global::Ideogram.GetApiKeysResponse? Type88 { get; set; }
///
///
///
- public global::Ideogram.SamplingRequestParams? Type58 { get; set; }
+ public global::System.Collections.Generic.IList? Type89 { get; set; }
///
///
///
- public global::Ideogram.InternalBatchResponse? Type59 { get; set; }
+ public global::Ideogram.RedactedApiKey? Type90 { get; set; }
///
///
///
- public global::Ideogram.InternalBatchResultsResponse? Type60 { get; set; }
+ public global::Ideogram.PostApiKeyResponse? Type91 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type61 { get; set; }
+ public global::Ideogram.ManageApiStripeSubscriptionResponse? Type92 { get; set; }
///
///
///
- public global::Ideogram.InternalBatchResultsResponseResultsInner? Type62 { get; set; }
+ public global::Ideogram.GetApiTermsResponse? Type93 { get; set; }
///
///
///
- public global::Ideogram.ImageSafetyError? Type63 { get; set; }
+ public global::Ideogram.ApiTerms? Type94 { get; set; }
///
///
///
- public global::Ideogram.ManageApiSubscriptionResponse? Type64 { get; set; }
+ public global::Ideogram.PostApiTermsRequest? Type95 { get; set; }
///
///
///
- public global::Ideogram.MetronomeLinks? Type65 { get; set; }
+ public global::Ideogram.PostAddCreditsResponse? Type96 { get; set; }
///
///
///
- public global::Ideogram.RechargeSettingsResponse? Type66 { get; set; }
+ public global::Ideogram.PostAddCreditsError? Type97 { get; set; }
///
///
///
- public global::Ideogram.RechargeSettings? Type67 { get; set; }
+ public global::Ideogram.PostAddCreditsRequest? Type98 { get; set; }
///
///
///
- public global::Ideogram.Price? Type68 { get; set; }
+ public global::Ideogram.GetUserCreditsResponse? Type99 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionResponse? Type69 { get; set; }
+ public global::Ideogram.SpendCommitInfoResponse? Type100 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionError? Type70 { get; set; }
+ public global::System.Collections.Generic.IList? Type101 { get; set; }
///
///
///
- public global::Ideogram.PostApiSubscriptionRequest? Type71 { get; set; }
+ public global::Ideogram.SpendCommitInfo? Type102 { get; set; }
///
///
///
- public global::Ideogram.PostApiReactivateResponse? Type72 { get; set; }
+ public global::Ideogram.GetUsageInfoResponse? Type103 { get; set; }
///
///
///
- public global::Ideogram.GetApiKeysResponse? Type73 { get; set; }
+ public global::System.Collections.Generic.IList? Type104 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type74 { get; set; }
+ public global::Ideogram.UsageSegment? Type105 { get; set; }
///
///
///
- public global::Ideogram.RedactedApiKey? Type75 { get; set; }
+ public global::System.Collections.Generic.IList? Type106 { get; set; }
///
///
///
- public global::Ideogram.PostApiKeyResponse? Type76 { get; set; }
+ public global::Ideogram.ToolUsage? Type107 { get; set; }
///
///
///
- public global::Ideogram.ManageApiStripeSubscriptionResponse? Type77 { get; set; }
+ public global::Ideogram.ToolType? Type108 { get; set; }
///
///
///
- public global::Ideogram.GetApiTermsResponse? Type78 { get; set; }
+ public global::Ideogram.ModelVersion? Type109 { get; set; }
///
///
///
- public global::Ideogram.ApiTerms? Type79 { get; set; }
+ public global::Ideogram.SegmentBy? Type110 { get; set; }
///
///
///
- public global::Ideogram.PostApiTermsRequest? Type80 { get; set; }
+ public global::Ideogram.UsageSource? Type111 { get; set; }
///
///
///
- public global::Ideogram.PostAddCreditsResponse? Type81 { get; set; }
+ public global::Ideogram.GetApiProfilesResponse? Type112 { get; set; }
///
///
///
- public global::Ideogram.PostAddCreditsError? Type82 { get; set; }
+ public global::System.Collections.Generic.IList? Type113 { get; set; }
///
///
///
- public global::Ideogram.PostAddCreditsRequest? Type83 { get; set; }
+ public global::Ideogram.ApiProfile? Type114 { get; set; }
///
///
///
- public global::Ideogram.GetUserCreditsResponse? Type84 { get; set; }
+ public global::Ideogram.ApiProfileType? Type115 { get; set; }
///
///
///
- public global::Ideogram.SpendCommitInfoResponse? Type85 { get; set; }
+ public global::Ideogram.ApiProfileRole? Type116 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type86 { get; set; }
+ public global::System.Collections.Generic.IList? Type117 { get; set; }
///
///
///
- public global::Ideogram.SpendCommitInfo? Type87 { get; set; }
+ public global::Ideogram.ApiProfileApiKey? Type118 { get; set; }
///
///
///
- public global::Ideogram.GetUsageInfoResponse? Type88 { get; set; }
+ public global::Ideogram.ApiKeyStatus? Type119 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type89 { get; set; }
+ public global::Ideogram.GetApiOrganizationUserSuggestionsResponse? Type120 { get; set; }
///
///
///
- public global::Ideogram.UsageSegment? Type90 { get; set; }
+ public global::System.Collections.Generic.IList? Type121 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type91 { get; set; }
+ public global::Ideogram.ApiOrganizationUserSuggestion? Type122 { get; set; }
///
///
///
- public global::Ideogram.ToolUsage? Type92 { get; set; }
+ public global::Ideogram.GetOrganizationMembersResponse? Type123 { get; set; }
///
///
///
- public global::Ideogram.ToolType? Type93 { get; set; }
+ public global::System.Collections.Generic.IList? Type124 { get; set; }
///
///
///
- public global::Ideogram.ModelVersion? Type94 { get; set; }
+ public global::Ideogram.OrganizationMember? Type125 { get; set; }
///
///
///
- public global::Ideogram.SegmentBy? Type95 { get; set; }
+ public global::Ideogram.CreateApiKeyResponse? Type126 { get; set; }
///
///
///
- public global::Ideogram.GetApiProfilesResponse? Type96 { get; set; }
+ public global::Ideogram.GetApiKeysV2Response? Type127 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type97 { get; set; }
+ public global::Ideogram.OrganizationMemberOperationResponse? Type128 { get; set; }
///
///
///
- public global::Ideogram.ApiProfile? Type98 { get; set; }
+ public global::System.Collections.Generic.IList? Type129 { get; set; }
///
///
///
- public global::Ideogram.ApiProfileType? Type99 { get; set; }
+ public global::Ideogram.OrganizationMemberOperationResult? Type130 { get; set; }
///
///
///
- public global::Ideogram.ApiProfileRole? Type100 { get; set; }
+ public global::Ideogram.AddOrganizationMembersRequest? Type131 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type101 { get; set; }
+ public global::System.Collections.Generic.IList? Type132 { get; set; }
///
///
///
- public global::Ideogram.ApiProfileApiKey? Type102 { get; set; }
+ public global::Ideogram.LiteOrganizationMember? Type133 { get; set; }
///
///
///
- public global::Ideogram.ApiKeyStatus? Type103 { get; set; }
+ public global::Ideogram.RemoveOrganizationMembersRequest? Type134 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.PromoteOrganizationMembersRequest? Type135 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.ListOrganizationInvoicesResponse? Type136 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type137 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.Invoice? Type138 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.InvoiceStatus? Type139 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type140 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.InvoiceLineItem? Type141 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.PostInternalTesting200Response? Type142 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type143 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type144 { get; set; }
+
///
///
///
- public global::Ideogram.GetApiOrganizationUserSuggestionsResponse? Type104 { get; set; }
+ public global::System.Collections.Generic.List? ListType0 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type105 { get; set; }
+ public global::System.Collections.Generic.List? ListType1 { get; set; }
///
///
///
- public global::Ideogram.ApiOrganizationUserSuggestion? Type106 { get; set; }
+ public global::System.Collections.Generic.List? ListType2 { get; set; }
///
///
///
- public global::Ideogram.GetOrganizationMembersResponse? Type107 { get; set; }
+ public global::System.Collections.Generic.List? ListType3 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type108 { get; set; }
+ public global::System.Collections.Generic.List? ListType4 { get; set; }
///
///
///
- public global::Ideogram.OrganizationMember? Type109 { get; set; }
+ public global::System.Collections.Generic.List? ListType5 { get; set; }
///
///
///
- public global::Ideogram.CreateApiKeyResponse? Type110 { get; set; }
+ public global::System.Collections.Generic.List? ListType6 { get; set; }
///
///
///
- public global::Ideogram.GetApiKeysV2Response? Type111 { get; set; }
+ public global::System.Collections.Generic.List? ListType7 { get; set; }
///
///
///
- public global::Ideogram.OrganizationMemberOperationResponse? Type112 { get; set; }
+ public global::System.Collections.Generic.List? ListType8 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type113 { get; set; }
+ public global::System.Collections.Generic.List? ListType9 { get; set; }
///
///
///
- public global::Ideogram.OrganizationMemberOperationResult? Type114 { get; set; }
+ public global::System.Collections.Generic.List? ListType10 { get; set; }
///
///
///
- public global::Ideogram.AddOrganizationMembersRequest? Type115 { get; set; }
+ public global::System.Collections.Generic.List? ListType11 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type116 { get; set; }
+ public global::System.Collections.Generic.List? ListType12 { get; set; }
///
///
///
- public global::Ideogram.LiteOrganizationMember? Type117 { get; set; }
+ public global::System.Collections.Generic.List? ListType13 { get; set; }
///
///
///
- public global::Ideogram.RemoveOrganizationMembersRequest? Type118 { get; set; }
+ public global::System.Collections.Generic.List? ListType14 { get; set; }
///
///
///
- public global::Ideogram.PromoteOrganizationMembersRequest? Type119 { get; set; }
+ public global::System.Collections.Generic.List? ListType15 { get; set; }
///
///
///
- public global::Ideogram.ListOrganizationInvoicesResponse? Type120 { get; set; }
+ public global::System.Collections.Generic.List? ListType16 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type121 { get; set; }
+ public global::System.Collections.Generic.List? ListType17 { get; set; }
///
///
///
- public global::Ideogram.Invoice? Type122 { get; set; }
+ public global::System.Collections.Generic.List? ListType18 { get; set; }
///
///
///
- public global::Ideogram.InvoiceStatus? Type123 { get; set; }
+ public global::System.Collections.Generic.List? ListType19 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type124 { get; set; }
+ public global::System.Collections.Generic.List? ListType20 { get; set; }
///
///
///
- public global::Ideogram.InvoiceLineItem? Type125 { get; set; }
+ public global::System.Collections.Generic.List? ListType21 { get; set; }
///
///
///
- public global::Ideogram.PostInternalTesting200Response? Type126 { get; set; }
+ public global::System.Collections.Generic.List? ListType22 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type127 { get; set; }
+ public global::System.Collections.Generic.List? ListType23 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type128 { get; set; }
+ public global::System.Collections.Generic.List? ListType24 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
index 82d71e8..cfe7119 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
@@ -32,6 +32,7 @@ partial void ProcessAddOrganizationMembersResponseContent(
///
public async global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
string organizationId,
+
global::Ideogram.AddOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -47,7 +48,7 @@ partial void ProcessAddOrganizationMembersResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/organization/add_members",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddRequiredParameter("organization_id", organizationId)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKeyV2.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKeyV2.g.cs
index 1982542..aecb384 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKeyV2.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKeyV2.g.cs
@@ -40,7 +40,7 @@ partial void ProcessCreateApiKeyV2ResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/api_keys_v2",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddRequiredParameter("organization_id", organizationId)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeactivateOrganizationApiKey.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeactivateOrganizationApiKey.g.cs
index cf4f4cc..17ad8a2 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeactivateOrganizationApiKey.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeactivateOrganizationApiKey.g.cs
@@ -35,7 +35,7 @@ partial void ProcessDeactivateOrganizationApiKeyResponse(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/organization/deactivate_api_key",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddRequiredParameter("api_key_id", apiKeyId)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs
index 0689b77..e46591a 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs
@@ -40,7 +40,7 @@ partial void ProcessGetApiKeysV2ResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/organization/api_keys",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddRequiredParameter("organization_id", organizationId)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiOrganizationUserSuggestions.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiOrganizationUserSuggestions.g.cs
index 73e6b87..1f5248d 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiOrganizationUserSuggestions.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiOrganizationUserSuggestions.g.cs
@@ -52,9 +52,9 @@ partial void ProcessGetApiOrganizationUserSuggestionsResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/organization/user_suggestions",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
- .AddRequiredParameter("organization_id", organizationId)
- .AddOptionalParameter("user_handle_prefix", userHandlePrefix)
+ __pathBuilder
+ .AddRequiredParameter("organization_id", organizationId)
+ .AddOptionalParameter("user_handle_prefix", userHandlePrefix)
.AddOptionalParameter("maxItems", maxItems?.ToString())
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiStripeSubscription.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiStripeSubscription.g.cs
index c1f485c..4d49516 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiStripeSubscription.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiStripeSubscription.g.cs
@@ -40,7 +40,7 @@ partial void ProcessGetApiStripeSubscriptionResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/stripe_subscription",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddOptionalParameter("isBusiness", isBusiness?.ToString())
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetOrganizationMembers.g.cs
index 7b54fae..888d519 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetOrganizationMembers.g.cs
@@ -40,7 +40,7 @@ partial void ProcessGetOrganizationMembersResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/organization/members",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddRequiredParameter("organization_id", organizationId)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUsageInfo.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUsageInfo.g.cs
index 42ef253..a7e7310 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUsageInfo.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUsageInfo.g.cs
@@ -13,7 +13,9 @@ partial void PrepareGetUsageInfoArguments(
ref global::System.DateTime? endTime,
global::System.Collections.Generic.IList? modelVersions,
global::System.Collections.Generic.IList? tools,
- global::System.Collections.Generic.IList? apiKeyIds);
+ global::System.Collections.Generic.IList? apiKeyIds,
+ global::System.Collections.Generic.IList? userEmails,
+ ref global::Ideogram.UsageSource? source);
partial void PrepareGetUsageInfoRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
@@ -23,7 +25,9 @@ partial void PrepareGetUsageInfoRequest(
global::System.DateTime? endTime,
global::System.Collections.Generic.IList? modelVersions,
global::System.Collections.Generic.IList? tools,
- global::System.Collections.Generic.IList? apiKeyIds);
+ global::System.Collections.Generic.IList? apiKeyIds,
+ global::System.Collections.Generic.IList? userEmails,
+ global::Ideogram.UsageSource? source);
partial void ProcessGetUsageInfoResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -46,6 +50,11 @@ partial void ProcessGetUsageInfoResponseContent(
///
///
///
+ ///
+ ///
+ /// Filter usage by source - API for programmatic API usage, APP for web application usage
+ /// Default Value: API
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task GetUsageInfoAsync(
@@ -56,6 +65,8 @@ partial void ProcessGetUsageInfoResponseContent(
global::System.Collections.Generic.IList? modelVersions = default,
global::System.Collections.Generic.IList? tools = default,
global::System.Collections.Generic.IList? apiKeyIds = default,
+ global::System.Collections.Generic.IList? userEmails = default,
+ global::Ideogram.UsageSource? source = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
@@ -68,19 +79,23 @@ partial void ProcessGetUsageInfoResponseContent(
endTime: ref endTime,
modelVersions: modelVersions,
tools: tools,
- apiKeyIds: apiKeyIds);
+ apiKeyIds: apiKeyIds,
+ userEmails: userEmails,
+ source: ref source);
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/usage",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
- .AddRequiredParameter("organization_id", organizationId)
- .AddRequiredParameter("segment_by", segmentBy.ToValueString())
- .AddRequiredParameter("start_time", startTime.ToString("yyyy-MM-ddTHH:mm:ssZ"))
- .AddOptionalParameter("end_time", endTime?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
- .AddOptionalParameter("model_versions", modelVersions, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- .AddOptionalParameter("tools", tools, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- .AddOptionalParameter("api_key_ids", apiKeyIds, delimiter: ",", explode: true)
+ __pathBuilder
+ .AddRequiredParameter("organization_id", organizationId)
+ .AddRequiredParameter("segment_by", segmentBy.ToValueString())
+ .AddRequiredParameter("start_time", startTime.ToString("yyyy-MM-ddTHH:mm:ssZ"))
+ .AddOptionalParameter("end_time", endTime?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
+ .AddOptionalParameter("model_versions", modelVersions, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
+ .AddOptionalParameter("tools", tools, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
+ .AddOptionalParameter("api_key_ids", apiKeyIds, delimiter: ",", explode: true)
+ .AddOptionalParameter("user_emails", userEmails, delimiter: ",", explode: true)
+ .AddOptionalParameter("source", source?.ToValueString())
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
@@ -119,7 +134,9 @@ partial void ProcessGetUsageInfoResponseContent(
endTime: endTime,
modelVersions: modelVersions,
tools: tools,
- apiKeyIds: apiKeyIds);
+ apiKeyIds: apiKeyIds,
+ userEmails: userEmails,
+ source: source);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserCredits.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserCredits.g.cs
index d46c4b3..7cc8ab7 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserCredits.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserCredits.g.cs
@@ -50,9 +50,9 @@ partial void ProcessGetUserCreditsResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/credits",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
- .AddRequiredParameter("organization_id", organizationId)
- .AddRequiredParameter("start_time", startTime.ToString("yyyy-MM-ddTHH:mm:ssZ"))
+ __pathBuilder
+ .AddRequiredParameter("organization_id", organizationId)
+ .AddRequiredParameter("start_time", startTime.ToString("yyyy-MM-ddTHH:mm:ssZ"))
.AddOptionalParameter("end_time", endTime?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserSpendCommitInfo.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserSpendCommitInfo.g.cs
index 9485bea..7f462ae 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserSpendCommitInfo.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserSpendCommitInfo.g.cs
@@ -45,8 +45,8 @@ partial void ProcessGetUserSpendCommitInfoResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/spend_commit",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
- .AddRequiredParameter("organization_id", organizationId)
+ __pathBuilder
+ .AddRequiredParameter("organization_id", organizationId)
.AddOptionalParameter("postpaid_only", postpaidOnly?.ToString())
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs
index e53c909..70a1617 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs
@@ -40,7 +40,7 @@ partial void ProcessListOrganizationInvoicesResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/organization/list_invoices",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddRequiredParameter("organization_id", organizationId)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostAddCreditsForApi.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostAddCreditsForApi.g.cs
index f81b462..f5f6cf0 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostAddCreditsForApi.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostAddCreditsForApi.g.cs
@@ -28,6 +28,7 @@ partial void ProcessPostAddCreditsForApiResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostAddCreditsForApiAsync(
+
global::Ideogram.PostAddCreditsRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -272,7 +273,8 @@ partial void ProcessPostAddCreditsForApiResponseContent(
/// Add credits to an API user's account.
///
///
- /// Represents a price.
+ /// Represents a price.
+ /// Example: {"amount":1050,"currency_code":"USD"}
///
/// The token to cancel the operation with
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiSubscription.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiSubscription.g.cs
index 4dfce05..6d5df2b 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiSubscription.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiSubscription.g.cs
@@ -28,6 +28,7 @@ partial void ProcessPostApiSubscriptionResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostApiSubscriptionAsync(
+
global::Ideogram.PostApiSubscriptionRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -272,7 +273,8 @@ partial void ProcessPostApiSubscriptionResponseContent(
/// Update API subscription settings
///
///
- /// The current recharge settings for the API subscription.
+ /// The current recharge settings for the API subscription.
+ /// Example: {"minimum_balance_threshold":{"amount":1050,"currency_code":"USD"},"top_up_balance":{"amount":1050,"currency_code":"USD"}}
///
///
/// Whether to enable or disable auto recharge.
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiTerms.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiTerms.g.cs
index 4f00daa..050bbd4 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiTerms.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiTerms.g.cs
@@ -23,6 +23,7 @@ partial void ProcessPostApiTermsResponse(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task PostApiTermsAsync(
+
global::Ideogram.PostApiTermsRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
index 4c1c220..5d0d7dd 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
@@ -32,6 +32,7 @@ partial void ProcessPromoteOrganizationMembersResponseContent(
///
public async global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
string organizationId,
+
global::Ideogram.PromoteOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -47,7 +48,7 @@ partial void ProcessPromoteOrganizationMembersResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/organization/promote_members",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddRequiredParameter("organization_id", organizationId)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
index 67afc9d..d342410 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
@@ -32,6 +32,7 @@ partial void ProcessRemoveOrganizationMembersResponseContent(
///
public async global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
string organizationId,
+
global::Ideogram.RemoveOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -47,7 +48,7 @@ partial void ProcessRemoveOrganizationMembersResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/manage/api/organization/remove_members",
baseUri: HttpClient.BaseAddress);
- __pathBuilder
+ __pathBuilder
.AddRequiredParameter("organization_id", organizationId)
;
var __path = __pathBuilder.ToString();
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.AddOrganizationMembersRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.AddOrganizationMembersRequest.g.cs
index 1df41ea..5841a9c 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.AddOrganizationMembersRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.AddOrganizationMembersRequest.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- ///
+ /// Example: {"members":[{"display_handle":"john_doe","email_address":"john.doe@example.com","user_id":"dXNlcl8xMjM"},{"display_handle":"john_doe","email_address":"john.doe@example.com","user_id":"dXNlcl8xMjM"}]}
///
public sealed partial class AddOrganizationMembersRequest
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiKeyStatus.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiKeyStatus.g.cs
index 9ea916a..e49588b 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiKeyStatus.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiKeyStatus.g.cs
@@ -11,11 +11,11 @@ public enum ApiKeyStatus
///
///
///
- ACTIVE,
+ Active,
///
///
///
- DISABLED,
+ Disabled,
}
///
@@ -30,8 +30,8 @@ public static string ToValueString(this ApiKeyStatus value)
{
return value switch
{
- ApiKeyStatus.ACTIVE => "ACTIVE",
- ApiKeyStatus.DISABLED => "DISABLED",
+ ApiKeyStatus.Active => "ACTIVE",
+ ApiKeyStatus.Disabled => "DISABLED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -42,8 +42,8 @@ public static string ToValueString(this ApiKeyStatus value)
{
return value switch
{
- "ACTIVE" => ApiKeyStatus.ACTIVE,
- "DISABLED" => ApiKeyStatus.DISABLED,
+ "ACTIVE" => ApiKeyStatus.Active,
+ "DISABLED" => ApiKeyStatus.Disabled,
_ => null,
};
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiOrganizationUserSuggestion.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiOrganizationUserSuggestion.g.cs
index 965b92c..228782e 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiOrganizationUserSuggestion.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiOrganizationUserSuggestion.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- ///
+ /// Example: {"display_handle":"john_doe","joined":false,"profile_pic":"https://example.com/avatars/user123.jpg","name":"John Doe"}
///
public sealed partial class ApiOrganizationUserSuggestion
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs
index 38c8efd..52db050 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- ///
+ /// Example: {"is_metronome_2_user":true,"role":"OWNER","avatar_url":"https://example.com/avatar.jpg","organization_id":"b3JnYW5pemF0aW9uXzEyMw","name":"Gamma","type":"INDIVIDUAL","api_keys":[{"creation_time":"2000-01-23T04:56:07.0000000\u002B00:00","redacted_api_key":"ATG56\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022","api_key_id":"JRPVD7jWR1aTBYiJ0UFVOg","status":""},{"creation_time":"2000-01-23T04:56:07.0000000\u002B00:00","redacted_api_key":"ATG56\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022","api_key_id":"JRPVD7jWR1aTBYiJ0UFVOg","status":""}],"max_num_inflight_requests_permitted":10}
///
public sealed partial class ApiProfile
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileApiKey.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileApiKey.g.cs
index 401cb69..07a042d 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileApiKey.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileApiKey.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- ///
+ /// Example: {"creation_time":"2000-01-23T04:56:07.0000000\u002B00:00","redacted_api_key":"ATG56\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022","api_key_id":"JRPVD7jWR1aTBYiJ0UFVOg","status":""}
///
public sealed partial class ApiProfileApiKey
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileRole.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileRole.g.cs
index 57fd8ce..d5db523 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileRole.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileRole.g.cs
@@ -12,11 +12,11 @@ public enum ApiProfileRole
///
///
///
- OWNER,
+ Owner,
///
///
///
- MEMBER,
+ Member,
}
///
@@ -31,8 +31,8 @@ public static string ToValueString(this ApiProfileRole value)
{
return value switch
{
- ApiProfileRole.OWNER => "OWNER",
- ApiProfileRole.MEMBER => "MEMBER",
+ ApiProfileRole.Owner => "OWNER",
+ ApiProfileRole.Member => "MEMBER",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -43,8 +43,8 @@ public static string ToValueString(this ApiProfileRole value)
{
return value switch
{
- "OWNER" => ApiProfileRole.OWNER,
- "MEMBER" => ApiProfileRole.MEMBER,
+ "OWNER" => ApiProfileRole.Owner,
+ "MEMBER" => ApiProfileRole.Member,
_ => null,
};
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs
index a822fc1..0976fc9 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs
@@ -12,11 +12,11 @@ public enum ApiProfileType
///
///
///
- INDIVIDUAL,
+ Individual,
///
///
///
- ENTERPRISE,
+ Enterprise,
}
///
@@ -31,8 +31,8 @@ public static string ToValueString(this ApiProfileType value)
{
return value switch
{
- ApiProfileType.INDIVIDUAL => "INDIVIDUAL",
- ApiProfileType.ENTERPRISE => "ENTERPRISE",
+ ApiProfileType.Individual => "INDIVIDUAL",
+ ApiProfileType.Enterprise => "ENTERPRISE",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -43,8 +43,8 @@ public static string ToValueString(this ApiProfileType value)
{
return value switch
{
- "INDIVIDUAL" => ApiProfileType.INDIVIDUAL,
- "ENTERPRISE" => ApiProfileType.ENTERPRISE,
+ "INDIVIDUAL" => ApiProfileType.Individual,
+ "ENTERPRISE" => ApiProfileType.Enterprise,
_ => null,
};
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiTerms.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiTerms.g.cs
index f3a9cf7..70c489d 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiTerms.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiTerms.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- ///
+ /// Example: {"terms_url":"terms_url","terms_id":"terms_id"}
///
public sealed partial class ApiTerms
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.AspectRatio.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.AspectRatio.g.cs
index 5add4e1..a4b9812 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.AspectRatio.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.AspectRatio.g.cs
@@ -12,47 +12,47 @@ public enum AspectRatio
///
///
///
- ASPECT1016,
+ Aspect1016,
///
///
///
- ASPECT1610,
+ Aspect1610,
///
///
///
- ASPECT916,
+ Aspect916,
///
///
///
- ASPECT169,
+ Aspect169,
///
///
///
- ASPECT32,
+ Aspect32,
///
///
///
- ASPECT23,
+ Aspect23,
///
///
///
- ASPECT43,
+ Aspect43,
///
///
///
- ASPECT34,
+ Aspect34,
///
///
///
- ASPECT11,
+ Aspect11,
///
///
///
- ASPECT13,
+ Aspect13,
///
///
///
- ASPECT31,
+ Aspect31,
}
///
@@ -67,17 +67,17 @@ public static string ToValueString(this AspectRatio value)
{
return value switch
{
- AspectRatio.ASPECT1016 => "ASPECT_10_16",
- AspectRatio.ASPECT1610 => "ASPECT_16_10",
- AspectRatio.ASPECT916 => "ASPECT_9_16",
- AspectRatio.ASPECT169 => "ASPECT_16_9",
- AspectRatio.ASPECT32 => "ASPECT_3_2",
- AspectRatio.ASPECT23 => "ASPECT_2_3",
- AspectRatio.ASPECT43 => "ASPECT_4_3",
- AspectRatio.ASPECT34 => "ASPECT_3_4",
- AspectRatio.ASPECT11 => "ASPECT_1_1",
- AspectRatio.ASPECT13 => "ASPECT_1_3",
- AspectRatio.ASPECT31 => "ASPECT_3_1",
+ AspectRatio.Aspect1016 => "ASPECT_10_16",
+ AspectRatio.Aspect1610 => "ASPECT_16_10",
+ AspectRatio.Aspect916 => "ASPECT_9_16",
+ AspectRatio.Aspect169 => "ASPECT_16_9",
+ AspectRatio.Aspect32 => "ASPECT_3_2",
+ AspectRatio.Aspect23 => "ASPECT_2_3",
+ AspectRatio.Aspect43 => "ASPECT_4_3",
+ AspectRatio.Aspect34 => "ASPECT_3_4",
+ AspectRatio.Aspect11 => "ASPECT_1_1",
+ AspectRatio.Aspect13 => "ASPECT_1_3",
+ AspectRatio.Aspect31 => "ASPECT_3_1",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -88,17 +88,17 @@ public static string ToValueString(this AspectRatio value)
{
return value switch
{
- "ASPECT_10_16" => AspectRatio.ASPECT1016,
- "ASPECT_16_10" => AspectRatio.ASPECT1610,
- "ASPECT_9_16" => AspectRatio.ASPECT916,
- "ASPECT_16_9" => AspectRatio.ASPECT169,
- "ASPECT_3_2" => AspectRatio.ASPECT32,
- "ASPECT_2_3" => AspectRatio.ASPECT23,
- "ASPECT_4_3" => AspectRatio.ASPECT43,
- "ASPECT_3_4" => AspectRatio.ASPECT34,
- "ASPECT_1_1" => AspectRatio.ASPECT11,
- "ASPECT_1_3" => AspectRatio.ASPECT13,
- "ASPECT_3_1" => AspectRatio.ASPECT31,
+ "ASPECT_10_16" => AspectRatio.Aspect1016,
+ "ASPECT_16_10" => AspectRatio.Aspect1610,
+ "ASPECT_9_16" => AspectRatio.Aspect916,
+ "ASPECT_16_9" => AspectRatio.Aspect169,
+ "ASPECT_3_2" => AspectRatio.Aspect32,
+ "ASPECT_2_3" => AspectRatio.Aspect23,
+ "ASPECT_4_3" => AspectRatio.Aspect43,
+ "ASPECT_3_4" => AspectRatio.Aspect34,
+ "ASPECT_1_1" => AspectRatio.Aspect11,
+ "ASPECT_1_3" => AspectRatio.Aspect13,
+ "ASPECT_3_1" => AspectRatio.Aspect31,
_ => null,
};
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPalettePresetName.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPalettePresetName.g.cs
index 0e5f1c2..2714133 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPalettePresetName.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPalettePresetName.g.cs
@@ -12,35 +12,35 @@ public enum ColorPalettePresetName
///
///
///
- EMBER,
+ Ember,
///
///
///
- FRESH,
+ Fresh,
///
///
///
- JUNGLE,
+ Jungle,
///
///
///
- MAGIC,
+ Magic,
///
///
///
- MELON,
+ Melon,
///
///
///
- MOSAIC,
+ Mosaic,
///
///
///
- PASTEL,
+ Pastel,
///
///
///
- ULTRAMARINE,
+ Ultramarine,
}
///
@@ -55,14 +55,14 @@ public static string ToValueString(this ColorPalettePresetName value)
{
return value switch
{
- ColorPalettePresetName.EMBER => "EMBER",
- ColorPalettePresetName.FRESH => "FRESH",
- ColorPalettePresetName.JUNGLE => "JUNGLE",
- ColorPalettePresetName.MAGIC => "MAGIC",
- ColorPalettePresetName.MELON => "MELON",
- ColorPalettePresetName.MOSAIC => "MOSAIC",
- ColorPalettePresetName.PASTEL => "PASTEL",
- ColorPalettePresetName.ULTRAMARINE => "ULTRAMARINE",
+ ColorPalettePresetName.Ember => "EMBER",
+ ColorPalettePresetName.Fresh => "FRESH",
+ ColorPalettePresetName.Jungle => "JUNGLE",
+ ColorPalettePresetName.Magic => "MAGIC",
+ ColorPalettePresetName.Melon => "MELON",
+ ColorPalettePresetName.Mosaic => "MOSAIC",
+ ColorPalettePresetName.Pastel => "PASTEL",
+ ColorPalettePresetName.Ultramarine => "ULTRAMARINE",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -73,14 +73,14 @@ public static string ToValueString(this ColorPalettePresetName value)
{
return value switch
{
- "EMBER" => ColorPalettePresetName.EMBER,
- "FRESH" => ColorPalettePresetName.FRESH,
- "JUNGLE" => ColorPalettePresetName.JUNGLE,
- "MAGIC" => ColorPalettePresetName.MAGIC,
- "MELON" => ColorPalettePresetName.MELON,
- "MOSAIC" => ColorPalettePresetName.MOSAIC,
- "PASTEL" => ColorPalettePresetName.PASTEL,
- "ULTRAMARINE" => ColorPalettePresetName.ULTRAMARINE,
+ "EMBER" => ColorPalettePresetName.Ember,
+ "FRESH" => ColorPalettePresetName.Fresh,
+ "JUNGLE" => ColorPalettePresetName.Jungle,
+ "MAGIC" => ColorPalettePresetName.Magic,
+ "MELON" => ColorPalettePresetName.Melon,
+ "MOSAIC" => ColorPalettePresetName.Mosaic,
+ "PASTEL" => ColorPalettePresetName.Pastel,
+ "ULTRAMARINE" => ColorPalettePresetName.Ultramarine,
_ => null,
};
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithMembers.g.cs
index 8e4f597..066478a 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithMembers.g.cs
@@ -12,9 +12,9 @@ public sealed partial class ColorPaletteWithMembers
/// A list of ColorPaletteMembers that define the color palette. Each color palette member
/// consists of a required color hex and an optional weight between 0.05 and 1.0 (inclusive).
/// It is recommended that these weights descend from highest to lowest for the color hexes provided.
- /// Example: [, , , , ]
+ /// Example: [{"ColorPaletteMember":{"color_hex":"#b470b3","color_weight":0.49}}, {"ColorPaletteMember":{"color_hex":"#7a79e3","color_weight":0.16}}, {"ColorPaletteMember":{"color_hex":"#a26563","color_weight":0.1}}, {"ColorPaletteMember":{"color_hex":"#5c7d76","color_weight":0.07}}, {"ColorPaletteMember":{"color_hex":"#642a9c","color_weight":0.05}}]
///
- /// [, , , , ]
+ /// [{"ColorPaletteMember":{"color_hex":"#b470b3","color_weight":0.49}}, {"ColorPaletteMember":{"color_hex":"#7a79e3","color_weight":0.16}}, {"ColorPaletteMember":{"color_hex":"#a26563","color_weight":0.1}}, {"ColorPaletteMember":{"color_hex":"#5c7d76","color_weight":0.07}}, {"ColorPaletteMember":{"color_hex":"#642a9c","color_weight":0.05}}]
[global::System.Text.Json.Serialization.JsonPropertyName("members")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList Members { get; set; }
@@ -32,7 +32,7 @@ public sealed partial class ColorPaletteWithMembers
/// A list of ColorPaletteMembers that define the color palette. Each color palette member
/// consists of a required color hex and an optional weight between 0.05 and 1.0 (inclusive).
/// It is recommended that these weights descend from highest to lowest for the color hexes provided.
- /// Example: [, , , , ]
+ /// Example: [{"ColorPaletteMember":{"color_hex":"#b470b3","color_weight":0.49}}, {"ColorPaletteMember":{"color_hex":"#7a79e3","color_weight":0.16}}, {"ColorPaletteMember":{"color_hex":"#a26563","color_weight":0.1}}, {"ColorPaletteMember":{"color_hex":"#5c7d76","color_weight":0.07}}, {"ColorPaletteMember":{"color_hex":"#642a9c","color_weight":0.05}}]
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithPresetName.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithPresetName.g.cs
index ead7bb4..1554691 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithPresetName.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithPresetName.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- ///
+ /// Example: {"name":"PASTEL"}
///
public sealed partial class ColorPaletteWithPresetName
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithPresetNameOrMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithPresetNameOrMembers.g.cs
index 0f7164a..cf23734 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithPresetNameOrMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithPresetNameOrMembers.g.cs
@@ -10,56 +10,55 @@ namespace Ideogram
public readonly partial struct ColorPaletteWithPresetNameOrMembers : global::System.IEquatable
{
///
- ///
+ /// Example: {"name":"PASTEL"}
///
#if NET6_0_OR_GREATER
- public global::Ideogram.ColorPaletteWithPresetName? Value1 { get; init; }
+ public global::Ideogram.ColorPaletteWithPresetName? ColorPaletteWithPresetName { get; init; }
#else
- public global::Ideogram.ColorPaletteWithPresetName? Value1 { get; }
+ public global::Ideogram.ColorPaletteWithPresetName? ColorPaletteWithPresetName { get; }
#endif
///
///
///
#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))]
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ColorPaletteWithPresetName))]
#endif
- public bool IsValue1 => Value1 != null;
+ public bool IsColorPaletteWithPresetName => ColorPaletteWithPresetName != null;
///
- ///
+ /// A color palette represented only via its members. Cannot be used in conjunction with preset name.
///
- public static implicit operator ColorPaletteWithPresetNameOrMembers(global::Ideogram.ColorPaletteWithPresetName value) => new ColorPaletteWithPresetNameOrMembers((global::Ideogram.ColorPaletteWithPresetName?)value);
+#if NET6_0_OR_GREATER
+ public global::Ideogram.ColorPaletteWithMembers? ColorPaletteWithMembers { get; init; }
+#else
+ public global::Ideogram.ColorPaletteWithMembers? ColorPaletteWithMembers { get; }
+#endif
///
///
///
- public static implicit operator global::Ideogram.ColorPaletteWithPresetName?(ColorPaletteWithPresetNameOrMembers @this) => @this.Value1;
-
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ColorPaletteWithMembers))]
+#endif
+ public bool IsColorPaletteWithMembers => ColorPaletteWithMembers != null;
///
///
///
- public ColorPaletteWithPresetNameOrMembers(global::Ideogram.ColorPaletteWithPresetName? value)
- {
- Value1 = value;
- }
+ public static implicit operator ColorPaletteWithPresetNameOrMembers(global::Ideogram.ColorPaletteWithPresetName value) => new ColorPaletteWithPresetNameOrMembers((global::Ideogram.ColorPaletteWithPresetName?)value);
///
- /// A color palette represented only via its members. Cannot be used in conjunction with preset name.
+ ///
///
-#if NET6_0_OR_GREATER
- public global::Ideogram.ColorPaletteWithMembers? Value2 { get; init; }
-#else
- public global::Ideogram.ColorPaletteWithMembers? Value2 { get; }
-#endif
+ public static implicit operator global::Ideogram.ColorPaletteWithPresetName?(ColorPaletteWithPresetNameOrMembers @this) => @this.ColorPaletteWithPresetName;
///
///
///
-#if NET6_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
-#endif
- public bool IsValue2 => Value2 != null;
+ public ColorPaletteWithPresetNameOrMembers(global::Ideogram.ColorPaletteWithPresetName? value)
+ {
+ ColorPaletteWithPresetName = value;
+ }
///
///
@@ -69,42 +68,42 @@ public ColorPaletteWithPresetNameOrMembers(global::Ideogram.ColorPaletteWithPres
///
///
///
- public static implicit operator global::Ideogram.ColorPaletteWithMembers?(ColorPaletteWithPresetNameOrMembers @this) => @this.Value2;
+ public static implicit operator global::Ideogram.ColorPaletteWithMembers?(ColorPaletteWithPresetNameOrMembers @this) => @this.ColorPaletteWithMembers;
///
///
///
public ColorPaletteWithPresetNameOrMembers(global::Ideogram.ColorPaletteWithMembers? value)
{
- Value2 = value;
+ ColorPaletteWithMembers = value;
}
///
///
///
public ColorPaletteWithPresetNameOrMembers(
- global::Ideogram.ColorPaletteWithPresetName? value1,
- global::Ideogram.ColorPaletteWithMembers? value2
+ global::Ideogram.ColorPaletteWithPresetName? colorPaletteWithPresetName,
+ global::Ideogram.ColorPaletteWithMembers? colorPaletteWithMembers
)
{
- Value1 = value1;
- Value2 = value2;
+ ColorPaletteWithPresetName = colorPaletteWithPresetName;
+ ColorPaletteWithMembers = colorPaletteWithMembers;
}
///
///
///
public object? Object =>
- Value2 as object ??
- Value1 as object
+ ColorPaletteWithMembers as object ??
+ ColorPaletteWithPresetName as object
;
///
///
///
public override string? ToString() =>
- Value1?.ToString() ??
- Value2?.ToString()
+ ColorPaletteWithPresetName?.ToString() ??
+ ColorPaletteWithMembers?.ToString()
;
///
@@ -112,15 +111,15 @@ Value1 as object
///
public bool Validate()
{
- return IsValue1 && !IsValue2 || !IsValue1 && IsValue2;
+ return IsColorPaletteWithPresetName && !IsColorPaletteWithMembers || !IsColorPaletteWithPresetName && IsColorPaletteWithMembers;
}
///
///
///
public TResult? Match(
- global::System.Func? value1 = null,
- global::System.Func? value2 = null,
+ global::System.Func? colorPaletteWithPresetName = null,
+ global::System.Func? colorPaletteWithMembers = null,
bool validate = true)
{
if (validate)
@@ -128,13 +127,13 @@ public bool Validate()
Validate();
}
- if (IsValue1 && value1 != null)
+ if (IsColorPaletteWithPresetName && colorPaletteWithPresetName != null)
{
- return value1(Value1!);
+ return colorPaletteWithPresetName(ColorPaletteWithPresetName!);
}
- else if (IsValue2 && value2 != null)
+ else if (IsColorPaletteWithMembers && colorPaletteWithMembers != null)
{
- return value2(Value2!);
+ return colorPaletteWithMembers(ColorPaletteWithMembers!);
}
return default(TResult);
@@ -144,8 +143,8 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? value1 = null,
- global::System.Action? value2 = null,
+ global::System.Action? colorPaletteWithPresetName = null,
+ global::System.Action? colorPaletteWithMembers = null,
bool validate = true)
{
if (validate)
@@ -153,13 +152,13 @@ public void Match(
Validate();
}
- if (IsValue1)
+ if (IsColorPaletteWithPresetName)
{
- value1?.Invoke(Value1!);
+ colorPaletteWithPresetName?.Invoke(ColorPaletteWithPresetName!);
}
- else if (IsValue2)
+ else if (IsColorPaletteWithMembers)
{
- value2?.Invoke(Value2!);
+ colorPaletteWithMembers?.Invoke(ColorPaletteWithMembers!);
}
}
@@ -170,9 +169,9 @@ public override int GetHashCode()
{
var fields = new object?[]
{
- Value1,
+ ColorPaletteWithPresetName,
typeof(global::Ideogram.ColorPaletteWithPresetName),
- Value2,
+ ColorPaletteWithMembers,
typeof(global::Ideogram.ColorPaletteWithMembers),
};
const int offset = unchecked((int)2166136261);
@@ -190,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null
public bool Equals(ColorPaletteWithPresetNameOrMembers other)
{
return
- global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) &&
- global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2)
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(ColorPaletteWithPresetName, other.ColorPaletteWithPresetName) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(ColorPaletteWithMembers, other.ColorPaletteWithMembers)
;
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.CreateApiKeyResponse.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.CreateApiKeyResponse.g.cs
index 9b26429..35d4223 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.CreateApiKeyResponse.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.CreateApiKeyResponse.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- ///
+ /// Example: {"creation_time":"2024-05-25T02:00:30.0000000\u002B00:00","api_key":"vkpDjaKdMNR8QJ83GjfNvFZJbnoi65XUp70MgZNtA2H9XE8yfDnmr_6BaRyQkF9hnJzu6mUPRLBmqlnZMwetJA","api_key_id":"JRPVD7jWR1aTBYiJ0UFVOg=="}
///
public sealed partial class CreateApiKeyResponse
{
@@ -27,8 +27,10 @@ public sealed partial class CreateApiKeyResponse
public required string ApiKeyId { get; set; }
///
- /// The time at which the API key was created
+ /// The time at which the API key was created
+ /// Example: 2024-05-25T02:00:30.0000000+00:00
///
+ /// 2024-05-25T02:00:30.0000000+00:00
[global::System.Text.Json.Serialization.JsonPropertyName("creation_time")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTime CreationTime { get; set; }
@@ -51,7 +53,8 @@ public sealed partial class CreateApiKeyResponse
/// Example: JRPVD7jWR1aTBYiJ0UFVOg==
///
///
- /// The time at which the API key was created
+ /// The time at which the API key was created
+ /// Example: 2024-05-25T02:00:30.0000000+00:00
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.DescribeModelVersion.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.DescribeModelVersion.g.cs
index f685510..5aef366 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.DescribeModelVersion.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.DescribeModelVersion.g.cs
@@ -20,7 +20,7 @@ public enum DescribeModelVersion
///
///
///
- CUSTOM,
+ Custom,
}
///
@@ -37,7 +37,7 @@ public static string ToValueString(this DescribeModelVersion value)
{
DescribeModelVersion.V2 => "V_2",
DescribeModelVersion.V3 => "V_3",
- DescribeModelVersion.CUSTOM => "CUSTOM",
+ DescribeModelVersion.Custom => "CUSTOM",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -50,7 +50,7 @@ public static string ToValueString(this DescribeModelVersion value)
{
"V_2" => DescribeModelVersion.V2,
"V_3" => DescribeModelVersion.V3,
- "CUSTOM" => DescribeModelVersion.CUSTOM,
+ "CUSTOM" => DescribeModelVersion.Custom,
_ => null,
};
}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.DescribeResponse.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.DescribeResponse.g.cs
index 8a4c17c..f48c749 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.DescribeResponse.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.DescribeResponse.g.cs
@@ -4,7 +4,8 @@
namespace Ideogram
{
///
- /// The response for a describe request encapsulates a list of descriptions.
+ /// The response for a describe request encapsulates a list of descriptions.
+ /// Example: {"descriptions":[{"text":"A meticulously illustrated cat with striped patterns, sitting upright. The cat\u0027s eyes are a captivating shade of yellow, and it appears to be gazing intently at something. The background consists of abstract, swirling patterns in shades of black, white, and beige, creating an almost fluid or wavy appearance. The cat is positioned in the foreground, with the background elements fading into the distance, giving a sense of depth to the image."}]}
///
public sealed partial class DescribeResponse
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequestV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequestV3.g.cs
index 8658263..0a67f85 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequestV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.EditImageRequestV3.g.cs
@@ -96,6 +96,15 @@ public sealed partial class EditImageRequestV3
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.StylePresetV3JsonConverter))]
public global::Ideogram.StylePresetV3? StylePreset { get; set; }
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
+ /// model/my-custom-model/version/1
+ [global::System.Text.Json.Serialization.JsonPropertyName("custom_model_uri")]
+ public string? CustomModelUri { get; set; }
+
///
/// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
///
@@ -179,6 +188,11 @@ public sealed partial class EditImageRequestV3
/// A predefined style preset that applies a specific artistic style to the generated image.
/// Example: BRIGHT_ART
///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
///
/// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
///
@@ -210,6 +224,7 @@ public EditImageRequestV3(
global::Ideogram.RenderingSpeed? renderingSpeed,
global::Ideogram.StyleTypeV3? styleType,
global::Ideogram.StylePresetV3? stylePreset,
+ string? customModelUri,
global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette,
global::System.Collections.Generic.IList? styleCodes,
global::System.Collections.Generic.IList? styleReferenceImages,
@@ -227,6 +242,7 @@ public EditImageRequestV3(
this.RenderingSpeed = renderingSpeed;
this.StyleType = styleType;
this.StylePreset = stylePreset;
+ this.CustomModelUri = customModelUri;
this.ColorPalette = colorPalette;
this.StyleCodes = styleCodes;
this.StyleReferenceImages = styleReferenceImages;
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateDesignRequestV3.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateDesignRequestV3.Json.g.cs
new file mode 100644
index 0000000..0386297
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateDesignRequestV3.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class GenerateDesignRequestV3
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Ideogram.GenerateDesignRequestV3? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.GenerateDesignRequestV3),
+ jsonSerializerContext) as global::Ideogram.GenerateDesignRequestV3;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::Ideogram.GenerateDesignRequestV3? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Ideogram.GenerateDesignRequestV3),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.GenerateDesignRequestV3;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateDesignRequestV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateDesignRequestV3.g.cs
new file mode 100644
index 0000000..ad541d7
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateDesignRequestV3.g.cs
@@ -0,0 +1,280 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class GenerateDesignRequestV3
+ {
+ ///
+ /// The prompt to use to generate the design.
+ /// Example: A birthday card saying 'Happy Birthday'
+ ///
+ /// A birthday card saying 'Happy Birthday'
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Prompt { get; set; }
+
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ /// 12345
+ [global::System.Text.Json.Serialization.JsonPropertyName("seed")]
+ public int? Seed { get; set; }
+
+ ///
+ /// The resolutions supported for Ideogram 3.0.
+ /// Example: 1280x800
+ ///
+ /// 1280x800
+ [global::System.Text.Json.Serialization.JsonPropertyName("resolution")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ResolutionV3JsonConverter))]
+ public global::Ideogram.ResolutionV3? Resolution { get; set; }
+
+ ///
+ /// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.AspectRatioV3JsonConverter))]
+ public global::Ideogram.AspectRatioV3? AspectRatio { get; set; }
+
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("rendering_speed")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.RenderingSpeedJsonConverter))]
+ public global::Ideogram.RenderingSpeed? RenderingSpeed { get; set; }
+
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ /// ON
+ [global::System.Text.Json.Serialization.JsonPropertyName("magic_prompt")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.MagicPromptOptionJsonConverter))]
+ public global::Ideogram.MagicPromptOption? MagicPrompt { get; set; }
+
+ ///
+ /// Description of what to exclude from a design. Descriptions in the prompt take precedence
+ /// to descriptions in the negative prompt.
+ /// Example: brush strokes, painting
+ ///
+ /// brush strokes, painting
+ [global::System.Text.Json.Serialization.JsonPropertyName("negative_prompt")]
+ public string? NegativePrompt { get; set; }
+
+ ///
+ /// Number of designs to generate.
+ /// Default Value: 1
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_images")]
+ public int? NumImages { get; set; }
+
+ ///
+ /// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("color_palette")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ColorPaletteWithPresetNameOrMembersJsonConverter))]
+ public global::Ideogram.ColorPaletteWithPresetNameOrMembers? ColorPalette { get; set; }
+
+ ///
+ /// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ /// [AAFF5733, 0133FF57, DE3357FF]
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_codes")]
+ public global::System.Collections.Generic.IList? StyleCodes { get; set; }
+
+ ///
+ /// The style type to generate with.
+ /// Default Value: GENERAL
+ /// Example: GENERAL
+ ///
+ /// GENERAL
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.StyleTypeV3JsonConverter))]
+ public global::Ideogram.StyleTypeV3? StyleType { get; set; }
+
+ ///
+ /// A predefined style preset that applies a specific artistic style to the generated image.
+ /// Example: BRIGHT_ART
+ ///
+ /// BRIGHT_ART
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_preset")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.StylePresetV3JsonConverter))]
+ public global::Ideogram.StylePresetV3? StylePreset { get; set; }
+
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
+ /// model/my-custom-model/version/1
+ [global::System.Text.Json.Serialization.JsonPropertyName("custom_model_uri")]
+ public string? CustomModelUri { get; set; }
+
+ ///
+ /// A font name from the available font library to use for text rendering. When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with uploaded_font_file.
+ /// Example: Ubuntu-Regular.ttf
+ ///
+ /// Ubuntu-Regular.ttf
+ [global::System.Text.Json.Serialization.JsonPropertyName("requested_font_file")]
+ public string? RequestedFontFile { get; set; }
+
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("uploaded_font_file")]
+ public byte[]? UploadedFontFile { get; set; }
+
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("uploaded_font_filename")]
+ public string? UploadedFontFilename { get; set; }
+
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_reference_images")]
+ public global::System.Collections.Generic.IList? StyleReferenceImages { get; set; }
+
+ ///
+ /// A set of asset images (e.g., logos, icons) to use as references for detection and replacement (maximum 10 images). The images should be in JPEG, PNG or WebP format.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("reference_asset_images")]
+ public global::System.Collections.Generic.IList? ReferenceAssetImages { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// The prompt to use to generate the design.
+ /// Example: A birthday card saying 'Happy Birthday'
+ ///
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ ///
+ /// The resolutions supported for Ideogram 3.0.
+ /// Example: 1280x800
+ ///
+ ///
+ /// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
+ ///
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ ///
+ /// Description of what to exclude from a design. Descriptions in the prompt take precedence
+ /// to descriptions in the negative prompt.
+ /// Example: brush strokes, painting
+ ///
+ ///
+ /// Number of designs to generate.
+ /// Default Value: 1
+ ///
+ ///
+ /// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ ///
+ /// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ ///
+ /// The style type to generate with.
+ /// Default Value: GENERAL
+ /// Example: GENERAL
+ ///
+ ///
+ /// A predefined style preset that applies a specific artistic style to the generated image.
+ /// Example: BRIGHT_ART
+ ///
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
+ ///
+ /// A font name from the available font library to use for text rendering. When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with uploaded_font_file.
+ /// Example: Ubuntu-Regular.ttf
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). When provided, font matching is skipped and this font is used for all text layers. Cannot be used together with requested_font_file.
+ ///
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+ ///
+ /// A set of asset images (e.g., logos, icons) to use as references for detection and replacement (maximum 10 images). The images should be in JPEG, PNG or WebP format.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public GenerateDesignRequestV3(
+ string prompt,
+ int? seed,
+ global::Ideogram.ResolutionV3? resolution,
+ global::Ideogram.AspectRatioV3? aspectRatio,
+ global::Ideogram.RenderingSpeed? renderingSpeed,
+ global::Ideogram.MagicPromptOption? magicPrompt,
+ string? negativePrompt,
+ int? numImages,
+ global::Ideogram.ColorPaletteWithPresetNameOrMembers? colorPalette,
+ global::System.Collections.Generic.IList? styleCodes,
+ global::Ideogram.StyleTypeV3? styleType,
+ global::Ideogram.StylePresetV3? stylePreset,
+ string? customModelUri,
+ string? requestedFontFile,
+ byte[]? uploadedFontFile,
+ string? uploadedFontFilename,
+ global::System.Collections.Generic.IList? styleReferenceImages,
+ global::System.Collections.Generic.IList? referenceAssetImages)
+ {
+ this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
+ this.Seed = seed;
+ this.Resolution = resolution;
+ this.AspectRatio = aspectRatio;
+ this.RenderingSpeed = renderingSpeed;
+ this.MagicPrompt = magicPrompt;
+ this.NegativePrompt = negativePrompt;
+ this.NumImages = numImages;
+ this.ColorPalette = colorPalette;
+ this.StyleCodes = styleCodes;
+ this.StyleType = styleType;
+ this.StylePreset = stylePreset;
+ this.CustomModelUri = customModelUri;
+ this.RequestedFontFile = requestedFontFile;
+ this.UploadedFontFile = uploadedFontFile;
+ this.UploadedFontFilename = uploadedFontFilename;
+ this.StyleReferenceImages = styleReferenceImages;
+ this.ReferenceAssetImages = referenceAssetImages;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public GenerateDesignRequestV3()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateGraphicRequestV3.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateGraphicRequestV3.Json.g.cs
new file mode 100644
index 0000000..1bfc340
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateGraphicRequestV3.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class GenerateGraphicRequestV3
+ {
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
+ ///
+ public string ToJson(
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ this.GetType(),
+ jsonSerializerContext);
+ }
+
+ ///
+ /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public string ToJson(
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Serialize(
+ this,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerContext.
+ ///
+ public static global::Ideogram.GenerateGraphicRequestV3? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.GenerateGraphicRequestV3),
+ jsonSerializerContext) as global::Ideogram.GenerateGraphicRequestV3;
+ }
+
+ ///
+ /// Deserializes a JSON string using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::Ideogram.GenerateGraphicRequestV3? FromJson(
+ string json,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ jsonSerializerOptions);
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerContext.
+ ///
+ public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ typeof(global::Ideogram.GenerateGraphicRequestV3),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.GenerateGraphicRequestV3;
+ }
+
+ ///
+ /// Deserializes a JSON stream using the provided JsonSerializerOptions.
+ ///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
+ {
+ return global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ jsonStream,
+ jsonSerializerOptions);
+ }
+ }
+}
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GenerateGraphicRequestV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateGraphicRequestV3.g.cs
new file mode 100644
index 0000000..214092d
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.GenerateGraphicRequestV3.g.cs
@@ -0,0 +1,301 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class GenerateGraphicRequestV3
+ {
+ ///
+ /// The prompt to use to generate the graphic.
+ /// Example: A birthday card saying 'Happy Birthday'
+ ///
+ /// A birthday card saying 'Happy Birthday'
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
+ public string? Prompt { get; set; }
+
+ ///
+ /// Random seed. Set for reproducible generation.
+ /// Example: 12345
+ ///
+ /// 12345
+ [global::System.Text.Json.Serialization.JsonPropertyName("seed")]
+ public int? Seed { get; set; }
+
+ ///
+ /// The resolutions supported for Ideogram 3.0.
+ /// Example: 1280x800
+ ///
+ /// 1280x800
+ [global::System.Text.Json.Serialization.JsonPropertyName("resolution")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ResolutionV3JsonConverter))]
+ public global::Ideogram.ResolutionV3? Resolution { get; set; }
+
+ ///
+ /// The aspect ratio to use for image generation, which determines the image's resolution. Cannot be used in conjunction with resolution. Defaults to 1x1.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.AspectRatioV3JsonConverter))]
+ public global::Ideogram.AspectRatioV3? AspectRatio { get; set; }
+
+ ///
+ /// The rendering speed to use.
+ /// Default Value: DEFAULT
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("rendering_speed")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.RenderingSpeedJsonConverter))]
+ public global::Ideogram.RenderingSpeed? RenderingSpeed { get; set; }
+
+ ///
+ /// Determine if MagicPrompt should be used in generating the request or not.
+ /// Example: ON
+ ///
+ /// ON
+ [global::System.Text.Json.Serialization.JsonPropertyName("magic_prompt")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.MagicPromptOptionJsonConverter))]
+ public global::Ideogram.MagicPromptOption? MagicPrompt { get; set; }
+
+ ///
+ /// Description of what to exclude from a graphic. Descriptions in the prompt take precedence
+ /// to descriptions in the negative prompt.
+ /// Example: brush strokes, painting
+ ///
+ /// brush strokes, painting
+ [global::System.Text.Json.Serialization.JsonPropertyName("negative_prompt")]
+ public string? NegativePrompt { get; set; }
+
+ ///
+ /// Number of graphics to generate.
+ /// Default Value: 1
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_images")]
+ public int? NumImages { get; set; }
+
+ ///
+ /// A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members). Not supported by V_1, V_1_TURBO, V_2A and V_2A_TURBO models.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("color_palette")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.ColorPaletteWithPresetNameOrMembersJsonConverter))]
+ public global::Ideogram.ColorPaletteWithPresetNameOrMembers? ColorPalette { get; set; }
+
+ ///
+ /// A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style_type.
+ /// Example: [AAFF5733, 0133FF57, DE3357FF]
+ ///
+ /// [AAFF5733, 0133FF57, DE3357FF]
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_codes")]
+ public global::System.Collections.Generic.IList? StyleCodes { get; set; }
+
+ ///
+ /// The style type to generate with.
+ /// Default Value: GENERAL
+ /// Example: GENERAL
+ ///
+ /// GENERAL
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_type")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.StyleTypeV3JsonConverter))]
+ public global::Ideogram.StyleTypeV3? StyleType { get; set; }
+
+ ///
+ /// A predefined style preset that applies a specific artistic style to the generated image.
+ /// Example: BRIGHT_ART
+ ///
+ /// BRIGHT_ART
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_preset")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.StylePresetV3JsonConverter))]
+ public global::Ideogram.StylePresetV3? StylePreset { get; set; }
+
+ ///
+ /// A custom model URI in the format model/<model_name>/version/<version_name>.
+ /// When provided, the model version and style will be resolved from this URI, and style_type is not required.
+ /// Example: model/my-custom-model/version/1
+ ///
+ /// model/my-custom-model/version/1
+ [global::System.Text.Json.Serialization.JsonPropertyName("custom_model_uri")]
+ public string? CustomModelUri { get; set; }
+
+ ///
+ /// An existing flat graphic image to process for text detection and correction without generating a new image. When provided, image generation is bypassed. The image should be in JPEG, PNG or WebP format (max size 10MB).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("flat_graphic_image")]
+ public byte[]? FlatGraphicImage { get; set; }
+
+ ///
+ /// An existing flat graphic image to process for text detection and correction without generating a new image. When provided, image generation is bypassed. The image should be in JPEG, PNG or WebP format (max size 10MB).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("flat_graphic_imagename")]
+ public string? FlatGraphicImagename { get; set; }
+
+ ///
+ /// A font name from the available font library to use for text rendering. Cannot be used together with uploaded_font_file.
+ /// Example: Ubuntu-Regular.ttf
+ ///
+ /// Ubuntu-Regular.ttf
+ [global::System.Text.Json.Serialization.JsonPropertyName("requested_font_file")]
+ public string? RequestedFontFile { get; set; }
+
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). Cannot be used together with requested_font_file.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("uploaded_font_file")]
+ public byte[]? UploadedFontFile { get; set; }
+
+ ///
+ /// A custom font file to use for text rendering. Supported formats are .ttf, .otf, .woff, and .woff2 (max size 5MB). Cannot be used together with requested_font_file.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("uploaded_font_filename")]
+ public string? UploadedFontFilename { get; set; }
+
+ ///
+ /// A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_reference_images")]
+ public global::System.Collections.Generic.IList? StyleReferenceImages { get; set; }
+
+ ///
+ /// A set of asset images (e.g., logos, icons) to use as references for detection and replacement (maximum 10 images). The images should be in JPEG, PNG or WebP format.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("reference_asset_images")]
+ public global::System.Collections.Generic.IList? ReferenceAssetImages { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+
+ ///
+ /// Initializes a new instance of the