@runwayml/sdk 4.27.0 → 4.29.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.
- package/CHANGELOG.md +18 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/resources/avatar-conversations.d.mts +1 -1
- package/resources/avatar-conversations.d.mts.map +1 -1
- package/resources/avatar-conversations.d.ts +1 -1
- package/resources/avatar-conversations.d.ts.map +1 -1
- package/resources/avatar-conversations.js +1 -1
- package/resources/avatar-conversations.js.map +1 -1
- package/resources/avatar-conversations.mjs +1 -1
- package/resources/avatar-conversations.mjs.map +1 -1
- package/resources/avatars.d.mts +2 -4
- package/resources/avatars.d.mts.map +1 -1
- package/resources/avatars.d.ts +2 -4
- package/resources/avatars.d.ts.map +1 -1
- package/resources/avatars.js +2 -4
- package/resources/avatars.js.map +1 -1
- package/resources/avatars.mjs +2 -4
- package/resources/avatars.mjs.map +1 -1
- package/resources/documents.d.mts +4 -10
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +4 -10
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +2 -8
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +2 -8
- package/resources/documents.mjs.map +1 -1
- package/resources/image-to-video.d.mts +72 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +72 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +52 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +52 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +110 -16
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +110 -16
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/audit-logs.js +1 -1
- package/resources/organization/webapp/audit-logs.js.map +1 -1
- package/resources/organization/webapp/audit-logs.mjs +1 -1
- package/resources/organization/webapp/audit-logs.mjs.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +36 -1
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +36 -1
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/routers.d.mts +32 -26
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +32 -26
- package/resources/routers.d.ts.map +1 -1
- package/resources/routers.js +2 -2
- package/resources/routers.js.map +1 -1
- package/resources/routers.mjs +2 -2
- package/resources/routers.mjs.map +1 -1
- package/resources/tasks.d.mts +2 -2
- package/resources/tasks.d.ts +2 -2
- package/resources/text-to-image.d.mts +122 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +122 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +71 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +71 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +87 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +87 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +117 -3
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +117 -3
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/voices.d.mts +1 -1
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +1 -1
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.js +1 -1
- package/resources/voices.js.map +1 -1
- package/resources/voices.mjs +1 -1
- package/resources/voices.mjs.map +1 -1
- package/src/resources/avatar-conversations.ts +1 -1
- package/src/resources/avatars.ts +2 -4
- package/src/resources/documents.ts +4 -10
- package/src/resources/image-to-video.ts +98 -1
- package/src/resources/organization/organization.ts +70 -1
- package/src/resources/organization/webapp/audit-logs.ts +226 -14
- package/src/resources/organization/webapp/webapp.ts +53 -1
- package/src/resources/routers.ts +38 -26
- package/src/resources/tasks.ts +2 -2
- package/src/resources/text-to-image.ts +221 -0
- package/src/resources/text-to-speech.ts +86 -0
- package/src/resources/text-to-video.ts +115 -1
- package/src/resources/video-to-video.ts +160 -3
- package/src/resources/voices.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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 {
|
|
@@ -1205,15 +1206,43 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
1205
1206
|
videoUri: string;
|
|
1206
1207
|
|
|
1207
1208
|
/**
|
|
1208
|
-
*
|
|
1209
|
+
* The duration of the edited video in seconds.
|
|
1209
1210
|
*/
|
|
1210
|
-
|
|
1211
|
+
duration?: number;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* Optional first, middle, and last frames guiding the edit. Middle or last frames
|
|
1215
|
+
* can be provided without a first frame.
|
|
1216
|
+
*/
|
|
1217
|
+
promptImage?: string | Array<unknown>;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* The target output size. Use a pixel ratio such as `1280:720` or `auto_720p` /
|
|
1221
|
+
* `auto_1080p` for adaptive framing.
|
|
1222
|
+
*/
|
|
1223
|
+
ratio?:
|
|
1224
|
+
| '1280:720'
|
|
1225
|
+
| '720:1280'
|
|
1226
|
+
| '940:940'
|
|
1227
|
+
| '1460:624'
|
|
1228
|
+
| '1920:1080'
|
|
1229
|
+
| '1080:1920'
|
|
1230
|
+
| '1440:1440'
|
|
1231
|
+
| '2200:940'
|
|
1232
|
+
| 'auto_720p'
|
|
1233
|
+
| 'auto_1080p';
|
|
1211
1234
|
|
|
1212
1235
|
/**
|
|
1213
1236
|
* Images of characters, objects or styles to use in the video. Up to 10 images in
|
|
1214
1237
|
* total, frames included.
|
|
1215
1238
|
*/
|
|
1216
1239
|
references?: Array<Kling4.Reference>;
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Up to 4 videos whose style, motion or camera work should guide the output,
|
|
1243
|
+
* together at most 30 seconds long.
|
|
1244
|
+
*/
|
|
1245
|
+
referenceVideos?: Array<unknown>;
|
|
1217
1246
|
}
|
|
1218
1247
|
|
|
1219
1248
|
export namespace Kling4 {
|
|
@@ -1469,6 +1498,134 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
1469
1498
|
uri: string;
|
|
1470
1499
|
}
|
|
1471
1500
|
}
|
|
1501
|
+
|
|
1502
|
+
export interface Seedance2_5Flash {
|
|
1503
|
+
model: 'seedance2_5_flash';
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1507
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1508
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1509
|
+
*/
|
|
1510
|
+
promptVideo: string;
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* Whether to generate audio for the video.
|
|
1514
|
+
*/
|
|
1515
|
+
audio?: boolean;
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
1519
|
+
* billed at the variant maximum up front; unused credits are refunded after the
|
|
1520
|
+
* generation finishes. Defaults to 5.
|
|
1521
|
+
*/
|
|
1522
|
+
duration?: number | 'auto';
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* How the input video is used. `reference` (the default) generates a new video
|
|
1526
|
+
* conditioned on the input video and accepts `duration` and `ratio`. `extend`
|
|
1527
|
+
* continues the input video, requires `promptText`, and matches the input aspect
|
|
1528
|
+
* ratio, so `ratio` may not be provided. `edit` modifies the input video in place,
|
|
1529
|
+
* requires `promptText`, requires `duration: "auto"`, and does not accept `ratio`.
|
|
1530
|
+
*/
|
|
1531
|
+
mode?: 'reference' | 'extend' | 'edit';
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* Container for the output video. `mov` keeps high colour precision for grading
|
|
1535
|
+
* and compositing. Defaults to `mp4`.
|
|
1536
|
+
*/
|
|
1537
|
+
outputFormat?: 'mp4' | 'mov';
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
1541
|
+
* the output.
|
|
1542
|
+
*/
|
|
1543
|
+
promptText?: string;
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* The resolution of the output video. Seedance 2.5 Flash supports 480p and 720p.
|
|
1547
|
+
*/
|
|
1548
|
+
ratio?:
|
|
1549
|
+
| '992:432'
|
|
1550
|
+
| '854:480'
|
|
1551
|
+
| '752:560'
|
|
1552
|
+
| '640:640'
|
|
1553
|
+
| '560:752'
|
|
1554
|
+
| '480:854'
|
|
1555
|
+
| '1470:630'
|
|
1556
|
+
| '1280:720'
|
|
1557
|
+
| '1112:834'
|
|
1558
|
+
| '960:960'
|
|
1559
|
+
| '834:1112'
|
|
1560
|
+
| '720:1280';
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* An optional array of audio references. The total combined duration must be less
|
|
1564
|
+
* than 30 seconds.
|
|
1565
|
+
*/
|
|
1566
|
+
referenceAudio?: Array<Seedance2_5Flash.ReferenceAudio>;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* An optional array of image references (up to 10). See
|
|
1570
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1571
|
+
*/
|
|
1572
|
+
references?: Array<Seedance2_5Flash.Reference>;
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
* An optional array of video references. The combined duration across all video
|
|
1576
|
+
* references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
|
|
1577
|
+
* video inputs for more information.
|
|
1578
|
+
*/
|
|
1579
|
+
referenceVideos?: Array<Seedance2_5Flash.ReferenceVideo>;
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
1583
|
+
* get different results for the same other request parameters. Using the same seed
|
|
1584
|
+
* integer for an identical request will produce similar results.
|
|
1585
|
+
*/
|
|
1586
|
+
seed?: number;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
export namespace Seedance2_5Flash {
|
|
1590
|
+
/**
|
|
1591
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
1592
|
+
* the output.
|
|
1593
|
+
*/
|
|
1594
|
+
export interface ReferenceAudio {
|
|
1595
|
+
type: 'audio';
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1599
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
1600
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
1601
|
+
*/
|
|
1602
|
+
uri: string;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
export interface Reference {
|
|
1606
|
+
/**
|
|
1607
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1608
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1609
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1610
|
+
*/
|
|
1611
|
+
uri: string;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* A video reference allows the model to use the video as additional context for
|
|
1616
|
+
* the output.
|
|
1617
|
+
*/
|
|
1618
|
+
export interface ReferenceVideo {
|
|
1619
|
+
type: 'video';
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1623
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1624
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1625
|
+
*/
|
|
1626
|
+
uri: string;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1472
1629
|
}
|
|
1473
1630
|
|
|
1474
1631
|
export declare namespace VideoToVideo {
|
package/src/resources/voices.ts
CHANGED
|
@@ -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.
|
|
1
|
+
export const VERSION = '4.29.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.29.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|