diff --git a/src/libs/Shotstack/Generated/Shotstack.Ingest.JsonSerializerContext.g.cs b/src/libs/Shotstack/Generated/Shotstack.Ingest.JsonSerializerContext.g.cs index f9ef948..cd7d2de 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Ingest.JsonSerializerContext.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Ingest.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Shotstack { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] @@ -54,7 +49,7 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RenditionFormat), TypeInfoPropertyName = "RenditionFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RenditionFit), TypeInfoPropertyName = "RenditionFit2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RenditionResolution), TypeInfoPropertyName = "RenditionResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Speed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Speed2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Enhancements))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TranscriptionFormat), TypeInfoPropertyName = "TranscriptionFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.AudioEnhancement), TypeInfoPropertyName = "AudioEnhancement2")] diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs index 29f12b3..ce083b6 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs @@ -1,14 +1,12 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Shotstack { /// /// /// + #pragma warning disable CS3016 // Converter type array in this attribute is not CLS-compliant. [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] @@ -357,6 +355,8 @@ namespace Shotstack typeof(global::Shotstack.JsonConverters.OneOfJsonConverter>), + typeof(global::Shotstack.JsonConverters.OneOfJsonConverter>), + typeof(global::Shotstack.JsonConverters.OneOfJsonConverter), typeof(global::Shotstack.JsonConverters.OneOfJsonConverter>), @@ -385,6 +385,7 @@ namespace Shotstack typeof(global::Shotstack.JsonConverters.UnixTimestampJsonConverter), })] + #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Edit))] @@ -393,15 +394,21 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.MergeField))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.EditDisk), TypeInfoPropertyName = "EditDisk2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.EditInstance), TypeInfoPropertyName = "EditInstance2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Soundtrack))] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Font))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Track))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.SoundtrackEffect), TypeInfoPropertyName = "SoundtrackEffect2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Clip))] @@ -421,20 +428,34 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Transformation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.VideoAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ImageAsset))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextAsset))] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichTextAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.AudioAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.LumaAsset))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.CaptionAsset))] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichCaptionAsset))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.HtmlAsset))] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Html5Asset))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAsset))] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ShapeAsset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.SvgAsset))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextToImageAsset))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ImageToVideoAsset))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextToSpeechAsset))] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.AssetDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.AssetDiscriminatorType), TypeInfoPropertyName = "AssetDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.VideoAssetType), TypeInfoPropertyName = "VideoAssetType2")] @@ -443,7 +464,9 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Crop))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ChromaKey))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ImageAssetType), TypeInfoPropertyName = "ImageAssetType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextAssetType), TypeInfoPropertyName = "TextAssetType2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextFont))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextBackground))] @@ -471,7 +494,9 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ShapeAssetCircle))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ShapeAssetLine))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.LumaAssetType), TypeInfoPropertyName = "LumaAssetType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.CaptionAssetType), TypeInfoPropertyName = "CaptionAssetType2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.CaptionFont))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.CaptionBackground))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.CaptionMargin))] @@ -488,18 +513,40 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichCaptionActiveShadow), TypeInfoPropertyName = "RichCaptionActiveShadow2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichCaptionAnimationStyle), TypeInfoPropertyName = "RichCaptionAnimationStyle2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RichCaptionAnimationDirection), TypeInfoPropertyName = "RichCaptionAnimationDirection2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextToImageAssetType), TypeInfoPropertyName = "TextToImageAssetType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ImageToVideoAssetType), TypeInfoPropertyName = "ImageToVideoAssetType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.ImageToVideoAssetAspectRatio), TypeInfoPropertyName = "ImageToVideoAssetAspectRatio2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextToSpeechAssetType), TypeInfoPropertyName = "TextToSpeechAssetType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TextToSpeechAssetEffect), TypeInfoPropertyName = "TextToSpeechAssetEffect2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.HtmlAssetType), TypeInfoPropertyName = "HtmlAssetType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.HtmlAssetPosition), TypeInfoPropertyName = "HtmlAssetPosition2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Html5AssetType), TypeInfoPropertyName = "Html5AssetType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAssetType), TypeInfoPropertyName = "TitleAssetType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAssetStyle), TypeInfoPropertyName = "TitleAssetStyle2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAssetSize), TypeInfoPropertyName = "TitleAssetSize2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TitleAssetPosition), TypeInfoPropertyName = "TitleAssetPosition2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.SvgAssetType), TypeInfoPropertyName = "SvgAssetType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TransitionIn), TypeInfoPropertyName = "TransitionIn2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TransitionOut), TypeInfoPropertyName = "TransitionOut2")] @@ -564,7 +611,7 @@ namespace Shotstack [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RenditionFormat), TypeInfoPropertyName = "RenditionFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RenditionFit), TypeInfoPropertyName = "RenditionFit2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.RenditionResolution), TypeInfoPropertyName = "RenditionResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Speed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Speed2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Enhancements))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.TranscriptionFormat), TypeInfoPropertyName = "TranscriptionFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.AudioEnhancement), TypeInfoPropertyName = "AudioEnhancement2")] diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs index 690b5e6..9a14544 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonSerializerContextTypes.g.cs @@ -741,7 +741,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Shotstack.Speed? Type177 { get; set; } + public global::Shotstack.Speed2? Type177 { get; set; } /// /// /// diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Rendition.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Rendition.g.cs index 3e2ebb1..a589054 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.Rendition.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Rendition.g.cs @@ -100,7 +100,7 @@ public sealed partial class Rendition /// Set the playback speed of a video or audio file. Allows you to preserve the pitch of the audio so that it is sped up without sounding too high pitched or too low. /// [global::System.Text.Json.Serialization.JsonPropertyName("speed")] - public global::Shotstack.Speed? Speed { get; set; } + public global::Shotstack.Speed2? Speed { get; set; } /// /// The keyframe interval is useful to optimize playback, seeking and smoother scrubbing in browsers. The value sets the number of frames between a keyframe. The lower the number, the larger the file. Try a value between 10 and 25 for smooth scrubbing.
@@ -247,7 +247,7 @@ public Rendition( global::Shotstack.RenditionResolution? resolution, int? quality, double? fps, - global::Shotstack.Speed? speed, + global::Shotstack.Speed2? speed, int? keyframeInterval, bool? fixOffset, bool? fixRotation, diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Speed.Json.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Speed2.Json.g.cs similarity index 91% rename from src/libs/Shotstack/Generated/Shotstack.Models.Speed.Json.g.cs rename to src/libs/Shotstack/Generated/Shotstack.Models.Speed2.Json.g.cs index d9f0ad6..453f9c4 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.Speed.Json.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Speed2.Json.g.cs @@ -2,7 +2,7 @@ namespace Shotstack { - public sealed partial class Speed + public sealed partial class Speed2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Shotstack.Speed? FromJson( + public static global::Shotstack.Speed2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Shotstack.Speed), - jsonSerializerContext) as global::Shotstack.Speed; + typeof(global::Shotstack.Speed2), + jsonSerializerContext) as global::Shotstack.Speed2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Shotstack.Speed? FromJson( + public static global::Shotstack.Speed2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.Speed? FromJson( + public static global::Shotstack.Speed2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Shotstack.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.Speed), - jsonSerializerContext).ConfigureAwait(false)) as global::Shotstack.Speed; + typeof(global::Shotstack.Speed2), + jsonSerializerContext).ConfigureAwait(false)) as global::Shotstack.Speed2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Shotstack.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Speed.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Speed2.g.cs similarity index 87% rename from src/libs/Shotstack/Generated/Shotstack.Models.Speed.g.cs rename to src/libs/Shotstack/Generated/Shotstack.Models.Speed2.g.cs index cb26598..0519508 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.Speed.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Speed2.g.cs @@ -6,7 +6,7 @@ namespace Shotstack /// /// Set the playback speed of a video or audio file. Allows you to preserve the pitch of the audio so that it is sped up without sounding too high pitched or too low. /// - public sealed partial class Speed + public sealed partial class Speed2 { /// /// Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Set values less than 1 to slow down the playback speed, i.e. set speed to 0.5 to play back at half speed. Set values greater than 1 to speed up the playback speed, i.e. set speed to 2 to play back at double speed.
@@ -14,7 +14,7 @@ public sealed partial class Speed ///
/// 1.5F [global::System.Text.Json.Serialization.JsonPropertyName("speed")] - public float? Speed1 { get; set; } + public float? Speed { get; set; } /// /// Set whether to adjust the audio pitch or not. Set to false to make the audio sound higher or lower pitched. By default the pitch is preserved.
@@ -31,9 +31,9 @@ public sealed partial class Speed public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// + /// /// Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Set values less than 1 to slow down the playback speed, i.e. set speed to 0.5 to play back at half speed. Set values greater than 1 to speed up the playback speed, i.e. set speed to 2 to play back at double speed.
/// Example: 1.5F /// @@ -44,18 +44,18 @@ public sealed partial class Speed #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public Speed( - float? speed1, + public Speed2( + float? speed, bool? preservePitch) { - this.Speed1 = speed1; + this.Speed = speed; this.PreservePitch = preservePitch; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public Speed() + public Speed2() { } diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs index f8757a0..aa6cdc7 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs @@ -95,12 +95,11 @@ public sealed partial class VideoAsset public global::Shotstack.VideoAssetVolumeEffect? VolumeEffect { get; set; } /// - /// Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).
- /// Example: 1 + /// Adjust the playback speed of the video clip. Use a number for a constant speed or an array of [Tween](./#tocs_tween) objects to change speed over time, for example easing from normal speed up to 3x. ///
- /// 1 [global::System.Text.Json.Serialization.JsonPropertyName("speed")] - public float? Speed { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.OneOfJsonConverter>))] + public global::Shotstack.OneOf>? Speed { get; set; } /// /// Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset. @@ -158,8 +157,7 @@ public sealed partial class VideoAsset /// </ul> /// /// - /// Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).
- /// Example: 1 + /// Adjust the playback speed of the video clip. Use a number for a constant speed or an array of [Tween](./#tocs_tween) objects to change speed over time, for example easing from normal speed up to 3x. /// /// /// Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset. @@ -183,7 +181,7 @@ public VideoAsset( double? trim, global::Shotstack.OneOf>? volume, global::Shotstack.VideoAssetVolumeEffect? volumeEffect, - float? speed, + global::Shotstack.OneOf>? speed, global::Shotstack.Crop? crop, global::Shotstack.ChromaKey? chromaKey, global::Shotstack.VideoAssetType type = global::Shotstack.VideoAssetType.Video) diff --git a/src/libs/Shotstack/Generated/Shotstack.OptionsSupport.g.cs b/src/libs/Shotstack/Generated/Shotstack.OptionsSupport.g.cs index 8d7d51d..d781c9b 100644 --- a/src/libs/Shotstack/Generated/Shotstack.OptionsSupport.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Shotstack.AutoSDK { context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - if (context.Request == null) + var request = context.Request; + if (request == null) { return; } @@ -251,10 +252,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Shotstack.AutoSDK { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Shotstack.AutoSDK for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::Shotstack.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); } private static void ApplyAuthorization( @@ -486,7 +487,7 @@ public sealed class AutoSDKHookContext /// /// The outgoing HTTP request for the current attempt. /// - public global::System.Net.Http.HttpRequestMessage Request { get; set; } = null!; + public global::System.Net.Http.HttpRequestMessage? Request { get; set; } /// /// The HTTP response when one was received. @@ -501,7 +502,7 @@ public sealed class AutoSDKHookContext /// /// The client-wide runtime options. /// - public global::Shotstack.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::Shotstack.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options. diff --git a/src/libs/Shotstack/Generated/Shotstack.Serve.JsonSerializerContext.g.cs b/src/libs/Shotstack/Generated/Shotstack.Serve.JsonSerializerContext.g.cs index d6332bf..ccc6bdf 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Serve.JsonSerializerContext.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Serve.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Shotstack { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/Shotstack/openapi.json b/src/libs/Shotstack/openapi.json index e5e1434..338c30a 100644 --- a/src/libs/Shotstack/openapi.json +++ b/src/libs/Shotstack/openapi.json @@ -1444,12 +1444,24 @@ "type": "string" }, "speed": { - "description": "Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).", - "type": "number", - "format": "float", - "minimum": 0, - "maximum": 10, - "example": 1 + "description": "Adjust the playback speed of the video clip. Use a number for a constant speed or an array of [Tween](./#tocs_tween) objects to change speed over time, for example easing from normal speed up to 3x.", + "oneOf": [ + { + "type": "number", + "description": "The playback speed between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).", + "format": "float", + "minimum": 0, + "maximum": 10, + "example": 1 + }, + { + "type": "array", + "description": "An array of [Tween](./#tocs_tween) objects that change the playback speed over time. A speed of 0 holds the current frame. The clip length is not adjusted, so set it to cover the footage you want to play.", + "items": { + "$ref": "#/components/schemas/Tween" + } + } + ] }, "crop": { "$ref": "#/components/schemas/Crop"