Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ partial void ProcessPostEditImageResponseContent(
ref string content);

/// <summary>
/// Edit<br/>
/// Edit (legacy)<br/>
/// Edit a given image synchronously using the provided mask. The mask indicates which part of the image<br/>
/// should be edited, while the prompt and chosen style type can further guide the edit.<br/>
/// Supported image formats include JPEG, PNG, and WebP.<br/>
Expand Down Expand Up @@ -304,7 +304,7 @@ partial void ProcessPostEditImageResponseContent(
}

/// <summary>
/// Edit<br/>
/// Edit (legacy)<br/>
/// Edit a given image synchronously using the provided mask. The mask indicates which part of the image<br/>
/// should be edited, while the prompt and chosen style type can further guide the edit.<br/>
/// Supported image formats include JPEG, PNG, and WebP.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ partial void ProcessPostGenerateImageResponseContent(
ref string content);

/// <summary>
/// Generate<br/>
/// Generate (legacy)<br/>
/// Generates images synchronously based on a given prompt and optional parameters.<br/>
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
Expand Down Expand Up @@ -268,25 +268,20 @@ partial void ProcessPostGenerateImageResponseContent(
}

/// <summary>
/// Generate<br/>
/// Generate (legacy)<br/>
/// Generates images synchronously based on a given prompt and optional parameters.<br/>
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
/// <param name="imageRequest"></param>
/// <param name="styleRefEmbeddings">
/// A list of base64 encoded binary embeddings.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.GenerateImageResponse> PostGenerateImageAsync(
global::Ideogram.ImageRequest imageRequest,
global::System.Collections.Generic.IList<string>? styleRefEmbeddings = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Ideogram.GenerateImageRequest
{
ImageRequest = imageRequest,
StyleRefEmbeddings = styleRefEmbeddings,
};

return await PostGenerateImageAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ partial void ProcessPostGenerateImageV3ResponseContent(
/// </param>
/// <param name="styleType">
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </param>
/// <param name="styleReferenceImages">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ partial void ProcessPostReframeImageResponseContent(
ref string content);

/// <summary>
/// Reframe<br/>
/// Reframe (legacy)<br/>
/// Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.<br/>
/// Image links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
Expand Down Expand Up @@ -292,7 +292,7 @@ partial void ProcessPostReframeImageResponseContent(
}

/// <summary>
/// Reframe<br/>
/// Reframe (legacy)<br/>
/// Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.<br/>
/// Image links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ partial void ProcessPostRemixImageResponseContent(
ref string content);

/// <summary>
/// Remix<br/>
/// Remix (legacy)<br/>
/// Remix provided images synchronously based on a given prompt and optional parameters.<br/>
/// Input images are cropped to the chosen aspect ratio before being remixed.<br/>
/// Supported image formats include JPEG, PNG, and WebP.<br/>
Expand Down Expand Up @@ -273,7 +273,7 @@ partial void ProcessPostRemixImageResponseContent(
}

