@runwayml/sdk 4.24.0 → 4.25.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 (60) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/generate/audio.d.mts +12 -10
  4. package/resources/generate/audio.d.mts.map +1 -1
  5. package/resources/generate/audio.d.ts +12 -10
  6. package/resources/generate/audio.d.ts.map +1 -1
  7. package/resources/generate/audio.js +3 -2
  8. package/resources/generate/audio.js.map +1 -1
  9. package/resources/generate/audio.mjs +3 -2
  10. package/resources/generate/audio.mjs.map +1 -1
  11. package/resources/image-to-video.d.mts +102 -4
  12. package/resources/image-to-video.d.mts.map +1 -1
  13. package/resources/image-to-video.d.ts +102 -4
  14. package/resources/image-to-video.d.ts.map +1 -1
  15. package/resources/organization/organization.d.mts +2 -2
  16. package/resources/organization/organization.d.mts.map +1 -1
  17. package/resources/organization/organization.d.ts +2 -2
  18. package/resources/organization/organization.d.ts.map +1 -1
  19. package/resources/organization/organization.js.map +1 -1
  20. package/resources/organization/organization.mjs.map +1 -1
  21. package/resources/organization/webapp/audit-logs.d.mts +124 -7
  22. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  23. package/resources/organization/webapp/audit-logs.d.ts +124 -7
  24. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  25. package/resources/organization/webapp/webapp.d.mts +18 -0
  26. package/resources/organization/webapp/webapp.d.mts.map +1 -1
  27. package/resources/organization/webapp/webapp.d.ts +18 -0
  28. package/resources/organization/webapp/webapp.d.ts.map +1 -1
  29. package/resources/organization/webapp/webapp.js.map +1 -1
  30. package/resources/organization/webapp/webapp.mjs.map +1 -1
  31. package/resources/tasks.d.mts +34 -0
  32. package/resources/tasks.d.mts.map +1 -1
  33. package/resources/tasks.d.ts +34 -0
  34. package/resources/tasks.d.ts.map +1 -1
  35. package/resources/text-to-image.d.mts +236 -13
  36. package/resources/text-to-image.d.mts.map +1 -1
  37. package/resources/text-to-image.d.ts +236 -13
  38. package/resources/text-to-image.d.ts.map +1 -1
  39. package/resources/text-to-video.d.mts +91 -4
  40. package/resources/text-to-video.d.mts.map +1 -1
  41. package/resources/text-to-video.d.ts +91 -4
  42. package/resources/text-to-video.d.ts.map +1 -1
  43. package/resources/video-to-video.d.mts +108 -4
  44. package/resources/video-to-video.d.mts.map +1 -1
  45. package/resources/video-to-video.d.ts +108 -4
  46. package/resources/video-to-video.d.ts.map +1 -1
  47. package/src/resources/generate/audio.ts +12 -10
  48. package/src/resources/image-to-video.ts +133 -4
  49. package/src/resources/organization/organization.ts +14 -0
  50. package/src/resources/organization/webapp/audit-logs.ts +238 -5
  51. package/src/resources/organization/webapp/webapp.ts +22 -0
  52. package/src/resources/tasks.ts +41 -0
  53. package/src/resources/text-to-image.ts +342 -12
  54. package/src/resources/text-to-video.ts +120 -4
  55. package/src/resources/video-to-video.ts +139 -4
  56. package/src/version.ts +1 -1
  57. package/version.d.mts +1 -1
  58. package/version.d.ts +1 -1
  59. package/version.js +1 -1
  60. package/version.mjs +1 -1
@@ -67,7 +67,9 @@ export type VideoToVideoCreateParams =
67
67
  | VideoToVideoCreateParams.GeminiOmniFlash
68
68
  | VideoToVideoCreateParams.GeminiOmniFlash1_1
69
69
  | VideoToVideoCreateParams.Seedance2_5
70
- | VideoToVideoCreateParams.Kling4;
70
+ | VideoToVideoCreateParams.Kling4
71
+ | VideoToVideoCreateParams.GeminiOmniFlash1_2
72
+ | VideoToVideoCreateParams.Kling4Flash;
71
73
 
