From 3194b480f74c3fbd37958300e4539f2c574efb3d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 16 Jun 2026 20:45:28 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Shotstack.Models.Asset.g.cs | 10 +++--- .../Shotstack.Models.ImageToVideoAsset.g.cs | 2 +- .../Shotstack.Models.VideoAsset.g.cs | 35 ++++++++++++------- src/libs/Shotstack/openapi.json | 15 +++++--- 4 files changed, 40 insertions(+), 22 deletions(-) diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs index 7ae358a..430501f 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs @@ -16,11 +16,11 @@ namespace Shotstack /// /// The VideoAsset adds a video to a Clip. The video can be sourced from a URL
- /// (`src`) or generated from a text prompt (`prompt`), optionally seeded from a
- /// starting image (`seed`). Exactly one of `src` or `prompt` must be provided.
+ /// (`src`) or generated from a text prompt (`prompt`), optionally from a
+ /// starting image (`inputSrc`). Exactly one of `src` or `prompt` must be provided.
/// - **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.
- /// - **Generated:** set `prompt` to describe the motion. Optionally set `seed` to
- /// a starting image URL (image-to-video). Use `model` to choose the generator
+ /// - **Generated:** set `prompt` to describe the motion. Optionally set `inputSrc`
+ /// to a starting image URL (image-to-video). Use `model` to choose the generator
/// (e.g. `luma-ray-3`, `runpod-itv-mini`). The generated `src` is filled in
/// automatically. ///
@@ -583,7 +583,7 @@ public bool TryPickTextToImage( /// /// **Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset)
- /// with `prompt` and `seed` instead.** This type continues to function and is
+ /// with `prompt` and `inputSrc` instead.** This type continues to function and is
/// internally rewritten to VideoAsset; no behaviour change for existing
/// integrations.
/// The ImageToVideoAsset lets you create a video from an image and a text prompt. diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.ImageToVideoAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.ImageToVideoAsset.g.cs index dd3cd5f..0c2a1b0 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.ImageToVideoAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.ImageToVideoAsset.g.cs @@ -5,7 +5,7 @@ namespace Shotstack { /// /// **Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset)
- /// with `prompt` and `seed` instead.** This type continues to function and is
+ /// with `prompt` and `inputSrc` instead.** This type continues to function and is
/// internally rewritten to VideoAsset; no behaviour change for existing
/// integrations.
/// The ImageToVideoAsset lets you create a video from an image and a text prompt. diff --git a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs index 530aa88..cca0b30 100644 --- a/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs @@ -1,15 +1,17 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace Shotstack { /// /// The VideoAsset adds a video to a Clip. The video can be sourced from a URL
- /// (`src`) or generated from a text prompt (`prompt`), optionally seeded from a
- /// starting image (`seed`). Exactly one of `src` or `prompt` must be provided.
+ /// (`src`) or generated from a text prompt (`prompt`), optionally from a
+ /// starting image (`inputSrc`). Exactly one of `src` or `prompt` must be provided.
/// - **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.
- /// - **Generated:** set `prompt` to describe the motion. Optionally set `seed` to
- /// a starting image URL (image-to-video). Use `model` to choose the generator
+ /// - **Generated:** set `prompt` to describe the motion. Optionally set `inputSrc`
+ /// to a starting image URL (image-to-video). Use `model` to choose the generator
/// (e.g. `luma-ray-3`, `runpod-itv-mini`). The generated `src` is filled in
/// automatically. ///
@@ -33,7 +35,7 @@ public sealed partial class VideoAsset public string? Src { get; set; } /// - /// A text prompt to generate the video from. When set without `src`, the engine generates a video and fills `src` automatically. Optionally pair with `seed` for image-to-video. Use `model` to choose the generator.
+ /// A text prompt to generate the video from. When set without `src`, the engine generates a video and fills `src` automatically. Optionally pair with `inputSrc` for image-to-video. Use `model` to choose the generator.
/// Example: Slowly zoom out and orbit left around the object. ///
/// Slowly zoom out and orbit left around the object. @@ -41,11 +43,20 @@ public sealed partial class VideoAsset public string? Prompt { get; set; } /// - /// Seed image URL for image-to-video generation. The image is used as the starting frame; `prompt` describes the motion. Has no effect unless `prompt` is set.
+ /// Input image URL for image-to-video generation. The image is used as the starting frame; `prompt` describes the motion. Has no effect unless `prompt` is set.
+ /// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg + ///
+ /// https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg + [global::System.Text.Json.Serialization.JsonPropertyName("inputSrc")] + public string? InputSrc { get; set; } + + /// + /// **Deprecated — use `inputSrc`.** Legacy alias for the image-to-video input image URL, accepted and normalised to `inputSrc` on ingest. The name is misleading — industry-wide `seed` means an integer RNG sampling seed — and will be removed in a future major version.
/// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg ///
/// https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + [global::System.Obsolete("This property marked as deprecated.")] public string? Seed { get; set; } /// @@ -124,12 +135,12 @@ public sealed partial class VideoAsset /// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/video.mp4 /// /// - /// A text prompt to generate the video from. When set without `src`, the engine generates a video and fills `src` automatically. Optionally pair with `seed` for image-to-video. Use `model` to choose the generator.
+ /// A text prompt to generate the video from. When set without `src`, the engine generates a video and fills `src` automatically. Optionally pair with `inputSrc` for image-to-video. Use `model` to choose the generator.
/// Example: Slowly zoom out and orbit left around the object. /// - /// - /// Seed image URL for image-to-video generation. The image is used as the starting frame; `prompt` describes the motion. Has no effect unless `prompt` is set.
- /// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg + /// + /// Input image URL for image-to-video generation. The image is used as the starting frame; `prompt` describes the motion. Has no effect unless `prompt` is set.
+ /// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg /// /// /// The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`). Defaults to the platform's preferred generator if omitted.
@@ -173,7 +184,7 @@ public sealed partial class VideoAsset public VideoAsset( string? src, string? prompt, - string? seed, + string? inputSrc, string? model, bool? transcode, double? trim, @@ -187,7 +198,7 @@ public VideoAsset( this.Type = type; this.Src = src; this.Prompt = prompt; - this.Seed = seed; + this.InputSrc = inputSrc; this.Model = model; this.Transcode = transcode; this.Trim = trim; diff --git a/src/libs/Shotstack/openapi.json b/src/libs/Shotstack/openapi.json index dcbc074..2a0c222 100644 --- a/src/libs/Shotstack/openapi.json +++ b/src/libs/Shotstack/openapi.json @@ -1151,7 +1151,7 @@ "additionalProperties": false }, "VideoAsset": { - "description": "The VideoAsset adds a video to a Clip. The video can be sourced from a URL\n(`src`) or generated from a text prompt (`prompt`), optionally seeded from a\nstarting image (`seed`). Exactly one of `src` or `prompt` must be provided.\n\n- **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.\n- **Generated:** set `prompt` to describe the motion. Optionally set `seed` to\n a starting image URL (image-to-video). Use `model` to choose the generator\n (e.g. `luma-ray-3`, `runpod-itv-mini`). The generated `src` is filled in\n automatically.\n", + "description": "The VideoAsset adds a video to a Clip. The video can be sourced from a URL\n(`src`) or generated from a text prompt (`prompt`), optionally from a\nstarting image (`inputSrc`). Exactly one of `src` or `prompt` must be provided.\n\n- **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.\n- **Generated:** set `prompt` to describe the motion. Optionally set `inputSrc`\n to a starting image URL (image-to-video). Use `model` to choose the generator\n (e.g. `luma-ray-3`, `runpod-itv-mini`). The generated `src` is filled in\n automatically.\n", "type": "object", "properties": { "type": { @@ -1170,13 +1170,20 @@ "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/video.mp4" }, "prompt": { - "description": "A text prompt to generate the video from. When set without `src`, the engine generates a video and fills `src` automatically. Optionally pair with `seed` for image-to-video. Use `model` to choose the generator.", + "description": "A text prompt to generate the video from. When set without `src`, the engine generates a video and fills `src` automatically. Optionally pair with `inputSrc` for image-to-video. Use `model` to choose the generator.", "type": "string", "maxLength": 4000, "example": "Slowly zoom out and orbit left around the object." }, + "inputSrc": { + "description": "Input image URL for image-to-video generation. The image is used as the starting frame; `prompt` describes the motion. Has no effect unless `prompt` is set.", + "type": "string", + "minLength": 1, + "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg" + }, "seed": { - "description": "Seed image URL for image-to-video generation. The image is used as the starting frame; `prompt` describes the motion. Has no effect unless `prompt` is set.", + "deprecated": true, + "description": "**Deprecated \u2014 use `inputSrc`.** Legacy alias for the image-to-video input image URL, accepted and normalised to `inputSrc` on ingest. The name is misleading \u2014 industry-wide `seed` means an integer RNG sampling seed \u2014 and will be removed in a future major version.", "type": "string", "minLength": 1, "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg" @@ -1969,7 +1976,7 @@ }, "ImageToVideoAsset": { "deprecated": true, - "description": "**Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset)\nwith `prompt` and `seed` instead.** This type continues to function and is\ninternally rewritten to VideoAsset; no behaviour change for existing\nintegrations.\n\nThe ImageToVideoAsset lets you create a video from an image and a text prompt.\n", + "description": "**Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset)\nwith `prompt` and `inputSrc` instead.** This type continues to function and is\ninternally rewritten to VideoAsset; no behaviour change for existing\nintegrations.\n\nThe ImageToVideoAsset lets you create a video from an image and a text prompt.\n", "properties": { "type": { "type": "string",