From 1f27650d43c3b4c35f14a47d72f50820109b4539 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 14 Aug 2026 21:20:01 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...k.JsonConverters.RichCaptionFontStyle.g.cs | 53 ++++ ...nverters.RichCaptionFontStyleNullable.g.cs | 60 +++++ ...tack.JsonConverters.RichTextFontStyle.g.cs | 53 ++++ ...nConverters.RichTextFontStyleNullable.g.cs | 60 +++++ .../Shotstack.JsonSerializerContext.g.cs | 10 + .../Shotstack.JsonSerializerContextTypes.g.cs | 242 +++++++++--------- .../Shotstack.Models.RichCaptionFont.g.cs | 17 ++ ...Shotstack.Models.RichCaptionFontStyle.g.cs | 53 ++++ .../Shotstack.Models.RichTextFont.g.cs | 17 ++ .../Shotstack.Models.RichTextFontStyle.g.cs | 53 ++++ src/libs/Shotstack/openapi.json | 20 ++ 11 files changed, 521 insertions(+), 117 deletions(-) create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichCaptionFontStyle.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichCaptionFontStyleNullable.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichTextFontStyle.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichTextFontStyleNullable.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.RichCaptionFontStyle.g.cs create mode 100644 src/libs/Shotstack/Generated/Shotstack.Models.RichTextFontStyle.g.cs diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichCaptionFontStyle.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichCaptionFontStyle.g.cs new file mode 100644 index 0000000..96de071 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichCaptionFontStyle.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class RichCaptionFontStyleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.RichCaptionFontStyle 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.RichCaptionFontStyleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.RichCaptionFontStyle)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.RichCaptionFontStyle); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.RichCaptionFontStyle value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Shotstack.RichCaptionFontStyleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichCaptionFontStyleNullable.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichCaptionFontStyleNullable.g.cs new file mode 100644 index 0000000..a5b12dd --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichCaptionFontStyleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class RichCaptionFontStyleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.RichCaptionFontStyle? 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.RichCaptionFontStyleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.RichCaptionFontStyle)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.RichCaptionFontStyle?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.RichCaptionFontStyle? 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.RichCaptionFontStyleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichTextFontStyle.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichTextFontStyle.g.cs new file mode 100644 index 0000000..ef445c4 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichTextFontStyle.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class RichTextFontStyleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.RichTextFontStyle 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.RichTextFontStyleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.RichTextFontStyle)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.RichTextFontStyle); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.RichTextFontStyle value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Shotstack.RichTextFontStyleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichTextFontStyleNullable.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichTextFontStyleNullable.g.cs new file mode 100644 index 0000000..c89ccc5 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.RichTextFontStyleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Shotstack.JsonConverters +{ + /// + public sealed class RichTextFontStyleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Shotstack.RichTextFontStyle? 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.RichTextFontStyleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Shotstack.RichTextFontStyle)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Shotstack.RichTextFontStyle?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Shotstack.RichTextFontStyle? 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.RichTextFontStyleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs index ef333d9..d5e5342 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs @@ -181,6 +181,10 @@ namespace Shotstack typeof(global::Shotstack.JsonConverters.TextAlignmentVerticalNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.RichTextFontStyleJsonConverter), + + typeof(global::Shotstack.JsonConverters.RichTextFontStyleNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.RichTextStyleTextTransformJsonConverter), typeof(global::Shotstack.JsonConverters.RichTextStyleTextTransformNullableJsonConverter), @@ -301,6 +305,10 @@ namespace Shotstack typeof(global::Shotstack.JsonConverters.TextAnimationPresetNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.RichCaptionFontStyleJsonConverter), + + typeof(global::Shotstack.JsonConverters.RichCaptionFontStyleNullableJsonConverter), + typeof(global::Shotstack.JsonConverters.RichCaptionStyleTextTransformJsonConverter), typeof(global::Shotstack.JsonConverters.RichCaptionStyleTextTransformNullableJsonConverter), @@ -481,6 +489,7 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.FlipTransformation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextAlignmentHorizontal), TypeInfoPropertyName = "TextAlignmentHorizontal2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextAlignmentVertical), TypeInfoPropertyName = "TextAlignmentVertical2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichTextFontStyle), TypeInfoPropertyName = "RichTextFontStyle2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichTextStyleTextTransform), TypeInfoPropertyName = "RichTextStyleTextTransform2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichTextStyleTextDecoration), TypeInfoPropertyName = "RichTextStyleTextDecoration2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichTextGradient))] @@ -588,6 +597,7 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.IngestErrorResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextAnimationPreset), TypeInfoPropertyName = "TextAnimationPreset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichCaptionFontStyle), TypeInfoPropertyName = "RichCaptionFontStyle2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichCaptionStyleTextTransform), TypeInfoPropertyName = "RichCaptionStyleTextTransform2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichCaptionStyleTextDecoration), TypeInfoPropertyName = "RichCaptionStyleTextDecoration2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TiktokDestinationOptions))] diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs index c6a262c..23faca7 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs @@ -512,471 +512,479 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Shotstack.RichTextStyleTextTransform? Type121 { get; set; } + public global::Shotstack.RichTextFontStyle? Type121 { get; set; } /// /// /// - public global::Shotstack.RichTextStyleTextDecoration? Type122 { get; set; } + public global::Shotstack.RichTextStyleTextTransform? Type122 { get; set; } /// /// /// - public global::Shotstack.RichTextGradient? Type123 { get; set; } + public global::Shotstack.RichTextStyleTextDecoration? Type123 { get; set; } /// /// /// - public global::Shotstack.RichTextGradientType? Type124 { get; set; } + public global::Shotstack.RichTextGradient? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::Shotstack.RichTextGradientType? Type125 { get; set; } /// /// /// - public global::Shotstack.RichTextGradientStop? Type126 { get; set; } + public global::System.Collections.Generic.IList? Type126 { get; set; } /// /// /// - public global::Shotstack.RichTextAlignmentHorizontal? Type127 { get; set; } + public global::Shotstack.RichTextGradientStop? Type127 { get; set; } /// /// /// - public global::Shotstack.RichTextAlignmentVertical? Type128 { get; set; } + public global::Shotstack.RichTextAlignmentHorizontal? Type128 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationPreset? Type129 { get; set; } + public global::Shotstack.RichTextAlignmentVertical? Type129 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationStyle? Type130 { get; set; } + public global::Shotstack.RichTextAnimationPreset? Type130 { get; set; } /// /// /// - public global::Shotstack.RichTextAnimationDirection? Type131 { get; set; } + public global::Shotstack.RichTextAnimationStyle? Type131 { get; set; } /// /// /// - public global::Shotstack.TweenInterpolation? Type132 { get; set; } + public global::Shotstack.RichTextAnimationDirection? Type132 { get; set; } /// /// /// - public global::Shotstack.TweenEasing? Type133 { get; set; } + public global::Shotstack.TweenInterpolation? Type133 { get; set; } /// /// /// - public global::Shotstack.OutputFormat? Type134 { get; set; } + public global::Shotstack.TweenEasing? Type134 { get; set; } /// /// /// - public global::Shotstack.OutputResolution? Type135 { get; set; } + public global::Shotstack.OutputFormat? Type135 { get; set; } /// /// /// - public global::Shotstack.OutputAspectRatio? Type136 { get; set; } + public global::Shotstack.OutputResolution? Type136 { get; set; } /// /// /// - public global::Shotstack.Size? Type137 { get; set; } + public global::Shotstack.OutputAspectRatio? Type137 { get; set; } /// /// /// - public global::Shotstack.OutputScaleTo? Type138 { get; set; } + public global::Shotstack.Size? Type138 { get; set; } /// /// /// - public global::Shotstack.OutputQuality? Type139 { get; set; } + public global::Shotstack.OutputScaleTo? Type139 { get; set; } /// /// /// - public global::Shotstack.Range? Type140 { get; set; } + public global::Shotstack.OutputQuality? Type140 { get; set; } /// /// /// - public global::Shotstack.Poster? Type141 { get; set; } + public global::Shotstack.Range? Type141 { get; set; } /// /// /// - public global::Shotstack.Thumbnail? Type142 { get; set; } + public global::Shotstack.Poster? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type143 { get; set; } + public global::Shotstack.Thumbnail? Type143 { get; set; } /// /// /// - public global::Shotstack.Destinations? Type144 { get; set; } + public global::System.Collections.Generic.IList? Type144 { get; set; } /// /// /// - public global::Shotstack.ShotstackDestination? Type145 { get; set; } + public global::Shotstack.Destinations? Type145 { get; set; } /// /// /// - public global::Shotstack.MuxDestination? Type146 { get; set; } + public global::Shotstack.ShotstackDestination? Type146 { get; set; } /// /// /// - public global::Shotstack.S3Destination? Type147 { get; set; } + public global::Shotstack.MuxDestination? Type147 { get; set; } /// /// /// - public global::Shotstack.GoogleCloudStorageDestination? Type148 { get; set; } + public global::Shotstack.S3Destination? Type148 { get; set; } /// /// /// - public global::Shotstack.GoogleDriveDestination? Type149 { get; set; } + public global::Shotstack.GoogleCloudStorageDestination? Type149 { get; set; } /// /// /// - public global::Shotstack.VimeoDestination? Type150 { get; set; } + public global::Shotstack.GoogleDriveDestination? Type150 { get; set; } /// /// /// - public global::Shotstack.TiktokDestination? Type151 { get; set; } + public global::Shotstack.VimeoDestination? Type151 { get; set; } /// /// /// - public global::Shotstack.AkamaiNetStorageDestination? Type152 { get; set; } + public global::Shotstack.TiktokDestination? Type152 { get; set; } /// /// /// - public global::Shotstack.AzureBlobStorageDestination? Type153 { get; set; } + public global::Shotstack.AkamaiNetStorageDestination? Type153 { get; set; } /// /// /// - public global::Shotstack.DestinationsDiscriminator? Type154 { get; set; } + public global::Shotstack.AzureBlobStorageDestination? Type154 { get; set; } /// /// /// - public global::Shotstack.MuxDestinationOptions? Type155 { get; set; } + public global::Shotstack.DestinationsDiscriminator? Type155 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type156 { get; set; } + public global::Shotstack.MuxDestinationOptions? Type156 { get; set; } /// /// /// - public global::Shotstack.MuxDestinationOptionsPlaybackPolicyItem? Type157 { get; set; } + public global::System.Collections.Generic.IList? Type157 { get; set; } /// /// /// - public global::Shotstack.S3DestinationOptions? Type158 { get; set; } + public global::Shotstack.MuxDestinationOptionsPlaybackPolicyItem? Type158 { get; set; } /// /// /// - public global::Shotstack.GoogleCloudStorageDestinationOptions? Type159 { get; set; } + public global::Shotstack.S3DestinationOptions? Type159 { get; set; } /// /// /// - public global::Shotstack.GoogleDriveDestinationOptions? Type160 { get; set; } + public global::Shotstack.GoogleCloudStorageDestinationOptions? Type160 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationOptions? Type161 { get; set; } + public global::Shotstack.GoogleDriveDestinationOptions? Type161 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptions? Type162 { get; set; } + public global::Shotstack.VimeoDestinationOptions? Type162 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsView? Type163 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptions? Type163 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsEmbed? Type164 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsView? Type164 { get; set; } /// /// /// - public global::Shotstack.VimeoDestinationPrivacyOptionsComments? Type165 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsEmbed? Type165 { get; set; } /// /// /// - public global::Shotstack.Template? Type166 { get; set; } + public global::Shotstack.VimeoDestinationPrivacyOptionsComments? Type166 { get; set; } /// /// /// - public global::Shotstack.TemplateRender? Type167 { get; set; } + public global::Shotstack.Template? Type167 { get; set; } /// /// /// - public global::Shotstack.Source? Type168 { get; set; } + public global::Shotstack.TemplateRender? Type168 { get; set; } /// /// /// - public global::Shotstack.Outputs? Type169 { get; set; } + public global::Shotstack.Source? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::Shotstack.Outputs? Type170 { get; set; } /// /// /// - public global::Shotstack.Rendition? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::Shotstack.Transcription? Type172 { get; set; } + public global::Shotstack.Rendition? Type172 { get; set; } /// /// /// - public global::Shotstack.RenditionFormat? Type173 { get; set; } + public global::Shotstack.Transcription? Type173 { get; set; } /// /// /// - public global::Shotstack.RenditionFit? Type174 { get; set; } + public global::Shotstack.RenditionFormat? Type174 { get; set; } /// /// /// - public global::Shotstack.RenditionResolution? Type175 { get; set; } + public global::Shotstack.RenditionFit? Type175 { get; set; } /// /// /// - public global::Shotstack.Speed? Type176 { get; set; } + public global::Shotstack.RenditionResolution? Type176 { get; set; } /// /// /// - public global::Shotstack.Enhancements? Type177 { get; set; } + public global::Shotstack.Speed? Type177 { get; set; } /// /// /// - public global::Shotstack.TranscriptionFormat? Type178 { get; set; } + public global::Shotstack.Enhancements? Type178 { get; set; } /// /// /// - public global::Shotstack.AudioEnhancement? Type179 { get; set; } + public global::Shotstack.TranscriptionFormat? Type179 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancement? Type180 { get; set; } + public global::Shotstack.AudioEnhancement? Type180 { get; set; } /// /// /// - public global::Shotstack.AudioEnhancementDiscriminator? Type181 { get; set; } + public global::Shotstack.DolbyEnhancement? Type181 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancementOptions? Type182 { get; set; } + public global::Shotstack.AudioEnhancementDiscriminator? Type182 { get; set; } /// /// /// - public global::Shotstack.DolbyEnhancementOptionsPreset? Type183 { get; set; } + public global::Shotstack.DolbyEnhancementOptions? Type183 { get; set; } /// /// /// - public global::Shotstack.Transfer? Type184 { get; set; } + public global::Shotstack.DolbyEnhancementOptionsPreset? Type184 { get; set; } /// /// /// - public global::Shotstack.QueuedResponse? Type185 { get; set; } + public global::Shotstack.Transfer? Type185 { get; set; } /// /// /// - public global::Shotstack.QueuedResponseData? Type186 { get; set; } + public global::Shotstack.QueuedResponse? Type186 { get; set; } /// /// /// - public global::Shotstack.RenderResponse? Type187 { get; set; } + public global::Shotstack.QueuedResponseData? Type187 { get; set; } /// /// /// - public global::Shotstack.RenderResponseData? Type188 { get; set; } + public global::Shotstack.RenderResponse? Type188 { get; set; } /// /// /// - public global::Shotstack.RenderResponseDataStatus? Type189 { get; set; } + public global::Shotstack.RenderResponseData? Type189 { get; set; } /// /// /// - public global::Shotstack.TemplateResponse? Type190 { get; set; } + public global::Shotstack.RenderResponseDataStatus? Type190 { get; set; } /// /// /// - public global::Shotstack.TemplateResponseData? Type191 { get; set; } + public global::Shotstack.TemplateResponse? Type191 { get; set; } /// /// /// - public global::Shotstack.TemplateDataResponse? Type192 { get; set; } + public global::Shotstack.TemplateResponseData? Type192 { get; set; } /// /// /// - public global::Shotstack.TemplateDataResponseData? Type193 { get; set; } + public global::Shotstack.TemplateDataResponse? Type193 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponse? Type194 { get; set; } + public global::Shotstack.TemplateDataResponseData? Type194 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponseData? Type195 { get; set; } + public global::Shotstack.TemplateListResponse? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::Shotstack.TemplateListResponseData? Type196 { get; set; } /// /// /// - public global::Shotstack.TemplateListResponseItem? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Shotstack.ProbeResponse? Type198 { get; set; } + public global::Shotstack.TemplateListResponseItem? Type198 { get; set; } /// /// /// - public global::Shotstack.AssetResponse? Type199 { get; set; } + public global::Shotstack.ProbeResponse? Type199 { get; set; } /// /// /// - public global::Shotstack.AssetResponseData? Type200 { get; set; } + public global::Shotstack.AssetResponse? Type200 { get; set; } /// /// /// - public global::Shotstack.AssetRenderResponse? Type201 { get; set; } + public global::Shotstack.AssetResponseData? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::Shotstack.AssetRenderResponse? Type202 { get; set; } /// /// /// - public global::Shotstack.AssetResponseAttributes? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::Shotstack.AssetResponseAttributesStatus? Type204 { get; set; } + public global::Shotstack.AssetResponseAttributes? Type204 { get; set; } /// /// /// - public global::Shotstack.TransferResponse? Type205 { get; set; } + public global::Shotstack.AssetResponseAttributesStatus? Type205 { get; set; } /// /// /// - public global::Shotstack.TransferResponseData? Type206 { get; set; } + public global::Shotstack.TransferResponse? Type206 { get; set; } /// /// /// - public global::Shotstack.TransferResponseAttributes? Type207 { get; set; } + public global::Shotstack.TransferResponseData? Type207 { get; set; } /// /// /// - public global::Shotstack.TransferResponseAttributesStatus? Type208 { get; set; } + public global::Shotstack.TransferResponseAttributes? Type208 { get; set; } /// /// /// - public global::Shotstack.QueuedSourceResponse? Type209 { get; set; } + public global::Shotstack.TransferResponseAttributesStatus? Type209 { get; set; } /// /// /// - public global::Shotstack.QueuedSourceResponseData? Type210 { get; set; } + public global::Shotstack.QueuedSourceResponse? Type210 { get; set; } /// /// /// - public global::Shotstack.SourceListResponse? Type211 { get; set; } + public global::Shotstack.QueuedSourceResponseData? Type211 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type212 { get; set; } + public global::Shotstack.SourceListResponse? Type212 { get; set; } /// /// /// - public global::Shotstack.SourceResponseData? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// - public global::Shotstack.SourceResponse? Type214 { get; set; } + public global::Shotstack.SourceResponseData? Type214 { get; set; } /// /// /// - public global::Shotstack.SourceResponseAttributes? Type215 { get; set; } + public global::Shotstack.SourceResponse? Type215 { get; set; } /// /// /// - public global::Shotstack.SourceResponseAttributesStatus? Type216 { get; set; } + public global::Shotstack.SourceResponseAttributes? Type216 { get; set; } /// /// /// - public global::Shotstack.OutputsResponse? Type217 { get; set; } + public global::Shotstack.SourceResponseAttributesStatus? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::Shotstack.OutputsResponse? Type218 { get; set; } /// /// /// - public global::Shotstack.RenditionResponseAttributes? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::Shotstack.RenditionResponseAttributesStatus? Type220 { get; set; } + public global::Shotstack.RenditionResponseAttributes? Type220 { get; set; } /// /// /// - public global::Shotstack.UploadResponse? Type221 { get; set; } + public global::Shotstack.RenditionResponseAttributesStatus? Type221 { get; set; } /// /// /// - public global::Shotstack.UploadResponseData? Type222 { get; set; } + public global::Shotstack.UploadResponse? Type222 { get; set; } /// /// /// - public global::Shotstack.UploadResponseAttributes? Type223 { get; set; } + public global::Shotstack.UploadResponseData? Type223 { get; set; } /// /// /// - public global::Shotstack.IngestErrorResponse? Type224 { get; set; } + public global::Shotstack.UploadResponseAttributes? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::Shotstack.IngestErrorResponse? Type225 { get; set; } /// /// /// - public global::Shotstack.IngestErrorResponseData? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::Shotstack.TextAnimationPreset? Type227 { get; set; } + public global::Shotstack.IngestErrorResponseData? Type227 { get; set; } /// /// /// - public global::Shotstack.RichCaptionStyleTextTransform? Type228 { get; set; } + public global::Shotstack.TextAnimationPreset? Type228 { get; set; } /// /// /// - public global::Shotstack.RichCaptionStyleTextDecoration? Type229 { get; set; } + public global::Shotstack.RichCaptionFontStyle? Type229 { get; set; } /// /// /// - public global::Shotstack.TiktokDestinationOptions? Type230 { get; set; } + public global::Shotstack.RichCaptionStyleTextTransform? Type230 { get; set; } /// /// /// - public global::Shotstack.TiktokDestinationOptionsPrivacyLevel? Type231 { get; set; } + public global::Shotstack.RichCaptionStyleTextDecoration? Type231 { get; set; } /// /// /// - public global::Shotstack.AkamaiNetStorageDestinationOptions? Type232 { get; set; } + public global::Shotstack.TiktokDestinationOptions? Type232 { get; set; } /// /// /// - public global::Shotstack.AzureBlobStorageDestinationOptions? Type233 { get; set; } + public global::Shotstack.TiktokDestinationOptionsPrivacyLevel? Type233 { get; set; } /// /// /// - public global::Shotstack.GenerationResponse? Type234 { get; set; } + public global::Shotstack.AkamaiNetStorageDestinationOptions? Type234 { get; set; } /// /// /// - public global::Shotstack.GenerationResponseStatus? Type235 { get; set; } + public global::Shotstack.AzureBlobStorageDestinationOptions? Type235 { get; set; } /// /// /// - public global::Shotstack.PostGenerateRequest? Type236 { get; set; } + public global::Shotstack.GenerationResponse? Type236 { get; set; } /// /// /// - public global::Shotstack.OneOf? Type237 { get; set; } + public global::Shotstack.GenerationResponseStatus? Type237 { get; set; } + /// + /// + /// + public global::Shotstack.PostGenerateRequest? Type238 { get; set; } + /// + /// + /// + public global::Shotstack.OneOf? Type239 { get; set; } /// /// diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.RichCaptionFont.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.RichCaptionFont.g.cs index 392e881..27d1ee2 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.RichCaptionFont.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.RichCaptionFont.g.cs @@ -33,6 +33,16 @@ public sealed partial class RichCaptionFont [global::System.Text.Json.Serialization.JsonPropertyName("weight")] public object? Weight { get; set; } + /// + /// The font style.
+ /// Default Value: normal
+ /// Example: italic + ///
+ /// italic + [global::System.Text.Json.Serialization.JsonPropertyName("style")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.RichCaptionFontStyleJsonConverter))] + public global::Shotstack.RichCaptionFontStyle? Style { get; set; } + /// /// The text color using hexadecimal color notation.
/// Default Value: #ffffff
@@ -82,6 +92,11 @@ public sealed partial class RichCaptionFont /// The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).
/// Default Value: 400 /// + /// + /// The font style.
+ /// Default Value: normal
+ /// Example: italic + /// /// /// The text color using hexadecimal color notation.
/// Default Value: #ffffff
@@ -103,6 +118,7 @@ public RichCaptionFont( string? family, int? size, object? weight, + global::Shotstack.RichCaptionFontStyle? style, string? color, double? opacity, string? background) @@ -110,6 +126,7 @@ public RichCaptionFont( this.Family = family; this.Size = size; this.Weight = weight; + this.Style = style; this.Color = color; this.Opacity = opacity; this.Background = background; diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.RichCaptionFontStyle.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.RichCaptionFontStyle.g.cs new file mode 100644 index 0000000..a7dc696 --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.RichCaptionFontStyle.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// The font style.
+ /// Default Value: normal
+ /// Example: italic + ///
+ public enum RichCaptionFontStyle + { + /// + /// + /// + Italic, + /// + /// + /// + Normal, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RichCaptionFontStyleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RichCaptionFontStyle value) + { + return value switch + { + RichCaptionFontStyle.Italic => "italic", + RichCaptionFontStyle.Normal => "normal", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RichCaptionFontStyle? ToEnum(string value) + { + return value switch + { + "italic" => RichCaptionFontStyle.Italic, + "normal" => RichCaptionFontStyle.Normal, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.RichTextFont.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.RichTextFont.g.cs index e8def2e..dda65e3 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.RichTextFont.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.RichTextFont.g.cs @@ -33,6 +33,16 @@ public sealed partial class RichTextFont [global::System.Text.Json.Serialization.JsonPropertyName("weight")] public object? Weight { get; set; } + /// + /// The font style.
+ /// Default Value: normal
+ /// Example: italic + ///
+ /// italic + [global::System.Text.Json.Serialization.JsonPropertyName("style")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.RichTextFontStyleJsonConverter))] + public global::Shotstack.RichTextFontStyle? Style { get; set; } + /// /// The text color using hexadecimal color notation.
/// Default Value: #000000
@@ -88,6 +98,11 @@ public sealed partial class RichTextFont /// The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).
/// Default Value: 400 /// + /// + /// The font style.
+ /// Default Value: normal
+ /// Example: italic + /// /// /// The text color using hexadecimal color notation.
/// Default Value: #000000
@@ -112,6 +127,7 @@ public RichTextFont( string? family, int? size, object? weight, + global::Shotstack.RichTextFontStyle? style, string? color, double? opacity, string? background, @@ -120,6 +136,7 @@ public RichTextFont( this.Family = family; this.Size = size; this.Weight = weight; + this.Style = style; this.Color = color; this.Opacity = opacity; this.Background = background; diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.RichTextFontStyle.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.RichTextFontStyle.g.cs new file mode 100644 index 0000000..78c69da --- /dev/null +++ b/src/libs/Shotstack/Generated/Shotstack.Models.RichTextFontStyle.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace Shotstack +{ + /// + /// The font style.
+ /// Default Value: normal
+ /// Example: italic + ///
+ public enum RichTextFontStyle + { + /// + /// + /// + Italic, + /// + /// + /// + Normal, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RichTextFontStyleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RichTextFontStyle value) + { + return value switch + { + RichTextFontStyle.Italic => "italic", + RichTextFontStyle.Normal => "normal", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RichTextFontStyle? ToEnum(string value) + { + return value switch + { + "italic" => RichTextFontStyle.Italic, + "normal" => RichTextFontStyle.Normal, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Shotstack/openapi.json b/src/libs/Shotstack/openapi.json index ee6baf9..3541986 100644 --- a/src/libs/Shotstack/openapi.json +++ b/src/libs/Shotstack/openapi.json @@ -2909,6 +2909,16 @@ "description": "The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).", "default": "400" }, + "style": { + "description": "The font style.", + "type": "string", + "enum": [ + "normal", + "italic" + ], + "default": "normal", + "example": "italic" + }, "color": { "description": "The text color using hexadecimal color notation.", "type": "string", @@ -5364,6 +5374,16 @@ "description": "The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).", "default": "400" }, + "style": { + "description": "The font style.", + "type": "string", + "enum": [ + "normal", + "italic" + ], + "default": "normal", + "example": "italic" + }, "color": { "description": "The text color using hexadecimal color notation.", "type": "string",