@runwayml/sdk 3.5.0 → 3.6.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 +8 -0
- 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/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-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/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/resources/character-performance.ts +32 -5
- package/src/resources/image-to-video.ts +253 -99
- package/src/resources/speech-to-speech.ts +16 -4
- package/src/resources/text-to-speech.ts +2 -2
- package/src/resources/text-to-video.ts +61 -28
- 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
|
@@ -7,6 +7,16 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
7
7
|
export class VideoToVideo extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to generate a video from a video.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const videoToVideo = await client.videoToVideo.create({
|
|
14
|
+
* model: 'gen4_aleph',
|
|
15
|
+
* promptText: 'x',
|
|
16
|
+
* ratio: '1280:720',
|
|
17
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
create(
|
|
12
22
|
body: VideoToVideoCreateParams,
|
|
@@ -19,16 +29,10 @@ export class VideoToVideo extends APIResource {
|
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
export interface VideoToVideoCreateResponse {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the newly created task.
|
|
24
|
-
*/
|
|
25
32
|
id: string;
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
export interface VideoToVideoCreateParams {
|
|
29
|
-
/**
|
|
30
|
-
* The model variant to use.
|
|
31
|
-
*/
|
|
32
36
|
model: 'gen4_aleph';
|
|
33
37
|
|
|
34
38
|
/**
|
|
@@ -43,8 +47,7 @@ export interface VideoToVideoCreateParams {
|
|
|
43
47
|
ratio: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
44
48
|
|
|
45
49
|
/**
|
|
46
|
-
* A HTTPS URL
|
|
47
|
-
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
50
|
+
* A HTTPS URL.
|
|
48
51
|
*/
|
|
49
52
|
videoUri: string;
|
|
50
53
|
|
|
@@ -87,8 +90,7 @@ export namespace VideoToVideoCreateParams {
|
|
|
87
90
|
type: 'image';
|
|
88
91
|
|
|
89
92
|
/**
|
|
90
|
-
* A HTTPS URL
|
|
91
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
93
|
+
* A HTTPS URL.
|
|
92
94
|
*/
|
|
93
95
|
uri: string;
|
|
94
96
|
}
|
|
@@ -8,6 +8,14 @@ export class VideoUpscale extends 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(
|
|
13
21
|
body: VideoUpscaleCreateParams,
|
|
@@ -20,22 +28,14 @@ export class VideoUpscale extends APIResource {
|
|
|
20
28
|
}
|
|
21
29
|
|
|
22
30
|
export interface VideoUpscaleCreateResponse {
|
|
23
|
-
/**
|
|
24
|
-
* The ID of the newly created task.
|
|
25
|
-
*/
|
|
26
31
|
id: string;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
export interface VideoUpscaleCreateParams {
|
|
30
|
-
/**
|
|
31
|
-
* The model variant to use.
|
|
32
|
-
*/
|
|
33
35
|
model: 'upscale_v1';
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
|
-
* A HTTPS URL
|
|
37
|
-
* be less than 4096px on each side. The video duration may not exceed 40 seconds.
|
|
38
|
-
* See [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
38
|
+
* A HTTPS URL.
|
|
39
39
|
*/
|
|
40
40
|
videoUri: string;
|
|
41
41
|
}
|
|
@@ -7,6 +7,15 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
7
7
|
export class VoiceDubbing extends 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(
|
|
12
21
|
body: VoiceDubbingCreateParams,
|
|
@@ -24,7 +33,7 @@ export interface VoiceDubbingCreateResponse {
|
|
|
24
33
|
|
|
25
34
|
export interface VoiceDubbingCreateParams {
|
|
26
35
|
/**
|
|
27
|
-
* A
|
|
36
|
+
* A HTTPS URL.
|
|
28
37
|
*/
|
|
29
38
|
audioUri: string;
|
|
30
39
|
|
|
@@ -7,7 +7,16 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
7
7
|
export class VoiceIsolation extends 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(
|
|
13
22
|
body: VoiceIsolationCreateParams,
|
|
@@ -25,7 +34,7 @@ export interface VoiceIsolationCreateResponse {
|
|
|
25
34
|
|
|
26
35
|
export interface VoiceIsolationCreateParams {
|
|
27
36
|
/**
|
|
28
|
-
* A
|
|
37
|
+
* A HTTPS URL.
|
|
29
38
|
*/
|
|
30
39
|
audioUri: string;
|
|
31
40
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.6.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.6.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|