diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.AddOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.AddOrganizationMembers.g.cs
index 0aff376..0d642bb 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.AddOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.AddOrganizationMembers.g.cs
@@ -11,7 +11,7 @@ public partial interface IManageClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
+ global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
string organizationId,
global::Ideogram.AddOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -25,7 +25,7 @@ public partial interface IManageClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
+ global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
string organizationId,
global::System.Collections.Generic.IList members,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.GetApiKeysV2.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.GetApiKeysV2.g.cs
new file mode 100644
index 0000000..05b5f83
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.GetApiKeysV2.g.cs
@@ -0,0 +1,17 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public partial interface IManageClient
+ {
+ ///
+ /// Retrieve API keys for a specific organization
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task GetApiKeysV2Async(
+ string organizationId,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.ListOrganizationInvoices.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.ListOrganizationInvoices.g.cs
new file mode 100644
index 0000000..640ee19
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.ListOrganizationInvoices.g.cs
@@ -0,0 +1,17 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public partial interface IManageClient
+ {
+ ///
+ /// Retrieve invoices for a specific organization
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task ListOrganizationInvoicesAsync(
+ string organizationId,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationMembers.g.cs
index 2b3059c..1de7b7a 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationMembers.g.cs
@@ -11,7 +11,7 @@ public partial interface IManageClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
+ global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
string organizationId,
global::Ideogram.PromoteOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -25,7 +25,7 @@ public partial interface IManageClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
+ global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
string organizationId,
global::System.Collections.Generic.IList members,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.RemoveOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.RemoveOrganizationMembers.g.cs
index 9daf883..e277f95 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.RemoveOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.RemoveOrganizationMembers.g.cs
@@ -11,7 +11,7 @@ public partial interface IManageClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
+ global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
string organizationId,
global::Ideogram.RemoveOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -25,7 +25,7 @@ public partial interface IManageClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
+ global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
string organizationId,
global::System.Collections.Generic.IList members,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
index 511d554..6ce9f32 100644
--- a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
@@ -458,34 +458,70 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::Ideogram.AddOrganizationMembersRequest? Type108 { get; set; }
+ public global::Ideogram.GetApiKeysV2Response? Type108 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type109 { get; set; }
+ public global::Ideogram.OrganizationMemberOperationResponse? Type109 { get; set; }
///
///
///
- public global::Ideogram.LiteOrganizationMember? Type110 { get; set; }
+ public global::System.Collections.Generic.IList? Type110 { get; set; }
///
///
///
- public global::Ideogram.RemoveOrganizationMembersRequest? Type111 { get; set; }
+ public global::Ideogram.OrganizationMemberOperationResult? Type111 { get; set; }
///
///
///
- public global::Ideogram.PromoteOrganizationMembersRequest? Type112 { get; set; }
+ public global::Ideogram.AddOrganizationMembersRequest? Type112 { get; set; }
///
///
///
- public global::Ideogram.PostInternalTesting200Response? Type113 { get; set; }
+ public global::System.Collections.Generic.IList? Type113 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type114 { get; set; }
+ public global::Ideogram.LiteOrganizationMember? Type114 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type115 { get; set; }
+ public global::Ideogram.RemoveOrganizationMembersRequest? Type115 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.PromoteOrganizationMembersRequest? Type116 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.ListOrganizationInvoicesResponse? Type117 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type118 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.Invoice? Type119 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type120 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.InvoiceLineItem? Type121 { get; set; }
+ ///
+ ///
+ ///
+ public global::Ideogram.PostInternalTesting200Response? Type122 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type123 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type124 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
index 7f6c879..82d71e8 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
@@ -18,6 +18,11 @@ partial void ProcessAddOrganizationMembersResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+ partial void ProcessAddOrganizationMembersResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
///
/// Add members to a specific organization
///
@@ -25,7 +30,7 @@ partial void ProcessAddOrganizationMembersResponse(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
+ public async global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
string organizationId,
global::Ideogram.AddOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -241,11 +246,18 @@ partial void ProcessAddOrganizationMembersResponse(
client: HttpClient,
response: __response,
content: ref __content);
+ ProcessAddOrganizationMembersResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
try
{
__response.EnsureSuccessStatusCode();
+ return
+ global::Ideogram.OrganizationMemberOperationResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
{
@@ -274,6 +286,9 @@ partial void ProcessAddOrganizationMembersResponse(
#endif
).ConfigureAwait(false);
+ return
+ await global::Ideogram.OrganizationMemberOperationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
{
@@ -300,7 +315,7 @@ partial void ProcessAddOrganizationMembersResponse(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
+ public async global::System.Threading.Tasks.Task AddOrganizationMembersAsync(
string organizationId,
global::System.Collections.Generic.IList members,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -310,7 +325,7 @@ partial void ProcessAddOrganizationMembersResponse(
Members = members,
};
- await AddOrganizationMembersAsync(
+ return await AddOrganizationMembersAsync(
organizationId: organizationId,
request: __request,
cancellationToken: cancellationToken).ConfigureAwait(false);
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs
new file mode 100644
index 0000000..0689b77
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs
@@ -0,0 +1,262 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ public partial class ManageClient
+ {
+ partial void PrepareGetApiKeysV2Arguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string organizationId);
+ partial void PrepareGetApiKeysV2Request(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string organizationId);
+ partial void ProcessGetApiKeysV2Response(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessGetApiKeysV2ResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Retrieve API keys for a specific organization
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task GetApiKeysV2Async(
+ string organizationId,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareGetApiKeysV2Arguments(
+ httpClient: HttpClient,
+ organizationId: ref organizationId);
+
+ var __pathBuilder = new global::Ideogram.PathBuilder(
+ path: "/manage/api/organization/api_keys",
+ baseUri: HttpClient.BaseAddress);
+ __pathBuilder
+ .AddRequiredParameter("organization_id", organizationId)
+ ;
+ var __path = __pathBuilder.ToString();
+ using 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")
+ {
+ __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);
+ }
+ }
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareGetApiKeysV2Request(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ organizationId: organizationId);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessGetApiKeysV2Response(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ //
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).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 == 403)
+ {
+ string? __content_403 = null;
+ global::System.Exception? __exception_403 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_403 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_403 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_403,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_403,
+ 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 (ReadResponseAsString)
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).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 (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessGetApiKeysV2ResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return
+ global::Ideogram.GetApiKeysV2Response.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
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Ideogram.GetApiKeysV2Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs
new file mode 100644
index 0000000..e53c909
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs
@@ -0,0 +1,262 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ public partial class ManageClient
+ {
+ partial void PrepareListOrganizationInvoicesArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string organizationId);
+ partial void PrepareListOrganizationInvoicesRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string organizationId);
+ partial void ProcessListOrganizationInvoicesResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessListOrganizationInvoicesResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Retrieve invoices for a specific organization
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task ListOrganizationInvoicesAsync(
+ string organizationId,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ PrepareArguments(
+ client: HttpClient);
+ PrepareListOrganizationInvoicesArguments(
+ httpClient: HttpClient,
+ organizationId: ref organizationId);
+
+ var __pathBuilder = new global::Ideogram.PathBuilder(
+ path: "/manage/api/organization/list_invoices",
+ baseUri: HttpClient.BaseAddress);
+ __pathBuilder
+ .AddRequiredParameter("organization_id", organizationId)
+ ;
+ var __path = __pathBuilder.ToString();
+ using 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")
+ {
+ __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);
+ }
+ }
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareListOrganizationInvoicesRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ organizationId: organizationId);
+
+ using var __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessListOrganizationInvoicesResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ //
+ if ((int)__response.StatusCode == 401)
+ {
+ string? __content_401 = null;
+ global::System.Exception? __exception_401 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).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 == 403)
+ {
+ string? __content_403 = null;
+ global::System.Exception? __exception_403 = null;
+ try
+ {
+ if (ReadResponseAsString)
+ {
+ __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_403 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
+ }
+ }
+ catch (global::System.Exception __ex)
+ {
+ __exception_403 = __ex;
+ }
+
+ throw new global::Ideogram.ApiException(
+ message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __exception_403,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content_403,
+ 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 (ReadResponseAsString)
+ {
+ __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+ }
+ else
+ {
+ var __contentStream_404 = await __response.Content.ReadAsStreamAsync(cancellationToken).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 (ReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessListOrganizationInvoicesResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ return
+ global::Ideogram.ListOrganizationInvoicesResponse.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
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+
+ return
+ await global::Ideogram.ListOrganizationInvoicesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Ideogram.ApiException(
+ message: __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
index b785595..4c1c220 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
@@ -18,6 +18,11 @@ partial void ProcessPromoteOrganizationMembersResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+ partial void ProcessPromoteOrganizationMembersResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
///
/// Promote members to OWNER role in a specific organization
///
@@ -25,7 +30,7 @@ partial void ProcessPromoteOrganizationMembersResponse(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
+ public async global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
string organizationId,
global::Ideogram.PromoteOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -241,11 +246,18 @@ partial void ProcessPromoteOrganizationMembersResponse(
client: HttpClient,
response: __response,
content: ref __content);
+ ProcessPromoteOrganizationMembersResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
try
{
__response.EnsureSuccessStatusCode();
+ return
+ global::Ideogram.OrganizationMemberOperationResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
{
@@ -274,6 +286,9 @@ partial void ProcessPromoteOrganizationMembersResponse(
#endif
).ConfigureAwait(false);
+ return
+ await global::Ideogram.OrganizationMemberOperationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
{
@@ -300,7 +315,7 @@ partial void ProcessPromoteOrganizationMembersResponse(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
+ public async global::System.Threading.Tasks.Task PromoteOrganizationMembersAsync(
string organizationId,
global::System.Collections.Generic.IList members,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -310,7 +325,7 @@ partial void ProcessPromoteOrganizationMembersResponse(
Members = members,
};
- await PromoteOrganizationMembersAsync(
+ return await PromoteOrganizationMembersAsync(
organizationId: organizationId,
request: __request,
cancellationToken: cancellationToken).ConfigureAwait(false);
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
index 9aecd73..67afc9d 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
@@ -18,6 +18,11 @@ partial void ProcessRemoveOrganizationMembersResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+ partial void ProcessRemoveOrganizationMembersResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
///
/// Remove members from a specific organization
///
@@ -25,7 +30,7 @@ partial void ProcessRemoveOrganizationMembersResponse(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
+ public async global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
string organizationId,
global::Ideogram.RemoveOrganizationMembersRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -241,11 +246,18 @@ partial void ProcessRemoveOrganizationMembersResponse(
client: HttpClient,
response: __response,
content: ref __content);
+ ProcessRemoveOrganizationMembersResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
try
{
__response.EnsureSuccessStatusCode();
+ return
+ global::Ideogram.OrganizationMemberOperationResponse.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
{
@@ -274,6 +286,9 @@ partial void ProcessRemoveOrganizationMembersResponse(
#endif
).ConfigureAwait(false);
+ return
+ await global::Ideogram.OrganizationMemberOperationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
{
@@ -300,7 +315,7 @@ partial void ProcessRemoveOrganizationMembersResponse(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
+ public async global::System.Threading.Tasks.Task RemoveOrganizationMembersAsync(
string organizationId,
global::System.Collections.Generic.IList members,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -310,7 +325,7 @@ partial void ProcessRemoveOrganizationMembersResponse(
Members = members,
};
- await RemoveOrganizationMembersAsync(
+ return await RemoveOrganizationMembersAsync(
organizationId: organizationId,
request: __request,
cancellationToken: cancellationToken).ConfigureAwait(false);
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.GetApiKeysV2Response.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GetApiKeysV2Response.Json.g.cs
new file mode 100644
index 0000000..441aa0a
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.GetApiKeysV2Response.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class GetApiKeysV2Response
+ {
+ ///
+ /// 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.GetApiKeysV2Response? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.GetApiKeysV2Response),
+ jsonSerializerContext) as global::Ideogram.GetApiKeysV2Response;
+ }
+
+ ///
+ /// 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.GetApiKeysV2Response? 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.GetApiKeysV2Response),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.GetApiKeysV2Response;
+ }
+
+ ///
+ /// 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.GetApiKeysV2Response.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.GetApiKeysV2Response.g.cs
new file mode 100644
index 0000000..d66d80f
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.GetApiKeysV2Response.g.cs
@@ -0,0 +1,46 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class GetApiKeysV2Response
+ {
+ ///
+ /// List of API keys associated with the organization
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("api_keys")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList ApiKeys { 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.
+ ///
+ ///
+ /// List of API keys associated with the organization
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public GetApiKeysV2Response(
+ global::System.Collections.Generic.IList apiKeys)
+ {
+ this.ApiKeys = apiKeys ?? throw new global::System.ArgumentNullException(nameof(apiKeys));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public GetApiKeysV2Response()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.Invoice.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.Invoice.Json.g.cs
new file mode 100644
index 0000000..e3cd81e
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.Invoice.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class Invoice
+ {
+ ///
+ /// 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.Invoice? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.Invoice),
+ jsonSerializerContext) as global::Ideogram.Invoice;
+ }
+
+ ///
+ /// 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.Invoice? 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.Invoice),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.Invoice;
+ }
+
+ ///
+ /// 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.Invoice.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.Invoice.g.cs
new file mode 100644
index 0000000..c5ef8a6
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.Invoice.g.cs
@@ -0,0 +1,93 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class Invoice
+ {
+ ///
+ /// The start time of the invoice period
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("start_time")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.DateTime StartTime { get; set; }
+
+ ///
+ /// The end time of the invoice period
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("end_time")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.DateTime EndTime { get; set; }
+
+ ///
+ /// Represents a price.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total_spend")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Ideogram.Price TotalSpend { get; set; }
+
+ ///
+ /// The date when the invoice was paid (optional, may be null if unpaid)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("invoice_paid_date")]
+ public global::System.DateTime? InvoicePaidDate { get; set; }
+
+ ///
+ /// A list of line items within the invoice
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("line_items")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList LineItems { 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.
+ ///
+ ///
+ /// The start time of the invoice period
+ ///
+ ///
+ /// The end time of the invoice period
+ ///
+ ///
+ /// Represents a price.
+ ///
+ ///
+ /// The date when the invoice was paid (optional, may be null if unpaid)
+ ///
+ ///
+ /// A list of line items within the invoice
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public Invoice(
+ global::System.DateTime startTime,
+ global::System.DateTime endTime,
+ global::Ideogram.Price totalSpend,
+ global::System.Collections.Generic.IList lineItems,
+ global::System.DateTime? invoicePaidDate)
+ {
+ this.StartTime = startTime;
+ this.EndTime = endTime;
+ this.TotalSpend = totalSpend ?? throw new global::System.ArgumentNullException(nameof(totalSpend));
+ this.LineItems = lineItems ?? throw new global::System.ArgumentNullException(nameof(lineItems));
+ this.InvoicePaidDate = invoicePaidDate;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public Invoice()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.InvoiceLineItem.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.InvoiceLineItem.Json.g.cs
new file mode 100644
index 0000000..00b8fb2
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.InvoiceLineItem.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class InvoiceLineItem
+ {
+ ///
+ /// 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.InvoiceLineItem? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.InvoiceLineItem),
+ jsonSerializerContext) as global::Ideogram.InvoiceLineItem;
+ }
+
+ ///
+ /// 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.InvoiceLineItem? 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.InvoiceLineItem),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.InvoiceLineItem;
+ }
+
+ ///
+ /// 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.InvoiceLineItem.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.InvoiceLineItem.g.cs
new file mode 100644
index 0000000..77e7453
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.InvoiceLineItem.g.cs
@@ -0,0 +1,88 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class InvoiceLineItem
+ {
+ ///
+ /// The name of the charge
+ /// Example: Image Generation - V3
+ ///
+ /// Image Generation - V3
+ [global::System.Text.Json.Serialization.JsonPropertyName("charge_name")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string ChargeName { get; set; }
+
+ ///
+ /// The quantity of the charge
+ /// Example: 1000
+ ///
+ /// 1000
+ [global::System.Text.Json.Serialization.JsonPropertyName("quantity")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required int Quantity { get; set; }
+
+ ///
+ /// Represents a price.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("unit_price")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Ideogram.Price UnitPrice { get; set; }
+
+ ///
+ /// Represents a price.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::Ideogram.Price Total { 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.
+ ///
+ ///
+ /// The name of the charge
+ /// Example: Image Generation - V3
+ ///
+ ///
+ /// The quantity of the charge
+ /// Example: 1000
+ ///
+ ///
+ /// Represents a price.
+ ///
+ ///
+ /// Represents a price.
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public InvoiceLineItem(
+ string chargeName,
+ int quantity,
+ global::Ideogram.Price unitPrice,
+ global::Ideogram.Price total)
+ {
+ this.ChargeName = chargeName ?? throw new global::System.ArgumentNullException(nameof(chargeName));
+ this.Quantity = quantity;
+ this.UnitPrice = unitPrice ?? throw new global::System.ArgumentNullException(nameof(unitPrice));
+ this.Total = total ?? throw new global::System.ArgumentNullException(nameof(total));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public InvoiceLineItem()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ListOrganizationInvoicesResponse.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ListOrganizationInvoicesResponse.Json.g.cs
new file mode 100644
index 0000000..42aa065
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ListOrganizationInvoicesResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class ListOrganizationInvoicesResponse
+ {
+ ///
+ /// 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.ListOrganizationInvoicesResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.ListOrganizationInvoicesResponse),
+ jsonSerializerContext) as global::Ideogram.ListOrganizationInvoicesResponse;
+ }
+
+ ///
+ /// 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.ListOrganizationInvoicesResponse? 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.ListOrganizationInvoicesResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.ListOrganizationInvoicesResponse;
+ }
+
+ ///
+ /// 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.ListOrganizationInvoicesResponse.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ListOrganizationInvoicesResponse.g.cs
new file mode 100644
index 0000000..a66c9ff
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ListOrganizationInvoicesResponse.g.cs
@@ -0,0 +1,46 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class ListOrganizationInvoicesResponse
+ {
+ ///
+ /// List of invoices
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("invoices")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Invoices { 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.
+ ///
+ ///
+ /// List of invoices
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public ListOrganizationInvoicesResponse(
+ global::System.Collections.Generic.IList invoices)
+ {
+ this.Invoices = invoices ?? throw new global::System.ArgumentNullException(nameof(invoices));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public ListOrganizationInvoicesResponse()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResponse.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResponse.Json.g.cs
new file mode 100644
index 0000000..8c8c547
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResponse.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class OrganizationMemberOperationResponse
+ {
+ ///
+ /// 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.OrganizationMemberOperationResponse? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.OrganizationMemberOperationResponse),
+ jsonSerializerContext) as global::Ideogram.OrganizationMemberOperationResponse;
+ }
+
+ ///
+ /// 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.OrganizationMemberOperationResponse? 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.OrganizationMemberOperationResponse),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.OrganizationMemberOperationResponse;
+ }
+
+ ///
+ /// 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.OrganizationMemberOperationResponse.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResponse.g.cs
new file mode 100644
index 0000000..176b41f
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResponse.g.cs
@@ -0,0 +1,46 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class OrganizationMemberOperationResponse
+ {
+ ///
+ /// List of results for each member operation
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("results")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Results { 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.
+ ///
+ ///
+ /// List of results for each member operation
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public OrganizationMemberOperationResponse(
+ global::System.Collections.Generic.IList results)
+ {
+ this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results));
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public OrganizationMemberOperationResponse()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResult.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResult.Json.g.cs
new file mode 100644
index 0000000..5ffcdaf
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResult.Json.g.cs
@@ -0,0 +1,92 @@
+#nullable enable
+
+namespace Ideogram
+{
+ public sealed partial class OrganizationMemberOperationResult
+ {
+ ///
+ /// 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.OrganizationMemberOperationResult? FromJson(
+ string json,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ return global::System.Text.Json.JsonSerializer.Deserialize(
+ json,
+ typeof(global::Ideogram.OrganizationMemberOperationResult),
+ jsonSerializerContext) as global::Ideogram.OrganizationMemberOperationResult;
+ }
+
+ ///
+ /// 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.OrganizationMemberOperationResult? 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.OrganizationMemberOperationResult),
+ jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.OrganizationMemberOperationResult;
+ }
+
+ ///
+ /// 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.OrganizationMemberOperationResult.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResult.g.cs
new file mode 100644
index 0000000..f366cb0
--- /dev/null
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMemberOperationResult.g.cs
@@ -0,0 +1,57 @@
+
+#nullable enable
+
+namespace Ideogram
+{
+ ///
+ ///
+ ///
+ public sealed partial class OrganizationMemberOperationResult
+ {
+ ///
+ /// Whether the operation was successful for this member
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("success")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required bool Success { get; set; }
+
+ ///
+ /// A message describing the outcome of the operation for this member
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("message")]
+ public string? Message { 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.
+ ///
+ ///
+ /// Whether the operation was successful for this member
+ ///
+ ///
+ /// A message describing the outcome of the operation for this member
+ ///
+#if NET7_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
+#endif
+ public OrganizationMemberOperationResult(
+ bool success,
+ string? message)
+ {
+ this.Success = success;
+ this.Message = message;
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public OrganizationMemberOperationResult()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ideogram/openapi.yaml b/src/libs/Ideogram/openapi.yaml
index 20c4760..c79eba0 100644
--- a/src/libs/Ideogram/openapi.yaml
+++ b/src/libs/Ideogram/openapi.yaml
@@ -459,8 +459,12 @@ paths:
required: true
x-body-name: add_organization_members_request
responses:
- '204':
- description: Success; no content.
+ '200':
+ description: Results of adding members to the organization
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OrganizationMemberOperationResponse'
'400':
description: Bad Request
'401':
@@ -472,6 +476,35 @@ paths:
security:
- BearerAuth: [ ]
x-openapi-router-controller: external_api.generated.openapi.controllers.manage_controller
+ /manage/api/organization/api_keys:
+ get:
+ tags:
+ - manage
+ summary: Retrieve API keys for a specific organization
+ operationId: get_api_keys_v2
+ parameters:
+ - name: organization_id
+ in: query
+ description: Base64 encoded organization ID to retrieve API keys for
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: API keys retrieved successfully
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GetApiKeysV2Response'
+ '401':
+ description: Not authorized
+ '403':
+ description: Not authorized
+ '404':
+ description: Organization not found
+ security:
+ - BearerAuth: [ ]
+ x-openapi-router-controller: external_api.generated.openapi.controllers.manage_controller
/manage/api/organization/deactivate_api_key:
post:
tags:
@@ -499,6 +532,60 @@ paths:
security:
- BearerAuth: [ ]
x-openapi-router-controller: external_api.generated.openapi.controllers.manage_controller
+ /manage/api/organization/list_invoices:
+ get:
+ tags:
+ - manage
+ summary: Retrieve invoices for a specific organization
+ operationId: list_organization_invoices
+ parameters:
+ - name: organization_id
+ in: query
+ description: Base64 encoded organization ID to retrieve invoices for
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Invoices retrieved successfully
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ListOrganizationInvoicesResponse'
+ example:
+ invoices:
+ - start_time: '2024-01-01'
+ end_time: '2024-01-31T23:59:59.0000000+00:00'
+ total_spend:
+ currency_code: USD
+ amount: 15000
+ invoice_paid_date: '2024-02-05T10:30:00.0000000+00:00'
+ line_items:
+ - charge_name: Image Generation - V3
+ quantity: 1000
+ unit_price:
+ currency_code: USD
+ amount: 10
+ total:
+ currency_code: USD
+ amount: 10000
+ - charge_name: Upscale Image - V1
+ quantity: 500
+ unit_price:
+ currency_code: USD
+ amount: 10
+ total:
+ currency_code: USD
+ amount: 5000
+ '401':
+ description: Not authorized
+ '403':
+ description: Not authorized
+ '404':
+ description: Organization not found
+ security:
+ - BearerAuth: [ ]
+ x-openapi-router-controller: external_api.generated.openapi.controllers.manage_controller
/manage/api/organization/members:
get:
tags:
@@ -550,8 +637,12 @@ paths:
required: true
x-body-name: promote_organization_members_request
responses:
- '204':
- description: Success; no content.
+ '200':
+ description: Results of promoting members in the organization
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OrganizationMemberOperationResponse'
'400':
description: Bad Request
'401':
@@ -585,8 +676,12 @@ paths:
required: true
x-body-name: remove_organization_members_request
responses:
- '204':
- description: Success; no content.
+ '200':
+ description: Results of removing members from the organization
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OrganizationMemberOperationResponse'
'400':
description: Bad Request
'401':
@@ -3132,6 +3227,63 @@ components:
creation_time: '2024-05-25T02:00:30.0000000+00:00'
api_key: vkpDjaKdMNR8QJ83GjfNvFZJbnoi65XUp70MgZNtA2H9XE8yfDnmr_6BaRyQkF9hnJzu6mUPRLBmqlnZMwetJA
api_key_id: JRPVD7jWR1aTBYiJ0UFVOg==
+ GetApiKeysV2Response:
+ title: GetApiKeysV2Response
+ required:
+ - api_keys
+ type: object
+ properties:
+ api_keys:
+ title: api_keys
+ type: array
+ items:
+ $ref: '#/components/schemas/ApiProfileApiKey'
+ description: List of API keys associated with the organization
+ example:
+ api_keys:
+ - creation_time: '2000-01-23T04:56:07.0000000+00:00'
+ redacted_api_key: ATG56•••••••••••••
+ api_key_id: JRPVD7jWR1aTBYiJ0UFVOg
+ status:
+ - creation_time: '2000-01-23T04:56:07.0000000+00:00'
+ redacted_api_key: ATG56•••••••••••••
+ api_key_id: JRPVD7jWR1aTBYiJ0UFVOg
+ status:
+ OrganizationMemberOperationResponse:
+ title: OrganizationMemberOperationResponse
+ required:
+ - results
+ type: object
+ properties:
+ results:
+ title: results
+ type: array
+ items:
+ $ref: '#/components/schemas/OrganizationMemberOperationResult'
+ description: List of results for each member operation
+ example:
+ results:
+ - success: true
+ message: message
+ - success: true
+ message: message
+ OrganizationMemberOperationResult:
+ title: OrganizationMemberOperationResult
+ required:
+ - success
+ type: object
+ properties:
+ success:
+ title: success
+ type: boolean
+ description: Whether the operation was successful for this member
+ message:
+ title: message
+ type: string
+ description: A message describing the outcome of the operation for this member
+ example:
+ success: true
+ message: message
AddOrganizationMembersRequest:
title: AddOrganizationMembersRequest
required:
@@ -3216,6 +3368,157 @@ components:
- display_handle: john_doe
email_address: john.doe@example.com
user_id: dXNlcl8xMjM
+ ListOrganizationInvoicesResponse:
+ title: ListOrganizationInvoicesResponse
+ required:
+ - invoices
+ type: object
+ properties:
+ invoices:
+ title: invoices
+ type: array
+ items:
+ $ref: '#/components/schemas/Invoice'
+ description: List of invoices
+ example:
+ invoices:
+ - total_spend:
+ amount: 1050
+ currency_code: USD
+ start_time: '2024-01-01'
+ end_time: '2024-01-31T23:59:59.0000000+00:00'
+ line_items:
+ - charge_name: Image Generation - V3
+ total:
+ amount: 1050
+ currency_code: USD
+ quantity: 1000
+ unit_price:
+ amount: 1050
+ currency_code: USD
+ - charge_name: Image Generation - V3
+ total:
+ amount: 1050
+ currency_code: USD
+ quantity: 1000
+ unit_price:
+ amount: 1050
+ currency_code: USD
+ invoice_paid_date: '2024-02-05T10:30:00.0000000+00:00'
+ - total_spend:
+ amount: 1050
+ currency_code: USD
+ start_time: '2024-01-01'
+ end_time: '2024-01-31T23:59:59.0000000+00:00'
+ line_items:
+ - charge_name: Image Generation - V3
+ total:
+ amount: 1050
+ currency_code: USD
+ quantity: 1000
+ unit_price:
+ amount: 1050
+ currency_code: USD
+ - charge_name: Image Generation - V3
+ total:
+ amount: 1050
+ currency_code: USD
+ quantity: 1000
+ unit_price:
+ amount: 1050
+ currency_code: USD
+ invoice_paid_date: '2024-02-05T10:30:00.0000000+00:00'
+ Invoice:
+ title: Invoice
+ required:
+ - end_time
+ - line_items
+ - start_time
+ - total_spend
+ type: object
+ properties:
+ start_time:
+ title: start_time
+ type: string
+ description: The start time of the invoice period
+ format: date-time
+ example: '2024-01-01T00:00:00.0000000+00:00'
+ end_time:
+ title: end_time
+ type: string
+ description: The end time of the invoice period
+ format: date-time
+ example: '2024-01-31T23:59:59.0000000+00:00'
+ total_spend:
+ $ref: '#/components/schemas/Price'
+ invoice_paid_date:
+ title: invoice_paid_date
+ type: string
+ description: 'The date when the invoice was paid (optional, may be null if unpaid)'
+ format: date-time
+ example: '2024-02-05T10:30:00.0000000+00:00'
+ line_items:
+ title: line_items
+ type: array
+ items:
+ $ref: '#/components/schemas/InvoiceLineItem'
+ description: A list of line items within the invoice
+ example:
+ total_spend:
+ amount: 1050
+ currency_code: USD
+ start_time: '2024-01-01T00:00:00.0000000+00:00'
+ end_time: '2024-01-31T23:59:59.0000000+00:00'
+ line_items:
+ - charge_name: Image Generation - V3
+ total:
+ amount: 1050
+ currency_code: USD
+ quantity: 1000
+ unit_price:
+ amount: 1050
+ currency_code: USD
+ - charge_name: Image Generation - V3
+ total:
+ amount: 1050
+ currency_code: USD
+ quantity: 1000
+ unit_price:
+ amount: 1050
+ currency_code: USD
+ invoice_paid_date: '2024-02-05T10:30:00.0000000+00:00'
+ InvoiceLineItem:
+ title: InvoiceLineItem
+ required:
+ - charge_name
+ - quantity
+ - total
+ - unit_price
+ type: object
+ properties:
+ charge_name:
+ title: charge_name
+ type: string
+ description: The name of the charge
+ example: Image Generation - V3
+ quantity:
+ title: quantity
+ type: integer
+ description: The quantity of the charge
+ example: 1000
+ unit_price:
+ $ref: '#/components/schemas/Price'
+ total:
+ $ref: '#/components/schemas/Price'
+ example:
+ charge_name: Image Generation - V3
+ total:
+ amount: 1050
+ currency_code: USD
+ quantity: 1000
+ unit_price:
+ amount: 1050
+ currency_code: USD
Description:
title: Description
type: object