@runwayml/sdk 3.19.0 → 3.20.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 +18 -0
- package/package.json +1 -1
- package/resources/documents.d.mts +13 -1
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +13 -1
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +5 -1
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +5 -1
- package/resources/documents.mjs.map +1 -1
- package/resources/image-to-video.d.mts +43 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +43 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization.d.mts +4 -3
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +4 -3
- package/resources/organization.d.ts.map +1 -1
- package/resources/realtime-sessions.d.mts +19 -9
- package/resources/realtime-sessions.d.mts.map +1 -1
- package/resources/realtime-sessions.d.ts +19 -9
- package/resources/realtime-sessions.d.ts.map +1 -1
- package/resources/realtime-sessions.js +5 -2
- package/resources/realtime-sessions.js.map +1 -1
- package/resources/realtime-sessions.mjs +5 -2
- package/resources/realtime-sessions.mjs.map +1 -1
- package/resources/text-to-video.d.mts +25 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +25 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +112 -46
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +112 -46
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/voices.d.mts +8 -14
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +8 -14
- package/resources/voices.d.ts.map +1 -1
- package/src/resources/documents.ts +16 -2
- package/src/resources/image-to-video.ts +64 -0
- package/src/resources/organization.ts +15 -2
- package/src/resources/realtime-sessions.ts +19 -9
- package/src/resources/text-to-video.ts +43 -0
- package/src/resources/video-to-video.ts +149 -47
- package/src/resources/voices.ts +10 -16
- 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
package/resources/voices.d.ts
CHANGED
|
@@ -209,10 +209,7 @@ export interface VoicePreviewResponse {
|
|
|
209
209
|
url: string;
|
|
210
210
|
}
|
|
211
211
|
export interface VoiceCreateParams {
|
|
212
|
-
|
|
213
|
-
* The source configuration for creating the voice.
|
|
214
|
-
*/
|
|
215
|
-
from: VoiceCreateParams.Text | VoiceCreateParams.Audio;
|
|
212
|
+
from: VoiceCreateParams.Audio | VoiceCreateParams.Text;
|
|
216
213
|
/**
|
|
217
214
|
* A name for the voice.
|
|
218
215
|
*/
|
|
@@ -223,9 +220,13 @@ export interface VoiceCreateParams {
|
|
|
223
220
|
description?: string | null;
|
|
224
221
|
}
|
|
225
222
|
export declare namespace VoiceCreateParams {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
223
|
+
interface Audio {
|
|
224
|
+
/**
|
|
225
|
+
* A HTTPS URL.
|
|
226
|
+
*/
|
|
227
|
+
audio: string;
|
|
228
|
+
type: 'audio';
|
|
229
|
+
}
|
|
229
230
|
interface Text {
|
|
230
231
|
/**
|
|
231
232
|
* The voice design model to use. Prefer eleven_ttv_v3 (latest);
|
|
@@ -239,13 +240,6 @@ export declare namespace VoiceCreateParams {
|
|
|
239
240
|
prompt: string;
|
|
240
241
|
type: 'text';
|
|
241
242
|
}
|
|
242
|
-
interface Audio {
|
|
243
|
-
/**
|
|
244
|
-
* A HTTPS URL.
|
|
245
|
-
*/
|
|
246
|
-
audio: string;
|
|
247
|
-
type: 'audio';
|
|
248
|
-
}
|
|
249
243
|
}
|
|
250
244
|
export interface VoiceListParams extends CursorPageParams {
|
|
251
245
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voices.d.ts","sourceRoot":"","sources":["../src/resources/voices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,E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BAAiB,CAAC,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC;IAEvD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,KAAK;QACpB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,OAAO,CAAC;KACf;IAED,UAAiB,IAAI;QACnB;;;WAGG;QACH,KAAK,EAAE,eAAe,GAAG,4BAA4B,CAAC;QAEtD;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;CAAG;AAE5D,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,eAAe,GAAG,4BAA4B,CAAC;IAEtD;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -70,7 +70,11 @@ export class Documents extends APIResource {
|
|
|
70
70
|
* ```ts
|
|
71
71
|
* // Automatically fetches more pages as needed.
|
|
72
72
|
* for await (const documentListResponse of client.documents.list(
|
|
73
|
-
* {
|
|
73
|
+
* {
|
|
74
|
+
* limit: 1,
|
|
75
|
+
* order: 'asc',
|
|
76
|
+
* sort: 'createdAt',
|
|
77
|
+
* },
|
|
74
78
|
* )) {
|
|
75
79
|
* // ...
|
|
76
80
|
* }
|
|
@@ -291,7 +295,17 @@ export interface DocumentUpdateParams {
|
|
|
291
295
|
name?: string;
|
|
292
296
|
}
|
|
293
297
|
|
|
294
|
-
export interface DocumentListParams extends CursorPageParams {
|
|
298
|
+
export interface DocumentListParams extends CursorPageParams {
|
|
299
|
+
/**
|
|
300
|
+
* Sort direction.
|
|
301
|
+
*/
|
|
302
|
+
order: 'asc' | 'desc';
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Field to sort results by.
|
|
306
|
+
*/
|
|
307
|
+
sort: 'createdAt' | 'updatedAt';
|
|
308
|
+
}
|
|
295
309
|
|
|
296
310
|
export declare namespace Documents {
|
|
297
311
|
export {
|
|
@@ -43,6 +43,7 @@ export type ImageToVideoCreateParams =
|
|
|
43
43
|
| ImageToVideoCreateParams.Gen3aTurbo
|
|
44
44
|
| ImageToVideoCreateParams.Veo3_1
|
|
45
45
|
| ImageToVideoCreateParams.Veo3_1Fast
|
|
46
|
+
| ImageToVideoCreateParams.Seedance2
|
|
46
47
|
| ImageToVideoCreateParams.Veo3;
|
|
47
48
|
|
|
48
49
|
export declare namespace ImageToVideoCreateParams {
|
|
@@ -333,6 +334,69 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
336
|
|
|
337
|
+
export interface Seedance2 {
|
|
338
|
+
model: 'seedance2';
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
342
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
343
|
+
*/
|
|
344
|
+
promptImage: string | Array<Seedance2.PromptImage>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
348
|
+
*/
|
|
349
|
+
audio?: boolean;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* The number of seconds of duration for the output video.
|
|
353
|
+
*/
|
|
354
|
+
duration?: number;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* The number of video generations to produce.
|
|
358
|
+
*/
|
|
359
|
+
outputCount?: number;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* An optional text prompt up to 3500 characters (measured in UTF-16 code units).
|
|
363
|
+
* This should describe in detail what should appear in the output.
|
|
364
|
+
*/
|
|
365
|
+
promptText?: string;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The resolution of the output video.
|
|
369
|
+
*/
|
|
370
|
+
ratio?:
|
|
371
|
+
| '992:432'
|
|
372
|
+
| '864:496'
|
|
373
|
+
| '752:560'
|
|
374
|
+
| '640:640'
|
|
375
|
+
| '560:752'
|
|
376
|
+
| '496:864'
|
|
377
|
+
| '1470:630'
|
|
378
|
+
| '1280:720'
|
|
379
|
+
| '1112:834'
|
|
380
|
+
| '960:960'
|
|
381
|
+
| '834:1112'
|
|
382
|
+
| '720:1280';
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export namespace Seedance2 {
|
|
386
|
+
export interface PromptImage {
|
|
387
|
+
/**
|
|
388
|
+
* A HTTPS URL.
|
|
389
|
+
*/
|
|
390
|
+
uri: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
394
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
395
|
+
*/
|
|
396
|
+
position?: 'first' | 'last';
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
336
400
|
export interface Veo3 {
|
|
337
401
|
/**
|
|
338
402
|
* The number of seconds of duration for the output video.
|
|
@@ -112,14 +112,20 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
112
112
|
| 'veo3.1'
|
|
113
113
|
| 'veo3.1_fast'
|
|
114
114
|
| 'gemini_2.5_flash'
|
|
115
|
+
| 'gemini_image3_pro'
|
|
116
|
+
| 'gemini_image3.1_flash'
|
|
115
117
|
| 'eleven_multilingual_v2'
|
|
118
|
+
| 'eleven_v3'
|
|
116
119
|
| 'eleven_text_to_sound_v2'
|
|
117
120
|
| 'eleven_voice_isolation'
|
|
118
121
|
| 'eleven_voice_dubbing'
|
|
119
122
|
| 'eleven_multilingual_sts_v2'
|
|
123
|
+
| 'eleven_scribe_v2'
|
|
120
124
|
| 'gwm1_avatars'
|
|
121
125
|
| 'gwm1_avatar_async_audio_to_video'
|
|
126
|
+
| 'gwm1_avatar_async_text_to_video'
|
|
122
127
|
| 'voice_processing'
|
|
128
|
+
| 'seedance2'
|
|
123
129
|
>;
|
|
124
130
|
|
|
125
131
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
@@ -142,7 +148,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
142
148
|
export namespace Result {
|
|
143
149
|
export interface UsedCredit {
|
|
144
150
|
/**
|
|
145
|
-
* The number of credits spent on the model.
|
|
151
|
+
* The net number of credits spent on the model. May be negative if refunds
|
|
152
|
+
* exceeded charges on this day.
|
|
146
153
|
*/
|
|
147
154
|
amount: number;
|
|
148
155
|
|
|
@@ -161,14 +168,20 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
161
168
|
| 'veo3.1'
|
|
162
169
|
| 'veo3.1_fast'
|
|
163
170
|
| 'gemini_2.5_flash'
|
|
171
|
+
| 'gemini_image3_pro'
|
|
172
|
+
| 'gemini_image3.1_flash'
|
|
164
173
|
| 'eleven_multilingual_v2'
|
|
174
|
+
| 'eleven_v3'
|
|
165
175
|
| 'eleven_text_to_sound_v2'
|
|
166
176
|
| 'eleven_voice_isolation'
|
|
167
177
|
| 'eleven_voice_dubbing'
|
|
168
178
|
| 'eleven_multilingual_sts_v2'
|
|
179
|
+
| 'eleven_scribe_v2'
|
|
169
180
|
| 'gwm1_avatars'
|
|
170
181
|
| 'gwm1_avatar_async_audio_to_video'
|
|
171
|
-
| '
|
|
182
|
+
| 'gwm1_avatar_async_text_to_video'
|
|
183
|
+
| 'voice_processing'
|
|
184
|
+
| 'seedance2';
|
|
172
185
|
}
|
|
173
186
|
}
|
|
174
187
|
}
|
|
@@ -8,7 +8,9 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class RealtimeSessions extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Create a new realtime session with the specified model configuration.
|
|
11
|
+
* Create a new realtime session with the specified model configuration. The
|
|
12
|
+
* returned ID is also the conversation ID used later to fetch transcripts and
|
|
13
|
+
* recordings from the avatar conversation endpoints.
|
|
12
14
|
*/
|
|
13
15
|
create(
|
|
14
16
|
body: RealtimeSessionCreateParams,
|
|
@@ -18,7 +20,8 @@ export class RealtimeSessions extends APIResource {
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
|
-
* Get the status of a realtime session.
|
|
23
|
+
* Get the status of a realtime session. This endpoint uses the same ID that the
|
|
24
|
+
* avatar conversation endpoints later expose as the conversation ID.
|
|
22
25
|
*/
|
|
23
26
|
retrieve(id: string, options?: RequestOptions): APIPromise<RealtimeSessionRetrieveResponse> {
|
|
24
27
|
return this._client.get(path`/v1/realtime_sessions/${id}`, options);
|
|
@@ -37,7 +40,8 @@ export class RealtimeSessions extends APIResource {
|
|
|
37
40
|
|
|
38
41
|
export interface RealtimeSessionCreateResponse {
|
|
39
42
|
/**
|
|
40
|
-
* The ID of the created realtime session.
|
|
43
|
+
* The ID of the created realtime session. This same value is later used as the
|
|
44
|
+
* conversation ID in the avatar conversation endpoints.
|
|
41
45
|
*/
|
|
42
46
|
id: string;
|
|
43
47
|
}
|
|
@@ -59,7 +63,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
59
63
|
*/
|
|
60
64
|
export interface NotReady {
|
|
61
65
|
/**
|
|
62
|
-
* The realtime session ID.
|
|
66
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
67
|
+
* the avatar conversation endpoints.
|
|
63
68
|
*/
|
|
64
69
|
id: string;
|
|
65
70
|
|
|
@@ -82,7 +87,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
82
87
|
*/
|
|
83
88
|
export interface Ready {
|
|
84
89
|
/**
|
|
85
|
-
* The realtime session ID.
|
|
90
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
91
|
+
* the avatar conversation endpoints.
|
|
86
92
|
*/
|
|
87
93
|
id: string;
|
|
88
94
|
|
|
@@ -109,7 +115,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
109
115
|
*/
|
|
110
116
|
export interface Running {
|
|
111
117
|
/**
|
|
112
|
-
* The realtime session ID.
|
|
118
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
119
|
+
* the avatar conversation endpoints.
|
|
113
120
|
*/
|
|
114
121
|
id: string;
|
|
115
122
|
|
|
@@ -126,7 +133,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
126
133
|
*/
|
|
127
134
|
export interface Completed {
|
|
128
135
|
/**
|
|
129
|
-
* The realtime session ID.
|
|
136
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
137
|
+
* the avatar conversation endpoints.
|
|
130
138
|
*/
|
|
131
139
|
id: string;
|
|
132
140
|
|
|
@@ -148,7 +156,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
148
156
|
*/
|
|
149
157
|
export interface Failed {
|
|
150
158
|
/**
|
|
151
|
-
* The realtime session ID.
|
|
159
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
160
|
+
* the avatar conversation endpoints.
|
|
152
161
|
*/
|
|
153
162
|
id: string;
|
|
154
163
|
|
|
@@ -177,7 +186,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
177
186
|
*/
|
|
178
187
|
export interface Cancelled {
|
|
179
188
|
/**
|
|
180
|
-
* The realtime session ID.
|
|
189
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
190
|
+
* the avatar conversation endpoints.
|
|
181
191
|
*/
|
|
182
192
|
id: string;
|
|
183
193
|
|
|
@@ -32,6 +32,7 @@ export type TextToVideoCreateParams =
|
|
|
32
32
|
| TextToVideoCreateParams.Gen4_5
|
|
33
33
|
| TextToVideoCreateParams.Veo3_1
|
|
34
34
|
| TextToVideoCreateParams.Veo3_1Fast
|
|
35
|
+
| TextToVideoCreateParams.Seedance2
|
|
35
36
|
| TextToVideoCreateParams.Veo3;
|
|
36
37
|
|
|
37
38
|
export declare namespace TextToVideoCreateParams {
|
|
@@ -131,6 +132,48 @@ export declare namespace TextToVideoCreateParams {
|
|
|
131
132
|
duration?: 4 | 6 | 8;
|
|
132
133
|
}
|
|
133
134
|
|
|
135
|
+
export interface Seedance2 {
|
|
136
|
+
model: 'seedance2';
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* A non-empty string up to 3500 characters (measured in UTF-16 code units). This
|
|
140
|
+
* should describe in detail what should appear in the output.
|
|
141
|
+
*/
|
|
142
|
+
promptText: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
146
|
+
*/
|
|
147
|
+
audio?: boolean;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The number of seconds of duration for the output video.
|
|
151
|
+
*/
|
|
152
|
+
duration?: number;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The number of video generations to produce.
|
|
156
|
+
*/
|
|
157
|
+
outputCount?: number;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The resolution of the output video.
|
|
161
|
+
*/
|
|
162
|
+
ratio?:
|
|
163
|
+
| '992:432'
|
|
164
|
+
| '864:496'
|
|
165
|
+
| '752:560'
|
|
166
|
+
| '640:640'
|
|
167
|
+
| '560:752'
|
|
168
|
+
| '496:864'
|
|
169
|
+
| '1470:630'
|
|
170
|
+
| '1280:720'
|
|
171
|
+
| '1112:834'
|
|
172
|
+
| '960:960'
|
|
173
|
+
| '834:1112'
|
|
174
|
+
| '720:1280';
|
|
175
|
+
}
|
|
176
|
+
|
|
134
177
|
export interface Veo3 {
|
|
135
178
|
/**
|
|
136
179
|
* The number of seconds of duration for the output video.
|
|
@@ -37,68 +37,170 @@ export interface VideoToVideoCreateResponse {
|
|
|
37
37
|
id: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export
|
|
41
|
-
|
|
40
|
+
export type VideoToVideoCreateParams =
|
|
41
|
+
| VideoToVideoCreateParams.Gen4Aleph
|
|
42
|
+
| VideoToVideoCreateParams.Seedance2;
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*/
|
|
47
|
-
promptText: string;
|
|
44
|
+
export declare namespace VideoToVideoCreateParams {
|
|
45
|
+
export interface Gen4Aleph {
|
|
46
|
+
model: 'gen4_aleph';
|
|
48
47
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
/**
|
|
49
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
50
|
+
* should describe in detail what should appear in the output.
|
|
51
|
+
*/
|
|
52
|
+
promptText: string;
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
/**
|
|
55
|
+
* A HTTPS URL.
|
|
56
|
+
*/
|
|
57
|
+
videoUri: string;
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
ratio?: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
59
|
+
/**
|
|
60
|
+
* Settings that affect the behavior of the content moderation system.
|
|
61
|
+
*/
|
|
62
|
+
contentModeration?: Gen4Aleph.ContentModeration;
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Deprecated. This field is ignored. The resolution of the output
|
|
66
|
+
* video is determined by the input video.
|
|
67
|
+
*/
|
|
68
|
+
ratio?:
|
|
69
|
+
| '1280:720'
|
|
70
|
+
| '720:1280'
|
|
71
|
+
| '1104:832'
|
|
72
|
+
| '960:960'
|
|
73
|
+
| '832:1104'
|
|
74
|
+
| '1584:672'
|
|
75
|
+
| '848:480'
|
|
76
|
+
| '640:480';
|
|
70
77
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
seed?: number;
|
|
77
|
-
}
|
|
78
|
+
/**
|
|
79
|
+
* An array of references. Currently up to one reference is supported. See
|
|
80
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
81
|
+
*/
|
|
82
|
+
references?: Array<Gen4Aleph.Reference>;
|
|
78
83
|
|
|
79
|
-
export namespace VideoToVideoCreateParams {
|
|
80
|
-
/**
|
|
81
|
-
* Settings that affect the behavior of the content moderation system.
|
|
82
|
-
*/
|
|
83
|
-
export interface ContentModeration {
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
85
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
86
|
+
* get different results for the same other request parameters. Using the same seed
|
|
87
|
+
* integer for an identical request will produce similar results.
|
|
87
88
|
*/
|
|
88
|
-
|
|
89
|
+
seed?: number;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
export namespace Gen4Aleph {
|
|
93
|
+
/**
|
|
94
|
+
* Settings that affect the behavior of the content moderation system.
|
|
95
|
+
*/
|
|
96
|
+
export interface ContentModeration {
|
|
97
|
+
/**
|
|
98
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
99
|
+
* preventing generations that include recognizable public figures.
|
|
100
|
+
*/
|
|
101
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Passing an image reference allows the model to emulate the style or content of
|
|
106
|
+
* the reference in the output.
|
|
107
|
+
*/
|
|
108
|
+
export interface Reference {
|
|
109
|
+
type: 'image';
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* A HTTPS URL.
|
|
113
|
+
*/
|
|
114
|
+
uri: string;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface Seedance2 {
|
|
119
|
+
model: 'seedance2';
|
|
97
120
|
|
|
98
121
|
/**
|
|
99
122
|
* A HTTPS URL.
|
|
100
123
|
*/
|
|
101
|
-
|
|
124
|
+
promptVideo: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
128
|
+
*/
|
|
129
|
+
audio?: boolean;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The number of seconds of duration for the output video. Must be an integer from
|
|
133
|
+
* 4 to 15.
|
|
134
|
+
*/
|
|
135
|
+
duration?: number;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The number of video generations to produce.
|
|
139
|
+
*/
|
|
140
|
+
outputCount?: number;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
144
|
+
* the output video.
|
|
145
|
+
*/
|
|
146
|
+
promptText?: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The resolution of the output video.
|
|
150
|
+
*/
|
|
151
|
+
ratio?:
|
|
152
|
+
| '992:432'
|
|
153
|
+
| '864:496'
|
|
154
|
+
| '752:560'
|
|
155
|
+
| '640:640'
|
|
156
|
+
| '560:752'
|
|
157
|
+
| '496:864'
|
|
158
|
+
| '1470:630'
|
|
159
|
+
| '1280:720'
|
|
160
|
+
| '1112:834'
|
|
161
|
+
| '960:960'
|
|
162
|
+
| '834:1112'
|
|
163
|
+
| '720:1280';
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* An optional array of image references (up to 9). See
|
|
167
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
168
|
+
*/
|
|
169
|
+
references?: string | Array<Seedance2.PromptImage>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* An optional array of up to 3 video references. See
|
|
173
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
174
|
+
*/
|
|
175
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export namespace Seedance2 {
|
|
179
|
+
export interface PromptImage {
|
|
180
|
+
/**
|
|
181
|
+
* A HTTPS URL.
|
|
182
|
+
*/
|
|
183
|
+
uri: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
187
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
188
|
+
*/
|
|
189
|
+
position?: 'first' | 'last';
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A video reference allows the model to use the video as additional context for
|
|
194
|
+
* the output.
|
|
195
|
+
*/
|
|
196
|
+
export interface ReferenceVideo {
|
|
197
|
+
type: 'video';
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* A HTTPS URL.
|
|
201
|
+
*/
|
|
202
|
+
uri: string;
|
|
203
|
+
}
|
|
102
204
|
}
|
|
103
205
|
}
|
|
104
206
|
|
package/src/resources/voices.ts
CHANGED
|
@@ -281,10 +281,7 @@ export interface VoicePreviewResponse {
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
export interface VoiceCreateParams {
|
|
284
|
-
|
|
285
|
-
* The source configuration for creating the voice.
|
|
286
|
-
*/
|
|
287
|
-
from: VoiceCreateParams.Text | VoiceCreateParams.Audio;
|
|
284
|
+
from: VoiceCreateParams.Audio | VoiceCreateParams.Text;
|
|
288
285
|
|
|
289
286
|
/**
|
|
290
287
|
* A name for the voice.
|
|
@@ -298,9 +295,15 @@ export interface VoiceCreateParams {
|
|
|
298
295
|
}
|
|
299
296
|
|
|
300
297
|
export namespace VoiceCreateParams {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
298
|
+
export interface Audio {
|
|
299
|
+
/**
|
|
300
|
+
* A HTTPS URL.
|
|
301
|
+
*/
|
|
302
|
+
audio: string;
|
|
303
|
+
|
|
304
|
+
type: 'audio';
|
|
305
|
+
}
|
|
306
|
+
|
|
304
307
|
export interface Text {
|
|
305
308
|
/**
|
|
306
309
|
* The voice design model to use. Prefer eleven_ttv_v3 (latest);
|
|
@@ -316,15 +319,6 @@ export namespace VoiceCreateParams {
|
|
|
316
319
|
|
|
317
320
|
type: 'text';
|
|
318
321
|
}
|
|
319
|
-
|
|
320
|
-
export interface Audio {
|
|
321
|
-
/**
|
|
322
|
-
* A HTTPS URL.
|
|
323
|
-
*/
|
|
324
|
-
audio: string;
|
|
325
|
-
|
|
326
|
-
type: 'audio';
|
|
327
|
-
}
|
|
328
322
|
}
|
|
329
323
|
|
|
330
324
|
export interface VoiceListParams extends CursorPageParams {}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.20.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.20.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.20.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.20.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|