@ai-sdk/provider 3.0.13 → 3.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/provider
2
2
 
3
+ ## 3.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - e1af05f: feat (video): support video (not just image) reference inputs in `inputReferences` for reference-to-video generation
8
+
3
9
  ## 3.0.13
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -3837,6 +3837,12 @@ type VideoModelV3File = {
3837
3837
  * The URL of the video or image file.
3838
3838
  */
3839
3839
  url: string;
3840
+ /**
3841
+ * The media type of the referenced file, when known.
3842
+ * Video types: 'video/mp4', 'video/webm', 'video/quicktime'
3843
+ * Image types: 'image/png', 'image/jpeg', 'image/webp'
3844
+ */
3845
+ mediaType?: string;
3840
3846
  /**
3841
3847
  * Optional provider-specific metadata for the file part.
3842
3848
  */
@@ -3916,7 +3922,11 @@ type VideoModelV3CallOptions = {
3916
3922
  */
3917
3923
  frameImages: Array<VideoModelV3FrameImage> | undefined;
3918
3924
  /**
3919
- * Reference image inputs for reference-to-video generation.
3925
+ * Reference inputs for reference-to-video generation.
3926
+ *
3927
+ * Each entry is an image or video file. Providers route each reference by
3928
+ * its media type (image vs. video) and warn when a reference kind is
3929
+ * unsupported.
3920
3930
  */
3921
3931
  inputReferences: Array<VideoModelV3File> | undefined;
3922
3932
  /**
package/dist/index.d.ts CHANGED
@@ -3837,6 +3837,12 @@ type VideoModelV3File = {
3837
3837
  * The URL of the video or image file.
3838
3838
  */
3839
3839
  url: string;
3840
+ /**
3841
+ * The media type of the referenced file, when known.
3842
+ * Video types: 'video/mp4', 'video/webm', 'video/quicktime'
3843
+ * Image types: 'image/png', 'image/jpeg', 'image/webp'
3844
+ */
3845
+ mediaType?: string;
3840
3846
  /**
3841
3847
  * Optional provider-specific metadata for the file part.
3842
3848
  */
@@ -3916,7 +3922,11 @@ type VideoModelV3CallOptions = {
3916
3922
  */
3917
3923
  frameImages: Array<VideoModelV3FrameImage> | undefined;
3918
3924
  /**
3919
- * Reference image inputs for reference-to-video generation.
3925
+ * Reference inputs for reference-to-video generation.
3926
+ *
3927
+ * Each entry is an image or video file. Providers route each reference by
3928
+ * its media type (image vs. video) and warn when a reference kind is
3929
+ * unsupported.
3920
3930
  */
3921
3931
  inputReferences: Array<VideoModelV3File> | undefined;
3922
3932
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "3.0.13",
3
+ "version": "3.0.14",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -63,7 +63,11 @@ export type VideoModelV3CallOptions = {
63
63
  frameImages: Array<VideoModelV3FrameImage> | undefined;
64
64
 
65
65
  /**
66
- * Reference image inputs for reference-to-video generation.
66
+ * Reference inputs for reference-to-video generation.
67
+ *
68
+ * Each entry is an image or video file. Providers route each reference by
69
+ * its media type (image vs. video) and warn when a reference kind is
70
+ * unsupported.
67
71
  */
68
72
  inputReferences: Array<VideoModelV3File> | undefined;
69
73
 
@@ -33,6 +33,13 @@ export type VideoModelV3File =
33
33
  */
34
34
  url: string;
35
35
 
36
+ /**
37
+ * The media type of the referenced file, when known.
38
+ * Video types: 'video/mp4', 'video/webm', 'video/quicktime'
39
+ * Image types: 'image/png', 'image/jpeg', 'image/webp'
40
+ */
41
+ mediaType?: string;
42
+
36
43
  /**
37
44
  * Optional provider-specific metadata for the file part.
38
45
  */