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 @@ -53,6 +53,8 @@ namespace Ideogram
typeof(global::Ideogram.JsonConverters.ApiProfileRoleNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.ApiKeyStatusJsonConverter),
typeof(global::Ideogram.JsonConverters.ApiKeyStatusNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.InvoiceStatusJsonConverter),
typeof(global::Ideogram.JsonConverters.InvoiceStatusNullableJsonConverter),
typeof(global::Ideogram.JsonConverters.ColorPaletteWithPresetNameOrMembersJsonConverter),
typeof(global::Ideogram.JsonConverters.UnixTimestampJsonConverter),
})]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#nullable enable

namespace Ideogram
{
public partial interface IManageClient
{
/// <summary>
/// Get search results for user handles with suggestions for a particular organization.
/// </summary>
/// <param name="organizationId"></param>
/// <param name="userHandlePrefix"></param>
/// <param name="maxItems">
/// Default Value: 3
/// </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.GetApiOrganizationUserSuggestionsResponse> GetApiOrganizationUserSuggestionsAsync(
string organizationId,
string? userHandlePrefix = default,
int? maxItems = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Ideogram.JsonConverters
{
/// <inheritdoc />
public sealed class InvoiceStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Ideogram.InvoiceStatus>
{
/// <inheritdoc />
public override global::Ideogram.InvoiceStatus Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Ideogram.InvoiceStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Ideogram.InvoiceStatus)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.InvoiceStatus);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Ideogram.InvoiceStatus value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Ideogram.InvoiceStatusExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Ideogram.JsonConverters
{
/// <inheritdoc />
public sealed class InvoiceStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Ideogram.InvoiceStatus?>
{
/// <inheritdoc />
public override global::Ideogram.InvoiceStatus? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Ideogram.InvoiceStatusExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Ideogram.InvoiceStatus)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.InvoiceStatus?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Ideogram.InvoiceStatus? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::Ideogram.InvoiceStatusExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -442,86 +442,102 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ideogram.GetOrganizationMembersResponse? Type104 { get; set; }
public global::Ideogram.GetApiOrganizationUserSuggestionsResponse? Type104 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.OrganizationMember>? Type105 { get; set; }
public global::System.Collections.Generic.IList<global::Ideogram.ApiOrganizationUserSuggestion>? Type105 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.OrganizationMember? Type106 { get; set; }
public global::Ideogram.ApiOrganizationUserSuggestion? Type106 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.CreateApiKeyResponse? Type107 { get; set; }
public global::Ideogram.GetOrganizationMembersResponse? Type107 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.GetApiKeysV2Response? Type108 { get; set; }
public global::System.Collections.Generic.IList<global::Ideogram.OrganizationMember>? Type108 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.OrganizationMemberOperationResponse? Type109 { get; set; }
public global::Ideogram.OrganizationMember? Type109 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.OrganizationMemberOperationResult>? Type110 { get; set; }
public global::Ideogram.CreateApiKeyResponse? Type110 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.OrganizationMemberOperationResult? Type111 { get; set; }
public global::Ideogram.GetApiKeysV2Response? Type111 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.AddOrganizationMembersRequest? Type112 { get; set; }
public global::Ideogram.OrganizationMemberOperationResponse? Type112 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.LiteOrganizationMember>? Type113 { get; set; }
public global::System.Collections.Generic.IList<global::Ideogram.OrganizationMemberOperationResult>? Type113 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.LiteOrganizationMember? Type114 { get; set; }
public global::Ideogram.OrganizationMemberOperationResult? Type114 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.RemoveOrganizationMembersRequest? Type115 { get; set; }
public global::Ideogram.AddOrganizationMembersRequest? Type115 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PromoteOrganizationMembersRequest? Type116 { get; set; }
public global::System.Collections.Generic.IList<global::Ideogram.LiteOrganizationMember>? Type116 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.ListOrganizationInvoicesResponse? Type117 { get; set; }
public global::Ideogram.LiteOrganizationMember? Type117 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.Invoice>? Type118 { get; set; }
public global::Ideogram.RemoveOrganizationMembersRequest? Type118 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.Invoice? Type119 { get; set; }
public global::Ideogram.PromoteOrganizationMembersRequest? Type119 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.InvoiceLineItem>? Type120 { get; set; }
public global::Ideogram.ListOrganizationInvoicesResponse? Type120 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.InvoiceLineItem? Type121 { get; set; }
public global::System.Collections.Generic.IList<global::Ideogram.Invoice>? Type121 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostInternalTesting200Response? Type122 { get; set; }
public global::Ideogram.Invoice? Type122 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.ModelVersion>? Type123 { get; set; }
public global::Ideogram.InvoiceStatus? Type123 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.ToolType>? Type124 { get; set; }
public global::System.Collections.Generic.IList<global::Ideogram.InvoiceLineItem>? Type124 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.InvoiceLineItem? Type125 { get; set; }
/// <summary>
///
/// </summary>
public global::Ideogram.PostInternalTesting200Response? Type126 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.ModelVersion>? Type127 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ideogram.ToolType>? Type128 { get; set; }
}
}
Loading
Loading