@acedatacloud/sdk 2026.1101.0 → 2026.1101.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/README.md +131 -0
- package/dist/index.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +25 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/resources/aichat.ts +1 -0
- package/src/resources/providers/maestro.ts +3 -3
- package/src/resources/providers/producer.ts +7 -7
- package/src/resources/providers/suno.ts +26 -2
- package/src/resources/webextrator.ts +25 -2
package/dist/index.mjs
CHANGED
|
@@ -1360,7 +1360,7 @@ var WebExtrator = class {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
transport;
|
|
1362
1362
|
async extract(opts) {
|
|
1363
|
-
const { url, expectedType, enableLlm, waitUntil, timeout, delay, waitForSelector, blockResources, headers, userAgent, callbackUrl, ...rest } = opts;
|
|
1363
|
+
const { url, expectedType, enableLlm, waitUntil, timeout, delay, waitForSelector, blockResources, headers, userAgent, callbackUrl, cookies, bypassCache, cacheTtlSeconds, ...rest } = opts;
|
|
1364
1364
|
const body = { url, ...rest };
|
|
1365
1365
|
if (expectedType !== void 0) body.expected_type = expectedType;
|
|
1366
1366
|
if (enableLlm !== void 0) body.enable_llm = enableLlm;
|
|
@@ -1372,10 +1372,13 @@ var WebExtrator = class {
|
|
|
1372
1372
|
if (headers !== void 0) body.headers = headers;
|
|
1373
1373
|
if (userAgent !== void 0) body.user_agent = userAgent;
|
|
1374
1374
|
if (callbackUrl !== void 0) body.callback_url = callbackUrl;
|
|
1375
|
+
if (cookies !== void 0) body.cookies = cookies;
|
|
1376
|
+
if (bypassCache !== void 0) body.bypass_cache = bypassCache;
|
|
1377
|
+
if (cacheTtlSeconds !== void 0) body.cache_ttl_seconds = cacheTtlSeconds;
|
|
1375
1378
|
return this.transport.request("POST", "/webextrator/extract", { json: body });
|
|
1376
1379
|
}
|
|
1377
1380
|
async render(opts) {
|
|
1378
|
-
const { url, waitUntil, timeout, delay, waitForSelector, blockResources, headers, userAgent, callbackUrl, ...rest } = opts;
|
|
1381
|
+
const { url, waitUntil, timeout, delay, waitForSelector, blockResources, headers, userAgent, callbackUrl, cookies, bypassCache, cacheTtlSeconds, ...rest } = opts;
|
|
1379
1382
|
const body = { url, ...rest };
|
|
1380
1383
|
if (waitUntil !== void 0) body.wait_until = waitUntil;
|
|
1381
1384
|
if (timeout !== void 0) body.timeout = timeout;
|
|
@@ -1385,6 +1388,9 @@ var WebExtrator = class {
|
|
|
1385
1388
|
if (headers !== void 0) body.headers = headers;
|
|
1386
1389
|
if (userAgent !== void 0) body.user_agent = userAgent;
|
|
1387
1390
|
if (callbackUrl !== void 0) body.callback_url = callbackUrl;
|
|
1391
|
+
if (cookies !== void 0) body.cookies = cookies;
|
|
1392
|
+
if (bypassCache !== void 0) body.bypass_cache = bypassCache;
|
|
1393
|
+
if (cacheTtlSeconds !== void 0) body.cache_ttl_seconds = cacheTtlSeconds;
|
|
1388
1394
|
return this.transport.request("POST", "/webextrator/render", { json: body });
|
|
1389
1395
|
}
|
|
1390
1396
|
};
|
|
@@ -1986,13 +1992,13 @@ var Producer = class {
|
|
|
1986
1992
|
/** Producer AI music generation API, generates 1 song per request. */
|
|
1987
1993
|
async generate(options) {
|
|
1988
1994
|
const body = {};
|
|
1989
|
-
body["lyric"] = options.lyric;
|
|
1990
1995
|
body["action"] = options.action;
|
|
1991
|
-
body["prompt"] = options.prompt;
|
|
1992
1996
|
if (options.seed !== void 0) body["seed"] = options.seed;
|
|
1997
|
+
if (options.lyric !== void 0) body["lyric"] = options.lyric;
|
|
1993
1998
|
if (options.model !== void 0) body["model"] = options.model;
|
|
1994
1999
|
if (options.title !== void 0) body["title"] = options.title;
|
|
1995
|
-
|
|
2000
|
+
body["custom"] = options.custom ?? false;
|
|
2001
|
+
if (options.prompt !== void 0) body["prompt"] = options.prompt;
|
|
1996
2002
|
if (options.audioId !== void 0) body["audio_id"] = options.audioId;
|
|
1997
2003
|
body["weirdness"] = options.weirdness ?? false;
|
|
1998
2004
|
body["continue_at"] = options.continueAt ?? false;
|
|
@@ -2375,8 +2381,9 @@ var Suno = class {
|
|
|
2375
2381
|
async upload(options) {
|
|
2376
2382
|
const body = {};
|
|
2377
2383
|
body["audio_url"] = options.audioUrl;
|
|
2384
|
+
if (options.personaId !== void 0) body["persona_id"] = options.personaId;
|
|
2378
2385
|
for (const [key, value] of Object.entries(options)) {
|
|
2379
|
-
if (!["async", "audioUrl", "callbackUrl", "maxWait", "pollInterval", "wait"].includes(key) && value !== void 0) {
|
|
2386
|
+
if (!["async", "audioUrl", "callbackUrl", "maxWait", "personaId", "pollInterval", "wait"].includes(key) && value !== void 0) {
|
|
2380
2387
|
body[key] = value;
|
|
2381
2388
|
}
|
|
2382
2389
|
}
|
|
@@ -2401,6 +2408,18 @@ var Suno = class {
|
|
|
2401
2408
|
}
|
|
2402
2409
|
return handle;
|
|
2403
2410
|
}
|
|
2411
|
+
/** Check Suno audio availability. */
|
|
2412
|
+
async availability(options) {
|
|
2413
|
+
const body = {};
|
|
2414
|
+
body["audio_id"] = options.audioId;
|
|
2415
|
+
for (const [key, value] of Object.entries(options)) {
|
|
2416
|
+
if (!["async", "audioId", "callbackUrl", "maxWait", "pollInterval", "wait"].includes(key) && value !== void 0) {
|
|
2417
|
+
body[key] = value;
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
if (options.callbackUrl !== void 0) body.callback_url = options.callbackUrl;
|
|
2421
|
+
return await this.transport.request("POST", "/suno/availability", { json: body });
|
|
2422
|
+
}
|
|
2404
2423
|
};
|
|
2405
2424
|
|
|
2406
2425
|
// src/resources/providers/wan.ts
|