vidspotai-shared 1.0.76 → 1.0.77

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.
@@ -1 +1 @@
1
- {"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAiSpE,CAAC"}
1
+ {"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAqSpE,CAAC"}
@@ -88,8 +88,12 @@ exports.googleConfigs = {
88
88
  resolution: { allowedValues: ["720p", "1080p"] },
89
89
  duration: { allowedValues: [4, 6, 8] },
90
90
  imageUrl: {},
91
- lastFrameImageUrl: {},
92
- // Lite does NOT support reference images or video extension per the
91
+ // REMOVED — veo-3.1-lite does NOT support last-frame interpolation. Sending
92
+ // first+last frames returns Gemini 400 "Your use case is currently not
93
+ // supported." Per the Gemini API video docs, `lastFrame` is offered only
94
+ // for veo-3.1 and veo-3.1-fast. Kept commented for reference.
95
+ // lastFrameImageUrl: {},
96
+ // Lite also does NOT support reference images or video extension per the
93
97
  // Gemini API spec — only 3.1 and 3.1-fast do.
94
98
  negative_prompt: {},
95
99
  audio: {},
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/services/aiGen/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,wBAAgB,cAAc,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAqIrE"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/services/aiGen/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,wBAAgB,cAAc,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAqJrE"}
@@ -33,6 +33,17 @@ function validateParams(params) {
33
33
  errors.push(`Too many items for ${field}: got ${value.length}, max ${rules.max}`);
34
34
  }
35
35
  }
36
+ // 1c. Capability-field validation. The loop above only iterates fields the
37
+ // model DECLARES, so a feature input the model doesn't support would pass
38
+ // silently here and then fail at the provider with an opaque 400 (e.g.
39
+ // veo-3.1-lite has no last-frame interpolation — only veo-3.1 / veo-3.1-fast
40
+ // do — so first+last frames return Gemini's "Your use case is currently not
41
+ // supported."). Reject up front with a clear, actionable message and avoid a
42
+ // wasted billed provider call.
43
+ if (params.lastFrameImageUrl != null &&
44
+ !("lastFrameImageUrl" in modelConfig.fields)) {
45
+ errors.push(`Model ${params.modelKey} does not support last-frame interpolation (lastFrameImageUrl)`);
46
+ }
36
47
  // 2. Type-specific required fields
37
48
  if (params.type === "image-to-video" &&
38
49
  (!modelConfig.type.includes("image-to-video") || !params.inputImageUrl)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vidspotai-shared",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "exports": {