diff --git a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs
index e469bd6..063e9d3 100644
--- a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs
@@ -45,7 +45,7 @@ partial void ProcessTrainDatasetModelResponseContent(
///
/// Train a model from a dataset
- /// Start training a custom model from a dataset. The dataset must contain at least 15 images. Returns the model ID and training status.
+ /// Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status.
///
///
///
@@ -494,7 +494,7 @@ partial void ProcessTrainDatasetModelResponseContent(
}
///
/// Train a model from a dataset
- /// Start training a custom model from a dataset. The dataset must contain at least 15 images. Returns the model ID and training status.
+ /// Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status.
///
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.UploadDatasetAssets.g.cs b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.UploadDatasetAssets.g.cs
index 0d60f93..f441b3c 100644
--- a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.UploadDatasetAssets.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.UploadDatasetAssets.g.cs
@@ -509,7 +509,7 @@ partial void ProcessUploadDatasetAssetsResponseContent(
///
///
///
- /// Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg).
+ /// Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg). Captions are optional!
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.TrainDatasetModel.g.cs b/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.TrainDatasetModel.g.cs
index ef55311..d562ba3 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.TrainDatasetModel.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.TrainDatasetModel.g.cs
@@ -6,7 +6,7 @@ public partial interface IDatasetsClient
{
///
/// Train a model from a dataset
- /// Start training a custom model from a dataset. The dataset must contain at least 15 images. Returns the model ID and training status.
+ /// Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status.
///
///
///
@@ -21,7 +21,7 @@ public partial interface IDatasetsClient
global::System.Threading.CancellationToken cancellationToken = default);
///
/// Train a model from a dataset
- /// Start training a custom model from a dataset. The dataset must contain at least 15 images. Returns the model ID and training status.
+ /// Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status.
///
///
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.UploadDatasetAssets.g.cs b/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.UploadDatasetAssets.g.cs
index 6f290ef..bfcdb84 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.UploadDatasetAssets.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IDatasetsClient.UploadDatasetAssets.g.cs
@@ -25,7 +25,7 @@ public partial interface IDatasetsClient
///
///
///
- /// Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg).
+ /// Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg). Captions are optional!
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/Ideogram/Generated/Ideogram.IModelsClient.GetCustomModel.g.cs b/src/libs/Ideogram/Generated/Ideogram.IModelsClient.GetCustomModel.g.cs
index afcb903..2abb1b2 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IModelsClient.GetCustomModel.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IModelsClient.GetCustomModel.g.cs
@@ -6,7 +6,7 @@ public partial interface IModelsClient
{
///
/// Get model details
- /// Get detailed information about a specific custom model, including training run history for owned models. The user must either own the model or the model must be shared with the user's organization via the model registry. Returns 404 if the model is not found or not accessible.
+ /// Get detailed information about a specific custom model. The user must either own the model or the model must be shared with the user's organization via the model registry. Returns 404 if the model is not found or not accessible.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Ideogram/Generated/Ideogram.IModelsClient.ListCustomModels.g.cs b/src/libs/Ideogram/Generated/Ideogram.IModelsClient.ListCustomModels.g.cs
index a071f80..491e2c9 100644
--- a/src/libs/Ideogram/Generated/Ideogram.IModelsClient.ListCustomModels.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.IModelsClient.ListCustomModels.g.cs
@@ -6,11 +6,9 @@ public partial interface IModelsClient
{
///
/// List models
- /// Lists custom models for the authenticated user. Use the `scope` parameter to control which models are returned. `owned` (default) returns models created by the user. `shared` returns models shared with the user's organization via the model registry, excluding the user's own models.
+ /// Lists custom models for the authenticated user. Use the `scope` parameter to control which models are returned. If omitted, returns both owned models and models shared with the user's organization via the model registry. `owned` returns only models created by the user. `shared` returns only models shared via the model registry, excluding the user's own models.
///
- ///
- /// Default Value: owned
- ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationRoleEnum.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationRoleEnum.g.cs
deleted file mode 100644
index ca7b60d..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationRoleEnum.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace Ideogram.JsonConverters
-{
- ///
- public sealed class OrganizationRoleEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::Ideogram.OrganizationRoleEnum 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.OrganizationRoleEnumExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::Ideogram.OrganizationRoleEnum)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::Ideogram.OrganizationRoleEnum);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::Ideogram.OrganizationRoleEnum value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::Ideogram.OrganizationRoleEnumExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationRoleEnumNullable.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationRoleEnumNullable.g.cs
deleted file mode 100644
index 37a2f9e..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationRoleEnumNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace Ideogram.JsonConverters
-{
- ///
- public sealed class OrganizationRoleEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::Ideogram.OrganizationRoleEnum? 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.OrganizationRoleEnumExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::Ideogram.OrganizationRoleEnum)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::Ideogram.OrganizationRoleEnum?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::Ideogram.OrganizationRoleEnum? 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.OrganizationRoleEnumExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationType.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationType.g.cs
deleted file mode 100644
index 091a752..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationType.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace Ideogram.JsonConverters
-{
- ///
- public sealed class OrganizationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::Ideogram.OrganizationType 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.OrganizationTypeExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::Ideogram.OrganizationType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::Ideogram.OrganizationType);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::Ideogram.OrganizationType value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::Ideogram.OrganizationTypeExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationTypeNullable.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationTypeNullable.g.cs
deleted file mode 100644
index b62a62c..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.OrganizationTypeNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace Ideogram.JsonConverters
-{
- ///
- public sealed class OrganizationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::Ideogram.OrganizationType? 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.OrganizationTypeExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::Ideogram.OrganizationType)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::Ideogram.OrganizationType?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::Ideogram.OrganizationType? 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.OrganizationTypeExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.SharingPermission.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.SharingPermission.g.cs
deleted file mode 100644
index 928519f..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.SharingPermission.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-#nullable enable
-
-namespace Ideogram.JsonConverters
-{
- ///
- public sealed class SharingPermissionJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::Ideogram.SharingPermission 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.SharingPermissionExtensions.ToEnum(stringValue) ?? default;
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::Ideogram.SharingPermission)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::Ideogram.SharingPermission);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::Ideogram.SharingPermission value,
- global::System.Text.Json.JsonSerializerOptions options)
- {
- writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
-
- writer.WriteStringValue(global::Ideogram.SharingPermissionExtensions.ToValueString(value));
- }
- }
-}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.SharingPermissionNullable.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonConverters.SharingPermissionNullable.g.cs
deleted file mode 100644
index 5d0ec2b..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.JsonConverters.SharingPermissionNullable.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable enable
-
-namespace Ideogram.JsonConverters
-{
- ///
- public sealed class SharingPermissionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
- {
- ///
- public override global::Ideogram.SharingPermission? 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.SharingPermissionExtensions.ToEnum(stringValue);
- }
-
- break;
- }
- case global::System.Text.Json.JsonTokenType.Number:
- {
- var numValue = reader.GetInt32();
- return (global::Ideogram.SharingPermission)numValue;
- }
- case global::System.Text.Json.JsonTokenType.Null:
- {
- return default(global::Ideogram.SharingPermission?);
- }
- default:
- throw new global::System.ArgumentOutOfRangeException(nameof(reader));
- }
-
- return default;
- }
-
- ///
- public override void Write(
- global::System.Text.Json.Utf8JsonWriter writer,
- global::Ideogram.SharingPermission? 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.SharingPermissionExtensions.ToValueString(value.Value));
- }
- }
- }
-}
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContext.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContext.g.cs
index 21c0d4f..7d3c25e 100644
--- a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContext.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContext.g.cs
@@ -157,18 +157,6 @@ namespace Ideogram
typeof(global::Ideogram.JsonConverters.AssetTypeNullableJsonConverter),
- typeof(global::Ideogram.JsonConverters.SharingPermissionJsonConverter),
-
- typeof(global::Ideogram.JsonConverters.SharingPermissionNullableJsonConverter),
-
- typeof(global::Ideogram.JsonConverters.OrganizationTypeJsonConverter),
-
- typeof(global::Ideogram.JsonConverters.OrganizationTypeNullableJsonConverter),
-
- typeof(global::Ideogram.JsonConverters.OrganizationRoleEnumJsonConverter),
-
- typeof(global::Ideogram.JsonConverters.OrganizationRoleEnumNullableJsonConverter),
-
typeof(global::Ideogram.JsonConverters.ListCustomModelsScopeJsonConverter),
typeof(global::Ideogram.JsonConverters.ListCustomModelsScopeNullableJsonConverter),
@@ -343,8 +331,6 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.Dataset))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetIdentifier))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.SharingInfo))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.CreateDatasetRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.UploadDatasetAssetsResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
@@ -371,12 +357,6 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.ColorPaletteMember))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.AssetType), TypeInfoPropertyName = "AssetType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.SharingPermission), TypeInfoPropertyName = "SharingPermission2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.OrganizationObject))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.User))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.OrganizationType), TypeInfoPropertyName = "OrganizationType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.OrganizationRoleEnum), TypeInfoPropertyName = "OrganizationRoleEnum2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.OrganizationAvatarObject))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ideogram.PostInternalTesting200Response))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
@@ -412,7 +392,6 @@ namespace Ideogram
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
diff --git a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
index 5513f1c..5e776da 100644
--- a/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.JsonSerializerContextTypes.g.cs
@@ -688,159 +688,127 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::System.Collections.Generic.IList? Type165 { get; set; }
+ public global::Ideogram.CreateDatasetRequest? Type165 { get; set; }
///
///
///
- public global::Ideogram.SharingInfo? Type166 { get; set; }
+ public global::Ideogram.UploadDatasetAssetsResponse? Type166 { get; set; }
///
///
///
- public global::Ideogram.CreateDatasetRequest? Type167 { get; set; }
+ public global::System.Collections.Generic.IList? Type167 { get; set; }
///
///
///
- public global::Ideogram.UploadDatasetAssetsResponse? Type168 { get; set; }
+ public global::Ideogram.DatasetUploadSucceededAsset? Type168 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type169 { get; set; }
+ public global::System.Collections.Generic.IList? Type169 { get; set; }
///
///
///
- public global::Ideogram.DatasetUploadSucceededAsset? Type170 { get; set; }
+ public global::Ideogram.DatasetUploadFailedAsset? Type170 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type171 { get; set; }
+ public global::Ideogram.DatasetAssetFailureReason? Type171 { get; set; }
///
///
///
- public global::Ideogram.DatasetUploadFailedAsset? Type172 { get; set; }
+ public global::Ideogram.UploadDatasetAssetsRequest? Type172 { get; set; }
///
///
///
- public global::Ideogram.DatasetAssetFailureReason? Type173 { get; set; }
+ public global::Ideogram.TrainDatasetModelResponse? Type173 { get; set; }
///
///
///
- public global::Ideogram.UploadDatasetAssetsRequest? Type174 { get; set; }
+ public global::Ideogram.TrainDatasetModelRequest? Type174 { get; set; }
///
///
///
- public global::Ideogram.TrainDatasetModelResponse? Type175 { get; set; }
+ public global::Ideogram.TrainDatasetModelRequestBaseModelVersion? Type175 { get; set; }
///
///
///
- public global::Ideogram.TrainDatasetModelRequest? Type176 { get; set; }
+ public double? Type176 { get; set; }
///
///
///
- public global::Ideogram.TrainDatasetModelRequestBaseModelVersion? Type177 { get; set; }
+ public global::Ideogram.ListModelsResponse? Type177 { get; set; }
///
///
///
- public double? Type178 { get; set; }
+ public global::System.Collections.Generic.IList? Type178 { get; set; }
///
///
///
- public global::Ideogram.ListModelsResponse? Type179 { get; set; }
+ public global::Ideogram.CustomModel? Type179 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type180 { get; set; }
+ public global::Ideogram.ModelStatus? Type180 { get; set; }
///
///
///
- public global::Ideogram.CustomModel? Type181 { get; set; }
+ public global::System.Collections.Generic.IList? Type181 { get; set; }
///
///
///
- public global::Ideogram.ModelStatus? Type182 { get; set; }
+ public global::Ideogram.TrainingRun? Type182 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type183 { get; set; }
+ public global::Ideogram.TrainingRunStatus? Type183 { get; set; }
///
///
///
- public global::Ideogram.TrainingRun? Type184 { get; set; }
+ public global::Ideogram.GetModelResponse? Type184 { get; set; }
///
///
///
- public global::Ideogram.TrainingRunStatus? Type185 { get; set; }
+ public global::Ideogram.ColorPaletteWithPresetName? Type185 { get; set; }
///
///
///
- public global::Ideogram.GetModelResponse? Type186 { get; set; }
+ public global::Ideogram.ColorPaletteWithMembers? Type186 { get; set; }
///
///
///
- public global::Ideogram.ColorPaletteWithPresetName? Type187 { get; set; }
+ public global::Ideogram.ColorPalettePresetName? Type187 { get; set; }
///
///
///
- public global::Ideogram.ColorPaletteWithMembers? Type188 { get; set; }
+ public global::System.Collections.Generic.IList? Type188 { get; set; }
///
///
///
- public global::Ideogram.ColorPalettePresetName? Type189 { get; set; }
+ public global::Ideogram.ColorPaletteMember? Type189 { get; set; }
///
///
///
- public global::System.Collections.Generic.IList? Type190 { get; set; }
+ public global::Ideogram.AssetType? Type190 { get; set; }
///
///
///
- public global::Ideogram.ColorPaletteMember? Type191 { get; set; }
+ public global::Ideogram.PostInternalTesting200Response? Type191 { get; set; }
///
///
///
- public global::Ideogram.AssetType? Type192 { get; set; }
+ public global::System.Collections.Generic.IList? Type192 { get; set; }
///
///
///
- public global::Ideogram.SharingPermission? Type193 { get; set; }
+ public global::System.Collections.Generic.IList? Type193 { get; set; }
///
///
///
- public global::Ideogram.OrganizationObject? Type194 { get; set; }
+ public global::Ideogram.ListCustomModelsScope? Type194 { get; set; }
///
///
///
- public global::Ideogram.User? Type195 { get; set; }
- ///
- ///
- ///
- public global::Ideogram.OrganizationType? Type196 { get; set; }
- ///
- ///
- ///
- public global::Ideogram.OrganizationRoleEnum? Type197 { get; set; }
- ///
- ///
- ///
- public global::Ideogram.OrganizationAvatarObject? Type198 { get; set; }
- ///
- ///
- ///
- public global::Ideogram.PostInternalTesting200Response? Type199 { get; set; }
- ///
- ///
- ///
- public global::System.Collections.Generic.IList? Type200 { get; set; }
- ///
- ///
- ///
- public global::System.Collections.Generic.IList? Type201 { get; set; }
- ///
- ///
- ///
- public global::Ideogram.ListCustomModelsScope? Type202 { get; set; }
- ///
- ///
- ///
- public global::System.Collections.Generic.IList? Type203 { get; set; }
+ public global::System.Collections.Generic.IList? Type195 { get; set; }
///
///
@@ -965,38 +933,34 @@ public sealed partial class JsonSerializerContextTypes
///
///
///
- public global::System.Collections.Generic.List? ListType30 { get; set; }
- ///
- ///
- ///
- public global::System.Collections.Generic.List? ListType31 { get; set; }
+ public global::System.Collections.Generic.List? ListType30 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType32 { get; set; }
+ public global::System.Collections.Generic.List? ListType31 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType33 { get; set; }
+ public global::System.Collections.Generic.List? ListType32 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType34 { get; set; }
+ public global::System.Collections.Generic.List? ListType33 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType35 { get; set; }
+ public global::System.Collections.Generic.List? ListType34 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType36 { get; set; }
+ public global::System.Collections.Generic.List? ListType35 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType37 { get; set; }
+ public global::System.Collections.Generic.List? ListType36 { get; set; }
///
///
///
- public global::System.Collections.Generic.List? ListType38 { get; set; }
+ public global::System.Collections.Generic.List? ListType37 { get; set; }
}
}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.Dataset.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.Dataset.g.cs
index a91565d..7c2596e 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.Dataset.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.Dataset.g.cs
@@ -4,34 +4,34 @@
namespace Ideogram
{
///
- /// A dataset for organizing assets.
- /// Example: {"collection_id":"collection_id","creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"sharing":[{"updated_time":"2000-01-23T04:56:07\u002B00:00","organization":{"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null},"permission":null,"user":{"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}},{"updated_time":"2000-01-23T04:56:07\u002B00:00","organization":{"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null},"permission":null,"user":{"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}}]}
+ /// A dataset for organizing training images.
+ /// Example: {"creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","dataset_id":"dataset_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}}
///
public sealed partial class Dataset
{
///
- /// Unique identifier for the collection.
+ /// Unique identifier for the dataset.
///
- [global::System.Text.Json.Serialization.JsonPropertyName("collection_id")]
+ [global::System.Text.Json.Serialization.JsonPropertyName("dataset_id")]
[global::System.Text.Json.Serialization.JsonRequired]
- public required string CollectionId { get; set; }
+ public required string DatasetId { get; set; }
///
- /// Display name of the collection.
+ /// Display name of the dataset.
///
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Name { get; set; }
///
- /// ID of the user who owns this collection.
+ /// ID of the user who owns this dataset.
///
[global::System.Text.Json.Serialization.JsonPropertyName("user_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string UserId { get; set; }
///
- /// When the collection was created.
+ /// When the dataset was created.
///
[global::System.Text.Json.Serialization.JsonPropertyName("creation_time")]
[global::System.Text.Json.Serialization.JsonRequired]
@@ -45,12 +45,6 @@ public sealed partial class Dataset
[global::System.Text.Json.Serialization.JsonPropertyName("cover_asset_identifier")]
public global::Ideogram.AssetIdentifier? CoverAssetIdentifier { get; set; }
- ///
- /// Sharing details for this collection including the owner entry.
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sharing")]
- public global::System.Collections.Generic.IList? Sharing { get; set; }
-
///
/// Additional properties that are not explicitly defined in the schema
///
@@ -60,42 +54,37 @@ public sealed partial class Dataset
///
/// Initializes a new instance of the class.
///
- ///
- /// Unique identifier for the collection.
+ ///
+ /// Unique identifier for the dataset.
///
///
- /// Display name of the collection.
+ /// Display name of the dataset.
///
///
- /// ID of the user who owns this collection.
+ /// ID of the user who owns this dataset.
///
///
- /// When the collection was created.
+ /// When the dataset was created.
///
///
/// An identifier for an ideogram asset.
/// Example: {"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}
///
- ///
- /// Sharing details for this collection including the owner entry.
- ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public Dataset(
- string collectionId,
+ string datasetId,
string name,
string userId,
global::System.DateTime creationTime,
- global::Ideogram.AssetIdentifier? coverAssetIdentifier,
- global::System.Collections.Generic.IList? sharing)
+ global::Ideogram.AssetIdentifier? coverAssetIdentifier)
{
- this.CollectionId = collectionId ?? throw new global::System.ArgumentNullException(nameof(collectionId));
+ this.DatasetId = datasetId ?? throw new global::System.ArgumentNullException(nameof(datasetId));
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId));
this.CreationTime = creationTime;
this.CoverAssetIdentifier = coverAssetIdentifier;
- this.Sharing = sharing;
}
///
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ListCustomModelsScope.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ListCustomModelsScope.g.cs
index 12a6d4f..7db3eea 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ListCustomModelsScope.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ListCustomModelsScope.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- /// Default Value: owned
+ ///
///
public enum ListCustomModelsScope
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.ListDatasetsResponse.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.ListDatasetsResponse.g.cs
index 4d49b33..878562c 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.ListDatasetsResponse.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.ListDatasetsResponse.g.cs
@@ -4,7 +4,7 @@
namespace Ideogram
{
///
- /// Example: {"datasets":[{"collection_id":"collection_id","creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"sharing":[{"updated_time":"2000-01-23T04:56:07\u002B00:00","organization":{"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null},"permission":null,"user":{"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}},{"updated_time":"2000-01-23T04:56:07\u002B00:00","organization":{"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null},"permission":null,"user":{"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}}]},{"collection_id":"collection_id","creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"},"sharing":[{"updated_time":"2000-01-23T04:56:07\u002B00:00","organization":{"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null},"permission":null,"user":{"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}},{"updated_time":"2000-01-23T04:56:07\u002B00:00","organization":{"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null},"permission":null,"user":{"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}}]}]}
+ /// Example: {"datasets":[{"creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","dataset_id":"dataset_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}},{"creation_time":"2000-01-23T04:56:07\u002B00:00","user_id":"user_id","dataset_id":"dataset_id","name":"name","cover_asset_identifier":{"asset_type":"RESPONSE","asset_id":"7uS_VESkRI6O3-sVgHQp_A"}}]}
///
public sealed partial class ListDatasetsResponse
{
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationAvatarObject.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationAvatarObject.Json.g.cs
deleted file mode 100644
index 14cbfcb..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationAvatarObject.Json.g.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-#nullable enable
-
-namespace Ideogram
-{
- public sealed partial class OrganizationAvatarObject
- {
- ///
- /// 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.OrganizationAvatarObject? FromJson(
- string json,
- global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
- {
- return global::System.Text.Json.JsonSerializer.Deserialize(
- json,
- typeof(global::Ideogram.OrganizationAvatarObject),
- jsonSerializerContext) as global::Ideogram.OrganizationAvatarObject;
- }
-
- ///
- /// 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.OrganizationAvatarObject? 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.OrganizationAvatarObject),
- jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.OrganizationAvatarObject;
- }
-
- ///
- /// 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.OrganizationAvatarObject.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationAvatarObject.g.cs
deleted file mode 100644
index 9189d78..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationAvatarObject.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-
-#nullable enable
-
-namespace Ideogram
-{
- ///
- /// Example: {"avatar_url":"avatar_url"}
- ///
- public sealed partial class OrganizationAvatarObject
- {
- ///
- ///
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("avatar_url")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string AvatarUrl { 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.
- ///
- ///
-#if NET7_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
-#endif
- public OrganizationAvatarObject(
- string avatarUrl)
- {
- this.AvatarUrl = avatarUrl ?? throw new global::System.ArgumentNullException(nameof(avatarUrl));
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- public OrganizationAvatarObject()
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationObject.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationObject.Json.g.cs
deleted file mode 100644
index 133cffa..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationObject.Json.g.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-#nullable enable
-
-namespace Ideogram
-{
- public sealed partial class OrganizationObject
- {
- ///
- /// 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.OrganizationObject? FromJson(
- string json,
- global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
- {
- return global::System.Text.Json.JsonSerializer.Deserialize(
- json,
- typeof(global::Ideogram.OrganizationObject),
- jsonSerializerContext) as global::Ideogram.OrganizationObject;
- }
-
- ///
- /// 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.OrganizationObject? 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.OrganizationObject),
- jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.OrganizationObject;
- }
-
- ///
- /// 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.OrganizationObject.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationObject.g.cs
deleted file mode 100644
index 64465ac..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationObject.g.cs
+++ /dev/null
@@ -1,106 +0,0 @@
-
-#nullable enable
-
-namespace Ideogram
-{
- ///
- /// An organization object
- /// Example: {"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null}
- ///
- public sealed partial class OrganizationObject
- {
- ///
- /// ID of the organization
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("organization_id")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string OrganizationId { get; set; }
-
- ///
- /// Name of the organization
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string Name { get; set; }
-
- ///
- /// The type of organization
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")]
- [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.OrganizationTypeJsonConverter))]
- public global::Ideogram.OrganizationType? Type { get; set; }
-
- ///
- /// Role of a user in an organization.
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("role")]
- [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.OrganizationRoleEnumJsonConverter))]
- public global::Ideogram.OrganizationRoleEnum? Role { get; set; }
-
- ///
- /// Example: {"avatar_url":"avatar_url"}
- ///
- /// {"avatar_url":"avatar_url"}
- [global::System.Text.Json.Serialization.JsonPropertyName("avatar")]
- public global::Ideogram.OrganizationAvatarObject? Avatar { get; set; }
-
- ///
- /// Whether publishing is disabled for this organization.
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("publishing_disabled")]
- public bool? PublishingDisabled { 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.
- ///
- ///
- /// ID of the organization
- ///
- ///
- /// Name of the organization
- ///
- ///
- /// The type of organization
- ///
- ///
- /// Role of a user in an organization.
- ///
- ///
- /// Example: {"avatar_url":"avatar_url"}
- ///
- ///
- /// Whether publishing is disabled for this organization.
- ///
-#if NET7_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
-#endif
- public OrganizationObject(
- string organizationId,
- string name,
- global::Ideogram.OrganizationType? type,
- global::Ideogram.OrganizationRoleEnum? role,
- global::Ideogram.OrganizationAvatarObject? avatar,
- bool? publishingDisabled)
- {
- this.OrganizationId = organizationId ?? throw new global::System.ArgumentNullException(nameof(organizationId));
- this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
- this.Type = type;
- this.Role = role;
- this.Avatar = avatar;
- this.PublishingDisabled = publishingDisabled;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- public OrganizationObject()
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationRoleEnum.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationRoleEnum.g.cs
deleted file mode 100644
index 4bfbad0..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationRoleEnum.g.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-
-#nullable enable
-
-namespace Ideogram
-{
- ///
- /// Role of a user in an organization.
- ///
- public enum OrganizationRoleEnum
- {
- ///
- ///
- ///
- Owner,
- ///
- ///
- ///
- Writer,
- }
-
- ///
- /// Enum extensions to do fast conversions without the reflection.
- ///
- public static class OrganizationRoleEnumExtensions
- {
- ///
- /// Converts an enum to a string.
- ///
- public static string ToValueString(this OrganizationRoleEnum value)
- {
- return value switch
- {
- OrganizationRoleEnum.Owner => "OWNER",
- OrganizationRoleEnum.Writer => "WRITER",
- _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
- };
- }
- ///
- /// Converts an string to a enum.
- ///
- public static OrganizationRoleEnum? ToEnum(string value)
- {
- return value switch
- {
- "OWNER" => OrganizationRoleEnum.Owner,
- "WRITER" => OrganizationRoleEnum.Writer,
- _ => null,
- };
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationType.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationType.g.cs
deleted file mode 100644
index 7869769..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.OrganizationType.g.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-
-#nullable enable
-
-namespace Ideogram
-{
- ///
- /// The type of organization
- ///
- public enum OrganizationType
- {
- ///
- ///
- ///
- Enterprise,
- ///
- ///
- ///
- Private,
- ///
- ///
- ///
- Team,
- }
-
- ///
- /// Enum extensions to do fast conversions without the reflection.
- ///
- public static class OrganizationTypeExtensions
- {
- ///
- /// Converts an enum to a string.
- ///
- public static string ToValueString(this OrganizationType value)
- {
- return value switch
- {
- OrganizationType.Enterprise => "ENTERPRISE",
- OrganizationType.Private => "PRIVATE",
- OrganizationType.Team => "TEAM",
- _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
- };
- }
- ///
- /// Converts an string to a enum.
- ///
- public static OrganizationType? ToEnum(string value)
- {
- return value switch
- {
- "ENTERPRISE" => OrganizationType.Enterprise,
- "PRIVATE" => OrganizationType.Private,
- "TEAM" => OrganizationType.Team,
- _ => null,
- };
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.SharingInfo.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.SharingInfo.Json.g.cs
deleted file mode 100644
index 5a8d326..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.SharingInfo.Json.g.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-#nullable enable
-
-namespace Ideogram
-{
- public sealed partial class SharingInfo
- {
- ///
- /// 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.SharingInfo? FromJson(
- string json,
- global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
- {
- return global::System.Text.Json.JsonSerializer.Deserialize(
- json,
- typeof(global::Ideogram.SharingInfo),
- jsonSerializerContext) as global::Ideogram.SharingInfo;
- }
-
- ///
- /// 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.SharingInfo? 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.SharingInfo),
- jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.SharingInfo;
- }
-
- ///
- /// 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.SharingInfo.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.SharingInfo.g.cs
deleted file mode 100644
index b89dfa9..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.SharingInfo.g.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-
-#nullable enable
-
-namespace Ideogram
-{
- ///
- /// Example: {"updated_time":"2000-01-23T04:56:07\u002B00:00","organization":{"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null},"permission":null,"user":{"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}}
- ///
- public sealed partial class SharingInfo
- {
- ///
- /// Permission level for the shared organization. OWNER is read-only and cannot be set via add/remove.
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("permission")]
- [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ideogram.JsonConverters.SharingPermissionJsonConverter))]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required global::Ideogram.SharingPermission Permission { get; set; }
-
- ///
- /// When this sharing entry was last updated.
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updated_time")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required global::System.DateTime UpdatedTime { get; set; }
-
- ///
- /// An organization object
- /// Example: {"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null}
- ///
- /// {"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null}
- [global::System.Text.Json.Serialization.JsonPropertyName("organization")]
- public global::Ideogram.OrganizationObject? Organization { get; set; }
-
- ///
- /// Example: {"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}
- ///
- /// {"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}
- [global::System.Text.Json.Serialization.JsonPropertyName("user")]
- public global::Ideogram.User? User { 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.
- ///
- ///
- /// Permission level for the shared organization. OWNER is read-only and cannot be set via add/remove.
- ///
- ///
- /// When this sharing entry was last updated.
- ///
- ///
- /// An organization object
- /// Example: {"role":null,"publishing_disabled":true,"organization_id":"organization_id","name":"name","avatar":{"avatar_url":"avatar_url"},"type":null}
- ///
- ///
- /// Example: {"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}
- ///
-#if NET7_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
-#endif
- public SharingInfo(
- global::Ideogram.SharingPermission permission,
- global::System.DateTime updatedTime,
- global::Ideogram.OrganizationObject? organization,
- global::Ideogram.User? user)
- {
- this.Permission = permission;
- this.UpdatedTime = updatedTime;
- this.Organization = organization;
- this.User = user;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- public SharingInfo()
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.SharingPermission.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.SharingPermission.g.cs
deleted file mode 100644
index 244b840..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.SharingPermission.g.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-
-#nullable enable
-
-namespace Ideogram
-{
- ///
- /// Permission level for the shared organization. OWNER is read-only and cannot be set via add/remove.
- ///
- public enum SharingPermission
- {
- ///
- ///
- ///
- Editor,
- ///
- ///
- ///
- Owner,
- ///
- ///
- ///
- Viewer,
- }
-
- ///
- /// Enum extensions to do fast conversions without the reflection.
- ///
- public static class SharingPermissionExtensions
- {
- ///
- /// Converts an enum to a string.
- ///
- public static string ToValueString(this SharingPermission value)
- {
- return value switch
- {
- SharingPermission.Editor => "EDITOR",
- SharingPermission.Owner => "OWNER",
- SharingPermission.Viewer => "VIEWER",
- _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
- };
- }
- ///
- /// Converts an string to a enum.
- ///
- public static SharingPermission? ToEnum(string value)
- {
- return value switch
- {
- "EDITOR" => SharingPermission.Editor,
- "OWNER" => SharingPermission.Owner,
- "VIEWER" => SharingPermission.Viewer,
- _ => null,
- };
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.UploadDatasetAssetsRequest.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.UploadDatasetAssetsRequest.g.cs
index eb65599..c92880d 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Models.UploadDatasetAssetsRequest.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Models.UploadDatasetAssetsRequest.g.cs
@@ -9,7 +9,7 @@ namespace Ideogram
public sealed partial class UploadDatasetAssetsRequest
{
///
- /// Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg).
+ /// Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg). Captions are optional!
///
[global::System.Text.Json.Serialization.JsonPropertyName("files")]
[global::System.Text.Json.Serialization.JsonRequired]
@@ -25,7 +25,7 @@ public sealed partial class UploadDatasetAssetsRequest
/// Initializes a new instance of the class.
///
///
- /// Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg).
+ /// Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg). Captions are optional!
///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
diff --git a/src/libs/Ideogram/Generated/Ideogram.Models.User.Json.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.User.Json.g.cs
deleted file mode 100644
index 5348a67..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.User.Json.g.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-#nullable enable
-
-namespace Ideogram
-{
- public sealed partial class User
- {
- ///
- /// 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.User? FromJson(
- string json,
- global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
- {
- return global::System.Text.Json.JsonSerializer.Deserialize(
- json,
- typeof(global::Ideogram.User),
- jsonSerializerContext) as global::Ideogram.User;
- }
-
- ///
- /// 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.User? 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.User),
- jsonSerializerContext).ConfigureAwait(false)) as global::Ideogram.User;
- }
-
- ///
- /// 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.User.g.cs b/src/libs/Ideogram/Generated/Ideogram.Models.User.g.cs
deleted file mode 100644
index da3faef..0000000
--- a/src/libs/Ideogram/Generated/Ideogram.Models.User.g.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-
-#nullable enable
-
-namespace Ideogram
-{
- ///
- /// Example: {"badge":"badge","subscription_plan_id":"subscription_plan_id","display_handle":"display_handle","user_id":"user_id","photo_url":"photo_url"}
- ///
- public sealed partial class User
- {
- ///
- ///
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("user_id")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string UserId { get; set; }
-
- ///
- ///
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("display_handle")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string DisplayHandle { get; set; }
-
- ///
- ///
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("photo_url")]
- [global::System.Text.Json.Serialization.JsonRequired]
- public required string PhotoUrl { get; set; }
-
- ///
- ///
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("subscription_plan_id")]
- public string? SubscriptionPlanId { get; set; }
-
- ///
- ///
- ///
- [global::System.Text.Json.Serialization.JsonPropertyName("badge")]
- public string? Badge { 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.
- ///
- ///
- ///
- ///
- ///
- ///
-#if NET7_0_OR_GREATER
- [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
-#endif
- public User(
- string userId,
- string displayHandle,
- string photoUrl,
- string? subscriptionPlanId,
- string? badge)
- {
- this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId));
- this.DisplayHandle = displayHandle ?? throw new global::System.ArgumentNullException(nameof(displayHandle));
- this.PhotoUrl = photoUrl ?? throw new global::System.ArgumentNullException(nameof(photoUrl));
- this.SubscriptionPlanId = subscriptionPlanId;
- this.Badge = badge;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- public User()
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/libs/Ideogram/Generated/Ideogram.ModelsClient.GetCustomModel.g.cs b/src/libs/Ideogram/Generated/Ideogram.ModelsClient.GetCustomModel.g.cs
index 8594e91..aed0da1 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ModelsClient.GetCustomModel.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ModelsClient.GetCustomModel.g.cs
@@ -43,7 +43,7 @@ partial void ProcessGetCustomModelResponseContent(
///
/// Get model details
- /// Get detailed information about a specific custom model, including training run history for owned models. The user must either own the model or the model must be shared with the user's organization via the model registry. Returns 404 if the model is not found or not accessible.
+ /// Get detailed information about a specific custom model. The user must either own the model or the model must be shared with the user's organization via the model registry. Returns 404 if the model is not found or not accessible.
///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
diff --git a/src/libs/Ideogram/Generated/Ideogram.ModelsClient.ListCustomModels.g.cs b/src/libs/Ideogram/Generated/Ideogram.ModelsClient.ListCustomModels.g.cs
index 09e39b4..c26438b 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ModelsClient.ListCustomModels.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ModelsClient.ListCustomModels.g.cs
@@ -45,11 +45,9 @@ partial void ProcessListCustomModelsResponseContent(
///
/// List models
- /// Lists custom models for the authenticated user. Use the `scope` parameter to control which models are returned. `owned` (default) returns models created by the user. `shared` returns models shared with the user's organization via the model registry, excluding the user's own models.
+ /// Lists custom models for the authenticated user. Use the `scope` parameter to control which models are returned. If omitted, returns both owned models and models shared with the user's organization via the model registry. `owned` returns only models created by the user. `shared` returns only models shared via the model registry, excluding the user's own models.
///
- ///
- /// Default Value: owned
- ///
+ ///
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
diff --git a/src/libs/Ideogram/Generated/autosdk.generated-examples.json b/src/libs/Ideogram/Generated/autosdk.generated-examples.json
index 89c5d67..b595726 100644
--- a/src/libs/Ideogram/Generated/autosdk.generated-examples.json
+++ b/src/libs/Ideogram/Generated/autosdk.generated-examples.json
@@ -28,7 +28,7 @@
"Slug": "create-dataset",
"Description": "Creates a new dataset",
"Language": "csharp",
- "Code": "using var client = new IdeogramClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::Ideogram.CreateDatasetRequest\u003E(\n @\u0022{\n \u0022\u0022name\u0022\u0022: \u0022\u0022name\u0022\u0022\n}\u0022)!;\n\nvar response = await client.Datasets.CreateDatasetAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022collection_id\u0022: \u0022collection_id\u0022,\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022cover_asset_identifier\u0022: {\n// \u0022asset_type\u0022: \u0022RESPONSE\u0022,\n// \u0022asset_id\u0022: \u00227uS_VESkRI6O3-sVgHQp_A\u0022\n// },\n// \u0022sharing\u0022: [\n// {\n// \u0022updated_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022organization\u0022: {\n// \u0022role\u0022: null,\n// \u0022publishing_disabled\u0022: true,\n// \u0022organization_id\u0022: \u0022organization_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022avatar\u0022: {\n// \u0022avatar_url\u0022: \u0022avatar_url\u0022\n// },\n// \u0022type\u0022: null\n// },\n// \u0022permission\u0022: null,\n// \u0022user\u0022: {\n// \u0022badge\u0022: \u0022badge\u0022,\n// \u0022subscription_plan_id\u0022: \u0022subscription_plan_id\u0022,\n// \u0022display_handle\u0022: \u0022display_handle\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022photo_url\u0022: \u0022photo_url\u0022\n// }\n// },\n// {\n// \u0022updated_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022organization\u0022: {\n// \u0022role\u0022: null,\n// \u0022publishing_disabled\u0022: true,\n// \u0022organization_id\u0022: \u0022organization_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022avatar\u0022: {\n// \u0022avatar_url\u0022: \u0022avatar_url\u0022\n// },\n// \u0022type\u0022: null\n// },\n// \u0022permission\u0022: null,\n// \u0022user\u0022: {\n// \u0022badge\u0022: \u0022badge\u0022,\n// \u0022subscription_plan_id\u0022: \u0022subscription_plan_id\u0022,\n// \u0022display_handle\u0022: \u0022display_handle\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022photo_url\u0022: \u0022photo_url\u0022\n// }\n// }\n// ]\n// }",
+ "Code": "using var client = new IdeogramClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::Ideogram.CreateDatasetRequest\u003E(\n @\u0022{\n \u0022\u0022name\u0022\u0022: \u0022\u0022name\u0022\u0022\n}\u0022)!;\n\nvar response = await client.Datasets.CreateDatasetAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022dataset_id\u0022: \u0022dataset_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022cover_asset_identifier\u0022: {\n// \u0022asset_type\u0022: \u0022RESPONSE\u0022,\n// \u0022asset_id\u0022: \u00227uS_VESkRI6O3-sVgHQp_A\u0022\n// }\n// }",
"Format": "sdk",
"OperationId": "create_dataset",
"Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
@@ -39,7 +39,7 @@
"Slug": "list-datasets",
"Description": "Lists all datasets for the authenticated user",
"Language": "csharp",
- "Code": "using var client = new IdeogramClient(apiKey);\nvar response = await client.Datasets.ListDatasetsAsync();\n\n// Example response:\n// {\n// \u0022datasets\u0022: [\n// {\n// \u0022collection_id\u0022: \u0022collection_id\u0022,\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022cover_asset_identifier\u0022: {\n// \u0022asset_type\u0022: \u0022RESPONSE\u0022,\n// \u0022asset_id\u0022: \u00227uS_VESkRI6O3-sVgHQp_A\u0022\n// },\n// \u0022sharing\u0022: [\n// {\n// \u0022updated_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022organization\u0022: {\n// \u0022role\u0022: null,\n// \u0022publishing_disabled\u0022: true,\n// \u0022organization_id\u0022: \u0022organization_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022avatar\u0022: {\n// \u0022avatar_url\u0022: \u0022avatar_url\u0022\n// },\n// \u0022type\u0022: null\n// },\n// \u0022permission\u0022: null,\n// \u0022user\u0022: {\n// \u0022badge\u0022: \u0022badge\u0022,\n// \u0022subscription_plan_id\u0022: \u0022subscription_plan_id\u0022,\n// \u0022display_handle\u0022: \u0022display_handle\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022photo_url\u0022: \u0022photo_url\u0022\n// }\n// },\n// {\n// \u0022updated_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022organization\u0022: {\n// \u0022role\u0022: null,\n// \u0022publishing_disabled\u0022: true,\n// \u0022organization_id\u0022: \u0022organization_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022avatar\u0022: {\n// \u0022avatar_url\u0022: \u0022avatar_url\u0022\n// },\n// \u0022type\u0022: null\n// },\n// \u0022permission\u0022: null,\n// \u0022user\u0022: {\n// \u0022badge\u0022: \u0022badge\u0022,\n// \u0022subscription_plan_id\u0022: \u0022subscription_plan_id\u0022,\n// \u0022display_handle\u0022: \u0022display_handle\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022photo_url\u0022: \u0022photo_url\u0022\n// }\n// }\n// ]\n// },\n// {\n// \u0022collection_id\u0022: \u0022collection_id\u0022,\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022cover_asset_identifier\u0022: {\n// \u0022asset_type\u0022: \u0022RESPONSE\u0022,\n// \u0022asset_id\u0022: \u00227uS_VESkRI6O3-sVgHQp_A\u0022\n// },\n// \u0022sharing\u0022: [\n// {\n// \u0022updated_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022organization\u0022: {\n// \u0022role\u0022: null,\n// \u0022publishing_disabled\u0022: true,\n// \u0022organization_id\u0022: \u0022organization_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022avatar\u0022: {\n// \u0022avatar_url\u0022: \u0022avatar_url\u0022\n// },\n// \u0022type\u0022: null\n// },\n// \u0022permission\u0022: null,\n// \u0022user\u0022: {\n// \u0022badge\u0022: \u0022badge\u0022,\n// \u0022subscription_plan_id\u0022: \u0022subscription_plan_id\u0022,\n// \u0022display_handle\u0022: \u0022display_handle\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022photo_url\u0022: \u0022photo_url\u0022\n// }\n// },\n// {\n// \u0022updated_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022organization\u0022: {\n// \u0022role\u0022: null,\n// \u0022publishing_disabled\u0022: true,\n// \u0022organization_id\u0022: \u0022organization_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022avatar\u0022: {\n// \u0022avatar_url\u0022: \u0022avatar_url\u0022\n// },\n// \u0022type\u0022: null\n// },\n// \u0022permission\u0022: null,\n// \u0022user\u0022: {\n// \u0022badge\u0022: \u0022badge\u0022,\n// \u0022subscription_plan_id\u0022: \u0022subscription_plan_id\u0022,\n// \u0022display_handle\u0022: \u0022display_handle\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022photo_url\u0022: \u0022photo_url\u0022\n// }\n// }\n// ]\n// }\n// ]\n// }",
+ "Code": "using var client = new IdeogramClient(apiKey);\nvar response = await client.Datasets.ListDatasetsAsync();\n\n// Example response:\n// {\n// \u0022datasets\u0022: [\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022dataset_id\u0022: \u0022dataset_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022cover_asset_identifier\u0022: {\n// \u0022asset_type\u0022: \u0022RESPONSE\u0022,\n// \u0022asset_id\u0022: \u00227uS_VESkRI6O3-sVgHQp_A\u0022\n// }\n// },\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022user_id\u0022: \u0022user_id\u0022,\n// \u0022dataset_id\u0022: \u0022dataset_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022cover_asset_identifier\u0022: {\n// \u0022asset_type\u0022: \u0022RESPONSE\u0022,\n// \u0022asset_id\u0022: \u00227uS_VESkRI6O3-sVgHQp_A\u0022\n// }\n// }\n// ]\n// }",
"Format": "sdk",
"OperationId": "list_datasets",
"Setup": "This example assumes \u0060using Ideogram;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential."
@@ -48,7 +48,7 @@
"Order": 5,
"Title": "Train a model from a dataset",
"Slug": "train-dataset-model",
- "Description": "Start training a custom model from a dataset. The dataset must contain at least 15 images. Returns the model ID and training status.",
+ "Description": "Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status.",
"Language": "http",
"Code": "### Train a model from a dataset\n# @name train_dataset_model\nPOST {{host}}/datasets/{{dataset_id}}/train_model\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022model_name\u0022: \u0022my-custom-model\u0022,\n \u0022lora_rank\u0022: 64,\n \u0022num_chips\u0022: 32,\n \u0022ema\u0022: 0.999,\n \u0022base_model_version\u0022: \u0022V_3_1\u0022,\n \u0022training_steps\u0022: 1000,\n \u0022learning_rate\u0022: 0.0001\n}\n\n## Responses\n# 200\n# Description: Training started successfully\n# Content-Type: application/json\n# 400\n# Description: Bad request\n# 401\n# Description: Unauthorized\n# 404\n# Description: Dataset not found",
"Format": "http",
@@ -521,7 +521,7 @@
"Order": 48,
"Title": "Get model details",
"Slug": "get-custom-model",
- "Description": "Get detailed information about a specific custom model, including training run history for owned models. The user must either own the model or the model must be shared with the user\u0027s organization via the model registry. Returns 404 if the model is not found or not accessible.",
+ "Description": "Get detailed information about a specific custom model. The user must either own the model or the model must be shared with the user\u0027s organization via the model registry. Returns 404 if the model is not found or not accessible.",
"Language": "http",
"Code": "### Get model details\n# @name get_custom_model\nGET {{host}}/models/{{model_id}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Model retrieved successfully\n# Content-Type: application/json\n# 401\n# Description: Unauthorized\n# 404\n# Description: Model not found",
"Format": "http",
@@ -532,7 +532,7 @@
"Order": 49,
"Title": "List models",
"Slug": "list-custom-models",
- "Description": "Lists custom models for the authenticated user. Use the \u0060scope\u0060 parameter to control which models are returned. \u0060owned\u0060 (default) returns models created by the user. \u0060shared\u0060 returns models shared with the user\u0027s organization via the model registry, excluding the user\u0027s own models.",
+ "Description": "Lists custom models for the authenticated user. Use the \u0060scope\u0060 parameter to control which models are returned. If omitted, returns both owned models and models shared with the user\u0027s organization via the model registry. \u0060owned\u0060 returns only models created by the user. \u0060shared\u0060 returns only models shared via the model registry, excluding the user\u0027s own models.",
"Language": "csharp",
"Code": "using var client = new IdeogramClient(apiKey);\nvar response = await client.Models.ListCustomModelsAsync();\n\n// Example response:\n// {\n// \u0022models\u0022: [\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022last_update_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022is_available_for_generation\u0022: true,\n// \u0022dataset_id\u0022: \u0022dataset_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022is_owned\u0022: true,\n// \u0022training_runs\u0022: [\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022last_update_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022lora_rank\u0022: 6,\n// \u0022num_chips\u0022: 1,\n// \u0022training_run_id\u0022: \u0022training_run_id\u0022,\n// \u0022ema\u0022: 5.962133916683182,\n// \u0022training_steps\u0022: 0,\n// \u0022learning_rate\u0022: 5.637376656633329,\n// \u0022status\u0022: null\n// },\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022last_update_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022lora_rank\u0022: 6,\n// \u0022num_chips\u0022: 1,\n// \u0022training_run_id\u0022: \u0022training_run_id\u0022,\n// \u0022ema\u0022: 5.962133916683182,\n// \u0022training_steps\u0022: 0,\n// \u0022learning_rate\u0022: 5.637376656633329,\n// \u0022status\u0022: null\n// }\n// ],\n// \u0022model_id\u0022: \u0022model_id\u0022,\n// \u0022custom_model_uri\u0022: \u0022model/my-custom-model/version/1\u0022,\n// \u0022status\u0022: null\n// },\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022last_update_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022is_available_for_generation\u0022: true,\n// \u0022dataset_id\u0022: \u0022dataset_id\u0022,\n// \u0022name\u0022: \u0022name\u0022,\n// \u0022is_owned\u0022: true,\n// \u0022training_runs\u0022: [\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022last_update_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022lora_rank\u0022: 6,\n// \u0022num_chips\u0022: 1,\n// \u0022training_run_id\u0022: \u0022training_run_id\u0022,\n// \u0022ema\u0022: 5.962133916683182,\n// \u0022training_steps\u0022: 0,\n// \u0022learning_rate\u0022: 5.637376656633329,\n// \u0022status\u0022: null\n// },\n// {\n// \u0022creation_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022last_update_time\u0022: \u00222000-01-23T04:56:07\\u002B00:00\u0022,\n// \u0022lora_rank\u0022: 6,\n// \u0022num_chips\u0022: 1,\n// \u0022training_run_id\u0022: \u0022training_run_id\u0022,\n// \u0022ema\u0022: 5.962133916683182,\n// \u0022training_steps\u0022: 0,\n// \u0022learning_rate\u0022: 5.637376656633329,\n// \u0022status\u0022: null\n// }\n// ],\n// \u0022model_id\u0022: \u0022model_id\u0022,\n// \u0022custom_model_uri\u0022: \u0022model/my-custom-model/version/1\u0022,\n// \u0022status\u0022: null\n// }\n// ]\n// }",
"Format": "sdk",
diff --git a/src/libs/Ideogram/openapi.json b/src/libs/Ideogram/openapi.json
index dedd5a8..fb0b701 100644
--- a/src/libs/Ideogram/openapi.json
+++ b/src/libs/Ideogram/openapi.json
@@ -144,7 +144,7 @@
},
"/datasets/{dataset_id}/train_model": {
"post": {
- "description": "Start training a custom model from a dataset. The dataset must contain at least 15 images. Returns the model ID and training status.\n",
+ "description": "Start training a custom model from a dataset. The dataset must contain at least 10 images and a maximum of 100 images. Returns the model ID and training status.\n",
"operationId": "train_dataset_model",
"parameters": [
{
@@ -1935,16 +1935,15 @@
},
"/models": {
"get": {
- "description": "Lists custom models for the authenticated user. Use the `scope` parameter to control which models are returned. `owned` (default) returns models created by the user. `shared` returns models shared with the user's organization via the model registry, excluding the user's own models.\n",
+ "description": "Lists custom models for the authenticated user. Use the `scope` parameter to control which models are returned. If omitted, returns both owned models and models shared with the user's organization via the model registry. `owned` returns only models created by the user. `shared` returns only models shared via the model registry, excluding the user's own models.\n",
"operationId": "list_custom_models",
"parameters": [
{
- "description": "Controls which models are returned. `owned` returns models created by the authenticated user. `shared` returns models shared with the user's organization via the model registry.\n",
+ "description": "Controls which models are returned. Omit to return both owned and shared models combined. `owned` returns only models created by the authenticated user. `shared` returns only models shared with the user's organization via the model registry.\n",
"in": "query",
"name": "scope",
"required": false,
"schema": {
- "default": "owned",
"enum": [
"owned",
"shared"
@@ -1953,7 +1952,7 @@
}
},
{
- "description": "Filter by model status. Only applies when scope is `owned`. Example: `?status=TRAINING&status=COMPLETED`\n",
+ "description": "Filter by model status. Applied to owned models only; shared models in the model registry are already filtered to available versions. Example: `?status=TRAINING&status=COMPLETED`\n",
"explode": true,
"in": "query",
"name": "status",
@@ -1991,7 +1990,7 @@
},
"/models/{model_id}": {
"get": {
- "description": "Get detailed information about a specific custom model, including training run history for owned models. The user must either own the model or the model must be shared with the user's organization via the model registry. Returns 404 if the model is not found or not accessible.\n",
+ "description": "Get detailed information about a specific custom model. The user must either own the model or the model must be shared with the user's organization via the model registry. Returns 404 if the model is not found or not accessible.\n",
"operationId": "get_custom_model",
"parameters": [
{
@@ -8292,112 +8291,24 @@
"example": {
"datasets": [
{
- "collection_id": "collection_id",
"creation_time": "2000-01-23T04:56:07+00:00",
"user_id": "user_id",
+ "dataset_id": "dataset_id",
"name": "name",
"cover_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
- },
- "sharing": [
- {
- "updated_time": "2000-01-23T04:56:07+00:00",
- "organization": {
- "role": null,
- "publishing_disabled": true,
- "organization_id": "organization_id",
- "name": "name",
- "avatar": {
- "avatar_url": "avatar_url"
- },
- "type": null
- },
- "permission": null,
- "user": {
- "badge": "badge",
- "subscription_plan_id": "subscription_plan_id",
- "display_handle": "display_handle",
- "user_id": "user_id",
- "photo_url": "photo_url"
- }
- },
- {
- "updated_time": "2000-01-23T04:56:07+00:00",
- "organization": {
- "role": null,
- "publishing_disabled": true,
- "organization_id": "organization_id",
- "name": "name",
- "avatar": {
- "avatar_url": "avatar_url"
- },
- "type": null
- },
- "permission": null,
- "user": {
- "badge": "badge",
- "subscription_plan_id": "subscription_plan_id",
- "display_handle": "display_handle",
- "user_id": "user_id",
- "photo_url": "photo_url"
- }
- }
- ]
+ }
},
{
- "collection_id": "collection_id",
"creation_time": "2000-01-23T04:56:07+00:00",
"user_id": "user_id",
+ "dataset_id": "dataset_id",
"name": "name",
"cover_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
- },
- "sharing": [
- {
- "updated_time": "2000-01-23T04:56:07+00:00",
- "organization": {
- "role": null,
- "publishing_disabled": true,
- "organization_id": "organization_id",
- "name": "name",
- "avatar": {
- "avatar_url": "avatar_url"
- },
- "type": null
- },
- "permission": null,
- "user": {
- "badge": "badge",
- "subscription_plan_id": "subscription_plan_id",
- "display_handle": "display_handle",
- "user_id": "user_id",
- "photo_url": "photo_url"
- }
- },
- {
- "updated_time": "2000-01-23T04:56:07+00:00",
- "organization": {
- "role": null,
- "publishing_disabled": true,
- "organization_id": "organization_id",
- "name": "name",
- "avatar": {
- "avatar_url": "avatar_url"
- },
- "type": null
- },
- "permission": null,
- "user": {
- "badge": "badge",
- "subscription_plan_id": "subscription_plan_id",
- "display_handle": "display_handle",
- "user_id": "user_id",
- "photo_url": "photo_url"
- }
- }
- ]
+ }
}
]
},
@@ -8419,99 +8330,46 @@
"type": "object"
},
"Dataset": {
- "description": "A dataset for organizing assets.",
+ "description": "A dataset for organizing training images.",
"example": {
- "collection_id": "collection_id",
"creation_time": "2000-01-23T04:56:07+00:00",
"user_id": "user_id",
+ "dataset_id": "dataset_id",
"name": "name",
"cover_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
- },
- "sharing": [
- {
- "updated_time": "2000-01-23T04:56:07+00:00",
- "organization": {
- "role": null,
- "publishing_disabled": true,
- "organization_id": "organization_id",
- "name": "name",
- "avatar": {
- "avatar_url": "avatar_url"
- },
- "type": null
- },
- "permission": null,
- "user": {
- "badge": "badge",
- "subscription_plan_id": "subscription_plan_id",
- "display_handle": "display_handle",
- "user_id": "user_id",
- "photo_url": "photo_url"
- }
- },
- {
- "updated_time": "2000-01-23T04:56:07+00:00",
- "organization": {
- "role": null,
- "publishing_disabled": true,
- "organization_id": "organization_id",
- "name": "name",
- "avatar": {
- "avatar_url": "avatar_url"
- },
- "type": null
- },
- "permission": null,
- "user": {
- "badge": "badge",
- "subscription_plan_id": "subscription_plan_id",
- "display_handle": "display_handle",
- "user_id": "user_id",
- "photo_url": "photo_url"
- }
- }
- ]
+ }
},
"properties": {
- "collection_id": {
- "description": "Unique identifier for the collection.",
- "title": "collection_id",
+ "dataset_id": {
+ "description": "Unique identifier for the dataset.",
+ "title": "dataset_id",
"type": "string"
},
"name": {
- "description": "Display name of the collection.",
+ "description": "Display name of the dataset.",
"title": "name",
"type": "string"
},
"user_id": {
- "description": "ID of the user who owns this collection.",
+ "description": "ID of the user who owns this dataset.",
"title": "user_id",
"type": "string"
},
"creation_time": {
- "description": "When the collection was created.",
+ "description": "When the dataset was created.",
"format": "date-time",
"title": "creation_time",
"type": "string"
},
"cover_asset_identifier": {
"$ref": "#/components/schemas/AssetIdentifier"
- },
- "sharing": {
- "description": "Sharing details for this collection including the owner entry.",
- "items": {
- "$ref": "#/components/schemas/SharingInfo"
- },
- "nullable": true,
- "title": "sharing",
- "type": "array"
}
},
"required": [
- "collection_id",
"creation_time",
+ "dataset_id",
"name",
"user_id"
],
@@ -8674,7 +8532,7 @@
"UploadDatasetAssetsRequest": {
"properties": {
"files": {
- "description": "Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg).\n",
+ "description": "Image files (JPEG, PNG, WebP), .txt caption sidecar files, and/or ZIP archives containing images and captions. Caption .txt files are matched to images by filename stem (e.g. sunset.txt provides the caption for sunset.jpg). Captions are optional!\n",
"items": {
"format": "binary",
"type": "string"
@@ -9850,180 +9708,6 @@
"title": "AssetType",
"type": "string"
},
- "SharingInfo": {
- "example": {
- "updated_time": "2000-01-23T04:56:07+00:00",
- "organization": {
- "role": null,
- "publishing_disabled": true,
- "organization_id": "organization_id",
- "name": "name",
- "avatar": {
- "avatar_url": "avatar_url"
- },
- "type": null
- },
- "permission": null,
- "user": {
- "badge": "badge",
- "subscription_plan_id": "subscription_plan_id",
- "display_handle": "display_handle",
- "user_id": "user_id",
- "photo_url": "photo_url"
- }
- },
- "properties": {
- "permission": {
- "$ref": "#/components/schemas/SharingPermission"
- },
- "updated_time": {
- "description": "When this sharing entry was last updated.",
- "format": "date-time",
- "title": "updated_time",
- "type": "string"
- },
- "organization": {
- "$ref": "#/components/schemas/OrganizationObject"
- },
- "user": {
- "$ref": "#/components/schemas/User"
- }
- },
- "required": [
- "permission",
- "updated_time"
- ],
- "title": "SharingInfo",
- "type": "object"
- },
- "SharingPermission": {
- "description": "Permission level for the shared organization. OWNER is read-only and cannot be set via add/remove.",
- "enum": [
- "OWNER",
- "EDITOR",
- "VIEWER"
- ],
- "title": "SharingPermission",
- "type": "string"
- },
- "OrganizationObject": {
- "description": "An organization object",
- "example": {
- "role": null,
- "publishing_disabled": true,
- "organization_id": "organization_id",
- "name": "name",
- "avatar": {
- "avatar_url": "avatar_url"
- },
- "type": null
- },
- "properties": {
- "organization_id": {
- "description": "ID of the organization",
- "title": "organization_id",
- "type": "string"
- },
- "name": {
- "description": "Name of the organization",
- "title": "name",
- "type": "string"
- },
- "type": {
- "$ref": "#/components/schemas/OrganizationType"
- },
- "role": {
- "$ref": "#/components/schemas/OrganizationRoleEnum"
- },
- "avatar": {
- "$ref": "#/components/schemas/OrganizationAvatarObject"
- },
- "publishing_disabled": {
- "description": "Whether publishing is disabled for this organization.",
- "title": "publishing_disabled",
- "type": "boolean"
- }
- },
- "required": [
- "name",
- "organization_id"
- ],
- "title": "OrganizationObject",
- "type": "object"
- },
- "OrganizationType": {
- "description": "The type of organization",
- "enum": [
- "PRIVATE",
- "TEAM",
- "ENTERPRISE"
- ],
- "title": "OrganizationType",
- "type": "string"
- },
- "OrganizationRoleEnum": {
- "description": "Role of a user in an organization.",
- "enum": [
- "OWNER",
- "WRITER"
- ],
- "title": "OrganizationRoleEnum",
- "type": "string"
- },
- "OrganizationAvatarObject": {
- "example": {
- "avatar_url": "avatar_url"
- },
- "properties": {
- "avatar_url": {
- "title": "avatar_url",
- "type": "string"
- }
- },
- "required": [
- "avatar_url"
- ],
- "title": "OrganizationAvatarObject",
- "type": "object"
- },
- "User": {
- "example": {
- "badge": "badge",
- "subscription_plan_id": "subscription_plan_id",
- "display_handle": "display_handle",
- "user_id": "user_id",
- "photo_url": "photo_url"
- },
- "properties": {
- "user_id": {
- "title": "user_id",
- "type": "string"
- },
- "display_handle": {
- "title": "display_handle",
- "type": "string"
- },
- "photo_url": {
- "title": "photo_url",
- "type": "string"
- },
- "subscription_plan_id": {
- "title": "subscription_plan_id",
- "type": "string"
- },
- "badge": {
- "title": "badge",
- "type": "string"
- }
- },
- "required": [
- "display_handle",
- "photo_url",
- "user_id"
- ],
- "title": "User",
- "type": "object"
- },
"postInternalTesting_200_response": {
"example": {
"response_content": "response_content"