@acedatacloud/sdk 2026.804.0 → 2026.807.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/dist/index.mjs CHANGED
@@ -442,6 +442,60 @@ var Chat = class {
442
442
  }
443
443
  };
444
444
 
445
+ // src/resources/captcha.ts
446
+ var Recognition = class {
447
+ constructor(transport) {
448
+ this.transport = transport;
449
+ }
450
+ transport;
451
+ hcaptcha(opts = {}) {
452
+ const { queries, question, ...rest } = opts;
453
+ const body = { ...rest };
454
+ if (queries !== void 0) body.queries = queries;
455
+ if (question !== void 0) body.question = question;
456
+ return this.transport.request("POST", "/captcha/recognition/hcaptcha", { json: body });
457
+ }
458
+ };
459
+ var Token = class {
460
+ constructor(transport) {
461
+ this.transport = transport;
462
+ }
463
+ transport;
464
+ hcaptcha(opts) {
465
+ const { websiteKey, websiteUrl, rqdata, proxy, ...rest } = opts;
466
+ const body = {
467
+ website_key: websiteKey,
468
+ website_url: websiteUrl,
469
+ ...rest
470
+ };
471
+ if (rqdata !== void 0) body.rqdata = rqdata;
472
+ if (proxy !== void 0) body.proxy = proxy;
473
+ return this.transport.request("POST", "/captcha/token/hcaptcha", { json: body });
474
+ }
475
+ };
476
+ var Tasks = class {
477
+ constructor(transport) {
478
+ this.transport = transport;
479
+ }
480
+ transport;
481
+ retrieve(opts) {
482
+ const { taskId: taskId14, ...rest } = opts;
483
+ return this.transport.request("POST", "/captcha/tasks", {
484
+ json: { task_id: taskId14, ...rest }
485
+ });
486
+ }
487
+ };
488
+ var Captcha = class {
489
+ recognition;
490
+ token;
491
+ tasks;
492
+ constructor(transport) {
493
+ this.recognition = new Recognition(transport);
494
+ this.token = new Token(transport);
495
+ this.tasks = new Tasks(transport);
496
+ }
497
+ };
498
+
445
499
  // src/runtime/tasks.ts
446
500
  var DONE = /* @__PURE__ */ new Set(["succeed", "succeeded", "success", "completed", "complete", "finished"]);
447
501
  var FAILED = /* @__PURE__ */ new Set(["failed", "failure", "error", "cancelled", "canceled", "rejected"]);
@@ -724,9 +778,10 @@ var SERVICE_TASK_ENDPOINTS = {
724
778
  wan: "/wan/tasks",
725
779
  pika: "/pika/tasks",
726
780
  pixverse: "/pixverse/tasks",
727
- webextrator: "/webextrator/tasks"
781
+ webextrator: "/webextrator/tasks",
782
+ captcha: "/captcha/tasks"
728
783
  };
729
- var Tasks = class {
784
+ var Tasks2 = class {
730
785
  constructor(transport) {
731
786
  this.transport = transport;
732
787
  }
@@ -929,7 +984,7 @@ var Embeddings = class {
929
984
  return this.transport.request("POST", "/openai/embeddings", { json: body });
930
985
  }
931
986
  };
932
- var Tasks2 = class {
987
+ var Tasks3 = class {
933
988
  constructor(transport) {
934
989
  this.transport = transport;
935
990
  }
@@ -967,7 +1022,7 @@ var OpenAI = class {
967
1022
  this.responses = new Responses(transport);
968
1023
  this.images = new Images2(transport);
969
1024
  this.embeddings = new Embeddings(transport);
970
- this.tasks = new Tasks2(transport);
1025
+ this.tasks = new Tasks3(transport);
971
1026
  }
972
1027
  };
973
1028
 
@@ -1998,7 +2053,7 @@ var Suno = class {
1998
2053
  if (options.lyricPrompt !== void 0) body["lyric_prompt"] = options.lyricPrompt;
1999
2054
  if (options.vocalGender !== void 0) body["vocal_gender"] = options.vocalGender;
2000
2055
  if (options.samplesStart !== void 0) body["samples_start"] = options.samplesStart;
2001
- if (options.styleNegative !== void 0) body["style_negative"] = options.styleNegative;
2056
+ if (options.negativeTags !== void 0) body["negative_tags"] = options.negativeTags;
2002
2057
  if (options.styleInfluence !== void 0) body["style_influence"] = options.styleInfluence;
2003
2058
  if (options.mashupAudioIds !== void 0) body["mashup_audio_ids"] = options.mashupAudioIds;
2004
2059
  if (options.overpaintingEnd !== void 0) body["overpainting_end"] = options.overpaintingEnd;
@@ -2009,7 +2064,7 @@ var Suno = class {
2009
2064
  if (options.underpaintingStart !== void 0) body["underpainting_start"] = options.underpaintingStart;
2010
2065
  if (options.replaceSectionStart !== void 0) body["replace_section_start"] = options.replaceSectionStart;
2011
2066
  for (const [key, value] of Object.entries(options)) {
2012
- 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", "styleNegative", "title", "underpaintingEnd", "underpaintingStart", "variationCategory", "vocalGender", "wait", "weirdness"].includes(key) && value !== void 0) {
2067
+ 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 !== void 0) {
2013
2068
  body[key] = value;
2014
2069
  }
2015
2070
  }
@@ -2252,6 +2307,7 @@ function attachProviders(client, transport) {
2252
2307
  var AceDataCloud = class {
2253
2308
  aichat;
2254
2309
  chat;
2310
+ captcha;
2255
2311
  images;
2256
2312
  audio;
2257
2313
  video;
@@ -2279,11 +2335,12 @@ var AceDataCloud = class {
2279
2335
  });
2280
2336
  this.aichat = new AiChat(this.transport);
2281
2337
  this.chat = new Chat(this.transport);
2338
+ this.captcha = new Captcha(this.transport);
2282
2339
  this.images = new Images(this.transport);
2283
2340
  this.audio = new Audio(this.transport);
2284
2341
  this.video = new Video(this.transport);
2285
2342
  this.search = new Search(this.transport);
2286
- this.tasks = new Tasks(this.transport);
2343
+ this.tasks = new Tasks2(this.transport);
2287
2344
  this.files = new Files(this.transport);
2288
2345
  this.platform = new Platform(this.transport);
2289
2346
  this.openai = new OpenAI(this.transport);