diff --git a/src/libs/Ideogram/Generated/Ideogram.AssetReferenceUsage.JsonSerializerContext.g.cs b/src/libs/Ideogram/Generated/Ideogram.AssetReferenceUsage.JsonSerializerContext.g.cs index 5c8ca38..33bdb5e 100644 --- a/src/libs/Ideogram/Generated/Ideogram.AssetReferenceUsage.JsonSerializerContext.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.AssetReferenceUsage.JsonSerializerContext.g.cs @@ -15,6 +15,7 @@ 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))] @@ -22,6 +23,7 @@ namespace Ideogram [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))] diff --git a/src/libs/Ideogram/Generated/Ideogram.AssetReferenceUsageClient.GetAssetReferenceUsage.g.cs b/src/libs/Ideogram/Generated/Ideogram.AssetReferenceUsageClient.GetAssetReferenceUsage.g.cs index d865cb6..28d4c33 100644 --- a/src/libs/Ideogram/Generated/Ideogram.AssetReferenceUsageClient.GetAssetReferenceUsage.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.AssetReferenceUsageClient.GetAssetReferenceUsage.g.cs @@ -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); @@ -49,6 +51,9 @@ partial void ProcessGetAssetReferenceUsageResponseContent( /// Rank edit reference assets used by organization requests
/// 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. /// + /// + /// Default Value: false + /// /// /// /// @@ -58,6 +63,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent( public async global::System.Threading.Tasks.Task 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) @@ -65,6 +71,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent( var __response = await GetAssetReferenceUsageAsResponseAsync( startDate: startDate, endDate: endDate, + includeCollections: includeCollections, cursor: cursor, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -76,6 +83,9 @@ partial void ProcessGetAssetReferenceUsageResponseContent( /// Rank edit reference assets used by organization requests
/// 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. /// + /// + /// Default Value: false + /// /// /// /// @@ -85,6 +95,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent( public async global::System.Threading.Tasks.Task> 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) @@ -93,6 +104,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent( client: HttpClient); PrepareGetAssetReferenceUsageArguments( httpClient: HttpClient, + includeCollections: ref includeCollections, startDate: ref startDate, endDate: ref endDate, cursor: ref cursor); @@ -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) @@ -168,6 +181,7 @@ partial void ProcessGetAssetReferenceUsageResponseContent( PrepareGetAssetReferenceUsageRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + includeCollections: includeCollections, startDate: startDate, endDate: endDate, cursor: cursor); diff --git a/src/libs/Ideogram/Generated/Ideogram.IAssetReferenceUsageClient.GetAssetReferenceUsage.g.cs b/src/libs/Ideogram/Generated/Ideogram.IAssetReferenceUsageClient.GetAssetReferenceUsage.g.cs index 4eb3330..bed6c38 100644 --- a/src/libs/Ideogram/Generated/Ideogram.IAssetReferenceUsageClient.GetAssetReferenceUsage.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.IAssetReferenceUsageClient.GetAssetReferenceUsage.g.cs @@ -8,6 +8,9 @@ public partial interface IAssetReferenceUsageClient /// Rank edit reference assets used by organization requests
/// 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. /// + /// + /// Default Value: false + /// /// /// /// @@ -17,6 +20,7 @@ public partial interface IAssetReferenceUsageClient global::System.Threading.Tasks.Task 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); @@ -24,6 +28,9 @@ public partial interface IAssetReferenceUsageClient /// Rank edit reference assets used by organization requests
/// 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. /// + /// + /// Default Value: false + /// /// /// /// @@ -33,6 +40,7 @@ public partial interface IAssetReferenceUsageClient global::System.Threading.Tasks.Task> 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); diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.DemoteOrganizationAdmins.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.DemoteOrganizationAdmins.g.cs index 3cd30da..7c62170 100644 --- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.DemoteOrganizationAdmins.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.DemoteOrganizationAdmins.g.cs @@ -5,7 +5,7 @@ namespace Ideogram public partial interface IManageClient { /// - /// 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 /// /// /// @@ -19,7 +19,7 @@ public partial interface IManageClient global::Ideogram.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// 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 /// /// /// @@ -33,7 +33,7 @@ public partial interface IManageClient global::Ideogram.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// 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 /// /// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationAdmins.g.cs b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationAdmins.g.cs index 9a33a0e..9d3a3a9 100644 --- a/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationAdmins.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.IManageClient.PromoteOrganizationAdmins.g.cs @@ -5,7 +5,7 @@ namespace Ideogram public partial interface IManageClient { /// - /// 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 /// /// /// @@ -19,7 +19,7 @@ public partial interface IManageClient global::Ideogram.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// 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 /// /// /// @@ -33,7 +33,7 @@ public partial interface IManageClient global::Ideogram.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// 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 /// /// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.DemoteOrganizationAdmins.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.DemoteOrganizationAdmins.g.cs index e437bdc..f574b5a 100644 --- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.DemoteOrganizationAdmins.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.DemoteOrganizationAdmins.g.cs @@ -44,7 +44,7 @@ partial void ProcessDemoteOrganizationAdminsResponseContent( ref string content); /// - /// 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 /// /// /// @@ -69,7 +69,7 @@ partial void ProcessDemoteOrganizationAdminsResponseContent( return __response.Body; } /// - /// 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 /// /// /// @@ -572,7 +572,7 @@ partial void ProcessDemoteOrganizationAdminsResponseContent( } } /// - /// 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 /// /// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationAdmins.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationAdmins.g.cs index f50cc42..25a161b 100644 --- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationAdmins.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationAdmins.g.cs @@ -44,7 +44,7 @@ partial void ProcessPromoteOrganizationAdminsResponseContent( ref string content); /// - /// 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 /// /// /// @@ -69,7 +69,7 @@ partial void ProcessPromoteOrganizationAdminsResponseContent( return __response.Body; } /// - /// 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 /// /// /// @@ -572,7 +572,7 @@ partial void ProcessPromoteOrganizationAdminsResponseContent( } } /// - /// 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 /// /// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs index 070612b..c0cd261 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfile.g.cs @@ -45,7 +45,7 @@ public sealed partial class ApiProfile public required string OrganizationId { get; set; } /// - /// Role within an organization profile. ADMIN only exists for TEAM_API organizations.
+ /// Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.
/// Example: OWNER ///
/// OWNER @@ -106,7 +106,7 @@ public sealed partial class ApiProfile /// Example: b3JnYW5pemF0aW9uXzEyMw /// /// - /// Role within an organization profile. ADMIN only exists for TEAM_API organizations.
+ /// Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.
/// Example: OWNER /// /// diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileRole.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileRole.g.cs index 3977d13..9679b23 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileRole.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileRole.g.cs @@ -4,7 +4,7 @@ namespace Ideogram { /// - /// Role within an organization profile. ADMIN only exists for TEAM_API organizations.
+ /// Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.
/// Example: OWNER ///
public enum ApiProfileRole diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs index ebfacc2..8c4e21d 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.ApiProfileType.g.cs @@ -16,15 +16,15 @@ public enum ApiProfileType /// /// /// - Individual, + EnterprisePrepaid, /// /// /// - Team, + Individual, /// /// /// - TeamApi, + Team, } /// @@ -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), }; } @@ -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, }; } diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.AssetReferenceUsageItem.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.AssetReferenceUsageItem.g.cs index 7a0dd54..d69bc8e 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.AssetReferenceUsageItem.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.AssetReferenceUsageItem.g.cs @@ -4,7 +4,7 @@ namespace Ideogram { /// - /// Example: {"asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"request_count":1} + /// Example: {"collection_id":"collection_id","collection_path":"collection_path","asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"file_name":"file_name","download_url":"download_url","collection_name":"collection_name","request_count":1} /// public sealed partial class AssetReferenceUsageItem { @@ -17,6 +17,36 @@ public sealed partial class AssetReferenceUsageItem [global::System.Text.Json.Serialization.JsonRequired] public required global::Ideogram.AssetIdentifier AssetIdentifier { get; set; } + /// + /// Present when include_collections is true. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("collection_id")] + public string? CollectionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("collection_name")] + public string? CollectionName { get; set; } + + /// + /// Readable collection names from accessible ancestors through this collection, separated by " / ". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("collection_path")] + public string? CollectionPath { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_name")] + public string? FileName { get; set; } + + /// + /// Signed image URL valid for 24 hours, issued only when the caller can read the asset. Refresh the listing to obtain a fresh URL. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("download_url")] + public string? DownloadUrl { get; set; } + /// /// Completed organization requests using the asset as an edit input within the requested range. /// @@ -40,14 +70,35 @@ public sealed partial class AssetReferenceUsageItem /// /// Completed organization requests using the asset as an edit input within the requested range. /// + /// + /// Present when include_collections is true. + /// + /// + /// + /// Readable collection names from accessible ancestors through this collection, separated by " / ". + /// + /// + /// + /// Signed image URL valid for 24 hours, issued only when the caller can read the asset. Refresh the listing to obtain a fresh URL. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AssetReferenceUsageItem( global::Ideogram.AssetIdentifier assetIdentifier, - long requestCount) + long requestCount, + string? collectionId, + string? collectionName, + string? collectionPath, + string? fileName, + string? downloadUrl) { this.AssetIdentifier = assetIdentifier ?? throw new global::System.ArgumentNullException(nameof(assetIdentifier)); + this.CollectionId = collectionId; + this.CollectionName = collectionName; + this.CollectionPath = collectionPath; + this.FileName = fileName; + this.DownloadUrl = downloadUrl; this.RequestCount = requestCount; } diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.AssetReferenceUsageResponse.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.AssetReferenceUsageResponse.g.cs index ac2c4a1..a7aabe1 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.AssetReferenceUsageResponse.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.AssetReferenceUsageResponse.g.cs @@ -4,7 +4,7 @@ namespace Ideogram { /// - /// Example: {"next_cursor":"next_cursor","assets":[{"asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"request_count":1},{"asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"request_count":1}]} + /// Example: {"next_cursor":"next_cursor","assets":[{"collection_id":"collection_id","collection_path":"collection_path","asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"file_name":"file_name","download_url":"download_url","collection_name":"collection_name","request_count":1},{"collection_id":"collection_id","collection_path":"collection_path","asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"file_name":"file_name","download_url":"download_url","collection_name":"collection_name","request_count":1}]} /// public sealed partial class AssetReferenceUsageResponse { diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMember.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMember.g.cs index e855f0c..0cd77fa 100644 --- a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMember.g.cs +++ b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationMember.g.cs @@ -42,7 +42,7 @@ public sealed partial class OrganizationMember public string? AvatarUrl { get; set; } /// - /// Role within an organization profile. ADMIN only exists for TEAM_API organizations.
+ /// Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.
/// Example: OWNER ///
/// OWNER @@ -91,7 +91,7 @@ public sealed partial class OrganizationMember /// Example: john.doe@example.com /// /// - /// Role within an organization profile. ADMIN only exists for TEAM_API organizations.
+ /// Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.
/// Example: OWNER /// /// diff --git a/src/libs/Ideogram/Generated/autosdk.generated-examples.json b/src/libs/Ideogram/Generated/autosdk.generated-examples.json index cfab571..f578e70 100644 --- a/src/libs/Ideogram/Generated/autosdk.generated-examples.json +++ b/src/libs/Ideogram/Generated/autosdk.generated-examples.json @@ -39,7 +39,7 @@ "Slug": "get-asset-reference-usage", "Description": "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.", "Language": "http", - "Code": "### Rank edit reference assets used by organization requests\n# @name get_asset_reference_usage\nGET {{host}}/v2/assets/reference-usage?start_date={{start_date}}\u0026end_date={{end_date}}\u0026cursor={{cursor}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Ranked edit reference assets\n# Content-Type: application/json\n# 400\n# Description: Invalid date range or cursor, or missing organization context\n# 401\n# Description: Unauthorized\n# 503\n# Description: Usage data temporarily unavailable", + "Code": "### Rank edit reference assets used by organization requests\n# @name get_asset_reference_usage\nGET {{host}}/v2/assets/reference-usage?include_collections=false\u0026start_date={{start_date}}\u0026end_date={{end_date}}\u0026cursor={{cursor}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Ranked edit reference assets\n# Content-Type: application/json\n# 400\n# Description: Invalid date range or cursor, or missing organization context\n# 401\n# Description: Unauthorized\n# 503\n# Description: Usage data temporarily unavailable", "Format": "http", "OperationId": "get_asset_reference_usage", "Setup": null @@ -1443,11 +1443,11 @@ }, { "Order": 132, - "Title": "Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization", + "Title": "Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization", "Slug": "demote-organization-admins", "Description": "Generated from OpenAPI examples.", "Language": "http", - "Code": "### Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization\n# @name demote_organization_admins\nPOST {{host}}/manage/api/organization/demote_admins?organization_id={{organization_id}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022members\u0022: [\n {\n \u0022display_handle\u0022: \u0022john_doe\u0022,\n \u0022email_address\u0022: \u0022john.doe@example.com\u0022,\n \u0022user_id\u0022: \u0022dXNlcl8xMjM\u0022\n },\n {\n \u0022display_handle\u0022: \u0022john_doe\u0022,\n \u0022email_address\u0022: \u0022john.doe@example.com\u0022,\n \u0022user_id\u0022: \u0022dXNlcl8xMjM\u0022\n }\n ]\n}\n\n## Responses\n# 200\n# Description: Results of demoting admins\n# Content-Type: application/json\n# 400\n# Description: Bad Request\n# 401\n# Description: Not authorized\n# 403\n# Description: Not authorized - must be an organization owner\n# 404\n# Description: Organization not found", + "Code": "### Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization\n# @name demote_organization_admins\nPOST {{host}}/manage/api/organization/demote_admins?organization_id={{organization_id}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022members\u0022: [\n {\n \u0022display_handle\u0022: \u0022john_doe\u0022,\n \u0022email_address\u0022: \u0022john.doe@example.com\u0022,\n \u0022user_id\u0022: \u0022dXNlcl8xMjM\u0022\n },\n {\n \u0022display_handle\u0022: \u0022john_doe\u0022,\n \u0022email_address\u0022: \u0022john.doe@example.com\u0022,\n \u0022user_id\u0022: \u0022dXNlcl8xMjM\u0022\n }\n ]\n}\n\n## Responses\n# 200\n# Description: Results of demoting admins\n# Content-Type: application/json\n# 400\n# Description: Bad Request\n# 401\n# Description: Not authorized\n# 403\n# Description: Not authorized - must be an organization owner\n# 404\n# Description: Organization not found", "Format": "http", "OperationId": "demote_organization_admins", "Setup": null @@ -1641,11 +1641,11 @@ }, { "Order": 150, - "Title": "Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization", + "Title": "Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization", "Slug": "promote-organization-admins", "Description": "Generated from OpenAPI examples.", "Language": "http", - "Code": "### Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization\n# @name promote_organization_admins\nPOST {{host}}/manage/api/organization/promote_admins?organization_id={{organization_id}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022members\u0022: [\n {\n \u0022display_handle\u0022: \u0022john_doe\u0022,\n \u0022email_address\u0022: \u0022john.doe@example.com\u0022,\n \u0022user_id\u0022: \u0022dXNlcl8xMjM\u0022\n },\n {\n \u0022display_handle\u0022: \u0022john_doe\u0022,\n \u0022email_address\u0022: \u0022john.doe@example.com\u0022,\n \u0022user_id\u0022: \u0022dXNlcl8xMjM\u0022\n }\n ]\n}\n\n## Responses\n# 200\n# Description: Results of promoting members to admin\n# Content-Type: application/json\n# 400\n# Description: Bad Request\n# 401\n# Description: Not authorized\n# 403\n# Description: Not authorized - must be an organization owner or admin\n# 404\n# Description: Organization not found", + "Code": "### Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization\n# @name promote_organization_admins\nPOST {{host}}/manage/api/organization/promote_admins?organization_id={{organization_id}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022members\u0022: [\n {\n \u0022display_handle\u0022: \u0022john_doe\u0022,\n \u0022email_address\u0022: \u0022john.doe@example.com\u0022,\n \u0022user_id\u0022: \u0022dXNlcl8xMjM\u0022\n },\n {\n \u0022display_handle\u0022: \u0022john_doe\u0022,\n \u0022email_address\u0022: \u0022john.doe@example.com\u0022,\n \u0022user_id\u0022: \u0022dXNlcl8xMjM\u0022\n }\n ]\n}\n\n## Responses\n# 200\n# Description: Results of promoting members to admin\n# Content-Type: application/json\n# 400\n# Description: Bad Request\n# 401\n# Description: Not authorized\n# 403\n# Description: Not authorized - must be an organization owner or admin\n# 404\n# Description: Organization not found", "Format": "http", "OperationId": "promote_organization_admins", "Setup": null diff --git a/src/libs/Ideogram/openapi.json b/src/libs/Ideogram/openapi.json index 78bb17a..bd2e5d3 100644 --- a/src/libs/Ideogram/openapi.json +++ b/src/libs/Ideogram/openapi.json @@ -1568,7 +1568,7 @@ "operationId": "demote_organization_admins", "parameters": [ { - "description": "Base64 encoded organization ID. Must be a TEAM_API or ENTERPRISE_API workspace.", + "description": "Base64 encoded organization ID. Must be an ENTERPRISE_PREPAID or ENTERPRISE_API workspace.", "in": "query", "name": "organization_id", "required": true, @@ -1585,7 +1585,7 @@ } } }, - "description": "A request to demote admins back to MEMBER role in a TEAM_API or ENTERPRISE_API organization. Caller must be OWNER — admins cannot demote other admins.", + "description": "A request to demote admins back to MEMBER role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization. Caller must be OWNER — admins cannot demote other admins.", "required": true, "x-body-name": "demote_organization_admins_request" }, @@ -1618,7 +1618,7 @@ "BearerAuth": [] } ], - "summary": "Demote admins back to member role in a TEAM_API or ENTERPRISE_API organization", + "summary": "Demote admins back to member role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization", "tags": [ "manage" ], @@ -1766,7 +1766,7 @@ "operationId": "promote_organization_admins", "parameters": [ { - "description": "Base64 encoded organization ID. Must be a TEAM_API or ENTERPRISE_API workspace.", + "description": "Base64 encoded organization ID. Must be an ENTERPRISE_PREPAID or ENTERPRISE_API workspace.", "in": "query", "name": "organization_id", "required": true, @@ -1783,7 +1783,7 @@ } } }, - "description": "A request to promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization. Caller must be OWNER or ADMIN.", + "description": "A request to promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization. Caller must be OWNER or ADMIN.", "required": true, "x-body-name": "promote_organization_admins_request" }, @@ -1816,7 +1816,7 @@ "BearerAuth": [] } ], - "summary": "Promote members to ADMIN role in a TEAM_API or ENTERPRISE_API organization", + "summary": "Promote members to ADMIN role in an ENTERPRISE_PREPAID or ENTERPRISE_API organization", "tags": [ "manage" ], @@ -2275,7 +2275,7 @@ "operationId": "get_api_subscription", "parameters": [ { - "description": "Workspace to load the subscription for. The caller must be OWNER, ADMIN, or MEMBER of the org. The response shape branches on the org's type (PRIVATE / TEAM_API get recharge settings; ENTERPRISE_API does not).", + "description": "Workspace to load the subscription for. The caller must be OWNER, ADMIN, or MEMBER of the org. The response shape branches on the org's type (PRIVATE / ENTERPRISE_PREPAID get recharge settings; ENTERPRISE_API does not).", "in": "query", "name": "organization_id", "required": true, @@ -7352,6 +7352,15 @@ "description": "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.", "operationId": "get_asset_reference_usage", "parameters": [ + { + "description": "Return one entry per accessible image collection membership, with current filenames. Counts remain asset-wide. Pages may be short or empty; follow next_cursor until null.", + "in": "query", + "name": "include_collections", + "schema": { + "default": false, + "type": "boolean" + } + }, { "description": "Inclusive UTC usage date.", "in": "query", @@ -19864,17 +19873,27 @@ "next_cursor": "next_cursor", "assets": [ { + "collection_id": "collection_id", + "collection_path": "collection_path", "asset_identifier": { "asset_type": "RESPONSE", "asset_id": "7uS_VESkRI6O3-sVgHQp_A" }, + "file_name": "file_name", + "download_url": "download_url", + "collection_name": "collection_name", "request_count": 1 }, { + "collection_id": "collection_id", + "collection_path": "collection_path", "asset_identifier": { "asset_type": "RESPONSE", "asset_id": "7uS_VESkRI6O3-sVgHQp_A" }, + "file_name": "file_name", + "download_url": "download_url", + "collection_name": "collection_name", "request_count": 1 } ] @@ -19902,16 +19921,49 @@ }, "AssetReferenceUsageItem": { "example": { + "collection_id": "collection_id", + "collection_path": "collection_path", "asset_identifier": { "asset_type": "RESPONSE", "asset_id": "7uS_VESkRI6O3-sVgHQp_A" }, + "file_name": "file_name", + "download_url": "download_url", + "collection_name": "collection_name", "request_count": 1 }, "properties": { "asset_identifier": { "$ref": "#/components/schemas/AssetIdentifier" }, + "collection_id": { + "description": "Present when include_collections is true.", + "nullable": true, + "title": "collection_id", + "type": "string" + }, + "collection_name": { + "nullable": true, + "title": "collection_name", + "type": "string" + }, + "collection_path": { + "description": "Readable collection names from accessible ancestors through this collection, separated by \" / \".", + "nullable": true, + "title": "collection_path", + "type": "string" + }, + "file_name": { + "nullable": true, + "title": "file_name", + "type": "string" + }, + "download_url": { + "description": "Signed image URL valid for 24 hours, issued only when the caller can read the asset. Refresh the listing to obtain a fresh URL.", + "nullable": true, + "title": "download_url", + "type": "string" + }, "request_count": { "description": "Completed organization requests using the asset as an edit input within the requested range.", "format": "int64", @@ -33278,7 +33330,7 @@ "enum": [ "INDIVIDUAL", "ENTERPRISE", - "TEAM_API", + "ENTERPRISE_PREPAID", "TEAM" ], "example": "INDIVIDUAL", @@ -33286,7 +33338,7 @@ "type": "string" }, "ApiProfileRole": { - "description": "Role within an organization profile. ADMIN only exists for TEAM_API organizations.", + "description": "Role within an organization profile. ADMIN only exists for ENTERPRISE_PREPAID organizations.", "enum": [ "OWNER", "ADMIN",