@acedatacloud/sdk 2026.807.0 → 2026.809.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
@@ -527,9 +527,9 @@ var Tasks = class {
527
527
  }
528
528
  transport;
529
529
  retrieve(opts) {
530
- const { taskId: taskId14, ...rest } = opts;
530
+ const { taskId: taskId15, ...rest } = opts;
531
531
  return this.transport.request("POST", "/captcha/tasks", {
532
- json: { task_id: taskId14, ...rest }
532
+ json: { task_id: taskId15, ...rest }
533
533
  });
534
534
  }
535
535
  };
@@ -637,8 +637,8 @@ var TaskHandle = class {
637
637
  pollEndpoint;
638
638
  transport;
639
639
  _result = null;
640
- constructor(taskId14, pollEndpoint, transport, submitted) {
641
- this.id = taskId14;
640
+ constructor(taskId15, pollEndpoint, transport, submitted) {
641
+ this.id = taskId15;
642
642
  this.pollEndpoint = pollEndpoint;
643
643
  this.transport = transport;
644
644
  if (submitted && artifactUrls({ response: submitted }).length > 0) {
@@ -716,9 +716,9 @@ var Images = class {
716
716
  if (callbackUrl !== void 0) body.callback_url = callbackUrl;
717
717
  const endpoint = `/${provider}/images`;
718
718
  const result = await this.transport.request("POST", endpoint, { json: body });
719
- const taskId14 = result.task_id;
720
- if (!taskId14 || result.data && !shouldWait) return result;
721
- const handle = new TaskHandle(taskId14, `/${provider}/tasks`, this.transport);
719
+ const taskId15 = result.task_id;
720
+ if (!taskId15 || result.data && !shouldWait) return result;
721
+ const handle = new TaskHandle(taskId15, `/${provider}/tasks`, this.transport);
722
722
  if (shouldWait) return handle.wait({ pollInterval, maxWait });
723
723
  return handle;
724
724
  }
@@ -764,9 +764,9 @@ var Audio = class {
764
764
  if (callbackUrl !== void 0) body.callback_url = callbackUrl;
765
765
  result = await this.transport.request("POST", `/${provider}/audios`, { json: body });
766
766
  }
767
- const taskId14 = result.task_id;
768
- if (!taskId14 || result.data && !shouldWait) return result;
769
- const handle = new TaskHandle(taskId14, `/${provider}/tasks`, this.transport);
767
+ const taskId15 = result.task_id;
768
+ if (!taskId15 || result.data && !shouldWait) return result;
769
+ const handle = new TaskHandle(taskId15, `/${provider}/tasks`, this.transport);
770
770
  if (shouldWait) return handle.wait({ pollInterval, maxWait });
771
771
  return handle;
772
772
  }
@@ -785,9 +785,9 @@ var Video = class {
785
785
  if (imageUrl !== void 0) body.image_url = imageUrl;
786
786
  if (callbackUrl !== void 0) body.callback_url = callbackUrl;
787
787
  const result = await this.transport.request("POST", `/${provider}/videos`, { json: body });
788
- const taskId14 = result.task_id;
789
- if (!taskId14 || result.data && !shouldWait) return result;
790
- const handle = new TaskHandle(taskId14, `/${provider}/tasks`, this.transport);
788
+ const taskId15 = result.task_id;
789
+ if (!taskId15 || result.data && !shouldWait) return result;
790
+ const handle = new TaskHandle(taskId15, `/${provider}/tasks`, this.transport);
791
791
  if (shouldWait) return handle.wait({ pollInterval, maxWait });
792
792
  return handle;
793
793
  }
@@ -834,17 +834,17 @@ var Tasks2 = class {
834
834
  this.transport = transport;
835
835
  }
836
836
  transport;
837
- async get(taskId14, opts = {}) {
837
+ async get(taskId15, opts = {}) {
838
838
  const service = opts.service ?? "suno";
839
839
  const endpoint = SERVICE_TASK_ENDPOINTS[service] ?? `/${service}/tasks`;
840
840
  return this.transport.request("POST", endpoint, {
841
- json: { id: taskId14, action: "retrieve" }
841
+ json: { id: taskId15, action: "retrieve" }
842
842
  });
843
843
  }
844
- async wait(taskId14, opts = {}) {
844
+ async wait(taskId15, opts = {}) {
845
845
  const service = opts.service ?? "suno";
846
846
  const endpoint = SERVICE_TASK_ENDPOINTS[service] ?? `/${service}/tasks`;
847
- const handle = new TaskHandle(taskId14, endpoint, this.transport);
847
+ const handle = new TaskHandle(taskId15, endpoint, this.transport);
848
848
  return handle.wait({ pollInterval: opts.pollInterval, maxWait: opts.maxWait });
849
849
  }
850
850
  };
@@ -1847,13 +1847,49 @@ var Maestro = class {
1847
1847
  }
1848
1848
  };
1849
1849
 
1850
- // src/resources/providers/nano-banana.ts
1850
+ // src/resources/providers/minimax.ts
1851
1851
  function taskId8(result) {
1852
1852
  if (typeof result?.task_id === "string") return result.task_id;
1853
1853
  const data = result?.data;
1854
1854
  if (data && typeof data.task_id === "string") return data.task_id;
1855
1855
  return typeof result?.id === "string" ? result.id : "";
1856
1856
  }
1857
+ var Minimax = class {
1858
+ constructor(transport) {
1859
+ this.transport = transport;
1860
+ }
1861
+ transport;
1862
+ /** Minimax Videos */
1863
+ async generate(options) {
1864
+ const body = {};
1865
+ body["model"] = options.model;
1866
+ body["content"] = options.content;
1867
+ body["resolution"] = options.resolution;
1868
+ body["duration"] = options.duration;
1869
+ if (options.ratio !== void 0) body["ratio"] = options.ratio;
1870
+ for (const [key, value] of Object.entries(options)) {
1871
+ if (!["async", "callbackUrl", "content", "duration", "maxWait", "model", "pollInterval", "ratio", "resolution", "wait"].includes(key) && value !== void 0) {
1872
+ body[key] = value;
1873
+ }
1874
+ }
1875
+ if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
1876
+ body.async = options.async ?? true;
1877
+ const result = await this.transport.request("POST", "/minimax/videos", { json: body });
1878
+ const handle = new TaskHandle(taskId8(result), "/minimax/tasks", this.transport, result);
1879
+ if (options.wait) {
1880
+ await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
1881
+ }
1882
+ return handle;
1883
+ }
1884
+ };
1885
+
1886
+ // src/resources/providers/nano-banana.ts
1887
+ function taskId9(result) {
1888
+ if (typeof result?.task_id === "string") return result.task_id;
1889
+ const data = result?.data;
1890
+ if (data && typeof data.task_id === "string") return data.task_id;
1891
+ return typeof result?.id === "string" ? result.id : "";
1892
+ }
1857
1893
  var NanoBanana = class {
1858
1894
  constructor(transport) {
1859
1895
  this.transport = transport;
@@ -1877,7 +1913,7 @@ var NanoBanana = class {
1877
1913
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
1878
1914
  body.async = options.async ?? true;
1879
1915
  const result = await this.transport.request("POST", "/nano-banana/images", { json: body });
1880
- const handle = new TaskHandle(taskId8(result), "/nano-banana/tasks", this.transport, result);
1916
+ const handle = new TaskHandle(taskId9(result), "/nano-banana/tasks", this.transport, result);
1881
1917
  if (options.wait) {
1882
1918
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
1883
1919
  }
@@ -1886,7 +1922,7 @@ var NanoBanana = class {
1886
1922
  };
1887
1923
 
1888
1924
  // src/resources/providers/producer.ts
1889
- function taskId9(result) {
1925
+ function taskId10(result) {
1890
1926
  if (typeof result?.task_id === "string") return result.task_id;
1891
1927
  const data = result?.data;
1892
1928
  if (data && typeof data.task_id === "string") return data.task_id;
@@ -1959,7 +1995,7 @@ var Producer = class {
1959
1995
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
1960
1996
  body.async = options.async ?? true;
1961
1997
  const result = await this.transport.request("POST", "/producer/audios", { json: body });
1962
- const handle = new TaskHandle(taskId9(result), "/producer/tasks", this.transport, result);
1998
+ const handle = new TaskHandle(taskId10(result), "/producer/tasks", this.transport, result);
1963
1999
  if (options.wait) {
1964
2000
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
1965
2001
  }
@@ -1980,7 +2016,7 @@ var Producer = class {
1980
2016
  };
1981
2017
 
1982
2018
  // src/resources/providers/seedance.ts
1983
- function taskId10(result) {
2019
+ function taskId11(result) {
1984
2020
  if (typeof result?.task_id === "string") return result.task_id;
1985
2021
  const data = result?.data;
1986
2022
  if (data && typeof data.task_id === "string") return data.task_id;
@@ -2014,7 +2050,7 @@ var Seedance = class {
2014
2050
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2015
2051
  body.async = options.async ?? true;
2016
2052
  const result = await this.transport.request("POST", "/seedance/videos", { json: body });
2017
- const handle = new TaskHandle(taskId10(result), "/seedance/tasks", this.transport, result);
2053
+ const handle = new TaskHandle(taskId11(result), "/seedance/tasks", this.transport, result);
2018
2054
  if (options.wait) {
2019
2055
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
2020
2056
  }
@@ -2023,7 +2059,7 @@ var Seedance = class {
2023
2059
  };
2024
2060
 
2025
2061
  // src/resources/providers/seedream.ts
2026
- function taskId11(result) {
2062
+ function taskId12(result) {
2027
2063
  if (typeof result?.task_id === "string") return result.task_id;
2028
2064
  const data = result?.data;
2029
2065
  if (data && typeof data.task_id === "string") return data.task_id;
@@ -2059,7 +2095,7 @@ var Seedream = class {
2059
2095
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2060
2096
  body.async = options.async ?? true;
2061
2097
  const result = await this.transport.request("POST", "/seedream/images", { json: body });
2062
- const handle = new TaskHandle(taskId11(result), "/seedream/tasks", this.transport, result);
2098
+ const handle = new TaskHandle(taskId12(result), "/seedream/tasks", this.transport, result);
2063
2099
  if (options.wait) {
2064
2100
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
2065
2101
  }
@@ -2068,7 +2104,7 @@ var Seedream = class {
2068
2104
  };
2069
2105
 
2070
2106
  // src/resources/providers/suno.ts
2071
- function taskId12(result) {
2107
+ function taskId13(result) {
2072
2108
  if (typeof result?.task_id === "string") return result.task_id;
2073
2109
  const data = result?.data;
2074
2110
  if (data && typeof data.task_id === "string") return data.task_id;
@@ -2119,7 +2155,7 @@ var Suno = class {
2119
2155
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2120
2156
  body.async = options.async ?? true;
2121
2157
  const result = await this.transport.request("POST", "/suno/audios", { json: body });
2122
- const handle = new TaskHandle(taskId12(result), "/suno/tasks", this.transport, result);
2158
+ const handle = new TaskHandle(taskId13(result), "/suno/tasks", this.transport, result);
2123
2159
  if (options.wait) {
2124
2160
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
2125
2161
  }
@@ -2194,7 +2230,7 @@ var Suno = class {
2194
2230
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2195
2231
  body.async = options.async ?? true;
2196
2232
  const result = await this.transport.request("POST", "/suno/vox", { json: body });
2197
- const handle = new TaskHandle(taskId12(result), "/suno/tasks", this.transport, result);
2233
+ const handle = new TaskHandle(taskId13(result), "/suno/tasks", this.transport, result);
2198
2234
  if (options.wait) {
2199
2235
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
2200
2236
  }
@@ -2212,7 +2248,7 @@ var Suno = class {
2212
2248
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2213
2249
  body.async = options.async ?? true;
2214
2250
  const result = await this.transport.request("POST", "/suno/wav", { json: body });
2215
- const handle = new TaskHandle(taskId12(result), "/suno/tasks", this.transport, result);
2251
+ const handle = new TaskHandle(taskId13(result), "/suno/tasks", this.transport, result);
2216
2252
  if (options.wait) {
2217
2253
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
2218
2254
  }
@@ -2230,7 +2266,7 @@ var Suno = class {
2230
2266
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2231
2267
  body.async = options.async ?? true;
2232
2268
  const result = await this.transport.request("POST", "/suno/midi", { json: body });
2233
- const handle = new TaskHandle(taskId12(result), "/suno/tasks", this.transport, result);
2269
+ const handle = new TaskHandle(taskId13(result), "/suno/tasks", this.transport, result);
2234
2270
  if (options.wait) {
2235
2271
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
2236
2272
  }
@@ -2289,7 +2325,7 @@ var Suno = class {
2289
2325
  };
2290
2326
 
2291
2327
  // src/resources/providers/wan.ts
2292
- function taskId13(result) {
2328
+ function taskId14(result) {
2293
2329
  if (typeof result?.task_id === "string") return result.task_id;
2294
2330
  const data = result?.data;
2295
2331
  if (data && typeof data.task_id === "string") return data.task_id;
@@ -2324,7 +2360,7 @@ var Wan = class {
2324
2360
  if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
2325
2361
  body.async = options.async ?? true;
2326
2362
  const result = await this.transport.request("POST", "/wan/videos", { json: body });
2327
- const handle = new TaskHandle(taskId13(result), "/wan/tasks", this.transport, result);
2363
+ const handle = new TaskHandle(taskId14(result), "/wan/tasks", this.transport, result);
2328
2364
  if (options.wait) {
2329
2365
  await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
2330
2366
  }
@@ -2343,6 +2379,7 @@ function attachProviders(client, transport) {
2343
2379
  client.localization = new Localization(transport);
2344
2380
  client.luma = new Luma(transport);
2345
2381
  client.maestro = new Maestro(transport);
2382
+ client.minimax = new Minimax(transport);
2346
2383
  client.nanobanana = new NanoBanana(transport);
2347
2384
  client.producer = new Producer(transport);
2348
2385
  client.seedance = new Seedance(transport);