@runwayml/sdk 3.15.1 → 3.16.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 (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/documents.d.mts +23 -1
  10. package/resources/documents.d.mts.map +1 -1
  11. package/resources/documents.d.ts +23 -1
  12. package/resources/documents.d.ts.map +1 -1
  13. package/resources/documents.js +18 -0
  14. package/resources/documents.js.map +1 -1
  15. package/resources/documents.mjs +18 -0
  16. package/resources/documents.mjs.map +1 -1
  17. package/resources/image-to-video.d.mts +41 -41
  18. package/resources/image-to-video.d.mts.map +1 -1
  19. package/resources/image-to-video.d.ts +41 -41
  20. package/resources/image-to-video.d.ts.map +1 -1
  21. package/resources/index.d.mts +1 -1
  22. package/resources/index.d.mts.map +1 -1
  23. package/resources/index.d.ts +1 -1
  24. package/resources/index.d.ts.map +1 -1
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/organization.d.mts +2 -2
  28. package/resources/organization.d.mts.map +1 -1
  29. package/resources/organization.d.ts +2 -2
  30. package/resources/organization.d.ts.map +1 -1
  31. package/resources/realtime-sessions.d.mts +10 -0
  32. package/resources/realtime-sessions.d.mts.map +1 -1
  33. package/resources/realtime-sessions.d.ts +10 -0
  34. package/resources/realtime-sessions.d.ts.map +1 -1
  35. package/src/client.ts +2 -0
  36. package/src/resources/documents.ts +36 -0
  37. package/src/resources/image-to-video.ts +48 -48
  38. package/src/resources/index.ts +1 -0
  39. package/src/resources/organization.ts +2 -0
  40. package/src/resources/realtime-sessions.ts +12 -0
  41. package/src/version.ts +1 -1
  42. package/version.d.mts +1 -1
  43. package/version.d.ts +1 -1
  44. package/version.js +1 -1
  45. package/version.mjs +1 -1
@@ -40,8 +40,8 @@ export interface ImageToVideoCreateResponse {
40
40
  export type ImageToVideoCreateParams =
41
41
  | ImageToVideoCreateParams.Gen4_5
42
42
  | ImageToVideoCreateParams.Gen4Turbo
43
- | ImageToVideoCreateParams.Veo3_1
44
43
  | ImageToVideoCreateParams.Gen3aTurbo
44
+ | ImageToVideoCreateParams.Veo3_1
45
45
  | ImageToVideoCreateParams.Veo3_1Fast
46
46
  | ImageToVideoCreateParams.Veo3;
47
47
 
@@ -173,39 +173,44 @@ export declare namespace ImageToVideoCreateParams {
173
173
  }
174
174
  }
175
175
 
176
- export interface Veo3_1 {
177
- model: 'veo3.1';
176
+ export interface Gen3aTurbo {
177
+ model: 'gen3a_turbo';
178
178
 
179
179
  /**
180
- * You may specify an image to use as the first frame of the output video, or an
181
- * array with a first frame and optionally a last frame. This model does not
182
- * support generating with only a last frame.
180
+ * A HTTPS URL.
183
181
  */
184
- promptImage: string | Array<Veo3_1.PromptImage>;
182
+ promptImage: string | Array<Gen3aTurbo.PromptImage>;
185
183
 
186
184
  /**
187
- * The resolution of the output video.
185
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
186
+ * should describe in detail what should appear in the output.
188
187
  */
189
- ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
188
+ promptText: string;
190
189
 
191
190
  /**
192
- * Whether to generate audio for the video. Audio inclusion affects pricing.
191
+ * Settings that affect the behavior of the content moderation system.
193
192
  */
194
- audio?: boolean;
193
+ contentModeration?: Gen3aTurbo.ContentModeration;
195
194
 
196
195
  /**
197
- * The number of seconds of duration for the output video.
196
+ * The duration of the output video in seconds.
198
197
  */
199
- duration?: 4 | 6 | 8;
198
+ duration?: 5 | 10;
200
199
 
201
200
  /**
202
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
203
- * should describe in detail what should appear in the output.
201
+ * The resolution of the output video.
204
202
  */
205
- promptText?: string;
203
+ ratio?: '768:1280' | '1280:768';
204
+
205
+ /**
206
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
207
+ * get different results for the same other request parameters. Using the same seed
208
+ * integer for an identical request will produce similar results.
209
+ */
210
+ seed?: number;
206
211
  }
207
212
 
208
- export namespace Veo3_1 {
213
+ export namespace Gen3aTurbo {
209
214
  export interface PromptImage {
210
215
  /**
211
216
  * The position of the image in the output video. "first" will use the image as the
@@ -219,46 +224,52 @@ export declare namespace ImageToVideoCreateParams {
219
224
  */
220
225
  uri: string;
221
226
  }
222
- }
223
-
224
- export interface Gen3aTurbo {
225
- model: 'gen3a_turbo';
226
227
 
227
228
  /**
228
- * A HTTPS URL.
229
+ * Settings that affect the behavior of the content moderation system.
229
230
  */
230
- promptImage: string | Array<Gen3aTurbo.PromptImage>;
231
+ export interface ContentModeration {
232
+ /**
233
+ * When set to `low`, the content moderation system will be less strict about
234
+ * preventing generations that include recognizable public figures.
235
+ */
236
+ publicFigureThreshold?: 'auto' | 'low';
237
+ }
238
+ }
239
+
240
+ export interface Veo3_1 {
241
+ model: 'veo3.1';
231
242
 
232
243
  /**
233
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
234
- * should describe in detail what should appear in the output.
244
+ * You may specify an image to use as the first frame of the output video, or an
245
+ * array with a first frame and optionally a last frame. This model does not
246
+ * support generating with only a last frame.
235
247
  */
236
- promptText: string;
248
+ promptImage: string | Array<Veo3_1.PromptImage>;
237
249
 
238
250
  /**
239
- * Settings that affect the behavior of the content moderation system.
251
+ * The resolution of the output video.
240
252
  */
241
- contentModeration?: Gen3aTurbo.ContentModeration;
253
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
242
254
 
243
255
  /**
244
- * The duration of the output video in seconds.
256
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
245
257
  */
246
- duration?: 5 | 10;
258
+ audio?: boolean;
247
259
 
248
260
  /**
249
- * The resolution of the output video.
261
+ * The number of seconds of duration for the output video.
250
262
  */
251
- ratio?: '768:1280' | '1280:768';
263
+ duration?: 4 | 6 | 8;
252
264
 
253
265
  /**
254
- * If unspecified, a random number is chosen. Varying the seed integer is a way to
255
- * get different results for the same other request parameters. Using the same seed
256
- * integer for an identical request will produce similar results.
266
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
267
+ * should describe in detail what should appear in the output.
257
268
  */
258
- seed?: number;
269
+ promptText?: string;
259
270
  }
260
271
 
261
- export namespace Gen3aTurbo {
272
+ export namespace Veo3_1 {
262
273
  export interface PromptImage {
263
274
  /**
264
275
  * The position of the image in the output video. "first" will use the image as the
@@ -272,17 +283,6 @@ export declare namespace ImageToVideoCreateParams {
272
283
  */
273
284
  uri: string;
274
285
  }
275
-
276
- /**
277
- * Settings that affect the behavior of the content moderation system.
278
- */
279
- export interface ContentModeration {
280
- /**
281
- * When set to `low`, the content moderation system will be less strict about
282
- * preventing generations that include recognizable public figures.
283
- */
284
- publicFigureThreshold?: 'auto' | 'low';
285
- }
286
286
  }
287
287
 
288
288
  export interface Veo3_1Fast {
@@ -22,6 +22,7 @@ export {
22
22
  type DocumentRetrieveResponse,
23
23
  type DocumentListResponse,
24
24
  type DocumentCreateParams,
25
+ type DocumentUpdateParams,
25
26
  type DocumentListParams,
26
27
  type DocumentListResponsesCursorPage,
27
28
  } from './documents';
@@ -118,6 +118,7 @@ export interface OrganizationRetrieveUsageResponse {
118
118
  | 'eleven_voice_dubbing'
119
119
  | 'eleven_multilingual_sts_v2'
120
120
  | 'gwm1_avatars'
121
+ | 'gwm1_avatar_async_audio_to_video'
121
122
  | 'voice_processing'
122
123
  >;
123
124
 
@@ -166,6 +167,7 @@ export namespace OrganizationRetrieveUsageResponse {
166
167
  | 'eleven_voice_dubbing'
167
168
  | 'eleven_multilingual_sts_v2'
168
169
  | 'gwm1_avatars'
170
+ | 'gwm1_avatar_async_audio_to_video'
169
171
  | 'voice_processing';
170
172
  }
171
173
  }
@@ -205,6 +205,18 @@ export interface RealtimeSessionCreateParams {
205
205
  * Maximum session duration in seconds.
206
206
  */
207
207
  maxDuration?: number;
208
+
209
+ /**
210
+ * Override the avatar personality for this session. If not provided, uses the
211
+ * avatar default.
212
+ */
213
+ personality?: string;
214
+
215
+ /**
216
+ * Override the avatar start script for this session. If not provided, uses the
217
+ * avatar default.
218
+ */
219
+ startScript?: string;
208
220
  }
209
221
 
210
222
  export namespace RealtimeSessionCreateParams {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.15.1'; // x-release-please-version
1
+ export const VERSION = '3.16.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.15.1";
1
+ export declare const VERSION = "3.16.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.15.1";
1
+ export declare const VERSION = "3.16.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.15.1'; // x-release-please-version
4
+ exports.VERSION = '3.16.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.15.1'; // x-release-please-version
1
+ export const VERSION = '3.16.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map