@runwayml/sdk 4.25.0 → 4.27.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 +21 -0
  2. package/client.d.mts +12 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +12 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +12 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/image-to-vector.d.mts +60 -0
  12. package/resources/image-to-vector.d.mts.map +1 -0
  13. package/resources/image-to-vector.d.ts +60 -0
  14. package/resources/image-to-vector.d.ts.map +1 -0
  15. package/resources/image-to-vector.js +27 -0
  16. package/resources/image-to-vector.js.map +1 -0
  17. package/resources/image-to-vector.mjs +23 -0
  18. package/resources/image-to-vector.mjs.map +1 -0
  19. package/resources/image-to-video.d.mts +122 -3
  20. package/resources/image-to-video.d.mts.map +1 -1
  21. package/resources/image-to-video.d.ts +122 -3
  22. package/resources/image-to-video.d.ts.map +1 -1
  23. package/resources/index.d.mts +2 -0
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +2 -0
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js +5 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs +2 -0
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/organization/organization.d.mts +2 -2
  32. package/resources/organization/organization.d.mts.map +1 -1
  33. package/resources/organization/organization.d.ts +2 -2
  34. package/resources/organization/organization.d.ts.map +1 -1
  35. package/resources/organization/organization.js.map +1 -1
  36. package/resources/organization/organization.mjs.map +1 -1
  37. package/resources/text-to-music.d.mts +58 -0
  38. package/resources/text-to-music.d.mts.map +1 -0
  39. package/resources/text-to-music.d.ts +58 -0
  40. package/resources/text-to-music.d.ts.map +1 -0
  41. package/resources/text-to-music.js +20 -0
  42. package/resources/text-to-music.js.map +1 -0
  43. package/resources/text-to-music.mjs +16 -0
  44. package/resources/text-to-music.mjs.map +1 -0
  45. package/resources/text-to-speech.d.mts +42 -10
  46. package/resources/text-to-speech.d.mts.map +1 -1
  47. package/resources/text-to-speech.d.ts +42 -10
  48. package/resources/text-to-speech.d.ts.map +1 -1
  49. package/resources/text-to-speech.js +3 -1
  50. package/resources/text-to-speech.js.map +1 -1
  51. package/resources/text-to-speech.mjs +3 -1
  52. package/resources/text-to-speech.mjs.map +1 -1
  53. package/resources/text-to-video.d.mts +92 -4
  54. package/resources/text-to-video.d.mts.map +1 -1
  55. package/resources/text-to-video.d.ts +92 -4
  56. package/resources/text-to-video.d.ts.map +1 -1
  57. package/resources/video-to-video.d.mts +104 -3
  58. package/resources/video-to-video.d.mts.map +1 -1
  59. package/resources/video-to-video.d.ts +104 -3
  60. package/resources/video-to-video.d.ts.map +1 -1
  61. package/src/client.ts +28 -0
  62. package/src/resources/image-to-vector.ts +79 -0
  63. package/src/resources/image-to-video.ts +162 -3
  64. package/src/resources/index.ts +6 -0
  65. package/src/resources/organization/organization.ts +4 -0
  66. package/src/resources/text-to-music.ts +78 -0
  67. package/src/resources/text-to-speech.ts +48 -10
  68. package/src/resources/text-to-video.ts +126 -4
  69. package/src/resources/video-to-video.ts +140 -3
  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
@@ -69,7 +69,9 @@ export type VideoToVideoCreateParams =
69
69
  | VideoToVideoCreateParams.Seedance2_5
70
70
  | VideoToVideoCreateParams.Kling4
71
71
  | VideoToVideoCreateParams.GeminiOmniFlash1_2
72
- | VideoToVideoCreateParams.Kling4Flash;
72
+ | VideoToVideoCreateParams.Kling4Flash
73
+ | VideoToVideoCreateParams.Hailuo3Highspeed
74
+ | VideoToVideoCreateParams.Hailuo3Lite;
73
75
 
