@nodaro/sdk 1.22.0 → 1.24.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.cjs CHANGED
@@ -617,11 +617,12 @@ var AppsResource = class {
617
617
  /**
618
618
  * Trigger an app run with the given input values. The keys in `inputs` must
619
619
  * match the app's input-schema field names (see `get(slug).inputSchema`).
620
+ * `opts.inputOverrides` adds raw per-node overrides (see {@link RunAppOptions}).
620
621
  * Returns the execution-id for status polling via client.executions.get().
621
622
  */
622
- run(slug, inputs = {}) {
623
+ run(slug, inputs = {}, opts = {}) {
623
624
  return this.client.request("POST", `/v1/app/${encodeURIComponent(slug)}/run`, {
624
- body: { inputs }
625
+ body: { inputs, ...opts.inputOverrides ? { inputOverrides: opts.inputOverrides } : {} }
625
626
  });
626
627
  }
627
628
  /** List past runs for an app (the caller must own the app or the runs). */
@@ -1755,6 +1756,19 @@ var VoicesResource = class {
1755
1756
  dub(input) {
1756
1757
  return this.client.request("POST", "/v1/dubbing", { body: input });
1757
1758
  }
1759
+ /**
1760
+ * Voice a multi-speaker script as ONE audio file
1761
+ * (`POST /v1/text-to-dialogue`, ElevenLabs Dialogue v3). Each `dialogue`
1762
+ * line is `{ text, voice }` in speaking order — `voice` is a premade voice
1763
+ * name or an ElevenLabs voice UUID (cloned/library voices work too; mixed
1764
+ * casts are fine). At most 5,000 characters total across lines (≤2,000
1765
+ * recommended for best quality) and 10 unique voices. Line text may carry
1766
+ * `[audio tags]` like `[laughs]`. Costs credits and runs async — poll
1767
+ * `jobs.get(jobId)` for `output_data.audioUrl`.
1768
+ */
1769
+ textToDialogue(input) {
1770
+ return this.client.request("POST", "/v1/text-to-dialogue", { body: input });
1771
+ }
1758
1772
  /**
1759
1773
  * Clone a voice from an audio FILE you hold in memory
1760
1774
  * (`POST /v1/voice-clones`, multipart) — the counterpart to
@@ -2614,7 +2628,7 @@ var WorkspacesResource = class {
2614
2628
  return this.client.request("POST", "/v1/workspaces/join", { body: { code } });
2615
2629
  }
2616
2630
  };
2617
- var SDK_VERSION = "1.22.0" ;
2631
+ var SDK_VERSION = "1.24.0" ;
2618
2632
  var CLIENT_HEADER = "X-Nodaro-Client";
2619
2633
  var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
2620
2634
  var NodaroClient = class _NodaroClient {
@@ -2899,6 +2913,14 @@ Object.defineProperty(exports, "OBJECT_ATTACH_COLUMNS", {
2899
2913
  enumerable: true,
2900
2914
  get: function () { return shared.OBJECT_ATTACH_COLUMNS; }
2901
2915
  });
2916
+ Object.defineProperty(exports, "PROMPT_PREFIX_KEY", {
2917
+ enumerable: true,
2918
+ get: function () { return shared.PROMPT_PREFIX_KEY; }
2919
+ });
2920
+ Object.defineProperty(exports, "PROMPT_SUFFIX_KEY", {
2921
+ enumerable: true,
2922
+ get: function () { return shared.PROMPT_SUFFIX_KEY; }
2923
+ });
2902
2924
  Object.defineProperty(exports, "SURROUND_DIRECTIONS", {
2903
2925
  enumerable: true,
2904
2926
  get: function () { return shared.SURROUND_DIRECTIONS; }