@runwayml/sdk 3.5.0 → 3.7.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 +16 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +5 -2
- package/client.js.map +1 -1
- package/client.mjs +5 -2
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +1 -1
- package/resources/character-performance.d.mts +32 -5
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +32 -5
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +16 -0
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +16 -0
- package/resources/character-performance.mjs.map +1 -1
- package/resources/image-to-video.d.mts +215 -88
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +215 -88
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +10 -1
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +10 -1
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/speech-to-speech.d.mts +16 -4
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +16 -4
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +3 -3
- package/resources/text-to-image.d.ts +3 -3
- package/resources/text-to-speech.d.mts +2 -2
- package/resources/text-to-speech.d.ts +2 -2
- package/resources/text-to-video.d.mts +50 -28
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +50 -28
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/uploads.d.mts +33 -0
- package/resources/uploads.d.mts.map +1 -0
- package/resources/uploads.d.ts +33 -0
- package/resources/uploads.d.ts.map +1 -0
- package/resources/uploads.js +75 -0
- package/resources/uploads.js.map +1 -0
- package/resources/uploads.mjs +70 -0
- package/resources/uploads.mjs.map +1 -0
- package/resources/video-to-video.d.mts +12 -10
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +12 -10
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +10 -0
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +10 -0
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/video-upscale.d.mts +9 -9
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +9 -9
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/video-upscale.js +8 -0
- package/resources/video-upscale.js.map +1 -1
- package/resources/video-upscale.mjs +8 -0
- package/resources/video-upscale.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts +10 -1
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +10 -1
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.js +9 -0
- package/resources/voice-dubbing.js.map +1 -1
- package/resources/voice-dubbing.mjs +9 -0
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts +11 -2
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +11 -2
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +10 -1
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +10 -1
- package/resources/voice-isolation.mjs.map +1 -1
- package/src/client.ts +11 -2
- package/src/resources/character-performance.ts +32 -5
- package/src/resources/image-to-video.ts +253 -99
- package/src/resources/index.ts +1 -0
- package/src/resources/speech-to-speech.ts +16 -4
- package/src/resources/text-to-image.ts +3 -3
- package/src/resources/text-to-speech.ts +2 -2
- package/src/resources/text-to-video.ts +61 -28
- package/src/resources/uploads.ts +135 -0
- package/src/resources/video-to-video.ts +12 -10
- package/src/resources/video-upscale.ts +9 -9
- package/src/resources/voice-dubbing.ts +10 -1
- package/src/resources/voice-isolation.ts +11 -2
- 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
|
@@ -5,24 +5,24 @@ export declare class VideoUpscale extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to upscale a video. Videos will be upscaled
|
|
7
7
|
* by a factor of 4X, capped at a maximum of 4096px along each side.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const videoUpscale = await client.videoUpscale.create({
|
|
12
|
+
* model: 'upscale_v1',
|
|
13
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
8
16
|
*/
|
|
9
17
|
create(body: VideoUpscaleCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse>;
|
|
10
18
|
}
|
|
11
19
|
export interface VideoUpscaleCreateResponse {
|
|
12
|
-
/**
|
|
13
|
-
* The ID of the newly created task.
|
|
14
|
-
*/
|
|
15
20
|
id: string;
|
|
16
21
|
}
|
|
17
22
|
export interface VideoUpscaleCreateParams {
|
|
18
|
-
/**
|
|
19
|
-
* The model variant to use.
|
|
20
|
-
*/
|
|
21
23
|
model: 'upscale_v1';
|
|
22
24
|
/**
|
|
23
|
-
* A HTTPS URL
|
|
24
|
-
* be less than 4096px on each side. The video duration may not exceed 40 seconds.
|
|
25
|
-
* See [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
25
|
+
* A HTTPS URL.
|
|
26
26
|
*/
|
|
27
27
|
videoUri: string;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-upscale.d.ts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-upscale.d.ts","sourceRoot":"","sources":["../src/resources/video-upscale.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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -8,6 +8,14 @@ class VideoUpscale extends resource_1.APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to upscale a video. Videos will be upscaled
|
|
10
10
|
* by a factor of 4X, capped at a maximum of 4096px along each side.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const videoUpscale = await client.videoUpscale.create({
|
|
15
|
+
* model: 'upscale_v1',
|
|
16
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
11
19
|
*/
|
|
12
20
|
create(body, options) {
|
|
13
21
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/video_upscale', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-upscale.js","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-upscale.js","sourceRoot":"","sources":["../src/resources/video-upscale.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"}
|
|
@@ -5,6 +5,14 @@ export class VideoUpscale extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to upscale a video. Videos will be upscaled
|
|
7
7
|
* by a factor of 4X, capped at a maximum of 4096px along each side.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const videoUpscale = await client.videoUpscale.create({
|
|
12
|
+
* model: 'upscale_v1',
|
|
13
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
8
16
|
*/
|
|
9
17
|
create(body, options) {
|
|
10
18
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/video_upscale', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-upscale.mjs","sourceRoot":"","sources":["../src/resources/video-upscale.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-upscale.mjs","sourceRoot":"","sources":["../src/resources/video-upscale.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"}
|
|
@@ -4,6 +4,15 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
|
4
4
|
export declare class VoiceDubbing extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const voiceDubbing = await client.voiceDubbing.create({
|
|
11
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
12
|
+
* model: 'eleven_voice_dubbing',
|
|
13
|
+
* targetLang: 'en',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
|
|
9
18
|
}
|
|
@@ -12,7 +21,7 @@ export interface VoiceDubbingCreateResponse {
|
|
|
12
21
|
}
|
|
13
22
|
export interface VoiceDubbingCreateParams {
|
|
14
23
|
/**
|
|
15
|
-
* A
|
|
24
|
+
* A HTTPS URL.
|
|
16
25
|
*/
|
|
17
26
|
audioUri: string;
|
|
18
27
|
model: 'eleven_voice_dubbing';
|
|
@@ -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
|
|
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,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC,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"}
|
|
@@ -4,6 +4,15 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
|
4
4
|
export declare class VoiceDubbing extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const voiceDubbing = await client.voiceDubbing.create({
|
|
11
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
12
|
+
* model: 'eleven_voice_dubbing',
|
|
13
|
+
* targetLang: 'en',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
|
|
9
18
|
}
|
|
@@ -12,7 +21,7 @@ export interface VoiceDubbingCreateResponse {
|
|
|
12
21
|
}
|
|
13
22
|
export interface VoiceDubbingCreateParams {
|
|
14
23
|
/**
|
|
15
|
-
* A
|
|
24
|
+
* A HTTPS URL.
|
|
16
25
|
*/
|
|
17
26
|
audioUri: string;
|
|
18
27
|
model: 'eleven_voice_dubbing';
|
|
@@ -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
|
|
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,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"}
|
|
@@ -7,6 +7,15 @@ const polling_1 = require("../lib/polling.js");
|
|
|
7
7
|
class VoiceDubbing extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const voiceDubbing = await client.voiceDubbing.create({
|
|
14
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
15
|
+
* model: 'eleven_voice_dubbing',
|
|
16
|
+
* targetLang: 'en',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(body, options) {
|
|
12
21
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/voice_dubbing', { body, ...options }));
|
|
@@ -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
|
|
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"}
|
|
@@ -4,6 +4,15 @@ import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
|
4
4
|
export class VoiceDubbing extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const voiceDubbing = await client.voiceDubbing.create({
|
|
11
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
12
|
+
* model: 'eleven_voice_dubbing',
|
|
13
|
+
* targetLang: 'en',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(body, options) {
|
|
9
18
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/voice_dubbing', { body, ...options }));
|
|
@@ -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
|
|
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"}
|
|
@@ -4,7 +4,16 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
|
4
4
|
export declare class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
-
* audio.
|
|
7
|
+
* audio. Audio duration must be greater than 4.6 seconds and less than 3600
|
|
8
|
+
* seconds.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const voiceIsolation = await client.voiceIsolation.create({
|
|
13
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
14
|
+
* model: 'eleven_voice_isolation',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
8
17
|
*/
|
|
9
18
|
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
10
19
|
}
|
|
@@ -13,7 +22,7 @@ export interface VoiceIsolationCreateResponse {
|
|
|
13
22
|
}
|
|
14
23
|
export interface VoiceIsolationCreateParams {
|
|
15
24
|
/**
|
|
16
|
-
* A
|
|
25
|
+
* A HTTPS URL.
|
|
17
26
|
*/
|
|
18
27
|
audioUri: string;
|
|
19
28
|
model: 'eleven_voice_isolation';
|
|
@@ -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
|
|
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,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,7 +4,16 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
|
4
4
|
export declare class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
-
* audio.
|
|
7
|
+
* audio. Audio duration must be greater than 4.6 seconds and less than 3600
|
|
8
|
+
* seconds.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const voiceIsolation = await client.voiceIsolation.create({
|
|
13
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
14
|
+
* model: 'eleven_voice_isolation',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
8
17
|
*/
|
|
9
18
|
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
10
19
|
}
|
|
@@ -13,7 +22,7 @@ export interface VoiceIsolationCreateResponse {
|
|
|
13
22
|
}
|
|
14
23
|
export interface VoiceIsolationCreateParams {
|
|
15
24
|
/**
|
|
16
|
-
* A
|
|
25
|
+
* A HTTPS URL.
|
|
17
26
|
*/
|
|
18
27
|
audioUri: string;
|
|
19
28
|
model: 'eleven_voice_isolation';
|
|
@@ -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
|
|
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,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"}
|
|
@@ -7,7 +7,16 @@ const polling_1 = require("../lib/polling.js");
|
|
|
7
7
|
class VoiceIsolation extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to isolate the voice from the background
|
|
10
|
-
* audio.
|
|
10
|
+
* audio. Audio duration must be greater than 4.6 seconds and less than 3600
|
|
11
|
+
* seconds.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const voiceIsolation = await client.voiceIsolation.create({
|
|
16
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
17
|
+
* model: 'eleven_voice_isolation',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
11
20
|
*/
|
|
12
21
|
create(body, options) {
|
|
13
22
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
|
|
@@ -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
|
|
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"}
|
|
@@ -4,7 +4,16 @@ import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
|
4
4
|
export class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
-
* audio.
|
|
7
|
+
* audio. Audio duration must be greater than 4.6 seconds and less than 3600
|
|
8
|
+
* seconds.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const voiceIsolation = await client.voiceIsolation.create({
|
|
13
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
14
|
+
* model: 'eleven_voice_isolation',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
8
17
|
*/
|
|
9
18
|
create(body, options) {
|
|
10
19
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
|
|
@@ -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
|
|
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"}
|
package/src/client.ts
CHANGED
|
@@ -13,7 +13,7 @@ import * as Shims from './internal/shims';
|
|
|
13
13
|
import * as Opts from './internal/request-options';
|
|
14
14
|
import { VERSION } from './version';
|
|
15
15
|
import * as Errors from './core/error';
|
|
16
|
-
import * as
|
|
16
|
+
import * as UploadsCore from './core/uploads';
|
|
17
17
|
import * as API from './resources/index';
|
|
18
18
|
import { APIPromise } from './core/api-promise';
|
|
19
19
|
import {
|
|
@@ -66,6 +66,7 @@ import {
|
|
|
66
66
|
VoiceIsolationCreateParams,
|
|
67
67
|
VoiceIsolationCreateResponse,
|
|
68
68
|
} from './resources/voice-isolation';
|
|
69
|
+
import { Uploads, UploadsCreateEphemeralParams, UploadCreateEphemeralResponse } from './resources/uploads';
|
|
69
70
|
import { type Fetch } from './internal/builtin-types';
|
|
70
71
|
import { isRunningInBrowser } from './internal/detect-platform';
|
|
71
72
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
@@ -777,7 +778,7 @@ export class RunwayML {
|
|
|
777
778
|
static PermissionDeniedError = Errors.PermissionDeniedError;
|
|
778
779
|
static UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
779
780
|
|
|
780
|
-
static toFile =
|
|
781
|
+
static toFile = UploadsCore.toFile;
|
|
781
782
|
|
|
782
783
|
tasks: API.Tasks = new API.Tasks(this);
|
|
783
784
|
imageToVideo: API.ImageToVideo = new API.ImageToVideo(this);
|
|
@@ -792,6 +793,7 @@ export class RunwayML {
|
|
|
792
793
|
voiceDubbing: API.VoiceDubbing = new API.VoiceDubbing(this);
|
|
793
794
|
speechToSpeech: API.SpeechToSpeech = new API.SpeechToSpeech(this);
|
|
794
795
|
organization: API.Organization = new API.Organization(this);
|
|
796
|
+
uploads: API.Uploads = new API.Uploads(this);
|
|
795
797
|
}
|
|
796
798
|
|
|
797
799
|
RunwayML.Tasks = Tasks;
|
|
@@ -807,6 +809,7 @@ RunwayML.VoiceIsolation = VoiceIsolation;
|
|
|
807
809
|
RunwayML.VoiceDubbing = VoiceDubbing;
|
|
808
810
|
RunwayML.SpeechToSpeech = SpeechToSpeech;
|
|
809
811
|
RunwayML.Organization = Organization;
|
|
812
|
+
RunwayML.Uploads = Uploads;
|
|
810
813
|
|
|
811
814
|
export declare namespace RunwayML {
|
|
812
815
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -885,4 +888,10 @@ export declare namespace RunwayML {
|
|
|
885
888
|
type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse,
|
|
886
889
|
type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams,
|
|
887
890
|
};
|
|
891
|
+
|
|
892
|
+
export {
|
|
893
|
+
Uploads as Uploads,
|
|
894
|
+
type UploadCreateEphemeralResponse as UploadCreateEphemeralResponse,
|
|
895
|
+
type UploadsCreateEphemeralParams as UploadsCreateEphemeralParams,
|
|
896
|
+
};
|
|
888
897
|
}
|
|
@@ -8,6 +8,22 @@ export class CharacterPerformance extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to control a character's facial expressions
|
|
10
10
|
* and body movements using a reference video.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const characterPerformance =
|
|
15
|
+
* await client.characterPerformance.create({
|
|
16
|
+
* character: {
|
|
17
|
+
* type: 'image',
|
|
18
|
+
* uri: 'https://example.com/file',
|
|
19
|
+
* },
|
|
20
|
+
* model: 'act_two',
|
|
21
|
+
* reference: {
|
|
22
|
+
* type: 'video',
|
|
23
|
+
* uri: 'https://example.com/reference-performance.mp4',
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
11
27
|
*/
|
|
12
28
|
create(
|
|
13
29
|
body: CharacterPerformanceCreateParams,
|
|
@@ -33,7 +49,8 @@ export interface CharacterPerformanceCreateParams {
|
|
|
33
49
|
model: 'act_two';
|
|
34
50
|
|
|
35
51
|
/**
|
|
36
|
-
*
|
|
52
|
+
* A video of a person performing in the manner that you would like your character
|
|
53
|
+
* to perform. The video must be between 3 and 30 seconds in duration.
|
|
37
54
|
*/
|
|
38
55
|
reference: CharacterPerformanceCreateParams.Reference;
|
|
39
56
|
|
|
@@ -60,6 +77,11 @@ export interface CharacterPerformanceCreateParams {
|
|
|
60
77
|
*/
|
|
61
78
|
ratio?: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
|
|
62
79
|
|
|
80
|
+
/**
|
|
81
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
82
|
+
* get different results for the same other request parameters. Using the same seed
|
|
83
|
+
* integer for an identical request will produce similar results.
|
|
84
|
+
*/
|
|
63
85
|
seed?: number;
|
|
64
86
|
}
|
|
65
87
|
|
|
@@ -72,7 +94,7 @@ export namespace CharacterPerformanceCreateParams {
|
|
|
72
94
|
type: 'image';
|
|
73
95
|
|
|
74
96
|
/**
|
|
75
|
-
* A
|
|
97
|
+
* A HTTPS URL.
|
|
76
98
|
*/
|
|
77
99
|
uri: string;
|
|
78
100
|
}
|
|
@@ -86,19 +108,20 @@ export namespace CharacterPerformanceCreateParams {
|
|
|
86
108
|
type: 'video';
|
|
87
109
|
|
|
88
110
|
/**
|
|
89
|
-
* A
|
|
111
|
+
* A HTTPS URL.
|
|
90
112
|
*/
|
|
91
113
|
uri: string;
|
|
92
114
|
}
|
|
93
115
|
|
|
94
116
|
/**
|
|
95
|
-
*
|
|
117
|
+
* A video of a person performing in the manner that you would like your character
|
|
118
|
+
* to perform. The video must be between 3 and 30 seconds in duration.
|
|
96
119
|
*/
|
|
97
120
|
export interface Reference {
|
|
98
121
|
type: 'video';
|
|
99
122
|
|
|
100
123
|
/**
|
|
101
|
-
* A
|
|
124
|
+
* A HTTPS URL.
|
|
102
125
|
*/
|
|
103
126
|
uri: string;
|
|
104
127
|
}
|
|
@@ -107,6 +130,10 @@ export namespace CharacterPerformanceCreateParams {
|
|
|
107
130
|
* Settings that affect the behavior of the content moderation system.
|
|
108
131
|
*/
|
|
109
132
|
export interface ContentModeration {
|
|
133
|
+
/**
|
|
134
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
135
|
+
* preventing generations that include recognizable public figures.
|
|
136
|
+
*/
|
|
110
137
|
publicFigureThreshold?: 'auto' | 'low';
|
|
111
138
|
}
|
|
112
139
|
}
|