@runwayml/sdk 4.23.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.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/resources/generate/audio.d.mts +12 -10
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +12 -10
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/audio.js +3 -2
- package/resources/generate/audio.js.map +1 -1
- package/resources/generate/audio.mjs +3 -2
- package/resources/generate/audio.mjs.map +1 -1
- package/resources/image-to-video.d.mts +142 -4
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +142 -4
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +124 -7
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +124 -7
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +18 -0
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +18 -0
- 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/tasks.d.mts +34 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +34 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +236 -13
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +236 -13
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +127 -4
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +127 -4
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +140 -4
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +140 -4
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/resources/generate/audio.ts +12 -10
- package/src/resources/image-to-video.ts +182 -4
- package/src/resources/organization/organization.ts +16 -0
- package/src/resources/organization/webapp/audit-logs.ts +238 -5
- package/src/resources/organization/webapp/webapp.ts +22 -0
- package/src/resources/tasks.ts +41 -0
- package/src/resources/text-to-image.ts +342 -12
- package/src/resources/text-to-video.ts +174 -4
- package/src/resources/video-to-video.ts +178 -4
- 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
|
@@ -66,7 +66,10 @@ export type VideoToVideoCreateParams =
|
|
|
66
66
|
| VideoToVideoCreateParams.Seedance2Mini
|
|
67
67
|
| VideoToVideoCreateParams.GeminiOmniFlash
|
|
68
68
|
| VideoToVideoCreateParams.GeminiOmniFlash1_1
|
|
69
|
-
| VideoToVideoCreateParams.Seedance2_5
|
|
69
|
+
| VideoToVideoCreateParams.Seedance2_5
|
|
70
|
+
| VideoToVideoCreateParams.Kling4
|
|
71
|
+
| VideoToVideoCreateParams.GeminiOmniFlash1_2
|
|
72
|
+
| VideoToVideoCreateParams.Kling4Flash;
|
|
70
73
|
|
|
71
74
|
export declare namespace VideoToVideoCreateParams {
|
|
72
75
|
export interface Variant0 {
|
|
@@ -589,6 +592,12 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
589
592
|
*/
|
|
590
593
|
audio?: boolean;
|
|
591
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
|
+
|
|
592
601
|
/**
|
|
593
602
|
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
594
603
|
* billed at the variant maximum up front; unused credits are refunded after the
|
|
@@ -597,7 +606,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
597
606
|
duration?: number | 'auto';
|
|
598
607
|
|
|
599
608
|
/**
|
|
600
|
-
* An optional text prompt up to
|
|
609
|
+
* An optional text prompt up to 10000 characters describing what should appear in
|
|
601
610
|
* the output.
|
|
602
611
|
*/
|
|
603
612
|
promptText?: string;
|
|
@@ -714,6 +723,12 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
714
723
|
*/
|
|
715
724
|
audio?: boolean;
|
|
716
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
|
+
|
|
717
732
|
/**
|
|
718
733
|
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
719
734
|
* billed at the variant maximum up front; unused credits are refunded after the
|
|
@@ -722,7 +737,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
722
737
|
duration?: number | 'auto';
|
|
723
738
|
|
|
724
739
|
/**
|
|
725
|
-
* An optional text prompt up to
|
|
740
|
+
* An optional text prompt up to 10000 characters describing what should appear in
|
|
726
741
|
* the output.
|
|
727
742
|
*/
|
|
728
743
|
promptText?: string;
|
|
@@ -828,6 +843,12 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
828
843
|
*/
|
|
829
844
|
audio?: boolean;
|
|
830
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
|
+
|
|
831
852
|
/**
|
|
832
853
|
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
833
854
|
* billed at the variant maximum up front; unused credits are refunded after the
|
|
@@ -836,7 +857,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
836
857
|
duration?: number | 'auto';
|
|
837
858
|
|
|
838
859
|
/**
|
|
839
|
-
* An optional text prompt up to
|
|
860
|
+
* An optional text prompt up to 10000 characters describing what should appear in
|
|
840
861
|
* the output.
|
|
841
862
|
*/
|
|
842
863
|
promptText?: string;
|
|
@@ -1158,6 +1179,159 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
1158
1179
|
uri: string;
|
|
1159
1180
|
}
|
|
1160
1181
|
}
|
|
1182
|
+
|
|
1183
|
+
export interface Kling4 {
|
|
1184
|
+
model: 'kling_4';
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* A text prompt describing how to edit the video.
|
|
1188
|
+
*/
|
|
1189
|
+
promptText: string;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1193
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1194
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1195
|
+
*/
|
|
1196
|
+
videoUri: string;
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Output quality tier. The video keeps the input media framing.
|
|
1200
|
+
*/
|
|
1201
|
+
ratio?: 'auto_720p' | 'auto_1080p';
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* Images of characters, objects or styles to use in the video. Up to 10 images in
|
|
1205
|
+
* total, frames included.
|
|
1206
|
+
*/
|
|
1207
|
+
references?: Array<Kling4.Reference>;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
export namespace Kling4 {
|
|
1211
|
+
export interface Reference {
|
|
1212
|
+
/**
|
|
1213
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1214
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1215
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1216
|
+
*/
|
|
1217
|
+
uri: string;
|
|
1218
|
+
}
|
|
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
|
+
}
|
|
1161
1335
|
}
|
|
1162
1336
|
|
|
1163
1337
|
export declare namespace VideoToVideo {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "4.25.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.25.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|