From 8c464015fb96ebc89c195aa0ddf6e051d9645ab3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 6 Jul 2026 02:42:29 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ....JsonConverters.ImageAssetAspectRatio.g.cs | 53 +++ ...verters.ImageAssetAspectRatioNullable.g.cs | 60 +++ ...k.JsonConverters.ImageAssetResolution.g.cs | 53 +++ ...nverters.ImageAssetResolutionNullable.g.cs | 60 +++ ....JsonConverters.VideoAssetAspectRatio.g.cs | 53 +++ ...verters.VideoAssetAspectRatioNullable.g.cs | 60 +++ ...ack.JsonConverters.VideoAssetDuration.g.cs | 53 +++ ...Converters.VideoAssetDurationNullable.g.cs | 60 +++ ...k.JsonConverters.VideoAssetResolution.g.cs | 53 +++ ...nverters.VideoAssetResolutionNullable.g.cs | 60 +++ .../Shotstack.JsonSerializerContext.g.cs | 25 ++ .../Shotstack.JsonSerializerContextTypes.g.cs | 386 +++++++++--------- .../Shotstack.Models.AudioAsset.g.cs | 42 +- .../Shotstack.Models.ImageAsset.g.cs | 34 +- ...hotstack.Models.ImageAssetAspectRatio.g.cs | 82 ++++ ...Shotstack.Models.ImageAssetResolution.g.cs | 58 +++ .../Shotstack.Models.VideoAsset.g.cs | 64 ++- ...hotstack.Models.VideoAssetAspectRatio.g.cs | 82 ++++ .../Shotstack.Models.VideoAssetDuration.g.cs | 119 ++++++ ...Shotstack.Models.VideoAssetResolution.g.cs | 58 +++ src/libs/Shotstack/openapi.json | 97 ++++- 21 files changed, 1420 insertions(+), 192 deletions(-) create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetAspectRatio.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetAspectRatioNullable.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetResolution.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetResolutionNullable.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetAspectRatio.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetAspectRatioNullable.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetDuration.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetDurationNullable.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetResolution.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetResolutionNullable.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.ImageAssetAspectRatio.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.ImageAssetResolution.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetAspectRatio.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetDuration.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetResolution.g.cs diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetAspectRatio.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetAspectRatio.g.cs new file mode 100644 index 0000000..6bbe9d8 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetAspectRatio.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class ImageAssetAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.ImageAssetAspectRatio 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::Shotstack.ImageAssetAspectRatioExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.ImageAssetAspectRatio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.ImageAssetAspectRatio); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.ImageAssetAspectRatio value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Shotstack.ImageAssetAspectRatioExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetAspectRatioNullable.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetAspectRatioNullable.g.cs new file mode 100644 index 0000000..7dcda63 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetAspectRatioNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class ImageAssetAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.ImageAssetAspectRatio? 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::Shotstack.ImageAssetAspectRatioExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.ImageAssetAspectRatio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.ImageAssetAspectRatio?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.ImageAssetAspectRatio? 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::Shotstack.ImageAssetAspectRatioExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetResolution.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetResolution.g.cs new file mode 100644 index 0000000..b6c53c6 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetResolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class ImageAssetResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.ImageAssetResolution 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::Shotstack.ImageAssetResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.ImageAssetResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.ImageAssetResolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.ImageAssetResolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Shotstack.ImageAssetResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetResolutionNullable.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetResolutionNullable.g.cs new file mode 100644 index 0000000..fbf2b59 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.ImageAssetResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class ImageAssetResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.ImageAssetResolution? 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::Shotstack.ImageAssetResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.ImageAssetResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.ImageAssetResolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.ImageAssetResolution? 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::Shotstack.ImageAssetResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetAspectRatio.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetAspectRatio.g.cs new file mode 100644 index 0000000..6825f47 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetAspectRatio.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class VideoAssetAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.VideoAssetAspectRatio 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::Shotstack.VideoAssetAspectRatioExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.VideoAssetAspectRatio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.VideoAssetAspectRatio); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.VideoAssetAspectRatio value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Shotstack.VideoAssetAspectRatioExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetAspectRatioNullable.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetAspectRatioNullable.g.cs new file mode 100644 index 0000000..9594405 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetAspectRatioNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class VideoAssetAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.VideoAssetAspectRatio? 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::Shotstack.VideoAssetAspectRatioExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.VideoAssetAspectRatio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.VideoAssetAspectRatio?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.VideoAssetAspectRatio? 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::Shotstack.VideoAssetAspectRatioExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetDuration.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetDuration.g.cs new file mode 100644 index 0000000..ea8fba5 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetDuration.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class VideoAssetDurationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.VideoAssetDuration 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::Shotstack.VideoAssetDurationExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.VideoAssetDuration)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.VideoAssetDuration); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.VideoAssetDuration value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Shotstack.VideoAssetDurationExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetDurationNullable.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetDurationNullable.g.cs new file mode 100644 index 0000000..d04851e --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetDurationNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class VideoAssetDurationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.VideoAssetDuration? 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::Shotstack.VideoAssetDurationExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.VideoAssetDuration)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.VideoAssetDuration?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.VideoAssetDuration? 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::Shotstack.VideoAssetDurationExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetResolution.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetResolution.g.cs new file mode 100644 index 0000000..252af35 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetResolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class VideoAssetResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.VideoAssetResolution 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::Shotstack.VideoAssetResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.VideoAssetResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.VideoAssetResolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.VideoAssetResolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Shotstack.VideoAssetResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetResolutionNullable.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetResolutionNullable.g.cs new file mode 100644 index 0000000..6f3edd0 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.VideoAssetResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class VideoAssetResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.VideoAssetResolution? 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::Shotstack.VideoAssetResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.VideoAssetResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.VideoAssetResolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.VideoAssetResolution? 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::Shotstack.VideoAssetResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs index 491bce4..1c770be 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs @@ -49,6 +49,18 @@ namespace Shotstack typeof(global::Shotstack.JsonConverters.VideoAssetTypeNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.VideoAssetResolutionJsonConverter), + + typeof(global::Shotstack.JsonConverters.VideoAssetResolutionNullableJsonConverter), + + typeof(global::Shotstack.JsonConverters.VideoAssetDurationJsonConverter), + + typeof(global::Shotstack.JsonConverters.VideoAssetDurationNullableJsonConverter), + + typeof(global::Shotstack.JsonConverters.VideoAssetAspectRatioJsonConverter), + + typeof(global::Shotstack.JsonConverters.VideoAssetAspectRatioNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.VideoAssetVolumeEffectJsonConverter), typeof(global::Shotstack.JsonConverters.VideoAssetVolumeEffectNullableJsonConverter), @@ -57,6 +69,14 @@ namespace Shotstack typeof(global::Shotstack.JsonConverters.ImageAssetTypeNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.ImageAssetResolutionJsonConverter), + + typeof(global::Shotstack.JsonConverters.ImageAssetResolutionNullableJsonConverter), + + typeof(global::Shotstack.JsonConverters.ImageAssetAspectRatioJsonConverter), + + typeof(global::Shotstack.JsonConverters.ImageAssetAspectRatioNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.TextAssetTypeJsonConverter), typeof(global::Shotstack.JsonConverters.TextAssetTypeNullableJsonConverter), @@ -405,10 +425,15 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.AssetDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.AssetDiscriminatorType), TypeInfoPropertyName = "AssetDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.VideoAssetType), TypeInfoPropertyName = "VideoAssetType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.VideoAssetResolution), TypeInfoPropertyName = "VideoAssetResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.VideoAssetDuration), TypeInfoPropertyName = "VideoAssetDuration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.VideoAssetAspectRatio), TypeInfoPropertyName = "VideoAssetAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.VideoAssetVolumeEffect), TypeInfoPropertyName = "VideoAssetVolumeEffect2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Crop))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ChromaKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ImageAssetType), TypeInfoPropertyName = "ImageAssetType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ImageAssetResolution), TypeInfoPropertyName = "ImageAssetResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ImageAssetAspectRatio), TypeInfoPropertyName = "ImageAssetAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextAssetType), TypeInfoPropertyName = "TextAssetType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextFont))] diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs index 6c7e34d..9fe7ec9 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs @@ -232,735 +232,755 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Shotstack.VideoAssetVolumeEffect? Type51 { get; set; } + public global::Shotstack.VideoAssetResolution? Type51 { get; set; } /// /// /// - public global::Shotstack.Crop? Type52 { get; set; } + public global::Shotstack.VideoAssetDuration? Type52 { get; set; } /// /// /// - public global::Shotstack.ChromaKey? Type53 { get; set; } + public global::Shotstack.VideoAssetAspectRatio? Type53 { get; set; } /// /// /// - public global::Shotstack.ImageAssetType? Type54 { get; set; } + public global::Shotstack.VideoAssetVolumeEffect? Type54 { get; set; } /// /// /// - public global::Shotstack.TextAssetType? Type55 { get; set; } + public global::Shotstack.Crop? Type55 { get; set; } /// /// /// - public int? Type56 { get; set; } + public global::Shotstack.ChromaKey? Type56 { get; set; } /// /// /// - public global::Shotstack.TextFont? Type57 { get; set; } + public global::Shotstack.ImageAssetType? Type57 { get; set; } /// /// /// - public global::Shotstack.TextBackground? Type58 { get; set; } + public global::Shotstack.ImageAssetResolution? Type58 { get; set; } /// /// /// - public global::Shotstack.TextAlignment? Type59 { get; set; } + public global::Shotstack.ImageAssetAspectRatio? Type59 { get; set; } /// /// /// - public global::Shotstack.TextStroke? Type60 { get; set; } + public global::Shotstack.TextAssetType? Type60 { get; set; } /// /// /// - public global::Shotstack.TextAnimation? Type61 { get; set; } + public int? Type61 { get; set; } /// /// /// - public global::Shotstack.RichTextAssetType? Type62 { get; set; } + public global::Shotstack.TextFont? Type62 { get; set; } /// /// /// - public global::Shotstack.RichTextFont? Type63 { get; set; } + public global::Shotstack.TextBackground? Type63 { get; set; } /// /// /// - public global::Shotstack.RichTextStyle? Type64 { get; set; } + public global::Shotstack.TextAlignment? Type64 { get; set; } /// /// /// - public global::Shotstack.RichTextStroke? Type65 { get; set; } + public global::Shotstack.TextStroke? Type65 { get; set; } /// /// /// - public global::Shotstack.RichTextShadow? Type66 { get; set; } + public global::Shotstack.TextAnimation? Type66 { get; set; } /// /// /// - public global::Shotstack.RichTextBackground? Type67 { get; set; } + public global::Shotstack.RichTextAssetType? Type67 { get; set; } /// /// /// - public global::Shotstack.RichTextBorder? Type68 { get; set; } + public global::Shotstack.RichTextFont? Type68 { get; set; } /// /// /// - public global::Shotstack.OneOf? Type69 { get; set; } + public global::Shotstack.RichTextStyle? Type69 { get; set; } /// /// /// - public global::Shotstack.RichTextPadding? Type70 { get; set; } + public global::Shotstack.RichTextStroke? Type70 { get; set; } /// /// /// - public global::Shotstack.RichTextAlignment? Type71 { get; set; } + public global::Shotstack.RichTextShadow? Type71 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimation? Type72 { get; set; } + public global::Shotstack.RichTextBackground? Type72 { get; set; } /// /// /// - public global::Shotstack.AudioAssetType? Type73 { get; set; } + public global::Shotstack.RichTextBorder? Type73 { get; set; } /// /// /// - public global::Shotstack.AudioAssetEffect? Type74 { get; set; } + public global::Shotstack.OneOf? Type74 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetType? Type75 { get; set; } + public global::Shotstack.RichTextPadding? Type75 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetShape? Type76 { get; set; } + public global::Shotstack.RichTextAlignment? Type76 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetFill? Type77 { get; set; } + public global::Shotstack.RichTextAnimation? Type77 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetStroke? Type78 { get; set; } + public global::Shotstack.AudioAssetType? Type78 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetRectangle? Type79 { get; set; } + public global::Shotstack.AudioAssetEffect? Type79 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetCircle? Type80 { get; set; } + public global::Shotstack.ShapeAssetType? Type80 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetLine? Type81 { get; set; } + public global::Shotstack.ShapeAssetShape? Type81 { get; set; } /// /// /// - public global::Shotstack.LumaAssetType? Type82 { get; set; } + public global::Shotstack.ShapeAssetFill? Type82 { get; set; } /// /// /// - public global::Shotstack.CaptionAssetType? Type83 { get; set; } + public global::Shotstack.ShapeAssetStroke? Type83 { get; set; } /// /// /// - public global::Shotstack.CaptionFont? Type84 { get; set; } + public global::Shotstack.ShapeAssetRectangle? Type84 { get; set; } /// /// /// - public global::Shotstack.CaptionBackground? Type85 { get; set; } + public global::Shotstack.ShapeAssetCircle? Type85 { get; set; } /// /// /// - public global::Shotstack.CaptionMargin? Type86 { get; set; } + public global::Shotstack.ShapeAssetLine? Type86 { get; set; } /// /// /// - public global::Shotstack.RichCaptionAssetType? Type87 { get; set; } + public global::Shotstack.LumaAssetType? Type87 { get; set; } /// /// /// - public global::Shotstack.RichCaptionFont? Type88 { get; set; } + public global::Shotstack.CaptionAssetType? Type88 { get; set; } /// /// /// - public global::Shotstack.RichCaptionStyle? Type89 { get; set; } + public global::Shotstack.CaptionFont? Type89 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActive? Type90 { get; set; } + public global::Shotstack.CaptionBackground? Type90 { get; set; } /// /// /// - public global::Shotstack.RichCaptionAnimation? Type91 { get; set; } + public global::Shotstack.CaptionMargin? Type91 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActiveFont? Type92 { get; set; } + public global::Shotstack.RichCaptionAssetType? Type92 { get; set; } /// /// /// - public object? Type93 { get; set; } + public global::Shotstack.RichCaptionFont? Type93 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActiveFontTextDecoration? Type94 { get; set; } + public global::Shotstack.RichCaptionStyle? Type94 { get; set; } /// /// /// - public global::Shotstack.OneOf? Type95 { get; set; } + public global::Shotstack.RichCaptionActive? Type95 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActiveStroke? Type96 { get; set; } + public global::Shotstack.RichCaptionAnimation? Type96 { get; set; } /// /// /// - public global::Shotstack.OneOf? Type97 { get; set; } + public global::Shotstack.RichCaptionActiveFont? Type97 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActiveShadow? Type98 { get; set; } + public object? Type98 { get; set; } /// /// /// - public global::Shotstack.RichCaptionAnimationStyle? Type99 { get; set; } + public global::Shotstack.RichCaptionActiveFontTextDecoration? Type99 { get; set; } /// /// /// - public global::Shotstack.RichCaptionAnimationDirection? Type100 { get; set; } + public global::Shotstack.OneOf? Type100 { get; set; } /// /// /// - public global::Shotstack.TextToImageAssetType? Type101 { get; set; } + public global::Shotstack.RichCaptionActiveStroke? Type101 { get; set; } /// /// /// - public global::Shotstack.ImageToVideoAssetType? Type102 { get; set; } + public global::Shotstack.OneOf? Type102 { get; set; } /// /// /// - public global::Shotstack.ImageToVideoAssetAspectRatio? Type103 { get; set; } + public global::Shotstack.RichCaptionActiveShadow? Type103 { get; set; } /// /// /// - public global::Shotstack.TextToSpeechAssetType? Type104 { get; set; } + public global::Shotstack.RichCaptionAnimationStyle? Type104 { get; set; } /// /// /// - public global::Shotstack.TextToSpeechAssetEffect? Type105 { get; set; } + public global::Shotstack.RichCaptionAnimationDirection? Type105 { get; set; } /// /// /// - public global::Shotstack.HtmlAssetType? Type106 { get; set; } + public global::Shotstack.TextToImageAssetType? Type106 { get; set; } /// /// /// - public global::Shotstack.HtmlAssetPosition? Type107 { get; set; } + public global::Shotstack.ImageToVideoAssetType? Type107 { get; set; } /// /// /// - public global::Shotstack.Html5AssetType? Type108 { get; set; } + public global::Shotstack.ImageToVideoAssetAspectRatio? Type108 { get; set; } /// /// /// - public global::Shotstack.TitleAssetType? Type109 { get; set; } + public global::Shotstack.TextToSpeechAssetType? Type109 { get; set; } /// /// /// - public global::Shotstack.TitleAssetStyle? Type110 { get; set; } + public global::Shotstack.TextToSpeechAssetEffect? Type110 { get; set; } /// /// /// - public global::Shotstack.TitleAssetSize? Type111 { get; set; } + public global::Shotstack.HtmlAssetType? Type111 { get; set; } /// /// /// - public global::Shotstack.TitleAssetPosition? Type112 { get; set; } + public global::Shotstack.HtmlAssetPosition? Type112 { get; set; } /// /// /// - public global::Shotstack.SvgAssetType? Type113 { get; set; } + public global::Shotstack.Html5AssetType? Type113 { get; set; } /// /// /// - public global::Shotstack.TransitionIn? Type114 { get; set; } + public global::Shotstack.TitleAssetType? Type114 { get; set; } /// /// /// - public global::Shotstack.TransitionOut? Type115 { get; set; } + public global::Shotstack.TitleAssetStyle? Type115 { get; set; } /// /// /// - public global::Shotstack.RotateTransformation? Type116 { get; set; } + public global::Shotstack.TitleAssetSize? Type116 { get; set; } /// /// /// - public global::Shotstack.SkewTransformation? Type117 { get; set; } + public global::Shotstack.TitleAssetPosition? Type117 { get; set; } /// /// /// - public global::Shotstack.FlipTransformation? Type118 { get; set; } + public global::Shotstack.SvgAssetType? Type118 { get; set; } /// /// /// - public global::Shotstack.TextAlignmentHorizontal? Type119 { get; set; } + public global::Shotstack.TransitionIn? Type119 { get; set; } /// /// /// - public global::Shotstack.TextAlignmentVertical? Type120 { get; set; } + public global::Shotstack.TransitionOut? Type120 { get; set; } /// /// /// - public global::Shotstack.RichTextStyleTextTransform? Type121 { get; set; } + public global::Shotstack.RotateTransformation? Type121 { get; set; } /// /// /// - public global::Shotstack.RichTextStyleTextDecoration? Type122 { get; set; } + public global::Shotstack.SkewTransformation? Type122 { get; set; } /// /// /// - public global::Shotstack.RichTextGradient? Type123 { get; set; } + public global::Shotstack.FlipTransformation? Type123 { get; set; } /// /// /// - public global::Shotstack.RichTextGradientType? Type124 { get; set; } + public global::Shotstack.TextAlignmentHorizontal? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::Shotstack.TextAlignmentVertical? Type125 { get; set; } /// /// /// - public global::Shotstack.RichTextGradientStop? Type126 { get; set; } + public global::Shotstack.RichTextStyleTextTransform? Type126 { get; set; } /// /// /// - public global::Shotstack.RichTextAlignmentHorizontal? Type127 { get; set; } + public global::Shotstack.RichTextStyleTextDecoration? Type127 { get; set; } /// /// /// - public global::Shotstack.RichTextAlignmentVertical? Type128 { get; set; } + public global::Shotstack.RichTextGradient? Type128 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationPreset? Type129 { get; set; } + public global::Shotstack.RichTextGradientType? Type129 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationStyle? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationDirection? Type131 { get; set; } + public global::Shotstack.RichTextGradientStop? Type131 { get; set; } /// /// /// - public global::Shotstack.TweenInterpolation? Type132 { get; set; } + public global::Shotstack.RichTextAlignmentHorizontal? Type132 { get; set; } /// /// /// - public global::Shotstack.TweenEasing? Type133 { get; set; } + public global::Shotstack.RichTextAlignmentVertical? Type133 { get; set; } /// /// /// - public global::Shotstack.OutputFormat? Type134 { get; set; } + public global::Shotstack.RichTextAnimationPreset? Type134 { get; set; } /// /// /// - public global::Shotstack.OutputResolution? Type135 { get; set; } + public global::Shotstack.RichTextAnimationStyle? Type135 { get; set; } /// /// /// - public global::Shotstack.OutputAspectRatio? Type136 { get; set; } + public global::Shotstack.RichTextAnimationDirection? Type136 { get; set; } /// /// /// - public global::Shotstack.Size? Type137 { get; set; } + public global::Shotstack.TweenInterpolation? Type137 { get; set; } /// /// /// - public global::Shotstack.OutputScaleTo? Type138 { get; set; } + public global::Shotstack.TweenEasing? Type138 { get; set; } /// /// /// - public global::Shotstack.OutputQuality? Type139 { get; set; } + public global::Shotstack.OutputFormat? Type139 { get; set; } /// /// /// - public global::Shotstack.Range? Type140 { get; set; } + public global::Shotstack.OutputResolution? Type140 { get; set; } /// /// /// - public global::Shotstack.Poster? Type141 { get; set; } + public global::Shotstack.OutputAspectRatio? Type141 { get; set; } /// /// /// - public global::Shotstack.Thumbnail? Type142 { get; set; } + public global::Shotstack.Size? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type143 { get; set; } + public global::Shotstack.OutputScaleTo? Type143 { get; set; } /// /// /// - public global::Shotstack.Destinations? Type144 { get; set; } + public global::Shotstack.OutputQuality? Type144 { get; set; } /// /// /// - public global::Shotstack.ShotstackDestination? Type145 { get; set; } + public global::Shotstack.Range? Type145 { get; set; } /// /// /// - public global::Shotstack.MuxDestination? Type146 { get; set; } + public global::Shotstack.Poster? Type146 { get; set; } /// /// /// - public global::Shotstack.S3Destination? Type147 { get; set; } + public global::Shotstack.Thumbnail? Type147 { get; set; } /// /// /// - public global::Shotstack.GoogleCloudStorageDestination? Type148 { get; set; } + public global::System.Collections.Generic.IList? Type148 { get; set; } /// /// /// - public global::Shotstack.GoogleDriveDestination? Type149 { get; set; } + public global::Shotstack.Destinations? Type149 { get; set; } /// /// /// - public global::Shotstack.VimeoDestination? Type150 { get; set; } + public global::Shotstack.ShotstackDestination? Type150 { get; set; } /// /// /// - public global::Shotstack.TiktokDestination? Type151 { get; set; } + public global::Shotstack.MuxDestination? Type151 { get; set; } /// /// /// - public global::Shotstack.AkamaiNetStorageDestination? Type152 { get; set; } + public global::Shotstack.S3Destination? Type152 { get; set; } /// /// /// - public global::Shotstack.AzureBlobStorageDestination? Type153 { get; set; } + public global::Shotstack.GoogleCloudStorageDestination? Type153 { get; set; } /// /// /// - public global::Shotstack.DestinationsDiscriminator? Type154 { get; set; } + public global::Shotstack.GoogleDriveDestination? Type154 { get; set; } /// /// /// - public global::Shotstack.MuxDestinationOptions? Type155 { get; set; } + public global::Shotstack.VimeoDestination? Type155 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type156 { get; set; } + public global::Shotstack.TiktokDestination? Type156 { get; set; } /// /// /// - public global::Shotstack.MuxDestinationOptionsPlaybackPolicyItem? Type157 { get; set; } + public global::Shotstack.AkamaiNetStorageDestination? Type157 { get; set; } /// /// /// - public global::Shotstack.S3DestinationOptions? Type158 { get; set; } + public global::Shotstack.AzureBlobStorageDestination? Type158 { get; set; } /// /// /// - public global::Shotstack.GoogleCloudStorageDestinationOptions? Type159 { get; set; } + public global::Shotstack.DestinationsDiscriminator? Type159 { get; set; } /// /// /// - public global::Shotstack.GoogleDriveDestinationOptions? Type160 { get; set; } + public global::Shotstack.MuxDestinationOptions? Type160 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationOptions? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptions? Type162 { get; set; } + public global::Shotstack.MuxDestinationOptionsPlaybackPolicyItem? Type162 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsView? Type163 { get; set; } + public global::Shotstack.S3DestinationOptions? Type163 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsEmbed? Type164 { get; set; } + public global::Shotstack.GoogleCloudStorageDestinationOptions? Type164 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsComments? Type165 { get; set; } + public global::Shotstack.GoogleDriveDestinationOptions? Type165 { get; set; } /// /// /// - public global::Shotstack.Template? Type166 { get; set; } + public global::Shotstack.VimeoDestinationOptions? Type166 { get; set; } /// /// /// - public global::Shotstack.TemplateRender? Type167 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptions? Type167 { get; set; } /// /// /// - public global::Shotstack.Source? Type168 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsView? Type168 { get; set; } /// /// /// - public global::Shotstack.Outputs? Type169 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsEmbed? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsComments? Type170 { get; set; } /// /// /// - public global::Shotstack.Rendition? Type171 { get; set; } + public global::Shotstack.Template? Type171 { get; set; } /// /// /// - public global::Shotstack.Transcription? Type172 { get; set; } + public global::Shotstack.TemplateRender? Type172 { get; set; } /// /// /// - public global::Shotstack.RenditionFormat? Type173 { get; set; } + public global::Shotstack.Source? Type173 { get; set; } /// /// /// - public global::Shotstack.RenditionFit? Type174 { get; set; } + public global::Shotstack.Outputs? Type174 { get; set; } /// /// /// - public global::Shotstack.RenditionResolution? Type175 { get; set; } + public global::System.Collections.Generic.IList? Type175 { get; set; } /// /// /// - public global::Shotstack.Speed? Type176 { get; set; } + public global::Shotstack.Rendition? Type176 { get; set; } /// /// /// - public global::Shotstack.Enhancements? Type177 { get; set; } + public global::Shotstack.Transcription? Type177 { get; set; } /// /// /// - public global::Shotstack.TranscriptionFormat? Type178 { get; set; } + public global::Shotstack.RenditionFormat? Type178 { get; set; } /// /// /// - public global::Shotstack.AudioEnhancement? Type179 { get; set; } + public global::Shotstack.RenditionFit? Type179 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancement? Type180 { get; set; } + public global::Shotstack.RenditionResolution? Type180 { get; set; } /// /// /// - public global::Shotstack.AudioEnhancementDiscriminator? Type181 { get; set; } + public global::Shotstack.Speed? Type181 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancementOptions? Type182 { get; set; } + public global::Shotstack.Enhancements? Type182 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancementOptionsPreset? Type183 { get; set; } + public global::Shotstack.TranscriptionFormat? Type183 { get; set; } /// /// /// - public global::Shotstack.Transfer? Type184 { get; set; } + public global::Shotstack.AudioEnhancement? Type184 { get; set; } /// /// /// - public global::Shotstack.QueuedResponse? Type185 { get; set; } + public global::Shotstack.DolbyEnhancement? Type185 { get; set; } /// /// /// - public global::Shotstack.QueuedResponseData? Type186 { get; set; } + public global::Shotstack.AudioEnhancementDiscriminator? Type186 { get; set; } /// /// /// - public global::Shotstack.RenderResponse? Type187 { get; set; } + public global::Shotstack.DolbyEnhancementOptions? Type187 { get; set; } /// /// /// - public global::Shotstack.RenderResponseData? Type188 { get; set; } + public global::Shotstack.DolbyEnhancementOptionsPreset? Type188 { get; set; } /// /// /// - public global::Shotstack.RenderResponseDataStatus? Type189 { get; set; } + public global::Shotstack.Transfer? Type189 { get; set; } /// /// /// - public global::Shotstack.TemplateResponse? Type190 { get; set; } + public global::Shotstack.QueuedResponse? Type190 { get; set; } /// /// /// - public global::Shotstack.TemplateResponseData? Type191 { get; set; } + public global::Shotstack.QueuedResponseData? Type191 { get; set; } /// /// /// - public global::Shotstack.TemplateDataResponse? Type192 { get; set; } + public global::Shotstack.RenderResponse? Type192 { get; set; } /// /// /// - public global::Shotstack.TemplateDataResponseData? Type193 { get; set; } + public global::Shotstack.RenderResponseData? Type193 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponse? Type194 { get; set; } + public global::Shotstack.RenderResponseDataStatus? Type194 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponseData? Type195 { get; set; } + public global::Shotstack.TemplateResponse? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::Shotstack.TemplateResponseData? Type196 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponseItem? Type197 { get; set; } + public global::Shotstack.TemplateDataResponse? Type197 { get; set; } /// /// /// - public global::Shotstack.ProbeResponse? Type198 { get; set; } + public global::Shotstack.TemplateDataResponseData? Type198 { get; set; } /// /// /// - public global::Shotstack.AssetResponse? Type199 { get; set; } + public global::Shotstack.TemplateListResponse? Type199 { get; set; } /// /// /// - public global::Shotstack.AssetResponseData? Type200 { get; set; } + public global::Shotstack.TemplateListResponseData? Type200 { get; set; } /// /// /// - public global::Shotstack.AssetRenderResponse? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::Shotstack.TemplateListResponseItem? Type202 { get; set; } /// /// /// - public global::Shotstack.AssetResponseAttributes? Type203 { get; set; } + public global::Shotstack.ProbeResponse? Type203 { get; set; } /// /// /// - public global::Shotstack.AssetResponseAttributesStatus? Type204 { get; set; } + public global::Shotstack.AssetResponse? Type204 { get; set; } /// /// /// - public global::Shotstack.TransferResponse? Type205 { get; set; } + public global::Shotstack.AssetResponseData? Type205 { get; set; } /// /// /// - public global::Shotstack.TransferResponseData? Type206 { get; set; } + public global::Shotstack.AssetRenderResponse? Type206 { get; set; } /// /// /// - public global::Shotstack.TransferResponseAttributes? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::Shotstack.TransferResponseAttributesStatus? Type208 { get; set; } + public global::Shotstack.AssetResponseAttributes? Type208 { get; set; } /// /// /// - public global::Shotstack.QueuedSourceResponse? Type209 { get; set; } + public global::Shotstack.AssetResponseAttributesStatus? Type209 { get; set; } /// /// /// - public global::Shotstack.QueuedSourceResponseData? Type210 { get; set; } + public global::Shotstack.TransferResponse? Type210 { get; set; } /// /// /// - public global::Shotstack.SourceListResponse? Type211 { get; set; } + public global::Shotstack.TransferResponseData? Type211 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type212 { get; set; } + public global::Shotstack.TransferResponseAttributes? Type212 { get; set; } /// /// /// - public global::Shotstack.SourceResponseData? Type213 { get; set; } + public global::Shotstack.TransferResponseAttributesStatus? Type213 { get; set; } /// /// /// - public global::Shotstack.SourceResponse? Type214 { get; set; } + public global::Shotstack.QueuedSourceResponse? Type214 { get; set; } /// /// /// - public global::Shotstack.SourceResponseAttributes? Type215 { get; set; } + public global::Shotstack.QueuedSourceResponseData? Type215 { get; set; } /// /// /// - public global::Shotstack.SourceResponseAttributesStatus? Type216 { get; set; } + public global::Shotstack.SourceListResponse? Type216 { get; set; } /// /// /// - public global::Shotstack.OutputsResponse? Type217 { get; set; } + public global::System.Collections.Generic.IList? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::Shotstack.SourceResponseData? Type218 { get; set; } /// /// /// - public global::Shotstack.RenditionResponseAttributes? Type219 { get; set; } + public global::Shotstack.SourceResponse? Type219 { get; set; } /// /// /// - public global::Shotstack.RenditionResponseAttributesStatus? Type220 { get; set; } + public global::Shotstack.SourceResponseAttributes? Type220 { get; set; } /// /// /// - public global::Shotstack.UploadResponse? Type221 { get; set; } + public global::Shotstack.SourceResponseAttributesStatus? Type221 { get; set; } /// /// /// - public global::Shotstack.UploadResponseData? Type222 { get; set; } + public global::Shotstack.OutputsResponse? Type222 { get; set; } /// /// /// - public global::Shotstack.UploadResponseAttributes? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::Shotstack.IngestErrorResponse? Type224 { get; set; } + public global::Shotstack.RenditionResponseAttributes? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::Shotstack.RenditionResponseAttributesStatus? Type225 { get; set; } /// /// /// - public global::Shotstack.IngestErrorResponseData? Type226 { get; set; } + public global::Shotstack.UploadResponse? Type226 { get; set; } /// /// /// - public global::Shotstack.TextAnimationPreset? Type227 { get; set; } + public global::Shotstack.UploadResponseData? Type227 { get; set; } /// /// /// - public global::Shotstack.RichCaptionStyleTextTransform? Type228 { get; set; } + public global::Shotstack.UploadResponseAttributes? Type228 { get; set; } /// /// /// - public global::Shotstack.RichCaptionStyleTextDecoration? Type229 { get; set; } + public global::Shotstack.IngestErrorResponse? Type229 { get; set; } /// /// /// - public global::Shotstack.TiktokDestinationOptions? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::Shotstack.TiktokDestinationOptionsPrivacyLevel? Type231 { get; set; } + public global::Shotstack.IngestErrorResponseData? Type231 { get; set; } /// /// /// - public global::Shotstack.AkamaiNetStorageDestinationOptions? Type232 { get; set; } + public global::Shotstack.TextAnimationPreset? Type232 { get; set; } /// /// /// - public global::Shotstack.AzureBlobStorageDestinationOptions? Type233 { get; set; } + public global::Shotstack.RichCaptionStyleTextTransform? Type233 { get; set; } + /// + /// + /// + public global::Shotstack.RichCaptionStyleTextDecoration? Type234 { get; set; } + /// + /// + /// + public global::Shotstack.TiktokDestinationOptions? Type235 { get; set; } + /// + /// + /// + public global::Shotstack.TiktokDestinationOptionsPrivacyLevel? Type236 { get; set; } + /// + /// + /// + public global::Shotstack.AkamaiNetStorageDestinationOptions? Type237 { get; set; } + /// + /// + /// + public global::Shotstack.AzureBlobStorageDestinationOptions? Type238 { get; set; } /// /// diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.AudioAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.AudioAsset.g.cs index 4f20091..6df4ba1 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.AudioAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.AudioAsset.g.cs @@ -65,13 +65,34 @@ public sealed partial class AudioAsset public bool? Newscaster { get; set; } /// - /// The generation model to use when `prompt` is set (e.g. `polly-neural`). Defaults to the platform's preferred generator if omitted.
+ /// The generation model to use when `prompt` is set (e.g. `polly-neural`, `fal/elevenlabs-tts`, `fal/minimax-speech`, `fal/elevenlabs-music`). Defaults to the platform's preferred generator if omitted.
/// Example: polly-neural ///
/// polly-neural [global::System.Text.Json.Serialization.JsonPropertyName("model")] public string? Model { get; set; } + /// + /// Target duration in milliseconds for generated music (3,000–600,000). Only meaningful when `prompt` is set and the model is a music generator (e.g. `fal/elevenlabs-music`).
+ /// Example: 30000 + ///
+ /// 30000 + [global::System.Text.Json.Serialization.JsonPropertyName("musicLengthMs")] + public double? MusicLengthMs { get; set; } + + /// + /// Set to `true` to force instrumental music (no vocals). Only meaningful for music generation models.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("forceInstrumental")] + public bool? ForceInstrumental { get; set; } + + /// + /// An optional structured composition plan for music generation. Only meaningful for music generation models (e.g. `fal/elevenlabs-music`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("compositionPlan")] + public string? CompositionPlan { get; set; } + /// /// The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the in trim point. The audio will play until the file ends or the Clip length is reached. /// @@ -134,9 +155,20 @@ public sealed partial class AudioAsset /// Default Value: false /// /// - /// The generation model to use when `prompt` is set (e.g. `polly-neural`). Defaults to the platform's preferred generator if omitted.
+ /// The generation model to use when `prompt` is set (e.g. `polly-neural`, `fal/elevenlabs-tts`, `fal/minimax-speech`, `fal/elevenlabs-music`). Defaults to the platform's preferred generator if omitted.
/// Example: polly-neural /// + /// + /// Target duration in milliseconds for generated music (3,000–600,000). Only meaningful when `prompt` is set and the model is a music generator (e.g. `fal/elevenlabs-music`).
+ /// Example: 30000 + /// + /// + /// Set to `true` to force instrumental music (no vocals). Only meaningful for music generation models.
+ /// Default Value: false + /// + /// + /// An optional structured composition plan for music generation. Only meaningful for music generation models (e.g. `fal/elevenlabs-music`). + /// /// /// The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the in trim point. The audio will play until the file ends or the Clip length is reached. /// @@ -168,6 +200,9 @@ public AudioAsset( string? language, bool? newscaster, string? model, + double? musicLengthMs, + bool? forceInstrumental, + string? compositionPlan, double? trim, global::Shotstack.OneOf>? volume, float? speed, @@ -181,6 +216,9 @@ public AudioAsset( this.Language = language; this.Newscaster = newscaster; this.Model = model; + this.MusicLengthMs = musicLengthMs; + this.ForceInstrumental = forceInstrumental; + this.CompositionPlan = compositionPlan; this.Trim = trim; this.Volume = volume; this.Speed = speed; diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.ImageAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.ImageAsset.g.cs index cc80a28..3909e4c 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.ImageAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.ImageAsset.g.cs @@ -39,13 +39,31 @@ public sealed partial class ImageAsset public string? Prompt { get; set; } /// - /// The generation model to use when `prompt` is set (e.g. `flux-schnell`). Defaults to the platform's preferred generator if omitted.
+ /// The generation model to use when `prompt` is set (e.g. `flux-schnell`, `fal/flux-schnell`, `fal/nano-banana-2`). Defaults to the platform's preferred generator if omitted.
/// Example: flux-schnell ///
/// flux-schnell [global::System.Text.Json.Serialization.JsonPropertyName("model")] public string? Model { get; set; } + /// + /// Output resolution tier for supported image generation models. `1K` (default), `2K`, or `4K`. Only meaningful when `prompt` is set.
+ /// Example: 1K + ///
+ /// 1K + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.ImageAssetResolutionJsonConverter))] + public global::Shotstack.ImageAssetResolution? Resolution { get; set; } + + /// + /// Aspect ratio for the generated image. Only meaningful when `prompt` is set and the model supports it.
+ /// Example: 1:1 + ///
+ /// 1:1 + [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.ImageAssetAspectRatioJsonConverter))] + public global::Shotstack.ImageAssetAspectRatio? AspectRatio { get; set; } + /// /// Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset. /// @@ -70,9 +88,17 @@ public sealed partial class ImageAsset /// Example: A serene landscape with a crystal-clear mountain lake at sunrise. /// /// - /// The generation model to use when `prompt` is set (e.g. `flux-schnell`). Defaults to the platform's preferred generator if omitted.
+ /// The generation model to use when `prompt` is set (e.g. `flux-schnell`, `fal/flux-schnell`, `fal/nano-banana-2`). Defaults to the platform's preferred generator if omitted.
/// Example: flux-schnell /// + /// + /// Output resolution tier for supported image generation models. `1K` (default), `2K`, or `4K`. Only meaningful when `prompt` is set.
+ /// Example: 1K + /// + /// + /// Aspect ratio for the generated image. Only meaningful when `prompt` is set and the model supports it.
+ /// Example: 1:1 + /// /// /// Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset. /// @@ -87,6 +113,8 @@ public ImageAsset( string? src, string? prompt, string? model, + global::Shotstack.ImageAssetResolution? resolution, + global::Shotstack.ImageAssetAspectRatio? aspectRatio, global::Shotstack.Crop? crop, global::Shotstack.ImageAssetType type = global::Shotstack.ImageAssetType.Image) { @@ -94,6 +122,8 @@ public ImageAsset( this.Src = src; this.Prompt = prompt; this.Model = model; + this.Resolution = resolution; + this.AspectRatio = aspectRatio; this.Crop = crop; } diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.ImageAssetAspectRatio.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.ImageAssetAspectRatio.g.cs new file mode 100644 index 0000000..462f106 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.ImageAssetAspectRatio.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// Aspect ratio for the generated image. Only meaningful when `prompt` is set and the model supports it.
+ /// Example: 1:1 + ///
+ public enum ImageAssetAspectRatio + { + /// + /// + /// + x16_9, + /// + /// + /// + x1_1, + /// + /// + /// + x21_9, + /// + /// + /// + x3_4, + /// + /// + /// + x4_3, + /// + /// + /// + x9_16, + /// + /// + /// + x9_21, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageAssetAspectRatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageAssetAspectRatio value) + { + return value switch + { + ImageAssetAspectRatio.x16_9 => "16:9", + ImageAssetAspectRatio.x1_1 => "1:1", + ImageAssetAspectRatio.x21_9 => "21:9", + ImageAssetAspectRatio.x3_4 => "3:4", + ImageAssetAspectRatio.x4_3 => "4:3", + ImageAssetAspectRatio.x9_16 => "9:16", + ImageAssetAspectRatio.x9_21 => "9:21", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageAssetAspectRatio? ToEnum(string value) + { + return value switch + { + "16:9" => ImageAssetAspectRatio.x16_9, + "1:1" => ImageAssetAspectRatio.x1_1, + "21:9" => ImageAssetAspectRatio.x21_9, + "3:4" => ImageAssetAspectRatio.x3_4, + "4:3" => ImageAssetAspectRatio.x4_3, + "9:16" => ImageAssetAspectRatio.x9_16, + "9:21" => ImageAssetAspectRatio.x9_21, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.ImageAssetResolution.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.ImageAssetResolution.g.cs new file mode 100644 index 0000000..c14209f --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.ImageAssetResolution.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// Output resolution tier for supported image generation models. `1K` (default), `2K`, or `4K`. Only meaningful when `prompt` is set.
+ /// Example: 1K + ///
+ public enum ImageAssetResolution + { + /// + /// + /// + x1k, + /// + /// + /// + x2k, + /// + /// + /// + x4k, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageAssetResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageAssetResolution value) + { + return value switch + { + ImageAssetResolution.x1k => "1K", + ImageAssetResolution.x2k => "2K", + ImageAssetResolution.x4k => "4K", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageAssetResolution? ToEnum(string value) + { + return value switch + { + "1K" => ImageAssetResolution.x1k, + "2K" => ImageAssetResolution.x2k, + "4K" => ImageAssetResolution.x4k, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs index d33e1ab..2e8edb6 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs @@ -49,13 +49,48 @@ public sealed partial class VideoAsset public string? InputSrc { get; set; } /// - /// The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`). Defaults to the platform's preferred generator if omitted.
+ /// The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`, `fal/seedance-2.0`). Defaults to the platform's preferred generator if omitted.
/// Example: luma-ray-3 ///
/// luma-ray-3 [global::System.Text.Json.Serialization.JsonPropertyName("model")] public string? Model { get; set; } + /// + /// Output resolution for video generation. Only meaningful when `prompt` is set and the model supports it (e.g. `fal/seedance-2.0`).
+ /// Example: 720p + ///
+ /// 720p + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.VideoAssetResolutionJsonConverter))] + public global::Shotstack.VideoAssetResolution? Resolution { get; set; } + + /// + /// Target video duration in seconds for generation models that accept it. `"auto"` lets the model decide. Only meaningful when `prompt` is set.
+ /// Default Value: auto
+ /// Example: 5 + ///
+ /// 5 + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.VideoAssetDurationJsonConverter))] + public global::Shotstack.VideoAssetDuration? Duration { get; set; } + + /// + /// Aspect ratio for the generated video. Only meaningful when `prompt` is set and the model supports it.
+ /// Example: 16:9 + ///
+ /// 16:9 + [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.VideoAssetAspectRatioJsonConverter))] + public global::Shotstack.VideoAssetAspectRatio? AspectRatio { get; set; } + + /// + /// Set to `true` to request audio generation alongside the video. Only meaningful for video generation models that support it (e.g. `fal/seedance-2.0`).
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("generateAudio")] + public bool? GenerateAudio { get; set; } + /// /// Set to `true` to force re-encoding of the video during preprocessing. This can help resolve compatibility issues, fix rotation problems, synchronize audio, or convert formats. The video will be processed to ensure optimal compatibility with the rendering engine.
/// Example: false @@ -132,9 +167,26 @@ public sealed partial class VideoAsset /// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg /// /// - /// The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`). Defaults to the platform's preferred generator if omitted.
+ /// The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`, `fal/seedance-2.0`). Defaults to the platform's preferred generator if omitted.
/// Example: luma-ray-3 /// + /// + /// Output resolution for video generation. Only meaningful when `prompt` is set and the model supports it (e.g. `fal/seedance-2.0`).
+ /// Example: 720p + /// + /// + /// Target video duration in seconds for generation models that accept it. `"auto"` lets the model decide. Only meaningful when `prompt` is set.
+ /// Default Value: auto
+ /// Example: 5 + /// + /// + /// Aspect ratio for the generated video. Only meaningful when `prompt` is set and the model supports it.
+ /// Example: 16:9 + /// + /// + /// Set to `true` to request audio generation alongside the video. Only meaningful for video generation models that support it (e.g. `fal/seedance-2.0`).
+ /// Default Value: false + /// /// /// Set to `true` to force re-encoding of the video during preprocessing. This can help resolve compatibility issues, fix rotation problems, synchronize audio, or convert formats. The video will be processed to ensure optimal compatibility with the rendering engine.
/// Example: false @@ -175,6 +227,10 @@ public VideoAsset( string? prompt, string? inputSrc, string? model, + global::Shotstack.VideoAssetResolution? resolution, + global::Shotstack.VideoAssetDuration? duration, + global::Shotstack.VideoAssetAspectRatio? aspectRatio, + bool? generateAudio, bool? transcode, double? trim, global::Shotstack.OneOf>? volume, @@ -189,6 +245,10 @@ public VideoAsset( this.Prompt = prompt; this.InputSrc = inputSrc; this.Model = model; + this.Resolution = resolution; + this.Duration = duration; + this.AspectRatio = aspectRatio; + this.GenerateAudio = generateAudio; this.Transcode = transcode; this.Trim = trim; this.Volume = volume; diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetAspectRatio.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetAspectRatio.g.cs new file mode 100644 index 0000000..7641b7b --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetAspectRatio.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// Aspect ratio for the generated video. Only meaningful when `prompt` is set and the model supports it.
+ /// Example: 16:9 + ///
+ public enum VideoAssetAspectRatio + { + /// + /// + /// + x16_9, + /// + /// + /// + x1_1, + /// + /// + /// + x21_9, + /// + /// + /// + x3_4, + /// + /// + /// + x4_3, + /// + /// + /// + x9_16, + /// + /// + /// + x9_21, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class VideoAssetAspectRatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this VideoAssetAspectRatio value) + { + return value switch + { + VideoAssetAspectRatio.x16_9 => "16:9", + VideoAssetAspectRatio.x1_1 => "1:1", + VideoAssetAspectRatio.x21_9 => "21:9", + VideoAssetAspectRatio.x3_4 => "3:4", + VideoAssetAspectRatio.x4_3 => "4:3", + VideoAssetAspectRatio.x9_16 => "9:16", + VideoAssetAspectRatio.x9_21 => "9:21", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static VideoAssetAspectRatio? ToEnum(string value) + { + return value switch + { + "16:9" => VideoAssetAspectRatio.x16_9, + "1:1" => VideoAssetAspectRatio.x1_1, + "21:9" => VideoAssetAspectRatio.x21_9, + "3:4" => VideoAssetAspectRatio.x3_4, + "4:3" => VideoAssetAspectRatio.x4_3, + "9:16" => VideoAssetAspectRatio.x9_16, + "9:21" => VideoAssetAspectRatio.x9_21, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetDuration.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetDuration.g.cs new file mode 100644 index 0000000..7f8b5a7 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetDuration.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// Target video duration in seconds for generation models that accept it. `"auto"` lets the model decide. Only meaningful when `prompt` is set.
+ /// Default Value: auto
+ /// Example: 5 + ///
+ public enum VideoAssetDuration + { + /// + /// + /// + x10, + /// + /// + /// + x11, + /// + /// + /// + x12, + /// + /// + /// + x13, + /// + /// + /// + x14, + /// + /// + /// + x15, + /// + /// + /// + x4, + /// + /// + /// + x5, + /// + /// + /// + x6, + /// + /// + /// + x7, + /// + /// + /// + x8, + /// + /// + /// + x9, + /// + /// + /// + Auto, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class VideoAssetDurationExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this VideoAssetDuration value) + { + return value switch + { + VideoAssetDuration.x10 => "10", + VideoAssetDuration.x11 => "11", + VideoAssetDuration.x12 => "12", + VideoAssetDuration.x13 => "13", + VideoAssetDuration.x14 => "14", + VideoAssetDuration.x15 => "15", + VideoAssetDuration.x4 => "4", + VideoAssetDuration.x5 => "5", + VideoAssetDuration.x6 => "6", + VideoAssetDuration.x7 => "7", + VideoAssetDuration.x8 => "8", + VideoAssetDuration.x9 => "9", + VideoAssetDuration.Auto => "auto", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static VideoAssetDuration? ToEnum(string value) + { + return value switch + { + "10" => VideoAssetDuration.x10, + "11" => VideoAssetDuration.x11, + "12" => VideoAssetDuration.x12, + "13" => VideoAssetDuration.x13, + "14" => VideoAssetDuration.x14, + "15" => VideoAssetDuration.x15, + "4" => VideoAssetDuration.x4, + "5" => VideoAssetDuration.x5, + "6" => VideoAssetDuration.x6, + "7" => VideoAssetDuration.x7, + "8" => VideoAssetDuration.x8, + "9" => VideoAssetDuration.x9, + "auto" => VideoAssetDuration.Auto, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetResolution.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetResolution.g.cs new file mode 100644 index 0000000..92c03fe --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAssetResolution.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// Output resolution for video generation. Only meaningful when `prompt` is set and the model supports it (e.g. `fal/seedance-2.0`).
+ /// Example: 720p + ///
+ public enum VideoAssetResolution + { + /// + /// + /// + x1080p, + /// + /// + /// + x480p, + /// + /// + /// + x720p, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class VideoAssetResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this VideoAssetResolution value) + { + return value switch + { + VideoAssetResolution.x1080p => "1080p", + VideoAssetResolution.x480p => "480p", + VideoAssetResolution.x720p => "720p", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static VideoAssetResolution? ToEnum(string value) + { + return value switch + { + "1080p" => VideoAssetResolution.x1080p, + "480p" => VideoAssetResolution.x480p, + "720p" => VideoAssetResolution.x720p, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/openapi.json b/src/libs/Shotstack/openapi.json index ce8061e..5f7ec32 100644 --- a/src/libs/Shotstack/openapi.json +++ b/src/libs/Shotstack/openapi.json @@ -1182,10 +1182,60 @@ "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg" }, "model": { - "description": "The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`). Defaults to the platform's preferred generator if omitted.", + "description": "The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`, `fal/seedance-2.0`). Defaults to the platform's preferred generator if omitted.", "type": "string", "example": "luma-ray-3" }, + "resolution": { + "description": "Output resolution for video generation. Only meaningful when `prompt` is set and the model supports it (e.g. `fal/seedance-2.0`).", + "enum": [ + "480p", + "720p", + "1080p" + ], + "type": "string", + "example": "720p" + }, + "duration": { + "description": "Target video duration in seconds for generation models that accept it. `\"auto\"` lets the model decide. Only meaningful when `prompt` is set.", + "enum": [ + "auto", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", + "15" + ], + "type": "string", + "default": "auto", + "example": "5" + }, + "aspectRatio": { + "description": "Aspect ratio for the generated video. Only meaningful when `prompt` is set and the model supports it.", + "enum": [ + "1:1", + "16:9", + "9:16", + "4:3", + "3:4", + "21:9", + "9:21" + ], + "type": "string", + "example": "16:9" + }, + "generateAudio": { + "description": "Set to `true` to request audio generation alongside the video. Only meaningful for video generation models that support it (e.g. `fal/seedance-2.0`).", + "type": "boolean", + "default": false + }, "transcode": { "type": "boolean", "description": "Set to `true` to force re-encoding of the video during preprocessing. This can help resolve compatibility issues, fix rotation problems, synchronize audio, or convert formats. The video will be processed to ensure optimal compatibility with the rendering engine.", @@ -1272,10 +1322,34 @@ "example": "A serene landscape with a crystal-clear mountain lake at sunrise." }, "model": { - "description": "The generation model to use when `prompt` is set (e.g. `flux-schnell`). Defaults to the platform's preferred generator if omitted.", + "description": "The generation model to use when `prompt` is set (e.g. `flux-schnell`, `fal/flux-schnell`, `fal/nano-banana-2`). Defaults to the platform's preferred generator if omitted.", "type": "string", "example": "flux-schnell" }, + "resolution": { + "description": "Output resolution tier for supported image generation models. `1K` (default), `2K`, or `4K`. Only meaningful when `prompt` is set.", + "enum": [ + "1K", + "2K", + "4K" + ], + "type": "string", + "example": "1K" + }, + "aspectRatio": { + "description": "Aspect ratio for the generated image. Only meaningful when `prompt` is set and the model supports it.", + "enum": [ + "1:1", + "16:9", + "9:16", + "4:3", + "3:4", + "21:9", + "9:21" + ], + "type": "string", + "example": "1:1" + }, "crop": { "$ref": "#/components/schemas/Crop" } @@ -1456,10 +1530,27 @@ "default": false }, "model": { - "description": "The generation model to use when `prompt` is set (e.g. `polly-neural`). Defaults to the platform's preferred generator if omitted.", + "description": "The generation model to use when `prompt` is set (e.g. `polly-neural`, `fal/elevenlabs-tts`, `fal/minimax-speech`, `fal/elevenlabs-music`). Defaults to the platform's preferred generator if omitted.", "type": "string", "example": "polly-neural" }, + "musicLengthMs": { + "description": "Target duration in milliseconds for generated music (3,000\u2013600,000). Only meaningful when `prompt` is set and the model is a music generator (e.g. `fal/elevenlabs-music`).", + "type": "number", + "minimum": 3000, + "maximum": 600000, + "example": 30000 + }, + "forceInstrumental": { + "description": "Set to `true` to force instrumental music (no vocals). Only meaningful for music generation models.", + "type": "boolean", + "default": false + }, + "compositionPlan": { + "description": "An optional structured composition plan for music generation. Only meaningful for music generation models (e.g. `fal/elevenlabs-music`).", + "type": "string", + "maxLength": 4000 + }, "trim": { "description": "The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the in trim point. The audio will play until the file ends or the Clip length is reached.", "type": "number"