@runwayml/sdk 4.12.0 → 4.13.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 +16 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/avatar-videos.d.mts +3 -1
- package/resources/avatar-videos.d.mts.map +1 -1
- package/resources/avatar-videos.d.ts +3 -1
- package/resources/avatar-videos.d.ts.map +1 -1
- package/resources/avatars.d.mts +6 -2
- package/resources/avatars.d.mts.map +1 -1
- package/resources/avatars.d.ts +6 -2
- package/resources/avatars.d.ts.map +1 -1
- package/resources/character-performance.d.mts +10 -4
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +10 -4
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +1 -1
- package/resources/character-performance.mjs +1 -1
- package/resources/generate/audio.d.mts +7 -3
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +7 -3
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/image.d.mts +5 -3
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +5 -3
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/generate/video.d.mts +17 -7
- package/resources/generate/video.d.mts.map +1 -1
- package/resources/generate/video.d.ts +17 -7
- package/resources/generate/video.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +51 -17
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +51 -17
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-upscale.d.mts +3 -1
- package/resources/image-upscale.d.mts.map +1 -1
- package/resources/image-upscale.d.ts +3 -1
- package/resources/image-upscale.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/realtime-sessions.d.mts +25 -25
- package/resources/realtime-sessions.d.mts.map +1 -1
- package/resources/realtime-sessions.d.ts +25 -25
- package/resources/realtime-sessions.d.ts.map +1 -1
- package/resources/recipes.d.mts +48 -24
- package/resources/recipes.d.mts.map +1 -1
- package/resources/recipes.d.ts +48 -24
- package/resources/recipes.d.ts.map +1 -1
- package/resources/routers.d.mts +25 -25
- package/resources/routers.d.ts +25 -25
- package/resources/routers.js +1 -1
- package/resources/routers.mjs +1 -1
- package/resources/speech-to-speech.d.mts +6 -2
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +6 -2
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +36 -14
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +36 -14
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +3 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +27 -9
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +27 -9
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +51 -17
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +51 -17
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +3 -1
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +3 -1
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +3 -1
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +3 -1
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +3 -1
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +3 -1
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voices.d.mts +3 -1
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +3 -1
- package/resources/voices.d.ts.map +1 -1
- package/resources/workflows.d.mts +9 -3
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +9 -3
- package/resources/workflows.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/avatar-videos.ts +3 -1
- package/src/resources/avatars.ts +6 -2
- package/src/resources/character-performance.ts +10 -4
- package/src/resources/generate/audio.ts +7 -3
- package/src/resources/generate/image.ts +5 -3
- package/src/resources/generate/video.ts +17 -7
- package/src/resources/image-to-video.ts +51 -17
- package/src/resources/image-upscale.ts +3 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/realtime-sessions.ts +29 -28
- package/src/resources/recipes.ts +48 -24
- package/src/resources/routers.ts +25 -25
- package/src/resources/speech-to-speech.ts +6 -2
- package/src/resources/text-to-image.ts +36 -14
- package/src/resources/text-to-speech.ts +3 -1
- package/src/resources/text-to-video.ts +27 -9
- package/src/resources/video-to-video.ts +51 -17
- package/src/resources/video-upscale.ts +3 -1
- package/src/resources/voice-dubbing.ts +3 -1
- package/src/resources/voice-isolation.ts +3 -1
- package/src/resources/voices.ts +3 -1
- package/src/resources/workflows.ts +9 -3
- 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
|
@@ -109,7 +109,7 @@ export namespace AudioCreateResponse {
|
|
|
109
109
|
optimizeFor: 'cost' | 'latency' | 'quality';
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* The applied maximum credits per generation for this request
|
|
112
|
+
* The applied maximum credits per generation for this request's modality, or null
|
|
113
113
|
* if the config sets no ceiling.
|
|
114
114
|
*/
|
|
115
115
|
priceCeiling: number | null;
|
|
@@ -178,7 +178,9 @@ export namespace AudioCreateParams {
|
|
|
178
178
|
export namespace Input {
|
|
179
179
|
export interface ReferenceAudio {
|
|
180
180
|
/**
|
|
181
|
-
* A HTTPS URL.
|
|
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.
|
|
182
184
|
*/
|
|
183
185
|
uri: string;
|
|
184
186
|
}
|
|
@@ -251,7 +253,9 @@ export namespace AudioCreateParams {
|
|
|
251
253
|
*/
|
|
252
254
|
export interface ReferenceAudio {
|
|
253
255
|
/**
|
|
254
|
-
* A HTTPS URL.
|
|
256
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
257
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
258
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
255
259
|
*/
|
|
256
260
|
audioUri: string;
|
|
257
261
|
|
|
@@ -112,7 +112,7 @@ export namespace ImageCreateResponse {
|
|
|
112
112
|
optimizeFor: 'cost' | 'latency' | 'quality';
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* The applied maximum credits per generation for this request
|
|
115
|
+
* The applied maximum credits per generation for this request's modality, or null
|
|
116
116
|
* if the config sets no ceiling.
|
|
117
117
|
*/
|
|
118
118
|
priceCeiling: number | null;
|
|
@@ -156,7 +156,7 @@ export namespace ImageCreateParams {
|
|
|
156
156
|
contentModeration?: Input.ContentModeration;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Number of images to generate (1
|
|
159
|
+
* Number of images to generate (1-10). Models that cannot produce the exact count
|
|
160
160
|
* are excluded and cost scales with this value.
|
|
161
161
|
*/
|
|
162
162
|
outputCount?: number;
|
|
@@ -194,7 +194,9 @@ export namespace ImageCreateParams {
|
|
|
194
194
|
|
|
195
195
|
export interface ReferenceImage {
|
|
196
196
|
/**
|
|
197
|
-
* A HTTPS URL.
|
|
197
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
198
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
199
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
198
200
|
*/
|
|
199
201
|
uri: string;
|
|
200
202
|
}
|
|
@@ -112,7 +112,7 @@ export namespace VideoCreateResponse {
|
|
|
112
112
|
optimizeFor: 'cost' | 'latency' | 'quality';
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* The applied maximum credits per generation for this request
|
|
115
|
+
* The applied maximum credits per generation for this request's modality, or null
|
|
116
116
|
* if the config sets no ceiling.
|
|
117
117
|
*/
|
|
118
118
|
priceCeiling: number | null;
|
|
@@ -149,7 +149,7 @@ export namespace VideoCreateParams {
|
|
|
149
149
|
* Whether to generate native audio with the video. When true, only models that
|
|
150
150
|
* output audio remain eligible; when false, silent models and models with an audio
|
|
151
151
|
* toggle remain eligible (always-on native-audio models are excluded). When
|
|
152
|
-
* omitted, the selected model
|
|
152
|
+
* omitted, the selected model's default applies.
|
|
153
153
|
*/
|
|
154
154
|
audio?: boolean;
|
|
155
155
|
|
|
@@ -226,7 +226,9 @@ export namespace VideoCreateParams {
|
|
|
226
226
|
seconds: number;
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
|
-
* A HTTPS URL.
|
|
229
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
230
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
231
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
230
232
|
*/
|
|
231
233
|
uri: string;
|
|
232
234
|
|
|
@@ -245,7 +247,9 @@ export namespace VideoCreateParams {
|
|
|
245
247
|
at: number;
|
|
246
248
|
|
|
247
249
|
/**
|
|
248
|
-
* A HTTPS URL.
|
|
250
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
251
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
252
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
249
253
|
*/
|
|
250
254
|
uri: string;
|
|
251
255
|
|
|
@@ -262,7 +266,9 @@ export namespace VideoCreateParams {
|
|
|
262
266
|
|
|
263
267
|
export interface ReferenceAudio {
|
|
264
268
|
/**
|
|
265
|
-
* A HTTPS URL.
|
|
269
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
270
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
271
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
266
272
|
*/
|
|
267
273
|
uri: string;
|
|
268
274
|
}
|
|
@@ -275,7 +281,9 @@ export namespace VideoCreateParams {
|
|
|
275
281
|
role: 'first' | 'last' | 'reference';
|
|
276
282
|
|
|
277
283
|
/**
|
|
278
|
-
* A HTTPS URL.
|
|
284
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
285
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
286
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
279
287
|
*/
|
|
280
288
|
uri: string;
|
|
281
289
|
}
|
|
@@ -288,7 +296,9 @@ export namespace VideoCreateParams {
|
|
|
288
296
|
role: 'source' | 'reference';
|
|
289
297
|
|
|
290
298
|
/**
|
|
291
|
-
* A HTTPS URL.
|
|
299
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
300
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
301
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
292
302
|
*/
|
|
293
303
|
uri: string;
|
|
294
304
|
}
|
|
@@ -51,7 +51,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
51
51
|
model: 'gen4.5';
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* A HTTPS URL.
|
|
54
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
55
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
56
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
55
57
|
*/
|
|
56
58
|
promptImage: string | Array<Gen4_5.PromptImage>;
|
|
57
59
|
|
|
@@ -88,7 +90,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
88
90
|
position: 'first';
|
|
89
91
|
|
|
90
92
|
/**
|
|
91
|
-
* A HTTPS URL.
|
|
93
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
94
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
95
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
92
96
|
*/
|
|
93
97
|
uri: string;
|
|
94
98
|
}
|
|
@@ -109,7 +113,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
109
113
|
model: 'gen4_turbo';
|
|
110
114
|
|
|
111
115
|
/**
|
|
112
|
-
* A HTTPS URL.
|
|
116
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
117
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
118
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
113
119
|
*/
|
|
114
120
|
promptImage: string | Array<Gen4Turbo.PromptImage>;
|
|
115
121
|
|
|
@@ -151,7 +157,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
151
157
|
position: 'first';
|
|
152
158
|
|
|
153
159
|
/**
|
|
154
|
-
* A HTTPS URL.
|
|
160
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
161
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
162
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
155
163
|
*/
|
|
156
164
|
uri: string;
|
|
157
165
|
}
|
|
@@ -215,7 +223,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
215
223
|
position: 'first' | 'last';
|
|
216
224
|
|
|
217
225
|
/**
|
|
218
|
-
* A HTTPS URL.
|
|
226
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
227
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
228
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
219
229
|
*/
|
|
220
230
|
uri: string;
|
|
221
231
|
}
|
|
@@ -268,7 +278,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
268
278
|
position: 'first' | 'last';
|
|
269
279
|
|
|
270
280
|
/**
|
|
271
|
-
* A HTTPS URL.
|
|
281
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
282
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
283
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
272
284
|
*/
|
|
273
285
|
uri: string;
|
|
274
286
|
}
|
|
@@ -278,7 +290,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
278
290
|
model: 'happyhorse_1_0';
|
|
279
291
|
|
|
280
292
|
/**
|
|
281
|
-
* A HTTPS URL.
|
|
293
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
294
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
295
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
282
296
|
*/
|
|
283
297
|
promptImage: string | Array<Happyhorse1_0.PromptImage>;
|
|
284
298
|
|
|
@@ -308,7 +322,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
308
322
|
position: 'first';
|
|
309
323
|
|
|
310
324
|
/**
|
|
311
|
-
* A HTTPS URL.
|
|
325
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
326
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
327
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
312
328
|
*/
|
|
313
329
|
uri: string;
|
|
314
330
|
}
|
|
@@ -378,7 +394,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
378
394
|
export namespace Seedance2 {
|
|
379
395
|
export interface PromptImage {
|
|
380
396
|
/**
|
|
381
|
-
* A HTTPS URL.
|
|
397
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
398
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
399
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
382
400
|
*/
|
|
383
401
|
uri: string;
|
|
384
402
|
|
|
@@ -397,7 +415,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
397
415
|
type: 'audio';
|
|
398
416
|
|
|
399
417
|
/**
|
|
400
|
-
* A HTTPS URL.
|
|
418
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
419
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
420
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
401
421
|
*/
|
|
402
422
|
uri: string;
|
|
403
423
|
}
|
|
@@ -456,7 +476,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
456
476
|
export namespace Seedance2Fast {
|
|
457
477
|
export interface PromptImage {
|
|
458
478
|
/**
|
|
459
|
-
* A HTTPS URL.
|
|
479
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
480
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
481
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
460
482
|
*/
|
|
461
483
|
uri: string;
|
|
462
484
|
|
|
@@ -475,7 +497,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
475
497
|
type: 'audio';
|
|
476
498
|
|
|
477
499
|
/**
|
|
478
|
-
* A HTTPS URL.
|
|
500
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
501
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
502
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
479
503
|
*/
|
|
480
504
|
uri: string;
|
|
481
505
|
}
|
|
@@ -534,7 +558,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
534
558
|
export namespace Seedance2Mini {
|
|
535
559
|
export interface PromptImage {
|
|
536
560
|
/**
|
|
537
|
-
* A HTTPS URL.
|
|
561
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
562
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
563
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
538
564
|
*/
|
|
539
565
|
uri: string;
|
|
540
566
|
|
|
@@ -553,7 +579,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
553
579
|
type: 'audio';
|
|
554
580
|
|
|
555
581
|
/**
|
|
556
|
-
* A HTTPS URL.
|
|
582
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
583
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
584
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
557
585
|
*/
|
|
558
586
|
uri: string;
|
|
559
587
|
}
|
|
@@ -595,7 +623,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
595
623
|
position: 'first';
|
|
596
624
|
|
|
597
625
|
/**
|
|
598
|
-
* A HTTPS URL.
|
|
626
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
627
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
628
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
599
629
|
*/
|
|
600
630
|
uri: string;
|
|
601
631
|
}
|
|
@@ -610,7 +640,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
610
640
|
model: 'veo3';
|
|
611
641
|
|
|
612
642
|
/**
|
|
613
|
-
* A HTTPS URL.
|
|
643
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
644
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
645
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
614
646
|
*/
|
|
615
647
|
promptImage: string | Array<Veo3.PromptImage>;
|
|
616
648
|
|
|
@@ -640,7 +672,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
640
672
|
position: 'first';
|
|
641
673
|
|
|
642
674
|
/**
|
|
643
|
-
* A HTTPS URL.
|
|
675
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
676
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
677
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
644
678
|
*/
|
|
645
679
|
uri: string;
|
|
646
680
|
}
|
|
@@ -41,7 +41,9 @@ export interface ImageUpscaleCreateResponse {
|
|
|
41
41
|
|
|
42
42
|
export interface ImageUpscaleCreateParams {
|
|
43
43
|
/**
|
|
44
|
-
* A HTTPS URL.
|
|
44
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
45
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
46
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
45
47
|
*/
|
|
46
48
|
imageUri: string;
|
|
47
49
|
|
package/src/resources/index.ts
CHANGED
|
@@ -38,6 +38,33 @@ export class RealtimeSessions extends APIResource {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Use integration with type "livekit" instead.
|
|
43
|
+
*/
|
|
44
|
+
export interface DeprecatedLivekit {
|
|
45
|
+
/**
|
|
46
|
+
* LiveKit access token granting the avatar worker publish rights in the external
|
|
47
|
+
* room.
|
|
48
|
+
*/
|
|
49
|
+
token: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Name of the external LiveKit room.
|
|
53
|
+
*/
|
|
54
|
+
roomName: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* WebSocket URL of the external LiveKit server the avatar worker should join.
|
|
58
|
+
*/
|
|
59
|
+
url: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The participant identity of the customer agent already in the room. When
|
|
63
|
+
* provided, the avatar worker trusts audio published by this identity.
|
|
64
|
+
*/
|
|
65
|
+
agentIdentity?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
41
68
|
export interface RealtimeSessionCreateResponse {
|
|
42
69
|
/**
|
|
43
70
|
* The ID of the created realtime session. This same value is later used as the
|
|
@@ -220,7 +247,7 @@ export interface RealtimeSessionCreateParams {
|
|
|
220
247
|
/**
|
|
221
248
|
* @deprecated Use integration with type "livekit" instead.
|
|
222
249
|
*/
|
|
223
|
-
livekit?:
|
|
250
|
+
livekit?: DeprecatedLivekit;
|
|
224
251
|
|
|
225
252
|
/**
|
|
226
253
|
* Maximum session duration in seconds.
|
|
@@ -321,33 +348,6 @@ export namespace RealtimeSessionCreateParams {
|
|
|
321
348
|
agentIdentity?: string;
|
|
322
349
|
}
|
|
323
350
|
|
|
324
|
-
/**
|
|
325
|
-
* @deprecated Use integration with type "livekit" instead.
|
|
326
|
-
*/
|
|
327
|
-
export interface Livekit {
|
|
328
|
-
/**
|
|
329
|
-
* LiveKit access token granting the avatar worker publish rights in the external
|
|
330
|
-
* room.
|
|
331
|
-
*/
|
|
332
|
-
token: string;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Name of the external LiveKit room.
|
|
336
|
-
*/
|
|
337
|
-
roomName: string;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* WebSocket URL of the external LiveKit server the avatar worker should join.
|
|
341
|
-
*/
|
|
342
|
-
url: string;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* The participant identity of the customer agent already in the room. When
|
|
346
|
-
* provided, the avatar worker trusts audio published by this identity.
|
|
347
|
-
*/
|
|
348
|
-
agentIdentity?: string;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
351
|
/**
|
|
352
352
|
* A fire-and-forget tool that sends arguments to the frontend client of the
|
|
353
353
|
* realtime session.
|
|
@@ -700,6 +700,7 @@ export namespace RealtimeSessionCreateParams {
|
|
|
700
700
|
|
|
701
701
|
export declare namespace RealtimeSessions {
|
|
702
702
|
export {
|
|
703
|
+
type DeprecatedLivekit as DeprecatedLivekit,
|
|
703
704
|
type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse,
|
|
704
705
|
type RealtimeSessionRetrieveResponse as RealtimeSessionRetrieveResponse,
|
|
705
706
|
type RealtimeSessionCreateParams as RealtimeSessionCreateParams,
|
package/src/resources/recipes.ts
CHANGED
|
@@ -194,7 +194,9 @@ export namespace RecipeAdLocalizationParams {
|
|
|
194
194
|
*/
|
|
195
195
|
export interface ReferenceImage {
|
|
196
196
|
/**
|
|
197
|
-
* A HTTPS URL.
|
|
197
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
198
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
199
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
198
200
|
*/
|
|
199
201
|
uri: string;
|
|
200
202
|
}
|
|
@@ -214,7 +216,7 @@ export interface RecipeMarketingStockImageParams {
|
|
|
214
216
|
version: '2026-06' | 'unsafe-latest';
|
|
215
217
|
|
|
216
218
|
/**
|
|
217
|
-
* The number of images to generate (1
|
|
219
|
+
* The number of images to generate (1-4). Defaults to 4. Increasing this number
|
|
218
220
|
* affects credits consumed.
|
|
219
221
|
*/
|
|
220
222
|
outputCount?: number;
|
|
@@ -239,7 +241,9 @@ export namespace RecipeMarketingStockImageParams {
|
|
|
239
241
|
*/
|
|
240
242
|
export interface ReferenceImage {
|
|
241
243
|
/**
|
|
242
|
-
* A HTTPS URL.
|
|
244
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
245
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
246
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
243
247
|
*/
|
|
244
248
|
uri: string;
|
|
245
249
|
}
|
|
@@ -298,7 +302,9 @@ export declare namespace RecipeMultiShotVideoParams {
|
|
|
298
302
|
*/
|
|
299
303
|
export interface FirstFrame {
|
|
300
304
|
/**
|
|
301
|
-
* A HTTPS URL.
|
|
305
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
306
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
307
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
302
308
|
*/
|
|
303
309
|
uri: string;
|
|
304
310
|
}
|
|
@@ -306,12 +312,12 @@ export declare namespace RecipeMultiShotVideoParams {
|
|
|
306
312
|
|
|
307
313
|
export interface Variant1 {
|
|
308
314
|
/**
|
|
309
|
-
* Workflow mode. `custom` polishes a user-provided shot list of 3
|
|
315
|
+
* Workflow mode. `custom` polishes a user-provided shot list of 3-5 shots.
|
|
310
316
|
*/
|
|
311
317
|
mode: 'custom';
|
|
312
318
|
|
|
313
319
|
/**
|
|
314
|
-
* Shot list for custom mode (3
|
|
320
|
+
* Shot list for custom mode (3-5 shots). Per-shot durations must sum to
|
|
315
321
|
* `duration`.
|
|
316
322
|
*/
|
|
317
323
|
shots: Array<Variant1.Shot>;
|
|
@@ -365,7 +371,9 @@ export declare namespace RecipeMultiShotVideoParams {
|
|
|
365
371
|
*/
|
|
366
372
|
export interface FirstFrame {
|
|
367
373
|
/**
|
|
368
|
-
* A HTTPS URL.
|
|
374
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
375
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
376
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
369
377
|
*/
|
|
370
378
|
uri: string;
|
|
371
379
|
}
|
|
@@ -374,7 +382,7 @@ export declare namespace RecipeMultiShotVideoParams {
|
|
|
374
382
|
|
|
375
383
|
export interface RecipeProductAdParams {
|
|
376
384
|
/**
|
|
377
|
-
* Product images (1
|
|
385
|
+
* Product images (1-10). Multiple angles of the same product. All images inform
|
|
378
386
|
* product analysis and reference generation; only the first image is used as the
|
|
379
387
|
* primary product reference in the storyboard grid. See
|
|
380
388
|
* [our docs](/assets/inputs#images) on image inputs.
|
|
@@ -393,7 +401,7 @@ export interface RecipeProductAdParams {
|
|
|
393
401
|
audio?: boolean;
|
|
394
402
|
|
|
395
403
|
/**
|
|
396
|
-
* Duration of the output video in seconds (4
|
|
404
|
+
* Duration of the output video in seconds (4-15). Defaults to 10 seconds.
|
|
397
405
|
*/
|
|
398
406
|
duration?: number;
|
|
399
407
|
|
|
@@ -417,7 +425,7 @@ export interface RecipeProductAdParams {
|
|
|
417
425
|
| '1248:1664';
|
|
418
426
|
|
|
419
427
|
/**
|
|
420
|
-
* Optional style reference images (0
|
|
428
|
+
* Optional style reference images (0-4). Defines the visual treatment (lighting,
|
|
421
429
|
* palette, mood). Treated as a moodboard when multiple are provided.
|
|
422
430
|
*/
|
|
423
431
|
styleImages?: Array<RecipeProductAdParams.StyleImage>;
|
|
@@ -432,14 +440,18 @@ export interface RecipeProductAdParams {
|
|
|
432
440
|
export namespace RecipeProductAdParams {
|
|
433
441
|
export interface ProductImage {
|
|
434
442
|
/**
|
|
435
|
-
* A HTTPS URL.
|
|
443
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
444
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
445
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
436
446
|
*/
|
|
437
447
|
uri: string;
|
|
438
448
|
}
|
|
439
449
|
|
|
440
450
|
export interface StyleImage {
|
|
441
451
|
/**
|
|
442
|
-
* A HTTPS URL.
|
|
452
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
453
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
454
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
443
455
|
*/
|
|
444
456
|
uri: string;
|
|
445
457
|
}
|
|
@@ -472,7 +484,9 @@ export namespace RecipeProductCampaignImageParams {
|
|
|
472
484
|
*/
|
|
473
485
|
export interface Image {
|
|
474
486
|
/**
|
|
475
|
-
* A HTTPS URL.
|
|
487
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
488
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
489
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
476
490
|
*/
|
|
477
491
|
uri: string;
|
|
478
492
|
}
|
|
@@ -480,8 +494,8 @@ export namespace RecipeProductCampaignImageParams {
|
|
|
480
494
|
|
|
481
495
|
export interface RecipeProductSwapParams {
|
|
482
496
|
/**
|
|
483
|
-
* Reference images of the new product (1
|
|
484
|
-
* reference video shows the product from different views
|
|
497
|
+
* Reference images of the new product (1-10). Supply multiple angles when the
|
|
498
|
+
* reference video shows the product from different views - optionally label each
|
|
485
499
|
* with `view` ("front", "side", or "back"). A single pre-composed reference sheet
|
|
486
500
|
* is also supported (omit `view`). See [our docs](/assets/inputs#images) on image
|
|
487
501
|
* inputs.
|
|
@@ -512,7 +526,7 @@ export interface RecipeProductSwapParams {
|
|
|
512
526
|
audio?: boolean;
|
|
513
527
|
|
|
514
528
|
/**
|
|
515
|
-
* Duration of the output video in seconds (4
|
|
529
|
+
* Duration of the output video in seconds (4-15). Defaults to 10 seconds.
|
|
516
530
|
*/
|
|
517
531
|
duration?: number;
|
|
518
532
|
|
|
@@ -525,7 +539,9 @@ export interface RecipeProductSwapParams {
|
|
|
525
539
|
export namespace RecipeProductSwapParams {
|
|
526
540
|
export interface NewProductImage {
|
|
527
541
|
/**
|
|
528
|
-
* A HTTPS URL.
|
|
542
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
543
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
544
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
529
545
|
*/
|
|
530
546
|
uri: string;
|
|
531
547
|
|
|
@@ -542,7 +558,9 @@ export namespace RecipeProductSwapParams {
|
|
|
542
558
|
*/
|
|
543
559
|
export interface OriginalProductImage {
|
|
544
560
|
/**
|
|
545
|
-
* A HTTPS URL.
|
|
561
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
562
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
563
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
546
564
|
*/
|
|
547
565
|
uri: string;
|
|
548
566
|
}
|
|
@@ -553,7 +571,9 @@ export namespace RecipeProductSwapParams {
|
|
|
553
571
|
*/
|
|
554
572
|
export interface ReferenceVideo {
|
|
555
573
|
/**
|
|
556
|
-
* A HTTPS URL.
|
|
574
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
575
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
576
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
557
577
|
*/
|
|
558
578
|
uri: string;
|
|
559
579
|
}
|
|
@@ -586,12 +606,12 @@ export interface RecipeProductUgcParams {
|
|
|
586
606
|
audio?: boolean;
|
|
587
607
|
|
|
588
608
|
/**
|
|
589
|
-
* Duration of the output video in seconds (4
|
|
609
|
+
* Duration of the output video in seconds (4-15). Defaults to 15 seconds.
|
|
590
610
|
*/
|
|
591
611
|
duration?: number;
|
|
592
612
|
|
|
593
613
|
/**
|
|
594
|
-
* Product details and creative brief
|
|
614
|
+
* Product details and creative brief - what the product is, key benefits, and any
|
|
595
615
|
* specifics the script should reference.
|
|
596
616
|
*/
|
|
597
617
|
productInfo?: string;
|
|
@@ -602,7 +622,7 @@ export interface RecipeProductUgcParams {
|
|
|
602
622
|
ratio?: '720:1280' | '1080:1920';
|
|
603
623
|
|
|
604
624
|
/**
|
|
605
|
-
* Optional creative direction for the UGC video
|
|
625
|
+
* Optional creative direction for the UGC video - tone, voice register, specific
|
|
606
626
|
* message, or an entire dialog script.
|
|
607
627
|
*/
|
|
608
628
|
userConcept?: string;
|
|
@@ -616,7 +636,9 @@ export namespace RecipeProductUgcParams {
|
|
|
616
636
|
*/
|
|
617
637
|
export interface CharacterImage {
|
|
618
638
|
/**
|
|
619
|
-
* A HTTPS URL.
|
|
639
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
640
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
641
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
620
642
|
*/
|
|
621
643
|
uri: string;
|
|
622
644
|
}
|
|
@@ -628,7 +650,9 @@ export namespace RecipeProductUgcParams {
|
|
|
628
650
|
*/
|
|
629
651
|
export interface ProductImage {
|
|
630
652
|
/**
|
|
631
|
-
* A HTTPS URL.
|
|
653
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
654
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
655
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
632
656
|
*/
|
|
633
657
|
uri: string;
|
|
634
658
|
}
|