@nodaro/sdk 2.20.0 → 2.21.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 +2 -2
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -6
- package/dist/index.d.ts +48 -6
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ Core pattern (all generation is async; runAndWait submits + polls + resolves):
|
|
|
76
76
|
auth: new StaticTokenAuth(process.env.NODARO_ACCESS_TOKEN!),
|
|
77
77
|
})
|
|
78
78
|
const img = await client.nodes.runAndWait("generate-image", {
|
|
79
|
-
prompt: "…", provider: "
|
|
79
|
+
prompt: "…", provider: "gpt-image-2", // the platform default
|
|
80
80
|
})
|
|
81
81
|
const vid = await client.nodes.runAndWait("generate-video", {
|
|
82
82
|
prompt: "…", imageUrl: img.imageUrl,
|
|
@@ -137,7 +137,7 @@ A proven first build (text in → video out). Paste after the primer:
|
|
|
137
137
|
|
|
138
138
|
```text
|
|
139
139
|
Build a small web app — "animated postcard":
|
|
140
|
-
1. A prompt box. On submit: generate-image (nano-banana-2) with the prompt.
|
|
140
|
+
1. A prompt box. On submit: generate-image (nano-banana-2-1) with the prompt.
|
|
141
141
|
2. Show the image IMMEDIATELY when it resolves.
|
|
142
142
|
3. Then generate-video (seedance-2-fast, duration 4) with that image as
|
|
143
143
|
imageUrl and prompt "subtle cinematic motion".
|
package/dist/index.cjs
CHANGED
|
@@ -2110,8 +2110,9 @@ var VoicesResource = class {
|
|
|
2110
2110
|
* Dialogue v4 (`provider: "elevenlabs-dialogue-v4"`). Each `dialogue` line is
|
|
2111
2111
|
* `{ text, voice }` in speaking order — `voice` is a premade voice name or an
|
|
2112
2112
|
* ElevenLabs voice UUID (cloned/library voices work too; mixed casts are
|
|
2113
|
-
* fine). At most 5,000 characters total across lines on
|
|
2114
|
-
* (≤2,000 recommended for best quality) and 10 unique
|
|
2113
|
+
* fine). At most 5,000 characters total across lines on Dialogue v3 and
|
|
2114
|
+
* 10,000 on Dialogue v4 (≤2,000 recommended for best quality) and 10 unique
|
|
2115
|
+
* voices. Line text may
|
|
2115
2116
|
* carry `[audio tags]` like `[laughs]`. Costs credits and runs async — poll
|
|
2116
2117
|
* `jobs.get(jobId)` for `output_data.audioUrl` and — on every dialogue model,
|
|
2117
2118
|
* since both return timings at no extra credits — `output_data.transcript`, a
|
|
@@ -3974,7 +3975,7 @@ var EditResource = class {
|
|
|
3974
3975
|
return shared.remapTranscriptThroughEdl(edl, transcript);
|
|
3975
3976
|
}
|
|
3976
3977
|
};
|
|
3977
|
-
var SDK_VERSION = "2.
|
|
3978
|
+
var SDK_VERSION = "2.21.1" ;
|
|
3978
3979
|
var CLIENT_HEADER = "X-Nodaro-Client";
|
|
3979
3980
|
var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
3980
3981
|
var NodaroClient = class _NodaroClient {
|