@runwayml/sdk 4.28.0 → 4.30.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 (132) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +2 -2
  3. package/package.json +1 -1
  4. package/resources/avatar-conversations.d.mts +1 -1
  5. package/resources/avatar-conversations.d.mts.map +1 -1
  6. package/resources/avatar-conversations.d.ts +1 -1
  7. package/resources/avatar-conversations.d.ts.map +1 -1
  8. package/resources/avatar-conversations.js +1 -1
  9. package/resources/avatar-conversations.js.map +1 -1
  10. package/resources/avatar-conversations.mjs +1 -1
  11. package/resources/avatar-conversations.mjs.map +1 -1
  12. package/resources/avatars.d.mts +2 -4
  13. package/resources/avatars.d.mts.map +1 -1
  14. package/resources/avatars.d.ts +2 -4
  15. package/resources/avatars.d.ts.map +1 -1
  16. package/resources/avatars.js +2 -4
  17. package/resources/avatars.js.map +1 -1
  18. package/resources/avatars.mjs +2 -4
  19. package/resources/avatars.mjs.map +1 -1
  20. package/resources/documents.d.mts +4 -10
  21. package/resources/documents.d.mts.map +1 -1
  22. package/resources/documents.d.ts +4 -10
  23. package/resources/documents.d.ts.map +1 -1
  24. package/resources/documents.js +2 -8
  25. package/resources/documents.js.map +1 -1
  26. package/resources/documents.mjs +2 -8
  27. package/resources/documents.mjs.map +1 -1
  28. package/resources/generate/image.d.mts +2 -2
  29. package/resources/generate/image.d.ts +2 -2
  30. package/resources/generate/video.d.mts +5 -0
  31. package/resources/generate/video.d.mts.map +1 -1
  32. package/resources/generate/video.d.ts +5 -0
  33. package/resources/generate/video.d.ts.map +1 -1
  34. package/resources/image-to-video.d.mts +78 -2
  35. package/resources/image-to-video.d.mts.map +1 -1
  36. package/resources/image-to-video.d.ts +78 -2
  37. package/resources/image-to-video.d.ts.map +1 -1
  38. package/resources/organization/index.d.mts +1 -1
  39. package/resources/organization/index.d.mts.map +1 -1
  40. package/resources/organization/index.d.ts +1 -1
  41. package/resources/organization/index.d.ts.map +1 -1
  42. package/resources/organization/index.js.map +1 -1
  43. package/resources/organization/index.mjs.map +1 -1
  44. package/resources/organization/organization.d.mts +54 -5
  45. package/resources/organization/organization.d.mts.map +1 -1
  46. package/resources/organization/organization.d.ts +54 -5
  47. package/resources/organization/organization.d.ts.map +1 -1
  48. package/resources/organization/organization.js +1 -1
  49. package/resources/organization/organization.js.map +1 -1
  50. package/resources/organization/organization.mjs +1 -1
  51. package/resources/organization/organization.mjs.map +1 -1
  52. package/resources/organization/webapp/audit-logs.d.mts +64 -12
  53. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  54. package/resources/organization/webapp/audit-logs.d.ts +64 -12
  55. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  56. package/resources/organization/webapp/audit-logs.js +1 -1
  57. package/resources/organization/webapp/audit-logs.js.map +1 -1
  58. package/resources/organization/webapp/audit-logs.mjs +1 -1
  59. package/resources/organization/webapp/audit-logs.mjs.map +1 -1
  60. package/resources/organization/webapp/index.d.mts +1 -1
  61. package/resources/organization/webapp/index.d.mts.map +1 -1
  62. package/resources/organization/webapp/index.d.ts +1 -1
  63. package/resources/organization/webapp/index.d.ts.map +1 -1
  64. package/resources/organization/webapp/index.js.map +1 -1
  65. package/resources/organization/webapp/index.mjs.map +1 -1
  66. package/resources/organization/webapp/webapp.d.mts +95 -2
  67. package/resources/organization/webapp/webapp.d.mts.map +1 -1
  68. package/resources/organization/webapp/webapp.d.ts +95 -2
  69. package/resources/organization/webapp/webapp.d.ts.map +1 -1
  70. package/resources/organization/webapp/webapp.js +12 -0
  71. package/resources/organization/webapp/webapp.js.map +1 -1
  72. package/resources/organization/webapp/webapp.mjs +12 -0
  73. package/resources/organization/webapp/webapp.mjs.map +1 -1
  74. package/resources/routers.d.mts +32 -26
  75. package/resources/routers.d.mts.map +1 -1
  76. package/resources/routers.d.ts +32 -26
  77. package/resources/routers.d.ts.map +1 -1
  78. package/resources/routers.js +2 -2
  79. package/resources/routers.js.map +1 -1
  80. package/resources/routers.mjs +2 -2
  81. package/resources/routers.mjs.map +1 -1
  82. package/resources/tasks.d.mts +25 -2
  83. package/resources/tasks.d.mts.map +1 -1
  84. package/resources/tasks.d.ts +25 -2
  85. package/resources/tasks.d.ts.map +1 -1
  86. package/resources/text-to-image.d.mts +204 -1
  87. package/resources/text-to-image.d.mts.map +1 -1
  88. package/resources/text-to-image.d.ts +204 -1
  89. package/resources/text-to-image.d.ts.map +1 -1
  90. package/resources/text-to-speech.d.mts +77 -1
  91. package/resources/text-to-speech.d.mts.map +1 -1
  92. package/resources/text-to-speech.d.ts +77 -1
  93. package/resources/text-to-speech.d.ts.map +1 -1
  94. package/resources/text-to-video.d.mts +94 -3
  95. package/resources/text-to-video.d.mts.map +1 -1
  96. package/resources/text-to-video.d.ts +94 -3
  97. package/resources/text-to-video.d.ts.map +1 -1
  98. package/resources/video-to-video.d.mts +107 -3
  99. package/resources/video-to-video.d.mts.map +1 -1
  100. package/resources/video-to-video.d.ts +107 -3
  101. package/resources/video-to-video.d.ts.map +1 -1
  102. package/resources/voices.d.mts +1 -1
  103. package/resources/voices.d.mts.map +1 -1
  104. package/resources/voices.d.ts +1 -1
  105. package/resources/voices.d.ts.map +1 -1
  106. package/resources/voices.js +1 -1
  107. package/resources/voices.js.map +1 -1
  108. package/resources/voices.mjs +1 -1
  109. package/resources/voices.mjs.map +1 -1
  110. package/src/resources/avatar-conversations.ts +1 -1
  111. package/src/resources/avatars.ts +2 -4
  112. package/src/resources/documents.ts +4 -10
  113. package/src/resources/generate/image.ts +2 -2
  114. package/src/resources/generate/video.ts +6 -0
  115. package/src/resources/image-to-video.ts +105 -2
  116. package/src/resources/organization/index.ts +3 -0
  117. package/src/resources/organization/organization.ts +82 -3
  118. package/src/resources/organization/webapp/audit-logs.ts +144 -10
  119. package/src/resources/organization/webapp/index.ts +3 -0
  120. package/src/resources/organization/webapp/webapp.ts +122 -1
  121. package/src/resources/routers.ts +38 -26
  122. package/src/resources/tasks.ts +33 -2
  123. package/src/resources/text-to-image.ts +350 -1
  124. package/src/resources/text-to-speech.ts +143 -1
  125. package/src/resources/text-to-video.ts +128 -3
  126. package/src/resources/video-to-video.ts +143 -3
  127. package/src/resources/voices.ts +1 -1
  128. package/src/version.ts +1 -1
  129. package/version.d.mts +1 -1
  130. package/version.d.ts +1 -1
  131. package/version.js +1 -1
  132. package/version.mjs +1 -1
