@acedatacloud/sdk 2026.910.0 → 2026.1005.0

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/dist/index.mjs CHANGED
@@ -1117,6 +1117,7 @@ var KLING_MODELS = [
1117
1117
  "kling-v2-5-turbo",
1118
1118
  "kling-v2-6",
1119
1119
  "kling-v3",
1120
+ "kling-v3-turbo",
1120
1121
  "kling-v3-omni",
1121
1122
  "kling-o1"
1122
1123
  ];
@@ -1132,7 +1133,16 @@ function validateGenerateOptions(opts) {
1132
1133
  if (!KLING_MODELS.includes(opts.model)) {
1133
1134
  throw new Error(`model must be one of: ${KLING_MODELS.join(", ")}`);
1134
1135
  }
1135
- const isV3 = opts.model === "kling-v3" || opts.model === "kling-v3-omni";
1136
+ const isTurbo = opts.model === "kling-v3-turbo";
1137
+ const isV3 = opts.model === "kling-v3" || opts.model === "kling-v3-omni" || isTurbo;
1138
+ if (isTurbo) {
1139
+ if (opts.mode !== void 0 && !["std", "pro"].includes(opts.mode) || opts.generateAudio === false) {
1140
+ throw new Error("Turbo supports std/pro with included audio");
1141
+ }
1142
+ if ([opts.endImageUrl, opts.cameraControl, opts.cfgScale, opts.negativePrompt, opts.imageList, opts.videoList, opts.elementList, opts.voiceList].some((value) => value !== void 0) || opts.multiShot || opts.multiPrompt) {
1143
+ throw new Error("Turbo does not support tail frames, camera controls, Omni references or storyboards");
1144
+ }
1145
+ }
1136
1146
  const hasReferences = Boolean(opts.imageList?.length || opts.videoList?.length);
1137
1147
  if (opts.imageList !== void 0 && opts.imageList.length === 0) {
1138
1148
  throw new Error("imageList must be non-empty or omitted");
@@ -1140,7 +1150,7 @@ function validateGenerateOptions(opts) {
1140
1150
  if (opts.videoList !== void 0 && opts.videoList.length === 0) {
1141
1151
  throw new Error("videoList must be non-empty or omitted");
1142
1152
  }
1143
- if ((opts.action === "text2video" || opts.action === "image2video") && !opts.prompt) {
1153
+ if ((opts.action === "text2video" || opts.action === "image2video") && !opts.prompt && !opts.multiPrompt?.length) {
1144
1154
  throw new Error("prompt is required for text2video and image2video");
1145
1155
  }
1146
1156
  if (opts.action === "image2video" && !opts.startImageUrl) {
@@ -1272,6 +1282,11 @@ var Kling = class {
1272
1282
  startImageUrl
1273
1283
  } = opts;
1274
1284
  const body = { action };
1285
+ if (opts.multiShot !== void 0) body.multi_shot = opts.multiShot;
1286
+ if (opts.shotType !== void 0) body.shot_type = opts.shotType;
1287
+ if (opts.multiPrompt !== void 0) body.multi_prompt = opts.multiPrompt;
1288
+ if (opts.elementList !== void 0) body.element_list = opts.elementList;
1289
+ if (opts.voiceList !== void 0) body.voice_list = opts.voiceList;
1275
1290
  if (mode !== void 0) body.mode = mode;
1276
1291
  if (model !== void 0) body.model = model;
1277
1292
  if (prompt !== void 0) body.prompt = prompt;
@@ -1323,6 +1338,18 @@ var Kling = class {
1323
1338
  if (opts.async !== void 0) body.async = opts.async;
1324
1339
  return this.transport.request("POST", "/kling/motion", { json: body });
1325
1340
  }
1341
+ async lipSync(request) {
1342
+ return this.transport.request("POST", "/kling/lip-sync", { json: request });
1343
+ }
1344
+ async talkingPhoto(request) {
1345
+ return this.transport.request("POST", "/kling/talking-photo", { json: request });
1346
+ }
1347
+ async goodsStudio(request) {
1348
+ return this.transport.request("POST", "/kling/goods-studio", { json: request });
1349
+ }
1350
+ async videoCommerce(request) {
1351
+ return this.transport.request("POST", "/kling/video-commerce", { json: request });
1352
+ }
1326
1353
  };
1327
1354
 
1328
1355
  // src/resources/webextrator.ts
@@ -1614,6 +1641,37 @@ var Flux = class {
1614
1641
  }
1615
1642
  return handle;
1616
1643
  }
1644
+ /** Flux Generate Summary */
1645
+ async videos(options) {
1646
+ const body = {};
1647
+ body["mode"] = options.mode;
1648
+ body["action"] = options.action ?? "generate";
1649
+ if (options.prompt !== void 0) body["prompt"] = options.prompt;
1650
+ body["aspect_ratio"] = options.aspectRatio ?? "auto";
1651
+ if (options.duration !== void 0) body["duration"] = options.duration;
1652
+ body["resolution"] = options.resolution ?? "hd";
1653
+ body["version"] = options.version ?? "latest";
1654
+ if (options.generateAudio !== void 0) body["generate_audio"] = options.generateAudio;
1655
+ body["safety_tolerance"] = options.safetyTolerance ?? 2;
1656
+ if (options.draft !== void 0) body["draft"] = options.draft;
1657
+ body["model"] = options.model ?? "flux-3";
1658
+ if (options.keyframes !== void 0) body["keyframes"] = options.keyframes;
1659
+ if (options.startVideo !== void 0) body["start_video"] = options.startVideo;
1660
+ if (options.draftTaskId !== void 0) body["draft_task_id"] = options.draftTaskId;
1661
+ for (const [key, value] of Object.entries(options)) {
1662
+ if (!["action", "aspectRatio", "async", "callbackUrl", "draft", "draftTaskId", "duration", "generateAudio", "keyframes", "maxWait", "mode", "model", "pollInterval", "prompt", "resolution", "safetyTolerance", "startVideo", "version", "wait"].includes(key) && value !== void 0) {
1663
+ body[key] = value;
1664
+ }
1665
+ }
1666
+ if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
1667
+ body.async = options.async ?? true;
1668
+ const result = await this.transport.request("POST", "/flux/videos", { json: body });
1669
+ const handle = new TaskHandle(taskId4(result), "/flux/tasks", this.transport, result);
1670
+ if (options.wait) {
1671
+ await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
1672
+ }
1673
+ return handle;
1674
+ }
1617
1675
  };
1618
1676
 
1619
1677
  // src/resources/providers/hailuo.ts
@@ -2040,8 +2098,10 @@ var Seedance = class {
2040
2098
  if (options.omniReferenceTaskType !== void 0) body["omni_reference_task_type"] = options.omniReferenceTaskType;
2041
2099
  if (options.outputFormat !== void 0) body["output_format"] = options.outputFormat;
2042
2100
  if (options.tools !== void 0) body["tools"] = options.tools;
2101
+ body["priority"] = options.priority ?? 0;
2102
+ if (options.safetyIdentifier !== void 0) body["safety_identifier"] = options.safetyIdentifier;
2043
2103
  for (const [key, value] of Object.entries(options)) {
2044
- if (!["async", "callbackUrl", "camerafixed", "content", "duration", "executionExpiresAfter", "frames", "generateAudio", "maxWait", "model", "omniReferenceTaskType", "outputFormat", "pollInterval", "ratio", "resolution", "returnLastFrame", "seed", "tools", "wait", "watermark"].includes(key) && value !== void 0) {
2104
+ if (!["async", "callbackUrl", "camerafixed", "content", "duration", "executionExpiresAfter", "frames", "generateAudio", "maxWait", "model", "omniReferenceTaskType", "outputFormat", "pollInterval", "priority", "ratio", "resolution", "returnLastFrame", "safetyIdentifier", "seed", "tools", "wait", "watermark"].includes(key) && value !== void 0) {
2045
2105
  body[key] = value;
2046
2106
  }
2047
2107
  }
@@ -2320,6 +2380,24 @@ var Suno = class {
2320
2380
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2321
2381
  return await this.transport.request("POST", "/suno/upload", { json: body });
2322
2382
  }
2383
+ /** Suno Mp3 */
2384
+ async mp3(options) {
2385
+ const body = {};
2386
+ body["audio_id"] = options.audioId;
2387
+ for (const [key, value] of Object.entries(options)) {
2388
+ if (!["async", "audioId", "callbackUrl", "maxWait", "pollInterval", "wait"].includes(key) && value !== void 0) {
2389
+ body[key] = value;
2390
+ }
2391
+ }
2392
+ if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2393
+ body.async = options.async ?? true;
2394
+ const result = await this.transport.request("POST", "/suno/mp3", { json: body });
2395
+ const handle = new TaskHandle(taskId15(result), "/suno/tasks", this.transport, result);
2396
+ if (options.wait) {
2397
+ await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
2398
+ }
2399
+ return handle;
2400
+ }
2323
2401
  };
2324
2402
 
2325
2403
  // src/resources/providers/wan.ts