@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.
Files changed (74) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/character-performance.d.mts +32 -5
  4. package/resources/character-performance.d.mts.map +1 -1
  5. package/resources/character-performance.d.ts +32 -5
  6. package/resources/character-performance.d.ts.map +1 -1
  7. package/resources/character-performance.js +16 -0
  8. package/resources/character-performance.js.map +1 -1
  9. package/resources/character-performance.mjs +16 -0
  10. package/resources/character-performance.mjs.map +1 -1
  11. package/resources/image-to-video.d.mts +215 -88
  12. package/resources/image-to-video.d.mts.map +1 -1
  13. package/resources/image-to-video.d.ts +215 -88
  14. package/resources/image-to-video.d.ts.map +1 -1
  15. package/resources/image-to-video.js +10 -1
  16. package/resources/image-to-video.js.map +1 -1
  17. package/resources/image-to-video.mjs +10 -1
  18. package/resources/image-to-video.mjs.map +1 -1
  19. package/resources/speech-to-speech.d.mts +16 -4
  20. package/resources/speech-to-speech.d.mts.map +1 -1
  21. package/resources/speech-to-speech.d.ts +16 -4
  22. package/resources/speech-to-speech.d.ts.map +1 -1
  23. package/resources/text-to-speech.d.mts +2 -2
  24. package/resources/text-to-speech.d.ts +2 -2
  25. package/resources/text-to-video.d.mts +50 -28
  26. package/resources/text-to-video.d.mts.map +1 -1
  27. package/resources/text-to-video.d.ts +50 -28
  28. package/resources/text-to-video.d.ts.map +1 -1
  29. package/resources/video-to-video.d.mts +12 -10
  30. package/resources/video-to-video.d.mts.map +1 -1
  31. package/resources/video-to-video.d.ts +12 -10
  32. package/resources/video-to-video.d.ts.map +1 -1
  33. package/resources/video-to-video.js +10 -0
  34. package/resources/video-to-video.js.map +1 -1
  35. package/resources/video-to-video.mjs +10 -0
  36. package/resources/video-to-video.mjs.map +1 -1
  37. package/resources/video-upscale.d.mts +9 -9
  38. package/resources/video-upscale.d.mts.map +1 -1
  39. package/resources/video-upscale.d.ts +9 -9
  40. package/resources/video-upscale.d.ts.map +1 -1
  41. package/resources/video-upscale.js +8 -0
  42. package/resources/video-upscale.js.map +1 -1
  43. package/resources/video-upscale.mjs +8 -0
  44. package/resources/video-upscale.mjs.map +1 -1
  45. package/resources/voice-dubbing.d.mts +10 -1
  46. package/resources/voice-dubbing.d.mts.map +1 -1
  47. package/resources/voice-dubbing.d.ts +10 -1
  48. package/resources/voice-dubbing.d.ts.map +1 -1
  49. package/resources/voice-dubbing.js +9 -0
  50. package/resources/voice-dubbing.js.map +1 -1
  51. package/resources/voice-dubbing.mjs +9 -0
  52. package/resources/voice-dubbing.mjs.map +1 -1
  53. package/resources/voice-isolation.d.mts +11 -2
  54. package/resources/voice-isolation.d.mts.map +1 -1
  55. package/resources/voice-isolation.d.ts +11 -2
  56. package/resources/voice-isolation.d.ts.map +1 -1
  57. package/resources/voice-isolation.js +10 -1
  58. package/resources/voice-isolation.js.map +1 -1
  59. package/resources/voice-isolation.mjs +10 -1
  60. package/resources/voice-isolation.mjs.map +1 -1
  61. package/src/resources/character-performance.ts +32 -5
  62. package/src/resources/image-to-video.ts +253 -99
  63. package/src/resources/speech-to-speech.ts +16 -4
  64. package/src/resources/text-to-speech.ts +2 -2
  65. package/src/resources/text-to-video.ts +61 -28
  66. package/src/resources/video-to-video.ts +12 -10
  67. package/src/resources/video-upscale.ts +9 -9
  68. package/src/resources/voice-dubbing.ts +10 -1
  69. package/src/resources/voice-isolation.ts +11 -2
  70. package/src/version.ts +1 -1
  71. package/version.d.mts +1 -1
  72. package/version.d.ts +1 -1
  73. package/version.js +1 -1
  74. 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 pointing to a video or a data URI containing a video. See
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 pointing to an image or a data URI containing an image. See
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 pointing to a video or a data URI containing a video. The video must
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 data URI containing encoded audio.
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 data URI containing encoded audio.
37
+ * A HTTPS URL.
29
38
  */
30
39
  audioUri: string;
31
40
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.5.0'; // x-release-please-version
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.5.0";
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.5.0";
1
+ export declare const VERSION = "3.6.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '3.5.0'; // x-release-please-version
4
+ exports.VERSION = '3.6.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.5.0'; // x-release-please-version
1
+ export const VERSION = '3.6.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map