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 @@ -15,13 +15,15 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(long))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetReferenceUsageResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Ideogram.AssetReferenceUsageItem>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetReferenceUsageItem))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetIdentifier))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetType), TypeInfoPropertyName = "AssetType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetType?), TypeInfoPropertyName = "NullableAssetType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Ideogram.AssetReferenceUsageItem>))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ public partial class AssetReferenceUsageClient
};
partial void PrepareGetAssetReferenceUsageArguments(
global::System.Net.Http.HttpClient httpClient,
ref bool? includeCollections,
ref global::System.DateTime startDate,
ref global::System.DateTime endDate,
ref string? cursor);
partial void PrepareGetAssetReferenceUsageRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
bool? includeCollections,
global::System.DateTime startDate,
global::System.DateTime endDate,
string? cursor);
Expand All @@ -49,6 +51,9 @@ partial void ProcessGetAssetReferenceUsageResponseContent(
/// Rank edit reference assets used by organization requests<br/>
/// Counts completed requests made by the authenticated organization that used each existing asset as an edit input during the UTC date range. Direct file uploads without saved asset identifiers are excluded. Results are independent of current asset ownership, collection membership, and sharing. Returning an identifier does not grant access to its image. Tracking begins when enabled; earlier history is not included. Returns 50 assets per page. Rankings may change between pages when daily counts are updated; cursors do not pin a historical snapshot.
/// </summary>
/// <param name="includeCollections">
/// Default Value: false
/// </param>
/// <param name="startDate"></param>
/// <param name="endDate"></param>
/// <param name="cursor"></param>
Expand All @@ -58,13 +63,15 @@ partial void ProcessGetAssetReferenceUsageResponseContent(
public async global::System.Threading.Tasks.Task<global::Ideogram.AssetReferenceUsageResponse> GetAssetReferenceUsageAsync(
global::System.DateTime startDate,
global::System.DateTime endDate,
bool? includeCollections = default,
string? cursor = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await GetAssetReferenceUsageAsResponseAsync(
startDate: startDate,
endDate: endDate,
includeCollections: includeCollections,
cursor: cursor,
requestOptions: requestOptions,
cancellationToken: cancellationToken
Expand All @@ -76,6 +83,9 @@ partial void ProcessGetAssetReferenceUsageResponseContent(
/// Rank edit reference assets used by organization requests<br/>
/// Counts completed requests made by the authenticated organization that used each existing asset as an edit input during the UTC date range. Direct file uploads without saved asset identifiers are excluded. Results are independent of current asset ownership, collection membership, and sharing. Returning an identifier does not grant access to its image. Tracking begins when enabled; earlier history is not included. Returns 50 assets per page. Rankings may change between pages when daily counts are updated; cursors do not pin a historical snapshot.
/// </summary>
/// <param name="includeCollections">
/// Default Value: false
/// </param>
/// <param name="startDate"></param>
/// <param name="endDate"></param>
/// <param name="cursor"></param>
Expand All @@ -85,6 +95,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent(
public async global::System.Threading.Tasks.Task<global::Ideogram.AutoSDKHttpResponse<global::Ideogram.AssetReferenceUsageResponse>> GetAssetReferenceUsageAsResponseAsync(
global::System.DateTime startDate,
global::System.DateTime endDate,
bool? includeCollections = default,
string? cursor = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand All @@ -93,6 +104,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent(
client: HttpClient);
PrepareGetAssetReferenceUsageArguments(
httpClient: HttpClient,
includeCollections: ref includeCollections,
startDate: ref startDate,
endDate: ref endDate,
cursor: ref cursor);
Expand Down Expand Up @@ -124,6 +136,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent(
path: "/v2/assets/reference-usage",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("include_collections", includeCollections?.ToString().ToLowerInvariant())
.AddRequiredParameter("start_date", startDate.ToString("yyyy-MM-dd"))
.AddRequiredParameter("end_date", endDate.ToString("yyyy-MM-dd"))
.AddOptionalParameter("cursor", cursor)
Expand Down Expand Up @@ -168,6 +181,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent(
PrepareGetAssetReferenceUsageRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
includeCollections: includeCollections,
startDate: startDate,
endDate: endDate,
cursor: cursor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ public partial interface IAssetReferenceUsageClient
/// Rank edit reference assets used by organization requests<br/>
/// Counts completed requests made by the authenticated organization that used each existing asset as an edit input during the UTC date range. Direct file uploads without saved asset identifiers are excluded. Results are independent of current asset ownership, collection membership, and sharing. Returning an identifier does not grant access to its image. Tracking begins when enabled; earlier history is not included. Returns 50 assets per page. Rankings may change between pages when daily counts are updated; cursors do not pin a historical snapshot.
/// </summary>
/// <param name="includeCollections">
/// Default Value: false
/// </param>
/// <param name="startDate"></param>
/// <param name="endDate"></param>
/// <param name="cursor"></param>
Expand All @@ -17,13 +20,17 @@ public partial interface IAssetReferenceUsageClient
global::System.Threading.Tasks.Task<global::Ideogram.AssetReferenceUsageResponse> GetAssetReferenceUsageAsync(
global::System.DateTime startDate,
global::System.DateTime endDate,
bool? includeCollections = default,
string? cursor = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Rank edit reference assets used by organization requests<br/>
/// Counts completed requests made by the authenticated organization that used each existing asset as an edit input during the UTC date range. Direct file uploads without saved asset identifiers are excluded. Results are independent of current asset ownership, collection membership, and sharing. Returning an identifier does not grant access to its image. Tracking begins when enabled; earlier history is not included. Returns 50 assets per page. Rankings may change between pages when daily counts are updated; cursors do not pin a historical snapshot.
/// </summary>
/// <param name="includeCollections">
/// Default Value: false
/// </param>
/// <param name="startDate"></param>
/// <param name="endDate"></param>
/// <param name="cursor"></param>
Expand All @@ -33,6 +40,7 @@ public partial interface IAssetReferenceUsageClient
global::System.Threading.Tasks.Task<global::Ideogram.AutoSDKHttpResponse<global::Ideogram.AssetReferenceUsageResponse>> GetAssetReferenceUsageAsResponseAsync(
global::System.DateTime startDate,
global::System.DateTime endDate,
bool? includeCollections = default,
string? cursor = default,
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
public partial interface IManageClient
{
/// <summary>
/// Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization
/// Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="request"></param>
Expand All @@ -19,7 +19,7 @@ public partial interface IManageClient
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization
/// Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="request"></param>
Expand All @@ -33,7 +33,7 @@ public partial interface IManageClient
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization
/// Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="members">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Ideogram
public partial interface IManageClient
{
/// <summary>
/// Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization
/// Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="request"></param>
Expand All @@ -19,7 +19,7 @@ public partial interface IManageClient
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization
/// Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="request"></param>
Expand All @@ -33,7 +33,7 @@ public partial interface IManageClient
global::Ideogram.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization
/// Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="members">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ partial void ProcessDemoteOrganizationAdminsResponseContent(
ref string content);

/// <summary>
/// Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization
/// Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="request"></param>
Expand All @@ -69,7 +69,7 @@ partial void ProcessDemoteOrganizationAdminsResponseContent(
return __response.Body;
}
/// <summary>
/// Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization
/// Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="request"></param>
Expand Down Expand Up @@ -572,7 +572,7 @@ partial void ProcessDemoteOrganizationAdminsResponseContent(
}
}
/// <summary>
/// Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization
/// Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="members">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ partial void ProcessPromoteOrganizationAdminsResponseContent(
ref string content);

/// <summary>
/// Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization
/// Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="request"></param>
Expand All @@ -69,7 +69,7 @@ partial void ProcessPromoteOrganizationAdminsResponseContent(
return __response.Body;
}
/// <summary>
/// Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization
/// Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="request"></param>
Expand Down Expand Up @@ -572,7 +572,7 @@ partial void ProcessPromoteOrganizationAdminsResponseContent(
}
}
/// <summary>
/// Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization
/// Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization
/// </summary>
/// <param name="organizationId"></param>
/// <param name="members">
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public sealed partial class ApiProfile
public required string OrganizationId { get; set; }

/// <summary>
/// Role within an organization profile. ADMIN only exists for TEAM_API organizations.<br/>
/// Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.<br/>
/// Example: OWNER
/// </summary>
/// <example>OWNER</example>
Expand Down Expand Up @@ -106,7 +106,7 @@ public sealed partial class ApiProfile
/// Example: b3JnYW5pemF0aW9uXzEyMw
/// </param>
/// <param name="role">
/// Role within an organization profile. ADMIN only exists for TEAM_API organizations.<br/>
/// Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.<br/>
/// Example: OWNER
/// </param>
/// <param name="apiKeys">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Ideogram
{
/// <summary>
/// Role within an organization profile. ADMIN only exists for TEAM_API organizations.<br/>
/// Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.<br/>
/// Example: OWNER
/// </summary>
public enum ApiProfileRole
Expand Down
10 changes: 5 additions & 5 deletions src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ public enum ApiProfileType
/// <summary>
///
/// </summary>
Individual,
EnterprisePrepaid,
/// <summary>
///
/// </summary>
Team,
Individual,
/// <summary>
///
/// </summary>
TeamApi,
Team,
}

/// <summary>
Expand All @@ -40,9 +40,9 @@ public static string ToValueString(this ApiProfileType value)
return value switch
{
ApiProfileType.Enterprise => "ENTERPRISE",
ApiProfileType.EnterprisePrepaid => "ENTERPRISE_PREPAID",
ApiProfileType.Individual => "INDIVIDUAL",
ApiProfileType.Team => "TEAM",
ApiProfileType.TeamApi => "TEAM_API",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -54,9 +54,9 @@ public static string ToValueString(this ApiProfileType value)
return value switch
{
"ENTERPRISE" => ApiProfileType.Enterprise,
"ENTERPRISE_PREPAID" => ApiProfileType.EnterprisePrepaid,
"INDIVIDUAL" => ApiProfileType.Individual,
"TEAM" => ApiProfileType.Team,
"TEAM_API" => ApiProfileType.TeamApi,
_ => null,
};
}
Expand Down
Loading
Loading