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 20, 2024
1 parent ad9ce9b commit 159c910
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ 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">
/// A request to generate a new image using a provided image and a prompt.
/// </param>
/// <param name="imageRequest"></param>
/// <param name="imageFile">
/// An image binary; only JPEG, WEBPs and PNGs are supported at this time
/// </param>
Expand All @@ -128,7 +126,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.InitialImageRequest imageRequest,
global::Ideogram.ImageRequest 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,9 +23,7 @@ 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">
/// A request to generate a new image using a provided image and a prompt.
/// </param>
/// <param name="imageRequest"></param>
/// <param name="imageFile">
/// An image binary; only JPEG, WEBPs and PNGs are supported at this time
/// </param>
Expand All @@ -35,7 +33,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.InitialImageRequest imageRequest,
global::Ideogram.ImageRequest 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.RechargeSettingsResponse? RechargeSettings { get; set; }
public global::Ideogram.RechargeSettings? 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.RechargeSettingsResponse? RechargeSettings { get; set; }
public global::Ideogram.RechargeSettings? 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.RechargeSettingsResponse? RechargeSettings { get; set; }
public global::Ideogram.RechargeSettings? 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.InitialImageRequest ImageRequest { get; set; }
public required global::Ideogram.ImageRequest ImageRequest { get; set; }

/// <summary>
/// An image binary; only JPEG, WEBPs and PNGs are supported at this time
Expand Down
14 changes: 7 additions & 7 deletions src/libs/Ideogram/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ideogram.InitialImageRequest? Type15 { get; set; }
public global::Ideogram.UpscaleImageRequest? Type15 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.UpscaleImageRequest? Type16 { get; set; }
public global::Ideogram.UpscaleInitialImageRequest? Type16 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.UpscaleInitialImageRequest? Type17 { get; set; }
public global::Ideogram.InitialImageRequest? Type17 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -121,19 +121,19 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ideogram.RechargeSettingsResponse? Type27 { get; set; }
public global::Ideogram.RechargeSettings? Type27 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.RechargeSettings? Type28 { get; set; }
public global::Ideogram.Price? Type28 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.Price? Type29 { get; set; }
public double? Type29 { get; set; }
/// <summary>
///
/// </summary>
public double? Type30 { get; set; }
public global::Ideogram.RechargeSettingsResponse? Type30 { get; set; }
/// <summary>
///
/// </summary>
Expand Down

0 comments on commit 159c910

Please sign in to comment.