74
76
  export declare namespace VideoToVideoCreateParams {
75
77
  export interface Variant0 {
@@ -1090,7 +1092,8 @@ export declare namespace VideoToVideoCreateParams {
1090
1092
  promptText?: string;
1091
1093
 
1092
1094
  /**
1093
- * The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
1095
+ * The resolution of the output video. Seedance 2.5 supports 480p, 720p, 1080p, and
1096
+ * 4K.
1094
1097
  */
1095
1098
  ratio?:
1096
1099
  | '992:432'
@@ -1110,7 +1113,13 @@ export declare namespace VideoToVideoCreateParams {
1110
1113
  | '1664:1248'
1111
1114
  | '1440:1440'
1112
1115
  | '1248:1664'
1113
- | '1080:1920';
1116
+ | '1080:1920'
1117
+ | '3840:1646'
1118
+ | '3840:2160'
1119
+ | '3840:2880'
1120
+ | '3840:3840'
1121
+ | '2880:3840'
1122
+ | '2160:3840';
1114
1123
 
1115
1124
  /**
1116
1125
  * An optional array of audio references. The total combined duration must be less
@@ -1332,6 +1341,134 @@ export declare namespace VideoToVideoCreateParams {
1332
1341
  uri: string;
1333
1342
  }
1334
1343
  }
1344
+
1345
+ export interface Hailuo3Highspeed {
1346
+ model: 'hailuo3_highspeed';
1347
+
1348
+ /**
1349
+ * The text prompt describing the output video.
1350
+ */
1351
+ promptText: string;
1352
+
1353
+ /**
1354
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1355
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1356
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1357
+ */
1358
+ promptVideo: string;
1359
+
1360
+ duration?: number;
1361
+
1362
+ ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
1363
+
1364
+ referenceAudio?: Array<Hailuo3Highspeed.ReferenceAudio>;
1365
+
1366
+ references?: Array<Hailuo3Highspeed.Reference>;
1367
+
1368
+ referenceVideos?: Array<Hailuo3Highspeed.ReferenceVideo>;
1369
+
1370
+ /**
1371
+ * The output video resolution.
1372
+ */
1373
+ resolution?: '480p' | '768p';
1374
+ }
1375
+
1376
+ export namespace Hailuo3Highspeed {
1377
+ export interface ReferenceAudio {
1378
+ type: 'audio';
1379
+
1380
+ /**
1381
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1382
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1383
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1384
+ */
1385
+ uri: string;
1386
+ }
1387
+
1388
+ export interface Reference {
1389
+ /**
1390
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1391
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1392
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1393
+ */
1394
+ uri: string;
1395
+ }
1396
+
1397
+ export interface ReferenceVideo {
1398
+ type: 'video';
1399
+
1400
+ /**
1401
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1402
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1403
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1404
+ */
1405
+ uri: string;
1406
+ }
1407
+ }
1408
+
1409
+ export interface Hailuo3Lite {
1410
+ model: 'hailuo3_lite';
1411
+
1412
+ /**
1413
+ * The text prompt describing the output video.
1414
+ */
1415
+ promptText: string;
1416
+
1417
+ /**
1418
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1419
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1420
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1421
+ */
1422
+ promptVideo: string;
1423
+
1424
+ duration?: number;
1425
+
1426
+ ratio?: '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
1427
+
1428
+ referenceAudio?: Array<Hailuo3Lite.ReferenceAudio>;
1429
+
1430
+ references?: Array<Hailuo3Lite.Reference>;
1431
+
1432
+ referenceVideos?: Array<Hailuo3Lite.ReferenceVideo>;
1433
+
1434
+ /**
1435
+ * The output video resolution.
1436
+ */
1437
+ resolution?: '480p' | '768p';
1438
+ }
1439
+
1440
+ export namespace Hailuo3Lite {
1441
+ export interface ReferenceAudio {
1442
+ type: 'audio';
1443
+
1444
+ /**
1445
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1446
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1447
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1448
+ */
1449
+ uri: string;
1450
+ }
1451
+
1452
+ export interface Reference {
1453
+ /**
1454
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1455
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1456
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1457
+ */
1458
+ uri: string;
1459
+ }
1460
+
1461
+ export interface ReferenceVideo {
1462
+ type: 'video';
1463
+
1464
+ /**
1465
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1466
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1467
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1468
+ */
1469
+ uri: string;
1470
+ }
1471
+ }
1335
1472
  }
1336
1473
 
1337
1474
  export declare namespace VideoToVideo {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.25.0'; // x-release-please-version
1
+ export const VERSION = '4.27.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.25.0";
1
+ export declare const VERSION = "4.27.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.25.0";
1
+ export declare const VERSION = "4.27.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.25.0'; // x-release-please-version
4
+ exports.VERSION = '4.27.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.25.0'; // x-release-please-version
1
+ export const VERSION = '4.27.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map