Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramColorPalette), TypeInfoPropertyName = "IdeogramColorPalette2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramV3StyleType), TypeInfoPropertyName = "IdeogramV3StyleType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramV3StylePreset), TypeInfoPropertyName = "IdeogramV3StylePreset2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramV4AspectRatio), TypeInfoPropertyName = "IdeogramV4AspectRatio2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerateImageV2AutoResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerateImageV2AutoRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerateImageV2AutoRequestResolutionTier), TypeInfoPropertyName = "GenerateImageV2AutoRequestResolutionTier2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ToolRemixResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ToolRemixRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ToolRemixRequestResolutionTier), TypeInfoPropertyName = "ToolRemixRequestResolutionTier2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ColorPaletteWithMembers))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Ideogram.ColorPaletteMember>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ColorPaletteMember))]
Expand All @@ -55,10 +55,10 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramColorPalette?), TypeInfoPropertyName = "NullableIdeogramColorPalette2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramV3StyleType?), TypeInfoPropertyName = "NullableIdeogramV3StyleType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramV3StylePreset?), TypeInfoPropertyName = "NullableIdeogramV3StylePreset2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramV4AspectRatio?), TypeInfoPropertyName = "NullableIdeogramV4AspectRatio2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.GenerateImageV2AutoRequestResolutionTier?), TypeInfoPropertyName = "NullableGenerateImageV2AutoRequestResolutionTier2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ToolRemixRequestResolutionTier?), TypeInfoPropertyName = "NullableToolRemixRequestResolutionTier2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetType?), TypeInfoPropertyName = "NullableAssetType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.IdeogramColorPalettePresetName?), TypeInfoPropertyName = "NullableIdeogramColorPalettePresetName2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<byte[]>))]
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ public partial class EditWorkflowClient
};
partial void PreparePostAdLocalizerArguments(
global::System.Net.Http.HttpClient httpClient,
ref bool? dryRun,
global::Ideogram.AdLocalizerRequest request);
partial void PreparePostAdLocalizerRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
bool? dryRun,
global::Ideogram.AdLocalizerRequest request);
partial void ProcessPostAdLocalizerResponse(
global::System.Net.Http.HttpClient httpClient,
Expand Down Expand Up @@ -62,19 +64,24 @@ partial void ProcessPostAdLocalizerResponseContent(
/// multipart requests only). Provide exactly one of the two forms;<br/>
/// supplying both, or neither, is rejected with a 400.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.AdLocalizerResponse> PostAdLocalizerAsync(

global::Ideogram.AdLocalizerRequest request,
bool? dryRun = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await PostAdLocalizerAsResponseAsync(

request: request,
dryRun: dryRun,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
Expand Down Expand Up @@ -102,13 +109,17 @@ partial void ProcessPostAdLocalizerResponseContent(
/// multipart requests only). Provide exactly one of the two forms;<br/>
/// supplying both, or neither, is rejected with a 400.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.AutoSDKHttpResponse<global::Ideogram.AdLocalizerResponse>> PostAdLocalizerAsResponseAsync(

global::Ideogram.AdLocalizerRequest request,
bool? dryRun = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -118,6 +129,7 @@ partial void ProcessPostAdLocalizerResponseContent(
client: HttpClient);
PreparePostAdLocalizerArguments(
httpClient: HttpClient,
dryRun: ref dryRun,
request: request);


Expand Down Expand Up @@ -146,6 +158,9 @@ partial void ProcessPostAdLocalizerResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/v2/tool/ad-localizer",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("dry_run", dryRun?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::Ideogram.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down Expand Up @@ -309,6 +324,7 @@ request.Imagename is null
PreparePostAdLocalizerRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dryRun: dryRun,
request: request);

return __httpRequest;
Expand Down Expand Up @@ -839,6 +855,9 @@ request.Imagename is null
/// multipart requests only). Provide exactly one of the two forms;<br/>
/// supplying both, or neither, is rejected with a 400.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="imageAssetIdentifier">
/// An identifier for an ideogram asset.<br/>
/// Example: {"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}
Expand All @@ -863,8 +882,8 @@ request.Imagename is null
/// Optional additional direction for the localization, for example "keep the badge in English". It takes priority over the preservation rules for anything it explicitly asks to change.
/// </param>
/// <param name="quality">
/// The quality tier for the image edit. Higher tiers may improve detail<br/>
/// and take longer to complete.
/// The quality tier for the edit. Higher tiers may improve detail and<br/>
/// take longer to complete.
/// </param>
/// <param name="seed">
/// Random seed. Set for reproducible generation.<br/>
Expand Down Expand Up @@ -896,12 +915,13 @@ request.Imagename is null
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.AdLocalizerResponse> PostAdLocalizerAsync(
global::Ideogram.AdLocalizerRequestLanguage language,
bool? dryRun = default,
global::Ideogram.AssetIdentifier? imageAssetIdentifier = default,
byte[]? image = default,
string? imagename = default,
string? exactCopy = default,
string? prompt = default,
global::Ideogram.GptImage2Quality? quality = default,
global::Ideogram.AdLocalizerQuality? quality = default,
int? seed = default,
int? numImages = default,
string? targetCollectionId = default,
Expand All @@ -927,6 +947,7 @@ request.Imagename is null
};

return await PostAdLocalizerAsync(
dryRun: dryRun,
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ public partial class EditWorkflowClient
};
partial void PreparePostAdResizerArguments(
global::System.Net.Http.HttpClient httpClient,
ref bool? dryRun,
global::Ideogram.AdResizerRequest request);
partial void PreparePostAdResizerRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
bool? dryRun,
global::Ideogram.AdResizerRequest request);
partial void ProcessPostAdResizerResponse(
global::System.Net.Http.HttpClient httpClient,
Expand Down Expand Up @@ -68,19 +70,24 @@ partial void ProcessPostAdResizerResponseContent(
/// multipart requests only). Provide exactly one of the two forms;<br/>
/// supplying both, or neither, is rejected with a 400.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.AdResizerResponse> PostAdResizerAsync(

global::Ideogram.AdResizerRequest request,
bool? dryRun = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await PostAdResizerAsResponseAsync(

request: request,
dryRun: dryRun,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
Expand Down Expand Up @@ -114,13 +121,17 @@ partial void ProcessPostAdResizerResponseContent(
/// multipart requests only). Provide exactly one of the two forms;<br/>
/// supplying both, or neither, is rejected with a 400.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.AutoSDKHttpResponse<global::Ideogram.AdResizerResponse>> PostAdResizerAsResponseAsync(

global::Ideogram.AdResizerRequest request,
bool? dryRun = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -130,6 +141,7 @@ partial void ProcessPostAdResizerResponseContent(
client: HttpClient);
PreparePostAdResizerArguments(
httpClient: HttpClient,
dryRun: ref dryRun,
request: request);


Expand Down Expand Up @@ -158,6 +170,9 @@ partial void ProcessPostAdResizerResponseContent(
var __pathBuilder = new global::Ideogram.PathBuilder(
path: "/v2/tool/ad-resizer",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("dry_run", dryRun?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::Ideogram.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down Expand Up @@ -313,6 +328,7 @@ request.Imagename is null
PreparePostAdResizerRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
dryRun: dryRun,
request: request);

return __httpRequest;
Expand Down Expand Up @@ -849,6 +865,9 @@ request.Imagename is null
/// multipart requests only). Provide exactly one of the two forms;<br/>
/// supplying both, or neither, is rejected with a 400.
/// </summary>
/// <param name="dryRun">
/// Default Value: false
/// </param>
/// <param name="imageAssetIdentifier">
/// An identifier for an ideogram asset.<br/>
/// Example: {"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}
Expand Down Expand Up @@ -882,10 +901,8 @@ request.Imagename is null
/// Optional edit instruction to apply while reframing, for example "remove the logo" or "put the price bottom-right".
/// </param>
/// <param name="quality">
/// The generation quality level. Higher levels may use more inference steps<br/>
/// or additional prompt processing. `very_high` generates multiple<br/>
/// candidates internally and returns the strongest result, so it has<br/>
/// noticeably higher latency and cost than the other levels.
/// The quality tier for the reframe. Higher tiers may improve detail and<br/>
/// take longer to complete.
/// </param>
/// <param name="numImages">
/// The number of reframed variations to generate.<br/>
Expand Down Expand Up @@ -913,12 +930,13 @@ request.Imagename is null
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.AdResizerResponse> PostAdResizerAsync(
global::Ideogram.AdResizerRequestResolution resolution,
bool? dryRun = default,
global::Ideogram.AssetIdentifier? imageAssetIdentifier = default,
byte[]? image = default,
string? imagename = default,
global::Ideogram.AdResizerRequestPlatform? platform = default,
string? prompt = default,
global::Ideogram.GenerationQuality? quality = default,
global::Ideogram.AdResizerQuality? quality = default,
int? numImages = default,
string? targetCollectionId = default,
bool? @private = default,
Expand All @@ -942,6 +960,7 @@ request.Imagename is null
};

return await PostAdResizerAsync(
dryRun: dryRun,
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,8 @@ request.Imagename is null
/// Optional direction to steer the variation, for example "set it on a beach" or "make the models older". Takes priority over the default preservation rules for anything it explicitly asks to change.
/// </param>
/// <param name="quality">
/// The quality tier for the image edit. Higher tiers may improve detail<br/>
/// and take longer to complete.
/// The quality tier for the edit. Higher tiers may improve detail and<br/>
/// take longer to complete.
/// </param>
/// <param name="numImages">
/// The number of variations to generate along the requested axis.<br/>
Expand Down Expand Up @@ -864,7 +864,7 @@ request.Imagename is null
byte[]? image = default,
string? imagename = default,
string? prompt = default,
global::Ideogram.GptImage2Quality? quality = default,
global::Ideogram.AdVariationsQuality? quality = default,
int? numImages = default,
bool? @private = default,
string? webhookUrl = default,
Expand Down
Loading
Loading