Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 22, 2024
1 parent 30c4e69 commit 18e9848
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ partial void ProcessPostRemixImageResponseContent(
/// are cropped to the chosen aspect ratio before being remixed.<br/>
/// Supported image formats include JPEG, PNG, and WEBP
/// </summary>
/// <param name="imageRequest"></param>
/// <param name="imageRequest">
/// A request to generate a new image using a provided image and a prompt.
/// </param>
/// <param name="imageFile">
/// An image binary; only JPEG, WEBPs and PNGs are supported at this time
/// </param>
Expand All @@ -126,7 +128,7 @@ partial void ProcessPostRemixImageResponseContent(
/// <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> PostRemixImageAsync(
global::Ideogram.ImageRequest imageRequest,
global::Ideogram.InitialImageRequest imageRequest,
byte[] imageFile,
string imageFilename,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public partial interface IGenerateClient
/// are cropped to the chosen aspect ratio before being remixed.<br/>
/// Supported image formats include JPEG, PNG, and WEBP
/// </summary>
/// <param name="imageRequest"></param>
/// <param name="imageRequest">
/// A request to generate a new image using a provided image and a prompt.
/// </param>
/// <param name="imageFile">
/// An image binary; only JPEG, WEBPs and PNGs are supported at this time
/// </param>
Expand All @@ -33,7 +35,7 @@ public partial interface IGenerateClient
/// <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> PostRemixImageAsync(
global::Ideogram.ImageRequest imageRequest,
global::Ideogram.InitialImageRequest imageRequest,
byte[] imageFile,
string imageFilename,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public sealed partial class ManageApiSubscriptionResponse
public global::Ideogram.MetronomeLinks? MetronomeLinks { get; set; }

/// <summary>
/// The current recharge settings for the API subscription.
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("recharge_settings")]
public global::Ideogram.RechargeSettings? RechargeSettings { get; set; }
public global::Ideogram.RechargeSettingsResponse? RechargeSettings { get; set; }

/// <summary>
/// The URL for the user to manage the existing Stripe subscription plan.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ namespace Ideogram
public sealed partial class PostApiReactivateResponse
{
/// <summary>
/// The current recharge settings for the API subscription.
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("recharge_settings")]
public global::Ideogram.RechargeSettings? RechargeSettings { get; set; }
public global::Ideogram.RechargeSettingsResponse? RechargeSettings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ namespace Ideogram
public sealed partial class PostApiSubscriptionResponse
{
/// <summary>
/// The current recharge settings for the API subscription.
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("recharge_settings")]
public global::Ideogram.RechargeSettings? RechargeSettings { get; set; }
public global::Ideogram.RechargeSettingsResponse? RechargeSettings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace Ideogram
public sealed partial class RemixImageRequest
{
/// <summary>
///
/// A request to generate a new image using a provided image and a prompt.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image_request")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Ideogram.ImageRequest ImageRequest { get; set; }
public required global::Ideogram.InitialImageRequest ImageRequest { get; set; }

/// <summary>
/// An image binary; only JPEG, WEBPs and PNGs are supported at this time
Expand Down
12 changes: 6 additions & 6 deletions src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ideogram.UpscaleImageRequest? Type22 { get; set; }
public global::Ideogram.InitialImageRequest? Type22 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.UpscaleInitialImageRequest? Type23 { get; set; }
public global::Ideogram.UpscaleImageRequest? Type23 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.InitialImageRequest? Type24 { get; set; }
public global::Ideogram.UpscaleInitialImageRequest? Type24 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -149,15 +149,15 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ideogram.RechargeSettings? Type34 { get; set; }
public global::Ideogram.RechargeSettingsResponse? Type34 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.Price? Type35 { get; set; }
public global::Ideogram.RechargeSettings? Type35 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.RechargeSettingsResponse? Type36 { get; set; }
public global::Ideogram.Price? Type36 { get; set; }
/// <summary>
///
/// </summary>
Expand Down

0 comments on commit 18e9848

Please sign in to comment.