diff --git a/src/libs/MagicHour/Generated/MagicHour.IImageProjectsClient.AiImageGeneratorCreateImage.g.cs b/src/libs/MagicHour/Generated/MagicHour.IImageProjectsClient.AiImageGeneratorCreateImage.g.cs index 63d55d4..1747e29 100644 --- a/src/libs/MagicHour/Generated/MagicHour.IImageProjectsClient.AiImageGeneratorCreateImage.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.IImageProjectsClient.AiImageGeneratorCreateImage.g.cs @@ -166,7 +166,7 @@ public partial interface IImageProjectsClient /// - `z-image-turbo` - 640px, 1k, 2k
/// Note: Resolution availability depends on the model and your subscription tier.
/// Default Value: auto
- /// Example: auto + /// Example: 1k /// /// /// The art style to use for image generation. diff --git a/src/libs/MagicHour/Generated/MagicHour.IVideoProjectsClient.AiVideoTranslatorCreateVideo.g.cs b/src/libs/MagicHour/Generated/MagicHour.IVideoProjectsClient.AiVideoTranslatorCreateVideo.g.cs new file mode 100644 index 0000000..268d893 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.IVideoProjectsClient.AiVideoTranslatorCreateVideo.g.cs @@ -0,0 +1,123 @@ +#nullable enable + +namespace MagicHour +{ + public partial interface IVideoProjectsClient + { + /// + /// AI Video Translator
+ /// **What this API does**
+ /// Create the same Video Translator you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
+ ///
+ /// **Good for**
+ /// - Automation and batch processing
+ /// - Adding video translator into apps, pipelines, or tools
+ /// **How it works (3 steps)**
+ /// 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
+ /// 2) Send a request to create a video translator job with the basic fields.
+ /// 3) Check the job status until it's `complete`, then download the result from `downloads`.
+ /// **Key options**
+ /// - Inputs: usually a file, sometimes a YouTube link, depending on project type
+ /// - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
+ /// - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
+ /// **Cost**
+ /// Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
+ /// For detailed examples, see the [product page](https://magichour.ai/products/ai-video-translator). + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task AiVideoTranslatorCreateVideoAsync( + + global::MagicHour.AiVideoTranslatorCreateVideoRequest request, + global::MagicHour.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// AI Video Translator
+ /// **What this API does**
+ /// Create the same Video Translator you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
+ ///
+ /// **Good for**
+ /// - Automation and batch processing
+ /// - Adding video translator into apps, pipelines, or tools
+ /// **How it works (3 steps)**
+ /// 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
+ /// 2) Send a request to create a video translator job with the basic fields.
+ /// 3) Check the job status until it's `complete`, then download the result from `downloads`.
+ /// **Key options**
+ /// - Inputs: usually a file, sometimes a YouTube link, depending on project type
+ /// - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
+ /// - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
+ /// **Cost**
+ /// Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
+ /// For detailed examples, see the [product page](https://magichour.ai/products/ai-video-translator). + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> AiVideoTranslatorCreateVideoAsResponseAsync( + + global::MagicHour.AiVideoTranslatorCreateVideoRequest request, + global::MagicHour.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// AI Video Translator
+ /// **What this API does**
+ /// Create the same Video Translator you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
+ ///
+ /// **Good for**
+ /// - Automation and batch processing
+ /// - Adding video translator into apps, pipelines, or tools
+ /// **How it works (3 steps)**
+ /// 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
+ /// 2) Send a request to create a video translator job with the basic fields.
+ /// 3) Check the job status until it's `complete`, then download the result from `downloads`.
+ /// **Key options**
+ /// - Inputs: usually a file, sometimes a YouTube link, depending on project type
+ /// - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
+ /// - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
+ /// **Cost**
+ /// Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
+ /// For detailed examples, see the [product page](https://magichour.ai/products/ai-video-translator). + ///
+ /// + /// Give your video a custom name for easy identification.
+ /// Default Value: Video Translator - dateTime
+ /// Example: My Video Translator video + /// + /// + /// Start time of your clip (seconds). Must be ≥ 0.
+ /// Default Value: 0
+ /// Example: 0 + /// + /// + /// End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.
+ /// Example: 15 + /// + /// + /// Language to translate the video's speech into.
+ /// Example: Spanish + /// + /// + /// Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.
+ /// Example: 720p + /// + /// + /// Source video for the translation job. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task AiVideoTranslatorCreateVideoAsync( + float endSeconds, + global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage targetLanguage, + global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets assets, + string? name = default, + float? startSeconds = default, + global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution? resolution = default, + global::MagicHour.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.ImageProjectsClient.AiImageGeneratorCreateImage.g.cs b/src/libs/MagicHour/Generated/MagicHour.ImageProjectsClient.AiImageGeneratorCreateImage.g.cs index 945a243..ed82045 100644 --- a/src/libs/MagicHour/Generated/MagicHour.ImageProjectsClient.AiImageGeneratorCreateImage.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.ImageProjectsClient.AiImageGeneratorCreateImage.g.cs @@ -791,7 +791,7 @@ partial void ProcessAiImageGeneratorCreateImageResponseContent( /// - `z-image-turbo` - 640px, 1k, 2k
/// Note: Resolution availability depends on the model and your subscription tier.
/// Default Value: auto
- /// Example: auto + /// Example: 1k /// /// /// The art style to use for image generation. diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolution.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolution.g.cs new file mode 100644 index 0000000..1819c54 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoRequestResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution 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::MagicHour.AiVideoTranslatorCreateVideoRequestResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolutionNullable.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolutionNullable.g.cs new file mode 100644 index 0000000..c8137bc --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoRequestResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution? 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::MagicHour.AiVideoTranslatorCreateVideoRequestResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution? 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::MagicHour.AiVideoTranslatorCreateVideoRequestResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguage.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguage.g.cs new file mode 100644 index 0000000..12da5f9 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguage.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoRequestTargetLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage 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::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguageExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguageExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguageNullable.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguageNullable.g.cs new file mode 100644 index 0000000..b45e6bc --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguageNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoRequestTargetLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage? 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::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguageExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage? 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::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguageExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode.g.cs new file mode 100644 index 0000000..bc7944b --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCodeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode 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::MagicHour.AiVideoTranslatorCreateVideoResponseCodeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::MagicHour.AiVideoTranslatorCreateVideoResponseCodeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2.g.cs new file mode 100644 index 0000000..cf9831f --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2Nullable.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2Nullable.g.cs new file mode 100644 index 0000000..0a56faf --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3.g.cs new file mode 100644 index 0000000..ce8104f --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3Nullable.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3Nullable.g.cs new file mode 100644 index 0000000..7913d54 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4.g.cs new file mode 100644 index 0000000..592c306 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4Nullable.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4Nullable.g.cs new file mode 100644 index 0000000..7864629 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5.g.cs new file mode 100644 index 0000000..e67bddb --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5Nullable.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5Nullable.g.cs new file mode 100644 index 0000000..9df994c --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6.g.cs new file mode 100644 index 0000000..8a2b928 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode6JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode6Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6Nullable.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6Nullable.g.cs new file mode 100644 index 0000000..73b2997 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCode6NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode6Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCode6Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCodeNullable.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCodeNullable.g.cs new file mode 100644 index 0000000..570e0c7 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCodeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace MagicHour.JsonConverters +{ + /// + public sealed class AiVideoTranslatorCreateVideoResponseCodeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::MagicHour.AiVideoTranslatorCreateVideoResponseCode? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCodeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::MagicHour.AiVideoTranslatorCreateVideoResponseCode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode? 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::MagicHour.AiVideoTranslatorCreateVideoResponseCodeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonSerializerContext.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonSerializerContext.g.cs index 8fb913f..2aae9a9 100644 --- a/src/libs/MagicHour/Generated/MagicHour.JsonSerializerContext.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.JsonSerializerContext.g.cs @@ -37,6 +37,10 @@ namespace MagicHour [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoRequestResolution), TypeInfoPropertyName = "AiVideoEditorCreateVideoRequestResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoRequestStyle))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoRequestAssets))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage), TypeInfoPropertyName = "AiVideoTranslatorCreateVideoRequestTargetLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution), TypeInfoPropertyName = "AiVideoTranslatorCreateVideoRequestResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoRequestStyle))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoRequestStyleArtStyle), TypeInfoPropertyName = "AnimationCreateVideoRequestStyleArtStyle2")] @@ -273,6 +277,19 @@ namespace MagicHour [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoResponseCode5), TypeInfoPropertyName = "AiVideoEditorCreateVideoResponseCode52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoResponse7))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoResponseCode6), TypeInfoPropertyName = "AiVideoEditorCreateVideoResponseCode62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode), TypeInfoPropertyName = "AiVideoTranslatorCreateVideoResponseCode2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2), TypeInfoPropertyName = "AiVideoTranslatorCreateVideoResponseCode22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3), TypeInfoPropertyName = "AiVideoTranslatorCreateVideoResponseCode32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4), TypeInfoPropertyName = "AiVideoTranslatorCreateVideoResponseCode42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5), TypeInfoPropertyName = "AiVideoTranslatorCreateVideoResponseCode52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6), TypeInfoPropertyName = "AiVideoTranslatorCreateVideoResponseCode62")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoResponseCode), TypeInfoPropertyName = "AnimationCreateVideoResponseCode2_3")] @@ -497,6 +514,18 @@ namespace MagicHour [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiImageUpscalerCreateImageResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiImageUpscalerCreateImageResponseCode), TypeInfoPropertyName = "AiImageUpscalerCreateImageResponseCode2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiImageUpscalerCreateImageResponse3))] + internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiImageUpscalerCreateImageResponseCode2), TypeInfoPropertyName = "AiImageUpscalerCreateImageResponseCode22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiImageUpscalerCreateImageResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiImageUpscalerCreateImageResponseCode3), TypeInfoPropertyName = "AiImageUpscalerCreateImageResponseCode32")] @@ -514,18 +543,6 @@ namespace MagicHour [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiMemeGeneratorCreateImageResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiMemeGeneratorCreateImageResponseCode3), TypeInfoPropertyName = "AiMemeGeneratorCreateImageResponseCode32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiMemeGeneratorCreateImageResponse5))] - internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiMemeGeneratorCreateImageResponseCode4), TypeInfoPropertyName = "AiMemeGeneratorCreateImageResponseCode42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiMemeGeneratorCreateImageResponse6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiMemeGeneratorCreateImageResponseCode5), TypeInfoPropertyName = "AiMemeGeneratorCreateImageResponseCode52")] @@ -667,6 +684,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoRequestModel?), TypeInfoPropertyName = "NullableAiVideoEditorCreateVideoRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoRequestResolution?), TypeInfoPropertyName = "NullableAiVideoEditorCreateVideoRequestResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage?), TypeInfoPropertyName = "NullableAiVideoTranslatorCreateVideoRequestTargetLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution?), TypeInfoPropertyName = "NullableAiVideoTranslatorCreateVideoRequestResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoRequestStyleArtStyle?), TypeInfoPropertyName = "NullableAnimationCreateVideoRequestStyleArtStyle2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoRequestStyleCameraEffect?), TypeInfoPropertyName = "NullableAnimationCreateVideoRequestStyleCameraEffect2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoRequestStylePromptType?), TypeInfoPropertyName = "NullableAnimationCreateVideoRequestStylePromptType2")] @@ -762,6 +781,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoResponseCode4?), TypeInfoPropertyName = "NullableAiVideoEditorCreateVideoResponseCode42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoResponseCode5?), TypeInfoPropertyName = "NullableAiVideoEditorCreateVideoResponseCode52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoEditorCreateVideoResponseCode6?), TypeInfoPropertyName = "NullableAiVideoEditorCreateVideoResponseCode62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode?), TypeInfoPropertyName = "NullableAiVideoTranslatorCreateVideoResponseCode2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2?), TypeInfoPropertyName = "NullableAiVideoTranslatorCreateVideoResponseCode22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3?), TypeInfoPropertyName = "NullableAiVideoTranslatorCreateVideoResponseCode32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4?), TypeInfoPropertyName = "NullableAiVideoTranslatorCreateVideoResponseCode42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5?), TypeInfoPropertyName = "NullableAiVideoTranslatorCreateVideoResponseCode52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6?), TypeInfoPropertyName = "NullableAiVideoTranslatorCreateVideoResponseCode62")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoResponseCode?), TypeInfoPropertyName = "NullableAnimationCreateVideoResponseCode2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoResponseCode2?), TypeInfoPropertyName = "NullableAnimationCreateVideoResponseCode22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::MagicHour.AnimationCreateVideoResponseCode3?), TypeInfoPropertyName = "NullableAnimationCreateVideoResponseCode32")] @@ -1019,6 +1044,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::MagicHour.AiVideoEditorCreateVideoRequestResolution?) + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage?) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution?) + || typeToConvert == typeof(global::MagicHour.AnimationCreateVideoRequestStyleArtStyle) || typeToConvert == typeof(global::MagicHour.AnimationCreateVideoRequestStyleArtStyle?) @@ -1391,6 +1424,30 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::MagicHour.AiVideoEditorCreateVideoResponseCode6?) + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode?) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2?) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3?) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4?) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5?) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6) + + || typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6?) + || typeToConvert == typeof(global::MagicHour.AnimationCreateVideoResponseCode) || typeToConvert == typeof(global::MagicHour.AnimationCreateVideoResponseCode?) @@ -2124,6 +2181,26 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::MagicHour.JsonConverters.AiVideoEditorCreateVideoRequestResolutionNullableJsonConverter(); } + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguageJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage?)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguageNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolutionJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution?)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolutionNullableJsonConverter(); + } + if (typeToConvert == typeof(global::MagicHour.AnimationCreateVideoRequestStyleArtStyle)) { return new global::MagicHour.JsonConverters.AnimationCreateVideoRequestStyleArtStyleJsonConverter(); @@ -3054,6 +3131,66 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::MagicHour.JsonConverters.AiVideoEditorCreateVideoResponseCode6NullableJsonConverter(); } + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCodeJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode?)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCodeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2JsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2?)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3JsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3?)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4JsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4?)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5JsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5?)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6JsonConverter(); + } + + if (typeToConvert == typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6?)) + { + return new global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6NullableJsonConverter(); + } + if (typeToConvert == typeof(global::MagicHour.AnimationCreateVideoResponseCode)) { return new global::MagicHour.JsonConverters.AnimationCreateVideoResponseCodeJsonConverter(); diff --git a/src/libs/MagicHour/Generated/MagicHour.JsonSerializerContextTypes.g.cs b/src/libs/MagicHour/Generated/MagicHour.JsonSerializerContextTypes.g.cs index 5491c67..442105e 100644 --- a/src/libs/MagicHour/Generated/MagicHour.JsonSerializerContextTypes.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.JsonSerializerContextTypes.g.cs @@ -109,2447 +109,2515 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::MagicHour.AnimationCreateVideoRequest? Type19 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoRequest? Type19 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoRequestStyle? Type20 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage? Type20 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoRequestStyleArtStyle? Type21 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution? Type21 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoRequestStyleCameraEffect? Type22 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets? Type22 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoRequestStylePromptType? Type23 { get; set; } + public global::MagicHour.AnimationCreateVideoRequest? Type23 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoRequestAssets? Type24 { get; set; } + public global::MagicHour.AnimationCreateVideoRequestStyle? Type24 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoRequestAssetsAudioSource? Type25 { get; set; } + public global::MagicHour.AnimationCreateVideoRequestStyleArtStyle? Type25 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoRequest? Type26 { get; set; } + public global::MagicHour.AnimationCreateVideoRequestStyleCameraEffect? Type26 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoRequestResolution? Type27 { get; set; } + public global::MagicHour.AnimationCreateVideoRequestStylePromptType? Type27 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoRequestAssets? Type28 { get; set; } + public global::MagicHour.AnimationCreateVideoRequestAssets? Type28 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoRequestStyle? Type29 { get; set; } + public global::MagicHour.AnimationCreateVideoRequestAssetsAudioSource? Type29 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequest? Type30 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoRequest? Type30 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequestAssets? Type31 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoRequestResolution? Type31 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequestStyle? Type32 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoRequestAssets? Type32 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequestStyleTemplate? Type33 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoRequestStyle? Type33 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequestStyleCustomConfig? Type34 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequest? Type34 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoRequest? Type35 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequestAssets? Type35 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoRequestResolution? Type36 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequestStyle? Type36 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoRequestAssets? Type37 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequestStyleTemplate? Type37 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoRequestStyle? Type38 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoRequestStyleCustomConfig? Type38 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoRequestStyleMode? Type39 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoRequest? Type39 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoRequestStyleSelectionMode? Type40 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoRequestResolution? Type40 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type41 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoRequestAssets? Type41 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoRequestStylePoint? Type42 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoRequestStyle? Type42 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoRequest? Type43 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoRequestStyleMode? Type43 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoRequestStyle? Type44 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoRequestStyleSelectionMode? Type44 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoRequestStyleVersion? Type45 { get; set; } + public global::System.Collections.Generic.IList? Type45 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoRequestAssets? Type46 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoRequestStylePoint? Type46 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoRequestAssetsFaceSwapMode? Type47 { get; set; } + public global::MagicHour.FaceSwapCreateVideoRequest? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type48 { get; set; } + public global::MagicHour.FaceSwapCreateVideoRequestStyle? Type48 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoRequestAssetsFaceMapping? Type49 { get; set; } + public global::MagicHour.FaceSwapCreateVideoRequestStyleVersion? Type49 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoRequestAssetsVideoSource? Type50 { get; set; } + public global::MagicHour.FaceSwapCreateVideoRequestAssets? Type50 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoRequest? Type51 { get; set; } + public global::MagicHour.FaceSwapCreateVideoRequestAssetsFaceSwapMode? Type51 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoRequestModel? Type52 { get; set; } + public global::System.Collections.Generic.IList? Type52 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoRequestResolution? Type53 { get; set; } + public global::MagicHour.FaceSwapCreateVideoRequestAssetsFaceMapping? Type53 { get; set; } /// /// /// - public bool? Type54 { get; set; } + public global::MagicHour.FaceSwapCreateVideoRequestAssetsVideoSource? Type54 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoRequestStyle? Type55 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoRequest? Type55 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoRequestAssets? Type56 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoRequestModel? Type56 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoRequest? Type57 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoRequestResolution? Type57 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoRequestAssets? Type58 { get; set; } + public bool? Type58 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoRequestAssetsVideoSource? Type59 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoRequestStyle? Type59 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoRequestStyle? Type60 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoRequestAssets? Type60 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoRequestStyleGenerationMode? Type61 { get; set; } + public global::MagicHour.LipSyncCreateVideoRequest? Type61 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoRequest? Type62 { get; set; } + public global::MagicHour.LipSyncCreateVideoRequestAssets? Type62 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoRequestAspectRatio? Type63 { get; set; } + public global::MagicHour.LipSyncCreateVideoRequestAssetsVideoSource? Type63 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoRequestResolution? Type64 { get; set; } + public global::MagicHour.LipSyncCreateVideoRequestStyle? Type64 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoRequestModel? Type65 { get; set; } + public global::MagicHour.LipSyncCreateVideoRequestStyleGenerationMode? Type65 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoRequestStyle? Type66 { get; set; } + public global::MagicHour.TextToVideoCreateVideoRequest? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::MagicHour.TextToVideoCreateVideoRequestAspectRatio? Type67 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoRequestReference? Type68 { get; set; } + public global::MagicHour.TextToVideoCreateVideoRequestResolution? Type68 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequest? Type69 { get; set; } + public global::MagicHour.TextToVideoCreateVideoRequestModel? Type69 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequestFpsResolution? Type70 { get; set; } + public global::MagicHour.TextToVideoCreateVideoRequestStyle? Type70 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequestStyle? Type71 { get; set; } + public global::System.Collections.Generic.IList? Type71 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequestStyleArtStyle? Type72 { get; set; } + public global::MagicHour.TextToVideoCreateVideoRequestReference? Type72 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequestStyleVersion? Type73 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequest? Type73 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequestStylePromptType? Type74 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequestFpsResolution? Type74 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequestStyleModel? Type75 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequestStyle? Type75 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequestAssets? Type76 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequestStyleArtStyle? Type76 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoRequestAssetsVideoSource? Type77 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequestStyleVersion? Type77 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageRequest? Type78 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequestStylePromptType? Type78 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageRequestAssets? Type79 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequestStyleModel? Type79 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageRequestAssetsGarmentType? Type80 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequestAssets? Type80 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageRequest? Type81 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoRequestAssetsVideoSource? Type81 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageRequestAssets? Type82 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageRequest? Type82 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageRequestStyle? Type83 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageRequestAssets? Type83 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageRequest? Type84 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageRequestAssetsGarmentType? Type84 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageRequestStyle? Type85 { get; set; } + public global::MagicHour.AiFaceEditorEditImageRequest? Type85 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageRequestOutputFormat? Type86 { get; set; } + public global::MagicHour.AiFaceEditorEditImageRequestAssets? Type86 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageRequest? Type87 { get; set; } + public global::MagicHour.AiFaceEditorEditImageRequestStyle? Type87 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageRequestModel? Type88 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageRequest? Type88 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageRequestAspectRatio? Type89 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageRequestStyle? Type89 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageRequestResolution? Type90 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageRequestOutputFormat? Type90 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageRequestStyle? Type91 { get; set; } + public global::MagicHour.AiImageEditorCreateImageRequest? Type91 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageRequestAssets? Type92 { get; set; } + public global::MagicHour.AiImageEditorCreateImageRequestModel? Type92 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type93 { get; set; } + public global::MagicHour.AiImageEditorCreateImageRequestAspectRatio? Type93 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageRequest? Type94 { get; set; } + public global::MagicHour.AiImageEditorCreateImageRequestResolution? Type94 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageRequestStyle? Type95 { get; set; } + public global::MagicHour.AiImageEditorCreateImageRequestStyle? Type95 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageRequestAssets? Type96 { get; set; } + public global::MagicHour.AiImageEditorCreateImageRequestAssets? Type96 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageRequest? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageRequestModel? Type98 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageRequest? Type98 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageRequestAspectRatio? Type99 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageRequestStyle? Type99 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageRequestResolution? Type100 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageRequestAssets? Type100 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageRequestStyle? Type101 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageRequest? Type101 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageRequestStyleTool? Type102 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageRequestModel? Type102 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageRequest? Type103 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageRequestAspectRatio? Type103 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageRequestStyle? Type104 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageRequestResolution? Type104 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageRequestStyleMode? Type105 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageRequestStyle? Type105 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageRequestAssets? Type106 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageRequestStyleTool? Type106 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageRequest? Type107 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageRequest? Type107 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageRequestStyle? Type108 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageRequestStyle? Type108 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageRequestStyleTemplate? Type109 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageRequestStyleMode? Type109 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageRequest? Type110 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageRequestAssets? Type110 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageRequestStyle? Type111 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageRequest? Type111 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageRequest? Type112 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageRequestStyle? Type112 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageRequestResolution? Type113 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageRequestStyleTemplate? Type113 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageRequestAssets? Type114 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageRequest? Type114 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageRequest? Type115 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageRequestStyle? Type115 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageRequestAssets? Type116 { get; set; } + public global::MagicHour.BodySwapCreateImageRequest? Type116 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageRequestAssetsFaceSwapMode? Type117 { get; set; } + public global::MagicHour.BodySwapCreateImageRequestResolution? Type117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type118 { get; set; } + public global::MagicHour.BodySwapCreateImageRequestAssets? Type118 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageRequestAssetsFaceMapping? Type119 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageRequest? Type119 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageRequest? Type120 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageRequestAssets? Type120 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageRequestAssets? Type121 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageRequestAssetsFaceSwapMode? Type121 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageRequest? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageRequestAssets? Type123 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageRequestAssetsFaceMapping? Type123 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageRequest? Type124 { get; set; } + public global::MagicHour.HeadSwapCreateImageRequest? Type124 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageRequestAssets? Type125 { get; set; } + public global::MagicHour.HeadSwapCreateImageRequestAssets? Type125 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioRequest? Type126 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageRequest? Type126 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioRequestStyle? Type127 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageRequestAssets? Type127 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioRequestStyleVoiceName? Type128 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageRequest? Type128 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioRequest? Type129 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageRequestAssets? Type129 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioRequestAssets? Type130 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioRequest? Type130 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioRequestStyle? Type131 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioRequestStyle? Type131 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListType? Type132 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioRequestStyleVoiceName? Type132 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponse? Type133 { get; set; } + public global::MagicHour.AiVoiceClonerCreateAudioRequest? Type133 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponseTier? Type134 { get; set; } + public global::MagicHour.AiVoiceClonerCreateAudioRequestAssets? Type134 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponseSubscription? Type135 { get; set; } + public global::MagicHour.AiVoiceClonerCreateAudioRequestStyle? Type135 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponseSubscriptionStatus? Type136 { get; set; } + public global::MagicHour.SavedItemsListType? Type136 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponseSubscriptionPrice? Type137 { get; set; } + public global::MagicHour.AccountGetResponse? Type137 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponseSubscriptionDiscount? Type138 { get; set; } + public global::MagicHour.AccountGetResponseTier? Type138 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponseSubscriptionBillingInterval? Type139 { get; set; } + public global::MagicHour.AccountGetResponseSubscription? Type139 { get; set; } /// /// /// - public global::System.DateTime? Type140 { get; set; } + public global::MagicHour.AccountGetResponseSubscriptionStatus? Type140 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponse2? Type141 { get; set; } + public global::MagicHour.AccountGetResponseSubscriptionPrice? Type141 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponseCode? Type142 { get; set; } + public global::MagicHour.AccountGetResponseSubscriptionDiscount? Type142 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponse3? Type143 { get; set; } + public global::MagicHour.AccountGetResponseSubscriptionBillingInterval? Type143 { get; set; } /// /// /// - public global::MagicHour.AccountGetResponseCode2? Type144 { get; set; } + public global::System.DateTime? Type144 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponse? Type145 { get; set; } + public global::MagicHour.AccountGetResponse2? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public global::MagicHour.AccountGetResponseCode? Type146 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponseItem? Type147 { get; set; } + public global::MagicHour.AccountGetResponse3? Type147 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponseItemType? Type148 { get; set; } + public global::MagicHour.AccountGetResponseCode2? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::MagicHour.SavedItemsListResponse? Type149 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponseItemAsset? Type150 { get; set; } + public global::System.Collections.Generic.IList? Type150 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponseItemAssetMediaKind? Type151 { get; set; } + public global::MagicHour.SavedItemsListResponseItem? Type151 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponse2? Type152 { get; set; } + public global::MagicHour.SavedItemsListResponseItemType? Type152 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponseCode? Type153 { get; set; } + public global::System.Collections.Generic.IList? Type153 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponse3? Type154 { get; set; } + public global::MagicHour.SavedItemsListResponseItemAsset? Type154 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponseCode2? Type155 { get; set; } + public global::MagicHour.SavedItemsListResponseItemAssetMediaKind? Type155 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponse4? Type156 { get; set; } + public global::MagicHour.SavedItemsListResponse2? Type156 { get; set; } /// /// /// - public global::MagicHour.SavedItemsListResponseCode3? Type157 { get; set; } + public global::MagicHour.SavedItemsListResponseCode? Type157 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse? Type158 { get; set; } + public global::MagicHour.SavedItemsListResponse3? Type158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type159 { get; set; } + public global::MagicHour.SavedItemsListResponseCode2? Type159 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseItem? Type160 { get; set; } + public global::MagicHour.SavedItemsListResponse4? Type160 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse2? Type161 { get; set; } + public global::MagicHour.SavedItemsListResponseCode3? Type161 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode? Type162 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse? Type162 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse3? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode2? Type164 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseItem? Type164 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse4? Type165 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse2? Type165 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode3? Type166 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode? Type166 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse5? Type167 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse3? Type167 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode4? Type168 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode2? Type168 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse6? Type169 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse4? Type169 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode5? Type170 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode3? Type170 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse7? Type171 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse5? Type171 { get; set; } /// /// /// - public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode6? Type172 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode4? Type172 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponse? Type173 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse6? Type173 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponseStatus? Type174 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode5? Type174 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type175 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponse7? Type175 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponseFace? Type176 { get; set; } + public global::MagicHour.VideoAssetsGeneratePresignedUrlResponseCode6? Type176 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponse2? Type177 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponse? Type177 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponseCode? Type178 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponseStatus? Type178 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponse3? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponseCode2? Type180 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponseFace? Type180 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponse4? Type181 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponse2? Type181 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponseCode3? Type182 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponseCode? Type182 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponse5? Type183 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponse3? Type183 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponseCode4? Type184 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponseCode2? Type184 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponse6? Type185 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponse4? Type185 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponseCode5? Type186 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponseCode3? Type186 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponse7? Type187 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponse5? Type187 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionGetDetailsResponseCode6? Type188 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponseCode4? Type188 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponse? Type189 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponse6? Type189 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponse2? Type190 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponseCode5? Type190 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponseCode? Type191 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponse7? Type191 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponse3? Type192 { get; set; } + public global::MagicHour.FaceDetectionGetDetailsResponseCode6? Type192 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponseCode2? Type193 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponse? Type193 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponse4? Type194 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponse2? Type194 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponseCode3? Type195 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponseCode? Type195 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponse5? Type196 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponse3? Type196 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponseCode4? Type197 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponseCode2? Type197 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponse6? Type198 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponse4? Type198 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponseCode5? Type199 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponseCode3? Type199 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponse7? Type200 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponse5? Type200 { get; set; } /// /// /// - public global::MagicHour.FaceDetectionDetectFacesResponseCode6? Type201 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponseCode4? Type201 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponse? Type202 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponse6? Type202 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponseStatus? Type203 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponseCode5? Type203 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponseError? Type204 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponse7? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::MagicHour.FaceDetectionDetectFacesResponseCode6? Type205 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponseDownload? Type206 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponse? Type206 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponse2? Type207 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponseStatus? Type207 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponseCode? Type208 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponseError? Type208 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponse3? Type209 { get; set; } + public global::System.Collections.Generic.IList? Type209 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponseCode2? Type210 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponseDownload? Type210 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponse4? Type211 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponse2? Type211 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponseCode3? Type212 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponseCode? Type212 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponse5? Type213 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponse3? Type213 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponseCode4? Type214 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponseCode2? Type214 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponse6? Type215 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponse4? Type215 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsGetDetailsResponseCode5? Type216 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponseCode3? Type216 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponse? Type217 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponse5? Type217 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponseCode? Type218 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponseCode4? Type218 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponse2? Type219 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponse6? Type219 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponseCode2? Type220 { get; set; } + public global::MagicHour.VideoProjectsGetDetailsResponseCode5? Type220 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponse3? Type221 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponse? Type221 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponseCode3? Type222 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponseCode? Type222 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponse4? Type223 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponse2? Type223 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponseCode4? Type224 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponseCode2? Type224 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponse5? Type225 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponse3? Type225 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponseCode5? Type226 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponseCode3? Type226 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponse6? Type227 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponse4? Type227 { get; set; } /// /// /// - public global::MagicHour.VideoProjectsDeleteResponseCode6? Type228 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponseCode4? Type228 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse? Type229 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponse5? Type229 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse2? Type230 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponseCode5? Type230 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode? Type231 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponse6? Type231 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse3? Type232 { get; set; } + public global::MagicHour.VideoProjectsDeleteResponseCode6? Type232 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode2? Type233 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse? Type233 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse4? Type234 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse2? Type234 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode3? Type235 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode? Type235 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse5? Type236 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse3? Type236 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode4? Type237 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode2? Type237 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse6? Type238 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse4? Type238 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode5? Type239 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode3? Type239 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse7? Type240 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse5? Type240 { get; set; } /// /// /// - public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode6? Type241 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode4? Type241 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponse? Type242 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse6? Type242 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponse2? Type243 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode5? Type243 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponseCode? Type244 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponse7? Type244 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponse3? Type245 { get; set; } + public global::MagicHour.AiTalkingPhotoCreateTalkingPhotoResponseCode6? Type245 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponseCode2? Type246 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponse? Type246 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponse4? Type247 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponse2? Type247 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponseCode3? Type248 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponseCode? Type248 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponse5? Type249 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponse3? Type249 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponseCode4? Type250 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponseCode2? Type250 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponse6? Type251 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponse4? Type251 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponseCode5? Type252 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponseCode3? Type252 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponse7? Type253 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponse5? Type253 { get; set; } /// /// /// - public global::MagicHour.AiVideoEditorCreateVideoResponseCode6? Type254 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponseCode4? Type254 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponse? Type255 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponse6? Type255 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponse2? Type256 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponseCode5? Type256 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponseCode? Type257 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponse7? Type257 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponse3? Type258 { get; set; } + public global::MagicHour.AiVideoEditorCreateVideoResponseCode6? Type258 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponseCode2? Type259 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponse? Type259 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponse4? Type260 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponse2? Type260 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponseCode3? Type261 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode? Type261 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponse5? Type262 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponse3? Type262 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponseCode4? Type263 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2? Type263 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponse6? Type264 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponse4? Type264 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponseCode5? Type265 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3? Type265 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponse7? Type266 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponse5? Type266 { get; set; } /// /// /// - public global::MagicHour.AnimationCreateVideoResponseCode6? Type267 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4? Type267 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponse? Type268 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponse6? Type268 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponse2? Type269 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5? Type269 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponseCode? Type270 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponse7? Type270 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponse3? Type271 { get; set; } + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6? Type271 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponseCode2? Type272 { get; set; } + public global::MagicHour.AnimationCreateVideoResponse? Type272 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponse4? Type273 { get; set; } + public global::MagicHour.AnimationCreateVideoResponse2? Type273 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponseCode3? Type274 { get; set; } + public global::MagicHour.AnimationCreateVideoResponseCode? Type274 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponse5? Type275 { get; set; } + public global::MagicHour.AnimationCreateVideoResponse3? Type275 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponseCode4? Type276 { get; set; } + public global::MagicHour.AnimationCreateVideoResponseCode2? Type276 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponse6? Type277 { get; set; } + public global::MagicHour.AnimationCreateVideoResponse4? Type277 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponseCode5? Type278 { get; set; } + public global::MagicHour.AnimationCreateVideoResponseCode3? Type278 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponse7? Type279 { get; set; } + public global::MagicHour.AnimationCreateVideoResponse5? Type279 { get; set; } /// /// /// - public global::MagicHour.AudioToVideoCreateVideoResponseCode6? Type280 { get; set; } + public global::MagicHour.AnimationCreateVideoResponseCode4? Type280 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse? Type281 { get; set; } + public global::MagicHour.AnimationCreateVideoResponse6? Type281 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse2? Type282 { get; set; } + public global::MagicHour.AnimationCreateVideoResponseCode5? Type282 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode? Type283 { get; set; } + public global::MagicHour.AnimationCreateVideoResponse7? Type283 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse3? Type284 { get; set; } + public global::MagicHour.AnimationCreateVideoResponseCode6? Type284 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode2? Type285 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponse? Type285 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse4? Type286 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponse2? Type286 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode3? Type287 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponseCode? Type287 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse5? Type288 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponse3? Type288 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode4? Type289 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponseCode2? Type289 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse6? Type290 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponse4? Type290 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode5? Type291 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponseCode3? Type291 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse7? Type292 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponse5? Type292 { get; set; } /// /// /// - public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode6? Type293 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponseCode4? Type293 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponse? Type294 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponse6? Type294 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponse2? Type295 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponseCode5? Type295 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponseCode? Type296 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponse7? Type296 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponse3? Type297 { get; set; } + public global::MagicHour.AudioToVideoCreateVideoResponseCode6? Type297 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponseCode2? Type298 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse? Type298 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponse4? Type299 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse2? Type299 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponseCode3? Type300 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode? Type300 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponse5? Type301 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse3? Type301 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponseCode4? Type302 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode2? Type302 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponse6? Type303 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse4? Type303 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponseCode5? Type304 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode3? Type304 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponse7? Type305 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse5? Type305 { get; set; } /// /// /// - public global::MagicHour.CharacterReplaceCreateVideoResponseCode6? Type306 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode4? Type306 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponse? Type307 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse6? Type307 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponse2? Type308 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode5? Type308 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponseCode? Type309 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponse7? Type309 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponse3? Type310 { get; set; } + public global::MagicHour.AutoSubtitleGeneratorCreateVideoResponseCode6? Type310 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponseCode2? Type311 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponse? Type311 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponse4? Type312 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponse2? Type312 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponseCode3? Type313 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponseCode? Type313 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponse5? Type314 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponse3? Type314 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponseCode4? Type315 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponseCode2? Type315 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponse6? Type316 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponse4? Type316 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponseCode5? Type317 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponseCode3? Type317 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponse7? Type318 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponse5? Type318 { get; set; } /// /// /// - public global::MagicHour.FaceSwapCreateVideoResponseCode6? Type319 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponseCode4? Type319 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponse? Type320 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponse6? Type320 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponse2? Type321 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponseCode5? Type321 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponseCode? Type322 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponse7? Type322 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponse3? Type323 { get; set; } + public global::MagicHour.CharacterReplaceCreateVideoResponseCode6? Type323 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponseCode2? Type324 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponse? Type324 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponse4? Type325 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponse2? Type325 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponseCode3? Type326 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponseCode? Type326 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponse5? Type327 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponse3? Type327 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponseCode4? Type328 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponseCode2? Type328 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponse6? Type329 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponse4? Type329 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponseCode5? Type330 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponseCode3? Type330 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponse7? Type331 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponse5? Type331 { get; set; } /// /// /// - public global::MagicHour.ImageToVideoCreateVideoResponseCode6? Type332 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponseCode4? Type332 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponse? Type333 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponse6? Type333 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponse2? Type334 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponseCode5? Type334 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponseCode? Type335 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponse7? Type335 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponse3? Type336 { get; set; } + public global::MagicHour.FaceSwapCreateVideoResponseCode6? Type336 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponseCode2? Type337 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponse? Type337 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponse4? Type338 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponse2? Type338 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponseCode3? Type339 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponseCode? Type339 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponse5? Type340 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponse3? Type340 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponseCode4? Type341 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponseCode2? Type341 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponse6? Type342 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponse4? Type342 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponseCode5? Type343 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponseCode3? Type343 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponse7? Type344 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponse5? Type344 { get; set; } /// /// /// - public global::MagicHour.LipSyncCreateVideoResponseCode6? Type345 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponseCode4? Type345 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponse? Type346 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponse6? Type346 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponse2? Type347 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponseCode5? Type347 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponseCode? Type348 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponse7? Type348 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponse3? Type349 { get; set; } + public global::MagicHour.ImageToVideoCreateVideoResponseCode6? Type349 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponseCode2? Type350 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponse? Type350 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponse4? Type351 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponse2? Type351 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponseCode3? Type352 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponseCode? Type352 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponse5? Type353 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponse3? Type353 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponseCode4? Type354 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponseCode2? Type354 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponse6? Type355 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponse4? Type355 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponseCode5? Type356 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponseCode3? Type356 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponse7? Type357 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponse5? Type357 { get; set; } /// /// /// - public global::MagicHour.TextToVideoCreateVideoResponseCode6? Type358 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponseCode4? Type358 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponse? Type359 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponse6? Type359 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponse2? Type360 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponseCode5? Type360 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponseCode? Type361 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponse7? Type361 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponse3? Type362 { get; set; } + public global::MagicHour.LipSyncCreateVideoResponseCode6? Type362 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponseCode2? Type363 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponse? Type363 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponse4? Type364 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponse2? Type364 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponseCode3? Type365 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponseCode? Type365 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponse5? Type366 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponse3? Type366 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponseCode4? Type367 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponseCode2? Type367 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponse6? Type368 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponse4? Type368 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponseCode5? Type369 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponseCode3? Type369 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponse7? Type370 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponse5? Type370 { get; set; } /// /// /// - public global::MagicHour.VideoToVideoCreateVideoResponseCode6? Type371 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponseCode4? Type371 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponse? Type372 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponse6? Type372 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponseStatus? Type373 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponseCode5? Type373 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type374 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponse7? Type374 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponseDownload? Type375 { get; set; } + public global::MagicHour.TextToVideoCreateVideoResponseCode6? Type375 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponseError? Type376 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponse? Type376 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponse2? Type377 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponse2? Type377 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponseCode? Type378 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponseCode? Type378 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponse3? Type379 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponse3? Type379 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponseCode2? Type380 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponseCode2? Type380 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponse4? Type381 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponse4? Type381 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponseCode3? Type382 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponseCode3? Type382 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponse5? Type383 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponse5? Type383 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponseCode4? Type384 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponseCode4? Type384 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponse6? Type385 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponse6? Type385 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsGetDetailsResponseCode5? Type386 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponseCode5? Type386 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponse? Type387 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponse7? Type387 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponseCode? Type388 { get; set; } + public global::MagicHour.VideoToVideoCreateVideoResponseCode6? Type388 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponse2? Type389 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponse? Type389 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponseCode2? Type390 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponseStatus? Type390 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponse3? Type391 { get; set; } + public global::System.Collections.Generic.IList? Type391 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponseCode3? Type392 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponseDownload? Type392 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponse4? Type393 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponseError? Type393 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponseCode4? Type394 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponse2? Type394 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponse5? Type395 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponseCode? Type395 { get; set; } /// /// /// - public global::MagicHour.ImageProjectsDeleteResponseCode5? Type396 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponse3? Type396 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponse? Type397 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponseCode2? Type397 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponse2? Type398 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponse4? Type398 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponseCode? Type399 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponseCode3? Type399 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponse3? Type400 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponse5? Type400 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponseCode2? Type401 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponseCode4? Type401 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponse4? Type402 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponse6? Type402 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponseCode3? Type403 { get; set; } + public global::MagicHour.ImageProjectsGetDetailsResponseCode5? Type403 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponse5? Type404 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponse? Type404 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponseCode4? Type405 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponseCode? Type405 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponse6? Type406 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponse2? Type406 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponseCode5? Type407 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponseCode2? Type407 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponse7? Type408 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponse3? Type408 { get; set; } /// /// /// - public global::MagicHour.AiClothesChangerCreateImageResponseCode6? Type409 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponseCode3? Type409 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponse? Type410 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponse4? Type410 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponse2? Type411 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponseCode4? Type411 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponseCode? Type412 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponse5? Type412 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponse3? Type413 { get; set; } + public global::MagicHour.ImageProjectsDeleteResponseCode5? Type413 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponseCode2? Type414 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponse? Type414 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponse4? Type415 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponse2? Type415 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponseCode3? Type416 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponseCode? Type416 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponse5? Type417 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponse3? Type417 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponseCode4? Type418 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponseCode2? Type418 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponse6? Type419 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponse4? Type419 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponseCode5? Type420 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponseCode3? Type420 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponse7? Type421 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponse5? Type421 { get; set; } /// /// /// - public global::MagicHour.AiFaceEditorEditImageResponseCode6? Type422 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponseCode4? Type422 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponse? Type423 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponse6? Type423 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponse2? Type424 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponseCode5? Type424 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponseCode? Type425 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponse7? Type425 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponse3? Type426 { get; set; } + public global::MagicHour.AiClothesChangerCreateImageResponseCode6? Type426 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponseCode2? Type427 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponse? Type427 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponse4? Type428 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponse2? Type428 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponseCode3? Type429 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponseCode? Type429 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponse5? Type430 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponse3? Type430 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponseCode4? Type431 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponseCode2? Type431 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponse6? Type432 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponse4? Type432 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponseCode5? Type433 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponseCode3? Type433 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponse7? Type434 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponse5? Type434 { get; set; } /// /// /// - public global::MagicHour.AiGifGeneratorCreateImageResponseCode6? Type435 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponseCode4? Type435 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponse? Type436 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponse6? Type436 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponse2? Type437 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponseCode5? Type437 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponseCode? Type438 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponse7? Type438 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponse3? Type439 { get; set; } + public global::MagicHour.AiFaceEditorEditImageResponseCode6? Type439 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponseCode2? Type440 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponse? Type440 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponse4? Type441 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponse2? Type441 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponseCode3? Type442 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponseCode? Type442 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponse5? Type443 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponse3? Type443 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponseCode4? Type444 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponseCode2? Type444 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponse6? Type445 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponse4? Type445 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponseCode5? Type446 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponseCode3? Type446 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponse7? Type447 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponse5? Type447 { get; set; } /// /// /// - public global::MagicHour.AiImageEditorCreateImageResponseCode6? Type448 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponseCode4? Type448 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponse? Type449 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponse6? Type449 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponse2? Type450 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponseCode5? Type450 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode? Type451 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponse7? Type451 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponse3? Type452 { get; set; } + public global::MagicHour.AiGifGeneratorCreateImageResponseCode6? Type452 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode2? Type453 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponse? Type453 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponse4? Type454 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponse2? Type454 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode3? Type455 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponseCode? Type455 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponse5? Type456 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponse3? Type456 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode4? Type457 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponseCode2? Type457 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponse6? Type458 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponse4? Type458 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode5? Type459 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponseCode3? Type459 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponse7? Type460 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponse5? Type460 { get; set; } /// /// /// - public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode6? Type461 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponseCode4? Type461 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponse? Type462 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponse6? Type462 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponse2? Type463 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponseCode5? Type463 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponseCode? Type464 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponse7? Type464 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponse3? Type465 { get; set; } + public global::MagicHour.AiImageEditorCreateImageResponseCode6? Type465 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponseCode2? Type466 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponse? Type466 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponse4? Type467 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponse2? Type467 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponseCode3? Type468 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode? Type468 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponse5? Type469 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponse3? Type469 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponseCode4? Type470 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode2? Type470 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponse6? Type471 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponse4? Type471 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponseCode5? Type472 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode3? Type472 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponse7? Type473 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponse5? Type473 { get; set; } /// /// /// - public global::MagicHour.AiImageGeneratorCreateImageResponseCode6? Type474 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode4? Type474 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponse? Type475 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponse6? Type475 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponse2? Type476 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode5? Type476 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponseCode? Type477 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponse7? Type477 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponse3? Type478 { get; set; } + public global::MagicHour.AiHeadshotGeneratorCreateImageResponseCode6? Type478 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponseCode2? Type479 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponse? Type479 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponse4? Type480 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponse2? Type480 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponseCode3? Type481 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponseCode? Type481 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponse5? Type482 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponse3? Type482 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponseCode4? Type483 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponseCode2? Type483 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponse6? Type484 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponse4? Type484 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponseCode5? Type485 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponseCode3? Type485 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponse7? Type486 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponse5? Type486 { get; set; } /// /// /// - public global::MagicHour.AiImageUpscalerCreateImageResponseCode6? Type487 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponseCode4? Type487 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponse? Type488 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponse6? Type488 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponse2? Type489 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponseCode5? Type489 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponseCode? Type490 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponse7? Type490 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponse3? Type491 { get; set; } + public global::MagicHour.AiImageGeneratorCreateImageResponseCode6? Type491 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponseCode2? Type492 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponse? Type492 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponse4? Type493 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponse2? Type493 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponseCode3? Type494 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponseCode? Type494 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponse5? Type495 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponse3? Type495 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponseCode4? Type496 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponseCode2? Type496 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponse6? Type497 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponse4? Type497 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponseCode5? Type498 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponseCode3? Type498 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponse7? Type499 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponse5? Type499 { get; set; } /// /// /// - public global::MagicHour.AiMemeGeneratorCreateImageResponseCode6? Type500 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponseCode4? Type500 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponse? Type501 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponse6? Type501 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponse2? Type502 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponseCode5? Type502 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode? Type503 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponse7? Type503 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponse3? Type504 { get; set; } + public global::MagicHour.AiImageUpscalerCreateImageResponseCode6? Type504 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode2? Type505 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponse? Type505 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponse4? Type506 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponse2? Type506 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode3? Type507 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponseCode? Type507 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponse5? Type508 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponse3? Type508 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode4? Type509 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponseCode2? Type509 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponse6? Type510 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponse4? Type510 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode5? Type511 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponseCode3? Type511 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponse7? Type512 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponse5? Type512 { get; set; } /// /// /// - public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode6? Type513 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponseCode4? Type513 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponse? Type514 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponse6? Type514 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponse2? Type515 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponseCode5? Type515 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponseCode? Type516 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponse7? Type516 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponse3? Type517 { get; set; } + public global::MagicHour.AiMemeGeneratorCreateImageResponseCode6? Type517 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponseCode2? Type518 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponse? Type518 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponse4? Type519 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponse2? Type519 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponseCode3? Type520 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode? Type520 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponse5? Type521 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponse3? Type521 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponseCode4? Type522 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode2? Type522 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponse6? Type523 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponse4? Type523 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponseCode5? Type524 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode3? Type524 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponse7? Type525 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponse5? Type525 { get; set; } /// /// /// - public global::MagicHour.BodySwapCreateImageResponseCode6? Type526 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode4? Type526 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponse? Type527 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponse6? Type527 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponse2? Type528 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode5? Type528 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponseCode? Type529 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponse7? Type529 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponse3? Type530 { get; set; } + public global::MagicHour.AiQrCodeGeneratorCreateImageResponseCode6? Type530 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponseCode2? Type531 { get; set; } + public global::MagicHour.BodySwapCreateImageResponse? Type531 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponse4? Type532 { get; set; } + public global::MagicHour.BodySwapCreateImageResponse2? Type532 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponseCode3? Type533 { get; set; } + public global::MagicHour.BodySwapCreateImageResponseCode? Type533 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponse5? Type534 { get; set; } + public global::MagicHour.BodySwapCreateImageResponse3? Type534 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponseCode4? Type535 { get; set; } + public global::MagicHour.BodySwapCreateImageResponseCode2? Type535 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponse6? Type536 { get; set; } + public global::MagicHour.BodySwapCreateImageResponse4? Type536 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponseCode5? Type537 { get; set; } + public global::MagicHour.BodySwapCreateImageResponseCode3? Type537 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponse7? Type538 { get; set; } + public global::MagicHour.BodySwapCreateImageResponse5? Type538 { get; set; } /// /// /// - public global::MagicHour.FaceSwapPhotoCreateImageResponseCode6? Type539 { get; set; } + public global::MagicHour.BodySwapCreateImageResponseCode4? Type539 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponse? Type540 { get; set; } + public global::MagicHour.BodySwapCreateImageResponse6? Type540 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponse2? Type541 { get; set; } + public global::MagicHour.BodySwapCreateImageResponseCode5? Type541 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponseCode? Type542 { get; set; } + public global::MagicHour.BodySwapCreateImageResponse7? Type542 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponse3? Type543 { get; set; } + public global::MagicHour.BodySwapCreateImageResponseCode6? Type543 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponseCode2? Type544 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponse? Type544 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponse4? Type545 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponse2? Type545 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponseCode3? Type546 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponseCode? Type546 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponse5? Type547 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponse3? Type547 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponseCode4? Type548 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponseCode2? Type548 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponse6? Type549 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponse4? Type549 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponseCode5? Type550 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponseCode3? Type550 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponse7? Type551 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponse5? Type551 { get; set; } /// /// /// - public global::MagicHour.HeadSwapCreateImageResponseCode6? Type552 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponseCode4? Type552 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponse? Type553 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponse6? Type553 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponse2? Type554 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponseCode5? Type554 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode? Type555 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponse7? Type555 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponse3? Type556 { get; set; } + public global::MagicHour.FaceSwapPhotoCreateImageResponseCode6? Type556 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode2? Type557 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponse? Type557 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponse4? Type558 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponse2? Type558 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode3? Type559 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponseCode? Type559 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponse5? Type560 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponse3? Type560 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode4? Type561 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponseCode2? Type561 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponse6? Type562 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponse4? Type562 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode5? Type563 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponseCode3? Type563 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponse7? Type564 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponse5? Type564 { get; set; } /// /// /// - public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode6? Type565 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponseCode4? Type565 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponse? Type566 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponse6? Type566 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponse2? Type567 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponseCode5? Type567 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponseCode? Type568 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponse7? Type568 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponse3? Type569 { get; set; } + public global::MagicHour.HeadSwapCreateImageResponseCode6? Type569 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponseCode2? Type570 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponse? Type570 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponse4? Type571 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponse2? Type571 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponseCode3? Type572 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode? Type572 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponse5? Type573 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponse3? Type573 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponseCode4? Type574 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode2? Type574 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponse6? Type575 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponse4? Type575 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponseCode5? Type576 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode3? Type576 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponse7? Type577 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponse5? Type577 { get; set; } /// /// /// - public global::MagicHour.PhotoColorizerCreateImageResponseCode6? Type578 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode4? Type578 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponse? Type579 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponse6? Type579 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponseStatus? Type580 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode5? Type580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type581 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponse7? Type581 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponseDownload? Type582 { get; set; } + public global::MagicHour.ImageBackgroundRemoverCreateImageResponseCode6? Type582 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponseError? Type583 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponse? Type583 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponse2? Type584 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponse2? Type584 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponseCode? Type585 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponseCode? Type585 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponse3? Type586 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponse3? Type586 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponseCode2? Type587 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponseCode2? Type587 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponse4? Type588 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponse4? Type588 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponseCode3? Type589 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponseCode3? Type589 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponse5? Type590 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponse5? Type590 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponseCode4? Type591 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponseCode4? Type591 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponse6? Type592 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponse6? Type592 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsGetDetailsResponseCode5? Type593 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponseCode5? Type593 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponse? Type594 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponse7? Type594 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponseCode? Type595 { get; set; } + public global::MagicHour.PhotoColorizerCreateImageResponseCode6? Type595 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponse2? Type596 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponse? Type596 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponseCode2? Type597 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponseStatus? Type597 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponse3? Type598 { get; set; } + public global::System.Collections.Generic.IList? Type598 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponseCode3? Type599 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponseDownload? Type599 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponse4? Type600 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponseError? Type600 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponseCode4? Type601 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponse2? Type601 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponse5? Type602 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponseCode? Type602 { get; set; } /// /// /// - public global::MagicHour.AudioProjectsDeleteResponseCode5? Type603 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponse3? Type603 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponse? Type604 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponseCode2? Type604 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponse2? Type605 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponse4? Type605 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode? Type606 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponseCode3? Type606 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponse3? Type607 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponse5? Type607 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode2? Type608 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponseCode4? Type608 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponse4? Type609 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponse6? Type609 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode3? Type610 { get; set; } + public global::MagicHour.AudioProjectsGetDetailsResponseCode5? Type610 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponse5? Type611 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponse? Type611 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode4? Type612 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponseCode? Type612 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponse6? Type613 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponse2? Type613 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode5? Type614 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponseCode2? Type614 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponse7? Type615 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponse3? Type615 { get; set; } /// /// /// - public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode6? Type616 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponseCode3? Type616 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponse? Type617 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponse4? Type617 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponse2? Type618 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponseCode4? Type618 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponseCode? Type619 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponse5? Type619 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponse3? Type620 { get; set; } + public global::MagicHour.AudioProjectsDeleteResponseCode5? Type620 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponseCode2? Type621 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponse? Type621 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponse4? Type622 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponse2? Type622 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponseCode3? Type623 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode? Type623 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponse5? Type624 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponse3? Type624 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponseCode4? Type625 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode2? Type625 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponse6? Type626 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponse4? Type626 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponseCode5? Type627 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode3? Type627 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponse7? Type628 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponse5? Type628 { get; set; } /// /// /// - public global::MagicHour.AiVoiceClonerCreateAudioResponseCode6? Type629 { get; set; } + public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode4? Type629 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceGeneratorCreateAudioResponse6? Type630 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode5? Type631 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceGeneratorCreateAudioResponse7? Type632 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceGeneratorCreateAudioResponseCode6? Type633 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponse? Type634 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponse2? Type635 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponseCode? Type636 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponse3? Type637 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponseCode2? Type638 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponse4? Type639 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponseCode3? Type640 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponse5? Type641 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponseCode4? Type642 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponse6? Type643 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponseCode5? Type644 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponse7? Type645 { get; set; } + /// + /// + /// + public global::MagicHour.AiVoiceClonerCreateAudioResponseCode6? Type646 { get; set; } /// /// diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiImageGeneratorCreateImageRequest.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiImageGeneratorCreateImageRequest.g.cs index 86bf0e7..3675caf 100644 --- a/src/libs/MagicHour/Generated/MagicHour.Models.AiImageGeneratorCreateImageRequest.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiImageGeneratorCreateImageRequest.g.cs @@ -119,9 +119,9 @@ public sealed partial class AiImageGeneratorCreateImageRequest /// - `z-image-turbo` - 640px, 1k, 2k
/// Note: Resolution availability depends on the model and your subscription tier.
/// Default Value: auto
- /// Example: auto + /// Example: 1k ///
- /// auto + /// 1k [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiImageGeneratorCreateImageRequestResolutionJsonConverter))] public global::MagicHour.AiImageGeneratorCreateImageRequestResolution? Resolution { get; set; } @@ -237,7 +237,7 @@ public sealed partial class AiImageGeneratorCreateImageRequest /// - `z-image-turbo` - 640px, 1k, 2k
/// Note: Resolution availability depends on the model and your subscription tier.
/// Default Value: auto
- /// Example: auto + /// Example: 1k /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiImageGeneratorCreateImageRequestResolution.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiImageGeneratorCreateImageRequestResolution.g.cs index c549ae7..6c0b49d 100644 --- a/src/libs/MagicHour/Generated/MagicHour.Models.AiImageGeneratorCreateImageRequestResolution.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiImageGeneratorCreateImageRequestResolution.g.cs @@ -26,7 +26,7 @@ namespace MagicHour /// - `z-image-turbo` - 640px, 1k, 2k
/// Note: Resolution availability depends on the model and your subscription tier.
/// Default Value: auto
- /// Example: auto + /// Example: 1k /// public enum AiImageGeneratorCreateImageRequestResolution { diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequest.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequest.Json.g.cs new file mode 100644 index 0000000..6913c6c --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequest), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoRequest? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequest.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequest.g.cs new file mode 100644 index 0000000..1afa6a2 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequest.g.cs @@ -0,0 +1,125 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// + /// + public sealed partial class AiVideoTranslatorCreateVideoRequest + { + /// + /// Give your video a custom name for easy identification.
+ /// Default Value: Video Translator - dateTime
+ /// Example: My Video Translator video + ///
+ /// My Video Translator video + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Start time of your clip (seconds). Must be ≥ 0.
+ /// Default Value: 0
+ /// Example: 0 + ///
+ /// 0 + [global::System.Text.Json.Serialization.JsonPropertyName("start_seconds")] + public float? StartSeconds { get; set; } + + /// + /// End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.
+ /// Example: 15 + ///
+ /// 15 + [global::System.Text.Json.Serialization.JsonPropertyName("end_seconds")] + [global::System.Text.Json.Serialization.JsonRequired] + public required float EndSeconds { get; set; } + + /// + /// Language to translate the video's speech into.
+ /// Example: Spanish + ///
+ /// Spanish + [global::System.Text.Json.Serialization.JsonPropertyName("target_language")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestTargetLanguageJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage TargetLanguage { get; set; } + + /// + /// Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.
+ /// Example: 720p + ///
+ /// 720p + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoRequestResolutionJsonConverter))] + public global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution? Resolution { get; set; } + + /// + /// Source video for the translation job. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("assets")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets Assets { 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. + /// + /// + /// End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.
+ /// Example: 15 + /// + /// + /// Language to translate the video's speech into.
+ /// Example: Spanish + /// + /// + /// Source video for the translation job. + /// + /// + /// Give your video a custom name for easy identification.
+ /// Default Value: Video Translator - dateTime
+ /// Example: My Video Translator video + /// + /// + /// Start time of your clip (seconds). Must be ≥ 0.
+ /// Default Value: 0
+ /// Example: 0 + /// + /// + /// Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.
+ /// Example: 720p + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoRequest( + float endSeconds, + global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage targetLanguage, + global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets assets, + string? name, + float? startSeconds, + global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution? resolution) + { + this.Name = name; + this.StartSeconds = startSeconds; + this.EndSeconds = endSeconds; + this.TargetLanguage = targetLanguage; + this.Resolution = resolution; + this.Assets = assets ?? throw new global::System.ArgumentNullException(nameof(assets)); + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestAssets.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestAssets.Json.g.cs new file mode 100644 index 0000000..ca5d9fb --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestAssets.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoRequestAssets + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoRequestAssets? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoRequestAssets), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestAssets.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestAssets.g.cs new file mode 100644 index 0000000..0837624 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestAssets.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Source video for the translation job. + /// + public sealed partial class AiVideoTranslatorCreateVideoRequestAssets + { + /// + /// Source video containing the speech to translate. This value is either
+ /// - a direct URL to the video file
+ /// - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
+ /// See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
+ /// Example: api-assets/id/1234.mp4 + ///
+ /// api-assets/id/1234.mp4 + [global::System.Text.Json.Serialization.JsonPropertyName("video_file_path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string VideoFilePath { 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. + /// + /// + /// Source video containing the speech to translate. This value is either
+ /// - a direct URL to the video file
+ /// - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
+ /// See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
+ /// Example: api-assets/id/1234.mp4 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoRequestAssets( + string videoFilePath) + { + this.VideoFilePath = videoFilePath ?? throw new global::System.ArgumentNullException(nameof(videoFilePath)); + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoRequestAssets() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestResolution.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestResolution.g.cs new file mode 100644 index 0000000..f986857 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestResolution.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.
+ /// Example: 720p + ///
+ public enum AiVideoTranslatorCreateVideoRequestResolution + { + /// + /// + /// + x1080p, + /// + /// + /// + x480p, + /// + /// + /// + x720p, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AiVideoTranslatorCreateVideoRequestResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AiVideoTranslatorCreateVideoRequestResolution value) + { + return value switch + { + AiVideoTranslatorCreateVideoRequestResolution.x1080p => "1080p", + AiVideoTranslatorCreateVideoRequestResolution.x480p => "480p", + AiVideoTranslatorCreateVideoRequestResolution.x720p => "720p", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AiVideoTranslatorCreateVideoRequestResolution? ToEnum(string value) + { + return value switch + { + "1080p" => AiVideoTranslatorCreateVideoRequestResolution.x1080p, + "480p" => AiVideoTranslatorCreateVideoRequestResolution.x480p, + "720p" => AiVideoTranslatorCreateVideoRequestResolution.x720p, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestTargetLanguage.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestTargetLanguage.g.cs new file mode 100644 index 0000000..2f577ab --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoRequestTargetLanguage.g.cs @@ -0,0 +1,358 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Language to translate the video's speech into.
+ /// Example: Spanish + ///
+ public enum AiVideoTranslatorCreateVideoRequestTargetLanguage + { + /// + /// + /// + Afrikaans, + /// + /// + /// + Arabic, + /// + /// + /// + Bengali, + /// + /// + /// + Bulgarian, + /// + /// + /// + Catalan, + /// + /// + /// + ChineseSimplified, + /// + /// + /// + ChineseTraditional, + /// + /// + /// + Croatian, + /// + /// + /// + Czech, + /// + /// + /// + Danish, + /// + /// + /// + Dutch, + /// + /// + /// + English, + /// + /// + /// + Estonian, + /// + /// + /// + Finnish, + /// + /// + /// + French, + /// + /// + /// + German, + /// + /// + /// + Greek, + /// + /// + /// + Gujarati, + /// + /// + /// + Hebrew, + /// + /// + /// + Hindi, + /// + /// + /// + Hungarian, + /// + /// + /// + Indonesian, + /// + /// + /// + Italian, + /// + /// + /// + Japanese, + /// + /// + /// + Kannada, + /// + /// + /// + Kazakh, + /// + /// + /// + Korean, + /// + /// + /// + Latvian, + /// + /// + /// + Lithuanian, + /// + /// + /// + Malay, + /// + /// + /// + Malayalam, + /// + /// + /// + Marathi, + /// + /// + /// + Norwegian, + /// + /// + /// + Persian, + /// + /// + /// + Polish, + /// + /// + /// + Portuguese, + /// + /// + /// + Punjabi, + /// + /// + /// + Romanian, + /// + /// + /// + Russian, + /// + /// + /// + Serbian, + /// + /// + /// + Slovak, + /// + /// + /// + Slovenian, + /// + /// + /// + Spanish, + /// + /// + /// + Swahili, + /// + /// + /// + Swedish, + /// + /// + /// + Tamil, + /// + /// + /// + Telugu, + /// + /// + /// + Thai, + /// + /// + /// + Turkish, + /// + /// + /// + Ukrainian, + /// + /// + /// + Urdu, + /// + /// + /// + Vietnamese, + /// + /// + /// + Welsh, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AiVideoTranslatorCreateVideoRequestTargetLanguageExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AiVideoTranslatorCreateVideoRequestTargetLanguage value) + { + return value switch + { + AiVideoTranslatorCreateVideoRequestTargetLanguage.Afrikaans => "Afrikaans", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Arabic => "Arabic", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Bengali => "Bengali", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Bulgarian => "Bulgarian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Catalan => "Catalan", + AiVideoTranslatorCreateVideoRequestTargetLanguage.ChineseSimplified => "Chinese (Simplified)", + AiVideoTranslatorCreateVideoRequestTargetLanguage.ChineseTraditional => "Chinese (Traditional)", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Croatian => "Croatian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Czech => "Czech", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Danish => "Danish", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Dutch => "Dutch", + AiVideoTranslatorCreateVideoRequestTargetLanguage.English => "English", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Estonian => "Estonian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Finnish => "Finnish", + AiVideoTranslatorCreateVideoRequestTargetLanguage.French => "French", + AiVideoTranslatorCreateVideoRequestTargetLanguage.German => "German", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Greek => "Greek", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Gujarati => "Gujarati", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Hebrew => "Hebrew", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Hindi => "Hindi", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Hungarian => "Hungarian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Indonesian => "Indonesian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Italian => "Italian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Japanese => "Japanese", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Kannada => "Kannada", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Kazakh => "Kazakh", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Korean => "Korean", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Latvian => "Latvian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Lithuanian => "Lithuanian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Malay => "Malay", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Malayalam => "Malayalam", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Marathi => "Marathi", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Norwegian => "Norwegian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Persian => "Persian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Polish => "Polish", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Portuguese => "Portuguese", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Punjabi => "Punjabi", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Romanian => "Romanian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Russian => "Russian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Serbian => "Serbian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Slovak => "Slovak", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Slovenian => "Slovenian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Spanish => "Spanish", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Swahili => "Swahili", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Swedish => "Swedish", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Tamil => "Tamil", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Telugu => "Telugu", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Thai => "Thai", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Turkish => "Turkish", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Ukrainian => "Ukrainian", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Urdu => "Urdu", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Vietnamese => "Vietnamese", + AiVideoTranslatorCreateVideoRequestTargetLanguage.Welsh => "Welsh", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AiVideoTranslatorCreateVideoRequestTargetLanguage? ToEnum(string value) + { + return value switch + { + "Afrikaans" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Afrikaans, + "Arabic" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Arabic, + "Bengali" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Bengali, + "Bulgarian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Bulgarian, + "Catalan" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Catalan, + "Chinese (Simplified)" => AiVideoTranslatorCreateVideoRequestTargetLanguage.ChineseSimplified, + "Chinese (Traditional)" => AiVideoTranslatorCreateVideoRequestTargetLanguage.ChineseTraditional, + "Croatian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Croatian, + "Czech" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Czech, + "Danish" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Danish, + "Dutch" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Dutch, + "English" => AiVideoTranslatorCreateVideoRequestTargetLanguage.English, + "Estonian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Estonian, + "Finnish" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Finnish, + "French" => AiVideoTranslatorCreateVideoRequestTargetLanguage.French, + "German" => AiVideoTranslatorCreateVideoRequestTargetLanguage.German, + "Greek" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Greek, + "Gujarati" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Gujarati, + "Hebrew" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Hebrew, + "Hindi" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Hindi, + "Hungarian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Hungarian, + "Indonesian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Indonesian, + "Italian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Italian, + "Japanese" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Japanese, + "Kannada" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Kannada, + "Kazakh" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Kazakh, + "Korean" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Korean, + "Latvian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Latvian, + "Lithuanian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Lithuanian, + "Malay" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Malay, + "Malayalam" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Malayalam, + "Marathi" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Marathi, + "Norwegian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Norwegian, + "Persian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Persian, + "Polish" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Polish, + "Portuguese" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Portuguese, + "Punjabi" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Punjabi, + "Romanian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Romanian, + "Russian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Russian, + "Serbian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Serbian, + "Slovak" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Slovak, + "Slovenian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Slovenian, + "Spanish" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Spanish, + "Swahili" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Swahili, + "Swedish" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Swedish, + "Tamil" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Tamil, + "Telugu" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Telugu, + "Thai" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Thai, + "Turkish" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Turkish, + "Ukrainian" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Ukrainian, + "Urdu" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Urdu, + "Vietnamese" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Vietnamese, + "Welsh" => AiVideoTranslatorCreateVideoRequestTargetLanguage.Welsh, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse.Json.g.cs new file mode 100644 index 0000000..997bfba --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse.g.cs new file mode 100644 index 0000000..80e07ee --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Success + /// + public sealed partial class AiVideoTranslatorCreateVideoResponse + { + /// + /// Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
+ /// Example: cuid-example + ///
+ /// cuid-example + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
+ /// If video generation fails, credits will be refunded, and this field will be updated to include the refund.
+ /// Example: 450 + ///
+ /// 450 + [global::System.Text.Json.Serialization.JsonPropertyName("credits_charged")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CreditsCharged { 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. + /// + /// + /// Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
+ /// Example: cuid-example + /// + /// + /// The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
+ /// If video generation fails, credits will be refunded, and this field will be updated to include the refund.
+ /// Example: 450 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoResponse( + string id, + int creditsCharged) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.CreditsCharged = creditsCharged; + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse2.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse2.Json.g.cs new file mode 100644 index 0000000..47b735b --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse2), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse2? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse2.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse2.g.cs new file mode 100644 index 0000000..b2dbf3e --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse2.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// + /// + public sealed partial class AiVideoTranslatorCreateVideoResponse2 + { + /// + /// Machine-readable error code.
+ /// - `invalid_request`: Fix request syntax or validation errors before retrying. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCodeJsonConverter))] + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode Code { get; set; } + + /// + /// Human-readable error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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. + /// + /// + /// Human-readable error message. + /// + /// + /// Machine-readable error code.
+ /// - `invalid_request`: Fix request syntax or validation errors before retrying. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoResponse2( + string message, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode code) + { + this.Code = code; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse3.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse3.Json.g.cs new file mode 100644 index 0000000..216aecc --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse3), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse3? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse3.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse3.g.cs new file mode 100644 index 0000000..5f0e35b --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse3.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// + /// + public sealed partial class AiVideoTranslatorCreateVideoResponse3 + { + /// + /// Machine-readable error code.
+ /// - `unauthorized`: Provide a valid API key before retrying. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode2JsonConverter))] + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2 Code { get; set; } + + /// + /// Human-readable error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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. + /// + /// + /// Human-readable error message. + /// + /// + /// Machine-readable error code.
+ /// - `unauthorized`: Provide a valid API key before retrying. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoResponse3( + string message, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode2 code) + { + this.Code = code; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse4.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse4.Json.g.cs new file mode 100644 index 0000000..319a97e --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse4), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse4? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse4.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse4.g.cs new file mode 100644 index 0000000..76c3e74 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse4.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// + /// + public sealed partial class AiVideoTranslatorCreateVideoResponse4 + { + /// + /// Machine-readable error code.
+ /// - `insufficient_credits`: Purchase credits before retrying.
+ /// - `subscription_required`: Start a subscription before retrying.
+ /// - `plan_upgrade_required`: Upgrade the subscription plan before retrying. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode3JsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3 Code { get; set; } + + /// + /// Human-readable error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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. + /// + /// + /// Machine-readable error code.
+ /// - `insufficient_credits`: Purchase credits before retrying.
+ /// - `subscription_required`: Start a subscription before retrying.
+ /// - `plan_upgrade_required`: Upgrade the subscription plan before retrying. + /// + /// + /// Human-readable error message. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoResponse4( + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode3 code, + string message) + { + this.Code = code; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse5.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse5.Json.g.cs new file mode 100644 index 0000000..6a37f96 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse5), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse5? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse5.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse5.g.cs new file mode 100644 index 0000000..555206d --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse5.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// + /// + public sealed partial class AiVideoTranslatorCreateVideoResponse5 + { + /// + /// Machine-readable error code.
+ /// - `not_found`: Check the route or resource identifier. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode4JsonConverter))] + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4 Code { get; set; } + + /// + /// Human-readable error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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. + /// + /// + /// Human-readable error message. + /// + /// + /// Machine-readable error code.
+ /// - `not_found`: Check the route or resource identifier. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoResponse5( + string message, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode4 code) + { + this.Code = code; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse6.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse6.Json.g.cs new file mode 100644 index 0000000..0d99459 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoResponse6 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse6), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoResponse6; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse6? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoResponse6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoResponse6), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoResponse6; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse6.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse6.g.cs new file mode 100644 index 0000000..b98ee1d --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse6.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// + /// + public sealed partial class AiVideoTranslatorCreateVideoResponse6 + { + /// + /// Machine-readable error code.
+ /// - `unprocessable_entity`: Change the request values before retrying. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode5JsonConverter))] + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5 Code { get; set; } + + /// + /// Human-readable error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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. + /// + /// + /// Human-readable error message. + /// + /// + /// Machine-readable error code.
+ /// - `unprocessable_entity`: Change the request values before retrying. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoResponse6( + string message, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode5 code) + { + this.Code = code; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoResponse6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse7.Json.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse7.Json.g.cs new file mode 100644 index 0000000..fe65a33 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse7.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace MagicHour +{ + public sealed partial class AiVideoTranslatorCreateVideoResponse7 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::MagicHour.AiVideoTranslatorCreateVideoResponse7), + jsonSerializerContext) as global::MagicHour.AiVideoTranslatorCreateVideoResponse7; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::MagicHour.AiVideoTranslatorCreateVideoResponse7? FromJson( + string json) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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::MagicHour.AiVideoTranslatorCreateVideoResponse7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::MagicHour.SourceGenerationContext.Default); + } + + 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::MagicHour.AiVideoTranslatorCreateVideoResponse7), + jsonSerializerContext).ConfigureAwait(false)) as global::MagicHour.AiVideoTranslatorCreateVideoResponse7; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::MagicHour.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse7.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse7.g.cs new file mode 100644 index 0000000..66f90bd --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponse7.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// + /// + public sealed partial class AiVideoTranslatorCreateVideoResponse7 + { + /// + /// Machine-readable error code.
+ /// - `internal_server_error`: Retry later or contact support if the error continues. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::MagicHour.JsonConverters.AiVideoTranslatorCreateVideoResponseCode6JsonConverter))] + public global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6 Code { get; set; } + + /// + /// Human-readable error message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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. + /// + /// + /// Human-readable error message. + /// + /// + /// Machine-readable error code.
+ /// - `internal_server_error`: Retry later or contact support if the error continues. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AiVideoTranslatorCreateVideoResponse7( + string message, + global::MagicHour.AiVideoTranslatorCreateVideoResponseCode6 code) + { + this.Code = code; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public AiVideoTranslatorCreateVideoResponse7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode.g.cs new file mode 100644 index 0000000..8d3e0fa --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Machine-readable error code.
+ /// - `invalid_request`: Fix request syntax or validation errors before retrying. + ///
+ public enum AiVideoTranslatorCreateVideoResponseCode + { + /// + /// Fix request syntax or validation errors before retrying. + /// + InvalidRequest, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AiVideoTranslatorCreateVideoResponseCodeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AiVideoTranslatorCreateVideoResponseCode value) + { + return value switch + { + AiVideoTranslatorCreateVideoResponseCode.InvalidRequest => "invalid_request", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AiVideoTranslatorCreateVideoResponseCode? ToEnum(string value) + { + return value switch + { + "invalid_request" => AiVideoTranslatorCreateVideoResponseCode.InvalidRequest, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode2.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode2.g.cs new file mode 100644 index 0000000..a247c65 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode2.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Machine-readable error code.
+ /// - `unauthorized`: Provide a valid API key before retrying. + ///
+ public enum AiVideoTranslatorCreateVideoResponseCode2 + { + /// + /// Provide a valid API key before retrying. + /// + Unauthorized, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AiVideoTranslatorCreateVideoResponseCode2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AiVideoTranslatorCreateVideoResponseCode2 value) + { + return value switch + { + AiVideoTranslatorCreateVideoResponseCode2.Unauthorized => "unauthorized", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AiVideoTranslatorCreateVideoResponseCode2? ToEnum(string value) + { + return value switch + { + "unauthorized" => AiVideoTranslatorCreateVideoResponseCode2.Unauthorized, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode3.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode3.g.cs new file mode 100644 index 0000000..6e59e71 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode3.g.cs @@ -0,0 +1,60 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Machine-readable error code.
+ /// - `insufficient_credits`: Purchase credits before retrying.
+ /// - `subscription_required`: Start a subscription before retrying.
+ /// - `plan_upgrade_required`: Upgrade the subscription plan before retrying. + ///
+ public enum AiVideoTranslatorCreateVideoResponseCode3 + { + /// + /// Purchase credits before retrying. + /// + InsufficientCredits, + /// + /// Upgrade the subscription plan before retrying. + /// + PlanUpgradeRequired, + /// + /// Start a subscription before retrying. + /// + SubscriptionRequired, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AiVideoTranslatorCreateVideoResponseCode3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AiVideoTranslatorCreateVideoResponseCode3 value) + { + return value switch + { + AiVideoTranslatorCreateVideoResponseCode3.InsufficientCredits => "insufficient_credits", + AiVideoTranslatorCreateVideoResponseCode3.PlanUpgradeRequired => "plan_upgrade_required", + AiVideoTranslatorCreateVideoResponseCode3.SubscriptionRequired => "subscription_required", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AiVideoTranslatorCreateVideoResponseCode3? ToEnum(string value) + { + return value switch + { + "insufficient_credits" => AiVideoTranslatorCreateVideoResponseCode3.InsufficientCredits, + "plan_upgrade_required" => AiVideoTranslatorCreateVideoResponseCode3.PlanUpgradeRequired, + "subscription_required" => AiVideoTranslatorCreateVideoResponseCode3.SubscriptionRequired, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode4.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode4.g.cs new file mode 100644 index 0000000..d183168 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode4.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Machine-readable error code.
+ /// - `not_found`: Check the route or resource identifier. + ///
+ public enum AiVideoTranslatorCreateVideoResponseCode4 + { + /// + /// Check the route or resource identifier. + /// + NotFound, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AiVideoTranslatorCreateVideoResponseCode4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AiVideoTranslatorCreateVideoResponseCode4 value) + { + return value switch + { + AiVideoTranslatorCreateVideoResponseCode4.NotFound => "not_found", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AiVideoTranslatorCreateVideoResponseCode4? ToEnum(string value) + { + return value switch + { + "not_found" => AiVideoTranslatorCreateVideoResponseCode4.NotFound, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode5.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode5.g.cs new file mode 100644 index 0000000..a87668a --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode5.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Machine-readable error code.
+ /// - `unprocessable_entity`: Change the request values before retrying. + ///
+ public enum AiVideoTranslatorCreateVideoResponseCode5 + { + /// + /// Change the request values before retrying. + /// + UnprocessableEntity, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AiVideoTranslatorCreateVideoResponseCode5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AiVideoTranslatorCreateVideoResponseCode5 value) + { + return value switch + { + AiVideoTranslatorCreateVideoResponseCode5.UnprocessableEntity => "unprocessable_entity", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AiVideoTranslatorCreateVideoResponseCode5? ToEnum(string value) + { + return value switch + { + "unprocessable_entity" => AiVideoTranslatorCreateVideoResponseCode5.UnprocessableEntity, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode6.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode6.g.cs new file mode 100644 index 0000000..a56116d --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.Models.AiVideoTranslatorCreateVideoResponseCode6.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace MagicHour +{ + /// + /// Machine-readable error code.
+ /// - `internal_server_error`: Retry later or contact support if the error continues. + ///
+ public enum AiVideoTranslatorCreateVideoResponseCode6 + { + /// + /// Retry later or contact support if the error continues. + /// + InternalServerError, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AiVideoTranslatorCreateVideoResponseCode6Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AiVideoTranslatorCreateVideoResponseCode6 value) + { + return value switch + { + AiVideoTranslatorCreateVideoResponseCode6.InternalServerError => "internal_server_error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AiVideoTranslatorCreateVideoResponseCode6? ToEnum(string value) + { + return value switch + { + "internal_server_error" => AiVideoTranslatorCreateVideoResponseCode6.InternalServerError, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapCreateVideoRequestAssets.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapCreateVideoRequestAssets.g.cs index 02d38de..c9d82bd 100644 --- a/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapCreateVideoRequestAssets.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapCreateVideoRequestAssets.g.cs @@ -10,8 +10,8 @@ public sealed partial class FaceSwapCreateVideoRequestAssets { /// /// Choose how to swap faces:
- /// **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
- /// +- **individual-faces** — specify exact mappings using `face_mappings`
+ /// - **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
+ /// - **individual-faces** — specify exact mappings using `face_mappings`
/// Default Value: all-faces
/// Example: all-faces ///
@@ -82,8 +82,8 @@ public sealed partial class FaceSwapCreateVideoRequestAssets /// /// /// Choose how to swap faces:
- /// **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
- /// +- **individual-faces** — specify exact mappings using `face_mappings`
+ /// - **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
+ /// - **individual-faces** — specify exact mappings using `face_mappings`
/// Default Value: all-faces
/// Example: all-faces /// diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapCreateVideoRequestAssetsFaceSwapMode.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapCreateVideoRequestAssetsFaceSwapMode.g.cs index ab2def7..0a28ff4 100644 --- a/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapCreateVideoRequestAssetsFaceSwapMode.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapCreateVideoRequestAssetsFaceSwapMode.g.cs @@ -5,8 +5,8 @@ namespace MagicHour { /// /// Choose how to swap faces:
- /// **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
- /// +- **individual-faces** — specify exact mappings using `face_mappings`
+ /// - **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
+ /// - **individual-faces** — specify exact mappings using `face_mappings`
/// Default Value: all-faces
/// Example: all-faces ///
diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapPhotoCreateImageRequestAssets.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapPhotoCreateImageRequestAssets.g.cs index ffffdc1..4f44294 100644 --- a/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapPhotoCreateImageRequestAssets.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapPhotoCreateImageRequestAssets.g.cs @@ -10,8 +10,8 @@ public sealed partial class FaceSwapPhotoCreateImageRequestAssets { /// /// Choose how to swap faces:
- /// **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
- /// +- **individual-faces** — specify exact mappings using `face_mappings`
+ /// - **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
+ /// - **individual-faces** — specify exact mappings using `face_mappings`
/// Default Value: all-faces
/// Example: all-faces ///
@@ -70,8 +70,8 @@ public sealed partial class FaceSwapPhotoCreateImageRequestAssets /// /// /// Choose how to swap faces:
- /// **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
- /// +- **individual-faces** — specify exact mappings using `face_mappings`
+ /// - **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
+ /// - **individual-faces** — specify exact mappings using `face_mappings`
/// Default Value: all-faces
/// Example: all-faces /// diff --git a/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapPhotoCreateImageRequestAssetsFaceSwapMode.g.cs b/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapPhotoCreateImageRequestAssetsFaceSwapMode.g.cs index a35a05f..5a1696a 100644 --- a/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapPhotoCreateImageRequestAssetsFaceSwapMode.g.cs +++ b/src/libs/MagicHour/Generated/MagicHour.Models.FaceSwapPhotoCreateImageRequestAssetsFaceSwapMode.g.cs @@ -5,8 +5,8 @@ namespace MagicHour { /// /// Choose how to swap faces:
- /// **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
- /// +- **individual-faces** — specify exact mappings using `face_mappings`
+ /// - **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
+ /// - **individual-faces** — specify exact mappings using `face_mappings`
/// Default Value: all-faces
/// Example: all-faces ///
diff --git a/src/libs/MagicHour/Generated/MagicHour.VideoProjectsClient.AiVideoTranslatorCreateVideo.g.cs b/src/libs/MagicHour/Generated/MagicHour.VideoProjectsClient.AiVideoTranslatorCreateVideo.g.cs new file mode 100644 index 0000000..df08064 --- /dev/null +++ b/src/libs/MagicHour/Generated/MagicHour.VideoProjectsClient.AiVideoTranslatorCreateVideo.g.cs @@ -0,0 +1,764 @@ + +#nullable enable + +namespace MagicHour +{ + public partial class VideoProjectsClient + { + + + private static readonly global::MagicHour.EndPointSecurityRequirement s_AiVideoTranslatorCreateVideoSecurityRequirement0 = + new global::MagicHour.EndPointSecurityRequirement + { + Authorizations = new global::MagicHour.EndPointAuthorizationRequirement[] + { new global::MagicHour.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::MagicHour.EndPointSecurityRequirement[] s_AiVideoTranslatorCreateVideoSecurityRequirements = + new global::MagicHour.EndPointSecurityRequirement[] + { s_AiVideoTranslatorCreateVideoSecurityRequirement0, + }; + partial void PrepareAiVideoTranslatorCreateVideoArguments( + global::System.Net.Http.HttpClient httpClient, + global::MagicHour.AiVideoTranslatorCreateVideoRequest request); + partial void PrepareAiVideoTranslatorCreateVideoRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::MagicHour.AiVideoTranslatorCreateVideoRequest request); + partial void ProcessAiVideoTranslatorCreateVideoResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAiVideoTranslatorCreateVideoResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// AI Video Translator
+ /// **What this API does**
+ /// Create the same Video Translator you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
+ ///
+ /// **Good for**
+ /// - Automation and batch processing
+ /// - Adding video translator into apps, pipelines, or tools
+ /// **How it works (3 steps)**
+ /// 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
+ /// 2) Send a request to create a video translator job with the basic fields.
+ /// 3) Check the job status until it's `complete`, then download the result from `downloads`.
+ /// **Key options**
+ /// - Inputs: usually a file, sometimes a YouTube link, depending on project type
+ /// - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
+ /// - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
+ /// **Cost**
+ /// Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
+ /// For detailed examples, see the [product page](https://magichour.ai/products/ai-video-translator). + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AiVideoTranslatorCreateVideoAsync( + + global::MagicHour.AiVideoTranslatorCreateVideoRequest request, + global::MagicHour.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await AiVideoTranslatorCreateVideoAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// AI Video Translator
+ /// **What this API does**
+ /// Create the same Video Translator you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
+ ///
+ /// **Good for**
+ /// - Automation and batch processing
+ /// - Adding video translator into apps, pipelines, or tools
+ /// **How it works (3 steps)**
+ /// 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
+ /// 2) Send a request to create a video translator job with the basic fields.
+ /// 3) Check the job status until it's `complete`, then download the result from `downloads`.
+ /// **Key options**
+ /// - Inputs: usually a file, sometimes a YouTube link, depending on project type
+ /// - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
+ /// - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
+ /// **Cost**
+ /// Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
+ /// For detailed examples, see the [product page](https://magichour.ai/products/ai-video-translator). + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> AiVideoTranslatorCreateVideoAsResponseAsync( + + global::MagicHour.AiVideoTranslatorCreateVideoRequest request, + global::MagicHour.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareAiVideoTranslatorCreateVideoArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::MagicHour.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AiVideoTranslatorCreateVideoSecurityRequirements, + operationName: "AiVideoTranslatorCreateVideoAsync"); + + using var __timeoutCancellationTokenSource = global::MagicHour.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::MagicHour.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::MagicHour.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::MagicHour.PathBuilder( + path: "/v1/ai-video-translator", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::MagicHour.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::MagicHour.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareAiVideoTranslatorCreateVideoRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::MagicHour.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::MagicHour.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AiVideoTranslatorCreateVideo", + methodName: "AiVideoTranslatorCreateVideoAsync", + pathTemplate: "\"/v1/ai-video-translator\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::MagicHour.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::MagicHour.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::MagicHour.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AiVideoTranslatorCreateVideo", + methodName: "AiVideoTranslatorCreateVideoAsync", + pathTemplate: "\"/v1/ai-video-translator\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::MagicHour.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::MagicHour.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::MagicHour.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::MagicHour.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::MagicHour.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AiVideoTranslatorCreateVideo", + methodName: "AiVideoTranslatorCreateVideoAsync", + pathTemplate: "\"/v1/ai-video-translator\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::MagicHour.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAiVideoTranslatorCreateVideoResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::MagicHour.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::MagicHour.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AiVideoTranslatorCreateVideo", + methodName: "AiVideoTranslatorCreateVideoAsync", + pathTemplate: "\"/v1/ai-video-translator\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::MagicHour.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::MagicHour.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "AiVideoTranslatorCreateVideo", + methodName: "AiVideoTranslatorCreateVideoAsync", + pathTemplate: "\"/v1/ai-video-translator\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::MagicHour.AiVideoTranslatorCreateVideoResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::MagicHour.AiVideoTranslatorCreateVideoResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::MagicHour.AiVideoTranslatorCreateVideoResponse2.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::MagicHour.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::MagicHour.AiVideoTranslatorCreateVideoResponse3? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::MagicHour.AiVideoTranslatorCreateVideoResponse3.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::MagicHour.AiVideoTranslatorCreateVideoResponse3.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::MagicHour.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Payment Required + if ((int)__response.StatusCode == 402) + { + string? __content_402 = null; + global::System.Exception? __exception_402 = null; + global::MagicHour.AiVideoTranslatorCreateVideoResponse4? __value_402 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_402 = global::MagicHour.AiVideoTranslatorCreateVideoResponse4.FromJson(__content_402, JsonSerializerContext); + } + else + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_402 = global::MagicHour.AiVideoTranslatorCreateVideoResponse4.FromJson(__content_402, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_402 = __ex; + } + + + throw global::MagicHour.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_402, + responseBody: __content_402, + responseObject: __value_402, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::MagicHour.AiVideoTranslatorCreateVideoResponse5? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::MagicHour.AiVideoTranslatorCreateVideoResponse5.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::MagicHour.AiVideoTranslatorCreateVideoResponse5.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::MagicHour.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unprocessable Entity + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::MagicHour.AiVideoTranslatorCreateVideoResponse6? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::MagicHour.AiVideoTranslatorCreateVideoResponse6.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::MagicHour.AiVideoTranslatorCreateVideoResponse6.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::MagicHour.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Internal Server Error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::MagicHour.AiVideoTranslatorCreateVideoResponse7? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::MagicHour.AiVideoTranslatorCreateVideoResponse7.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::MagicHour.AiVideoTranslatorCreateVideoResponse7.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::MagicHour.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessAiVideoTranslatorCreateVideoResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::MagicHour.AiVideoTranslatorCreateVideoResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::MagicHour.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::MagicHour.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::MagicHour.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::MagicHour.AiVideoTranslatorCreateVideoResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::MagicHour.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::MagicHour.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::MagicHour.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// AI Video Translator
+ /// **What this API does**
+ /// Create the same Video Translator you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
+ ///
+ /// **Good for**
+ /// - Automation and batch processing
+ /// - Adding video translator into apps, pipelines, or tools
+ /// **How it works (3 steps)**
+ /// 1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`.
+ /// 2) Send a request to create a video translator job with the basic fields.
+ /// 3) Check the job status until it's `complete`, then download the result from `downloads`.
+ /// **Key options**
+ /// - Inputs: usually a file, sometimes a YouTube link, depending on project type
+ /// - Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes
+ /// - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
+ /// **Cost**
+ /// Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
+ /// For detailed examples, see the [product page](https://magichour.ai/products/ai-video-translator). + ///
+ /// + /// Give your video a custom name for easy identification.
+ /// Default Value: Video Translator - dateTime
+ /// Example: My Video Translator video + /// + /// + /// Start time of your clip (seconds). Must be ≥ 0.
+ /// Default Value: 0
+ /// Example: 0 + /// + /// + /// End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.
+ /// Example: 15 + /// + /// + /// Language to translate the video's speech into.
+ /// Example: Spanish + /// + /// + /// Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.
+ /// Example: 720p + /// + /// + /// Source video for the translation job. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AiVideoTranslatorCreateVideoAsync( + float endSeconds, + global::MagicHour.AiVideoTranslatorCreateVideoRequestTargetLanguage targetLanguage, + global::MagicHour.AiVideoTranslatorCreateVideoRequestAssets assets, + string? name = default, + float? startSeconds = default, + global::MagicHour.AiVideoTranslatorCreateVideoRequestResolution? resolution = default, + global::MagicHour.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::MagicHour.AiVideoTranslatorCreateVideoRequest + { + Name = name, + StartSeconds = startSeconds, + EndSeconds = endSeconds, + TargetLanguage = targetLanguage, + Resolution = resolution, + Assets = assets, + }; + + return await AiVideoTranslatorCreateVideoAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/MagicHour/openapi.yaml b/src/libs/MagicHour/openapi.yaml index 20018f7..b8cd7ac 100644 --- a/src/libs/MagicHour/openapi.yaml +++ b/src/libs/MagicHour/openapi.yaml @@ -170,6 +170,22 @@ }, "security": [{ "bearerAuth": [] }], "x-codeSamples": [ + { + "lang": "python", + "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.account.list()" + }, + { + "lang": "javascript", + "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.account.list();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\tos \"os\"\n\n\tsdk \"github.com/magichourhq/magic-hour-go/client\"\n)\n\nfunc main() {\n\tclient := sdk.NewClient(\n\t\tsdk.WithBearerAuth(os.Getenv(\"MAGIC_HOUR_API_KEY\")),\n\t)\n\tres, err := client.V1.Account.List()\n}" + }, + { + "lang": "rust", + "source": "let client = magic_hour::Client::default()\n .with_bearer_auth(&std::env::var(\"MAGIC_HOUR_API_KEY\").unwrap());\nlet res = client.v1().account().list().await;" + }, { "lang": "curl", "source": "curl --request GET \\\n --url https://api.magichour.ai/v1/account \\\n --header 'accept: application/json' \\\n --header \"authorization: Bearer $MAGIC_HOUR_API_KEY\"" @@ -368,6 +384,22 @@ }, "security": [{ "bearerAuth": [] }], "x-codeSamples": [ + { + "lang": "python", + "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.saved_items.list(limit=20, type_=\"character\")" + }, + { + "lang": "javascript", + "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.savedItems.list();" + }, + { + "lang": "go", + "source": "package main\n\nimport (\n\tos \"os\"\n\n\tsdk \"github.com/magichourhq/magic-hour-go/client\"\n\tnullable \"github.com/magichourhq/magic-hour-go/nullable\"\n\tsaved_items \"github.com/magichourhq/magic-hour-go/resources/v1/saved_items\"\n\ttypes \"github.com/magichourhq/magic-hour-go/types\"\n)\n\nfunc main() {\n\tclient := sdk.NewClient(\n\t\tsdk.WithBearerAuth(os.Getenv(\"MAGIC_HOUR_API_KEY\")),\n\t)\n\tres, err := client.V1.SavedItems.List(saved_items.ListRequest{\n\t\tLimit: nullable.NewValue(20),\n\t\tType: nullable.NewValue(types.V1SavedItemsListTypeEnumCharacter),\n\t})\n}" + }, + { + "lang": "rust", + "source": "let client = magic_hour::Client::default()\n .with_bearer_auth(&std::env::var(\"MAGIC_HOUR_API_KEY\").unwrap());\nlet res = client\n .v1()\n .saved_items()\n .list(magic_hour::resources::v1::saved_items::ListRequest {\n limit: Some(20),\n type_: Some(magic_hour::models::V1SavedItemsListTypeEnum::Character),\n ..Default::default()\n })\n .await;" + }, { "lang": "curl", "source": "curl --request GET \\\n --url https://api.magichour.ai/v1/saved-items \\\n --header 'accept: application/json' \\\n --header \"authorization: Bearer $MAGIC_HOUR_API_KEY\"" @@ -1052,7 +1084,7 @@ }, { "lang": "javascript", - "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.faceDetection.generate(\n {\n assets: { targetFilePath: \"/path/to/1234.png\" },\n confidenceScore: 0.5,\n },\n {\n waitForCompletion: true,\n downloadOutputs: true,\n downloadDirectory: \".\",\n },\n});" + "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.faceDetection.generate(\n {\n assets: { targetFilePath: \"/path/to/1234.png\" },\n confidenceScore: 0.5,\n },\n {\n waitForCompletion: true,\n downloadOutputs: true,\n downloadDirectory: \".\",\n },\n);" }, { "lang": "go", @@ -2045,6 +2077,274 @@ ] } }, + "/v1/ai-video-translator": { + "post": { + "description": "**What this API does**\n\nCreate the same Video Translator you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.\n \n**Good for**\n- Automation and batch processing \n- Adding video translator into apps, pipelines, or tools \n\n**How it works (3 steps)**\n1) Upload your inputs (video, image, or audio) with [Generate Upload URLs](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls) and copy the `file_path`. \n2) Send a request to create a video translator job with the basic fields. \n3) Check the job status until it's `complete`, then download the result from `downloads`.\n\n**Key options**\n- Inputs: usually a file, sometimes a YouTube link, depending on project type \n- Resolution: free users are limited to 576px; higher plans unlock HD and larger sizes \n- Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt \n\n**Cost** \nCredits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.\n\nFor detailed examples, see the [product page](https://magichour.ai/products/ai-video-translator).", + "summary": "AI Video Translator", + "tags": ["Video Projects"], + "parameters": [], + "operationId": "aiVideoTranslator.createVideo", + "requestBody": { + "required": true, + "description": "Body", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Give your video a custom name for easy identification.", + "example": "My Video Translator video", + "default": "Video Translator - dateTime" + }, + "start_seconds": { + "default": 0, + "type": "number", + "minimum": 0, + "description": "Start time of your clip (seconds). Must be ≥ 0.", + "format": "float", + "example": 0 + }, + "end_seconds": { + "type": "number", + "minimum": 0.1, + "description": "End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.", + "format": "float", + "example": 15 + }, + "target_language": { + "type": "string", + "enum": [ + "English", + "Chinese (Simplified)", + "Hindi", + "Spanish", + "Arabic", + "French", + "Afrikaans", + "Bengali", + "Bulgarian", + "Catalan", + "Croatian", + "Czech", + "Danish", + "Dutch", + "Estonian", + "Finnish", + "German", + "Greek", + "Gujarati", + "Hebrew", + "Hungarian", + "Indonesian", + "Italian", + "Japanese", + "Kannada", + "Kazakh", + "Korean", + "Latvian", + "Lithuanian", + "Malay", + "Malayalam", + "Marathi", + "Norwegian", + "Persian", + "Polish", + "Portuguese", + "Punjabi", + "Romanian", + "Russian", + "Serbian", + "Slovak", + "Slovenian", + "Swahili", + "Swedish", + "Tamil", + "Telugu", + "Thai", + "Chinese (Traditional)", + "Turkish", + "Ukrainian", + "Urdu", + "Vietnamese", + "Welsh" + ], + "description": "Language to translate the video's speech into.", + "example": "Spanish" + }, + "resolution": { + "type": "string", + "enum": ["480p", "720p", "1080p"], + "description": "Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.", + "example": "720p" + }, + "assets": { + "type": "object", + "properties": { + "video_file_path": { + "type": "string", + "minLength": 1, + "description": "Source video containing the speech to translate. This value is either\n- a direct URL to the video file\n- `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).\n\nSee the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.\n", + "example": "api-assets/id/1234.mp4" + } + }, + "required": ["video_file_path"], + "description": "Source video for the translation job." + } + }, + "required": ["end_seconds", "target_language", "assets"] + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "cuid-example", + "description": "Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads." + }, + "credits_charged": { + "type": "integer", + "description": "The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. \n\nIf video generation fails, credits will be refunded, and this field will be updated to include the refund.", + "example": 450 + } + }, + "required": ["id", "credits_charged"], + "description": "Success" + } + } + } + }, + "400": { + "description": "Invalid Request", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["code", "message"], + "properties": { + "code": { + "type": "string", + "enum": ["invalid_request"], + "description": "Machine-readable error code.\n\n- `invalid_request`: Fix request syntax or validation errors before retrying." + }, + "message": { "type": "string", "description": "Human-readable error message." } + } + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["code", "message"], + "properties": { + "code": { + "type": "string", + "enum": ["unauthorized"], + "description": "Machine-readable error code.\n\n- `unauthorized`: Provide a valid API key before retrying." + }, + "message": { "type": "string", "description": "Human-readable error message." } + } + } + } + } + }, + "402": { + "description": "Payment Required", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["code", "message"], + "properties": { + "code": { + "type": "string", + "enum": [ + "insufficient_credits", + "subscription_required", + "plan_upgrade_required" + ], + "description": "Machine-readable error code.\n\n- `insufficient_credits`: Purchase credits before retrying.\n\n- `subscription_required`: Start a subscription before retrying.\n\n- `plan_upgrade_required`: Upgrade the subscription plan before retrying." + }, + "message": { "type": "string", "description": "Human-readable error message." } + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["code", "message"], + "properties": { + "code": { + "type": "string", + "enum": ["not_found"], + "description": "Machine-readable error code.\n\n- `not_found`: Check the route or resource identifier." + }, + "message": { "type": "string", "description": "Human-readable error message." } + } + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["code", "message"], + "properties": { + "code": { + "type": "string", + "enum": ["unprocessable_entity"], + "description": "Machine-readable error code.\n\n- `unprocessable_entity`: Change the request values before retrying." + }, + "message": { "type": "string", "description": "Human-readable error message." } + } + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["code", "message"], + "properties": { + "code": { + "type": "string", + "enum": ["internal_server_error"], + "description": "Machine-readable error code.\n\n- `internal_server_error`: Retry later or contact support if the error continues." + }, + "message": { "type": "string", "description": "Human-readable error message." } + } + } + } + } + } + }, + "security": [{ "bearerAuth": [] }] + } + }, "/v1/animation": { "post": { "description": "Create a Animation video. The estimated frame cost is calculated based on the `fps` and `end_seconds` input.", @@ -3258,7 +3558,7 @@ "x-codeSamples": [ { "lang": "python", - "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.character_replace.generate(\n data={\n \"assets\": {\n \"image_file_path\": \"/path/to/5678.png\",\n \"video_file_path\": \"/path/to/1234.mp4\",\n },\n \"end_seconds\": 15.0,\n \"name\": \"My Character Replace video\",\n \"resolution\": \"720p\",\n \"start_seconds\": 0.0,\n \"style\": {\"mode\": \"replace\", \"selection_mode\": \"auto\"},\n },\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\",\n)" + "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.character_replace.generate(\n assets={\n \"image_file_path\": \"/path/to/5678.png\",\n \"video_file_path\": \"/path/to/1234.mp4\",\n },\n end_seconds=15.0,\n name=\"My Character Replace video\",\n resolution=\"720p\",\n start_seconds=0.0,\n style={\"mode\": \"replace\", \"selection_mode\": \"auto\"},\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\",\n)" }, { "lang": "javascript", @@ -3342,7 +3642,7 @@ "default": "all-faces", "type": "string", "enum": ["all-faces", "individual-faces"], - "description": "Choose how to swap faces:\n**all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)\n+- **individual-faces** — specify exact mappings using `face_mappings`", + "description": "Choose how to swap faces:\n- **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)\n- **individual-faces** — specify exact mappings using `face_mappings`", "example": "all-faces" }, "image_file_path": { @@ -3614,24 +3914,24 @@ "type": "string", "enum": [ "default", - "ltx-2", + "kling-3.0", + "gemini-omni-1.1", + "seedance-2.0", "ltx-2.5", "minimax-h3", "wan-3.0", "wan-2.2", "seedance-1.5", - "seedance-2.0", "seedance-2.0-mini", "seedance-2.5", - "kling-2.5", "kling-2.6", - "kling-3.0", - "gemini-omni-1.1", - "veo3.1", "veo3.1-lite", + "veo3.1", "sora-2", - "kling-1.6", "ltx-2.3", + "ltx-2", + "kling-2.5", + "kling-1.6", "seedance", "kling-2.5-audio", "veo3.1-audio" @@ -4175,24 +4475,24 @@ "type": "string", "enum": [ "default", - "ltx-2", + "kling-3.0", + "gemini-omni-1.1", + "seedance-2.0", "ltx-2.5", "minimax-h3", "wan-3.0", "wan-2.2", "seedance-1.5", - "seedance-2.0", "seedance-2.0-mini", "seedance-2.5", - "kling-2.5", "kling-2.6", - "kling-3.0", - "gemini-omni-1.1", - "veo3.1", "veo3.1-lite", + "veo3.1", "sora-2", - "kling-1.6", "ltx-2.3", + "ltx-2", + "kling-2.5", + "kling-1.6", "seedance", "kling-2.5-audio", "veo3.1-audio" @@ -4211,7 +4511,7 @@ "prompt": { "type": "string", "minLength": 1, - "maxLength": 5000, + "maxLength": 10000, "example": "a dog running", "description": "The prompt used for the video." } @@ -4385,11 +4685,11 @@ "x-codeSamples": [ { "lang": "python", - "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.text_to_video.generate(\n end_seconds=5.0,\n orientation=\"landscape\",\n style={\"prompt\": \"a dog running\"},\n name=\"Text To Video video\",\n resolution=\"720p\",\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\"\n)" + "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.text_to_video.generate(\n end_seconds=5.0,\n aspect_ratio=\"16:9\",\n style={\"prompt\": \"a dog running\"},\n name=\"Text To Video video\",\n resolution=\"720p\",\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\"\n)" }, { "lang": "javascript", - "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.textToVideo.generate(\n {\n endSeconds: 5.0,\n name: \"Text To Video video\",\n orientation: \"landscape\",\n resolution: \"720p\",\n style: { prompt: \"a dog running\" },\n },\n {\n waitForCompletion: true,\n downloadOutputs: true,\n downloadDirectory: \".\",\n },\n);" + "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.textToVideo.generate(\n {\n aspectRatio: \"16:9\",\n endSeconds: 5.0,\n name: \"Text To Video video\",\n resolution: \"720p\",\n style: { prompt: \"a dog running\" },\n },\n {\n waitForCompletion: true,\n downloadOutputs: true,\n downloadDirectory: \".\",\n },\n);" }, { "lang": "go", @@ -6229,7 +6529,7 @@ "x-codeSamples": [ { "lang": "python", - "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.ai_image_editor.generate(\n assets={\"image_file_path\": \"/path/to/1234.png\"},\n style={\"prompt\": \"Give me sunglasses\"},\n name=\"Ai Image Editor image\",\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\"\n)" + "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.ai_image_editor.generate(\n assets={\"image_file_paths\": [\"/path/to/1234.png\"]},\n style={\"prompt\": \"Give me sunglasses\"},\n name=\"Ai Image Editor image\",\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\"\n)" }, { "lang": "javascript", @@ -6544,7 +6844,7 @@ "type": "string", "enum": ["auto", "640px", "1k", "2k", "4k"], "description": "Maximum resolution (longest edge) for the output image.\n\n**Options:**\n- `640px` — up to 640px\n- `1k` — up to 1024px\n- `2k` — up to 2048px\n- `4k` — up to 4096px\n- `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports\n\n**Per-model support:**\n- `flux-2-klein` - 640px, 1k, 2k\n- `flux-schnell` - 640px, 1k, 2k\n- `gpt-image-2` - 640px, 1k, 2k, 4k\n- `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k\n- `krea-2` - 640px, 1k\n- `nano-banana` - 640px, 1k\n- `nano-banana-2` - 640px, 1k, 2k, 4k\n- `nano-banana-2-lite` - 640px, 1k\n- `nano-banana-pro` - 1k, 2k, 4k\n- `seedream-v4` - 640px, 1k, 2k, 4k\n- `seedream-v5-pro` - 640px, 1k, 2k\n- `z-image-turbo` - 640px, 1k, 2k\n\nNote: Resolution availability depends on the model and your subscription tier.", - "example": "auto" + "example": "1k" }, "style": { "type": "object", @@ -6756,11 +7056,11 @@ "x-codeSamples": [ { "lang": "python", - "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.ai_image_generator.generate(\n image_count=1,\n style={\n \"prompt\": \"Cool image\",\n \"tool\": \"ai-anime-generator\",\n },\n aspect_ratio=\"1:1\",\n model=\"default\",\n name=\"My Ai Image image\",\n resolution=\"auto\",\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\"\n)" + "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.ai_image_generator.generate(\n image_count=1,\n style={\n \"prompt\": \"Cool image\",\n \"tool\": \"ai-anime-generator\",\n },\n aspect_ratio=\"1:1\",\n model=\"default\",\n name=\"My Ai Image image\",\n resolution=\"1k\",\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\"\n)" }, { "lang": "javascript", - "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.aiImageGenerator.generate(\n {\n aspectRatio: \"1:1\",\n imageCount: 1,\n model: \"default\",\n name: \"My Ai Image image\",\n resolution: \"auto\",\n style: { prompt: \"Cool image\", tool: \"ai-anime-generator\" },\n },\n {\n waitForCompletion: true,\n downloadOutputs: true,\n downloadDirectory: \".\",\n },\n);" + "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.aiImageGenerator.generate(\n {\n aspectRatio: \"1:1\",\n imageCount: 1,\n model: \"default\",\n name: \"My Ai Image image\",\n resolution: \"1k\",\n style: { prompt: \"Cool image\", tool: \"ai-anime-generator\" },\n },\n {\n waitForCompletion: true,\n downloadOutputs: true,\n downloadDirectory: \".\",\n },\n);" }, { "lang": "go", @@ -6995,11 +7295,11 @@ "x-codeSamples": [ { "lang": "python", - "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.ai_image_upscaler.generate(\n assets={\"image_file_path\": \"/path/to/1234.png\"},\n scale_factor=2.0,\n style={\"enhancement\": \"Balanced\"},\n name=\"Image Upscaler image\",\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\"\n)" + "source": "from magic_hour import Client\nfrom os import getenv\n\nclient = Client(token=getenv(\"MAGIC_HOUR_API_KEY\"))\nres = client.v1.ai_image_upscaler.generate(\n assets={\"image_file_path\": \"/path/to/1234.png\"},\n scale_factor=2.0,\n style={\"mode\": \"balanced\"},\n name=\"Image Upscaler image\",\n wait_for_completion=True,\n download_outputs=True,\n download_directory=\".\"\n)" }, { "lang": "javascript", - "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.aiImageUpscaler.generate(\n {\n assets: { imageFilePath: \"/path/to/1234.png\" },\n name: \"Image Upscaler image\",\n scaleFactor: 2.0,\n style: { enhancement: \"Balanced\" },\n },\n {\n waitForCompletion: true,\n downloadOutputs: true,\n downloadDirectory: \".\",\n },\n);" + "source": "import { Client } from \"magic-hour\";\n\nconst client = new Client({ token: process.env[\"MAGIC_HOUR_API_KEY\"]!! });\nconst res = await client.v1.aiImageUpscaler.generate(\n {\n assets: { imageFilePath: \"/path/to/1234.png\" },\n name: \"Image Upscaler image\",\n scaleFactor: 2.0,\n style: { mode: \"balanced\" },\n },\n {\n waitForCompletion: true,\n downloadOutputs: true,\n downloadDirectory: \".\",\n },\n);" }, { "lang": "go", @@ -7831,7 +8131,7 @@ "default": "all-faces", "type": "string", "enum": ["all-faces", "individual-faces"], - "description": "Choose how to swap faces:\n**all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)\n+- **individual-faces** — specify exact mappings using `face_mappings`", + "description": "Choose how to swap faces:\n- **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)\n- **individual-faces** — specify exact mappings using `face_mappings`", "example": "all-faces" }, "source_file_path": { @@ -10856,10 +11156,10 @@ } }, "tags": [ - { "name": "Files", "description": "API related to uploading and reusing assets" }, - { "name": "Image Projects", "description": "API related to image projects" }, { "name": "Video Projects", "description": "API related to video projects" }, + { "name": "Image Projects", "description": "API related to image projects" }, { "name": "Audio Projects", "description": "API related to audio projects" }, + { "name": "Files", "description": "API related to uploading and reusing assets" }, { "name": "Account", "description": "API related to the account that owns the API key" } ], "servers": [{ "url": "https://api.magichour.ai" }]