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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,41 @@ namespace Ideogram
{
public partial class BatchClient
{
partial void PrepareGetBatchStatusArguments(
partial void PrepareGetMaybeBatchResultsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string jobId);
partial void PrepareGetBatchStatusRequest(
partial void PrepareGetMaybeBatchResultsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string jobId);
partial void ProcessGetBatchStatusResponse(
partial void ProcessGetMaybeBatchResultsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessGetBatchStatusResponseContent(
partial void ProcessGetMaybeBatchResultsResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);

/// <summary>
/// Get Batch Magic Prompt Job Status and TFRecord URL if available<br/>
/// Gets the status of a batch magic prompt job and the TFRecord URL if available.
/// Get Batch Magic Prompt Job Results if available.<br/>
/// Gets the results of a batch magic prompt job if available.
/// </summary>
/// <param name="jobId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Ideogram.InternalBatchStatusResponse> GetBatchStatusAsync(
public async global::System.Threading.Tasks.Task<global::Ideogram.InternalBatchResultsResponse> GetMaybeBatchResultsAsync(
string jobId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareGetBatchStatusArguments(
PrepareGetMaybeBatchResultsArguments(
httpClient: HttpClient,
jobId: ref jobId);

var __pathBuilder = new global::Ideogram.PathBuilder(
path: $"/internal/batch/status/{jobId}",
path: $"/internal/batch/get-maybe-batch-results/{jobId}",
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
Expand Down Expand Up @@ -69,7 +69,7 @@ partial void ProcessGetBatchStatusResponseContent(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
PrepareGetBatchStatusRequest(
PrepareGetMaybeBatchResultsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
jobId: jobId);
Expand All @@ -82,7 +82,7 @@ partial void ProcessGetBatchStatusResponseContent(
ProcessResponse(
client: HttpClient,
response: __response);
ProcessGetBatchStatusResponse(
ProcessGetMaybeBatchResultsResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
//
Expand Down Expand Up @@ -230,7 +230,7 @@ partial void ProcessGetBatchStatusResponseContent(
client: HttpClient,
response: __response,
content: ref __content);
ProcessGetBatchStatusResponseContent(
ProcessGetMaybeBatchResultsResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
content: ref __content);
Expand All @@ -240,7 +240,7 @@ partial void ProcessGetBatchStatusResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Ideogram.InternalBatchStatusResponse.FromJson(__content, JsonSerializerContext) ??
global::Ideogram.InternalBatchResultsResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -271,7 +271,7 @@ partial void ProcessGetBatchStatusResponseContent(
).ConfigureAwait(false);

return
await global::Ideogram.InternalBatchStatusResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::Ideogram.InternalBatchResultsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ partial void ProcessPostBatchResponseContent(
/// <summary>
/// Initiate Batch Magic Prompt Evalution<br/>
/// Runs automated evaluation of multiple LLM models and system prompts for magic prompt generation. <br/>
/// Generates images using large batches of user prompt inputs and creates TFRecord format for side-by-side service upload. Internal use only (feature flagged).
/// Generates images using large batches of user prompt inputs. Internal use only (feature flagged).
/// </summary>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down Expand Up @@ -302,7 +302,7 @@ partial void ProcessPostBatchResponseContent(
/// <summary>
/// Initiate Batch Magic Prompt Evalution<br/>
/// Runs automated evaluation of multiple LLM models and system prompts for magic prompt generation. <br/>
/// Generates images using large batches of user prompt inputs and creates TFRecord format for side-by-side service upload. Internal use only (feature flagged).
/// Generates images using large batches of user prompt inputs. Internal use only (feature flagged).
/// </summary>
/// <param name="userPrompts">
/// The prompts to enhance with a magic prompt.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ namespace Ideogram
public partial interface IBatchClient
{
/// <summary>
/// Get Batch Magic Prompt Job Status and TFRecord URL if available<br/>
/// Gets the status of a batch magic prompt job and the TFRecord URL if available.
/// Get Batch Magic Prompt Job Results if available.<br/>
/// Gets the results of a batch magic prompt job if available.
/// </summary>
/// <param name="jobId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Ideogram.InternalBatchStatusResponse> GetBatchStatusAsync(
global::System.Threading.Tasks.Task<global::Ideogram.InternalBatchResultsResponse> GetMaybeBatchResultsAsync(
string jobId,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public partial interface IBatchClient
/// <summary>
/// Initiate Batch Magic Prompt Evalution<br/>
/// Runs automated evaluation of multiple LLM models and system prompts for magic prompt generation. <br/>
/// Generates images using large batches of user prompt inputs and creates TFRecord format for side-by-side service upload. Internal use only (feature flagged).
/// Generates images using large batches of user prompt inputs. Internal use only (feature flagged).
/// </summary>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -19,7 +19,7 @@ public partial interface IBatchClient
/// <summary>
/// Initiate Batch Magic Prompt Evalution<br/>
/// Runs automated evaluation of multiple LLM models and system prompts for magic prompt generation. <br/>
/// Generates images using large batches of user prompt inputs and creates TFRecord format for side-by-side service upload. Internal use only (feature flagged).
/// Generates images using large batches of user prompt inputs. Internal use only (feature flagged).
/// </summary>
/// <param name="userPrompts">
/// The prompts to enhance with a magic prompt.<br/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#nullable enable

namespace Ideogram
{
public partial interface IManageClient
{
/// <summary>
/// Retrieve user credit information and spending metrics
/// </summary>
/// <param name="organizationId"></param>
/// <param name="startDate"></param>
/// <param name="endDate"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Ideogram.GetUserCreditsResponse> GetUserCreditsAsync(
string organizationId,
global::System.DateTime startDate,
global::System.DateTime? endDate = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#nullable enable

namespace Ideogram
{
public partial interface IManageClient
{
/// <summary>
/// Retrieve user spend commit information
/// </summary>
/// <param name="organizationId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ideogram.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Ideogram.SpendCommitInfoResponse> GetUserSpendCommitInfoAsync(
string organizationId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -266,94 +266,118 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ideogram.InternalBatchStatusResponse? Type60 { get; set; }
public global::Ideogram.InternalBatchResultsResponse? Type60 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.ImageSafetyError? Type61 { get; set; }
public global::System.Collections.Generic.IList<global::Ideogram.InternalBatchResultsResponseResultsInner>? Type61 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.ManageApiSubscriptionResponse? Type62 { get; set; }
public global::Ideogram.InternalBatchResultsResponseResultsInner? Type62 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.MetronomeLinks? Type63 { get; set; }
public global::Ideogram.ImageSafetyError? Type63 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.RechargeSettingsResponse? Type64 { get; set; }
public global::Ideogram.ManageApiSubscriptionResponse? Type64 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.RechargeSettings? Type65 { get; set; }
public global::Ideogram.MetronomeLinks? Type65 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.Price? Type66 { get; set; }
public global::Ideogram.RechargeSettingsResponse? Type66 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostApiSubscriptionResponse? Type67 { get; set; }
public global::Ideogram.RechargeSettings? Type67 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostApiSubscriptionError? Type68 { get; set; }
public global::Ideogram.Price? Type68 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostApiSubscriptionRequest? Type69 { get; set; }
public global::Ideogram.PostApiSubscriptionResponse? Type69 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostApiReactivateResponse? Type70 { get; set; }
public global::Ideogram.PostApiSubscriptionError? Type70 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.GetApiKeysResponse? Type71 { get; set; }
public global::Ideogram.PostApiSubscriptionRequest? Type71 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.RedactedApiKey>? Type72 { get; set; }
public global::Ideogram.PostApiReactivateResponse? Type72 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.RedactedApiKey? Type73 { get; set; }
public global::Ideogram.GetApiKeysResponse? Type73 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostApiKeyResponse? Type74 { get; set; }
public global::System.Collections.Generic.IList<global::Ideogram.RedactedApiKey>? Type74 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.ManageApiStripeSubscriptionResponse? Type75 { get; set; }
public global::Ideogram.RedactedApiKey? Type75 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.GetApiTermsResponse? Type76 { get; set; }
public global::Ideogram.PostApiKeyResponse? Type76 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.ApiTerms? Type77 { get; set; }
public global::Ideogram.ManageApiStripeSubscriptionResponse? Type77 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostApiTermsRequest? Type78 { get; set; }
public global::Ideogram.GetApiTermsResponse? Type78 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostAddCreditsResponse? Type79 { get; set; }
public global::Ideogram.ApiTerms? Type79 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostAddCreditsError? Type80 { get; set; }
public global::Ideogram.PostApiTermsRequest? Type80 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostAddCreditsRequest? Type81 { get; set; }
public global::Ideogram.PostAddCreditsResponse? Type81 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostInternalTesting200Response? Type82 { get; set; }
public global::Ideogram.PostAddCreditsError? Type82 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostAddCreditsRequest? Type83 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.GetUserCreditsResponse? Type84 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.SpendCommitInfoResponse? Type85 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.SpendCommitInfo>? Type86 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.SpendCommitInfo? Type87 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostInternalTesting200Response? Type88 { get; set; }
}
}
Loading
Loading