@acedatacloud/sdk 2026.807.0 → 2026.810.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/sdk",
3
- "version": "2026.807.0",
3
+ "version": "2026.810.0",
4
4
  "description": "Official TypeScript SDK for AceDataCloud — AI-powered data services",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9,6 +9,7 @@ export { Happyhorse } from './happyhorse';
9
9
  export { Localization } from './localization';
10
10
  export { Luma } from './luma';
11
11
  export { Maestro } from './maestro';
12
+ export { Minimax } from './minimax';
12
13
  export { NanoBanana } from './nano-banana';
13
14
  export { Producer } from './producer';
14
15
  export { Seedance } from './seedance';
@@ -26,6 +27,7 @@ import { Happyhorse } from './happyhorse';
26
27
  import { Localization } from './localization';
27
28
  import { Luma } from './luma';
28
29
  import { Maestro } from './maestro';
30
+ import { Minimax } from './minimax';
29
31
  import { NanoBanana } from './nano-banana';
30
32
  import { Producer } from './producer';
31
33
  import { Seedance } from './seedance';
@@ -44,6 +46,7 @@ export function attachProviders(client: Record<string, unknown>, transport: Tran
44
46
  client.localization = new Localization(transport);
45
47
  client.luma = new Luma(transport);
46
48
  client.maestro = new Maestro(transport);
49
+ client.minimax = new Minimax(transport);
47
50
  client.nanobanana = new NanoBanana(transport);
48
51
  client.producer = new Producer(transport);
49
52
  client.seedance = new Seedance(transport);
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Minimax (minimax) — generated from the platform OpenAPI spec.
3
+ *
4
+ * Do not edit by hand: run `python scripts/generate_providers.py`. Parameter
5
+ * names, types, enums and required-ness all come from the live spec.
6
+ */
7
+
8
+ import { Transport } from '../../runtime/transport';
9
+ import { TaskHandle } from '../../runtime/tasks';
10
+
11
+ function taskId(result: Record<string, unknown>): string {
12
+ if (typeof result?.task_id === 'string') return result.task_id;
13
+ const data = result?.data as Record<string, unknown> | undefined;
14
+ if (data && typeof data.task_id === 'string') return data.task_id;
15
+ return typeof result?.id === 'string' ? result.id : '';
16
+ }
17
+
18
+
19
+ export interface MinimaxGenerateOptions {
20
+ /** Minimax Videos Model */
21
+ model: "MiniMax-H3";
22
+ /** Minimax Videos Content */
23
+ content: Array<Record<string, unknown>>;
24
+ /** Minimax Videos Resolution */
25
+ resolution: "768P" | "2K";
26
+ /** Minimax Videos Duration */
27
+ duration: number;
28
+ /** Minimax Videos Ratio */
29
+ ratio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
30
+ async?: boolean;
31
+ wait?: boolean;
32
+ pollInterval?: number;
33
+ maxWait?: number;
34
+ callbackUrl?: string;
35
+ /** Any parameter added upstream before the SDK is regenerated. */
36
+ [key: string]: unknown;
37
+ }
38
+
39
+ /** minimax client. */
40
+ export class Minimax {
41
+ constructor(private transport: Transport) {}
42
+
43
+ /** Minimax Videos */
44
+ async generate(options: MinimaxGenerateOptions): Promise<TaskHandle> {
45
+ const body: Record<string, unknown> = {};
46
+ body["model"] = options.model;
47
+ body["content"] = options.content;
48
+ body["resolution"] = options.resolution;
49
+ body["duration"] = options.duration;
50
+ if (options.ratio !== undefined) body["ratio"] = options.ratio;
51
+ for (const [key, value] of Object.entries(options)) {
52
+ if (!["async", "callbackUrl", "content", "duration", "maxWait", "model", "pollInterval", "ratio", "resolution", "wait"].includes(key) && value !== undefined) {
53
+ body[key] = value;
54
+ }
55
+ }
56
+ if (options.callbackUrl !== undefined) body.callback_url = options.callbackUrl;
57
+ body.async = options.async ?? true;
58
+ const result = (await this.transport.request('POST', "/minimax/videos", { json: body })) as Record<string, unknown>;
59
+ const handle = new TaskHandle(taskId(result), "/minimax/tasks", this.transport, result);
60
+ if (options.wait) {
61
+ await handle.wait({ pollInterval: options.pollInterval, maxWait: options.maxWait });
62
+ }
63
+ return handle;
64
+ }
65
+
66
+ }
@@ -23,8 +23,8 @@ export interface SeedreamGenerateOptions {
23
23
  prompt: string;
24
24
  /** Generate a random seed for image generation. The supported range is [-1, 2147483647], with a default value of `-1`. **Only `doubao-seedream-3.0-t2i` supports this parameter** (according to the official Volcengine documentation), other models do not accept this parameter. */
25
25
  seed?: number;
26
- /** Generate image dimensions or aspect ratios. Supports preset options (`1K`/`2K`/`3K`/`4K`), `adaptive` (adaptive reference image size), or explicit `<width>x<height>` format (e.g., `1024x1024`). **Different models support different preset options**: `doubao-seedream-5.0-pro` supports `1K`/`2K`; `doubao-seedream-5.0-lite` supports `2K`/`3K`/`4K`; `doubao-seedream-4.5` only supports `2K`/`4K`; `doubao-seedream-4.0` supports `1K`/`2K`/`4K`; `doubao-seedream-3.0-t2i` and `doubao-seedream-3.0-i2i` **do not support** any preset options and must receive explicit `<width>x<height>` values. */
27
- size?: "1K" | "2K" | "3K" | "4K" | "adaptive";
26
+ /** Generate image dimensions or aspect ratios. Supports preset options (`1K`/`2K`/`3K`/`4K`), or explicit `<width>x<height>` format (e.g., `1024x1024`). **Different models support different preset options**: `doubao-seedream-5.0-pro` supports `1K`/`2K`; `doubao-seedream-5.0-lite` supports `2K`/`3K`/`4K`; `doubao-seedream-4.5` only supports `2K`/`4K`; `doubao-seedream-4.0` supports `1K`/`2K`/`4K`; `doubao-seedream-3.0-t2i` and `doubao-seedream-3.0-i2i` **do not support** any preset options and must receive explicit `<width>x<height>` values. */
27
+ size?: "1K" | "2K" | "3K" | "4K";
28
28
  /** Reference image links for image editing are required, supporting accessible http/https URLs, or base64 encoded image strings in the format `data:image/png;base64,iVBORw0KG...`. Each image must not exceed 10MB in size. This parameter is mandatory when using image-to-image models (such as `doubao-seededit-3.0-i2i`). */
29
29
  image?: string[];
30
30
  /** List of tools that can be called by the model. Currently, only `web_search` is supported. Applicable only to `doubao-seedream-5.0-lite`. */
@@ -66,7 +66,7 @@ export class Seedream {
66
66
  body["model"] = options.model;
67
67
  body["prompt"] = options.prompt;
68
68
  if (options.seed !== undefined) body["seed"] = options.seed;
69
- body["size"] = options.size ?? "2K";
69
+ if (options.size !== undefined) body["size"] = options.size;
70
70
  if (options.image !== undefined) body["image"] = options.image;
71
71
  if (options.tools !== undefined) body["tools"] = options.tools;
72
72
  if (options.stream !== undefined) body["stream"] = options.stream;