@acedatacloud/sdk 2026.722.0 → 2026.727.1
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.d.mts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +1016 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1016 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +3 -0
- package/src/resources/providers/digitalhuman.ts +123 -0
- package/src/resources/providers/dreamina.ts +68 -0
- package/src/resources/providers/fish.ts +146 -0
- package/src/resources/providers/flux.ts +71 -0
- package/src/resources/providers/hailuo.ts +65 -0
- package/src/resources/providers/happyhorse.ts +89 -0
- package/src/resources/providers/index.ts +53 -0
- package/src/resources/providers/localization.ts +45 -0
- package/src/resources/providers/luma.ts +83 -0
- package/src/resources/providers/maestro.ts +84 -0
- package/src/resources/providers/nano-banana.ts +74 -0
- package/src/resources/providers/producer.ts +182 -0
- package/src/resources/providers/seedance.ts +89 -0
- package/src/resources/providers/seedream.ts +95 -0
- package/src/resources/providers/suno.ts +437 -0
- package/src/resources/providers/wan.ts +92 -0
- package/src/runtime/tasks.ts +184 -19
package/dist/index.d.mts
CHANGED
|
@@ -177,7 +177,18 @@ declare class Chat {
|
|
|
177
177
|
constructor(transport: Transport);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Task polling for long-running operations.
|
|
182
|
+
*
|
|
183
|
+
* A generation call always returns a handle, never sometimes a handle and
|
|
184
|
+
* sometimes a plain object — the caller decides whether to wait. When the server
|
|
185
|
+
* answers synchronously (some endpoints do for fast or cached results) the
|
|
186
|
+
* handle is born already complete, so `wait()` returns immediately rather than
|
|
187
|
+
* polling for something that has already arrived.
|
|
188
|
+
*
|
|
189
|
+
* Kept behaviourally identical to the Python and Go implementations; a
|
|
190
|
+
* divergence here is a cross-language bug that only shows up in production.
|
|
191
|
+
*/
|
|
181
192
|
|
|
182
193
|
interface TaskHandleOptions {
|
|
183
194
|
pollInterval?: number;
|
|
@@ -188,8 +199,20 @@ declare class TaskHandle {
|
|
|
188
199
|
private pollEndpoint;
|
|
189
200
|
private transport;
|
|
190
201
|
private _result;
|
|
191
|
-
constructor(taskId: string, pollEndpoint: string, transport: Transport);
|
|
202
|
+
constructor(taskId: string, pollEndpoint: string, transport: Transport, submitted?: Record<string, unknown>);
|
|
203
|
+
get done(): boolean;
|
|
204
|
+
/** Artifact URLs, once completed. */
|
|
205
|
+
urls(): string[];
|
|
206
|
+
progress(): number | null;
|
|
207
|
+
/**
|
|
208
|
+
* Fetch current task state, remembering it once terminal.
|
|
209
|
+
*
|
|
210
|
+
* A caller that drives its own poll loop — checking status between polls so it
|
|
211
|
+
* can report progress — only ever calls this. Without recording here, urls()
|
|
212
|
+
* and result() stay empty after the task has plainly finished.
|
|
213
|
+
*/
|
|
192
214
|
get(): Promise<Record<string, unknown>>;
|
|
215
|
+
private accept;
|
|
193
216
|
isCompleted(): Promise<boolean>;
|
|
194
217
|
wait(opts?: TaskHandleOptions): Promise<Record<string, unknown>>;
|
|
195
218
|
get result(): Record<string, unknown> | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -177,7 +177,18 @@ declare class Chat {
|
|
|
177
177
|
constructor(transport: Transport);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Task polling for long-running operations.
|
|
182
|
+
*
|
|
183
|
+
* A generation call always returns a handle, never sometimes a handle and
|
|
184
|
+
* sometimes a plain object — the caller decides whether to wait. When the server
|
|
185
|
+
* answers synchronously (some endpoints do for fast or cached results) the
|
|
186
|
+
* handle is born already complete, so `wait()` returns immediately rather than
|
|
187
|
+
* polling for something that has already arrived.
|
|
188
|
+
*
|
|
189
|
+
* Kept behaviourally identical to the Python and Go implementations; a
|
|
190
|
+
* divergence here is a cross-language bug that only shows up in production.
|
|
191
|
+
*/
|
|
181
192
|
|
|
182
193
|
interface TaskHandleOptions {
|
|
183
194
|
pollInterval?: number;
|
|
@@ -188,8 +199,20 @@ declare class TaskHandle {
|
|
|
188
199
|
private pollEndpoint;
|
|
189
200
|
private transport;
|
|
190
201
|
private _result;
|
|
191
|
-
constructor(taskId: string, pollEndpoint: string, transport: Transport);
|
|
202
|
+
constructor(taskId: string, pollEndpoint: string, transport: Transport, submitted?: Record<string, unknown>);
|
|
203
|
+
get done(): boolean;
|
|
204
|
+
/** Artifact URLs, once completed. */
|
|
205
|
+
urls(): string[];
|
|
206
|
+
progress(): number | null;
|
|
207
|
+
/**
|
|
208
|
+
* Fetch current task state, remembering it once terminal.
|
|
209
|
+
*
|
|
210
|
+
* A caller that drives its own poll loop — checking status between polls so it
|
|
211
|
+
* can report progress — only ever calls this. Without recording here, urls()
|
|
212
|
+
* and result() stay empty after the task has plainly finished.
|
|
213
|
+
*/
|
|
192
214
|
get(): Promise<Record<string, unknown>>;
|
|
215
|
+
private accept;
|
|
193
216
|
isCompleted(): Promise<boolean>;
|
|
194
217
|
wait(opts?: TaskHandleOptions): Promise<Record<string, unknown>>;
|
|
195
218
|
get result(): Record<string, unknown> | null;
|