@picsart/ai-sdk 1.133.5 → 1.136.1

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.
Files changed (3) hide show
  1. package/_cli.js +3 -3
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/_cli.js CHANGED
@@ -583,7 +583,7 @@ function validateDescriptor(key, d, val, required) {
583
583
  }
584
584
  break;
585
585
  case "file":
586
- if (d.accept === "image") {
586
+ if (d.accept === "image" && d.max > 1) {
587
587
  if (!Array.isArray(val)) throw new Error(`"${key}" must be an array of URLs`);
588
588
  } else {
589
589
  if (typeof val !== "string") throw new Error(`"${key}" must be a string URL`);
@@ -2710,7 +2710,7 @@ var init_seedance = __esm({
2710
2710
  estimatedTime: 20,
2711
2711
  mode: "video",
2712
2712
  inputType: "t2v",
2713
- badge: ["new", "premium"],
2713
+ badge: ["new", "premium", "hot"],
2714
2714
  description: "Next-gen cinematic video with optional audio generation",
2715
2715
  features: [feat("Image Input", "input"), feat("Audio", "audio"), feat("720p", "resolution"), feat("4-15 sec", "duration")],
2716
2716
  paramConfig: {
@@ -2743,7 +2743,7 @@ var init_seedance = __esm({
2743
2743
  estimatedTime: 10,
2744
2744
  mode: "video",
2745
2745
  inputType: "t2v",
2746
- badge: ["new", "fast", "premium"],
2746
+ badge: ["new", "fast", "premium", "hot"],
2747
2747
  description: "Fast cinematic video generation with quick iteration speed",
2748
2748
  features: [feat("Image Input", "input"), feat("Audio", "audio"), feat("720p", "resolution"), feat("4-15 sec", "duration")],
2749
2749
  paramConfig: {
package/index.js CHANGED
@@ -176,7 +176,7 @@ function validateDescriptor(key, d, val, required) {
176
176
  }
177
177
  break;
178
178
  case "file":
179
- if (d.accept === "image") {
179
+ if (d.accept === "image" && d.max > 1) {
180
180
  if (!Array.isArray(val)) throw new Error(`"${key}" must be an array of URLs`);
181
181
  } else {
182
182
  if (typeof val !== "string") throw new Error(`"${key}" must be a string URL`);
@@ -2202,7 +2202,7 @@ var { MODELS: MODELS12} = defineModels("seedance", [
2202
2202
  estimatedTime: 20,
2203
2203
  mode: "video",
2204
2204
  inputType: "t2v",
2205
- badge: ["new", "premium"],
2205
+ badge: ["new", "premium", "hot"],
2206
2206
  description: "Next-gen cinematic video with optional audio generation",
2207
2207
  features: [feat("Image Input", "input"), feat("Audio", "audio"), feat("720p", "resolution"), feat("4-15 sec", "duration")],
2208
2208
  paramConfig: {
@@ -2235,7 +2235,7 @@ var { MODELS: MODELS12} = defineModels("seedance", [
2235
2235
  estimatedTime: 10,
2236
2236
  mode: "video",
2237
2237
  inputType: "t2v",
2238
- badge: ["new", "fast", "premium"],
2238
+ badge: ["new", "fast", "premium", "hot"],
2239
2239
  description: "Fast cinematic video generation with quick iteration speed",
2240
2240
  features: [feat("Image Input", "input"), feat("Audio", "audio"), feat("720p", "resolution"), feat("4-15 sec", "duration")],
2241
2241
  paramConfig: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "1.133.5",
3
+ "version": "1.136.1",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for 100+ AI models — image, video, and audio generation with Picsart",
6
6
  "license": "MIT",