@runwayml/sdk 4.9.1 → 4.11.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 +22 -0
- package/README.md +8 -8
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/generate/generate.d.mts +10 -0
- package/resources/generate/generate.d.mts.map +1 -0
- package/resources/generate/generate.d.ts +10 -0
- package/resources/generate/generate.d.ts.map +1 -0
- package/resources/generate/generate.js +17 -0
- package/resources/generate/generate.js.map +1 -0
- package/resources/generate/generate.mjs +12 -0
- package/resources/generate/generate.mjs.map +1 -0
- package/resources/generate/index.d.mts +3 -0
- package/resources/generate/index.d.mts.map +1 -0
- package/resources/generate/index.d.ts +3 -0
- package/resources/generate/index.d.ts.map +1 -0
- package/resources/generate/index.js +9 -0
- package/resources/generate/index.js.map +1 -0
- package/resources/generate/index.mjs +4 -0
- package/resources/generate/index.mjs.map +1 -0
- package/resources/generate/video.d.mts +246 -0
- package/resources/generate/video.d.mts.map +1 -0
- package/resources/generate/video.d.ts +246 -0
- package/resources/generate/video.d.ts.map +1 -0
- package/resources/generate/video.js +17 -0
- package/resources/generate/video.js.map +1 -0
- package/resources/generate/video.mjs +13 -0
- package/resources/generate/video.mjs.map +1 -0
- package/resources/generate.d.mts +2 -0
- package/resources/generate.d.mts.map +1 -0
- package/resources/generate.d.ts +2 -0
- package/resources/generate.d.ts.map +1 -0
- package/resources/generate.js +6 -0
- package/resources/generate.js.map +1 -0
- package/resources/generate.mjs +3 -0
- package/resources/generate.mjs.map +1 -0
- package/resources/image-to-video.d.mts +12 -0
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +12 -0
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +20 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +20 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/routers.d.mts +490 -0
- package/resources/routers.d.mts.map +1 -0
- package/resources/routers.d.ts +490 -0
- package/resources/routers.d.ts.map +1 -0
- package/resources/routers.js +49 -0
- package/resources/routers.js.map +1 -0
- package/resources/routers.mjs +45 -0
- package/resources/routers.mjs.map +1 -0
- package/resources/text-to-image.d.mts +74 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +74 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +12 -0
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +12 -0
- package/resources/text-to-video.d.ts.map +1 -1
- package/src/client.ts +30 -0
- package/src/resources/generate/generate.ts +19 -0
- package/src/resources/generate/index.ts +4 -0
- package/src/resources/generate/video.ts +300 -0
- package/src/resources/generate.ts +3 -0
- package/src/resources/image-to-video.ts +15 -0
- package/src/resources/index.ts +12 -0
- package/src/resources/organization.ts +34 -0
- package/src/resources/routers.ts +622 -0
- package/src/resources/text-to-image.ts +122 -0
- package/src/resources/text-to-video.ts +15 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -34,6 +34,8 @@ export type TextToImageCreateParams =
|
|
|
34
34
|
| TextToImageCreateParams.GptImage2
|
|
35
35
|
| TextToImageCreateParams.GeminiImage3Pro
|
|
36
36
|
| TextToImageCreateParams.GeminiImage3_1Flash
|
|
37
|
+
| TextToImageCreateParams.Seedream5Pro
|
|
38
|
+
| TextToImageCreateParams.Seedream5Lite
|
|
37
39
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
38
40
|
|
|
39
41
|
export declare namespace TextToImageCreateParams {
|
|
@@ -459,6 +461,126 @@ export declare namespace TextToImageCreateParams {
|
|
|
459
461
|
}
|
|
460
462
|
}
|
|
461
463
|
|
|
464
|
+
export interface Seedream5Pro {
|
|
465
|
+
model: 'seedream5_pro';
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* A non-empty string up to 4,000 characters describing the desired image.
|
|
469
|
+
*/
|
|
470
|
+
promptText: string;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use
|
|
474
|
+
* `auto_1k` or `auto_2k` to let the model pick aspect ratio at a fixed resolution
|
|
475
|
+
* tier.
|
|
476
|
+
*/
|
|
477
|
+
ratio:
|
|
478
|
+
| '1024:1024'
|
|
479
|
+
| '1184:896'
|
|
480
|
+
| '896:1184'
|
|
481
|
+
| '1376:768'
|
|
482
|
+
| '768:1376'
|
|
483
|
+
| '1296:864'
|
|
484
|
+
| '864:1296'
|
|
485
|
+
| '2048:2048'
|
|
486
|
+
| '2304:1728'
|
|
487
|
+
| '1728:2304'
|
|
488
|
+
| '2720:1530'
|
|
489
|
+
| '1530:2720'
|
|
490
|
+
| '2496:1664'
|
|
491
|
+
| '1664:2496'
|
|
492
|
+
| 'auto_1k'
|
|
493
|
+
| 'auto_2k';
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* When true, enable live web search so the model can use current brand, trend, or
|
|
497
|
+
* event context. Default false for deterministic output.
|
|
498
|
+
*/
|
|
499
|
+
grounding?: boolean;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
503
|
+
* of credits consumed by the generation.
|
|
504
|
+
*/
|
|
505
|
+
outputCount?: number;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* The file format of the output image. Defaults to png.
|
|
509
|
+
*/
|
|
510
|
+
outputFormat?: 'png' | 'jpeg';
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* An array of reference images for multi-image fusion and interactive editing.
|
|
514
|
+
* Reference by upload order in prompt text (Figure 1, Figure 2, etc.).
|
|
515
|
+
*/
|
|
516
|
+
referenceImages?: Array<Seedream5Pro.ReferenceImage>;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export namespace Seedream5Pro {
|
|
520
|
+
export interface ReferenceImage {
|
|
521
|
+
/**
|
|
522
|
+
* A HTTPS URL.
|
|
523
|
+
*/
|
|
524
|
+
uri: string;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export interface Seedream5Lite {
|
|
529
|
+
model: 'seedream5_lite';
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* A non-empty string up to 4,000 characters describing the desired image.
|
|
533
|
+
*/
|
|
534
|
+
promptText: string;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* The resolution of the output image, expressed as `<width>:<height>`.
|
|
538
|
+
*/
|
|
539
|
+
ratio:
|
|
540
|
+
| '2048:2048'
|
|
541
|
+
| '2304:1728'
|
|
542
|
+
| '1728:2304'
|
|
543
|
+
| '2848:1600'
|
|
544
|
+
| '1600:2848'
|
|
545
|
+
| '2496:1664'
|
|
546
|
+
| '1664:2496'
|
|
547
|
+
| '3136:1344'
|
|
548
|
+
| '3072:3072'
|
|
549
|
+
| '3456:2592'
|
|
550
|
+
| '2592:3456'
|
|
551
|
+
| '4096:2304'
|
|
552
|
+
| '2304:4096'
|
|
553
|
+
| '3744:2496'
|
|
554
|
+
| '2496:3744'
|
|
555
|
+
| '4704:2016';
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
559
|
+
* of credits consumed by the generation.
|
|
560
|
+
*/
|
|
561
|
+
outputCount?: number;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* The file format of the output image. Defaults to png.
|
|
565
|
+
*/
|
|
566
|
+
outputFormat?: 'png' | 'jpeg';
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* An array of reference images for multi-image fusion and interactive editing.
|
|
570
|
+
* Reference by upload order in prompt text (Figure 1, Figure 2, etc.).
|
|
571
|
+
*/
|
|
572
|
+
referenceImages?: Array<Seedream5Lite.ReferenceImage>;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export namespace Seedream5Lite {
|
|
576
|
+
export interface ReferenceImage {
|
|
577
|
+
/**
|
|
578
|
+
* A HTTPS URL.
|
|
579
|
+
*/
|
|
580
|
+
uri: string;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
462
584
|
export interface Gemini2_5Flash {
|
|
463
585
|
model: 'gemini_2.5_flash';
|
|
464
586
|
|
|
@@ -109,6 +109,11 @@ export declare namespace TextToVideoCreateParams {
|
|
|
109
109
|
* The number of seconds of duration for the output video.
|
|
110
110
|
*/
|
|
111
111
|
duration?: 4 | 6 | 8;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Text describing what should not appear in the output video.
|
|
115
|
+
*/
|
|
116
|
+
negativePrompt?: string;
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
export interface Veo3_1Fast {
|
|
@@ -134,6 +139,11 @@ export declare namespace TextToVideoCreateParams {
|
|
|
134
139
|
* The number of seconds of duration for the output video.
|
|
135
140
|
*/
|
|
136
141
|
duration?: 4 | 6 | 8;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Text describing what should not appear in the output video.
|
|
145
|
+
*/
|
|
146
|
+
negativePrompt?: string;
|
|
137
147
|
}
|
|
138
148
|
|
|
139
149
|
export interface Happyhorse1_0 {
|
|
@@ -491,6 +501,11 @@ export declare namespace TextToVideoCreateParams {
|
|
|
491
501
|
* The resolution of the output video.
|
|
492
502
|
*/
|
|
493
503
|
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Text describing what should not appear in the output video.
|
|
507
|
+
*/
|
|
508
|
+
negativePrompt?: string;
|
|
494
509
|
}
|
|
495
510
|
}
|
|
496
511
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.11.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.11.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.11.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.11.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|