Skip to content

Commit 1c08782

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#159)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 9f745c1 commit 1c08782

10 files changed

Lines changed: 58 additions & 58 deletions

src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ public sealed partial class ApiProfile
9595
/// The display name of the profile<br/>
9696
/// Example: Gamma
9797
/// </param>
98-
/// <param name="avatarUrl">
99-
/// URL to the profile avatar<br/>
100-
/// Example: https://example.com/avatar.jpg
101-
/// </param>
10298
/// <param name="organizationId">
10399
/// Base64 encoded organization ID (only for ENTERPRISE profiles)<br/>
104100
/// Example: b3JnYW5pemF0aW9uXzEyMw
@@ -118,6 +114,10 @@ public sealed partial class ApiProfile
118114
/// The maximum number of inflight requests permitted for the profile<br/>
119115
/// Example: 10
120116
/// </param>
117+
/// <param name="avatarUrl">
118+
/// URL to the profile avatar<br/>
119+
/// Example: https://example.com/avatar.jpg
120+
/// </param>
121121
#if NET7_0_OR_GREATER
122122
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
123123
#endif
@@ -133,12 +133,12 @@ public ApiProfile(
133133
{
134134
this.Type = type;
135135
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
136+
this.AvatarUrl = avatarUrl;
136137
this.OrganizationId = organizationId ?? throw new global::System.ArgumentNullException(nameof(organizationId));
137138
this.Role = role;
138139
this.ApiKeys = apiKeys ?? throw new global::System.ArgumentNullException(nameof(apiKeys));
139140
this.IsMetronome2User = isMetronome2User;
140141
this.MaxNumInflightRequestsPermitted = maxNumInflightRequestsPermitted;
141-
this.AvatarUrl = avatarUrl;
142142
}
143143

144144
/// <summary>

src/libs/Ideogram/Generated/Ideogram.Models.DatasetUploadFailedAsset.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ public sealed partial class DatasetUploadFailedAsset
3131
/// <summary>
3232
/// Initializes a new instance of the <see cref="DatasetUploadFailedAsset" /> class.
3333
/// </summary>
34-
/// <param name="fileName">
35-
/// Original filename of the failed image.
36-
/// </param>
3734
/// <param name="failureReason">
3835
/// Reason why an asset failed to upload.
3936
/// </param>
37+
/// <param name="fileName">
38+
/// Original filename of the failed image.
39+
/// </param>
4040
#if NET7_0_OR_GREATER
4141
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
4242
#endif
4343
public DatasetUploadFailedAsset(
4444
global::Ideogram.DatasetAssetFailureReason failureReason,
4545
string? fileName)
4646
{
47-
this.FailureReason = failureReason;
4847
this.FileName = fileName;
48+
this.FailureReason = failureReason;
4949
}
5050

5151
/// <summary>

src/libs/Ideogram/Generated/Ideogram.Models.GetUserCreditsResponse.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public sealed partial class GetUserCreditsResponse
4343
/// <summary>
4444
/// Initializes a new instance of the <see cref="GetUserCreditsResponse" /> class.
4545
/// </summary>
46-
/// <param name="availableCredits">
46+
/// <param name="totalSpend">
4747
/// Represents a price.<br/>
4848
/// Example: {"amount":1050,"currency_code":"USD"}
4949
/// </param>
50-
/// <param name="totalSpend">
50+
/// <param name="averageDailySpend">
5151
/// Represents a price.<br/>
5252
/// Example: {"amount":1050,"currency_code":"USD"}
5353
/// </param>
54-
/// <param name="averageDailySpend">
54+
/// <param name="availableCredits">
5555
/// Represents a price.<br/>
5656
/// Example: {"amount":1050,"currency_code":"USD"}
5757
/// </param>
@@ -63,9 +63,9 @@ public GetUserCreditsResponse(
6363
global::Ideogram.Price averageDailySpend,
6464
global::Ideogram.Price? availableCredits)
6565
{
66+
this.AvailableCredits = availableCredits;
6667
this.TotalSpend = totalSpend ?? throw new global::System.ArgumentNullException(nameof(totalSpend));
6768
this.AverageDailySpend = averageDailySpend ?? throw new global::System.ArgumentNullException(nameof(averageDailySpend));
68-
this.AvailableCredits = availableCredits;
6969
}
7070

7171
/// <summary>

src/libs/Ideogram/Generated/Ideogram.Models.ImageGenerationObjectV3.g.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ public sealed partial class ImageGenerationObjectV3
7878
/// <summary>
7979
/// Initializes a new instance of the <see cref="ImageGenerationObjectV3" /> class.
8080
/// </summary>
81-
/// <param name="url">
82-
/// The direct link to the image generated.<br/>
83-
/// Example: https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&amp;sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89
84-
/// </param>
8581
/// <param name="prompt">
8682
/// The prompt used for the generation. This may be different from the original prompt.<br/>
8783
/// Example: A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there's an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.
@@ -90,17 +86,21 @@ public sealed partial class ImageGenerationObjectV3
9086
/// The resolutions supported for Ideogram 3.0.<br/>
9187
/// Example: 1280x800
9288
/// </param>
93-
/// <param name="upscaledResolution">
94-
/// Output resolution, only used if operations alters image dimensions, such as upscale, crop etc.<br/>
95-
/// Example: 4096x4096
96-
/// </param>
9789
/// <param name="isImageSafe">
9890
/// Whether this request passes safety checks. If false, the url field will be empty.
9991
/// </param>
10092
/// <param name="seed">
10193
/// Random seed. Set for reproducible generation.<br/>
10294
/// Example: 12345
10395
/// </param>
96+
/// <param name="url">
97+
/// The direct link to the image generated.<br/>
98+
/// Example: https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&amp;sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89
99+
/// </param>
100+
/// <param name="upscaledResolution">
101+
/// Output resolution, only used if operations alters image dimensions, such as upscale, crop etc.<br/>
102+
/// Example: 4096x4096
103+
/// </param>
104104
/// <param name="styleType">
105105
/// The style type to generate with.<br/>
106106
/// Default Value: GENERAL<br/>
@@ -118,12 +118,12 @@ public ImageGenerationObjectV3(
118118
string? upscaledResolution,
119119
global::Ideogram.StyleTypeV3? styleType)
120120
{
121+
this.Url = url;
121122
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
122123
this.Resolution = resolution;
124+
this.UpscaledResolution = upscaledResolution;
123125
this.IsImageSafe = isImageSafe;
124126
this.Seed = seed;
125-
this.Url = url;
126-
this.UpscaledResolution = upscaledResolution;
127127
this.StyleType = styleType;
128128
}
129129

src/libs/Ideogram/Generated/Ideogram.Models.ImageObject.g.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ public sealed partial class ImageObject
7676
/// <summary>
7777
/// Initializes a new instance of the <see cref="ImageObject" /> class.
7878
/// </summary>
79-
/// <param name="url">
80-
/// The direct link to the image generated.<br/>
81-
/// Example: https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g
82-
/// </param>
8379
/// <param name="prompt">
8480
/// The prompt used for the generation. This may be different from the original prompt.<br/>
8581
/// Example: A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there's an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.
@@ -88,17 +84,21 @@ public sealed partial class ImageObject
8884
/// The resolution of the final image.<br/>
8985
/// Example: 1024x1024
9086
/// </param>
91-
/// <param name="upscaledResolution">
92-
/// Output resolution, only used if operations alters image dimensions, such as upscale, crop etc.<br/>
93-
/// Example: 4096x4096
94-
/// </param>
9587
/// <param name="isImageSafe">
9688
/// Whether this request passes safety checks. If false, the url field will be empty.
9789
/// </param>
9890
/// <param name="seed">
9991
/// Random seed. Set for reproducible generation.<br/>
10092
/// Example: 12345
10193
/// </param>
94+
/// <param name="url">
95+
/// The direct link to the image generated.<br/>
96+
/// Example: https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g
97+
/// </param>
98+
/// <param name="upscaledResolution">
99+
/// Output resolution, only used if operations alters image dimensions, such as upscale, crop etc.<br/>
100+
/// Example: 4096x4096
101+
/// </param>
102102
/// <param name="styleType">
103103
/// The style type to generate with; this is only applicable for models V_2 and above and should not be specified for model versions V_1.<br/>
104104
/// Example: REALISTIC
@@ -115,12 +115,12 @@ public ImageObject(
115115
string? upscaledResolution,
116116
global::Ideogram.StyleType? styleType)
117117
{
118+
this.Url = url;
118119
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
119120
this.Resolution = resolution ?? throw new global::System.ArgumentNullException(nameof(resolution));
121+
this.UpscaledResolution = upscaledResolution;
120122
this.IsImageSafe = isImageSafe;
121123
this.Seed = seed;
122-
this.Url = url;
123-
this.UpscaledResolution = upscaledResolution;
124124
this.StyleType = styleType;
125125
}
126126

src/libs/Ideogram/Generated/Ideogram.Models.InternalTestingRequest.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public sealed partial class InternalTestingRequest
103103
/// <summary>
104104
/// Initializes a new instance of the <see cref="InternalTestingRequest" /> class.
105105
/// </summary>
106+
/// <param name="requiredDateTypeField"></param>
106107
/// <param name="xPosition"></param>
107108
/// <param name="imageFile">
108109
/// An image binary (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
@@ -120,7 +121,6 @@ public sealed partial class InternalTestingRequest
120121
/// <param name="nestedObject"></param>
121122
/// <param name="nestedObjectRequiredFields"></param>
122123
/// <param name="dateTypeField"></param>
123-
/// <param name="requiredDateTypeField"></param>
124124
/// <param name="dateTimeTypeField"></param>
125125
/// <param name="repeatedPrimitiveField"></param>
126126
/// <param name="repeatedComplexField"></param>
@@ -144,7 +144,6 @@ public InternalTestingRequest(
144144
global::System.Collections.Generic.IList<global::Ideogram.InternalTestingNestedObject>? repeatedComplexField,
145145
global::Ideogram.InternalTestingEnumField? enumTypeField)
146146
{
147-
this.RequiredDateTypeField = requiredDateTypeField;
148147
this.XPosition = xPosition;
149148
this.ImageFile = imageFile;
150149
this.ImageFilename = imageFilename;
@@ -154,6 +153,7 @@ public InternalTestingRequest(
154153
this.NestedObject = nestedObject;
155154
this.NestedObjectRequiredFields = nestedObjectRequiredFields;
156155
this.DateTypeField = dateTypeField;
156+
this.RequiredDateTypeField = requiredDateTypeField;
157157
this.DateTimeTypeField = dateTimeTypeField;
158158
this.RepeatedPrimitiveField = repeatedPrimitiveField;
159159
this.RepeatedComplexField = repeatedComplexField;

src/libs/Ideogram/Generated/Ideogram.Models.ManageApiSubscriptionResponse.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ public sealed partial class ManageApiSubscriptionResponse
8282
/// <param name="hasStripeSetup">
8383
/// Whether or not Stripe is setup for API usage.
8484
/// </param>
85+
/// <param name="currentBalance">
86+
/// Represents a price.<br/>
87+
/// Example: {"amount":1050,"currency_code":"USD"}
88+
/// </param>
8589
/// <param name="metronomeLinks">
8690
/// Example: {"usage_iframe_url":"usage_iframe_url","usage_iframe_dark_mode_url":"usage_iframe_dark_mode_url","credits_iframe_dark_mode_url":"credits_iframe_dark_mode_url","invoices_iframe_dark_mode_url":"invoices_iframe_dark_mode_url","invoices_iframe_url":"invoices_iframe_url","credits_iframe_url":"credits_iframe_url"}
8791
/// </param>
@@ -91,10 +95,6 @@ public sealed partial class ManageApiSubscriptionResponse
9195
/// <param name="stripeBillingUrl">
9296
/// The URL for the user to manage the existing Stripe subscription plan.
9397
/// </param>
94-
/// <param name="currentBalance">
95-
/// Represents a price.<br/>
96-
/// Example: {"amount":1050,"currency_code":"USD"}
97-
/// </param>
9898
#if NET7_0_OR_GREATER
9999
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
100100
#endif
@@ -108,10 +108,10 @@ public ManageApiSubscriptionResponse(
108108
{
109109
this.HasAcceptedTerms = hasAcceptedTerms;
110110
this.HasStripeSetup = hasStripeSetup;
111-
this.CurrentBalance = currentBalance ?? throw new global::System.ArgumentNullException(nameof(currentBalance));
112111
this.MetronomeLinks = metronomeLinks;
113112
this.RechargeSettings = rechargeSettings;
114113
this.StripeBillingUrl = stripeBillingUrl;
114+
this.CurrentBalance = currentBalance ?? throw new global::System.ArgumentNullException(nameof(currentBalance));
115115
}
116116

117117
/// <summary>

src/libs/Ideogram/Generated/Ideogram.Models.TextItemV3.g.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,17 @@ public sealed partial class TextItemV3
130130
/// The text alignment of the item.<br/>
131131
/// Example: center
132132
/// </param>
133-
/// <param name="angle">
134-
/// The angle rotation of the text, measured clockwise in degrees.<br/>
135-
/// Example: 0
136-
/// </param>
137133
/// <param name="styleClass">
138134
/// Typographic classification of the text.<br/>
139135
/// Example: body
140136
/// </param>
137+
/// <param name="spans">
138+
/// Ordered list of text spans. Concatenating span text values produces the full item text.
139+
/// </param>
140+
/// <param name="angle">
141+
/// The angle rotation of the text, measured clockwise in degrees.<br/>
142+
/// Example: 0
143+
/// </param>
141144
/// <param name="glyphType">
142145
/// The type of list marker glyph, if any. Null for non-list items.<br/>
143146
/// Example: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
@@ -154,9 +157,6 @@ public sealed partial class TextItemV3
154157
/// <param name="lineHeight">
155158
/// The line height multiplier (e.g., 1.2). Null for non-editable items.
156159
/// </param>
157-
/// <param name="spans">
158-
/// Ordered list of text spans. Concatenating span text values produces the full item text.
159-
/// </param>
160160
#if NET7_0_OR_GREATER
161161
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
162162
#endif
@@ -180,14 +180,14 @@ public TextItemV3(
180180
this.Width = width;
181181
this.Height = height;
182182
this.Alignment = alignment;
183-
this.StyleClass = styleClass;
184-
this.Spans = spans ?? throw new global::System.ArgumentNullException(nameof(spans));
185183
this.Angle = angle;
184+
this.StyleClass = styleClass;
186185
this.GlyphType = glyphType;
187186
this.FontFile = fontFile;
188187
this.FontCandidates = fontCandidates;
189188
this.FontSize = fontSize;
190189
this.LineHeight = lineHeight;
190+
this.Spans = spans ?? throw new global::System.ArgumentNullException(nameof(spans));
191191
}
192192

193193
/// <summary>

src/libs/Ideogram/Generated/Ideogram.Models.ToolUsage.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ public sealed partial class ToolUsage
8585
/// Represents a price.<br/>
8686
/// Example: {"amount":1050,"currency_code":"USD"}
8787
/// </param>
88+
/// <param name="toolType">
89+
/// Tool type for filtering usage information<br/>
90+
/// Example: GENERATE
91+
/// </param>
8892
/// <param name="apiKeyId">
8993
/// Base64 encoded API key ID (for API usage)<br/>
9094
/// Example: JRPVD7jWR1aTBYiJ0UFVOg
@@ -93,10 +97,6 @@ public sealed partial class ToolUsage
9397
/// User email address (for web app usage)<br/>
9498
/// Example: user@company.com
9599
/// </param>
96-
/// <param name="toolType">
97-
/// Tool type for filtering usage information<br/>
98-
/// Example: GENERATE
99-
/// </param>
100100
/// <param name="modelVersion">
101101
/// The model_version to use.<br/>
102102
/// - V_0_3: Model 1.0<br/>
@@ -121,9 +121,9 @@ public ToolUsage(
121121
{
122122
this.FullToolName = fullToolName ?? throw new global::System.ArgumentNullException(nameof(fullToolName));
123123
this.Amount = amount ?? throw new global::System.ArgumentNullException(nameof(amount));
124-
this.ToolType = toolType;
125124
this.ApiKeyId = apiKeyId;
126125
this.UserEmailAddress = userEmailAddress;
126+
this.ToolType = toolType;
127127
this.ModelVersion = modelVersion;
128128
}
129129

src/libs/Ideogram/Generated/Ideogram.Models.TryOnRequestV3.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public sealed partial class TryOnRequestV3
104104
/// <param name="imagename">
105105
/// The image containing a person wearing clothing to be modified (max size 10MB); only JPEG, WebP and PNG formats are supported at this time.
106106
/// </param>
107+
/// <param name="productReferenceImages">
108+
/// An image to use as the product reference for the try-on (exactly 1 image required). The image should be in JPEG, PNG or WebP format.
109+
/// </param>
107110
/// <param name="prompt">
108111
/// The prompt describing the desired clothing change. Defaults to "Person wearing this piece of clothing" if omitted or empty.<br/>
109112
/// Default Value: Person wearing this piece of clothing<br/>
@@ -134,9 +137,6 @@ public sealed partial class TryOnRequestV3
134137
/// A predefined style preset that applies a specific artistic style to the generated image.<br/>
135138
/// Example: BRIGHT_ART
136139
/// </param>
137-
/// <param name="productReferenceImages">
138-
/// An image to use as the product reference for the try-on (exactly 1 image required). The image should be in JPEG, PNG or WebP format.
139-
/// </param>
140140
#if NET7_0_OR_GREATER
141141
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
142142
#endif
@@ -154,14 +154,14 @@ public TryOnRequestV3(
154154
{
155155
this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image));
156156
this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename));
157-
this.ProductReferenceImages = productReferenceImages ?? throw new global::System.ArgumentNullException(nameof(productReferenceImages));
158157
this.Prompt = prompt;
159158
this.MagicPrompt = magicPrompt;
160159
this.NumImages = numImages;
161160
this.Seed = seed;
162161
this.RenderingSpeed = renderingSpeed;
163162
this.StyleType = styleType;
164163
this.StylePreset = stylePreset;
164+
this.ProductReferenceImages = productReferenceImages ?? throw new global::System.ArgumentNullException(nameof(productReferenceImages));
165165
}
166166

167167
/// <summary>

0 commit comments

Comments
 (0)