@runwayml/sdk 3.7.0 → 3.9.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 (86) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.d.ts.map +1 -1
  6. package/lib/polling.d.mts +2 -2
  7. package/lib/polling.d.mts.map +1 -1
  8. package/lib/polling.d.ts +2 -2
  9. package/lib/polling.d.ts.map +1 -1
  10. package/lib/polling.js +1 -1
  11. package/lib/polling.js.map +1 -1
  12. package/lib/polling.mjs +1 -1
  13. package/lib/polling.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/character-performance.d.mts +3 -0
  16. package/resources/character-performance.d.mts.map +1 -1
  17. package/resources/character-performance.d.ts +3 -0
  18. package/resources/character-performance.d.ts.map +1 -1
  19. package/resources/image-to-video.d.mts +48 -37
  20. package/resources/image-to-video.d.mts.map +1 -1
  21. package/resources/image-to-video.d.ts +48 -37
  22. package/resources/image-to-video.d.ts.map +1 -1
  23. package/resources/organization.d.mts +18 -489
  24. package/resources/organization.d.mts.map +1 -1
  25. package/resources/organization.d.ts +18 -489
  26. package/resources/organization.d.ts.map +1 -1
  27. package/resources/sound-effect.d.mts +3 -0
  28. package/resources/sound-effect.d.mts.map +1 -1
  29. package/resources/sound-effect.d.ts +3 -0
  30. package/resources/sound-effect.d.ts.map +1 -1
  31. package/resources/speech-to-speech.d.mts +4 -1
  32. package/resources/speech-to-speech.d.mts.map +1 -1
  33. package/resources/speech-to-speech.d.ts +4 -1
  34. package/resources/speech-to-speech.d.ts.map +1 -1
  35. package/resources/tasks.d.mts +94 -32
  36. package/resources/tasks.d.mts.map +1 -1
  37. package/resources/tasks.d.ts +94 -32
  38. package/resources/tasks.d.ts.map +1 -1
  39. package/resources/text-to-image.d.mts +162 -88
  40. package/resources/text-to-image.d.mts.map +1 -1
  41. package/resources/text-to-image.d.ts +162 -88
  42. package/resources/text-to-image.d.ts.map +1 -1
  43. package/resources/text-to-speech.d.mts +3 -0
  44. package/resources/text-to-speech.d.mts.map +1 -1
  45. package/resources/text-to-speech.d.ts +3 -0
  46. package/resources/text-to-speech.d.ts.map +1 -1
  47. package/resources/text-to-video.d.mts +11 -0
  48. package/resources/text-to-video.d.mts.map +1 -1
  49. package/resources/text-to-video.d.ts +11 -0
  50. package/resources/text-to-video.d.ts.map +1 -1
  51. package/resources/video-to-video.d.mts +3 -0
  52. package/resources/video-to-video.d.mts.map +1 -1
  53. package/resources/video-to-video.d.ts +3 -0
  54. package/resources/video-to-video.d.ts.map +1 -1
  55. package/resources/video-upscale.d.mts +3 -0
  56. package/resources/video-upscale.d.mts.map +1 -1
  57. package/resources/video-upscale.d.ts +3 -0
  58. package/resources/video-upscale.d.ts.map +1 -1
  59. package/resources/voice-dubbing.d.mts +3 -0
  60. package/resources/voice-dubbing.d.mts.map +1 -1
  61. package/resources/voice-dubbing.d.ts +3 -0
  62. package/resources/voice-dubbing.d.ts.map +1 -1
  63. package/resources/voice-isolation.d.mts +3 -0
  64. package/resources/voice-isolation.d.mts.map +1 -1
  65. package/resources/voice-isolation.d.ts +3 -0
  66. package/resources/voice-isolation.d.ts.map +1 -1
  67. package/src/client.ts +1 -1
  68. package/src/lib/polling.ts +4 -4
  69. package/src/resources/character-performance.ts +3 -0
  70. package/src/resources/image-to-video.ts +57 -44
  71. package/src/resources/organization.ts +33 -583
  72. package/src/resources/sound-effect.ts +3 -0
  73. package/src/resources/speech-to-speech.ts +4 -1
  74. package/src/resources/tasks.ts +116 -32
  75. package/src/resources/text-to-image.ts +262 -114
  76. package/src/resources/text-to-speech.ts +3 -0
  77. package/src/resources/text-to-video.ts +13 -0
  78. package/src/resources/video-to-video.ts +3 -0
  79. package/src/resources/video-upscale.ts +3 -0
  80. package/src/resources/voice-dubbing.ts +3 -0
  81. package/src/resources/voice-isolation.ts +3 -0
  82. package/src/version.ts +1 -1
  83. package/version.d.mts +1 -1
  84. package/version.d.ts +1 -1
  85. package/version.js +1 -1
  86. package/version.mjs +1 -1
