Skip to content

Commit 1d04fa0

Browse files
Merge pull request #45 from tryAGI/bot/update-openapi_202412051522
feat:@coderabbitai
2 parents 874269d + 75ce9cb commit 1d04fa0

9 files changed

+61
-10
lines changed

src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ partial void ProcessPostEditImageResponseContent(
319319
/// </param>
320320
/// <param name="magicPromptOption">
321321
/// Determine if MagicPrompt should be used in generating the request or not<br/>
322-
/// Default Value: AUTO<br/>
323322
/// Example: ON
324323
/// </param>
325324
/// <param name="seed">

src/libs/Ideogram/Generated/Ideogram.IGenerateClient.PostEditImage.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public partial interface IGenerateClient
4848
/// </param>
4949
/// <param name="magicPromptOption">
5050
/// Determine if MagicPrompt should be used in generating the request or not<br/>
51-
/// Default Value: AUTO<br/>
5251
/// Example: ON
5352
/// </param>
5453
/// <param name="seed">

src/libs/Ideogram/Generated/Ideogram.IInternalTestingClient.PostInternalTesting.g.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@ public partial interface IInternalTestingClient
88
/// Testing<br/>
99
/// Just a testing endpoint
1010
/// </summary>
11+
/// <param name="xTestHeader"></param>
12+
/// <param name="xTestHeader2"></param>
1113
/// <param name="request"></param>
1214
/// <param name="cancellationToken">The token to cancel the operation with</param>
1315
/// <exception cref="global::Ideogram.ApiException"></exception>
1416
global::System.Threading.Tasks.Task<global::Ideogram.PostInternalTesting200Response> PostInternalTestingAsync(
1517
global::Ideogram.InternalTestingRequest request,
18+
string? xTestHeader = default,
19+
string? xTestHeader2 = default,
1620
global::System.Threading.CancellationToken cancellationToken = default);
1721

1822
/// <summary>
1923
/// Testing<br/>
2024
/// Just a testing endpoint
2125
/// </summary>
26+
/// <param name="xTestHeader"></param>
27+
/// <param name="xTestHeader2"></param>
2228
/// <param name="xPosition"></param>
2329
/// <param name="imageFile"></param>
2430
/// <param name="imageFilename"></param>
@@ -37,6 +43,8 @@ public partial interface IInternalTestingClient
3743
/// <exception cref="global::System.InvalidOperationException"></exception>
3844
global::System.Threading.Tasks.Task<global::Ideogram.PostInternalTesting200Response> PostInternalTestingAsync(
3945
global::System.DateTime requiredDateTypeField,
46+
string? xTestHeader = default,
47+
string? xTestHeader2 = default,
4048
int? xPosition = default,
4149
byte[]? imageFile = default,
4250
string? imageFilename = default,

src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ public partial class InternalTestingClient
77
{
88
partial void PreparePostInternalTestingArguments(
99
global::System.Net.Http.HttpClient httpClient,
10+
ref string? xTestHeader,
11+
ref string? xTestHeader2,
1012
global::Ideogram.InternalTestingRequest request);
1113
partial void PreparePostInternalTestingRequest(
1214
global::System.Net.Http.HttpClient httpClient,
1315
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
16+
string? xTestHeader,
17+
string? xTestHeader2,
1418
global::Ideogram.InternalTestingRequest request);
1519
partial void ProcessPostInternalTestingResponse(
1620
global::System.Net.Http.HttpClient httpClient,
@@ -25,11 +29,15 @@ partial void ProcessPostInternalTestingResponseContent(
2529
/// Testing<br/>
2630
/// Just a testing endpoint
2731
/// </summary>
32+
/// <param name="xTestHeader"></param>
33+
/// <param name="xTestHeader2"></param>
2834
/// <param name="request"></param>
2935
/// <param name="cancellationToken">The token to cancel the operation with</param>
3036
/// <exception cref="global::Ideogram.ApiException"></exception>
3137
public async global::System.Threading.Tasks.Task<global::Ideogram.PostInternalTesting200Response> PostInternalTestingAsync(
3238
global::Ideogram.InternalTestingRequest request,
39+
string? xTestHeader = default,
40+
string? xTestHeader2 = default,
3341
global::System.Threading.CancellationToken cancellationToken = default)
3442
{
3543
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
@@ -38,6 +46,8 @@ partial void ProcessPostInternalTestingResponseContent(
3846
client: HttpClient);
3947
PreparePostInternalTestingArguments(
4048
httpClient: HttpClient,
49+
xTestHeader: ref xTestHeader,
50+
xTestHeader2: ref xTestHeader2,
4151
request: request);
4252

4353
var __pathBuilder = new PathBuilder(
@@ -67,7 +77,29 @@ partial void ProcessPostInternalTestingResponseContent(
6777
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
6878
}
6979
}
80+
81+
if (xTestHeader != default)
82+
{
83+
__httpRequest.Headers.TryAddWithoutValidation("X-Test-Header", xTestHeader.ToString());
84+
}
85+
if (xTestHeader2 != default)
86+
{
87+
__httpRequest.Headers.TryAddWithoutValidation("X-Test-Header-2", xTestHeader2.ToString());
88+
}
89+
7090
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
91+
if (xTestHeader != default)
92+
{
93+
__httpRequestContent.Add(
94+
content: new global::System.Net.Http.StringContent($"{xTestHeader}"),
95+
name: "X-Test-Header");
96+
}
97+
if (xTestHeader2 != default)
98+
{
99+
__httpRequestContent.Add(
100+
content: new global::System.Net.Http.StringContent($"{xTestHeader2}"),
101+
name: "X-Test-Header-2");
102+
}
71103
if (request.XPosition != default)
72104
{
73105
__httpRequestContent.Add(
@@ -147,6 +179,8 @@ partial void ProcessPostInternalTestingResponseContent(
147179
PreparePostInternalTestingRequest(
148180
httpClient: HttpClient,
149181
httpRequestMessage: __httpRequest,
182+
xTestHeader: xTestHeader,
183+
xTestHeader2: xTestHeader2,
150184
request: request);
151185

152186
using var __response = await HttpClient.SendAsync(
@@ -229,6 +263,8 @@ partial void ProcessPostInternalTestingResponseContent(
229263
/// Testing<br/>
230264
/// Just a testing endpoint
231265
/// </summary>
266+
/// <param name="xTestHeader"></param>
267+
/// <param name="xTestHeader2"></param>
232268
/// <param name="xPosition"></param>
233269
/// <param name="imageFile"></param>
234270
/// <param name="imageFilename"></param>
@@ -247,6 +283,8 @@ partial void ProcessPostInternalTestingResponseContent(
247283
/// <exception cref="global::System.InvalidOperationException"></exception>
248284
public async global::System.Threading.Tasks.Task<global::Ideogram.PostInternalTesting200Response> PostInternalTestingAsync(
249285
global::System.DateTime requiredDateTypeField,
286+
string? xTestHeader = default,
287+
string? xTestHeader2 = default,
250288
int? xPosition = default,
251289
byte[]? imageFile = default,
252290
string? imageFilename = default,
@@ -281,6 +319,8 @@ partial void ProcessPostInternalTestingResponseContent(
281319
};
282320

283321
return await PostInternalTestingAsync(
322+
xTestHeader: xTestHeader,
323+
xTestHeader2: xTestHeader2,
284324
request: __request,
285325
cancellationToken: cancellationToken).ConfigureAwait(false);
286326
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public sealed partial class EditImageRequest
5959

6060
/// <summary>
6161
/// Determine if MagicPrompt should be used in generating the request or not<br/>
62-
/// Default Value: AUTO<br/>
6362
/// Example: ON
6463
/// </summary>
6564
/// <example>ON</example>
@@ -115,7 +114,6 @@ public sealed partial class EditImageRequest
115114
/// </param>
116115
/// <param name="magicPromptOption">
117116
/// Determine if MagicPrompt should be used in generating the request or not<br/>
118-
/// Default Value: AUTO<br/>
119117
/// Example: ON
120118
/// </param>
121119
/// <param name="seed">

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public sealed partial class ImageRequest
3838

3939
/// <summary>
4040
/// Determine if MagicPrompt should be used in generating the request or not<br/>
41-
/// Default Value: AUTO<br/>
4241
/// Example: ON
4342
/// </summary>
4443
/// <example>ON</example>
@@ -110,7 +109,6 @@ public sealed partial class ImageRequest
110109
/// </param>
111110
/// <param name="magicPromptOption">
112111
/// Determine if MagicPrompt should be used in generating the request or not<br/>
113-
/// Default Value: AUTO<br/>
114112
/// Example: ON
115113
/// </param>
116114
/// <param name="seed">

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ namespace Ideogram
55
{
66
/// <summary>
77
/// Determine if MagicPrompt should be used in generating the request or not<br/>
8-
/// Default Value: AUTO<br/>
98
/// Example: ON
109
/// </summary>
1110
public enum MagicPromptOption

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public sealed partial class UpscaleInitialImageRequest
3434

3535
/// <summary>
3636
/// Determine if MagicPrompt should be used in generating the request or not<br/>
37-
/// Default Value: AUTO<br/>
3837
/// Example: ON
3938
/// </summary>
4039
/// <example>ON</example>
@@ -72,7 +71,6 @@ public sealed partial class UpscaleInitialImageRequest
7271
/// </param>
7372
/// <param name="magicPromptOption">
7473
/// Determine if MagicPrompt should be used in generating the request or not<br/>
75-
/// Default Value: AUTO<br/>
7674
/// Example: ON
7775
/// </param>
7876
/// <param name="seed">

src/libs/Ideogram/openapi.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,19 @@ paths:
130130
summary: Testing
131131
description: "Just a testing endpoint\n"
132132
operationId: post_internal_testing
133+
parameters:
134+
- name: X-Test-Header
135+
in: header
136+
description: Test header
137+
style: simple
138+
schema:
139+
type: string
140+
- name: X-Test-Header-2
141+
in: header
142+
description: Test header
143+
style: simple
144+
schema:
145+
type: string
133146
requestBody:
134147
description: A request for testing.
135148
content:
@@ -1105,7 +1118,6 @@ components:
11051118
- OFF
11061119
type: string
11071120
description: Determine if MagicPrompt should be used in generating the request or not
1108-
default: AUTO
11091121
externalDocs:
11101122
url: https://docs.ideogram.ai/using-ideogram/ideogram-features/magic-prompt
11111123
example: ON

0 commit comments

Comments
 (0)