@acedatacloud/sdk 2026.728.0 → 2026.805.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.728.0",
3
+ "version": "2026.805.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",
@@ -33,6 +33,8 @@ export interface SunoGenerateOptions {
33
33
  prompt?: Record<string, unknown>;
34
34
  /** Audio ID used for generating additional audio based on existing audio. This field is required when `action` is `extend` or `concat`. */
35
35
  audioId?: string;
36
+ /** Target length of the generated track in seconds, given as an integer, typically between 10 and 360. It is mainly used for generation in custom mode (`custom` is `true`); some models or actions may not support it, in which case the value is ignored or an error is returned. It is a target only — the finished length is reported by the `duration` field in the response and may differ slightly. */
37
+ duration?: number;
36
38
  /** The "Weirdness" advanced parameter in the Suno official custom mode has a value range of 0 to 1, with higher values resulting in more creative and experimental outputs. It is only effective in custom mode. */
37
39
  weirdness?: number;
38
40
  /** A list of reference audio URLs for inspiration, requiring 1 to 4 publicly accessible audio addresses. This field is mandatory when `action` is `inspo`. */
@@ -54,7 +56,7 @@ export interface SunoGenerateOptions {
54
56
  /** Add a default start time for the uploaded audio sample, with a default value of 0. */
55
57
  samplesStart?: number;
56
58
  /** Styles of description that are not desired in music generation. */
57
- styleNegative?: string;
59
+ negativeTags?: string;
58
60
  /** The "Style Influence" advanced parameter in the Suno official custom mode has a value range of 0 to 1, with higher values being closer to the selected style. It is only effective in custom mode. */
59
61
  styleInfluence?: number;
60
62
  /** Audio ID list for mixing and mashup. This field is required when `action` is `mashup`. */
@@ -227,6 +229,7 @@ export class Suno {
227
229
  if (options.custom !== undefined) body["custom"] = options.custom;
228
230
  body["prompt"] = options.prompt ?? "A song for Christmas";
229
231
  if (options.audioId !== undefined) body["audio_id"] = options.audioId;
232
+ if (options.duration !== undefined) body["duration"] = options.duration;
230
233
  if (options.weirdness !== undefined) body["weirdness"] = options.weirdness;
231
234
  body["audio_urls"] = options.audioUrls ?? ["https://cdn1.suno.ai/b481b17a-bf50-4e10-8adc-4d5635050893.mp3"];
232
235
  if (options.personaId !== undefined) body["persona_id"] = options.personaId;
@@ -237,7 +240,7 @@ export class Suno {
237
240
  if (options.lyricPrompt !== undefined) body["lyric_prompt"] = options.lyricPrompt;
238
241
  if (options.vocalGender !== undefined) body["vocal_gender"] = options.vocalGender;
239
242
  if (options.samplesStart !== undefined) body["samples_start"] = options.samplesStart;
240
- if (options.styleNegative !== undefined) body["style_negative"] = options.styleNegative;
243
+ if (options.negativeTags !== undefined) body["negative_tags"] = options.negativeTags;
241
244
  if (options.styleInfluence !== undefined) body["style_influence"] = options.styleInfluence;
242
245
  if (options.mashupAudioIds !== undefined) body["mashup_audio_ids"] = options.mashupAudioIds;
243
246
  if (options.overpaintingEnd !== undefined) body["overpainting_end"] = options.overpaintingEnd;
@@ -248,7 +251,7 @@ export class Suno {
248
251
  if (options.underpaintingStart !== undefined) body["underpainting_start"] = options.underpaintingStart;
249
252
  if (options.replaceSectionStart !== undefined) body["replace_section_start"] = options.replaceSectionStart;
250
253
  for (const [key, value] of Object.entries(options)) {
251
- if (!["action", "async", "audioId", "audioUrls", "audioWeight", "callbackUrl", "continueAt", "custom", "instrumental", "lyric", "lyricPrompt", "mashupAudioIds", "maxWait", "model", "overpaintingEnd", "overpaintingStart", "personaId", "pollInterval", "prompt", "replaceSectionEnd", "replaceSectionStart", "samplesEnd", "samplesStart", "style", "styleInfluence", "styleNegative", "title", "underpaintingEnd", "underpaintingStart", "variationCategory", "vocalGender", "wait", "weirdness"].includes(key) && value !== undefined) {
254
+ if (!["action", "async", "audioId", "audioUrls", "audioWeight", "callbackUrl", "continueAt", "custom", "duration", "instrumental", "lyric", "lyricPrompt", "mashupAudioIds", "maxWait", "model", "overpaintingEnd", "overpaintingStart", "personaId", "pollInterval", "prompt", "replaceSectionEnd", "replaceSectionStart", "samplesEnd", "samplesStart", "style", "styleInfluence", "negativeTags", "title", "underpaintingEnd", "underpaintingStart", "variationCategory", "vocalGender", "wait", "weirdness"].includes(key) && value !== undefined) {
252
255
  body[key] = value;
253
256
  }
254
257
  }