Skip to content

Commit 974773b

Browse files
committed
feat: Updated
1 parent 9a5787f commit 974773b

12 files changed

Lines changed: 18 additions & 18 deletions

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The SDK code is **entirely auto-generated** — do not manually edit files in `s
3737

3838
| Project | Purpose |
3939
|---------|---------|
40-
| `src/libs/Ideogram/` | Main SDK library (`IdeogramApi`) |
40+
| `src/libs/Ideogram/` | Main SDK library (`IdeogramClient`) |
4141
| `src/tests/IntegrationTests/` | Integration tests against real Ideogram API |
4242
| `src/helpers/FixOpenApiSpec/` | OpenAPI spec fixer tool |
4343
| `src/helpers/GenerateDocs/` | Documentation generator from integration tests |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
```csharp
1717
using Ideogram;
1818

19-
using var api = new IdeogramApi(apiKey);
19+
using var api = new IdeogramClient(apiKey);
2020
GenerateImageResponse image = await api.Generate.PostGenerateImageAsync(new ImageRequest
2121
{
2222
Prompt = "A beautiful sunset",

initialize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dotnet tool install --global autosdk.cli --prerelease
22

33
autosdk init \
44
Ideogram \
5-
IdeogramApi \
5+
IdeogramClient \
66
https://api.ideogram.ai/openapi.json \
77
tryAGI \
88
--output .

src/helpers/GenerateDocs/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
code = code
2828
.Replace(
29-
"using var api = GetAuthenticatedApi();",
30-
"using var api = new IdeogramApi(apiKey);")
29+
"using var api = GetAuthenticatedClient();",
30+
"using var api = new IdeogramClient(apiKey);")
3131
;
3232

3333
var newPath = Path.Combine(newDir, $"{Path.GetExtension(Path.GetFileNameWithoutExtension(path)).TrimStart('.')}.md");

src/libs/Ideogram/Generated/Ideogram.IIdeogramApi.Authorizations.ApiKeyInHeader.g.cs renamed to src/libs/Ideogram/Generated/Ideogram.IIdeogramClient.Authorizations.ApiKeyInHeader.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Ideogram
55
{
6-
public partial interface IIdeogramApi
6+
public partial interface IIdeogramClient
77
{
88
/// <summary>
99
/// Authorize using ApiKey authentication.

src/libs/Ideogram/Generated/Ideogram.IIdeogramApi.g.cs renamed to src/libs/Ideogram/Generated/Ideogram.IIdeogramClient.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Ideogram
88
/// If no httpClient is provided, a new one will be created.<br/>
99
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
1010
/// </summary>
11-
public partial interface IIdeogramApi : global::System.IDisposable
11+
public partial interface IIdeogramClient : global::System.IDisposable
1212
{
1313
/// <summary>
1414
/// The HttpClient instance.

src/libs/Ideogram/Generated/Ideogram.IdeogramApi.Authorizations.ApiKeyInHeader.g.cs renamed to src/libs/Ideogram/Generated/Ideogram.IdeogramClient.Authorizations.ApiKeyInHeader.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Ideogram
55
{
6-
public sealed partial class IdeogramApi
6+
public sealed partial class IdeogramClient
77
{
88
/// <inheritdoc/>
99
public void AuthorizeUsingApiKeyInHeader(

src/libs/Ideogram/Generated/Ideogram.IdeogramApi.Constructors..g.cs renamed to src/libs/Ideogram/Generated/Ideogram.IdeogramClient.Constructors..g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
namespace Ideogram
55
{
6-
public sealed partial class IdeogramApi
6+
public sealed partial class IdeogramClient
77
{
8-
/// <inheritdoc cref="IdeogramApi(global::System.Net.Http.HttpClient?, global::System.Uri?, global::System.Collections.Generic.List{global::Ideogram.EndPointAuthorization}?, bool)"/>
9-
public IdeogramApi(
8+
/// <inheritdoc cref="IdeogramClient(global::System.Net.Http.HttpClient?, global::System.Uri?, global::System.Collections.Generic.List{global::Ideogram.EndPointAuthorization}?, bool)"/>
9+
public IdeogramClient(
1010
string apiKey,
1111
global::System.Net.Http.HttpClient? httpClient = null,
1212
global::System.Uri? baseUri = null,

src/libs/Ideogram/Generated/Ideogram.IdeogramApi.g.cs renamed to src/libs/Ideogram/Generated/Ideogram.IdeogramClient.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Ideogram
88
/// If no httpClient is provided, a new one will be created.<br/>
99
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
1010
/// </summary>
11-
public sealed partial class IdeogramApi : global::Ideogram.IIdeogramApi, global::System.IDisposable
11+
public sealed partial class IdeogramClient : global::Ideogram.IIdeogramClient, global::System.IDisposable
1212
{
1313
/// <summary>
1414
///
@@ -92,15 +92,15 @@ public sealed partial class IdeogramApi : global::Ideogram.IIdeogramApi, global:
9292
};
9393

9494
/// <summary>
95-
/// Creates a new instance of the IdeogramApi.
95+
/// Creates a new instance of the IdeogramClient.
9696
/// If no httpClient is provided, a new one will be created.
9797
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
9898
/// </summary>
9999
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
100100
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
101101
/// <param name="authorizations">The authorizations to use for the requests.</param>
102102
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
103-
public IdeogramApi(
103+
public IdeogramClient(
104104
global::System.Net.Http.HttpClient? httpClient = null,
105105
global::System.Uri? baseUri = null,
106106
global::System.Collections.Generic.List<global::Ideogram.EndPointAuthorization>? authorizations = null,

src/libs/Ideogram/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ $? -ne 0 ]; then
88
fi
99
autosdk generate openapi.yaml \
1010
--namespace Ideogram \
11-
--clientClassName IdeogramApi \
11+
--clientClassName IdeogramClient \
1212
--targetFramework net8.0 \
1313
--output Generated \
1414
--exclude-deprecated-operations

0 commit comments

Comments
 (0)