Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/libs/Shotstack/Generated/Shotstack.Models.Asset.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ namespace Shotstack

/// <summary>
/// The VideoAsset adds a video to a Clip. The video can be sourced from a URL<br/>
/// (`src`) or generated from a text prompt (`prompt`), optionally seeded from a<br/>
/// starting image (`seed`). Exactly one of `src` or `prompt` must be provided.<br/>
/// (`src`) or generated from a text prompt (`prompt`), optionally from a<br/>
/// starting image (`inputSrc`). Exactly one of `src` or `prompt` must be provided.<br/>
/// - **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.<br/>
/// - **Generated:** set `prompt` to describe the motion. Optionally set `seed` to<br/>
/// a starting image URL (image-to-video). Use `model` to choose the generator<br/>
/// - **Generated:** set `prompt` to describe the motion. Optionally set `inputSrc`<br/>
/// to a starting image URL (image-to-video). Use `model` to choose the generator<br/>
/// (e.g. `luma-ray-3`, `runpod-itv-mini`). The generated `src` is filled in<br/>
/// automatically.
/// </summary>
Expand Down Expand Up @@ -583,7 +583,7 @@ public bool TryPickTextToImage(

/// <summary>
/// **Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset)<br/>
/// with `prompt` and `seed` instead.** This type continues to function and is<br/>
/// with `prompt` and `inputSrc` instead.** This type continues to function and is<br/>
/// internally rewritten to VideoAsset; no behaviour change for existing<br/>
/// integrations.<br/>
/// The ImageToVideoAsset lets you create a video from an image and a text prompt.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Shotstack
{
/// <summary>
/// **Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset)<br/>
/// with `prompt` and `seed` instead.** This type continues to function and is<br/>
/// with `prompt` and `inputSrc` instead.** This type continues to function and is<br/>
/// internally rewritten to VideoAsset; no behaviour change for existing<br/>
/// integrations.<br/>
/// The ImageToVideoAsset lets you create a video from an image and a text prompt.
Expand Down
35 changes: 23 additions & 12 deletions src/libs/Shotstack/Generated/Shotstack.Models.VideoAsset.g.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace Shotstack
{
/// <summary>
/// The VideoAsset adds a video to a Clip. The video can be sourced from a URL<br/>
/// (`src`) or generated from a text prompt (`prompt`), optionally seeded from a<br/>
/// starting image (`seed`). Exactly one of `src` or `prompt` must be provided.<br/>
/// (`src`) or generated from a text prompt (`prompt`), optionally from a<br/>
/// starting image (`inputSrc`). Exactly one of `src` or `prompt` must be provided.<br/>
/// - **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.<br/>
/// - **Generated:** set `prompt` to describe the motion. Optionally set `seed` to<br/>
/// a starting image URL (image-to-video). Use `model` to choose the generator<br/>
/// - **Generated:** set `prompt` to describe the motion. Optionally set `inputSrc`<br/>
/// to a starting image URL (image-to-video). Use `model` to choose the generator<br/>
/// (e.g. `luma-ray-3`, `runpod-itv-mini`). The generated `src` is filled in<br/>
/// automatically.
/// </summary>
Expand All @@ -33,19 +35,28 @@ public sealed partial class VideoAsset
public string? Src { get; set; }

/// <summary>
/// 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.<br/>
/// 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.<br/>
/// Example: Slowly zoom out and orbit left around the object.
/// </summary>
/// <example>Slowly zoom out and orbit left around the object.</example>
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
public string? Prompt { get; set; }

/// <summary>
/// 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.<br/>
/// 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.<br/>
/// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg
/// </summary>
/// <example>https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg</example>
[global::System.Text.Json.Serialization.JsonPropertyName("inputSrc")]
public string? InputSrc { get; set; }

/// <summary>
/// **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.<br/>
/// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg
/// </summary>
/// <example>https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg</example>
[global::System.Text.Json.Serialization.JsonPropertyName("seed")]
[global::System.Obsolete("This property marked as deprecated.")]
public string? Seed { get; set; }

/// <summary>
Expand Down Expand Up @@ -124,12 +135,12 @@ public sealed partial class VideoAsset
/// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/video.mp4
/// </param>
/// <param name="prompt">
/// 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.<br/>
/// 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.<br/>
/// Example: Slowly zoom out and orbit left around the object.
/// </param>
/// <param name="seed">
/// 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.<br/>
/// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg
/// <param name="inputSrc">
/// 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.<br/>
/// Example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg
/// </param>
/// <param name="model">
/// 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.<br/>
Expand Down Expand Up @@ -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,
Expand All @@ -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;
Expand Down
15 changes: 11 additions & 4 deletions src/libs/Shotstack/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
Expand Down Expand Up @@ -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",
Expand Down