@nodaro/sdk 2.20.0 → 2.21.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/README.md +2 -2
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -3
- package/dist/index.d.ts +45 -3
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1131,7 +1131,7 @@ interface TextToSpeechParams {
|
|
|
1131
1131
|
/** A premade voice NAME (Rachel, George, …) or a library / custom voice id. */
|
|
1132
1132
|
voice?: string;
|
|
1133
1133
|
voiceType?: "premade" | "custom" | "library";
|
|
1134
|
-
/** `elevenlabs-v4` (the default), `elevenlabs-v3`, `elevenlabs-turbo`, `elevenlabs-multilingual`. */
|
|
1134
|
+
/** `elevenlabs-v4` (the default), `elevenlabs-v3`, `elevenlabs-v4-turbo`, `elevenlabs-turbo`, `elevenlabs-multilingual`. */
|
|
1135
1135
|
provider?: string;
|
|
1136
1136
|
stability?: number;
|
|
1137
1137
|
similarityBoost?: number;
|
|
@@ -1717,6 +1717,21 @@ interface PublishedApp {
|
|
|
1717
1717
|
category?: string | null;
|
|
1718
1718
|
isFeatured?: boolean;
|
|
1719
1719
|
runCount?: number;
|
|
1720
|
+
/** The listed price per run; when `perMinuteCredits` is above 0, its fixed part. */
|
|
1721
|
+
estimatedCredits?: number | null;
|
|
1722
|
+
/**
|
|
1723
|
+
* Credits per minute of the recording the app is given, when its price
|
|
1724
|
+
* follows that recording's length: the price is `estimatedCredits` plus
|
|
1725
|
+
* this per minute. 0 or absent when the price does not depend on a
|
|
1726
|
+
* recording's length.
|
|
1727
|
+
*/
|
|
1728
|
+
perMinuteCredits?: number;
|
|
1729
|
+
/**
|
|
1730
|
+
* Credits for each item beyond the creator's saved items of a list input
|
|
1731
|
+
* the app's user fills: the price is the listed one plus this per further
|
|
1732
|
+
* item. 0 or absent when the app has no such input.
|
|
1733
|
+
*/
|
|
1734
|
+
perItemCredits?: number;
|
|
1720
1735
|
createdAt: string;
|
|
1721
1736
|
updatedAt: string;
|
|
1722
1737
|
}
|
|
@@ -1746,6 +1761,21 @@ interface PublishedAppDetail extends PublishedApp {
|
|
|
1746
1761
|
label: string;
|
|
1747
1762
|
type: string;
|
|
1748
1763
|
}>;
|
|
1764
|
+
/**
|
|
1765
|
+
* The app run alone: the listed price less its Render final part (run and
|
|
1766
|
+
* charged separately) — fixed, per minute of the recording and per further
|
|
1767
|
+
* list item. Absent from a server that predates them; read the listed
|
|
1768
|
+
* `estimatedCredits` / `perMinuteCredits` / `perItemCredits` instead.
|
|
1769
|
+
*/
|
|
1770
|
+
runEstimatedCredits?: number;
|
|
1771
|
+
runPerMinuteCredits?: number;
|
|
1772
|
+
runPerItemCredits?: number;
|
|
1773
|
+
/**
|
|
1774
|
+
* Whether this server charges Edit Plan per started minute of the recording
|
|
1775
|
+
* (otherwise in 15/30/60/90/120/180-minute steps). Absent from a server that
|
|
1776
|
+
* predates it: read it as the steps.
|
|
1777
|
+
*/
|
|
1778
|
+
editPlanPerMinute?: boolean;
|
|
1749
1779
|
}
|
|
1750
1780
|
interface AppRunResult {
|
|
1751
1781
|
/** The execution-id that was started — poll via client.executions.get(). */
|
|
@@ -4575,8 +4605,9 @@ declare class VoicesResource {
|
|
|
4575
4605
|
* Dialogue v4 (`provider: "elevenlabs-dialogue-v4"`). Each `dialogue` line is
|
|
4576
4606
|
* `{ text, voice }` in speaking order — `voice` is a premade voice name or an
|
|
4577
4607
|
* ElevenLabs voice UUID (cloned/library voices work too; mixed casts are
|
|
4578
|
-
* fine). At most 5,000 characters total across lines on
|
|
4579
|
-
* (≤2,000 recommended for best quality) and 10 unique
|
|
4608
|
+
* fine). At most 5,000 characters total across lines on Dialogue v3 and
|
|
4609
|
+
* 10,000 on Dialogue v4 (≤2,000 recommended for best quality) and 10 unique
|
|
4610
|
+
* voices. Line text may
|
|
4580
4611
|
* carry `[audio tags]` like `[laughs]`. Costs credits and runs async — poll
|
|
4581
4612
|
* `jobs.get(jobId)` for `output_data.audioUrl` and — on every dialogue model,
|
|
4582
4613
|
* since both return timings at no extra credits — `output_data.transcript`, a
|
|
@@ -7844,7 +7875,15 @@ interface TemplateBrowseCard {
|
|
|
7844
7875
|
slug: string;
|
|
7845
7876
|
name: string;
|
|
7846
7877
|
description: string | null;
|
|
7878
|
+
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
7847
7879
|
estimatedCredits: number;
|
|
7880
|
+
/**
|
|
7881
|
+
* Credits per minute of the recording the template is given, when its price
|
|
7882
|
+
* follows that recording's length (an Apply EDL render of a whole episode,
|
|
7883
|
+
* an Edit Plan pass): the price is `estimatedCredits` plus this per minute.
|
|
7884
|
+
* 0 or absent when the price does not depend on a recording's length.
|
|
7885
|
+
*/
|
|
7886
|
+
estimatedPerMinuteCredits?: number;
|
|
7848
7887
|
category: string;
|
|
7849
7888
|
outputTypes: string[];
|
|
7850
7889
|
tags: string[];
|
|
@@ -7949,7 +7988,10 @@ interface TutorialFlowItem {
|
|
|
7949
7988
|
previewMediaUrl: string | null;
|
|
7950
7989
|
previewMediaType: "image" | "video" | null;
|
|
7951
7990
|
complexity: string;
|
|
7991
|
+
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
7952
7992
|
estimatedCredits: number;
|
|
7993
|
+
/** Credits per minute of the recording the template is given (see `TemplateBrowseCard`); 0 or absent when none. */
|
|
7994
|
+
estimatedPerMinuteCredits?: number;
|
|
7953
7995
|
nodeTypesUsed: string[];
|
|
7954
7996
|
providersUsed: string[];
|
|
7955
7997
|
nodeCount: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1131,7 +1131,7 @@ interface TextToSpeechParams {
|
|
|
1131
1131
|
/** A premade voice NAME (Rachel, George, …) or a library / custom voice id. */
|
|
1132
1132
|
voice?: string;
|
|
1133
1133
|
voiceType?: "premade" | "custom" | "library";
|
|
1134
|
-
/** `elevenlabs-v4` (the default), `elevenlabs-v3`, `elevenlabs-turbo`, `elevenlabs-multilingual`. */
|
|
1134
|
+
/** `elevenlabs-v4` (the default), `elevenlabs-v3`, `elevenlabs-v4-turbo`, `elevenlabs-turbo`, `elevenlabs-multilingual`. */
|
|
1135
1135
|
provider?: string;
|
|
1136
1136
|
stability?: number;
|
|
1137
1137
|
similarityBoost?: number;
|
|
@@ -1717,6 +1717,21 @@ interface PublishedApp {
|
|
|
1717
1717
|
category?: string | null;
|
|
1718
1718
|
isFeatured?: boolean;
|
|
1719
1719
|
runCount?: number;
|
|
1720
|
+
/** The listed price per run; when `perMinuteCredits` is above 0, its fixed part. */
|
|
1721
|
+
estimatedCredits?: number | null;
|
|
1722
|
+
/**
|
|
1723
|
+
* Credits per minute of the recording the app is given, when its price
|
|
1724
|
+
* follows that recording's length: the price is `estimatedCredits` plus
|
|
1725
|
+
* this per minute. 0 or absent when the price does not depend on a
|
|
1726
|
+
* recording's length.
|
|
1727
|
+
*/
|
|
1728
|
+
perMinuteCredits?: number;
|
|
1729
|
+
/**
|
|
1730
|
+
* Credits for each item beyond the creator's saved items of a list input
|
|
1731
|
+
* the app's user fills: the price is the listed one plus this per further
|
|
1732
|
+
* item. 0 or absent when the app has no such input.
|
|
1733
|
+
*/
|
|
1734
|
+
perItemCredits?: number;
|
|
1720
1735
|
createdAt: string;
|
|
1721
1736
|
updatedAt: string;
|
|
1722
1737
|
}
|
|
@@ -1746,6 +1761,21 @@ interface PublishedAppDetail extends PublishedApp {
|
|
|
1746
1761
|
label: string;
|
|
1747
1762
|
type: string;
|
|
1748
1763
|
}>;
|
|
1764
|
+
/**
|
|
1765
|
+
* The app run alone: the listed price less its Render final part (run and
|
|
1766
|
+
* charged separately) — fixed, per minute of the recording and per further
|
|
1767
|
+
* list item. Absent from a server that predates them; read the listed
|
|
1768
|
+
* `estimatedCredits` / `perMinuteCredits` / `perItemCredits` instead.
|
|
1769
|
+
*/
|
|
1770
|
+
runEstimatedCredits?: number;
|
|
1771
|
+
runPerMinuteCredits?: number;
|
|
1772
|
+
runPerItemCredits?: number;
|
|
1773
|
+
/**
|
|
1774
|
+
* Whether this server charges Edit Plan per started minute of the recording
|
|
1775
|
+
* (otherwise in 15/30/60/90/120/180-minute steps). Absent from a server that
|
|
1776
|
+
* predates it: read it as the steps.
|
|
1777
|
+
*/
|
|
1778
|
+
editPlanPerMinute?: boolean;
|
|
1749
1779
|
}
|
|
1750
1780
|
interface AppRunResult {
|
|
1751
1781
|
/** The execution-id that was started — poll via client.executions.get(). */
|
|
@@ -4575,8 +4605,9 @@ declare class VoicesResource {
|
|
|
4575
4605
|
* Dialogue v4 (`provider: "elevenlabs-dialogue-v4"`). Each `dialogue` line is
|
|
4576
4606
|
* `{ text, voice }` in speaking order — `voice` is a premade voice name or an
|
|
4577
4607
|
* ElevenLabs voice UUID (cloned/library voices work too; mixed casts are
|
|
4578
|
-
* fine). At most 5,000 characters total across lines on
|
|
4579
|
-
* (≤2,000 recommended for best quality) and 10 unique
|
|
4608
|
+
* fine). At most 5,000 characters total across lines on Dialogue v3 and
|
|
4609
|
+
* 10,000 on Dialogue v4 (≤2,000 recommended for best quality) and 10 unique
|
|
4610
|
+
* voices. Line text may
|
|
4580
4611
|
* carry `[audio tags]` like `[laughs]`. Costs credits and runs async — poll
|
|
4581
4612
|
* `jobs.get(jobId)` for `output_data.audioUrl` and — on every dialogue model,
|
|
4582
4613
|
* since both return timings at no extra credits — `output_data.transcript`, a
|
|
@@ -7844,7 +7875,15 @@ interface TemplateBrowseCard {
|
|
|
7844
7875
|
slug: string;
|
|
7845
7876
|
name: string;
|
|
7846
7877
|
description: string | null;
|
|
7878
|
+
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
7847
7879
|
estimatedCredits: number;
|
|
7880
|
+
/**
|
|
7881
|
+
* Credits per minute of the recording the template is given, when its price
|
|
7882
|
+
* follows that recording's length (an Apply EDL render of a whole episode,
|
|
7883
|
+
* an Edit Plan pass): the price is `estimatedCredits` plus this per minute.
|
|
7884
|
+
* 0 or absent when the price does not depend on a recording's length.
|
|
7885
|
+
*/
|
|
7886
|
+
estimatedPerMinuteCredits?: number;
|
|
7848
7887
|
category: string;
|
|
7849
7888
|
outputTypes: string[];
|
|
7850
7889
|
tags: string[];
|
|
@@ -7949,7 +7988,10 @@ interface TutorialFlowItem {
|
|
|
7949
7988
|
previewMediaUrl: string | null;
|
|
7950
7989
|
previewMediaType: "image" | "video" | null;
|
|
7951
7990
|
complexity: string;
|
|
7991
|
+
/** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */
|
|
7952
7992
|
estimatedCredits: number;
|
|
7993
|
+
/** Credits per minute of the recording the template is given (see `TemplateBrowseCard`); 0 or absent when none. */
|
|
7994
|
+
estimatedPerMinuteCredits?: number;
|
|
7953
7995
|
nodeTypesUsed: string[];
|
|
7954
7996
|
providersUsed: string[];
|
|
7955
7997
|
nodeCount: number;
|
package/dist/index.js
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 remapTranscriptThroughEdl(edl, transcript);
|
|
3975
3976
|
}
|
|
3976
3977
|
};
|
|
3977
|
-
var SDK_VERSION = "2.
|
|
3978
|
+
var SDK_VERSION = "2.21.0" ;
|
|
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 {
|