@@ -71,7 +71,8 @@ export type VideoToVideoCreateParams =
71
71
  | VideoToVideoCreateParams.GeminiOmniFlash1_2
72
72
  | VideoToVideoCreateParams.Kling4Flash
73
73
  | VideoToVideoCreateParams.Hailuo3Highspeed
74
- | VideoToVideoCreateParams.Hailuo3Lite;
74
+ | VideoToVideoCreateParams.Hailuo3Lite
75
+ | VideoToVideoCreateParams.Seedance2_5Flash;
75
76
 
76
77
  export declare namespace VideoToVideoCreateParams {
77
78
  export interface Variant0 {
@@ -1209,6 +1210,12 @@ export declare namespace VideoToVideoCreateParams {
1209
1210
  */
1210
1211
  duration?: number;
1211
1212
 
1213
+ /**
1214
+ * Generate 10-bit HDR output. Requires a 1080p or 4K ratio. Additional charges
1215
+ * apply per output second. Defaults to false.
1216
+ */
1217
+ hdr?: boolean;
1218
+
1212
1219
  /**
1213
1220
  * Optional first, middle, and last frames guiding the edit. Middle or last frames
1214
1221
  * can be provided without a first frame.
@@ -1217,7 +1224,7 @@ export declare namespace VideoToVideoCreateParams {
1217
1224
 
1218
1225
  /**
1219
1226
  * The target output size. Use a pixel ratio such as `1280:720` or `auto_720p` /
1220
- * `auto_1080p` for adaptive framing.
1227
+ * `auto_1080p` / `auto_4k` for adaptive framing.
1221
1228
  */
1222
1229
  ratio?:
1223
1230
  | '1280:720'
@@ -1228,8 +1235,13 @@ export declare namespace VideoToVideoCreateParams {
1228
1235
  | '1080:1920'
1229
1236
  | '1440:1440'
1230
1237
  | '2200:940'
1238
+ | '3840:2160'
1239
+ | '2160:3840'
1240
+ | '2880:2880'
1241
+ | '4396:1884'
1231
1242
  | 'auto_720p'
1232
- | 'auto_1080p';
1243
+ | 'auto_1080p'
1244
+ | 'auto_4k';
1233
1245
 
1234
1246
  /**
1235
1247
  * Images of characters, objects or styles to use in the video. Up to 10 images in
@@ -1497,6 +1509,134 @@ export declare namespace VideoToVideoCreateParams {
1497
1509
  uri: string;
1498
1510
  }
1499
1511
  }
1512
+
1513
+ export interface Seedance2_5Flash {
1514
+ model: 'seedance2_5_flash';
1515
+
1516
+ /**
1517
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1518
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1519
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1520
+ */
1521
+ promptVideo: string;
1522
+
1523
+ /**
1524
+ * Whether to generate audio for the video.
1525
+ */
1526
+ audio?: boolean;
1527
+
1528
+ /**
1529
+ * Seconds of video to generate, or `auto` to let the model choose. `auto` is
1530
+ * billed at the variant maximum up front; unused credits are refunded after the
1531
+ * generation finishes. Defaults to 5.
1532
+ */
1533
+ duration?: number | 'auto';
1534
+
1535
+ /**
1536
+ * How the input video is used. `reference` (the default) generates a new video
1537
+ * conditioned on the input video and accepts `duration` and `ratio`. `extend`
1538
+ * continues the input video, requires `promptText`, and matches the input aspect
1539
+ * ratio, so `ratio` may not be provided. `edit` modifies the input video in place,
1540
+ * requires `promptText`, requires `duration: "auto"`, and does not accept `ratio`.
1541
+ */
1542
+ mode?: 'reference' | 'extend' | 'edit';
1543
+
1544
+ /**
1545
+ * Container for the output video. `mov` keeps high colour precision for grading
1546
+ * and compositing. Defaults to `mp4`.
1547
+ */
1548
+ outputFormat?: 'mp4' | 'mov';
1549
+
1550
+ /**
1551
+ * An optional text prompt up to 15000 characters describing what should appear in
1552
+ * the output.
1553
+ */
1554
+ promptText?: string;
1555
+
1556
+ /**
1557
+ * The resolution of the output video. Seedance 2.5 Flash supports 480p and 720p.
1558
+ */
1559
+ ratio?:
1560
+ | '992:432'
1561
+ | '854:480'
1562
+ | '752:560'
1563
+ | '640:640'
1564
+ | '560:752'
1565
+ | '480:854'
1566
+ | '1470:630'
1567
+ | '1280:720'
1568
+ | '1112:834'
1569
+ | '960:960'
1570
+ | '834:1112'
1571
+ | '720:1280';
1572
+
1573
+ /**
1574
+ * An optional array of audio references. The total combined duration must be less
1575
+ * than 30 seconds.
1576
+ */
1577
+ referenceAudio?: Array<Seedance2_5Flash.ReferenceAudio>;
1578
+
1579
+ /**
1580
+ * An optional array of image references (up to 10). See
1581
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1582
+ */
1583
+ references?: Array<Seedance2_5Flash.Reference>;
1584
+
1585
+ /**
1586
+ * An optional array of video references. The combined duration across all video
1587
+ * references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
1588
+ * video inputs for more information.
1589
+ */
1590
+ referenceVideos?: Array<Seedance2_5Flash.ReferenceVideo>;
1591
+
1592
+ /**
1593
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
1594
+ * get different results for the same other request parameters. Using the same seed
1595
+ * integer for an identical request will produce similar results.
1596
+ */
1597
+ seed?: number;
1598
+ }
1599
+
1600
+ export namespace Seedance2_5Flash {
1601
+ /**
1602
+ * An audio reference allows the model to use the audio as additional context for
1603
+ * the output.
1604
+ */
1605
+ export interface ReferenceAudio {
1606
+ type: 'audio';
1607
+
1608
+ /**
1609
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1610
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1611
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1612
+ */
1613
+ uri: string;
1614
+ }
1615
+
1616
+ export interface Reference {
1617
+ /**
1618
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1619
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1620
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1621
+ */
1622
+ uri: string;
1623
+ }
1624
+
1625
+ /**
1626
+ * A video reference allows the model to use the video as additional context for
1627
+ * the output.
1628
+ */
1629
+ export interface ReferenceVideo {
1630
+ type: 'video';
1631
+
1632
+ /**
1633
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1634
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1635
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1636
+ */
1637
+ uri: string;
1638
+ }
1639
+ }
1500
1640
  }
1501
1641
 
1502
1642
  export declare namespace VideoToVideo {
@@ -39,7 +39,7 @@ export class Voices extends APIResource {
39
39
  * pagination.
40
40
  */
41
41
  list(
42
- query: VoiceListParams,
42
+ query: VoiceListParams | null | undefined = {},
43
43
  options?: RequestOptions,
44
44
  ): PagePromise<VoiceListResponsesCursorPage, VoiceListResponse> {
45
45
  return this._client.getAPIList('/v1/voices', CursorPage<VoiceListResponse>, { query, ...options });
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.28.0'; // x-release-please-version
1
+ export const VERSION = '4.30.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.28.0";
1
+ export declare const VERSION = "4.30.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.28.0";
1
+ export declare const VERSION = "4.30.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.28.0'; // x-release-please-version
4
+ exports.VERSION = '4.30.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.28.0'; // x-release-please-version
1
+ export const VERSION = '4.30.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map