From c7980ec2e277944786e5d7dc9996860141684ae1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 25 Sep 2024 06:27:18 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Ideogram.Models.ColorPaletteMember.g.cs | 3 +-- .../Generated/Ideogram.Models.ImageObject.g.cs | 8 ++++++++ src/libs/Ideogram/openapi.yaml | 10 +++++++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteMember.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteMember.g.cs index c5fa882..ea51029 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteMember.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteMember.g.cs @@ -21,8 +21,7 @@ public sealed partial class ColorPaletteMember /// Example: 0.25 /// [global::System.Text.Json.Serialization.JsonPropertyName("color_weight")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double ColorWeight { get; set; } + public double? ColorWeight { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ImageObject.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ImageObject.g.cs index 2a8bbe7..68417d0 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.ImageObject.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.ImageObject.g.cs @@ -45,6 +45,14 @@ public sealed partial class ImageObject [global::System.Text.Json.Serialization.JsonRequired] public required int Seed { get; set; } + /// + /// The style type to generate with; this is only applicable for models V_2 and above and should not be specified for model versions V_1.
+ /// Example: REALISTIC + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("style_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.StyleTypeJsonConverter))] + public global::Ideogram.StyleType? StyleType { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// diff --git a/src/libs/Ideogram/openapi.yaml b/src/libs/Ideogram/openapi.yaml index a867b5f..83d5130 100644 --- a/src/libs/Ideogram/openapi.yaml +++ b/src/libs/Ideogram/openapi.yaml @@ -531,12 +531,14 @@ components: description: A list of ImageObjects that contain the generated image(s). example: data: - - seed: 12345 + - style_type: REALISTIC + seed: 12345 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''s 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.' resolution: 1024x1024 url: https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g is_image_safe: true - - seed: 12345 + - style_type: REALISTIC + seed: 12345 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''s 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.' resolution: 1024x1024 url: https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g @@ -578,7 +580,10 @@ components: minimum: 0 type: integer example: 12345 + style_type: + $ref: '#/components/schemas/StyleType' example: + style_type: REALISTIC seed: 12345 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''s 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.' resolution: 1024x1024 @@ -1097,7 +1102,6 @@ components: title: ColorPaletteMember required: - color_hex - - color_weight type: object properties: color_hex: