diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs index ebb43bd..6c031f9 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs @@ -273,6 +273,7 @@ public bool TryPickLuma( : throw new global::System.InvalidOperationException($"Expected union variant 'Luma' but the value was {ToString()}."); /// + /// **Notice: The CaptionAsset is deprecated, use the [RichCaptionAsset](#tocs_richcaptionasset) instead.**
/// The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will
/// be read and burnt to the video.
/// Captions can be applied independently from a video or audio file for greater
diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.CaptionAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.CaptionAsset.g.cs index 0f6ee24..cda5da9 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.CaptionAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.CaptionAsset.g.cs @@ -4,6 +4,7 @@ namespace Shotstack { /// + /// **Notice: The CaptionAsset is deprecated, use the [RichCaptionAsset](#tocs_richcaptionasset) instead.**
/// The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will
/// be read and burnt to the video.
/// Captions can be applied independently from a video or audio file for greater
@@ -12,6 +13,7 @@ namespace Shotstack /// To sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with
/// matching start and end time. ///
+ [global::System.Obsolete("This model marked as deprecated.")] public sealed partial class CaptionAsset { /// @@ -21,6 +23,7 @@ public sealed partial class CaptionAsset /// global::Shotstack.CaptionAssetType.Caption [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.CaptionAssetTypeJsonConverter))] + [global::System.Obsolete("This property marked as deprecated.")] public global::Shotstack.CaptionAssetType Type { get; set; } = global::Shotstack.CaptionAssetType.Caption; /// @@ -30,24 +33,28 @@ public sealed partial class CaptionAsset /// https://s3-ap-northeast-1.amazonaws.com/my-bucket/captions.srt [global::System.Text.Json.Serialization.JsonPropertyName("src")] [global::System.Text.Json.Serialization.JsonRequired] + [global::System.Obsolete("This property marked as deprecated.")] public required string Src { get; set; } /// /// Font properties for captions text. /// [global::System.Text.Json.Serialization.JsonPropertyName("font")] + [global::System.Obsolete("This property marked as deprecated.")] public global::Shotstack.CaptionFont? Font { get; set; } /// /// Displays a background box behind the caption text. /// [global::System.Text.Json.Serialization.JsonPropertyName("background")] + [global::System.Obsolete("This property marked as deprecated.")] public global::Shotstack.CaptionBackground? Background { get; set; } /// /// The margin properties for captions. Margins are used to position the caption text and background on the screen. /// [global::System.Text.Json.Serialization.JsonPropertyName("margin")] + [global::System.Obsolete("This property marked as deprecated.")] public global::Shotstack.CaptionMargin? Margin { get; set; } /// @@ -56,6 +63,7 @@ public sealed partial class CaptionAsset /// /// 2 [global::System.Text.Json.Serialization.JsonPropertyName("trim")] + [global::System.Obsolete("This property marked as deprecated.")] public double? Trim { get; set; } /// @@ -64,6 +72,7 @@ public sealed partial class CaptionAsset /// /// 1 [global::System.Text.Json.Serialization.JsonPropertyName("speed")] + [global::System.Obsolete("This property marked as deprecated.")] public float? Speed { get; set; } /// @@ -128,17 +137,5 @@ public CaptionAsset() { } - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static CaptionAsset FromSrc(string src) - { - return new CaptionAsset - { - Src = src, - }; - } - } } \ No newline at end of file diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.RenderResponseData.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.RenderResponseData.g.cs index b68637e..efb7d48 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.RenderResponseData.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.RenderResponseData.g.cs @@ -40,6 +40,7 @@ public sealed partial class RenderResponseData /// <li>`fetching` - assets are being fetched</li>
/// <li>`preprocessing` - video assets are being processed for compatibility</li>
/// <li>`rendering` - the asset is being rendered</li>
+ /// <li>`generating` - AI/media generation is in progress</li>
/// <li>`saving` - the final asset is being saved to storage</li>
/// <li>`done` - the asset is ready to be downloaded</li>
/// <li>`failed` - there was an error rendering the asset</li>
@@ -143,6 +144,7 @@ public sealed partial class RenderResponseData /// <li>`fetching` - assets are being fetched</li>
/// <li>`preprocessing` - video assets are being processed for compatibility</li>
/// <li>`rendering` - the asset is being rendered</li>
+ /// <li>`generating` - AI/media generation is in progress</li>
/// <li>`saving` - the final asset is being saved to storage</li>
/// <li>`done` - the asset is ready to be downloaded</li>
/// <li>`failed` - there was an error rendering the asset</li>
diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.RenderResponseDataStatus.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.RenderResponseDataStatus.g.cs index f2d4af9..edc48f3 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.RenderResponseDataStatus.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.RenderResponseDataStatus.g.cs @@ -9,6 +9,7 @@ namespace Shotstack /// <li>`fetching` - assets are being fetched</li>
/// <li>`preprocessing` - video assets are being processed for compatibility</li>
/// <li>`rendering` - the asset is being rendered</li>
+ /// <li>`generating` - AI/media generation is in progress</li>
/// <li>`saving` - the final asset is being saved to storage</li>
/// <li>`done` - the asset is ready to be downloaded</li>
/// <li>`failed` - there was an error rendering the asset</li>
@@ -32,6 +33,10 @@ public enum RenderResponseDataStatus /// /// /// + Generating, + /// + /// + /// Preprocessing, /// /// @@ -62,6 +67,7 @@ public static string ToValueString(this RenderResponseDataStatus value) RenderResponseDataStatus.Done => "done", RenderResponseDataStatus.Failed => "failed", RenderResponseDataStatus.Fetching => "fetching", + RenderResponseDataStatus.Generating => "generating", RenderResponseDataStatus.Preprocessing => "preprocessing", RenderResponseDataStatus.Queued => "queued", RenderResponseDataStatus.Rendering => "rendering", @@ -79,6 +85,7 @@ public static string ToValueString(this RenderResponseDataStatus value) "done" => RenderResponseDataStatus.Done, "failed" => RenderResponseDataStatus.Failed, "fetching" => RenderResponseDataStatus.Fetching, + "generating" => RenderResponseDataStatus.Generating, "preprocessing" => RenderResponseDataStatus.Preprocessing, "queued" => RenderResponseDataStatus.Queued, "rendering" => RenderResponseDataStatus.Rendering, diff --git a/src/libs/Shotstack/openapi.json b/src/libs/Shotstack/openapi.json index d27b376..e94f170 100644 --- a/src/libs/Shotstack/openapi.json +++ b/src/libs/Shotstack/openapi.json @@ -1894,7 +1894,8 @@ ] }, "CaptionAsset": { - "description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.\n", + "deprecated": true, + "description": "**Notice: The CaptionAsset is deprecated, use the [RichCaptionAsset](#tocs_richcaptionasset) instead.**\n\nThe CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.\n", "type": "object", "properties": { "type": { @@ -4458,12 +4459,13 @@ "example": "basic" }, "status": { - "description": "The status of the render task.
    \n
  • `queued` - render is queued waiting to be rendered
  • \n
  • `fetching` - assets are being fetched
  • \n
  • `preprocessing` - video assets are being processed for compatibility
  • \n
  • `rendering` - the asset is being rendered
  • \n
  • `saving` - the final asset is being saved to storage
  • \n
  • `done` - the asset is ready to be downloaded
  • \n
  • `failed` - there was an error rendering the asset
  • \n
", + "description": "The status of the render task.
    \n
  • `queued` - render is queued waiting to be rendered
  • \n
  • `fetching` - assets are being fetched
  • \n
  • `preprocessing` - video assets are being processed for compatibility
  • \n
  • `rendering` - the asset is being rendered
  • \n
  • `generating` - AI/media generation is in progress
  • \n
  • `saving` - the final asset is being saved to storage
  • \n
  • `done` - the asset is ready to be downloaded
  • \n
  • `failed` - there was an error rendering the asset
  • \n
", "enum": [ "queued", "fetching", "preprocessing", "rendering", + "generating", "saving", "done", "failed"