@nodaro/sdk 1.23.0 → 1.25.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
@@ -238,10 +238,17 @@ var WorkflowsResource = class {
238
238
  }
239
239
  /**
240
240
  * Import a `WorkflowExport` bundle into the specified project.
241
- * Re-creates any bundled assets (characters, objects, locations) under your account.
241
+ * Re-creates any bundled assets (characters, objects, creatures, locations)
242
+ * under your account, and re-points BOTH the entity nodes and every `@`-chip
243
+ * (`ConnectedReference`) bound in the graph at the rows it created.
242
244
  * Media the bundle references on other hosts is copied onto this instance's
243
- * storage where reachable; `importReport` says what was copied, what could
244
- * not be reached, and what was skipped (and why).
245
+ * storage where reachable; a bundled entity's images are copied whoever
246
+ * hosts them, because they are the exporter's bytes and their lifecycle is
247
+ * not yours. `importReport` says what was copied, what could not be reached
248
+ * and what was skipped (and why); `assetIdMap` maps each bundled entity id
249
+ * to the row created for it (for chips you hold outside the graph), and
250
+ * `assetsSkipped` names the entities your storage quota left uncreated —
251
+ * the workflow itself still lands.
245
252
  */
246
253
  import(input) {
247
254
  const { projectId, ...workflowJson } = input;
@@ -1756,6 +1763,19 @@ var VoicesResource = class {
1756
1763
  dub(input) {
1757
1764
  return this.client.request("POST", "/v1/dubbing", { body: input });
1758
1765
  }
1766
+ /**
1767
+ * Voice a multi-speaker script as ONE audio file
1768
+ * (`POST /v1/text-to-dialogue`, ElevenLabs Dialogue v3). Each `dialogue`
1769
+ * line is `{ text, voice }` in speaking order — `voice` is a premade voice
1770
+ * name or an ElevenLabs voice UUID (cloned/library voices work too; mixed
1771
+ * casts are fine). At most 5,000 characters total across lines (≤2,000
1772
+ * recommended for best quality) and 10 unique voices. Line text may carry
1773
+ * `[audio tags]` like `[laughs]`. Costs credits and runs async — poll
1774
+ * `jobs.get(jobId)` for `output_data.audioUrl`.
1775
+ */
1776
+ textToDialogue(input) {
1777
+ return this.client.request("POST", "/v1/text-to-dialogue", { body: input });
1778
+ }
1759
1779
  /**
1760
1780
  * Clone a voice from an audio FILE you hold in memory
1761
1781
  * (`POST /v1/voice-clones`, multipart) — the counterpart to
@@ -2615,7 +2635,7 @@ var WorkspacesResource = class {
2615
2635
  return this.client.request("POST", "/v1/workspaces/join", { body: { code } });
2616
2636
  }
2617
2637
  };
2618
- var SDK_VERSION = "1.23.0" ;
2638
+ var SDK_VERSION = "1.25.0" ;
2619
2639
  var CLIENT_HEADER = "X-Nodaro-Client";
2620
2640
  var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
2621
2641
  var NodaroClient = class _NodaroClient {