72
74
  export declare namespace VideoToVideoCreateParams {
73
75
  export interface Variant0 {
@@ -590,6 +592,12 @@ export declare namespace VideoToVideoCreateParams {
590
592
  */
591
593
  audio?: boolean;
592
594
 
595
+ /**
596
+ * Bitrate of the output video. `high` keeps more detail with fewer compression
597
+ * artifacts, at a larger file size. Defaults to `standard`.
598
+ */
599
+ bitrate?: 'standard' | 'high';
600
+
593
601
  /**
594
602
  * Seconds of video to generate, or `auto` to let the model choose. `auto` is
595
603
  * billed at the variant maximum up front; unused credits are refunded after the
@@ -598,7 +606,7 @@ export declare namespace VideoToVideoCreateParams {
598
606
  duration?: number | 'auto';
599
607
 
600
608
  /**
601
- * An optional text prompt up to 3500 characters describing what should appear in
609
+ * An optional text prompt up to 10000 characters describing what should appear in
602
610
  * the output.
603
611
  */
604
612
  promptText?: string;
@@ -715,6 +723,12 @@ export declare namespace VideoToVideoCreateParams {
715
723
  */
716
724
  audio?: boolean;
717
725
 
726
+ /**
727
+ * Bitrate of the output video. `high` keeps more detail with fewer compression
728
+ * artifacts, at a larger file size. Defaults to `standard`.
729
+ */
730
+ bitrate?: 'standard' | 'high';
731
+
718
732
  /**
719
733
  * Seconds of video to generate, or `auto` to let the model choose. `auto` is
720
734
  * billed at the variant maximum up front; unused credits are refunded after the
@@ -723,7 +737,7 @@ export declare namespace VideoToVideoCreateParams {
723
737
  duration?: number | 'auto';
724
738
 
725
739
  /**
726
- * An optional text prompt up to 3500 characters describing what should appear in
740
+ * An optional text prompt up to 10000 characters describing what should appear in
727
741
  * the output.
728
742
  */
729
743
  promptText?: string;
@@ -829,6 +843,12 @@ export declare namespace VideoToVideoCreateParams {
829
843
  */
830
844
  audio?: boolean;
831
845
 
846
+ /**
847
+ * Bitrate of the output video. `high` keeps more detail with fewer compression
848
+ * artifacts, at a larger file size. Defaults to `standard`.
849
+ */
850
+ bitrate?: 'standard' | 'high';
851
+
832
852
  /**
833
853
  * Seconds of video to generate, or `auto` to let the model choose. `auto` is
834
854
  * billed at the variant maximum up front; unused credits are refunded after the
@@ -837,7 +857,7 @@ export declare namespace VideoToVideoCreateParams {
837
857
  duration?: number | 'auto';
838
858
 
839
859
  /**
840
- * An optional text prompt up to 3500 characters describing what should appear in
860
+ * An optional text prompt up to 10000 characters describing what should appear in
841
861
  * the output.
842
862
  */
843
863
  promptText?: string;
@@ -1197,6 +1217,121 @@ export declare namespace VideoToVideoCreateParams {
1197
1217
  uri: string;
1198
1218
  }
1199
1219
  }
1220
+
1221
+ export interface GeminiOmniFlash1_2 {
1222
+ model: 'gemini_omni_flash_1.2';
1223
+
1224
+ /**
1225
+ * A non-empty prompt describing the output or extension.
1226
+ */
1227
+ promptText: string;
1228
+
1229
+ /**
1230
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1231
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1232
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1233
+ */
1234
+ videoUri: string;
1235
+
1236
+ /**
1237
+ * The duration in seconds. In reference mode, this is the output video length. In
1238
+ * extend mode, this is the amount of footage added to the input video. Use "auto"
1239
+ * to let the model choose a duration.
1240
+ */
1241
+ duration?: 'auto' | number;
1242
+
1243
+ /**
1244
+ * How the input video is used. `reference` generates a new video guided by the
1245
+ * input, `extend` continues it, and `edit` transforms it according to the prompt.
1246
+ */
1247
+ mode?: 'reference' | 'extend' | 'edit';
1248
+
1249
+ /**
1250
+ * The resolution and aspect ratio of the output video.
1251
+ */
1252
+ ratio?:
1253
+ | '640:360'
1254
+ | '360:640'
1255
+ | '1280:720'
1256
+ | '720:1280'
1257
+ | '1920:1080'
1258
+ | '1080:1920'
1259
+ | '3840:2160'
1260
+ | '2160:3840';
1261
+
1262
+ /**
1263
+ * An optional array of image references to guide the output.
1264
+ */
1265
+ references?: Array<GeminiOmniFlash1_2.Reference>;
1266
+
1267
+ /**
1268
+ * The output resolution when editing or extending a video. In reference mode, use
1269
+ * ratio instead.
1270
+ */
1271
+ resolution?: '360p' | '720p' | '1080p' | '4k';
1272
+ }
1273
+
1274
+ export namespace GeminiOmniFlash1_2 {
1275
+ export interface Reference {
1276
+ /**
1277
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1278
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1279
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1280
+ */
1281
+ uri: string;
1282
+ }
1283
+ }
1284
+
1285
+ export interface Kling4Flash {
1286
+ model: 'kling_4_flash';
1287
+
1288
+ /**
1289
+ * A text prompt describing what should happen in the video.
1290
+ */
1291
+ promptText: string;
1292
+
1293
+ /**
1294
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1295
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1296
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1297
+ */
1298
+ videoUri: string;
1299
+
1300
+ /**
1301
+ * The duration of the output video in seconds.
1302
+ */
1303
+ duration?: number;
1304
+
1305
+ /**
1306
+ * The output size, or auto_720p for adaptive framing. Legacy values 940:940 and
1307
+ * 1460:624 are accepted as aliases for 960:960 and 1464:628, respectively.
1308
+ */
1309
+ ratio?: '1280:720' | '720:1280' | '960:960' | '1464:628' | 'auto_720p' | '940:940' | '1460:624';
1310
+
1311
+ references?: Array<Kling4Flash.Reference>;
1312
+
1313
+ referenceVideos?: Array<Kling4Flash.ReferenceVideo>;
1314
+ }
1315
+
1316
+ export namespace Kling4Flash {
1317
+ export interface Reference {
1318
+ /**
1319
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1320
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1321
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1322
+ */
1323
+ uri: string;
1324
+ }
1325
+
1326
+ export interface ReferenceVideo {
1327
+ /**
1328
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1329
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1330
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1331
+ */
1332
+ uri: string;
1333
+ }
1334
+ }
1200
1335
  }
1201
1336
 
1202
1337
  export declare namespace VideoToVideo {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.24.0'; // x-release-please-version
1
+ export const VERSION = '4.25.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.24.0";
1
+ export declare const VERSION = "4.25.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.24.0";
1
+ export declare const VERSION = "4.25.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 = '4.24.0'; // x-release-please-version
4
+ exports.VERSION = '4.25.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.24.0'; // x-release-please-version
1
+ export const VERSION = '4.25.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map