From ecb6b0d7076c5d1a8d7d97c2430ad88dcab14a6a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 12 May 2026 11:18:42 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Shotstack.JsonConverters.Asset.g.cs | 15 + ...otstack.JsonConverters.Html5AssetType.g.cs | 53 +++ ...JsonConverters.Html5AssetTypeNullable.g.cs | 60 +++ .../Shotstack.JsonSerializerContext.g.cs | 6 + .../Shotstack.JsonSerializerContextTypes.g.cs | 390 +++++++++--------- .../Generated/Shotstack.Models.Asset.g.cs | 85 +++- ...otstack.Models.AssetDiscriminatorType.g.cs | 6 + .../Shotstack.Models.Html5Asset.Json.g.cs | 92 +++++ .../Shotstack.Models.Html5Asset.g.cs | 105 +++++ .../Shotstack.Models.Html5AssetType.g.cs | 46 +++ src/libs/Shotstack/openapi.json | 38 ++ 11 files changed, 704 insertions(+), 192 deletions(-) create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.Html5AssetType.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.Html5AssetTypeNullable.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.Html5Asset.Json.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.Html5Asset.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.Html5AssetType.g.cs diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Asset.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Asset.g.cs index 55a69d0..366a09e 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Asset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Asset.g.cs @@ -84,6 +84,13 @@ public class AssetJsonConverter : global::System.Text.Json.Serialization.JsonCon throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Shotstack.HtmlAsset)}"); html = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Shotstack.Html5Asset? html5 = default; + if (discriminator?.Type == global::Shotstack.AssetDiscriminatorType.Html5) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.Html5Asset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Shotstack.Html5Asset)}"); + html5 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Shotstack.TitleAsset? title = default; if (discriminator?.Type == global::Shotstack.AssetDiscriminatorType.Title) { @@ -147,6 +154,8 @@ public class AssetJsonConverter : global::System.Text.Json.Serialization.JsonCon html, + html5, + title, shape, @@ -226,6 +235,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.HtmlAsset).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Html!, typeInfo); } + else if (value.IsHtml5) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.Html5Asset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.Html5Asset).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Html5!, typeInfo); + } else if (value.IsTitle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.TitleAsset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Html5AssetType.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Html5AssetType.g.cs new file mode 100644 index 0000000..ce6ea91 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Html5AssetType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class Html5AssetTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.Html5AssetType 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.Html5AssetTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.Html5AssetType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.Html5AssetType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.Html5AssetType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Shotstack.Html5AssetTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Html5AssetTypeNullable.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Html5AssetTypeNullable.g.cs new file mode 100644 index 0000000..0652c19 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Html5AssetTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class Html5AssetTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.Html5AssetType? 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.Html5AssetTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.Html5AssetType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.Html5AssetType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.Html5AssetType? 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.Html5AssetTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs index bf045bb..491bce4 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs @@ -141,6 +141,10 @@ namespace Shotstack typeof(global::Shotstack.JsonConverters.HtmlAssetPositionNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.Html5AssetTypeJsonConverter), + + typeof(global::Shotstack.JsonConverters.Html5AssetTypeNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.TitleAssetTypeJsonConverter), typeof(global::Shotstack.JsonConverters.TitleAssetTypeNullableJsonConverter), @@ -391,6 +395,7 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.CaptionAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichCaptionAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.HtmlAsset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Html5Asset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ShapeAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.SvgAsset))] @@ -457,6 +462,7 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextToSpeechAssetEffect), TypeInfoPropertyName = "TextToSpeechAssetEffect2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.HtmlAssetType), TypeInfoPropertyName = "HtmlAssetType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.HtmlAssetPosition), TypeInfoPropertyName = "HtmlAssetPosition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Html5AssetType), TypeInfoPropertyName = "Html5AssetType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAssetType), TypeInfoPropertyName = "TitleAssetType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAssetStyle), TypeInfoPropertyName = "TitleAssetStyle2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAssetSize), TypeInfoPropertyName = "TitleAssetSize2")] diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs index 963e494..6c7e34d 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs @@ -192,767 +192,775 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Shotstack.TitleAsset? Type41 { get; set; } + public global::Shotstack.Html5Asset? Type41 { get; set; } /// /// /// - public global::Shotstack.ShapeAsset? Type42 { get; set; } + public global::Shotstack.TitleAsset? Type42 { get; set; } /// /// /// - public global::Shotstack.SvgAsset? Type43 { get; set; } + public global::Shotstack.ShapeAsset? Type43 { get; set; } /// /// /// - public global::Shotstack.TextToImageAsset? Type44 { get; set; } + public global::Shotstack.SvgAsset? Type44 { get; set; } /// /// /// - public global::Shotstack.ImageToVideoAsset? Type45 { get; set; } + public global::Shotstack.TextToImageAsset? Type45 { get; set; } /// /// /// - public global::Shotstack.TextToSpeechAsset? Type46 { get; set; } + public global::Shotstack.ImageToVideoAsset? Type46 { get; set; } /// /// /// - public global::Shotstack.AssetDiscriminator? Type47 { get; set; } + public global::Shotstack.TextToSpeechAsset? Type47 { get; set; } /// /// /// - public global::Shotstack.AssetDiscriminatorType? Type48 { get; set; } + public global::Shotstack.AssetDiscriminator? Type48 { get; set; } /// /// /// - public global::Shotstack.VideoAssetType? Type49 { get; set; } + public global::Shotstack.AssetDiscriminatorType? Type49 { get; set; } /// /// /// - public global::Shotstack.VideoAssetVolumeEffect? Type50 { get; set; } + public global::Shotstack.VideoAssetType? Type50 { get; set; } /// /// /// - public global::Shotstack.Crop? Type51 { get; set; } + public global::Shotstack.VideoAssetVolumeEffect? Type51 { get; set; } /// /// /// - public global::Shotstack.ChromaKey? Type52 { get; set; } + public global::Shotstack.Crop? Type52 { get; set; } /// /// /// - public global::Shotstack.ImageAssetType? Type53 { get; set; } + public global::Shotstack.ChromaKey? Type53 { get; set; } /// /// /// - public global::Shotstack.TextAssetType? Type54 { get; set; } + public global::Shotstack.ImageAssetType? Type54 { get; set; } /// /// /// - public int? Type55 { get; set; } + public global::Shotstack.TextAssetType? Type55 { get; set; } /// /// /// - public global::Shotstack.TextFont? Type56 { get; set; } + public int? Type56 { get; set; } /// /// /// - public global::Shotstack.TextBackground? Type57 { get; set; } + public global::Shotstack.TextFont? Type57 { get; set; } /// /// /// - public global::Shotstack.TextAlignment? Type58 { get; set; } + public global::Shotstack.TextBackground? Type58 { get; set; } /// /// /// - public global::Shotstack.TextStroke? Type59 { get; set; } + public global::Shotstack.TextAlignment? Type59 { get; set; } /// /// /// - public global::Shotstack.TextAnimation? Type60 { get; set; } + public global::Shotstack.TextStroke? Type60 { get; set; } /// /// /// - public global::Shotstack.RichTextAssetType? Type61 { get; set; } + public global::Shotstack.TextAnimation? Type61 { get; set; } /// /// /// - public global::Shotstack.RichTextFont? Type62 { get; set; } + public global::Shotstack.RichTextAssetType? Type62 { get; set; } /// /// /// - public global::Shotstack.RichTextStyle? Type63 { get; set; } + public global::Shotstack.RichTextFont? Type63 { get; set; } /// /// /// - public global::Shotstack.RichTextStroke? Type64 { get; set; } + public global::Shotstack.RichTextStyle? Type64 { get; set; } /// /// /// - public global::Shotstack.RichTextShadow? Type65 { get; set; } + public global::Shotstack.RichTextStroke? Type65 { get; set; } /// /// /// - public global::Shotstack.RichTextBackground? Type66 { get; set; } + public global::Shotstack.RichTextShadow? Type66 { get; set; } /// /// /// - public global::Shotstack.RichTextBorder? Type67 { get; set; } + public global::Shotstack.RichTextBackground? Type67 { get; set; } /// /// /// - public global::Shotstack.OneOf? Type68 { get; set; } + public global::Shotstack.RichTextBorder? Type68 { get; set; } /// /// /// - public global::Shotstack.RichTextPadding? Type69 { get; set; } + public global::Shotstack.OneOf? Type69 { get; set; } /// /// /// - public global::Shotstack.RichTextAlignment? Type70 { get; set; } + public global::Shotstack.RichTextPadding? Type70 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimation? Type71 { get; set; } + public global::Shotstack.RichTextAlignment? Type71 { get; set; } /// /// /// - public global::Shotstack.AudioAssetType? Type72 { get; set; } + public global::Shotstack.RichTextAnimation? Type72 { get; set; } /// /// /// - public global::Shotstack.AudioAssetEffect? Type73 { get; set; } + public global::Shotstack.AudioAssetType? Type73 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetType? Type74 { get; set; } + public global::Shotstack.AudioAssetEffect? Type74 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetShape? Type75 { get; set; } + public global::Shotstack.ShapeAssetType? Type75 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetFill? Type76 { get; set; } + public global::Shotstack.ShapeAssetShape? Type76 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetStroke? Type77 { get; set; } + public global::Shotstack.ShapeAssetFill? Type77 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetRectangle? Type78 { get; set; } + public global::Shotstack.ShapeAssetStroke? Type78 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetCircle? Type79 { get; set; } + public global::Shotstack.ShapeAssetRectangle? Type79 { get; set; } /// /// /// - public global::Shotstack.ShapeAssetLine? Type80 { get; set; } + public global::Shotstack.ShapeAssetCircle? Type80 { get; set; } /// /// /// - public global::Shotstack.LumaAssetType? Type81 { get; set; } + public global::Shotstack.ShapeAssetLine? Type81 { get; set; } /// /// /// - public global::Shotstack.CaptionAssetType? Type82 { get; set; } + public global::Shotstack.LumaAssetType? Type82 { get; set; } /// /// /// - public global::Shotstack.CaptionFont? Type83 { get; set; } + public global::Shotstack.CaptionAssetType? Type83 { get; set; } /// /// /// - public global::Shotstack.CaptionBackground? Type84 { get; set; } + public global::Shotstack.CaptionFont? Type84 { get; set; } /// /// /// - public global::Shotstack.CaptionMargin? Type85 { get; set; } + public global::Shotstack.CaptionBackground? Type85 { get; set; } /// /// /// - public global::Shotstack.RichCaptionAssetType? Type86 { get; set; } + public global::Shotstack.CaptionMargin? Type86 { get; set; } /// /// /// - public global::Shotstack.RichCaptionFont? Type87 { get; set; } + public global::Shotstack.RichCaptionAssetType? Type87 { get; set; } /// /// /// - public global::Shotstack.RichCaptionStyle? Type88 { get; set; } + public global::Shotstack.RichCaptionFont? Type88 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActive? Type89 { get; set; } + public global::Shotstack.RichCaptionStyle? Type89 { get; set; } /// /// /// - public global::Shotstack.RichCaptionAnimation? Type90 { get; set; } + public global::Shotstack.RichCaptionActive? Type90 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActiveFont? Type91 { get; set; } + public global::Shotstack.RichCaptionAnimation? Type91 { get; set; } /// /// /// - public object? Type92 { get; set; } + public global::Shotstack.RichCaptionActiveFont? Type92 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActiveFontTextDecoration? Type93 { get; set; } + public object? Type93 { get; set; } /// /// /// - public global::Shotstack.OneOf? Type94 { get; set; } + public global::Shotstack.RichCaptionActiveFontTextDecoration? Type94 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActiveStroke? Type95 { get; set; } + public global::Shotstack.OneOf? Type95 { get; set; } /// /// /// - public global::Shotstack.OneOf? Type96 { get; set; } + public global::Shotstack.RichCaptionActiveStroke? Type96 { get; set; } /// /// /// - public global::Shotstack.RichCaptionActiveShadow? Type97 { get; set; } + public global::Shotstack.OneOf? Type97 { get; set; } /// /// /// - public global::Shotstack.RichCaptionAnimationStyle? Type98 { get; set; } + public global::Shotstack.RichCaptionActiveShadow? Type98 { get; set; } /// /// /// - public global::Shotstack.RichCaptionAnimationDirection? Type99 { get; set; } + public global::Shotstack.RichCaptionAnimationStyle? Type99 { get; set; } /// /// /// - public global::Shotstack.TextToImageAssetType? Type100 { get; set; } + public global::Shotstack.RichCaptionAnimationDirection? Type100 { get; set; } /// /// /// - public global::Shotstack.ImageToVideoAssetType? Type101 { get; set; } + public global::Shotstack.TextToImageAssetType? Type101 { get; set; } /// /// /// - public global::Shotstack.ImageToVideoAssetAspectRatio? Type102 { get; set; } + public global::Shotstack.ImageToVideoAssetType? Type102 { get; set; } /// /// /// - public global::Shotstack.TextToSpeechAssetType? Type103 { get; set; } + public global::Shotstack.ImageToVideoAssetAspectRatio? Type103 { get; set; } /// /// /// - public global::Shotstack.TextToSpeechAssetEffect? Type104 { get; set; } + public global::Shotstack.TextToSpeechAssetType? Type104 { get; set; } /// /// /// - public global::Shotstack.HtmlAssetType? Type105 { get; set; } + public global::Shotstack.TextToSpeechAssetEffect? Type105 { get; set; } /// /// /// - public global::Shotstack.HtmlAssetPosition? Type106 { get; set; } + public global::Shotstack.HtmlAssetType? Type106 { get; set; } /// /// /// - public global::Shotstack.TitleAssetType? Type107 { get; set; } + public global::Shotstack.HtmlAssetPosition? Type107 { get; set; } /// /// /// - public global::Shotstack.TitleAssetStyle? Type108 { get; set; } + public global::Shotstack.Html5AssetType? Type108 { get; set; } /// /// /// - public global::Shotstack.TitleAssetSize? Type109 { get; set; } + public global::Shotstack.TitleAssetType? Type109 { get; set; } /// /// /// - public global::Shotstack.TitleAssetPosition? Type110 { get; set; } + public global::Shotstack.TitleAssetStyle? Type110 { get; set; } /// /// /// - public global::Shotstack.SvgAssetType? Type111 { get; set; } + public global::Shotstack.TitleAssetSize? Type111 { get; set; } /// /// /// - public global::Shotstack.TransitionIn? Type112 { get; set; } + public global::Shotstack.TitleAssetPosition? Type112 { get; set; } /// /// /// - public global::Shotstack.TransitionOut? Type113 { get; set; } + public global::Shotstack.SvgAssetType? Type113 { get; set; } /// /// /// - public global::Shotstack.RotateTransformation? Type114 { get; set; } + public global::Shotstack.TransitionIn? Type114 { get; set; } /// /// /// - public global::Shotstack.SkewTransformation? Type115 { get; set; } + public global::Shotstack.TransitionOut? Type115 { get; set; } /// /// /// - public global::Shotstack.FlipTransformation? Type116 { get; set; } + public global::Shotstack.RotateTransformation? Type116 { get; set; } /// /// /// - public global::Shotstack.TextAlignmentHorizontal? Type117 { get; set; } + public global::Shotstack.SkewTransformation? Type117 { get; set; } /// /// /// - public global::Shotstack.TextAlignmentVertical? Type118 { get; set; } + public global::Shotstack.FlipTransformation? Type118 { get; set; } /// /// /// - public global::Shotstack.RichTextStyleTextTransform? Type119 { get; set; } + public global::Shotstack.TextAlignmentHorizontal? Type119 { get; set; } /// /// /// - public global::Shotstack.RichTextStyleTextDecoration? Type120 { get; set; } + public global::Shotstack.TextAlignmentVertical? Type120 { get; set; } /// /// /// - public global::Shotstack.RichTextGradient? Type121 { get; set; } + public global::Shotstack.RichTextStyleTextTransform? Type121 { get; set; } /// /// /// - public global::Shotstack.RichTextGradientType? Type122 { get; set; } + public global::Shotstack.RichTextStyleTextDecoration? Type122 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type123 { get; set; } + public global::Shotstack.RichTextGradient? Type123 { get; set; } /// /// /// - public global::Shotstack.RichTextGradientStop? Type124 { get; set; } + public global::Shotstack.RichTextGradientType? Type124 { get; set; } /// /// /// - public global::Shotstack.RichTextAlignmentHorizontal? Type125 { get; set; } + public global::System.Collections.Generic.IList? Type125 { get; set; } /// /// /// - public global::Shotstack.RichTextAlignmentVertical? Type126 { get; set; } + public global::Shotstack.RichTextGradientStop? Type126 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationPreset? Type127 { get; set; } + public global::Shotstack.RichTextAlignmentHorizontal? Type127 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationStyle? Type128 { get; set; } + public global::Shotstack.RichTextAlignmentVertical? Type128 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationDirection? Type129 { get; set; } + public global::Shotstack.RichTextAnimationPreset? Type129 { get; set; } /// /// /// - public global::Shotstack.TweenInterpolation? Type130 { get; set; } + public global::Shotstack.RichTextAnimationStyle? Type130 { get; set; } /// /// /// - public global::Shotstack.TweenEasing? Type131 { get; set; } + public global::Shotstack.RichTextAnimationDirection? Type131 { get; set; } /// /// /// - public global::Shotstack.OutputFormat? Type132 { get; set; } + public global::Shotstack.TweenInterpolation? Type132 { get; set; } /// /// /// - public global::Shotstack.OutputResolution? Type133 { get; set; } + public global::Shotstack.TweenEasing? Type133 { get; set; } /// /// /// - public global::Shotstack.OutputAspectRatio? Type134 { get; set; } + public global::Shotstack.OutputFormat? Type134 { get; set; } /// /// /// - public global::Shotstack.Size? Type135 { get; set; } + public global::Shotstack.OutputResolution? Type135 { get; set; } /// /// /// - public global::Shotstack.OutputScaleTo? Type136 { get; set; } + public global::Shotstack.OutputAspectRatio? Type136 { get; set; } /// /// /// - public global::Shotstack.OutputQuality? Type137 { get; set; } + public global::Shotstack.Size? Type137 { get; set; } /// /// /// - public global::Shotstack.Range? Type138 { get; set; } + public global::Shotstack.OutputScaleTo? Type138 { get; set; } /// /// /// - public global::Shotstack.Poster? Type139 { get; set; } + public global::Shotstack.OutputQuality? Type139 { get; set; } /// /// /// - public global::Shotstack.Thumbnail? Type140 { get; set; } + public global::Shotstack.Range? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::Shotstack.Poster? Type141 { get; set; } /// /// /// - public global::Shotstack.Destinations? Type142 { get; set; } + public global::Shotstack.Thumbnail? Type142 { get; set; } /// /// /// - public global::Shotstack.ShotstackDestination? Type143 { get; set; } + public global::System.Collections.Generic.IList? Type143 { get; set; } /// /// /// - public global::Shotstack.MuxDestination? Type144 { get; set; } + public global::Shotstack.Destinations? Type144 { get; set; } /// /// /// - public global::Shotstack.S3Destination? Type145 { get; set; } + public global::Shotstack.ShotstackDestination? Type145 { get; set; } /// /// /// - public global::Shotstack.GoogleCloudStorageDestination? Type146 { get; set; } + public global::Shotstack.MuxDestination? Type146 { get; set; } /// /// /// - public global::Shotstack.GoogleDriveDestination? Type147 { get; set; } + public global::Shotstack.S3Destination? Type147 { get; set; } /// /// /// - public global::Shotstack.VimeoDestination? Type148 { get; set; } + public global::Shotstack.GoogleCloudStorageDestination? Type148 { get; set; } /// /// /// - public global::Shotstack.TiktokDestination? Type149 { get; set; } + public global::Shotstack.GoogleDriveDestination? Type149 { get; set; } /// /// /// - public global::Shotstack.AkamaiNetStorageDestination? Type150 { get; set; } + public global::Shotstack.VimeoDestination? Type150 { get; set; } /// /// /// - public global::Shotstack.AzureBlobStorageDestination? Type151 { get; set; } + public global::Shotstack.TiktokDestination? Type151 { get; set; } /// /// /// - public global::Shotstack.DestinationsDiscriminator? Type152 { get; set; } + public global::Shotstack.AkamaiNetStorageDestination? Type152 { get; set; } /// /// /// - public global::Shotstack.MuxDestinationOptions? Type153 { get; set; } + public global::Shotstack.AzureBlobStorageDestination? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type154 { get; set; } + public global::Shotstack.DestinationsDiscriminator? Type154 { get; set; } /// /// /// - public global::Shotstack.MuxDestinationOptionsPlaybackPolicyItem? Type155 { get; set; } + public global::Shotstack.MuxDestinationOptions? Type155 { get; set; } /// /// /// - public global::Shotstack.S3DestinationOptions? Type156 { get; set; } + public global::System.Collections.Generic.IList? Type156 { get; set; } /// /// /// - public global::Shotstack.GoogleCloudStorageDestinationOptions? Type157 { get; set; } + public global::Shotstack.MuxDestinationOptionsPlaybackPolicyItem? Type157 { get; set; } /// /// /// - public global::Shotstack.GoogleDriveDestinationOptions? Type158 { get; set; } + public global::Shotstack.S3DestinationOptions? Type158 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationOptions? Type159 { get; set; } + public global::Shotstack.GoogleCloudStorageDestinationOptions? Type159 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptions? Type160 { get; set; } + public global::Shotstack.GoogleDriveDestinationOptions? Type160 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsView? Type161 { get; set; } + public global::Shotstack.VimeoDestinationOptions? Type161 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsEmbed? Type162 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptions? Type162 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsComments? Type163 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsView? Type163 { get; set; } /// /// /// - public global::Shotstack.Template? Type164 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsEmbed? Type164 { get; set; } /// /// /// - public global::Shotstack.TemplateRender? Type165 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsComments? Type165 { get; set; } /// /// /// - public global::Shotstack.Source? Type166 { get; set; } + public global::Shotstack.Template? Type166 { get; set; } /// /// /// - public global::Shotstack.Outputs? Type167 { get; set; } + public global::Shotstack.TemplateRender? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::Shotstack.Source? Type168 { get; set; } /// /// /// - public global::Shotstack.Rendition? Type169 { get; set; } + public global::Shotstack.Outputs? Type169 { get; set; } /// /// /// - public global::Shotstack.Transcription? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type170 { get; set; } /// /// /// - public global::Shotstack.RenditionFormat? Type171 { get; set; } + public global::Shotstack.Rendition? Type171 { get; set; } /// /// /// - public global::Shotstack.RenditionFit? Type172 { get; set; } + public global::Shotstack.Transcription? Type172 { get; set; } /// /// /// - public global::Shotstack.RenditionResolution? Type173 { get; set; } + public global::Shotstack.RenditionFormat? Type173 { get; set; } /// /// /// - public global::Shotstack.Speed? Type174 { get; set; } + public global::Shotstack.RenditionFit? Type174 { get; set; } /// /// /// - public global::Shotstack.Enhancements? Type175 { get; set; } + public global::Shotstack.RenditionResolution? Type175 { get; set; } /// /// /// - public global::Shotstack.TranscriptionFormat? Type176 { get; set; } + public global::Shotstack.Speed? Type176 { get; set; } /// /// /// - public global::Shotstack.AudioEnhancement? Type177 { get; set; } + public global::Shotstack.Enhancements? Type177 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancement? Type178 { get; set; } + public global::Shotstack.TranscriptionFormat? Type178 { get; set; } /// /// /// - public global::Shotstack.AudioEnhancementDiscriminator? Type179 { get; set; } + public global::Shotstack.AudioEnhancement? Type179 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancementOptions? Type180 { get; set; } + public global::Shotstack.DolbyEnhancement? Type180 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancementOptionsPreset? Type181 { get; set; } + public global::Shotstack.AudioEnhancementDiscriminator? Type181 { get; set; } /// /// /// - public global::Shotstack.Transfer? Type182 { get; set; } + public global::Shotstack.DolbyEnhancementOptions? Type182 { get; set; } /// /// /// - public global::Shotstack.QueuedResponse? Type183 { get; set; } + public global::Shotstack.DolbyEnhancementOptionsPreset? Type183 { get; set; } /// /// /// - public global::Shotstack.QueuedResponseData? Type184 { get; set; } + public global::Shotstack.Transfer? Type184 { get; set; } /// /// /// - public global::Shotstack.RenderResponse? Type185 { get; set; } + public global::Shotstack.QueuedResponse? Type185 { get; set; } /// /// /// - public global::Shotstack.RenderResponseData? Type186 { get; set; } + public global::Shotstack.QueuedResponseData? Type186 { get; set; } /// /// /// - public global::Shotstack.RenderResponseDataStatus? Type187 { get; set; } + public global::Shotstack.RenderResponse? Type187 { get; set; } /// /// /// - public global::Shotstack.TemplateResponse? Type188 { get; set; } + public global::Shotstack.RenderResponseData? Type188 { get; set; } /// /// /// - public global::Shotstack.TemplateResponseData? Type189 { get; set; } + public global::Shotstack.RenderResponseDataStatus? Type189 { get; set; } /// /// /// - public global::Shotstack.TemplateDataResponse? Type190 { get; set; } + public global::Shotstack.TemplateResponse? Type190 { get; set; } /// /// /// - public global::Shotstack.TemplateDataResponseData? Type191 { get; set; } + public global::Shotstack.TemplateResponseData? Type191 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponse? Type192 { get; set; } + public global::Shotstack.TemplateDataResponse? Type192 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponseData? Type193 { get; set; } + public global::Shotstack.TemplateDataResponseData? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public global::Shotstack.TemplateListResponse? Type194 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponseItem? Type195 { get; set; } + public global::Shotstack.TemplateListResponseData? Type195 { get; set; } /// /// /// - public global::Shotstack.ProbeResponse? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::Shotstack.AssetResponse? Type197 { get; set; } + public global::Shotstack.TemplateListResponseItem? Type197 { get; set; } /// /// /// - public global::Shotstack.AssetResponseData? Type198 { get; set; } + public global::Shotstack.ProbeResponse? Type198 { get; set; } /// /// /// - public global::Shotstack.AssetRenderResponse? Type199 { get; set; } + public global::Shotstack.AssetResponse? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::Shotstack.AssetResponseData? Type200 { get; set; } /// /// /// - public global::Shotstack.AssetResponseAttributes? Type201 { get; set; } + public global::Shotstack.AssetRenderResponse? Type201 { get; set; } /// /// /// - public global::Shotstack.AssetResponseAttributesStatus? Type202 { get; set; } + public global::System.Collections.Generic.IList? Type202 { get; set; } /// /// /// - public global::Shotstack.TransferResponse? Type203 { get; set; } + public global::Shotstack.AssetResponseAttributes? Type203 { get; set; } /// /// /// - public global::Shotstack.TransferResponseData? Type204 { get; set; } + public global::Shotstack.AssetResponseAttributesStatus? Type204 { get; set; } /// /// /// - public global::Shotstack.TransferResponseAttributes? Type205 { get; set; } + public global::Shotstack.TransferResponse? Type205 { get; set; } /// /// /// - public global::Shotstack.TransferResponseAttributesStatus? Type206 { get; set; } + public global::Shotstack.TransferResponseData? Type206 { get; set; } /// /// /// - public global::Shotstack.QueuedSourceResponse? Type207 { get; set; } + public global::Shotstack.TransferResponseAttributes? Type207 { get; set; } /// /// /// - public global::Shotstack.QueuedSourceResponseData? Type208 { get; set; } + public global::Shotstack.TransferResponseAttributesStatus? Type208 { get; set; } /// /// /// - public global::Shotstack.SourceListResponse? Type209 { get; set; } + public global::Shotstack.QueuedSourceResponse? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::Shotstack.QueuedSourceResponseData? Type210 { get; set; } /// /// /// - public global::Shotstack.SourceResponseData? Type211 { get; set; } + public global::Shotstack.SourceListResponse? Type211 { get; set; } /// /// /// - public global::Shotstack.SourceResponse? Type212 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::Shotstack.SourceResponseAttributes? Type213 { get; set; } + public global::Shotstack.SourceResponseData? Type213 { get; set; } /// /// /// - public global::Shotstack.SourceResponseAttributesStatus? Type214 { get; set; } + public global::Shotstack.SourceResponse? Type214 { get; set; } /// /// /// - public global::Shotstack.OutputsResponse? Type215 { get; set; } + public global::Shotstack.SourceResponseAttributes? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::Shotstack.SourceResponseAttributesStatus? Type216 { get; set; } /// /// /// - public global::Shotstack.RenditionResponseAttributes? Type217 { get; set; } + public global::Shotstack.OutputsResponse? Type217 { get; set; } /// /// /// - public global::Shotstack.RenditionResponseAttributesStatus? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::Shotstack.UploadResponse? Type219 { get; set; } + public global::Shotstack.RenditionResponseAttributes? Type219 { get; set; } /// /// /// - public global::Shotstack.UploadResponseData? Type220 { get; set; } + public global::Shotstack.RenditionResponseAttributesStatus? Type220 { get; set; } /// /// /// - public global::Shotstack.UploadResponseAttributes? Type221 { get; set; } + public global::Shotstack.UploadResponse? Type221 { get; set; } /// /// /// - public global::Shotstack.IngestErrorResponse? Type222 { get; set; } + public global::Shotstack.UploadResponseData? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::Shotstack.UploadResponseAttributes? Type223 { get; set; } /// /// /// - public global::Shotstack.IngestErrorResponseData? Type224 { get; set; } + public global::Shotstack.IngestErrorResponse? Type224 { get; set; } /// /// /// - public global::Shotstack.TextAnimationPreset? Type225 { get; set; } + public global::System.Collections.Generic.IList? Type225 { get; set; } /// /// /// - public global::Shotstack.RichCaptionStyleTextTransform? Type226 { get; set; } + public global::Shotstack.IngestErrorResponseData? Type226 { get; set; } /// /// /// - public global::Shotstack.RichCaptionStyleTextDecoration? Type227 { get; set; } + public global::Shotstack.TextAnimationPreset? Type227 { get; set; } /// /// /// - public global::Shotstack.TiktokDestinationOptions? Type228 { get; set; } + public global::Shotstack.RichCaptionStyleTextTransform? Type228 { get; set; } /// /// /// - public global::Shotstack.TiktokDestinationOptionsPrivacyLevel? Type229 { get; set; } + public global::Shotstack.RichCaptionStyleTextDecoration? Type229 { get; set; } /// /// /// - public global::Shotstack.AkamaiNetStorageDestinationOptions? Type230 { get; set; } + public global::Shotstack.TiktokDestinationOptions? Type230 { get; set; } /// /// /// - public global::Shotstack.AzureBlobStorageDestinationOptions? Type231 { get; set; } + public global::Shotstack.TiktokDestinationOptionsPrivacyLevel? Type231 { get; set; } + /// + /// + /// + public global::Shotstack.AkamaiNetStorageDestinationOptions? Type232 { get; set; } + /// + /// + /// + public global::Shotstack.AzureBlobStorageDestinationOptions? Type233 { get; set; } /// /// diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs index 21696fb..93684ed 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs @@ -361,6 +361,43 @@ public bool TryPickHtml( ? Html! : throw new global::System.InvalidOperationException($"Expected union variant 'Html' but the value was {ToString()}."); + /// + /// The Html5Asset renders full HTML5/CSS3/JS. + /// +#if NET6_0_OR_GREATER + public global::Shotstack.Html5Asset? Html5 { get; init; } +#else + public global::Shotstack.Html5Asset? Html5 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Html5))] +#endif + public bool IsHtml5 => Html5 != null; + + /// + /// + /// + public bool TryPickHtml5( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Shotstack.Html5Asset? value) + { + value = Html5; + return IsHtml5; + } + + /// + /// + /// + public global::Shotstack.Html5Asset PickHtml5() => IsHtml5 + ? Html5! + : throw new global::System.InvalidOperationException($"Expected union variant 'Html5' but the value was {ToString()}."); + /// /// **Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
/// The TitleAsset clip type lets you create video titles from a text string and apply styling and positioning. @@ -801,6 +838,29 @@ public Asset(global::Shotstack.HtmlAsset? value) ///
public static Asset FromHtml(global::Shotstack.HtmlAsset? value) => new Asset(value); + /// + /// + /// + public static implicit operator Asset(global::Shotstack.Html5Asset value) => new Asset((global::Shotstack.Html5Asset?)value); + + /// + /// + /// + public static implicit operator global::Shotstack.Html5Asset?(Asset @this) => @this.Html5; + + /// + /// + /// + public Asset(global::Shotstack.Html5Asset? value) + { + Html5 = value; + } + + /// + /// + /// + public static Asset FromHtml5(global::Shotstack.Html5Asset? value) => new Asset(value); + /// /// /// @@ -953,6 +1013,7 @@ public Asset( global::Shotstack.CaptionAsset? caption, global::Shotstack.RichCaptionAsset? richCaption, global::Shotstack.HtmlAsset? html, + global::Shotstack.Html5Asset? html5, global::Shotstack.TitleAsset? title, global::Shotstack.ShapeAsset? shape, global::Shotstack.SvgAsset? svg, @@ -972,6 +1033,7 @@ public Asset( Caption = caption; RichCaption = richCaption; Html = html; + Html5 = html5; Title = title; Shape = shape; Svg = svg; @@ -990,6 +1052,7 @@ TextToImage as object ?? Svg as object ?? Shape as object ?? Title as object ?? + Html5 as object ?? Html as object ?? RichCaption as object ?? Caption as object ?? @@ -1014,6 +1077,7 @@ Video as object Caption?.ToString() ?? RichCaption?.ToString() ?? Html?.ToString() ?? + Html5?.ToString() ?? Title?.ToString() ?? Shape?.ToString() ?? Svg?.ToString() ?? @@ -1027,7 +1091,7 @@ Video as object ///
public bool Validate() { - return IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && IsTextToSpeech; + return IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && IsSvg && !IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && IsTextToImage && !IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && IsImageToVideo && !IsTextToSpeech || !IsVideo && !IsImage && !IsText && !IsRichText && !IsAudio && !IsLuma && !IsCaption && !IsRichCaption && !IsHtml && !IsHtml5 && !IsTitle && !IsShape && !IsSvg && !IsTextToImage && !IsImageToVideo && IsTextToSpeech; } /// @@ -1043,6 +1107,7 @@ public bool Validate() global::System.Func? caption = null, global::System.Func? richCaption = null, global::System.Func? html = null, + global::System.Func? html5 = null, global::System.Func? title = null, global::System.Func? shape = null, global::System.Func? svg = null, @@ -1092,6 +1157,10 @@ public bool Validate() { return html(Html!); } + else if (IsHtml5 && html5 != null) + { + return html5(Html5!); + } else if (IsTitle && title != null) { return title(Title!); @@ -1142,6 +1211,8 @@ public void Match( global::System.Action? html = null, + global::System.Action? html5 = null, + global::System.Action? title = null, global::System.Action? shape = null, @@ -1196,6 +1267,10 @@ public void Match( { html?.Invoke(Html!); } + else if (IsHtml5) + { + html5?.Invoke(Html5!); + } else if (IsTitle) { title?.Invoke(Title!); @@ -1235,6 +1310,7 @@ public void Switch( global::System.Action? caption = null, global::System.Action? richCaption = null, global::System.Action? html = null, + global::System.Action? html5 = null, global::System.Action? title = null, global::System.Action? shape = null, global::System.Action? svg = null, @@ -1284,6 +1360,10 @@ public void Switch( { html?.Invoke(Html!); } + else if (IsHtml5) + { + html5?.Invoke(Html5!); + } else if (IsTitle) { title?.Invoke(Title!); @@ -1335,6 +1415,8 @@ public override int GetHashCode() typeof(global::Shotstack.RichCaptionAsset), Html, typeof(global::Shotstack.HtmlAsset), + Html5, + typeof(global::Shotstack.Html5Asset), Title, typeof(global::Shotstack.TitleAsset), Shape, @@ -1372,6 +1454,7 @@ public bool Equals(Asset other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Caption, other.Caption) && global::System.Collections.Generic.EqualityComparer.Default.Equals(RichCaption, other.RichCaption) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Html, other.Html) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Html5, other.Html5) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Title, other.Title) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Shape, other.Shape) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Svg, other.Svg) && diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.AssetDiscriminatorType.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.AssetDiscriminatorType.g.cs index 0f97674..d36c6d8 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.AssetDiscriminatorType.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.AssetDiscriminatorType.g.cs @@ -23,6 +23,10 @@ public enum AssetDiscriminatorType /// /// /// + Html5, + /// + /// + /// Image, /// /// @@ -85,6 +89,7 @@ public static string ToValueString(this AssetDiscriminatorType value) AssetDiscriminatorType.Audio => "audio", AssetDiscriminatorType.Caption => "caption", AssetDiscriminatorType.Html => "html", + AssetDiscriminatorType.Html5 => "html5", AssetDiscriminatorType.Image => "image", AssetDiscriminatorType.ImageToVideo => "image-to-video", AssetDiscriminatorType.Luma => "luma", @@ -110,6 +115,7 @@ public static string ToValueString(this AssetDiscriminatorType value) "audio" => AssetDiscriminatorType.Audio, "caption" => AssetDiscriminatorType.Caption, "html" => AssetDiscriminatorType.Html, + "html5" => AssetDiscriminatorType.Html5, "image" => AssetDiscriminatorType.Image, "image-to-video" => AssetDiscriminatorType.ImageToVideo, "luma" => AssetDiscriminatorType.Luma, diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Html5Asset.Json.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Html5Asset.Json.g.cs new file mode 100644 index 0000000..88c203a --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Html5Asset.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Shotstack +{ + public sealed partial class Html5Asset + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Shotstack.Html5Asset? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Shotstack.Html5Asset), + jsonSerializerContext) as global::Shotstack.Html5Asset; + } + + /// + /// 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::Shotstack.Html5Asset? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Shotstack.Html5Asset), + jsonSerializerContext).ConfigureAwait(false)) as global::Shotstack.Html5Asset; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Html5Asset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Html5Asset.g.cs new file mode 100644 index 0000000..f2319a6 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Html5Asset.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// The Html5Asset renders full HTML5/CSS3/JS. + /// + public sealed partial class Html5Asset + { + /// + /// The type of asset - set to `html5` for HTML5/CSS3/JS.
+ /// Default Value: html5 + ///
+ /// global::Shotstack.Html5AssetType.Html5 + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.Html5AssetTypeJsonConverter))] + public global::Shotstack.Html5AssetType Type { get; set; } = global::Shotstack.Html5AssetType.Html5; + + /// + /// The HTML markup for the asset.
+ /// Example: <div class='card'><h1>{{title}}</h1></div> + ///
+ /// <div class='card'><h1>{{title}}</h1></div> + [global::System.Text.Json.Serialization.JsonPropertyName("html")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Html { get; set; } + + /// + /// The CSS string applied to the HTML.
+ /// Example: .card { font-family: 'Inter'; padding: 32px; } + ///
+ /// .card { font-family: 'Inter'; padding: 32px; } + [global::System.Text.Json.Serialization.JsonPropertyName("css")] + public string? Css { get; set; } + + /// + /// Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.
+ /// Example: gsap.to('.card', { x: 200, duration: 1 }); + ///
+ /// gsap.to('.card', { x: 200, duration: 1 }); + [global::System.Text.Json.Serialization.JsonPropertyName("js")] + public string? Js { 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. + /// + /// + /// The HTML markup for the asset.
+ /// Example: <div class='card'><h1>{{title}}</h1></div> + /// + /// + /// The CSS string applied to the HTML.
+ /// Example: .card { font-family: 'Inter'; padding: 32px; } + /// + /// + /// Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.
+ /// Example: gsap.to('.card', { x: 200, duration: 1 }); + /// + /// + /// The type of asset - set to `html5` for HTML5/CSS3/JS.
+ /// Default Value: html5 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public Html5Asset( + string html, + string? css, + string? js, + global::Shotstack.Html5AssetType type = global::Shotstack.Html5AssetType.Html5) + { + this.Type = type; + this.Html = html ?? throw new global::System.ArgumentNullException(nameof(html)); + this.Css = css; + this.Js = js; + } + + /// + /// Initializes a new instance of the class. + /// + public Html5Asset() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static Html5Asset FromHtml(string html) + { + return new Html5Asset + { + Html = html, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Html5AssetType.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Html5AssetType.g.cs new file mode 100644 index 0000000..ead7711 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Html5AssetType.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// The type of asset - set to `html5` for HTML5/CSS3/JS.
+ /// Default Value: html5 + ///
+ public enum Html5AssetType + { + /// + /// + /// + Html5, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class Html5AssetTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this Html5AssetType value) + { + return value switch + { + Html5AssetType.Html5 => "html5", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static Html5AssetType? ToEnum(string value) + { + return value switch + { + "html5" => Html5AssetType.Html5, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/openapi.json b/src/libs/Shotstack/openapi.json index b6badbd..66ce165 100644 --- a/src/libs/Shotstack/openapi.json +++ b/src/libs/Shotstack/openapi.json @@ -1084,6 +1084,7 @@ "caption": "#/components/schemas/CaptionAsset", "rich-caption": "#/components/schemas/RichCaptionAsset", "html": "#/components/schemas/HtmlAsset", + "html5": "#/components/schemas/Html5Asset", "title": "#/components/schemas/TitleAsset", "shape": "#/components/schemas/ShapeAsset", "svg": "#/components/schemas/SvgAsset", @@ -1120,6 +1121,9 @@ { "$ref": "#/components/schemas/HtmlAsset" }, + { + "$ref": "#/components/schemas/Html5Asset" + }, { "$ref": "#/components/schemas/TitleAsset" }, @@ -2102,6 +2106,40 @@ "html" ] }, + "Html5Asset": { + "description": "The Html5Asset renders full HTML5/CSS3/JS.\n", + "type": "object", + "properties": { + "type": { + "enum": [ + "html5" + ], + "default": "html5", + "description": "The type of asset - set to `html5` for HTML5/CSS3/JS.", + "type": "string" + }, + "html": { + "description": "The HTML markup for the asset.", + "type": "string", + "example": "

{{title}}

" + }, + "css": { + "description": "The CSS string applied to the HTML.", + "type": "string", + "example": ".card { font-family: 'Inter'; padding: 32px; }" + }, + "js": { + "description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.\n", + "type": "string", + "example": "gsap.to('.card', { x: 200, duration: 1 });" + } + }, + "additionalProperties": false, + "required": [ + "type", + "html" + ] + }, "TitleAsset": { "deprecated": true, "description": "**Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**\n\nThe TitleAsset clip type lets you create video titles from a text string and apply styling and positioning.\n",