@acedatacloud/sdk 2026.811.0 → 2026.814.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.js CHANGED
@@ -2028,23 +2028,26 @@ var Seedance = class {
2028
2028
  this.transport = transport;
2029
2029
  }
2030
2030
  transport;
2031
- /** ByteDance Seedance video generation API. Supports doubao-seedance-1-0-pro-250528, doubao-seedance-1-0-pro-fast-251015, doubao-seedance-1-5-pro-251215, doubao-seedance-1-0-lite-t2v-250428, and doubao-s */
2031
+ /** Call /seedance/videos. */
2032
2032
  async generate(options) {
2033
2033
  const body = {};
2034
2034
  body["model"] = options.model;
2035
2035
  body["content"] = options.content;
2036
- if (options.seed !== void 0) body["seed"] = options.seed;
2036
+ if (options.resolution !== void 0) body["resolution"] = options.resolution;
2037
2037
  body["ratio"] = options.ratio ?? "16:9";
2038
- if (options.frames !== void 0) body["frames"] = options.frames;
2039
2038
  if (options.duration !== void 0) body["duration"] = options.duration;
2040
- if (options.watermark !== void 0) body["watermark"] = options.watermark;
2041
- if (options.resolution !== void 0) body["resolution"] = options.resolution;
2039
+ if (options.frames !== void 0) body["frames"] = options.frames;
2040
+ if (options.seed !== void 0) body["seed"] = options.seed;
2042
2041
  if (options.camerafixed !== void 0) body["camerafixed"] = options.camerafixed;
2042
+ if (options.watermark !== void 0) body["watermark"] = options.watermark;
2043
2043
  body["generate_audio"] = options.generateAudio ?? false;
2044
2044
  body["return_last_frame"] = options.returnLastFrame ?? false;
2045
2045
  body["execution_expires_after"] = options.executionExpiresAfter ?? 172800;
2046
+ if (options.omniReferenceTaskType !== void 0) body["omni_reference_task_type"] = options.omniReferenceTaskType;
2047
+ if (options.outputFormat !== void 0) body["output_format"] = options.outputFormat;
2048
+ if (options.tools !== void 0) body["tools"] = options.tools;
2046
2049
  for (const [key, value] of Object.entries(options)) {
2047
- if (!["async", "callbackUrl", "camerafixed", "content", "duration", "executionExpiresAfter", "frames", "generateAudio", "maxWait", "model", "pollInterval", "ratio", "resolution", "returnLastFrame", "seed", "wait", "watermark"].includes(key) && value !== void 0) {
2050
+ 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) {
2048
2051
  body[key] = value;
2049
2052
  }
2050
2053
  }