From ff2346e909528e371044a2f3a13211e5ed0c4183 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 23 Apr 2026 16:24:19 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Ideogram.DatasetsClient.GetDataset.g.cs | 448 ++++++++++++++++++ ...gram.DatasetsClient.TrainDatasetModel.g.cs | 4 +- ...ogram.GenerateClient.PostV1EditImage.g.cs} | 80 ++-- .../Ideogram.IDatasetsClient.GetDataset.g.cs | 20 + ...ram.IDatasetsClient.TrainDatasetModel.g.cs | 4 +- ...gram.IGenerateClient.PostV1EditImage.g.cs} | 10 +- .../Ideogram.JsonSerializerContext.g.cs | 15 +- .../Ideogram.JsonSerializerContextTypes.g.cs | 106 +++-- ... => Ideogram.Models.DatasetFile.Json.g.cs} | 22 +- .../Ideogram.Models.DatasetFile.g.cs | 57 +++ ...ogram.Models.GetDatasetResponse.Json.g.cs} | 22 +- .../Ideogram.Models.GetDatasetResponse.g.cs | 87 ++++ ...deogram.Models.V1EditImageObject.Json.g.cs | 92 ++++ ...=> Ideogram.Models.V1EditImageObject.g.cs} | 10 +- ...ogram.Models.V1EditImagesRequest.Json.g.cs | 92 ++++ ... Ideogram.Models.V1EditImagesRequest.g.cs} | 10 +- ...ram.Models.V1EditImagesResponse.Json.g.cs} | 22 +- ...Ideogram.Models.V1EditImagesResponse.g.cs} | 14 +- .../Generated/autosdk.generated-examples.json | 93 ++-- src/libs/Ideogram/openapi.json | 258 +++++++--- 20 files changed, 1211 insertions(+), 255 deletions(-) create mode 100644 src/libs/Ideogram/Generated/Ideogram.DatasetsClient.GetDataset.g.cs rename src/libs/Ideogram/Generated/{Ideogram.GenerateClient.PostEditImageV2V3.g.cs => Ideogram.GenerateClient.PostV1EditImage.g.cs} (93%) create mode 100644 src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.GetDataset.g.cs rename src/libs/Ideogram/Generated/{Ideogram.IGenerateClient.PostEditImageV2V3.g.cs => Ideogram.IGenerateClient.PostV1EditImage.g.cs} (91%) rename src/libs/Ideogram/Generated/{Ideogram.Models.EditImageGenerationObjectV3.Json.g.cs => Ideogram.Models.DatasetFile.Json.g.cs} (85%) create mode 100644 src/libs/Ideogram/Generated/Ideogram.Models.DatasetFile.g.cs rename src/libs/Ideogram/Generated/{Ideogram.Models.EditImageGenerationResponseV3.Json.g.cs => Ideogram.Models.GetDatasetResponse.Json.g.cs} (85%) create mode 100644 src/libs/Ideogram/Generated/Ideogram.Models.GetDatasetResponse.g.cs create mode 100644 src/libs/Ideogram/Generated/Ideogram.Models.V1EditImageObject.Json.g.cs rename src/libs/Ideogram/Generated/{Ideogram.Models.EditImageGenerationObjectV3.g.cs => Ideogram.Models.V1EditImageObject.g.cs} (95%) create mode 100644 src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesRequest.Json.g.cs rename src/libs/Ideogram/Generated/{Ideogram.Models.EditImageV2RequestV3.g.cs => Ideogram.Models.V1EditImagesRequest.g.cs} (95%) rename src/libs/Ideogram/Generated/{Ideogram.Models.EditImageV2RequestV3.Json.g.cs => Ideogram.Models.V1EditImagesResponse.Json.g.cs} (87%) rename src/libs/Ideogram/Generated/{Ideogram.Models.EditImageGenerationResponseV3.g.cs => Ideogram.Models.V1EditImagesResponse.g.cs} (88%) diff --git a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.GetDataset.g.cs b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.GetDataset.g.cs new file mode 100644 index 0000000..7f3ca39 --- /dev/null +++ b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.GetDataset.g.cs @@ -0,0 +1,448 @@ + +#nullable enable + +namespace Ideogram +{ + public partial class DatasetsClient + { + + + private static readonly global::Ideogram.EndPointSecurityRequirement s_GetDatasetSecurityRequirement0 = + new global::Ideogram.EndPointSecurityRequirement + { + Authorizations = new global::Ideogram.EndPointAuthorizationRequirement[] + { new global::Ideogram.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Ideogram.EndPointSecurityRequirement[] s_GetDatasetSecurityRequirements = + new global::Ideogram.EndPointSecurityRequirement[] + { s_GetDatasetSecurityRequirement0, + }; + partial void PrepareGetDatasetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string datasetId); + partial void PrepareGetDatasetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string datasetId); + partial void ProcessGetDatasetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetDatasetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get a dataset
+ /// Returns a dataset by ID, including the total number of files and a list of each file's name and size in bytes. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetDatasetAsync( + string datasetId, + global::Ideogram.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetDatasetArguments( + httpClient: HttpClient, + datasetId: ref datasetId); + + + var __authorizations = global::Ideogram.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetDatasetSecurityRequirements, + operationName: "GetDatasetAsync"); + + using var __timeoutCancellationTokenSource = global::Ideogram.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Ideogram.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Ideogram.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + var __pathBuilder = new global::Ideogram.PathBuilder( + path: $"/datasets/{datasetId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Ideogram.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Ideogram.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetDatasetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + datasetId: datasetId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Ideogram.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetDataset", + methodName: "GetDatasetAsync", + pathTemplate: "$\"/datasets/{datasetId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Ideogram.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetDataset", + methodName: "GetDatasetAsync", + pathTemplate: "$\"/datasets/{datasetId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Ideogram.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Ideogram.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::Ideogram.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetDataset", + methodName: "GetDatasetAsync", + pathTemplate: "$\"/datasets/{datasetId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Ideogram.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetDatasetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Ideogram.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetDataset", + methodName: "GetDatasetAsync", + pathTemplate: "$\"/datasets/{datasetId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Ideogram.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetDataset", + methodName: "GetDatasetAsync", + pathTemplate: "$\"/datasets/{datasetId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::Ideogram.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + throw new global::Ideogram.ApiException( + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + statusCode: __response.StatusCode) + { + ResponseBody = __content_404, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetDatasetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::Ideogram.GetDatasetResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::Ideogram.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return + await global::Ideogram.GetDatasetResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::Ideogram.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs index 063e9d3..0bb0ff0 100644 --- a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs @@ -45,7 +45,7 @@ partial void ProcessTrainDatasetModelResponseContent( /// /// Train a model from a dataset
- /// Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status. + /// Start training a custom model from a dataset. The dataset must contain at least 15 images and a maximum of 100 images. Returns the model ID and training status. ///
/// /// @@ -494,7 +494,7 @@ partial void ProcessTrainDatasetModelResponseContent( } /// /// Train a model from a dataset
- /// Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status. + /// Start training a custom model from a dataset. The dataset must contain at least 15 images and a maximum of 100 images. Returns the model ID and training status. ///
/// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV2V3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostV1EditImage.g.cs similarity index 93% rename from src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV2V3.g.cs rename to src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostV1EditImage.g.cs index 6466027..3e20417 100644 --- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV2V3.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostV1EditImage.g.cs @@ -7,7 +7,7 @@ public partial class GenerateClient { - private static readonly global::Ideogram.EndPointSecurityRequirement s_PostEditImageV2V3SecurityRequirement0 = + private static readonly global::Ideogram.EndPointSecurityRequirement s_PostV1EditImageSecurityRequirement0 = new global::Ideogram.EndPointSecurityRequirement { Authorizations = new global::Ideogram.EndPointAuthorizationRequirement[] @@ -21,28 +21,28 @@ public partial class GenerateClient }, }, }; - private static readonly global::Ideogram.EndPointSecurityRequirement[] s_PostEditImageV2V3SecurityRequirements = + private static readonly global::Ideogram.EndPointSecurityRequirement[] s_PostV1EditImageSecurityRequirements = new global::Ideogram.EndPointSecurityRequirement[] - { s_PostEditImageV2V3SecurityRequirement0, + { s_PostV1EditImageSecurityRequirement0, }; - partial void PreparePostEditImageV2V3Arguments( + partial void PreparePostV1EditImageArguments( global::System.Net.Http.HttpClient httpClient, - global::Ideogram.EditImageV2RequestV3 request); - partial void PreparePostEditImageV2V3Request( + global::Ideogram.V1EditImagesRequest request); + partial void PreparePostV1EditImageRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Ideogram.EditImageV2RequestV3 request); - partial void ProcessPostEditImageV2V3Response( + global::Ideogram.V1EditImagesRequest request); + partial void ProcessPostV1EditImageResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessPostEditImageV2V3ResponseContent( + partial void ProcessPostV1EditImageResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Edit with Ideogram V2
+ /// Edit images with a prompt
/// Edit one or more images using a text prompt. Provide images via file upload
/// or Ideogram image URLs, and describe the desired edit in your prompt.
/// Supported image formats include JPEG, PNG, and WebP.
@@ -52,9 +52,9 @@ partial void ProcessPostEditImageV2V3ResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task PostEditImageV2V3Async( + public async global::System.Threading.Tasks.Task PostV1EditImageAsync( - global::Ideogram.EditImageV2RequestV3 request, + global::Ideogram.V1EditImagesRequest request, global::Ideogram.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -62,15 +62,15 @@ partial void ProcessPostEditImageV2V3ResponseContent( PrepareArguments( client: HttpClient); - PreparePostEditImageV2V3Arguments( + PreparePostV1EditImageArguments( httpClient: HttpClient, request: request); var __authorizations = global::Ideogram.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_PostEditImageV2V3SecurityRequirements, - operationName: "PostEditImageV2V3Async"); + securityRequirements: s_PostV1EditImageSecurityRequirements, + operationName: "PostV1EditImageAsync"); using var __timeoutCancellationTokenSource = global::Ideogram.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -89,7 +89,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() { var __pathBuilder = new global::Ideogram.PathBuilder( - path: "/v1/ideogram-v3/instructional-edit", + path: "/v1/edit", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Ideogram.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -198,7 +198,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PreparePostEditImageV2V3Request( + PreparePostV1EditImageRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -218,9 +218,9 @@ partial void ProcessPostEditImageV2V3ResponseContent( await global::Ideogram.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEditImageV2V3", - methodName: "PostEditImageV2V3Async", - pathTemplate: "\"/v1/ideogram-v3/instructional-edit\"", + operationId: "PostV1EditImage", + methodName: "PostV1EditImageAsync", + pathTemplate: "\"/v1/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -245,9 +245,9 @@ partial void ProcessPostEditImageV2V3ResponseContent( await global::Ideogram.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEditImageV2V3", - methodName: "PostEditImageV2V3Async", - pathTemplate: "\"/v1/ideogram-v3/instructional-edit\"", + operationId: "PostV1EditImage", + methodName: "PostV1EditImageAsync", + pathTemplate: "\"/v1/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -280,9 +280,9 @@ partial void ProcessPostEditImageV2V3ResponseContent( await global::Ideogram.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEditImageV2V3", - methodName: "PostEditImageV2V3Async", - pathTemplate: "\"/v1/ideogram-v3/instructional-edit\"", + operationId: "PostV1EditImage", + methodName: "PostV1EditImageAsync", + pathTemplate: "\"/v1/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -319,7 +319,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessPostEditImageV2V3Response( + ProcessPostV1EditImageResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -327,9 +327,9 @@ partial void ProcessPostEditImageV2V3ResponseContent( await global::Ideogram.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEditImageV2V3", - methodName: "PostEditImageV2V3Async", - pathTemplate: "\"/v1/ideogram-v3/instructional-edit\"", + operationId: "PostV1EditImage", + methodName: "PostV1EditImageAsync", + pathTemplate: "\"/v1/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -347,9 +347,9 @@ partial void ProcessPostEditImageV2V3ResponseContent( await global::Ideogram.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Ideogram.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEditImageV2V3", - methodName: "PostEditImageV2V3Async", - pathTemplate: "\"/v1/ideogram-v3/instructional-edit\"", + operationId: "PostV1EditImage", + methodName: "PostV1EditImageAsync", + pathTemplate: "\"/v1/edit\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -578,7 +578,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessPostEditImageV2V3ResponseContent( + ProcessPostV1EditImageResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -588,7 +588,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( __response.EnsureSuccessStatusCode(); return - global::Ideogram.EditImageGenerationResponseV3.FromJson(__content, JsonSerializerContext) ?? + global::Ideogram.V1EditImagesResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -618,7 +618,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( ).ConfigureAwait(false); return - await global::Ideogram.EditImageGenerationResponseV3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Ideogram.V1EditImagesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -658,7 +658,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( } } /// - /// Edit with Ideogram V2
+ /// Edit images with a prompt
/// Edit one or more images using a text prompt. Provide images via file upload
/// or Ideogram image URLs, and describe the desired edit in your prompt.
/// Supported image formats include JPEG, PNG, and WebP.
@@ -700,7 +700,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task PostEditImageV2V3Async( + public async global::System.Threading.Tasks.Task PostV1EditImageAsync( string prompt, global::System.Collections.Generic.IList? images = default, global::System.Collections.Generic.IList? imageUrls = default, @@ -713,7 +713,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( global::Ideogram.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Ideogram.EditImageV2RequestV3 + var __request = new global::Ideogram.V1EditImagesRequest { Prompt = prompt, Images = images, @@ -726,7 +726,7 @@ partial void ProcessPostEditImageV2V3ResponseContent( TransparentBackground = transparentBackground, }; - return await PostEditImageV2V3Async( + return await PostV1EditImageAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.GetDataset.g.cs b/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.GetDataset.g.cs new file mode 100644 index 0000000..45d893e --- /dev/null +++ b/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.GetDataset.g.cs @@ -0,0 +1,20 @@ +#nullable enable + +namespace Ideogram +{ + public partial interface IDatasetsClient + { + /// + /// Get a dataset
+ /// Returns a dataset by ID, including the total number of files and a list of each file's name and size in bytes. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetDatasetAsync( + string datasetId, + global::Ideogram.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.TrainDatasetModel.g.cs b/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.TrainDatasetModel.g.cs index d562ba3..3a29a99 100644 --- a/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.TrainDatasetModel.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.TrainDatasetModel.g.cs @@ -6,7 +6,7 @@ public partial interface IDatasetsClient { /// /// Train a model from a dataset
- /// Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status. + /// Start training a custom model from a dataset. The dataset must contain at least 15 images and a maximum of 100 images. Returns the model ID and training status. ///
/// /// @@ -21,7 +21,7 @@ public partial interface IDatasetsClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Train a model from a dataset
- /// Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status. + /// Start training a custom model from a dataset. The dataset must contain at least 15 images and a maximum of 100 images. Returns the model ID and training status. ///
/// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImageV2V3.g.cs b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostV1EditImage.g.cs similarity index 91% rename from src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImageV2V3.g.cs rename to src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostV1EditImage.g.cs index dfd0a36..37dd6d9 100644 --- a/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImageV2V3.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostV1EditImage.g.cs @@ -5,7 +5,7 @@ namespace Ideogram public partial interface IGenerateClient { /// - /// Edit with Ideogram V2
+ /// Edit images with a prompt
/// Edit one or more images using a text prompt. Provide images via file upload
/// or Ideogram image URLs, and describe the desired edit in your prompt.
/// Supported image formats include JPEG, PNG, and WebP.
@@ -15,13 +15,13 @@ public partial interface IGenerateClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task PostEditImageV2V3Async( + global::System.Threading.Tasks.Task PostV1EditImageAsync( - global::Ideogram.EditImageV2RequestV3 request, + global::Ideogram.V1EditImagesRequest request, global::Ideogram.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Edit with Ideogram V2
+ /// Edit images with a prompt
/// Edit one or more images using a text prompt. Provide images via file upload
/// or Ideogram image URLs, and describe the desired edit in your prompt.
/// Supported image formats include JPEG, PNG, and WebP.
@@ -63,7 +63,7 @@ public partial interface IGenerateClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task PostEditImageV2V3Async( + global::System.Threading.Tasks.Task PostV1EditImageAsync( string prompt, global::System.Collections.Generic.IList? images = default, global::System.Collections.Generic.IList? imageUrls = default, diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContext.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContext.g.cs index 7d3c25e..7930d8d 100644 --- a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContext.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContext.g.cs @@ -197,7 +197,7 @@ namespace Ideogram [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.UpscaleFactor), TypeInfoPropertyName = "UpscaleFactor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.RemixImageRequestV3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.EditImageRequestV3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.EditImageV2RequestV3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.V1EditImagesRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.TryOnRequestV3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ReframeImageRequestV3))] @@ -222,9 +222,9 @@ namespace Ideogram [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ImageGenerationResponseV3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ImageGenerationObjectV3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.EditImageGenerationResponseV3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.EditImageGenerationObjectV3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.V1EditImagesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.V1EditImageObject))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ImageGenerationResponseV4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ImageGenerationObjectV4))] @@ -332,6 +332,10 @@ namespace Ideogram [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.Dataset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetIdentifier))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.CreateDatasetRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GetDatasetResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.DatasetFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.UploadDatasetAssetsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.DatasetUploadSucceededAsset))] @@ -368,7 +372,7 @@ namespace Ideogram [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -392,6 +396,7 @@ namespace Ideogram [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs index 5e776da..27fdbca 100644 --- a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs @@ -152,7 +152,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Ideogram.EditImageV2RequestV3? Type31 { get; set; } + public global::Ideogram.V1EditImagesRequest? Type31 { get; set; } /// /// /// @@ -252,15 +252,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Ideogram.EditImageGenerationResponseV3? Type56 { get; set; } + public global::Ideogram.V1EditImagesResponse? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type57 { get; set; } + public global::System.Collections.Generic.IList? Type57 { get; set; } /// /// /// - public global::Ideogram.EditImageGenerationObjectV3? Type58 { get; set; } + public global::Ideogram.V1EditImageObject? Type58 { get; set; } /// /// /// @@ -692,123 +692,139 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Ideogram.UploadDatasetAssetsResponse? Type166 { get; set; } + public global::Ideogram.GetDatasetResponse? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::System.Collections.Generic.IList? Type167 { get; set; } /// /// /// - public global::Ideogram.DatasetUploadSucceededAsset? Type168 { get; set; } + public global::Ideogram.DatasetFile? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public long? Type169 { get; set; } /// /// /// - public global::Ideogram.DatasetUploadFailedAsset? Type170 { get; set; } + public global::Ideogram.UploadDatasetAssetsResponse? Type170 { get; set; } /// /// /// - public global::Ideogram.DatasetAssetFailureReason? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::Ideogram.UploadDatasetAssetsRequest? Type172 { get; set; } + public global::Ideogram.DatasetUploadSucceededAsset? Type172 { get; set; } /// /// /// - public global::Ideogram.TrainDatasetModelResponse? Type173 { get; set; } + public global::System.Collections.Generic.IList? Type173 { get; set; } /// /// /// - public global::Ideogram.TrainDatasetModelRequest? Type174 { get; set; } + public global::Ideogram.DatasetUploadFailedAsset? Type174 { get; set; } /// /// /// - public global::Ideogram.TrainDatasetModelRequestBaseModelVersion? Type175 { get; set; } + public global::Ideogram.DatasetAssetFailureReason? Type175 { get; set; } /// /// /// - public double? Type176 { get; set; } + public global::Ideogram.UploadDatasetAssetsRequest? Type176 { get; set; } /// /// /// - public global::Ideogram.ListModelsResponse? Type177 { get; set; } + public global::Ideogram.TrainDatasetModelResponse? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::Ideogram.TrainDatasetModelRequest? Type178 { get; set; } /// /// /// - public global::Ideogram.CustomModel? Type179 { get; set; } + public global::Ideogram.TrainDatasetModelRequestBaseModelVersion? Type179 { get; set; } /// /// /// - public global::Ideogram.ModelStatus? Type180 { get; set; } + public double? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::Ideogram.ListModelsResponse? Type181 { get; set; } /// /// /// - public global::Ideogram.TrainingRun? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::Ideogram.TrainingRunStatus? Type183 { get; set; } + public global::Ideogram.CustomModel? Type183 { get; set; } /// /// /// - public global::Ideogram.GetModelResponse? Type184 { get; set; } + public global::Ideogram.ModelStatus? Type184 { get; set; } /// /// /// - public global::Ideogram.ColorPaletteWithPresetName? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::Ideogram.ColorPaletteWithMembers? Type186 { get; set; } + public global::Ideogram.TrainingRun? Type186 { get; set; } /// /// /// - public global::Ideogram.ColorPalettePresetName? Type187 { get; set; } + public global::Ideogram.TrainingRunStatus? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::Ideogram.GetModelResponse? Type188 { get; set; } /// /// /// - public global::Ideogram.ColorPaletteMember? Type189 { get; set; } + public global::Ideogram.ColorPaletteWithPresetName? Type189 { get; set; } /// /// /// - public global::Ideogram.AssetType? Type190 { get; set; } + public global::Ideogram.ColorPaletteWithMembers? Type190 { get; set; } /// /// /// - public global::Ideogram.PostInternalTesting200Response? Type191 { get; set; } + public global::Ideogram.ColorPalettePresetName? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::System.Collections.Generic.IList? Type192 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type193 { get; set; } + public global::Ideogram.ColorPaletteMember? Type193 { get; set; } /// /// /// - public global::Ideogram.ListCustomModelsScope? Type194 { get; set; } + public global::Ideogram.AssetType? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::Ideogram.PostInternalTesting200Response? Type195 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type196 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type197 { get; set; } + /// + /// + /// + public global::Ideogram.ListCustomModelsScope? Type198 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type199 { get; set; } /// /// @@ -837,7 +853,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// @@ -933,34 +949,38 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationObjectV3.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.DatasetFile.Json.g.cs similarity index 85% rename from src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationObjectV3.Json.g.cs rename to src/libs/Ideogram/Generated/Ideogram.Models.DatasetFile.Json.g.cs index 3aa4da4..574df95 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationObjectV3.Json.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.DatasetFile.Json.g.cs @@ -2,7 +2,7 @@ namespace Ideogram { - public sealed partial class EditImageGenerationObjectV3 + public sealed partial class DatasetFile { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Ideogram.EditImageGenerationObjectV3? FromJson( + public static global::Ideogram.DatasetFile? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Ideogram.EditImageGenerationObjectV3), - jsonSerializerContext) as global::Ideogram.EditImageGenerationObjectV3; + typeof(global::Ideogram.DatasetFile), + jsonSerializerContext) as global::Ideogram.DatasetFile; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Ideogram.EditImageGenerationObjectV3? FromJson( + public static global::Ideogram.DatasetFile? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Ideogram.EditImageGenerationObjectV3), - jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.EditImageGenerationObjectV3; + typeof(global::Ideogram.DatasetFile), + jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.DatasetFile; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.DatasetFile.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.DatasetFile.g.cs new file mode 100644 index 0000000..b74aaa7 --- /dev/null +++ b/src/libs/Ideogram/Generated/Ideogram.Models.DatasetFile.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Ideogram +{ + /// + /// A file in a dataset.
+ /// Example: {"file_name":"file_name","file_size_bytes":6} + ///
+ public sealed partial class DatasetFile + { + /// + /// Filename of the file in the dataset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_name")] + public string? FileName { get; set; } + + /// + /// Size of the file in bytes, if available. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_size_bytes")] + public long? FileSizeBytes { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Filename of the file in the dataset. + /// + /// + /// Size of the file in bytes, if available. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DatasetFile( + string? fileName, + long? fileSizeBytes) + { + this.FileName = fileName; + this.FileSizeBytes = fileSizeBytes; + } + + /// + /// Initializes a new instance of the class. + /// + public DatasetFile() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationResponseV3.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GetDatasetResponse.Json.g.cs similarity index 85% rename from src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationResponseV3.Json.g.cs rename to src/libs/Ideogram/Generated/Ideogram.Models.GetDatasetResponse.Json.g.cs index 5d26595..a0ffdb1 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationResponseV3.Json.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.GetDatasetResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Ideogram { - public sealed partial class EditImageGenerationResponseV3 + public sealed partial class GetDatasetResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Ideogram.EditImageGenerationResponseV3? FromJson( + public static global::Ideogram.GetDatasetResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Ideogram.EditImageGenerationResponseV3), - jsonSerializerContext) as global::Ideogram.EditImageGenerationResponseV3; + typeof(global::Ideogram.GetDatasetResponse), + jsonSerializerContext) as global::Ideogram.GetDatasetResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Ideogram.EditImageGenerationResponseV3? FromJson( + public static global::Ideogram.GetDatasetResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Ideogram.EditImageGenerationResponseV3), - jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.EditImageGenerationResponseV3; + typeof(global::Ideogram.GetDatasetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.GetDatasetResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GetDatasetResponse.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GetDatasetResponse.g.cs new file mode 100644 index 0000000..d88e2b0 --- /dev/null +++ b/src/libs/Ideogram/Generated/Ideogram.Models.GetDatasetResponse.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace Ideogram +{ + /// + /// Detailed view of a dataset, including its files.
+ /// Example: {"file_count":0,"files":[{"file_name":"file_name","file_size_bytes":6},{"file_name":"file_name","file_size_bytes":6}],"dataset":{"creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","dataset_id":"dataset_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}},"custom_model_id":"custom_model_id"} + ///
+ public sealed partial class GetDatasetResponse + { + /// + /// A dataset for organizing training images.
+ /// Example: {"creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","dataset_id":"dataset_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}} + ///
+ /// {"creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","dataset_id":"dataset_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}} + [global::System.Text.Json.Serialization.JsonPropertyName("dataset")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Ideogram.Dataset Dataset { get; set; } + + /// + /// Total number of files in the dataset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int FileCount { get; set; } + + /// + /// List of files in the dataset.
+ /// Default Value: [] + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("files")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Files { get; set; } + + /// + /// ID of the custom model trained from this dataset, if one exists. Null if no model has been trained yet. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_model_id")] + public string? CustomModelId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A dataset for organizing training images.
+ /// Example: {"creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","dataset_id":"dataset_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}} + /// + /// + /// Total number of files in the dataset. + /// + /// + /// List of files in the dataset.
+ /// Default Value: [] + /// + /// + /// ID of the custom model trained from this dataset, if one exists. Null if no model has been trained yet. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetDatasetResponse( + global::Ideogram.Dataset dataset, + int fileCount, + global::System.Collections.Generic.IList files, + string? customModelId) + { + this.Dataset = dataset ?? throw new global::System.ArgumentNullException(nameof(dataset)); + this.FileCount = fileCount; + this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files)); + this.CustomModelId = customModelId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetDatasetResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImageObject.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImageObject.Json.g.cs new file mode 100644 index 0000000..4860310 --- /dev/null +++ b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImageObject.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Ideogram +{ + public sealed partial class V1EditImageObject + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Ideogram.V1EditImageObject? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Ideogram.V1EditImageObject), + jsonSerializerContext) as global::Ideogram.V1EditImageObject; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Ideogram.V1EditImageObject? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Ideogram.V1EditImageObject), + jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.V1EditImageObject; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationObjectV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImageObject.g.cs similarity index 95% rename from src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationObjectV3.g.cs rename to src/libs/Ideogram/Generated/Ideogram.Models.V1EditImageObject.g.cs index 901453c..cdfd227 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationObjectV3.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImageObject.g.cs @@ -6,7 +6,7 @@ namespace Ideogram /// /// Example: {"style_type":"GENERAL","seed":12345,"upscaled_resolution":"4096x4096","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\u0027s 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":"4096x4096","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true} /// - public sealed partial class EditImageGenerationObjectV3 + public sealed partial class V1EditImageObject { /// /// The direct link to the image generated.
@@ -75,7 +75,7 @@ public sealed partial class EditImageGenerationObjectV3 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The prompt used for the generation. This may be different from the original prompt.
@@ -108,7 +108,7 @@ public sealed partial class EditImageGenerationObjectV3 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public EditImageGenerationObjectV3( + public V1EditImageObject( string prompt, string resolution, bool isImageSafe, @@ -127,9 +127,9 @@ public EditImageGenerationObjectV3( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public EditImageGenerationObjectV3() + public V1EditImageObject() { } } diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesRequest.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesRequest.Json.g.cs new file mode 100644 index 0000000..567ca65 --- /dev/null +++ b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Ideogram +{ + public sealed partial class V1EditImagesRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Ideogram.V1EditImagesRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Ideogram.V1EditImagesRequest), + jsonSerializerContext) as global::Ideogram.V1EditImagesRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Ideogram.V1EditImagesRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Ideogram.V1EditImagesRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.V1EditImagesRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageV2RequestV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesRequest.g.cs similarity index 95% rename from src/libs/Ideogram/Generated/Ideogram.Models.EditImageV2RequestV3.g.cs rename to src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesRequest.g.cs index a1ef930..64369e8 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageV2RequestV3.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesRequest.g.cs @@ -6,7 +6,7 @@ namespace Ideogram /// /// /// - public sealed partial class EditImageV2RequestV3 + public sealed partial class V1EditImagesRequest { /// /// The prompt describing the desired edit.
@@ -83,7 +83,7 @@ public sealed partial class EditImageV2RequestV3 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The prompt describing the desired edit.
@@ -121,7 +121,7 @@ public sealed partial class EditImageV2RequestV3 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public EditImageV2RequestV3( + public V1EditImagesRequest( string prompt, global::System.Collections.Generic.IList? images, global::System.Collections.Generic.IList? imageUrls, @@ -144,9 +144,9 @@ public EditImageV2RequestV3( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public EditImageV2RequestV3() + public V1EditImagesRequest() { } } diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageV2RequestV3.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesResponse.Json.g.cs similarity index 87% rename from src/libs/Ideogram/Generated/Ideogram.Models.EditImageV2RequestV3.Json.g.cs rename to src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesResponse.Json.g.cs index 5ae36f3..34e86dc 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageV2RequestV3.Json.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Ideogram { - public sealed partial class EditImageV2RequestV3 + public sealed partial class V1EditImagesResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Ideogram.EditImageV2RequestV3? FromJson( + public static global::Ideogram.V1EditImagesResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Ideogram.EditImageV2RequestV3), - jsonSerializerContext) as global::Ideogram.EditImageV2RequestV3; + typeof(global::Ideogram.V1EditImagesResponse), + jsonSerializerContext) as global::Ideogram.V1EditImagesResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Ideogram.EditImageV2RequestV3? FromJson( + public static global::Ideogram.V1EditImagesResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Ideogram.EditImageV2RequestV3), - jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.EditImageV2RequestV3; + typeof(global::Ideogram.V1EditImagesResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.V1EditImagesResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationResponseV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesResponse.g.cs similarity index 88% rename from src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationResponseV3.g.cs rename to src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesResponse.g.cs index c4cc232..337ad7e 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.EditImageGenerationResponseV3.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.V1EditImagesResponse.g.cs @@ -8,7 +8,7 @@ namespace Ideogram /// Images links are available for a limited period of time; if you would like to keep the image, you must download it.
/// Example: {"data":[{"style_type":"GENERAL","seed":12345,"upscaled_resolution":"4096x4096","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\u0027s 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":"4096x4096","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true},{"style_type":"GENERAL","seed":12345,"upscaled_resolution":"4096x4096","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\u0027s 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":"4096x4096","url":"https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804\u0026sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89","is_image_safe":true}],"created":"2000-01-23T04:56:07\u002B00:00"} ///
- public sealed partial class EditImageGenerationResponseV3 + public sealed partial class V1EditImagesResponse { /// /// The time the request was created. @@ -22,7 +22,7 @@ public sealed partial class EditImageGenerationResponseV3 /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Data { get; set; } + public required global::System.Collections.Generic.IList Data { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,7 +31,7 @@ public sealed partial class EditImageGenerationResponseV3 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The time the request was created. @@ -42,18 +42,18 @@ public sealed partial class EditImageGenerationResponseV3 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public EditImageGenerationResponseV3( + public V1EditImagesResponse( global::System.DateTime created, - global::System.Collections.Generic.IList data) + global::System.Collections.Generic.IList data) { this.Created = created; this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public EditImageGenerationResponseV3() + public V1EditImagesResponse() { } } diff --git a/src/libs/Ideogram/Generated/autosdk.generated-examples.json b/src/libs/Ideogram/Generated/autosdk.generated-examples.json index b955356..c764fa9 100644 --- a/src/libs/Ideogram/Generated/autosdk.generated-examples.json +++ b/src/libs/Ideogram/Generated/autosdk.generated-examples.json @@ -35,6 +35,17 @@ }, { "Order": 4, + "Title": "Get a dataset", + "Slug": "get-dataset", + "Description": "Returns a dataset by ID, including the total number of files and a list of each file\u0027s name and size in bytes.", + "Language": "http", + "Code": "### Get a dataset\n# @name get_dataset\nGET {{host}}/datasets/{{dataset_id}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Dataset retrieved successfully\n# Content-Type: application/json\n# 401\n# Description: Unauthorized\n# 404\n# Description: Dataset not found", + "Format": "http", + "OperationId": "get_dataset", + "Setup": null + }, + { + "Order": 5, "Title": "List datasets", "Slug": "list-datasets", "Description": "Lists all datasets for the authenticated user", @@ -45,10 +56,10 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 5, + "Order": 6, "Title": "Train a model from a dataset", "Slug": "train-dataset-model", - "Description": "Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status.", + "Description": "Start training a custom model from a dataset. The dataset must contain at least 15 images and a maximum of 100 images. Returns the model ID and training status.", "Language": "http", "Code": "### Train a model from a dataset\n# @name train_dataset_model\nPOST {{host}}/datasets/{{dataset_id}}/train_model\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model_name\u0022: \u0022my-custom-model\u0022,\n \u0022lora_rank\u0022: 64,\n \u0022num_chips\u0022: 32,\n \u0022ema\u0022: 0.999,\n \u0022base_model_version\u0022: \u0022V_3_1\u0022,\n \u0022training_steps\u0022: 1000,\n \u0022learning_rate\u0022: 0.0001\n}\n\n## Responses\n# 200\n# Description: Training started successfully\n# Content-Type: application/json\n# 400\n# Description: Bad request\n# 401\n# Description: Unauthorized\n# 404\n# Description: Dataset not found", "Format": "http", @@ -56,7 +67,7 @@ "Setup": null }, { - "Order": 6, + "Order": 7, "Title": "Upload assets to a dataset", "Slug": "upload-dataset-assets", "Description": "Upload image assets to a dataset for model training. Accepts individual images (JPEG, PNG, WebP), optional .txt caption sidecar files, and/or ZIP archives containing images and captions. A dataset can contain up to 100 images.", @@ -67,7 +78,7 @@ "Setup": null }, { - "Order": 7, + "Order": 8, "Title": "Edit (legacy)", "Slug": "post-edit-image", "Description": "Edit a given image synchronously using the provided mask. The mask indicates which part of the image\nshould be edited, while the prompt and chosen style type can further guide the edit.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.", @@ -77,17 +88,6 @@ "OperationId": "post_edit_image", "Setup": null }, - { - "Order": 8, - "Title": "Edit with Ideogram V2", - "Slug": "post-edit-image-v2-v3", - "Description": "Edit one or more images using a text prompt. Provide images via file upload\nor Ideogram image URLs, and describe the desired edit in your prompt.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.", - "Language": "http", - "Code": "### Edit with Ideogram V2\n# @name post_edit_image_v2_v3\nPOST {{host}}/v1/ideogram-v3/instructional-edit\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data\nAccept: application/json\n\n## Responses\n# 200\n# Description: Image edits generated successfully.\n# Content-Type: application/json\n# 400\n# Description: Invalid input provided.\n# 401\n# Description: Not authorized to generate an image.\n# 402\n# Description: Insufficient credits or quota.\n# 422\n# Description: Prompt or provided image failed safety checks.\n# Content-Type: application/json\n# 429\n# Description: Too many requests.\n# 503\n# Description: Image generation service temporarily unavailable.", - "Format": "http", - "OperationId": "post_edit_image_v2_v3", - "Setup": null - }, { "Order": 9, "Title": "Edit with Ideogram 3.0", @@ -266,6 +266,17 @@ }, { "Order": 25, + "Title": "Edit images with a prompt", + "Slug": "post-v1-edit-image", + "Description": "Edit one or more images using a text prompt. Provide images via file upload\nor Ideogram image URLs, and describe the desired edit in your prompt.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.", + "Language": "http", + "Code": "### Edit images with a prompt\n# @name post_v1_edit_image\nPOST {{host}}/v1/edit\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data\nAccept: application/json\n\n## Responses\n# 200\n# Description: Image edits generated successfully.\n# Content-Type: application/json\n# 400\n# Description: Invalid input provided.\n# 401\n# Description: Not authorized to generate an image.\n# 402\n# Description: Insufficient credits or quota.\n# 422\n# Description: Prompt or provided image failed safety checks.\n# Content-Type: application/json\n# 429\n# Description: Too many requests.\n# 503\n# Description: Image generation service temporarily unavailable.", + "Format": "http", + "OperationId": "post_v1_edit_image", + "Setup": null + }, + { + "Order": 26, "Title": "Testing", "Slug": "post-internal-testing", "Description": "Just a testing endpoint", @@ -276,7 +287,7 @@ "Setup": null }, { - "Order": 26, + "Order": 27, "Title": "Add members to a specific organization", "Slug": "add-organization-members", "Description": "Generated from OpenAPI examples.", @@ -287,7 +298,7 @@ "Setup": null }, { - "Order": 27, + "Order": 28, "Title": "Creates an API key.", "Slug": "create-api-key", "Description": "Generated from OpenAPI examples.", @@ -298,7 +309,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 28, + "Order": 29, "Title": "Create an API key for a specific organization", "Slug": "create-api-key-v2", "Description": "Generated from OpenAPI examples.", @@ -309,7 +320,7 @@ "Setup": null }, { - "Order": 29, + "Order": 30, "Title": "Delete an API key.", "Slug": "delete-single-api-key", "Description": "Generated from OpenAPI examples.", @@ -320,7 +331,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 30, + "Order": 31, "Title": "Retrieve current API keys and their respective data.", "Slug": "get-api-keys", "Description": "Generated from OpenAPI examples.", @@ -331,7 +342,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 31, + "Order": 32, "Title": "Retrieve API keys for a specific organization", "Slug": "get-api-keys-v2", "Description": "Generated from OpenAPI examples.", @@ -342,7 +353,7 @@ "Setup": null }, { - "Order": 32, + "Order": 33, "Title": "Get search results for user handles with suggestions for a particular organization.", "Slug": "get-api-organization-user-suggestions", "Description": "Generated from OpenAPI examples.", @@ -353,7 +364,7 @@ "Setup": null }, { - "Order": 33, + "Order": 34, "Title": "Retrieve the user\u0027s current API profiles", "Slug": "get-api-profiles", "Description": "Generated from OpenAPI examples.", @@ -364,7 +375,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 34, + "Order": 35, "Title": "Retrieve data relevant to connecting to Stripe.", "Slug": "get-api-stripe-subscription", "Description": "Generated from OpenAPI examples.", @@ -375,7 +386,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 35, + "Order": 36, "Title": "Retrieve data relevant to creating an API subscription.", "Slug": "get-api-subscription", "Description": "Generated from OpenAPI examples.", @@ -386,7 +397,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 36, + "Order": 37, "Title": "Retrieve the latest terms of service for API usage.", "Slug": "get-api-terms", "Description": "Generated from OpenAPI examples.", @@ -397,7 +408,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 37, + "Order": 38, "Title": "Retrieve members of a specific organization", "Slug": "get-organization-members", "Description": "Generated from OpenAPI examples.", @@ -408,7 +419,7 @@ "Setup": null }, { - "Order": 38, + "Order": 39, "Title": "Retrieve usage information segmented by time period with tool-specific breakdowns", "Slug": "get-usage-info", "Description": "Generated from OpenAPI examples.", @@ -419,7 +430,7 @@ "Setup": null }, { - "Order": 39, + "Order": 40, "Title": "Retrieve user credit information and spending metrics", "Slug": "get-user-credits", "Description": "Generated from OpenAPI examples.", @@ -430,7 +441,7 @@ "Setup": null }, { - "Order": 40, + "Order": 41, "Title": "Retrieve user spend commit information", "Slug": "get-user-spend-commit-info", "Description": "Generated from OpenAPI examples.", @@ -441,7 +452,7 @@ "Setup": null }, { - "Order": 41, + "Order": 42, "Title": "Retrieve invoices for a specific organization", "Slug": "list-organization-invoices", "Description": "Generated from OpenAPI examples.", @@ -452,7 +463,7 @@ "Setup": null }, { - "Order": 42, + "Order": 43, "Title": "Add credits to an API user\u0027s account.", "Slug": "post-add-credits-for-api", "Description": "Generated from OpenAPI examples.", @@ -463,7 +474,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 43, + "Order": 44, "Title": "Update API subscription settings", "Slug": "post-api-subscription", "Description": "Generated from OpenAPI examples.", @@ -474,7 +485,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 44, + "Order": 45, "Title": "Accept terms", "Slug": "post-api-terms", "Description": "Generated from OpenAPI examples.", @@ -485,7 +496,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 45, + "Order": 46, "Title": "Promote members to OWNER role in a specific organization", "Slug": "promote-organization-members", "Description": "Generated from OpenAPI examples.", @@ -496,7 +507,7 @@ "Setup": null }, { - "Order": 46, + "Order": 47, "Title": "Reactivates a subscription by attempting to re-enable Metronome billing.", "Slug": "reactivate-subscription", "Description": "Generated from OpenAPI examples.", @@ -507,7 +518,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 47, + "Order": 48, "Title": "Remove members from a specific organization", "Slug": "remove-organization-members", "Description": "Generated from OpenAPI examples.", @@ -518,7 +529,7 @@ "Setup": null }, { - "Order": 48, + "Order": 49, "Title": "Get model details", "Slug": "get-custom-model", "Description": "Get detailed information about a specific custom model. The user must either own the model or the model must be shared with the user\u0027s organization via the model registry. Returns 404 if the model is not found or not accessible.", @@ -529,7 +540,7 @@ "Setup": null }, { - "Order": 49, + "Order": 50, "Title": "List models", "Slug": "list-custom-models", "Description": "Lists custom models for the authenticated user. Use the \u0060scope\u0060 parameter to control which models are returned. If omitted, returns both owned models and models shared with the user\u0027s organization via the model registry. \u0060owned\u0060 returns only models created by the user. \u0060shared\u0060 returns only models shared via the model registry, excluding the user\u0027s own models.", @@ -540,7 +551,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 50, + "Order": 51, "Title": "Generate Magic Prompt", "Slug": "post-magic-prompt", "Description": "Transforms basic prompts into a magic prompt. Internal use only (feature flagged). TODO: update description if enabled externally.", @@ -551,7 +562,7 @@ "Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." }, { - "Order": 51, + "Order": 52, "Title": "Describe", "Slug": "post-describe", "Description": "Describe an image.\n\nSupported image formats include JPEG, PNG, and WebP.", diff --git a/src/libs/Ideogram/openapi.json b/src/libs/Ideogram/openapi.json index 579e6b3..67864cf 100644 --- a/src/libs/Ideogram/openapi.json +++ b/src/libs/Ideogram/openapi.json @@ -142,9 +142,48 @@ "x-openapi-router-controller": "external_api.generated.openapi.controllers.datasets_controller" } }, + "/datasets/{dataset_id}": { + "get": { + "description": "Returns a dataset by ID, including the total number of files and a list of each file's name and size in bytes.\n", + "operationId": "get_dataset", + "parameters": [ + { + "in": "path", + "name": "dataset_id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDatasetResponse" + } + } + }, + "description": "Dataset retrieved successfully" + }, + "401": { + "description": "Unauthorized" + }, + "404": { + "description": "Dataset not found" + } + }, + "summary": "Get a dataset", + "tags": [ + "datasets" + ], + "x-openapi-router-controller": "external_api.generated.openapi.controllers.datasets_controller" + } + }, "/datasets/{dataset_id}/train_model": { "post": { - "description": "Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status.\n", + "description": "Start training a custom model from a dataset. The dataset must contain at least 15 images and a maximum of 100 images. Returns the model ID and training status.\n", "operationId": "train_dataset_model", "parameters": [ { @@ -2238,6 +2277,66 @@ "x-openapi-router-controller": "external_api.generated.openapi.controllers.generate_controller" } }, + "/v1/edit": { + "post": { + "description": "Edit one or more images using a text prompt. Provide images via file upload\nor Ideogram image URLs, and describe the desired edit in your prompt.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n", + "operationId": "post_v1_edit_image", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/V1EditImagesRequest" + } + } + }, + "description": "A request to edit images.", + "required": true, + "x-body-name": "body" + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/V1EditImagesResponse" + } + } + }, + "description": "Image edits generated successfully." + }, + "400": { + "description": "Invalid input provided." + }, + "401": { + "description": "Not authorized to generate an image." + }, + "402": { + "description": "Insufficient credits or quota." + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateImageSafetyError" + } + } + }, + "description": "Prompt or provided image failed safety checks." + }, + "429": { + "description": "Too many requests." + }, + "503": { + "description": "Image generation service temporarily unavailable." + } + }, + "summary": "Edit images with a prompt", + "tags": [ + "generate" + ], + "x-openapi-router-controller": "external_api.generated.openapi.controllers.generate_controller" + } + }, "/v1/ideogram-v3/edit": { "post": { "description": "Edit a given image synchronously using the provided mask with Ideogram 3.0. The mask indicates which part of the image\nshould be edited, while the prompt and chosen style can further guide the edit.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n", @@ -2767,66 +2866,6 @@ "x-openapi-router-controller": "external_api.generated.openapi.controllers.generate_controller" } }, - "/v1/ideogram-v3/instructional-edit": { - "post": { - "description": "Edit one or more images using a text prompt. Provide images via file upload\nor Ideogram image URLs, and describe the desired edit in your prompt.\n\nSupported image formats include JPEG, PNG, and WebP.\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n", - "operationId": "post_edit_image_v2_v3", - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/EditImageV2RequestV3" - } - } - }, - "description": "A request to edit images.", - "required": true, - "x-body-name": "body" - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EditImageGenerationResponseV3" - } - } - }, - "description": "Image edits generated successfully." - }, - "400": { - "description": "Invalid input provided." - }, - "401": { - "description": "Not authorized to generate an image." - }, - "402": { - "description": "Insufficient credits or quota." - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateImageSafetyError" - } - } - }, - "description": "Prompt or provided image failed safety checks." - }, - "429": { - "description": "Too many requests." - }, - "503": { - "description": "Image generation service temporarily unavailable." - } - }, - "summary": "Edit with Ideogram V2", - "tags": [ - "generate" - ], - "x-openapi-router-controller": "external_api.generated.openapi.controllers.generate_controller" - } - }, "/v1/ideogram-v3/layerize-design": { "post": { "description": "Processes an existing flat graphic image to detect and correct text layers without generating a new image from scratch.\n\nThe uploaded image is analyzed for text content, which is then removed and returned as structured text layers with font matching, sizing, and color information.\n\nSupported image formats include JPEG, PNG, and WebP (max size 10MB).\n\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.\n", @@ -4117,7 +4156,7 @@ ], "type": "object" }, - "EditImageV2RequestV3": { + "V1EditImagesRequest": { "properties": { "prompt": { "description": "The prompt describing the desired edit.", @@ -4766,7 +4805,7 @@ "title": "ImageGenerationObjectV3", "type": "object" }, - "EditImageGenerationResponseV3": { + "V1EditImagesResponse": { "description": "The response which contains information about the edited image, including the download link.\nImages links are available for a limited period of time; if you would like to keep the image, you must download it.", "example": { "data": [ @@ -4801,7 +4840,7 @@ "data": { "description": "A list of ImageObjects that contain the edited image(s).", "items": { - "$ref": "#/components/schemas/EditImageGenerationObjectV3" + "$ref": "#/components/schemas/V1EditImageObject" }, "title": "data", "type": "array" @@ -4811,10 +4850,10 @@ "created", "data" ], - "title": "EditImageGenerationResponseV3", + "title": "V1EditImagesResponse", "type": "object" }, - "EditImageGenerationObjectV3": { + "V1EditImageObject": { "example": { "style_type": "GENERAL", "seed": 12345, @@ -4876,7 +4915,7 @@ "resolution", "seed" ], - "title": "EditImageGenerationObjectV3", + "title": "V1EditImageObject", "type": "object" }, "ImageObject": { @@ -8393,6 +8432,91 @@ "title": "CreateDatasetRequest", "type": "object" }, + "GetDatasetResponse": { + "description": "Detailed view of a dataset, including its files.", + "example": { + "file_count": 0, + "files": [ + { + "file_name": "file_name", + "file_size_bytes": 6 + }, + { + "file_name": "file_name", + "file_size_bytes": 6 + } + ], + "dataset": { + "creation_time": "2000-01-23T04:56:07+00:00", + "user_id": "user_id", + "dataset_id": "dataset_id", + "name": "name", + "cover_asset_identifier": { + "asset_type": "RESPONSE", + "asset_id": "7uS_VESkRI6O3-sVgHQp_A" + } + }, + "custom_model_id": "custom_model_id" + }, + "properties": { + "dataset": { + "$ref": "#/components/schemas/Dataset" + }, + "file_count": { + "description": "Total number of files in the dataset.", + "title": "file_count", + "type": "integer" + }, + "files": { + "default": [], + "description": "List of files in the dataset.", + "items": { + "$ref": "#/components/schemas/DatasetFile" + }, + "title": "files", + "type": "array" + }, + "custom_model_id": { + "description": "ID of the custom model trained from this dataset, if one exists. Null if no model has been trained yet.\n", + "nullable": true, + "title": "custom_model_id", + "type": "string" + } + }, + "required": [ + "dataset", + "file_count", + "files" + ], + "title": "GetDatasetResponse", + "type": "object" + }, + "DatasetFile": { + "description": "A file in a dataset.", + "example": { + "file_name": "file_name", + "file_size_bytes": 6 + }, + "properties": { + "file_name": { + "description": "Filename of the file in the dataset.", + "nullable": true, + "title": "file_name", + "type": "string" + }, + "file_size_bytes": { + "description": "Size of the file in bytes, if available.", + "nullable": true, + "title": "file_size_bytes", + "type": "integer" + } + }, + "required": [ + "file_name" + ], + "title": "DatasetFile", + "type": "object" + }, "UploadDatasetAssetsResponse": { "example": { "successful_assets": [