@@ -28,13 +28,16 @@ export class ImageToVideo extends APIResource {
28
28
  }
29
29
 
30
30
  export interface ImageToVideoCreateResponse {
31
+ /**
32
+ * The ID of the task that was created. Use this to retrieve the task later.
33
+ */
31
34
  id: string;
32
35
  }
33
36
 
34
37
  export type ImageToVideoCreateParams =
35
38
  | ImageToVideoCreateParams.Gen4Turbo
36
- | ImageToVideoCreateParams.Gen3aTurbo
37
39
  | ImageToVideoCreateParams.Veo3_1
40
+ | ImageToVideoCreateParams.Gen3aTurbo
38
41
  | ImageToVideoCreateParams.Veo3_1Fast
39
42
  | ImageToVideoCreateParams.Veo3;
40
43
 
@@ -102,6 +105,54 @@ export declare namespace ImageToVideoCreateParams {
102
105
  }
103
106
  }
104
107
 
108
+ export interface Veo3_1 {
109
+ model: 'veo3.1';
110
+
111
+ /**
112
+ * You may specify an image to use as the first frame of the output video, or an
113
+ * array with a first frame and optionally a last frame. This model does not
114
+ * support generating with only a last frame.
115
+ */
116
+ promptImage: string | Array<Veo3_1.PromptImage>;
117
+
118
+ /**
119
+ * The resolution of the output video.
120
+ */
121
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
122
+
123
+ /**
124
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
125
+ */
126
+ audio?: boolean;
127
+
128
+ /**
129
+ * The number of seconds of duration for the output video.
130
+ */
131
+ duration?: 4 | 6 | 8;
132
+
133
+ /**
134
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
135
+ * should describe in detail what should appear in the output.
136
+ */
137
+ promptText?: string;
138
+ }
139
+
140
+ export namespace Veo3_1 {
141
+ export interface PromptImage {
142
+ /**
143
+ * The position of the image in the output video. "first" will use the image as the
144
+ * first frame of the video, "last" will use the image as the last frame of the
145
+ * video.
146
+ */
147
+ position: 'first' | 'last';
148
+
149
+ /**
150
+ * A HTTPS URL.
151
+ */
152
+ uri: string;
153
+ }
154
+ }
155
+
105
156
  export interface Gen3aTurbo {
106
157
  model: 'gen3a_turbo';
107
158
 
@@ -166,49 +217,6 @@ export declare namespace ImageToVideoCreateParams {
166
217
  }
167
218
  }
168
219
 
169
- export interface Veo3_1 {
170
- model: 'veo3.1';
171
-
172
- /**
173
- * You may specify an image to use as the first frame of the output video, or an
174
- * array with a first frame and optionally a last frame. This model does not
175
- * support generating with only a last frame.
176
- */
177
- promptImage: string | Array<Veo3_1.PromptImage>;
178
-
179
- /**
180
- * The resolution of the output video.
181
- */
182
- ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
183
-
184
- /**
185
- * The number of seconds of duration for the output video.
186
- */
187
- duration?: 4 | 6 | 8;
188
-
189
- /**
190
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
191
- * should describe in detail what should appear in the output.
192
- */
193
- promptText?: string;
194
- }
195
-
196
- export namespace Veo3_1 {
197
- export interface PromptImage {
198
- /**
199
- * The position of the image in the output video. "first" will use the image as the
200
- * first frame of the video, "last" will use the image as the last frame of the
201
- * video.
202
- */
203
- position: 'first' | 'last';
204
-
205
- /**
206
- * A HTTPS URL.
207
- */
208
- uri: string;
209
- }
210
- }
211
-
212
220
  export interface Veo3_1Fast {
213
221
  model: 'veo3.1_fast';
214
222
 
@@ -224,6 +232,11 @@ export declare namespace ImageToVideoCreateParams {
224
232
  */
225
233
  ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
226
234
 
235
+ /**
236
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
237
+ */
238
+ audio?: boolean;
239
+
227
240
  /**
228
241
  * The number of seconds of duration for the output video.
229
242
  */