@runwayml/sdk 3.11.0 → 3.15.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/CHANGELOG.md +115 -0
- package/LICENSE +1 -1
- package/README.md +43 -2
- package/client.d.mts +53 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +53 -4
- package/client.d.ts.map +1 -1
- package/client.js +75 -20
- package/client.js.map +1 -1
- package/client.mjs +75 -20
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/avatars.d.mts +1308 -0
- package/resources/avatars.d.mts.map +1 -0
- package/resources/avatars.d.ts +1308 -0
- package/resources/avatars.d.ts.map +1 -0
- package/resources/avatars.js +87 -0
- package/resources/avatars.js.map +1 -0
- package/resources/avatars.mjs +83 -0
- package/resources/avatars.mjs.map +1 -0
- package/resources/character-performance.d.mts +3 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +3 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +3 -0
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +3 -0
- package/resources/character-performance.mjs.map +1 -1
- package/resources/documents.d.mts +209 -0
- package/resources/documents.d.mts.map +1 -0
- package/resources/documents.d.ts +209 -0
- package/resources/documents.d.ts.map +1 -0
- package/resources/documents.js +75 -0
- package/resources/documents.js.map +1 -0
- package/resources/documents.mjs +71 -0
- package/resources/documents.mjs.map +1 -0
- package/resources/image-to-video.d.mts +58 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +58 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +3 -0
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +3 -0
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/realtime-sessions.d.mts +180 -0
- package/resources/realtime-sessions.d.mts.map +1 -0
- package/resources/realtime-sessions.d.ts +180 -0
- package/resources/realtime-sessions.d.ts.map +1 -0
- package/resources/realtime-sessions.js +32 -0
- package/resources/realtime-sessions.js.map +1 -0
- package/resources/realtime-sessions.mjs +28 -0
- package/resources/realtime-sessions.mjs.map +1 -0
- package/resources/sound-effect.d.mts +3 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +3 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/sound-effect.js +3 -0
- package/resources/sound-effect.js.map +1 -1
- package/resources/sound-effect.mjs +3 -0
- package/resources/sound-effect.mjs.map +1 -1
- package/resources/speech-to-speech.d.mts +3 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +3 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/speech-to-speech.js +3 -0
- package/resources/speech-to-speech.js.map +1 -1
- package/resources/speech-to-speech.mjs +3 -0
- package/resources/speech-to-speech.mjs.map +1 -1
- package/resources/tasks.d.mts +3 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +3 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +3 -0
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +3 -0
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +3 -0
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +3 -0
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.js +3 -0
- package/resources/text-to-image.js.map +1 -1
- package/resources/text-to-image.mjs +3 -0
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/text-to-speech.d.mts +3 -0
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -0
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech.js +3 -0
- package/resources/text-to-speech.js.map +1 -1
- package/resources/text-to-speech.mjs +3 -0
- package/resources/text-to-speech.mjs.map +1 -1
- package/resources/text-to-video.d.mts +43 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +43 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/text-to-video.js +3 -0
- package/resources/text-to-video.js.map +1 -1
- package/resources/text-to-video.mjs +3 -0
- package/resources/text-to-video.mjs.map +1 -1
- package/resources/video-to-video.d.mts +8 -5
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +8 -5
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +3 -1
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +3 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts +3 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +3 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.js +3 -0
- package/resources/voice-dubbing.js.map +1 -1
- package/resources/voice-dubbing.mjs +3 -0
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts +3 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +3 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +3 -0
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +3 -0
- package/resources/voice-isolation.mjs.map +1 -1
- package/resources/voices.d.mts +257 -0
- package/resources/voices.d.mts.map +1 -0
- package/resources/voices.d.ts +257 -0
- package/resources/voices.d.ts.map +1 -0
- package/resources/voices.js +47 -0
- package/resources/voices.js.map +1 -0
- package/resources/voices.mjs +43 -0
- package/resources/voices.mjs.map +1 -0
- package/src/client.ts +173 -35
- package/src/core/pagination.ts +157 -0
- package/src/index.ts +1 -0
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/avatars.ts +2049 -0
- package/src/resources/character-performance.ts +3 -0
- package/src/resources/documents.ts +270 -0
- package/src/resources/image-to-video.ts +68 -0
- package/src/resources/index.ts +37 -5
- package/src/resources/organization.ts +7 -3
- package/src/resources/realtime-sessions.ts +251 -0
- package/src/resources/sound-effect.ts +3 -0
- package/src/resources/speech-to-speech.ts +3 -0
- package/src/resources/tasks.ts +3 -0
- package/src/resources/text-to-image.ts +3 -0
- package/src/resources/text-to-speech.ts +3 -0
- package/src/resources/text-to-video.ts +50 -0
- package/src/resources/video-to-video.ts +9 -6
- package/src/resources/voice-dubbing.ts +3 -0
- package/src/resources/voice-isolation.ts +3 -0
- package/src/resources/voices.ts +345 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/video-upscale.d.mts +0 -35
- package/resources/video-upscale.d.mts.map +0 -1
- package/resources/video-upscale.d.ts +0 -35
- package/resources/video-upscale.d.ts.map +0 -1
- package/resources/video-upscale.js +0 -25
- package/resources/video-upscale.js.map +0 -1
- package/resources/video-upscale.mjs +0 -21
- package/resources/video-upscale.mjs.map +0 -1
- package/src/resources/video-upscale.ts +0 -51
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.VideoToVideo = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
7
10
|
class VideoToVideo extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* This endpoint will start a new task to generate a video from a video.
|
|
@@ -13,7 +16,6 @@ class VideoToVideo extends resource_1.APIResource {
|
|
|
13
16
|
* const videoToVideo = await client.videoToVideo.create({
|
|
14
17
|
* model: 'gen4_aleph',
|
|
15
18
|
* promptText: 'x',
|
|
16
|
-
* ratio: '1280:720',
|
|
17
19
|
* videoUri: 'https://example.com/video.mp4',
|
|
18
20
|
* });
|
|
19
21
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.js","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.js","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AArBD,oCAqBC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export class VideoToVideo extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to generate a video from a video.
|
|
@@ -10,7 +13,6 @@ export class VideoToVideo extends APIResource {
|
|
|
10
13
|
* const videoToVideo = await client.videoToVideo.create({
|
|
11
14
|
* model: 'gen4_aleph',
|
|
12
15
|
* promptText: 'x',
|
|
13
|
-
* ratio: '1280:720',
|
|
14
16
|
* videoUri: 'https://example.com/video.mp4',
|
|
15
17
|
* });
|
|
16
18
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.mjs","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.mjs","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export declare class VoiceDubbing extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-dubbing.d.mts","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CA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CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;;OAGG;IACH,UAAU,EACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import { RequestOptions } from "../internal/request-options.js";
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export declare class VoiceDubbing extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-dubbing.d.ts","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;;OAGG;IACH,UAAU,EACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"voice-dubbing.d.ts","sourceRoot":"","sources":["../src/resources/voice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5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
7
10
|
class VoiceDubbing extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-dubbing.js","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF;AArBD,oCAqBC"}
|
|
1
|
+
{"version":3,"file":"voice-dubbing.js","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF;AArBD,oCAqBC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export class VoiceDubbing extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-dubbing.mjs","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"voice-dubbing.mjs","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export declare class VoiceIsolation extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to isolate the voice from the background
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-isolation.d.mts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"voice-isolation.d.mts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import { RequestOptions } from "../internal/request-options.js";
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export declare class VoiceIsolation extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to isolate the voice from the background
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-isolation.d.ts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"voice-isolation.d.ts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.VoiceIsolation = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
7
10
|
class VoiceIsolation extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* This endpoint will start a new task to isolate the voice from the background
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-isolation.js","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF;AAtBD,wCAsBC"}
|
|
1
|
+
{"version":3,"file":"voice-isolation.js","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF;AAtBD,wCAsBC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export class VoiceIsolation extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to isolate the voice from the background
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-isolation.mjs","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,sBAAsB,CAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"voice-isolation.mjs","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,sBAAsB,CAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Voices extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a custom voice from a text description.
|
|
8
|
+
*/
|
|
9
|
+
create(body: VoiceCreateParams, options?: RequestOptions): APIPromise<VoiceCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Get details about a specific custom voice.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<VoiceRetrieveResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* List custom voices for the authenticated organization with cursor-based
|
|
16
|
+
* pagination.
|
|
17
|
+
*/
|
|
18
|
+
list(query: VoiceListParams, options?: RequestOptions): PagePromise<VoiceListResponsesCursorPage, VoiceListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a custom voice.
|
|
21
|
+
*/
|
|
22
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Generate a short audio preview of a voice from a text description. Use this to
|
|
25
|
+
* audition a voice before creating it.
|
|
26
|
+
*/
|
|
27
|
+
preview(body: VoicePreviewParams, options?: RequestOptions): APIPromise<VoicePreviewResponse>;
|
|
28
|
+
}
|
|
29
|
+
export type VoiceListResponsesCursorPage = CursorPage<VoiceListResponse>;
|
|
30
|
+
export interface VoiceCreateResponse {
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the voice that was created.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A voice that is still being processed.
|
|
38
|
+
*/
|
|
39
|
+
export type VoiceRetrieveResponse = VoiceRetrieveResponse.Processing | VoiceRetrieveResponse.Ready | VoiceRetrieveResponse.Failed;
|
|
40
|
+
export declare namespace VoiceRetrieveResponse {
|
|
41
|
+
/**
|
|
42
|
+
* A voice that is still being processed.
|
|
43
|
+
*/
|
|
44
|
+
interface Processing {
|
|
45
|
+
/**
|
|
46
|
+
* The unique identifier of the voice.
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
/**
|
|
50
|
+
* When the voice was created.
|
|
51
|
+
*/
|
|
52
|
+
createdAt: string;
|
|
53
|
+
/**
|
|
54
|
+
* A description of the voice, or null if not set.
|
|
55
|
+
*/
|
|
56
|
+
description: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* The name of the voice.
|
|
59
|
+
*/
|
|
60
|
+
name: string;
|
|
61
|
+
status: 'PROCESSING';
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A voice that is ready for use.
|
|
65
|
+
*/
|
|
66
|
+
interface Ready {
|
|
67
|
+
/**
|
|
68
|
+
* The unique identifier of the voice.
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* When the voice was created.
|
|
73
|
+
*/
|
|
74
|
+
createdAt: string;
|
|
75
|
+
/**
|
|
76
|
+
* A description of the voice, or null if not set.
|
|
77
|
+
*/
|
|
78
|
+
description: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* The name of the voice.
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
/**
|
|
84
|
+
* A signed URL to an MP3 audio sample of the voice, or null if no sample is
|
|
85
|
+
* available.
|
|
86
|
+
*/
|
|
87
|
+
previewUrl: string | null;
|
|
88
|
+
status: 'READY';
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A voice that failed to finish processing.
|
|
92
|
+
*/
|
|
93
|
+
interface Failed {
|
|
94
|
+
/**
|
|
95
|
+
* The unique identifier of the voice.
|
|
96
|
+
*/
|
|
97
|
+
id: string;
|
|
98
|
+
/**
|
|
99
|
+
* When the voice was created.
|
|
100
|
+
*/
|
|
101
|
+
createdAt: string;
|
|
102
|
+
/**
|
|
103
|
+
* A description of the voice, or null if not set.
|
|
104
|
+
*/
|
|
105
|
+
description: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* A human-readable error message. This value is not stable and should not be
|
|
108
|
+
* matched against programmatically.
|
|
109
|
+
*/
|
|
110
|
+
failureReason: string;
|
|
111
|
+
/**
|
|
112
|
+
* The name of the voice.
|
|
113
|
+
*/
|
|
114
|
+
name: string;
|
|
115
|
+
status: 'FAILED';
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* A voice that is still being processed.
|
|
120
|
+
*/
|
|
121
|
+
export type VoiceListResponse = VoiceListResponse.Processing | VoiceListResponse.Ready | VoiceListResponse.Failed;
|
|
122
|
+
export declare namespace VoiceListResponse {
|
|
123
|
+
/**
|
|
124
|
+
* A voice that is still being processed.
|
|
125
|
+
*/
|
|
126
|
+
interface Processing {
|
|
127
|
+
/**
|
|
128
|
+
* The unique identifier of the voice.
|
|
129
|
+
*/
|
|
130
|
+
id: string;
|
|
131
|
+
/**
|
|
132
|
+
* When the voice was created.
|
|
133
|
+
*/
|
|
134
|
+
createdAt: string;
|
|
135
|
+
/**
|
|
136
|
+
* A description of the voice, or null if not set.
|
|
137
|
+
*/
|
|
138
|
+
description: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* The name of the voice.
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
status: 'PROCESSING';
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* A voice that is ready for use.
|
|
147
|
+
*/
|
|
148
|
+
interface Ready {
|
|
149
|
+
/**
|
|
150
|
+
* The unique identifier of the voice.
|
|
151
|
+
*/
|
|
152
|
+
id: string;
|
|
153
|
+
/**
|
|
154
|
+
* When the voice was created.
|
|
155
|
+
*/
|
|
156
|
+
createdAt: string;
|
|
157
|
+
/**
|
|
158
|
+
* A description of the voice, or null if not set.
|
|
159
|
+
*/
|
|
160
|
+
description: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* The name of the voice.
|
|
163
|
+
*/
|
|
164
|
+
name: string;
|
|
165
|
+
/**
|
|
166
|
+
* A signed URL to an MP3 audio sample of the voice, or null if no sample is
|
|
167
|
+
* available.
|
|
168
|
+
*/
|
|
169
|
+
previewUrl: string | null;
|
|
170
|
+
status: 'READY';
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* A voice that failed to finish processing.
|
|
174
|
+
*/
|
|
175
|
+
interface Failed {
|
|
176
|
+
/**
|
|
177
|
+
* The unique identifier of the voice.
|
|
178
|
+
*/
|
|
179
|
+
id: string;
|
|
180
|
+
/**
|
|
181
|
+
* When the voice was created.
|
|
182
|
+
*/
|
|
183
|
+
createdAt: string;
|
|
184
|
+
/**
|
|
185
|
+
* A description of the voice, or null if not set.
|
|
186
|
+
*/
|
|
187
|
+
description: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* A human-readable error message. This value is not stable and should not be
|
|
190
|
+
* matched against programmatically.
|
|
191
|
+
*/
|
|
192
|
+
failureReason: string;
|
|
193
|
+
/**
|
|
194
|
+
* The name of the voice.
|
|
195
|
+
*/
|
|
196
|
+
name: string;
|
|
197
|
+
status: 'FAILED';
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
export interface VoicePreviewResponse {
|
|
201
|
+
/**
|
|
202
|
+
* Duration of the audio preview in seconds.
|
|
203
|
+
*/
|
|
204
|
+
durationSecs: number;
|
|
205
|
+
/**
|
|
206
|
+
* A presigned URL to the audio preview. The URL expires after 24 hours.
|
|
207
|
+
*/
|
|
208
|
+
url: string;
|
|
209
|
+
}
|
|
210
|
+
export interface VoiceCreateParams {
|
|
211
|
+
/**
|
|
212
|
+
* The source configuration for creating the voice.
|
|
213
|
+
*/
|
|
214
|
+
from: VoiceCreateParams.From;
|
|
215
|
+
/**
|
|
216
|
+
* A name for the voice.
|
|
217
|
+
*/
|
|
218
|
+
name: string;
|
|
219
|
+
/**
|
|
220
|
+
* An optional description of the voice.
|
|
221
|
+
*/
|
|
222
|
+
description?: string | null;
|
|
223
|
+
}
|
|
224
|
+
export declare namespace VoiceCreateParams {
|
|
225
|
+
/**
|
|
226
|
+
* The source configuration for creating the voice.
|
|
227
|
+
*/
|
|
228
|
+
interface From {
|
|
229
|
+
/**
|
|
230
|
+
* The voice design model to use.
|
|
231
|
+
*/
|
|
232
|
+
model: 'eleven_multilingual_ttv_v2' | 'eleven_ttv_v3';
|
|
233
|
+
/**
|
|
234
|
+
* A text description of the desired voice characteristics. Must be at least 20
|
|
235
|
+
* characters.
|
|
236
|
+
*/
|
|
237
|
+
prompt: string;
|
|
238
|
+
type: 'text';
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
export interface VoiceListParams extends CursorPageParams {
|
|
242
|
+
}
|
|
243
|
+
export interface VoicePreviewParams {
|
|
244
|
+
/**
|
|
245
|
+
* The voice design model to use.
|
|
246
|
+
*/
|
|
247
|
+
model: 'eleven_multilingual_ttv_v2' | 'eleven_ttv_v3';
|
|
248
|
+
/**
|
|
249
|
+
* A text description of the desired voice characteristics. Must be at least 20
|
|
250
|
+
* characters.
|
|
251
|
+
*/
|
|
252
|
+
prompt: string;
|
|
253
|
+
}
|
|
254
|
+
export declare namespace Voices {
|
|
255
|
+
export { type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoicePreviewResponse as VoicePreviewResponse, type VoiceListResponsesCursorPage as VoiceListResponsesCursorPage, type VoiceCreateParams as VoiceCreateParams, type VoiceListParams as VoiceListParams, type VoicePreviewParams as VoicePreviewParams, };
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=voices.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voices.d.mts","sourceRoot":"","sources":["../src/resources/voices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF;;;OAGG;IACH,IAAI,CACF,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,4BAA4B,EAAE,iBAAiB,CAAC;IAI/D;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO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