@runwayml/sdk 3.21.0 → 3.22.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 +28 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/polling.d.mts.map +1 -1
- package/lib/polling.d.ts.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/avatar-videos.d.mts.map +1 -1
- package/resources/avatar-videos.d.ts.map +1 -1
- package/resources/avatar-videos.mjs.map +1 -1
- package/resources/avatars.d.mts.map +1 -1
- package/resources/avatars.d.ts.map +1 -1
- package/resources/avatars.mjs.map +1 -1
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.mjs.map +1 -1
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.mjs.map +1 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/image-upscale.d.mts +62 -0
- package/resources/image-upscale.d.mts.map +1 -0
- package/resources/image-upscale.d.ts +62 -0
- package/resources/image-upscale.d.ts.map +1 -0
- package/resources/image-upscale.js +30 -0
- package/resources/image-upscale.js.map +1 -0
- package/resources/image-upscale.mjs +26 -0
- package/resources/image-upscale.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.mjs.map +1 -1
- package/resources/realtime-sessions.d.mts.map +1 -1
- package/resources/realtime-sessions.d.ts.map +1 -1
- package/resources/realtime-sessions.mjs.map +1 -1
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/sound-effect.mjs.map +1 -1
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/speech-to-speech.mjs +1 -0
- package/resources/speech-to-speech.mjs.map +1 -1
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +45 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +45 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech.mjs.map +1 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/text-to-video.mjs.map +1 -1
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.mjs.map +1 -1
- package/resources/video-to-video.d.mts +143 -46
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +143 -46
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.mjs.map +1 -1
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.mjs.map +1 -1
- package/resources/workflow-invocations.d.mts.map +1 -1
- package/resources/workflow-invocations.d.ts.map +1 -1
- package/resources/workflow-invocations.mjs.map +1 -1
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +16 -0
- package/src/resources/image-upscale.ts +83 -0
- package/src/resources/index.ts +5 -0
- package/src/resources/organization.ts +21 -1
- package/src/resources/text-to-image.ts +109 -0
- package/src/resources/video-to-video.ts +171 -47
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,qCAAkC"}
|
package/resources.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,sCAAkC"}
|
package/src/client.ts
CHANGED
|
@@ -51,6 +51,11 @@ import {
|
|
|
51
51
|
ImageToVideoCreateParams,
|
|
52
52
|
ImageToVideoCreateResponse,
|
|
53
53
|
} from './resources/image-to-video';
|
|
54
|
+
import {
|
|
55
|
+
ImageUpscale,
|
|
56
|
+
ImageUpscaleCreateParams,
|
|
57
|
+
ImageUpscaleCreateResponse,
|
|
58
|
+
} from './resources/image-upscale';
|
|
54
59
|
import {
|
|
55
60
|
Organization,
|
|
56
61
|
OrganizationRetrieveResponse,
|
|
@@ -908,6 +913,10 @@ export class RunwayML {
|
|
|
908
913
|
* These endpoints all kick off tasks to create generations.
|
|
909
914
|
*/
|
|
910
915
|
speechToSpeech: API.SpeechToSpeech = new API.SpeechToSpeech(this);
|
|
916
|
+
/**
|
|
917
|
+
* These endpoints all kick off tasks to create generations.
|
|
918
|
+
*/
|
|
919
|
+
imageUpscale: API.ImageUpscale = new API.ImageUpscale(this);
|
|
911
920
|
organization: API.Organization = new API.Organization(this);
|
|
912
921
|
avatars: API.Avatars = new API.Avatars(this);
|
|
913
922
|
avatarVideos: API.AvatarVideos = new API.AvatarVideos(this);
|
|
@@ -930,6 +939,7 @@ RunwayML.SoundEffect = SoundEffect;
|
|
|
930
939
|
RunwayML.VoiceIsolation = VoiceIsolation;
|
|
931
940
|
RunwayML.VoiceDubbing = VoiceDubbing;
|
|
932
941
|
RunwayML.SpeechToSpeech = SpeechToSpeech;
|
|
942
|
+
RunwayML.ImageUpscale = ImageUpscale;
|
|
933
943
|
RunwayML.Organization = Organization;
|
|
934
944
|
RunwayML.Avatars = Avatars;
|
|
935
945
|
RunwayML.AvatarVideos = AvatarVideos;
|
|
@@ -1008,6 +1018,12 @@ export declare namespace RunwayML {
|
|
|
1008
1018
|
type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams,
|
|
1009
1019
|
};
|
|
1010
1020
|
|
|
1021
|
+
export {
|
|
1022
|
+
ImageUpscale as ImageUpscale,
|
|
1023
|
+
type ImageUpscaleCreateResponse as ImageUpscaleCreateResponse,
|
|
1024
|
+
type ImageUpscaleCreateParams as ImageUpscaleCreateParams,
|
|
1025
|
+
};
|
|
1026
|
+
|
|
1011
1027
|
export {
|
|
1012
1028
|
Organization as Organization,
|
|
1013
1029
|
type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { RequestOptions } from '../internal/request-options';
|
|
5
|
+
import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
10
|
+
export class ImageUpscale extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Upscale an image with Magnific precision upscaling. Each input dimension must be
|
|
13
|
+
* between 300px and 8000px. Output width and height are the input dimensions
|
|
14
|
+
* multiplied by `scaleFactor` (default 2). Output width times height cannot exceed
|
|
15
|
+
* 25,300,000 pixels (~25.3 million).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const imageUpscale = await client.imageUpscale.create({
|
|
20
|
+
* imageUri: 'https://example.com/image.jpg',
|
|
21
|
+
* model: 'magnific_precision_upscaler_v2',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(
|
|
26
|
+
body: ImageUpscaleCreateParams,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): APIPromiseWithAwaitableTask<ImageUpscaleCreateResponse> {
|
|
29
|
+
return wrapAsWaitableResource<ImageUpscaleCreateResponse>(this._client)(
|
|
30
|
+
this._client.post('/v1/image_upscale', { body, ...options }),
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ImageUpscaleCreateResponse {
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface ImageUpscaleCreateParams {
|
|
43
|
+
/**
|
|
44
|
+
* A HTTPS URL.
|
|
45
|
+
*/
|
|
46
|
+
imageUri: string;
|
|
47
|
+
|
|
48
|
+
model: 'magnific_precision_upscaler_v2';
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Optimization preset: `sublime` (illustration), `photo` (photographic), or
|
|
52
|
+
* `photo_denoiser` (noisy photos).
|
|
53
|
+
*/
|
|
54
|
+
flavor?: 'sublime' | 'photo' | 'photo_denoiser';
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Multiplies each input dimension to produce output width and height. Defaults
|
|
58
|
+
* to 2.
|
|
59
|
+
*/
|
|
60
|
+
scaleFactor?: 2 | 4 | 8 | 16;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Sharpness intensity from 0 (none) to 100.
|
|
64
|
+
*/
|
|
65
|
+
sharpen?: number;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Grain and texture enhancement from 0 to 100.
|
|
69
|
+
*/
|
|
70
|
+
smartGrain?: number;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Fine detail enhancement from 0 to 100.
|
|
74
|
+
*/
|
|
75
|
+
ultraDetail?: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare namespace ImageUpscale {
|
|
79
|
+
export {
|
|
80
|
+
type ImageUpscaleCreateResponse as ImageUpscaleCreateResponse,
|
|
81
|
+
type ImageUpscaleCreateParams as ImageUpscaleCreateParams,
|
|
82
|
+
};
|
|
83
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -32,6 +32,11 @@ export {
|
|
|
32
32
|
type ImageToVideoCreateResponse,
|
|
33
33
|
type ImageToVideoCreateParams,
|
|
34
34
|
} from './image-to-video';
|
|
35
|
+
export {
|
|
36
|
+
ImageUpscale,
|
|
37
|
+
type ImageUpscaleCreateResponse,
|
|
38
|
+
type ImageUpscaleCreateParams,
|
|
39
|
+
} from './image-upscale';
|
|
35
40
|
export {
|
|
36
41
|
Organization,
|
|
37
42
|
type OrganizationRetrieveResponse,
|
|
@@ -127,6 +127,16 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
127
127
|
| 'gwm1_avatar_async_text_to_video'
|
|
128
128
|
| 'voice_processing'
|
|
129
129
|
| 'seedance2'
|
|
130
|
+
| 'magnific_precision_upscaler_v2'
|
|
131
|
+
| 'kling2.5_turbo_pro'
|
|
132
|
+
| 'kling3.0_pro'
|
|
133
|
+
| 'kling3.0_4k'
|
|
134
|
+
| 'kling3.0_standard'
|
|
135
|
+
| 'klingO3_pro'
|
|
136
|
+
| 'klingO3_standard'
|
|
137
|
+
| 'klingO3_4k'
|
|
138
|
+
| 'happyhorse_1_0'
|
|
139
|
+
| 'aleph2'
|
|
130
140
|
>;
|
|
131
141
|
|
|
132
142
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
@@ -183,7 +193,17 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
183
193
|
| 'gwm1_avatar_async_audio_to_video'
|
|
184
194
|
| 'gwm1_avatar_async_text_to_video'
|
|
185
195
|
| 'voice_processing'
|
|
186
|
-
| 'seedance2'
|
|
196
|
+
| 'seedance2'
|
|
197
|
+
| 'magnific_precision_upscaler_v2'
|
|
198
|
+
| 'kling2.5_turbo_pro'
|
|
199
|
+
| 'kling3.0_pro'
|
|
200
|
+
| 'kling3.0_4k'
|
|
201
|
+
| 'kling3.0_standard'
|
|
202
|
+
| 'klingO3_pro'
|
|
203
|
+
| 'klingO3_standard'
|
|
204
|
+
| 'klingO3_4k'
|
|
205
|
+
| 'happyhorse_1_0'
|
|
206
|
+
| 'aleph2';
|
|
187
207
|
}
|
|
188
208
|
}
|
|
189
209
|
}
|
|
@@ -33,6 +33,7 @@ export type TextToImageCreateParams =
|
|
|
33
33
|
| TextToImageCreateParams.Gen4Image
|
|
34
34
|
| TextToImageCreateParams.GptImage2
|
|
35
35
|
| TextToImageCreateParams.GeminiImage3Pro
|
|
36
|
+
| TextToImageCreateParams.GeminiImage3_1Flash
|
|
36
37
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
37
38
|
|
|
38
39
|
export declare namespace TextToImageCreateParams {
|
|
@@ -352,6 +353,114 @@ export declare namespace TextToImageCreateParams {
|
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
355
|
|
|
356
|
+
export interface GeminiImage3_1Flash {
|
|
357
|
+
model: 'gemini_image3.1_flash';
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
361
|
+
* should describe in detail what should appear in the output.
|
|
362
|
+
*/
|
|
363
|
+
promptText: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* The resolution of the output image.
|
|
367
|
+
*/
|
|
368
|
+
ratio:
|
|
369
|
+
| '512:512'
|
|
370
|
+
| '416:624'
|
|
371
|
+
| '624:416'
|
|
372
|
+
| '432:592'
|
|
373
|
+
| '592:432'
|
|
374
|
+
| '448:576'
|
|
375
|
+
| '576:448'
|
|
376
|
+
| '384:672'
|
|
377
|
+
| '672:384'
|
|
378
|
+
| '768:336'
|
|
379
|
+
| '256:1024'
|
|
380
|
+
| '1024:256'
|
|
381
|
+
| '176:1408'
|
|
382
|
+
| '1408:176'
|
|
383
|
+
| '1024:1024'
|
|
384
|
+
| '832:1248'
|
|
385
|
+
| '1248:832'
|
|
386
|
+
| '864:1184'
|
|
387
|
+
| '1184:864'
|
|
388
|
+
| '896:1152'
|
|
389
|
+
| '1152:896'
|
|
390
|
+
| '768:1344'
|
|
391
|
+
| '1344:768'
|
|
392
|
+
| '1536:672'
|
|
393
|
+
| '512:2048'
|
|
394
|
+
| '2048:512'
|
|
395
|
+
| '352:2816'
|
|
396
|
+
| '2816:352'
|
|
397
|
+
| '2048:2048'
|
|
398
|
+
| '1696:2528'
|
|
399
|
+
| '2528:1696'
|
|
400
|
+
| '1792:2400'
|
|
401
|
+
| '2400:1792'
|
|
402
|
+
| '1856:2304'
|
|
403
|
+
| '2304:1856'
|
|
404
|
+
| '1536:2752'
|
|
405
|
+
| '2752:1536'
|
|
406
|
+
| '3168:1344'
|
|
407
|
+
| '1024:4096'
|
|
408
|
+
| '4096:1024'
|
|
409
|
+
| '704:5632'
|
|
410
|
+
| '5632:704'
|
|
411
|
+
| '4096:4096'
|
|
412
|
+
| '3392:5056'
|
|
413
|
+
| '5056:3392'
|
|
414
|
+
| '3584:4800'
|
|
415
|
+
| '4800:3584'
|
|
416
|
+
| '3712:4608'
|
|
417
|
+
| '4608:3712'
|
|
418
|
+
| '3072:5504'
|
|
419
|
+
| '5504:3072'
|
|
420
|
+
| '6336:2688'
|
|
421
|
+
| '2048:8192'
|
|
422
|
+
| '8192:2048'
|
|
423
|
+
| '1408:11264'
|
|
424
|
+
| '11264:1408';
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
428
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
429
|
+
* once.
|
|
430
|
+
*/
|
|
431
|
+
outputCount?: 1 | 4;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
435
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
436
|
+
* character consistency, and up to nine of those images can pass
|
|
437
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
438
|
+
* output.
|
|
439
|
+
*/
|
|
440
|
+
referenceImages?: Array<GeminiImage3_1Flash.ReferenceImage>;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export namespace GeminiImage3_1Flash {
|
|
444
|
+
export interface ReferenceImage {
|
|
445
|
+
/**
|
|
446
|
+
* A HTTPS URL.
|
|
447
|
+
*/
|
|
448
|
+
uri: string;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
452
|
+
* object that appears in the output.
|
|
453
|
+
*/
|
|
454
|
+
subject?: 'object' | 'human';
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
458
|
+
* prompt text.
|
|
459
|
+
*/
|
|
460
|
+
tag?: string;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
355
464
|
export interface Gemini2_5Flash {
|
|
356
465
|
model: 'gemini_2.5_flash';
|
|
357
466
|
|
|
@@ -37,68 +37,192 @@ export interface VideoToVideoCreateResponse {
|
|
|
37
37
|
id: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export
|
|
41
|
-
model: 'gen4_aleph';
|
|
40
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Gen4Aleph | VideoToVideoCreateParams.Aleph2;
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*/
|
|
47
|
-
promptText: string;
|
|
42
|
+
export declare namespace VideoToVideoCreateParams {
|
|
43
|
+
export interface Gen4Aleph {
|
|
44
|
+
model: 'gen4_aleph';
|
|
48
45
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
/**
|
|
47
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
48
|
+
* should describe in detail what should appear in the output.
|
|
49
|
+
*/
|
|
50
|
+
promptText: string;
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
/**
|
|
53
|
+
* A HTTPS URL.
|
|
54
|
+
*/
|
|
55
|
+
videoUri: string;
|
|
58
56
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
ratio?: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
57
|
+
/**
|
|
58
|
+
* Settings that affect the behavior of the content moderation system.
|
|
59
|
+
*/
|
|
60
|
+
contentModeration?: Gen4Aleph.ContentModeration;
|
|
64
61
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Deprecated. This field is ignored. The resolution of the output
|
|
64
|
+
* video is determined by the input video.
|
|
65
|
+
*/
|
|
66
|
+
ratio?:
|
|
67
|
+
| '1280:720'
|
|
68
|
+
| '720:1280'
|
|
69
|
+
| '1104:832'
|
|
70
|
+
| '960:960'
|
|
71
|
+
| '832:1104'
|
|
72
|
+
| '1584:672'
|
|
73
|
+
| '848:480'
|
|
74
|
+
| '640:480';
|
|
70
75
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
seed?: number;
|
|
77
|
-
}
|
|
76
|
+
/**
|
|
77
|
+
* An array of references. Currently up to one reference is supported. See
|
|
78
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
79
|
+
*/
|
|
80
|
+
references?: Array<Gen4Aleph.Reference>;
|
|
78
81
|
|
|
79
|
-
export namespace VideoToVideoCreateParams {
|
|
80
|
-
/**
|
|
81
|
-
* Settings that affect the behavior of the content moderation system.
|
|
82
|
-
*/
|
|
83
|
-
export interface ContentModeration {
|
|
84
82
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
83
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
84
|
+
* get different results for the same other request parameters. Using the same seed
|
|
85
|
+
* integer for an identical request will produce similar results.
|
|
87
86
|
*/
|
|
88
|
-
|
|
87
|
+
seed?: number;
|
|
89
88
|
}
|
|
90
89
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
export namespace Gen4Aleph {
|
|
91
|
+
/**
|
|
92
|
+
* Settings that affect the behavior of the content moderation system.
|
|
93
|
+
*/
|
|
94
|
+
export interface ContentModeration {
|
|
95
|
+
/**
|
|
96
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
97
|
+
* preventing generations that include recognizable public figures.
|
|
98
|
+
*/
|
|
99
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Passing an image reference allows the model to emulate the style or content of
|
|
104
|
+
* the reference in the output.
|
|
105
|
+
*/
|
|
106
|
+
export interface Reference {
|
|
107
|
+
type: 'image';
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* A HTTPS URL.
|
|
111
|
+
*/
|
|
112
|
+
uri: string;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface Aleph2 {
|
|
117
|
+
model: 'aleph2';
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* A non-empty string up to 1000 characters describing what should appear in the
|
|
121
|
+
* output.
|
|
122
|
+
*/
|
|
123
|
+
promptText: string;
|
|
97
124
|
|
|
98
125
|
/**
|
|
99
126
|
* A HTTPS URL.
|
|
100
127
|
*/
|
|
101
|
-
|
|
128
|
+
videoUri: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Settings that affect the behavior of the content moderation system.
|
|
132
|
+
*/
|
|
133
|
+
contentModeration?: Aleph2.ContentModeration;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Timed guidance images placed at specific points in the input video. Up to 5
|
|
137
|
+
* keyframes.
|
|
138
|
+
*/
|
|
139
|
+
keyframes?: Array<Aleph2.UnionMember0 | Aleph2.UnionMember1>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* A list of up to 5 image keyframes for guiding the edit at specific points in the
|
|
143
|
+
* video.
|
|
144
|
+
*/
|
|
145
|
+
promptImage?: Array<Aleph2.PromptImage>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
149
|
+
* get different results for the same other request parameters. Using the same seed
|
|
150
|
+
* integer for an identical request will produce similar results.
|
|
151
|
+
*/
|
|
152
|
+
seed?: number;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export namespace Aleph2 {
|
|
156
|
+
/**
|
|
157
|
+
* Settings that affect the behavior of the content moderation system.
|
|
158
|
+
*/
|
|
159
|
+
export interface ContentModeration {
|
|
160
|
+
/**
|
|
161
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
162
|
+
* preventing generations that include recognizable public figures.
|
|
163
|
+
*/
|
|
164
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface UnionMember0 {
|
|
168
|
+
/**
|
|
169
|
+
* Absolute timestamp in seconds from the start of the input video when this
|
|
170
|
+
* guidance image should apply.
|
|
171
|
+
*/
|
|
172
|
+
seconds: number;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* A HTTPS URL.
|
|
176
|
+
*/
|
|
177
|
+
uri: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface UnionMember1 {
|
|
181
|
+
/**
|
|
182
|
+
* Position as a fraction [0.0, 1.0] of the input video duration when this guidance
|
|
183
|
+
* image should apply.
|
|
184
|
+
*/
|
|
185
|
+
at: number;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* A HTTPS URL.
|
|
189
|
+
*/
|
|
190
|
+
uri: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface PromptImage {
|
|
194
|
+
/**
|
|
195
|
+
* - `first` - Places the image at the start of the output video (timestamp 0).
|
|
196
|
+
* - `last` - Places the image at the end of the output video (timestamp =
|
|
197
|
+
* duration).
|
|
198
|
+
*/
|
|
199
|
+
position: 'first' | 'last' | PromptImage.TimestampPosition | PromptImage.RelativePosition;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* A HTTPS URL.
|
|
203
|
+
*/
|
|
204
|
+
uri: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export namespace PromptImage {
|
|
208
|
+
export interface TimestampPosition {
|
|
209
|
+
/**
|
|
210
|
+
* Absolute timestamp in seconds from the start of the output video.
|
|
211
|
+
*/
|
|
212
|
+
timestampSeconds: number;
|
|
213
|
+
|
|
214
|
+
type: 'timestamp';
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface RelativePosition {
|
|
218
|
+
/**
|
|
219
|
+
* Position as a fraction [0.0, 1.0] of the total video duration.
|
|
220
|
+
*/
|
|
221
|
+
positionPercentage: number;
|
|
222
|
+
|
|
223
|
+
type: 'position';
|
|
224
|
+
}
|
|
225
|
+
}
|
|
102
226
|
}
|
|
103
227
|
}
|
|
104
228
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.22.0'; // x-release-please-version
|
package/uploads.d.mts
CHANGED
package/uploads.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/uploads.d.ts
CHANGED
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
|
package/uploads.mjs
CHANGED
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.22.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.22.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.22.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|