@runwayml/sdk 4.13.2 → 4.15.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 +21 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/character-performance.d.mts +17 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +17 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/generate/audio.d.mts +46 -24
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +46 -24
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/audio.js.map +1 -1
- package/resources/generate/audio.mjs.map +1 -1
- package/resources/generate/generate.d.mts +2 -2
- package/resources/generate/generate.d.mts.map +1 -1
- package/resources/generate/generate.d.ts +2 -2
- package/resources/generate/generate.d.ts.map +1 -1
- package/resources/generate/generate.js.map +1 -1
- package/resources/generate/generate.mjs.map +1 -1
- package/resources/generate/image.d.mts +21 -0
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +21 -0
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/generate/index.d.mts +1 -1
- package/resources/generate/index.d.mts.map +1 -1
- package/resources/generate/index.d.ts +1 -1
- package/resources/generate/index.d.ts.map +1 -1
- package/resources/generate/index.js.map +1 -1
- package/resources/generate/index.mjs +1 -1
- package/resources/generate/index.mjs.map +1 -1
- package/resources/generate/video.d.mts +21 -0
- package/resources/generate/video.d.mts.map +1 -1
- package/resources/generate/video.d.ts +21 -0
- package/resources/generate/video.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +146 -19
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +146 -19
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-upscale.d.mts +17 -0
- package/resources/image-upscale.d.mts.map +1 -1
- package/resources/image-upscale.d.ts +17 -0
- package/resources/image-upscale.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -0
- package/resources/organization/index.d.mts.map +1 -0
- package/resources/organization/index.d.ts +3 -0
- package/resources/organization/index.d.ts.map +1 -0
- package/resources/organization/index.js +9 -0
- package/resources/organization/index.js.map +1 -0
- package/resources/organization/index.mjs +4 -0
- package/resources/organization/index.mjs.map +1 -0
- package/resources/organization/organization.d.mts +154 -0
- package/resources/organization/organization.d.mts.map +1 -0
- package/resources/organization/organization.d.ts +154 -0
- package/resources/organization/organization.d.ts.map +1 -0
- package/resources/organization/organization.js +32 -0
- package/resources/organization/organization.js.map +1 -0
- package/resources/organization/organization.mjs +27 -0
- package/resources/organization/organization.mjs.map +1 -0
- package/resources/organization/webapp/audit-logs.d.mts +216 -0
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -0
- package/resources/organization/webapp/audit-logs.d.ts +216 -0
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -0
- package/resources/organization/webapp/audit-logs.js +30 -0
- package/resources/organization/webapp/audit-logs.js.map +1 -0
- package/resources/organization/webapp/audit-logs.mjs +26 -0
- package/resources/organization/webapp/audit-logs.mjs.map +1 -0
- package/resources/organization/webapp/index.d.mts +3 -0
- package/resources/organization/webapp/index.d.mts.map +1 -0
- package/resources/organization/webapp/index.d.ts +3 -0
- package/resources/organization/webapp/index.d.ts.map +1 -0
- package/resources/organization/webapp/index.js +9 -0
- package/resources/organization/webapp/index.js.map +1 -0
- package/resources/organization/webapp/index.mjs +4 -0
- package/resources/organization/webapp/index.mjs.map +1 -0
- package/resources/organization/webapp/webapp.d.mts +73 -0
- package/resources/organization/webapp/webapp.d.mts.map +1 -0
- package/resources/organization/webapp/webapp.d.ts +73 -0
- package/resources/organization/webapp/webapp.d.ts.map +1 -0
- package/resources/organization/webapp/webapp.js +30 -0
- package/resources/organization/webapp/webapp.js.map +1 -0
- package/resources/organization/webapp/webapp.mjs +25 -0
- package/resources/organization/webapp/webapp.mjs.map +1 -0
- package/resources/organization/webapp.d.mts +2 -0
- package/resources/organization/webapp.d.mts.map +1 -0
- package/resources/organization/webapp.d.ts +2 -0
- package/resources/organization/webapp.d.ts.map +1 -0
- package/resources/organization/webapp.js +6 -0
- package/resources/organization/webapp.js.map +1 -0
- package/resources/organization/webapp.mjs +3 -0
- package/resources/organization/webapp.mjs.map +1 -0
- package/resources/organization.d.mts +1 -149
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +1 -149
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.js +2 -20
- package/resources/organization.js.map +1 -1
- package/resources/organization.mjs +1 -18
- package/resources/organization.mjs.map +1 -1
- package/resources/recipes.d.mts +119 -0
- package/resources/recipes.d.mts.map +1 -1
- package/resources/recipes.d.ts +119 -0
- package/resources/recipes.d.ts.map +1 -1
- package/resources/routers.d.mts +194 -1
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +194 -1
- package/resources/routers.d.ts.map +1 -1
- package/resources/routers.js +10 -0
- package/resources/routers.js.map +1 -1
- package/resources/routers.mjs +10 -0
- package/resources/routers.mjs.map +1 -1
- package/resources/sound-effect.d.mts +17 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +17 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +17 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +17 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/tasks.d.mts +90 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +90 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +68 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +68 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +77 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +77 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +221 -16
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +221 -16
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +199 -7
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +199 -7
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +17 -0
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +17 -0
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +17 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +17 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +17 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +17 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/src/client.ts +12 -6
- package/src/resources/character-performance.ts +19 -0
- package/src/resources/generate/audio.ts +57 -27
- package/src/resources/generate/generate.ts +3 -1
- package/src/resources/generate/image.ts +24 -0
- package/src/resources/generate/index.ts +7 -1
- package/src/resources/generate/video.ts +24 -0
- package/src/resources/image-to-video.ts +189 -19
- package/src/resources/image-upscale.ts +19 -0
- package/src/resources/index.ts +4 -1
- package/src/resources/organization/index.ts +14 -0
- package/src/resources/organization/organization.ts +307 -0
- package/src/resources/organization/webapp/audit-logs.ts +440 -0
- package/src/resources/organization/webapp/index.ts +16 -0
- package/src/resources/organization/webapp/webapp.ts +118 -0
- package/src/resources/organization/webapp.ts +3 -0
- package/src/resources/organization.ts +1 -283
- package/src/resources/recipes.ts +133 -0
- package/src/resources/routers.ts +247 -0
- package/src/resources/sound-effect.ts +19 -0
- package/src/resources/speech-to-speech.ts +19 -0
- package/src/resources/tasks.ts +102 -0
- package/src/resources/text-to-image.ts +107 -0
- package/src/resources/text-to-speech.ts +142 -1
- package/src/resources/text-to-video.ts +276 -16
- package/src/resources/video-to-video.ts +252 -7
- package/src/resources/video-upscale.ts +19 -0
- package/src/resources/voice-dubbing.ts +19 -0
- package/src/resources/voice-isolation.ts +19 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.mts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"text-to-video.d.mts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE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E1B;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;QAEhE;;;WAGG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;QAEtD;;;;WAIG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QAE7C;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;KACxC;IAED,UAAiB,cAAc,CAAC;QAC9B;;WAEG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED,UAAiB,SAAS;YACxB;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -15,8 +15,25 @@ export interface TextToVideoCreateResponse {
|
|
|
15
15
|
* The ID of the task that was created. Use this to retrieve the task later.
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
20
|
+
* the task completes.
|
|
21
|
+
*/
|
|
22
|
+
estimatedCost: TextToVideoCreateResponse.EstimatedCost;
|
|
18
23
|
}
|
|
19
|
-
export
|
|
24
|
+
export declare namespace TextToVideoCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
27
|
+
* the task completes.
|
|
28
|
+
*/
|
|
29
|
+
interface EstimatedCost {
|
|
30
|
+
/**
|
|
31
|
+
* Estimated cost of the generation in credits.
|
|
32
|
+
*/
|
|
33
|
+
credits: number;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Hailuo3 | TextToVideoCreateParams.Happyhorse1_0 | TextToVideoCreateParams.Seedance2 | TextToVideoCreateParams.Seedance2Fast | TextToVideoCreateParams.Seedance2Mini | TextToVideoCreateParams.GeminiOmniFlash | TextToVideoCreateParams.Seedance2_5 | TextToVideoCreateParams.GrokImagine1_5;
|
|
20
37
|
export declare namespace TextToVideoCreateParams {
|
|
21
38
|
interface Gen4_5 {
|
|
22
39
|
/**
|
|
@@ -38,6 +55,18 @@ export declare namespace TextToVideoCreateParams {
|
|
|
38
55
|
* Settings that affect the behavior of the content moderation system.
|
|
39
56
|
*/
|
|
40
57
|
contentModeration?: Gen4_5.ContentModeration;
|
|
58
|
+
/**
|
|
59
|
+
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
60
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
61
|
+
* (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur
|
|
62
|
+
* an additional surcharge of 5 credits per second of output.
|
|
63
|
+
*/
|
|
64
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
65
|
+
/**
|
|
66
|
+
* The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
|
|
67
|
+
* to `4444`.
|
|
68
|
+
*/
|
|
69
|
+
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
41
70
|
/**
|
|
42
71
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
43
72
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -105,6 +134,78 @@ export declare namespace TextToVideoCreateParams {
|
|
|
105
134
|
*/
|
|
106
135
|
negativePrompt?: string;
|
|
107
136
|
}
|
|
137
|
+
interface Hailuo3 {
|
|
138
|
+
model: 'hailuo3';
|
|
139
|
+
/**
|
|
140
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
141
|
+
*/
|
|
142
|
+
promptText: string;
|
|
143
|
+
/**
|
|
144
|
+
* The number of seconds of duration for the output video.
|
|
145
|
+
*/
|
|
146
|
+
duration?: number;
|
|
147
|
+
/**
|
|
148
|
+
* The aspect ratio of the output video. Use adaptive only when image or video
|
|
149
|
+
* references are provided; text-only requests require a concrete ratio.
|
|
150
|
+
*/
|
|
151
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
152
|
+
/**
|
|
153
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
154
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
155
|
+
*/
|
|
156
|
+
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
157
|
+
/**
|
|
158
|
+
* An optional array of image references (up to 9). See
|
|
159
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
160
|
+
*/
|
|
161
|
+
references?: Array<Hailuo3.Reference>;
|
|
162
|
+
/**
|
|
163
|
+
* An optional array of video references. The combined duration across all video
|
|
164
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
165
|
+
* video inputs for more information.
|
|
166
|
+
*/
|
|
167
|
+
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
168
|
+
/**
|
|
169
|
+
* The output resolution. Hailuo 3.0 supports 768P and 2K.
|
|
170
|
+
*/
|
|
171
|
+
resolution?: '2K' | '768P';
|
|
172
|
+
}
|
|
173
|
+
namespace Hailuo3 {
|
|
174
|
+
/**
|
|
175
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
176
|
+
* the output.
|
|
177
|
+
*/
|
|
178
|
+
interface ReferenceAudio {
|
|
179
|
+
type: 'audio';
|
|
180
|
+
/**
|
|
181
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
182
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
183
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
184
|
+
*/
|
|
185
|
+
uri: string;
|
|
186
|
+
}
|
|
187
|
+
interface Reference {
|
|
188
|
+
/**
|
|
189
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
190
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
191
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
192
|
+
*/
|
|
193
|
+
uri: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* A video reference allows the model to use the video as additional context for
|
|
197
|
+
* the output.
|
|
198
|
+
*/
|
|
199
|
+
interface ReferenceVideo {
|
|
200
|
+
type: 'video';
|
|
201
|
+
/**
|
|
202
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
203
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
204
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
205
|
+
*/
|
|
206
|
+
uri: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
108
209
|
interface Happyhorse1_0 {
|
|
109
210
|
model: 'happyhorse_1_0';
|
|
110
211
|
/**
|
|
@@ -141,8 +242,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
141
242
|
*/
|
|
142
243
|
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920' | '3840:1646' | '3840:2160' | '3840:2880' | '3840:3840' | '2880:3840' | '2160:3840';
|
|
143
244
|
/**
|
|
144
|
-
* An optional array of audio references.
|
|
145
|
-
*
|
|
245
|
+
* An optional array of audio references. The total combined duration must not
|
|
246
|
+
* exceed 15 seconds.
|
|
146
247
|
*/
|
|
147
248
|
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
148
249
|
/**
|
|
@@ -214,8 +315,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
214
315
|
*/
|
|
215
316
|
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
216
317
|
/**
|
|
217
|
-
* An optional array of audio references.
|
|
218
|
-
*
|
|
318
|
+
* An optional array of audio references. The total combined duration must not
|
|
319
|
+
* exceed 15 seconds.
|
|
219
320
|
*/
|
|
220
321
|
referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
|
|
221
322
|
/**
|
|
@@ -287,8 +388,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
287
388
|
*/
|
|
288
389
|
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
289
390
|
/**
|
|
290
|
-
* An optional array of audio references.
|
|
291
|
-
*
|
|
391
|
+
* An optional array of audio references. The total combined duration must not
|
|
392
|
+
* exceed 15 seconds.
|
|
292
393
|
*/
|
|
293
394
|
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
294
395
|
/**
|
|
@@ -355,25 +456,129 @@ export declare namespace TextToVideoCreateParams {
|
|
|
355
456
|
*/
|
|
356
457
|
ratio?: '1280:720' | '720:1280';
|
|
357
458
|
}
|
|
358
|
-
interface
|
|
459
|
+
interface Seedance2_5 {
|
|
460
|
+
model: 'seedance2_5';
|
|
461
|
+
/**
|
|
462
|
+
* Whether to generate audio for the video.
|
|
463
|
+
*/
|
|
464
|
+
audio?: boolean;
|
|
359
465
|
/**
|
|
360
466
|
* The number of seconds of duration for the output video.
|
|
361
467
|
*/
|
|
362
|
-
duration
|
|
363
|
-
model: 'veo3';
|
|
468
|
+
duration?: number;
|
|
364
469
|
/**
|
|
365
|
-
*
|
|
366
|
-
*
|
|
470
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
471
|
+
* the output.
|
|
472
|
+
*/
|
|
473
|
+
promptText?: string;
|
|
474
|
+
/**
|
|
475
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
476
|
+
*/
|
|
477
|
+
ratio?: '992:432' | '854:480' | '752:560' | '640:640' | '560:752' | '480:854' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
478
|
+
/**
|
|
479
|
+
* An optional array of audio references. The total combined duration must be less
|
|
480
|
+
* than 30 seconds.
|
|
481
|
+
*/
|
|
482
|
+
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
483
|
+
/**
|
|
484
|
+
* An optional array of image references (up to 30). See
|
|
485
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
486
|
+
*/
|
|
487
|
+
references?: Array<Seedance2_5.Reference>;
|
|
488
|
+
/**
|
|
489
|
+
* An optional array of video references. The combined duration across all video
|
|
490
|
+
* references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
|
|
491
|
+
* video inputs for more information.
|
|
492
|
+
*/
|
|
493
|
+
referenceVideos?: Array<Seedance2_5.ReferenceVideo>;
|
|
494
|
+
}
|
|
495
|
+
namespace Seedance2_5 {
|
|
496
|
+
/**
|
|
497
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
498
|
+
* the output.
|
|
499
|
+
*/
|
|
500
|
+
interface ReferenceAudio {
|
|
501
|
+
type: 'audio';
|
|
502
|
+
/**
|
|
503
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
504
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
505
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
506
|
+
*/
|
|
507
|
+
uri: string;
|
|
508
|
+
}
|
|
509
|
+
interface Reference {
|
|
510
|
+
/**
|
|
511
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
512
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
513
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
514
|
+
*/
|
|
515
|
+
uri: string;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* A video reference allows the model to use the video as additional context for
|
|
519
|
+
* the output.
|
|
520
|
+
*/
|
|
521
|
+
interface ReferenceVideo {
|
|
522
|
+
type: 'video';
|
|
523
|
+
/**
|
|
524
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
525
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
526
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
527
|
+
*/
|
|
528
|
+
uri: string;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
interface GrokImagine1_5 {
|
|
532
|
+
model: 'grok_imagine_1_5';
|
|
533
|
+
/**
|
|
534
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
367
535
|
*/
|
|
368
536
|
promptText: string;
|
|
369
537
|
/**
|
|
370
|
-
* The
|
|
538
|
+
* The number of seconds of duration for the output video.
|
|
371
539
|
*/
|
|
372
|
-
|
|
540
|
+
duration?: number;
|
|
373
541
|
/**
|
|
374
|
-
*
|
|
542
|
+
* The aspect ratio of the output video.
|
|
375
543
|
*/
|
|
376
|
-
|
|
544
|
+
ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4' | '3:2' | '2:3';
|
|
545
|
+
/**
|
|
546
|
+
* An optional array of audio references. Audio references require at least one
|
|
547
|
+
* image reference, and each clip must be between 3 and 15 seconds.
|
|
548
|
+
*/
|
|
549
|
+
referenceAudio?: Array<GrokImagine1_5.ReferenceAudio>;
|
|
550
|
+
/**
|
|
551
|
+
* An optional array of image references. Referenced images can be addressed in the
|
|
552
|
+
* prompt as [Image 1], [Image 2], and so on. See [our docs](/assets/inputs#images)
|
|
553
|
+
* on image inputs for more information.
|
|
554
|
+
*/
|
|
555
|
+
references?: Array<GrokImagine1_5.Reference>;
|
|
556
|
+
/**
|
|
557
|
+
* The output resolution. Requests with image references are capped at 720p.
|
|
558
|
+
*/
|
|
559
|
+
resolution?: '480p' | '720p' | '1080p';
|
|
560
|
+
}
|
|
561
|
+
namespace GrokImagine1_5 {
|
|
562
|
+
/**
|
|
563
|
+
* An audio reference allows the model to drive the output with the supplied audio.
|
|
564
|
+
*/
|
|
565
|
+
interface ReferenceAudio {
|
|
566
|
+
type: 'audio';
|
|
567
|
+
/**
|
|
568
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
569
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
570
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
571
|
+
*/
|
|
572
|
+
uri: string;
|
|
573
|
+
}
|
|
574
|
+
interface Reference {
|
|
575
|
+
/**
|
|
576
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
577
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
578
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
579
|
+
*/
|
|
580
|
+
uri: string;
|
|
581
|
+
}
|
|
377
582
|
}
|
|
378
583
|
}
|
|
379
584
|
export declare namespace TextToVideo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG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,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -23,8 +23,25 @@ export interface VideoToVideoCreateResponse {
|
|
|
23
23
|
* The ID of the task that was created. Use this to retrieve the task later.
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
28
|
+
* the task completes.
|
|
29
|
+
*/
|
|
30
|
+
estimatedCost: VideoToVideoCreateResponse.EstimatedCost;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace VideoToVideoCreateResponse {
|
|
33
|
+
/**
|
|
34
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
35
|
+
* the task completes.
|
|
36
|
+
*/
|
|
37
|
+
interface EstimatedCost {
|
|
38
|
+
/**
|
|
39
|
+
* Estimated cost of the generation in credits.
|
|
40
|
+
*/
|
|
41
|
+
credits: number;
|
|
42
|
+
}
|
|
26
43
|
}
|
|
27
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash;
|
|
44
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Hailuo3 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash | VideoToVideoCreateParams.Seedance2_5;
|
|
28
45
|
export declare namespace VideoToVideoCreateParams {
|
|
29
46
|
interface Variant0 {
|
|
30
47
|
model: 'aleph2';
|
|
@@ -43,10 +60,22 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
43
60
|
* keyframes.
|
|
44
61
|
*/
|
|
45
62
|
keyframes?: Array<Variant0.UnionMember0 | Variant0.UnionMember1>;
|
|
63
|
+
/**
|
|
64
|
+
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
65
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
66
|
+
* (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur
|
|
67
|
+
* an additional surcharge of 5 credits per second of output.
|
|
68
|
+
*/
|
|
69
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
46
70
|
/**
|
|
47
71
|
* A non-empty and optional string describing what should appear in the output.
|
|
48
72
|
*/
|
|
49
73
|
promptText?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
|
|
76
|
+
* to `4444`.
|
|
77
|
+
*/
|
|
78
|
+
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
50
79
|
/**
|
|
51
80
|
* @deprecated
|
|
52
81
|
*/
|
|
@@ -149,6 +178,84 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
149
178
|
}
|
|
150
179
|
}
|
|
151
180
|
}
|
|
181
|
+
interface Hailuo3 {
|
|
182
|
+
model: 'hailuo3';
|
|
183
|
+
/**
|
|
184
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
185
|
+
*/
|
|
186
|
+
promptText: string;
|
|
187
|
+
/**
|
|
188
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
189
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
190
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
191
|
+
*/
|
|
192
|
+
promptVideo: string;
|
|
193
|
+
/**
|
|
194
|
+
* The number of seconds of duration for the output video.
|
|
195
|
+
*/
|
|
196
|
+
duration?: number;
|
|
197
|
+
/**
|
|
198
|
+
* The aspect ratio of the output video. Use adaptive only when image or video
|
|
199
|
+
* references are provided; text-only requests require a concrete ratio.
|
|
200
|
+
*/
|
|
201
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
202
|
+
/**
|
|
203
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
204
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
205
|
+
*/
|
|
206
|
+
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
207
|
+
/**
|
|
208
|
+
* An optional array of image references (up to 9). See
|
|
209
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
210
|
+
*/
|
|
211
|
+
references?: Array<Hailuo3.Reference>;
|
|
212
|
+
/**
|
|
213
|
+
* An optional array of video references. The combined duration across all video
|
|
214
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
215
|
+
* video inputs for more information.
|
|
216
|
+
*/
|
|
217
|
+
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
218
|
+
/**
|
|
219
|
+
* The output resolution. Hailuo 3.0 supports 768P and 2K.
|
|
220
|
+
*/
|
|
221
|
+
resolution?: '2K' | '768P';
|
|
222
|
+
}
|
|
223
|
+
namespace Hailuo3 {
|
|
224
|
+
/**
|
|
225
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
226
|
+
* the output.
|
|
227
|
+
*/
|
|
228
|
+
interface ReferenceAudio {
|
|
229
|
+
type: 'audio';
|
|
230
|
+
/**
|
|
231
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
232
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
233
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
234
|
+
*/
|
|
235
|
+
uri: string;
|
|
236
|
+
}
|
|
237
|
+
interface Reference {
|
|
238
|
+
/**
|
|
239
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
240
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
241
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
242
|
+
*/
|
|
243
|
+
uri: string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* A video reference allows the model to use the video as additional context for
|
|
247
|
+
* the output.
|
|
248
|
+
*/
|
|
249
|
+
interface ReferenceVideo {
|
|
250
|
+
type: 'video';
|
|
251
|
+
/**
|
|
252
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
253
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
254
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
255
|
+
*/
|
|
256
|
+
uri: string;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
152
259
|
interface Seedance2 {
|
|
153
260
|
model: 'seedance2';
|
|
154
261
|
/**
|
|
@@ -175,8 +282,8 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
175
282
|
*/
|
|
176
283
|
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920' | '3840:1646' | '3840:2160' | '3840:2880' | '3840:3840' | '2880:3840' | '2160:3840';
|
|
177
284
|
/**
|
|
178
|
-
* An optional array of audio references.
|
|
179
|
-
*
|
|
285
|
+
* An optional array of audio references. The total combined duration must not
|
|
286
|
+
* exceed 15 seconds.
|
|
180
287
|
*/
|
|
181
288
|
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
182
289
|
/**
|
|
@@ -254,8 +361,8 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
254
361
|
*/
|
|
255
362
|
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
256
363
|
/**
|
|
257
|
-
* An optional array of audio references.
|
|
258
|
-
*
|
|
364
|
+
* An optional array of audio references. The total combined duration must not
|
|
365
|
+
* exceed 15 seconds.
|
|
259
366
|
*/
|
|
260
367
|
referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
|
|
261
368
|
/**
|
|
@@ -333,8 +440,8 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
333
440
|
*/
|
|
334
441
|
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
335
442
|
/**
|
|
336
|
-
* An optional array of audio references.
|
|
337
|
-
*
|
|
443
|
+
* An optional array of audio references. The total combined duration must not
|
|
444
|
+
* exceed 15 seconds.
|
|
338
445
|
*/
|
|
339
446
|
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
340
447
|
/**
|
|
@@ -412,6 +519,91 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
412
519
|
uri: string;
|
|
413
520
|
}
|
|
414
521
|
}
|
|
522
|
+
interface Seedance2_5 {
|
|
523
|
+
model: 'seedance2_5';
|
|
524
|
+
/**
|
|
525
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
526
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
527
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
528
|
+
*/
|
|
529
|
+
promptVideo: string;
|
|
530
|
+
/**
|
|
531
|
+
* Whether to generate audio for the video.
|
|
532
|
+
*/
|
|
533
|
+
audio?: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* The number of seconds of duration for the output video. Defaults to 5.
|
|
536
|
+
*/
|
|
537
|
+
duration?: number;
|
|
538
|
+
/**
|
|
539
|
+
* How the input video is used. `reference` (the default) generates a new video
|
|
540
|
+
* conditioned on the input video and accepts `duration` and `ratio`. `extend`
|
|
541
|
+
* continues the input video, requires `promptText`, and matches the input aspect
|
|
542
|
+
* ratio, so `ratio` may not be provided.
|
|
543
|
+
*/
|
|
544
|
+
mode?: 'reference' | 'extend';
|
|
545
|
+
/**
|
|
546
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
547
|
+
* the output.
|
|
548
|
+
*/
|
|
549
|
+
promptText?: string;
|
|
550
|
+
/**
|
|
551
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
552
|
+
*/
|
|
553
|
+
ratio?: '992:432' | '854:480' | '752:560' | '640:640' | '560:752' | '480:854' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
554
|
+
/**
|
|
555
|
+
* An optional array of audio references. The total combined duration must be less
|
|
556
|
+
* than 30 seconds.
|
|
557
|
+
*/
|
|
558
|
+
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
559
|
+
/**
|
|
560
|
+
* An optional array of image references (up to 30). See
|
|
561
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
562
|
+
*/
|
|
563
|
+
references?: Array<Seedance2_5.Reference>;
|
|
564
|
+
/**
|
|
565
|
+
* An optional array of video references. The combined duration across all video
|
|
566
|
+
* references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
|
|
567
|
+
* video inputs for more information.
|
|
568
|
+
*/
|
|
569
|
+
referenceVideos?: Array<Seedance2_5.ReferenceVideo>;
|
|
570
|
+
}
|
|
571
|
+
namespace Seedance2_5 {
|
|
572
|
+
/**
|
|
573
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
574
|
+
* the output.
|
|
575
|
+
*/
|
|
576
|
+
interface ReferenceAudio {
|
|
577
|
+
type: 'audio';
|
|
578
|
+
/**
|
|
579
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
580
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
581
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
582
|
+
*/
|
|
583
|
+
uri: string;
|
|
584
|
+
}
|
|
585
|
+
interface Reference {
|
|
586
|
+
/**
|
|
587
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
588
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
589
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
590
|
+
*/
|
|
591
|
+
uri: string;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* A video reference allows the model to use the video as additional context for
|
|
595
|
+
* the output.
|
|
596
|
+
*/
|
|
597
|
+
interface ReferenceVideo {
|
|
598
|
+
type: 'video';
|
|
599
|
+
/**
|
|
600
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
601
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
602
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
603
|
+
*/
|
|
604
|
+
uri: string;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
415
607
|
}
|
|
416
608
|
export declare namespace VideoToVideo {
|
|
417
609
|
export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAE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