/// <summary>
/// Remix<br/>
/// Remix (legacy)<br/>
/// Remix provided images synchronously based on a given prompt and optional parameters.<br/>
/// Input images are cropped to the chosen aspect ratio before being remixed.<br/>
/// Supported image formats include JPEG, PNG, and WebP.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ partial void ProcessPostRemixImageV3ResponseContent(
/// </param>
/// <param name="styleType">
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </param>
/// <param name="styleReferenceImages">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
public partial interface IGenerateClient
{
/// <summary>
/// Edit<br/>
/// Edit (legacy)<br/>
/// Edit a given image synchronously using the provided mask. The mask indicates which part of the image<br/>
/// should be edited, while the prompt and chosen style type can further guide the edit.<br/>
/// Supported image formats include JPEG, PNG, and WebP.<br/>
Expand All @@ -19,7 +19,7 @@ public partial interface IGenerateClient
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Edit<br/>
/// Edit (legacy)<br/>
/// Edit a given image synchronously using the provided mask. The mask indicates which part of the image<br/>
/// should be edited, while the prompt and chosen style type can further guide the edit.<br/>
/// Supported image formats include JPEG, PNG, and WebP.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
public partial interface IGenerateClient
{
/// <summary>
/// Generate<br/>
/// Generate (legacy)<br/>
/// Generates images synchronously based on a given prompt and optional parameters.<br/>
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
Expand All @@ -17,19 +17,15 @@ public partial interface IGenerateClient
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Generate<br/>
/// Generate (legacy)<br/>
/// Generates images synchronously based on a given prompt and optional parameters.<br/>
/// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
/// <param name="imageRequest"></param>
/// <param name="styleRefEmbeddings">
/// A list of base64 encoded binary embeddings.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ideogram.GenerateImageResponse> PostGenerateImageAsync(
global::Ideogram.ImageRequest imageRequest,
global::System.Collections.Generic.IList<string>? styleRefEmbeddings = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public partial interface IGenerateClient
/// </param>
/// <param name="styleType">
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </param>
/// <param name="styleReferenceImages">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
public partial interface IGenerateClient
{
/// <summary>
/// Reframe<br/>
/// Reframe (legacy)<br/>
/// Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.<br/>
/// Image links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
Expand All @@ -17,7 +17,7 @@ public partial interface IGenerateClient
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Reframe<br/>
/// Reframe (legacy)<br/>
/// Reframe a square image to a chosen resolution. The supported image formats include JPEG, PNG, and WebP.<br/>
/// Image links are available for a limited period of time; if you would like to keep the image, you must download it.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
public partial interface IGenerateClient
{
/// <summary>
/// Remix<br/>
/// Remix (legacy)<br/>
/// Remix provided images synchronously based on a given prompt and optional parameters.<br/>
/// Input images are cropped to the chosen aspect ratio before being remixed.<br/>
/// Supported image formats include JPEG, PNG, and WebP.<br/>
Expand All @@ -19,7 +19,7 @@ public partial interface IGenerateClient
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Remix<br/>
/// Remix (legacy)<br/>
/// Remix provided images synchronously based on a given prompt and optional parameters.<br/>
/// Input images are cropped to the chosen aspect ratio before being remixed.<br/>
/// Supported image formats include JPEG, PNG, and WebP.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public partial interface IGenerateClient
/// </param>
/// <param name="styleType">
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </param>
/// <param name="styleReferenceImages">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ public sealed partial class GenerateImageRequest
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Ideogram.ImageRequest ImageRequest { get; set; }

/// <summary>
/// A list of base64 encoded binary embeddings.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("style_ref_embeddings")]
public global::System.Collections.Generic.IList<string>? StyleRefEmbeddings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -31,18 +25,13 @@ public sealed partial class GenerateImageRequest
/// Initializes a new instance of the <see cref="GenerateImageRequest" /> class.
/// </summary>
/// <param name="imageRequest"></param>
/// <param name="styleRefEmbeddings">
/// A list of base64 encoded binary embeddings.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public GenerateImageRequest(
global::Ideogram.ImageRequest imageRequest,
global::System.Collections.Generic.IList<string>? styleRefEmbeddings)
global::Ideogram.ImageRequest imageRequest)
{
this.ImageRequest = imageRequest ?? throw new global::System.ArgumentNullException(nameof(imageRequest));
this.StyleRefEmbeddings = styleRefEmbeddings;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public sealed partial class GenerateImageRequestV3

/// <summary>
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </summary>
/// <example>GENERAL</example>
Expand Down Expand Up @@ -155,7 +155,7 @@ public sealed partial class GenerateImageRequestV3
/// </param>
/// <param name="styleType">
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </param>
/// <param name="styleReferenceImages">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public sealed partial class ImageGenerationObjectV3

/// <summary>
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </summary>
/// <example>GENERAL</example>
Expand Down Expand Up @@ -91,7 +91,7 @@ public sealed partial class ImageGenerationObjectV3
/// </param>
/// <param name="styleType">
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </param>
#if NET7_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public sealed partial class RemixImageRequestV3

/// <summary>
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </summary>
/// <example>GENERAL</example>
Expand Down Expand Up @@ -187,7 +187,7 @@ public sealed partial class RemixImageRequestV3
/// </param>
/// <param name="styleType">
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </param>
/// <param name="styleReferenceImages">
Expand Down
6 changes: 6 additions & 0 deletions src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public enum StyleType
///
/// </summary>
ANIME,
/// <summary>
///
/// </summary>
CUSTOM,
}

/// <summary>
Expand All @@ -53,6 +57,7 @@ public static string ToValueString(this StyleType value)
StyleType.DESIGN => "DESIGN",
StyleType.RENDER3D => "RENDER_3D",
StyleType.ANIME => "ANIME",
StyleType.CUSTOM => "CUSTOM",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -69,6 +74,7 @@ public static string ToValueString(this StyleType value)
"DESIGN" => StyleType.DESIGN,
"RENDER_3D" => StyleType.RENDER3D,
"ANIME" => StyleType.ANIME,
"CUSTOM" => StyleType.CUSTOM,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
{
/// <summary>
/// The style type to generate with.<br/>
/// Default Value: AUTO<br/>
/// Default Value: GENERAL<br/>
/// Example: GENERAL
/// </summary>
public enum StyleTypeV3
Expand Down
10 changes: 5 additions & 5 deletions src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,23 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<string>? Type23 { get; set; }
public global::Ideogram.GenerateImageRequestV3? Type23 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.GenerateImageRequestV3? Type24 { get; set; }
public global::Ideogram.ResolutionV3? Type24 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.ResolutionV3? Type25 { get; set; }
public global::Ideogram.AspectRatioV3? Type25 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.AspectRatioV3? Type26 { get; set; }
public global::Ideogram.RenderingSpeed? Type26 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.RenderingSpeed? Type27 { get; set; }
public global::System.Collections.Generic.IList<string>? Type27 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Loading
Loading