@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/sdk",
3
- "version": "2026.807.0",
3
+ "version": "2026.809.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
+ }