@runwayml/sdk 4.20.0 → 4.20.1
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 +15 -0
- package/package.json +1 -1
- package/resources/organization/organization.d.mts +6 -4
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +6 -4
- 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 +16 -3
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +16 -3
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +142 -47
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +142 -47
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/video-to-hdr.d.mts +19 -10
- package/resources/video-to-hdr.d.mts.map +1 -1
- package/resources/video-to-hdr.d.ts +19 -10
- package/resources/video-to-hdr.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +49 -33
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +49 -33
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/workflow-invocations.d.mts +29 -4
- package/resources/workflow-invocations.d.mts.map +1 -1
- package/resources/workflow-invocations.d.ts +29 -4
- package/resources/workflow-invocations.d.ts.map +1 -1
- package/resources/workflow-invocations.js +3 -1
- package/resources/workflow-invocations.js.map +1 -1
- package/resources/workflow-invocations.mjs +3 -1
- package/resources/workflow-invocations.mjs.map +1 -1
- package/src/resources/organization/organization.ts +10 -2
- package/src/resources/organization/webapp/audit-logs.ts +30 -3
- package/src/resources/text-to-image.ts +262 -85
- package/src/resources/video-to-hdr.ts +19 -10
- package/src/resources/video-upscale.ts +55 -33
- package/src/resources/workflow-invocations.ts +32 -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
|
@@ -51,12 +51,14 @@ export type TextToImageCreateParams =
|
|
|
51
51
|
| TextToImageCreateParams.Gen4ImageTurbo
|
|
52
52
|
| TextToImageCreateParams.Gen4Image
|
|
53
53
|
| TextToImageCreateParams.GptImage2
|
|
54
|
-
| TextToImageCreateParams.GeminiImage3Pro
|
|
55
54
|
| TextToImageCreateParams.GeminiImage3_1Flash
|
|
56
55
|
| TextToImageCreateParams.MuseImage
|
|
57
56
|
| TextToImageCreateParams.Seedream5Pro
|
|
58
57
|
| TextToImageCreateParams.Seedream5Lite
|
|
59
58
|
| TextToImageCreateParams.GrokImagineImage2
|
|
59
|
+
| TextToImageCreateParams.GeminiImage3Pro
|
|
60
|
+
| TextToImageCreateParams.GptImage2_5Flare
|
|
61
|
+
| TextToImageCreateParams.GptImage2_5Sunburst
|
|
60
62
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
61
63
|
|
|
62
64
|
export declare namespace TextToImageCreateParams {
|
|
@@ -303,90 +305,6 @@ export declare namespace TextToImageCreateParams {
|
|
|
303
305
|
}
|
|
304
306
|
}
|
|
305
307
|
|
|
306
|
-
export interface GeminiImage3Pro {
|
|
307
|
-
model: 'gemini_image3_pro';
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* This should describe in detail what should appear in the output.
|
|
311
|
-
*/
|
|
312
|
-
promptText: string;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* The resolution of the output image.
|
|
316
|
-
*/
|
|
317
|
-
ratio:
|
|
318
|
-
| '1344:768'
|
|
319
|
-
| '768:1344'
|
|
320
|
-
| '1024:1024'
|
|
321
|
-
| '1184:864'
|
|
322
|
-
| '864:1184'
|
|
323
|
-
| '1536:672'
|
|
324
|
-
| '832:1248'
|
|
325
|
-
| '1248:832'
|
|
326
|
-
| '896:1152'
|
|
327
|
-
| '1152:896'
|
|
328
|
-
| '2048:2048'
|
|
329
|
-
| '1696:2528'
|
|
330
|
-
| '2528:1696'
|
|
331
|
-
| '1792:2400'
|
|
332
|
-
| '2400:1792'
|
|
333
|
-
| '1856:2304'
|
|
334
|
-
| '2304:1856'
|
|
335
|
-
| '1536:2752'
|
|
336
|
-
| '2752:1536'
|
|
337
|
-
| '3168:1344'
|
|
338
|
-
| '4096:4096'
|
|
339
|
-
| '3392:5056'
|
|
340
|
-
| '5056:3392'
|
|
341
|
-
| '3584:4800'
|
|
342
|
-
| '4800:3584'
|
|
343
|
-
| '3712:4608'
|
|
344
|
-
| '4608:3712'
|
|
345
|
-
| '3072:5504'
|
|
346
|
-
| '5504:3072'
|
|
347
|
-
| '6336:2688';
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* The number of images to generate. Increasing this number will affect the number
|
|
351
|
-
* of credits consumed by the generation. Up to four images can be generated at
|
|
352
|
-
* once.
|
|
353
|
-
*/
|
|
354
|
-
outputCount?: 1 | 4;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* An array of up to 14 images to be used as references for the generated image
|
|
358
|
-
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
359
|
-
* character consistency, and up to nine of those images can pass
|
|
360
|
-
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
361
|
-
* output.
|
|
362
|
-
*/
|
|
363
|
-
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export namespace GeminiImage3Pro {
|
|
367
|
-
export interface ReferenceImage {
|
|
368
|
-
/**
|
|
369
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
370
|
-
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
371
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
372
|
-
*/
|
|
373
|
-
uri: string;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Whether this is a reference of a human subject (for character consistency) or an
|
|
377
|
-
* object that appears in the output.
|
|
378
|
-
*/
|
|
379
|
-
subject?: 'object' | 'human';
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* A tag to identify the reference image. This is used to reference the image in
|
|
383
|
-
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
384
|
-
* digits, and underscores (no hyphens or other punctuation).
|
|
385
|
-
*/
|
|
386
|
-
tag?: string;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
308
|
export interface GeminiImage3_1Flash {
|
|
391
309
|
model: 'gemini_image3.1_flash';
|
|
392
310
|
|
|
@@ -763,6 +681,265 @@ export declare namespace TextToImageCreateParams {
|
|
|
763
681
|
}
|
|
764
682
|
}
|
|
765
683
|
|
|
684
|
+
export interface GeminiImage3Pro {
|
|
685
|
+
model: 'gemini_image3_pro';
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* This should describe in detail what should appear in the output.
|
|
689
|
+
*/
|
|
690
|
+
promptText: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* The resolution of the output image.
|
|
694
|
+
*/
|
|
695
|
+
ratio:
|
|
696
|
+
| '1344:768'
|
|
697
|
+
| '768:1344'
|
|
698
|
+
| '1024:1024'
|
|
699
|
+
| '1184:864'
|
|
700
|
+
| '864:1184'
|
|
701
|
+
| '1536:672'
|
|
702
|
+
| '832:1248'
|
|
703
|
+
| '1248:832'
|
|
704
|
+
| '896:1152'
|
|
705
|
+
| '1152:896'
|
|
706
|
+
| '2048:2048'
|
|
707
|
+
| '1696:2528'
|
|
708
|
+
| '2528:1696'
|
|
709
|
+
| '1792:2400'
|
|
710
|
+
| '2400:1792'
|
|
711
|
+
| '1856:2304'
|
|
712
|
+
| '2304:1856'
|
|
713
|
+
| '1536:2752'
|
|
714
|
+
| '2752:1536'
|
|
715
|
+
| '3168:1344'
|
|
716
|
+
| '4096:4096'
|
|
717
|
+
| '3392:5056'
|
|
718
|
+
| '5056:3392'
|
|
719
|
+
| '3584:4800'
|
|
720
|
+
| '4800:3584'
|
|
721
|
+
| '3712:4608'
|
|
722
|
+
| '4608:3712'
|
|
723
|
+
| '3072:5504'
|
|
724
|
+
| '5504:3072'
|
|
725
|
+
| '6336:2688';
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
729
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
730
|
+
* once.
|
|
731
|
+
*/
|
|
732
|
+
outputCount?: 1 | 4;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
736
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
737
|
+
* character consistency, and up to nine of those images can pass
|
|
738
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
739
|
+
* output.
|
|
740
|
+
*/
|
|
741
|
+
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export namespace GeminiImage3Pro {
|
|
745
|
+
export interface ReferenceImage {
|
|
746
|
+
/**
|
|
747
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
748
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
749
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
750
|
+
*/
|
|
751
|
+
uri: string;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
755
|
+
* object that appears in the output.
|
|
756
|
+
*/
|
|
757
|
+
subject?: 'object' | 'human';
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
761
|
+
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
762
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
763
|
+
*/
|
|
764
|
+
tag?: string;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
export interface GptImage2_5Flare {
|
|
769
|
+
model: 'gpt_image_2_5_flare';
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* A non-empty string describing the desired image.
|
|
773
|
+
*/
|
|
774
|
+
promptText: string;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
778
|
+
* to let the model choose.
|
|
779
|
+
*/
|
|
780
|
+
ratio:
|
|
781
|
+
| '2048:880'
|
|
782
|
+
| '1920:1088'
|
|
783
|
+
| '1920:1280'
|
|
784
|
+
| '1920:1440'
|
|
785
|
+
| '1920:1536'
|
|
786
|
+
| '1920:1920'
|
|
787
|
+
| '1536:1920'
|
|
788
|
+
| '1440:1920'
|
|
789
|
+
| '1280:1920'
|
|
790
|
+
| '1088:1920'
|
|
791
|
+
| '2912:1248'
|
|
792
|
+
| '2560:1440'
|
|
793
|
+
| '2560:1712'
|
|
794
|
+
| '2560:1920'
|
|
795
|
+
| '2560:2048'
|
|
796
|
+
| '2560:2560'
|
|
797
|
+
| '2048:2560'
|
|
798
|
+
| '1920:2560'
|
|
799
|
+
| '1712:2560'
|
|
800
|
+
| '1440:2560'
|
|
801
|
+
| '3840:1648'
|
|
802
|
+
| '3840:2160'
|
|
803
|
+
| '3504:2336'
|
|
804
|
+
| '3264:2448'
|
|
805
|
+
| '3200:2560'
|
|
806
|
+
| '2880:2880'
|
|
807
|
+
| '2560:3200'
|
|
808
|
+
| '2448:3264'
|
|
809
|
+
| '2336:3504'
|
|
810
|
+
| '2160:3840'
|
|
811
|
+
| 'auto';
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Background treatment. Defaults to `auto`, which lets the model pick.
|
|
815
|
+
*/
|
|
816
|
+
background?: 'opaque' | 'auto';
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
820
|
+
* number of credits consumed by the generation.
|
|
821
|
+
*/
|
|
822
|
+
outputCount?: number;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
826
|
+
*/
|
|
827
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
831
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
832
|
+
* per generated image.
|
|
833
|
+
*/
|
|
834
|
+
referenceImages?: Array<GptImage2_5Flare.ReferenceImage>;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export namespace GptImage2_5Flare {
|
|
838
|
+
export interface ReferenceImage {
|
|
839
|
+
/**
|
|
840
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
841
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
842
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
843
|
+
*/
|
|
844
|
+
uri: string;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
848
|
+
* in prompt text. Must be 3-16 characters, start with a letter, and use only
|
|
849
|
+
* letters, digits, and underscores (no hyphens or other punctuation).
|
|
850
|
+
*/
|
|
851
|
+
tag?: string;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
export interface GptImage2_5Sunburst {
|
|
856
|
+
model: 'gpt_image_2_5_sunburst';
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* A non-empty string describing the desired image.
|
|
860
|
+
*/
|
|
861
|
+
promptText: string;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
865
|
+
* to let the model choose.
|
|
866
|
+
*/
|
|
867
|
+
ratio:
|
|
868
|
+
| '2048:880'
|
|
869
|
+
| '1920:1088'
|
|
870
|
+
| '1920:1280'
|
|
871
|
+
| '1920:1440'
|
|
872
|
+
| '1920:1536'
|
|
873
|
+
| '1920:1920'
|
|
874
|
+
| '1536:1920'
|
|
875
|
+
| '1440:1920'
|
|
876
|
+
| '1280:1920'
|
|
877
|
+
| '1088:1920'
|
|
878
|
+
| '2912:1248'
|
|
879
|
+
| '2560:1440'
|
|
880
|
+
| '2560:1712'
|
|
881
|
+
| '2560:1920'
|
|
882
|
+
| '2560:2048'
|
|
883
|
+
| '2560:2560'
|
|
884
|
+
| '2048:2560'
|
|
885
|
+
| '1920:2560'
|
|
886
|
+
| '1712:2560'
|
|
887
|
+
| '1440:2560'
|
|
888
|
+
| '3840:1648'
|
|
889
|
+
| '3840:2160'
|
|
890
|
+
| '3504:2336'
|
|
891
|
+
| '3264:2448'
|
|
892
|
+
| '3200:2560'
|
|
893
|
+
| '2880:2880'
|
|
894
|
+
| '2560:3200'
|
|
895
|
+
| '2448:3264'
|
|
896
|
+
| '2336:3504'
|
|
897
|
+
| '2160:3840'
|
|
898
|
+
| 'auto';
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Background treatment. Defaults to `auto`, which lets the model pick. Use
|
|
902
|
+
* `transparent` to generate a PNG with an alpha-channel background.
|
|
903
|
+
*/
|
|
904
|
+
background?: 'transparent' | 'opaque' | 'auto';
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
908
|
+
* number of credits consumed by the generation.
|
|
909
|
+
*/
|
|
910
|
+
outputCount?: number;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
914
|
+
*/
|
|
915
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
919
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
920
|
+
* per generated image.
|
|
921
|
+
*/
|
|
922
|
+
referenceImages?: Array<GptImage2_5Sunburst.ReferenceImage>;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export namespace GptImage2_5Sunburst {
|
|
926
|
+
export interface ReferenceImage {
|
|
927
|
+
/**
|
|
928
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
929
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
930
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
931
|
+
*/
|
|
932
|
+
uri: string;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
936
|
+
* in prompt text. Must be 3-16 characters, start with a letter, and use only
|
|
937
|
+
* letters, digits, and underscores (no hyphens or other punctuation).
|
|
938
|
+
*/
|
|
939
|
+
tag?: string;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
766
943
|
export interface Gemini2_5Flash {
|
|
767
944
|
model: 'gemini_2.5_flash';
|
|
768
945
|
|
|
@@ -83,15 +83,22 @@ export interface VideoToHdrCreateParams {
|
|
|
83
83
|
* is selectable with `proresProfile`; `hdr_exr_sequence` returns a .zip of
|
|
84
84
|
* half-float OpenEXR frames holding the HDR signal as linear BT.2020 display
|
|
85
85
|
* light, 1.0 = 100 nits, ready to composite; `hdr_exr_acescg_sequence_1_3` returns
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
86
|
+
* a scene-referred ACEScg sequence with VFX frame naming (frame.0001.exr): the
|
|
87
|
+
* source plate brought into ACES through the inverse ACES 1.3 SDR (Rec.709) Output
|
|
88
|
+
* Transform, with the highlight detail Ruby recovers added on top — read it with
|
|
89
|
+
* the stock `ACES - ACEScg` input transform; the ACES SDR view reproduces your
|
|
90
|
+
* source, and the ACES HDR views render the same scene with the recovered
|
|
91
|
+
* highlights (this is a scene, not the `hdr10` display grade, so an ACES HDR view
|
|
92
|
+
* is not expected to match `hdr10`). An EXR zip is the whole delivery — the
|
|
93
|
+
* frames, a colorimetry.json sidecar, a provenance.json sidecar declaring the
|
|
94
|
+
* upconvert, and the source audio as audio.wav when the source has any. A source
|
|
95
|
+
* with an alpha channel (ProRes 4444, WebM with alpha, RGBA codecs) keeps it where
|
|
96
|
+
* the container can carry one: the EXR profiles write it as the A channel and
|
|
97
|
+
* `hdr_prores` delivers a 4444 with an alpha plane; the alpha is passed through as
|
|
98
|
+
* received (not premultiplied). `hdr10` and `hlg` cannot carry alpha and deliver
|
|
99
|
+
* the picture without it. All five profiles bill at the same rate: 20 credits per
|
|
100
|
+
* second of output, rising to 40 credits per second when the source is larger than
|
|
101
|
+
* 4 megapixels — that includes anything larger than 1440p, up through 4K.
|
|
95
102
|
*/
|
|
96
103
|
outputFormat?:
|
|
97
104
|
| 'hdr10'
|
|
@@ -103,7 +110,9 @@ export interface VideoToHdrCreateParams {
|
|
|
103
110
|
|
|
104
111
|
/**
|
|
105
112
|
* The ProRes tier of the `hdr_prores` mezzanine. Only valid when `outputFormat` is
|
|
106
|
-
* `hdr_prores`. Defaults to `422 HQ`.
|
|
113
|
+
* `hdr_prores`. Defaults to `422 HQ`. A source with an alpha channel is always
|
|
114
|
+
* delivered as `4444`, the only tier with an alpha plane, whatever tier is
|
|
115
|
+
* requested.
|
|
107
116
|
*/
|
|
108
117
|
proresProfile?: '422' | '4444' | '422 HQ';
|
|
109
118
|
}
|
|
@@ -53,46 +53,68 @@ export namespace VideoUpscaleCreateResponse {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export
|
|
57
|
-
|
|
56
|
+
export type VideoUpscaleCreateParams =
|
|
57
|
+
| VideoUpscaleCreateParams.MagnificVideoUpscalerCreative
|
|
58
|
+
| VideoUpscaleCreateParams.EnhanceFrameRate;
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
63
|
-
*/
|
|
64
|
-
videoUri: string;
|
|
60
|
+
export declare namespace VideoUpscaleCreateParams {
|
|
61
|
+
export interface MagnificVideoUpscalerCreative {
|
|
62
|
+
model: 'magnific_video_upscaler_creative';
|
|
65
63
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
/**
|
|
65
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
66
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
67
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
68
|
+
*/
|
|
69
|
+
videoUri: string;
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
flavor?: 'vivid' | 'natural';
|
|
71
|
+
/**
|
|
72
|
+
* How much AI-generated detail to add during upscaling, from 0 (faithful) to 100.
|
|
73
|
+
*/
|
|
74
|
+
creativity?: number;
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Processing style: `vivid` for enhanced color and detail, `natural` for faithful
|
|
78
|
+
* reproduction.
|
|
79
|
+
*/
|
|
80
|
+
flavor?: 'vivid' | 'natural';
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Whether to increase the output frame rate.
|
|
84
|
+
*/
|
|
85
|
+
fpsBoost?: boolean;
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Target output resolution from 720p to 4k. Defaults to `2k`.
|
|
89
|
+
*/
|
|
90
|
+
resolution?: '720p' | '1k' | '2k' | '4k';
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Sharpness intensity from 0 (none) to 100.
|
|
94
|
+
*/
|
|
95
|
+
sharpen?: number;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Grain and texture enhancement from 0 to 100.
|
|
99
|
+
*/
|
|
100
|
+
smartGrain?: number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface EnhanceFrameRate {
|
|
104
|
+
model: 'enhance_frame_rate';
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The output frame rate.
|
|
108
|
+
*/
|
|
109
|
+
targetFramerate: '24' | '25' | '30' | '48' | '50' | '60' | '120' | '23_98' | '29_97' | '59_94';
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
113
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
114
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
115
|
+
*/
|
|
116
|
+
videoUri: string;
|
|
117
|
+
}
|
|
96
118
|
}
|
|
97
119
|
|
|
98
120
|
export declare namespace VideoUpscale {
|
|
@@ -9,7 +9,9 @@ export class WorkflowInvocations extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Return details about a workflow invocation. Consumers of this API should not
|
|
11
11
|
* expect updates more frequent than once every five seconds for a given workflow
|
|
12
|
-
* invocation.
|
|
12
|
+
* invocation. A `SUCCEEDED` invocation may still have had individual nodes fail,
|
|
13
|
+
* so check `nodeErrors` to detect a partial run rather than relying on `status`
|
|
14
|
+
* alone.
|
|
13
15
|
*/
|
|
14
16
|
retrieve(
|
|
15
17
|
id: string,
|
|
@@ -127,6 +129,14 @@ export namespace WorkflowInvocationRetrieveResponse {
|
|
|
127
129
|
*/
|
|
128
130
|
message: string;
|
|
129
131
|
|
|
132
|
+
/**
|
|
133
|
+
* A machine-readable error code for the node failure. See
|
|
134
|
+
* https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
|
|
135
|
+
* for nodes that failed before generation began, such as an input validation
|
|
136
|
+
* error.
|
|
137
|
+
*/
|
|
138
|
+
failureCode?: string;
|
|
139
|
+
|
|
130
140
|
/**
|
|
131
141
|
* The human-readable name of the node that errored.
|
|
132
142
|
*/
|
|
@@ -176,6 +186,14 @@ export namespace WorkflowInvocationRetrieveResponse {
|
|
|
176
186
|
*/
|
|
177
187
|
message: string;
|
|
178
188
|
|
|
189
|
+
/**
|
|
190
|
+
* A machine-readable error code for the node failure. See
|
|
191
|
+
* https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
|
|
192
|
+
* for nodes that failed before generation began, such as an input validation
|
|
193
|
+
* error.
|
|
194
|
+
*/
|
|
195
|
+
failureCode?: string;
|
|
196
|
+
|
|
179
197
|
/**
|
|
180
198
|
* The human-readable name of the node that errored.
|
|
181
199
|
*/
|
|
@@ -209,9 +227,11 @@ export namespace WorkflowInvocationRetrieveResponse {
|
|
|
209
227
|
status: 'SUCCEEDED';
|
|
210
228
|
|
|
211
229
|
/**
|
|
212
|
-
* A record mapping workflow node IDs to their error details.
|
|
213
|
-
*
|
|
214
|
-
*
|
|
230
|
+
* A record mapping workflow node IDs to their error details. A workflow invocation
|
|
231
|
+
* succeeds as long as every node reached a terminal state, so individual nodes may
|
|
232
|
+
* still have failed — for example a moderated prompt or an upstream provider
|
|
233
|
+
* outage — leaving their output missing from `output`. Check this field to detect
|
|
234
|
+
* a partial run. Only present when one or more nodes have errored.
|
|
215
235
|
*/
|
|
216
236
|
nodeErrors?: { [key: string]: Succeeded.NodeErrors };
|
|
217
237
|
}
|
|
@@ -223,6 +243,14 @@ export namespace WorkflowInvocationRetrieveResponse {
|
|
|
223
243
|
*/
|
|
224
244
|
message: string;
|
|
225
245
|
|
|
246
|
+
/**
|
|
247
|
+
* A machine-readable error code for the node failure. See
|
|
248
|
+
* https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
|
|
249
|
+
* for nodes that failed before generation began, such as an input validation
|
|
250
|
+
* error.
|
|
251
|
+
*/
|
|
252
|
+
failureCode?: string;
|
|
253
|
+
|
|
226
254
|
/**
|
|
227
255
|
* The human-readable name of the node that errored.
|
|
228
256
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.20.
|
|
1
|
+
export const VERSION = '4.20.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.20.
|
|
1
|
+
export declare const VERSION = "4.20.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.20.
|
|
1
|
+
export declare const VERSION = "4.20.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.20.
|
|
1
|
+
export const VERSION = '4.20.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|