@acedatacloud/sdk 2026.1009.1 → 2026.1012.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
@@ -1828,7 +1828,7 @@ var Maestro = class {
1828
1828
  this.transport = transport;
1829
1829
  }
1830
1830
  transport;
1831
- /** Call /maestro/videos. */
1831
+ /** Maestro Videos */
1832
1832
  async generate(options) {
1833
1833
  const body = {};
1834
1834
  body["prompt"] = options.prompt;
@@ -1838,15 +1838,17 @@ var Maestro = class {
1838
1838
  body["langs"] = options.langs ?? ["zh-cn"];
1839
1839
  body["aspect"] = options.aspect ?? "9:16";
1840
1840
  body["duration"] = options.duration ?? 30;
1841
- body["quality"] = options.quality ?? "standard";
1842
1841
  body["scenario"] = options.scenario ?? "auto";
1843
1842
  body["style"] = options.style ?? "auto";
1844
1843
  body["voice"] = options.voice ?? "auto";
1845
1844
  for (const [key, value] of Object.entries(options)) {
1846
- if (!["action", "aspect", "async", "callbackUrl", "duration", "fileUrls", "langs", "maxWait", "pollInterval", "prompt", "quality", "refTaskId", "scenario", "style", "voice", "wait"].includes(key) && value !== void 0) {
1845
+ if (!["action", "aspect", "async", "callbackUrl", "duration", "fileUrls", "langs", "maxWait", "pollInterval", "prompt", "refTaskId", "scenario", "style", "voice", "wait"].includes(key) && value !== void 0) {
1847
1846
  body[key] = value;
1848
1847
  }
1849
1848
  }
1849
+ if (body["langs"].length !== 1) {
1850
+ throw new Error("langs must contain exactly one item");
1851
+ }
1850
1852
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
1851
1853
  body.async = options.async ?? true;
1852
1854
  const result = await this.transport.request("POST", "/maestro/videos", { json: body });