diff --git a/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs b/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs index 3fce22c..732f63c 100644 --- a/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.IVisionClient.PostDescribe.g.cs @@ -22,8 +22,8 @@ public partial interface IVisionClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task PostDescribeAsync( - byte[]? imageFile = default, - string? imageFilename = default, + byte[] imageFile, + string imageFilename, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.DescribeRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.DescribeRequest.g.cs index 9d9ab28..826aa2f 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.DescribeRequest.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.DescribeRequest.g.cs @@ -12,13 +12,15 @@ public sealed partial class DescribeRequest /// /// [global::System.Text.Json.Serialization.JsonPropertyName("image_file")] - public byte[]? ImageFile { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required byte[] ImageFile { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("image_filename")] - public string? ImageFilename { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required string ImageFilename { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs index 235fa44..7cb46ae 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.StyleType.g.cs @@ -9,6 +9,10 @@ namespace Ideogram /// public enum StyleType { + /// + /// + /// + AUTO, /// /// /// @@ -43,6 +47,7 @@ public static string ToValueString(this StyleType value) { return value switch { + StyleType.AUTO => "AUTO", StyleType.GENERAL => "GENERAL", StyleType.REALISTIC => "REALISTIC", StyleType.DESIGN => "DESIGN", @@ -58,6 +63,7 @@ public static string ToValueString(this StyleType value) { return value switch { + "AUTO" => StyleType.AUTO, "GENERAL" => StyleType.GENERAL, "REALISTIC" => StyleType.REALISTIC, "DESIGN" => StyleType.DESIGN, diff --git a/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs b/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs index cfd368e..840ff41 100644 --- a/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs @@ -43,19 +43,16 @@ partial void ProcessPostDescribeResponseContent( method: global::System.Net.Http.HttpMethod.Post, requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/describe", global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - if (request.ImageFile != default) - { - __httpRequestContent.Add( - content: 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()) + { + Headers = { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, + ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), }, - name: "image_file", - fileName: request.ImageFilename ?? string.Empty); - } + }, + name: "image_file", + fileName: request.ImageFilename ?? string.Empty); httpRequest.Content = __httpRequestContent; PrepareRequest( @@ -111,8 +108,8 @@ partial void ProcessPostDescribeResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task PostDescribeAsync( - byte[]? imageFile = default, - string? imageFilename = default, + byte[] imageFile, + string imageFilename, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::Ideogram.DescribeRequest diff --git a/src/libs/Ideogram/openapi.yaml b/src/libs/Ideogram/openapi.yaml index 2261f94..9ea0f4c 100644 --- a/src/libs/Ideogram/openapi.yaml +++ b/src/libs/Ideogram/openapi.yaml @@ -151,6 +151,8 @@ paths: description: Not authorized '402': description: Payment is required; is your payment method setup? + '404': + description: User does not have a subscription to reactivate. security: - BearerAuth: [ ] x-openapi-router-controller: external_api.generated.openapi.controllers.manage_controller @@ -374,6 +376,8 @@ components: - text: 'A meticulously illustrated cat with striped patterns, sitting upright. The cat''s 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.' - text: 'A meticulously illustrated cat with striped patterns, sitting upright. The cat''s 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.' DescribeRequest: + required: + - image_file type: object properties: image_file: @@ -943,6 +947,7 @@ components: StyleType: title: StyleType enum: + - AUTO - GENERAL - REALISTIC - DESIGN