@runwayml/sdk 3.19.0 → 3.21.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 +43 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.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.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- 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 +41 -41
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +41 -41
- 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-image.d.mts +89 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +89 -1
- package/resources/text-to-image.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/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/documents.ts +16 -2
- package/src/resources/image-to-video.ts +48 -48
- package/src/resources/organization.ts +17 -2
- package/src/resources/realtime-sessions.ts +19 -9
- package/src/resources/text-to-image.ts +168 -0
- 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
|
@@ -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 {
|
|
@@ -40,8 +40,8 @@ export interface ImageToVideoCreateResponse {
|
|
|
40
40
|
export type ImageToVideoCreateParams =
|
|
41
41
|
| ImageToVideoCreateParams.Gen4_5
|
|
42
42
|
| ImageToVideoCreateParams.Gen4Turbo
|
|
43
|
-
| ImageToVideoCreateParams.Gen3aTurbo
|
|
44
43
|
| ImageToVideoCreateParams.Veo3_1
|
|
44
|
+
| ImageToVideoCreateParams.Gen3aTurbo
|
|
45
45
|
| ImageToVideoCreateParams.Veo3_1Fast
|
|
46
46
|
| ImageToVideoCreateParams.Veo3;
|
|
47
47
|
|
|
@@ -173,44 +173,39 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
export interface
|
|
177
|
-
model: '
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* A HTTPS URL.
|
|
181
|
-
*/
|
|
182
|
-
promptImage: string | Array<Gen3aTurbo.PromptImage>;
|
|
176
|
+
export interface Veo3_1 {
|
|
177
|
+
model: 'veo3.1';
|
|
183
178
|
|
|
184
179
|
/**
|
|
185
|
-
*
|
|
186
|
-
*
|
|
180
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
181
|
+
* array with a first frame and optionally a last frame. This model does not
|
|
182
|
+
* support generating with only a last frame.
|
|
187
183
|
*/
|
|
188
|
-
|
|
184
|
+
promptImage: string | Array<Veo3_1.PromptImage>;
|
|
189
185
|
|
|
190
186
|
/**
|
|
191
|
-
*
|
|
187
|
+
* The resolution of the output video.
|
|
192
188
|
*/
|
|
193
|
-
|
|
189
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
194
190
|
|
|
195
191
|
/**
|
|
196
|
-
*
|
|
192
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
197
193
|
*/
|
|
198
|
-
|
|
194
|
+
audio?: boolean;
|
|
199
195
|
|
|
200
196
|
/**
|
|
201
|
-
* The
|
|
197
|
+
* The number of seconds of duration for the output video.
|
|
202
198
|
*/
|
|
203
|
-
|
|
199
|
+
duration?: 4 | 6 | 8;
|
|
204
200
|
|
|
205
201
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* integer for an identical request will produce similar results.
|
|
202
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
203
|
+
* should describe in detail what should appear in the output.
|
|
209
204
|
*/
|
|
210
|
-
|
|
205
|
+
promptText?: string;
|
|
211
206
|
}
|
|
212
207
|
|
|
213
|
-
export namespace
|
|
208
|
+
export namespace Veo3_1 {
|
|
214
209
|
export interface PromptImage {
|
|
215
210
|
/**
|
|
216
211
|
* The position of the image in the output video. "first" will use the image as the
|
|
@@ -224,52 +219,46 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
224
219
|
*/
|
|
225
220
|
uri: string;
|
|
226
221
|
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface Gen3aTurbo {
|
|
225
|
+
model: 'gen3a_turbo';
|
|
227
226
|
|
|
228
227
|
/**
|
|
229
|
-
*
|
|
228
|
+
* A HTTPS URL.
|
|
230
229
|
*/
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* When set to `low`, the content moderation system will be less strict about
|
|
234
|
-
* preventing generations that include recognizable public figures.
|
|
235
|
-
*/
|
|
236
|
-
publicFigureThreshold?: 'auto' | 'low';
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export interface Veo3_1 {
|
|
241
|
-
model: 'veo3.1';
|
|
230
|
+
promptImage: string | Array<Gen3aTurbo.PromptImage>;
|
|
242
231
|
|
|
243
232
|
/**
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
* support generating with only a last frame.
|
|
233
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
234
|
+
* should describe in detail what should appear in the output.
|
|
247
235
|
*/
|
|
248
|
-
|
|
236
|
+
promptText: string;
|
|
249
237
|
|
|
250
238
|
/**
|
|
251
|
-
*
|
|
239
|
+
* Settings that affect the behavior of the content moderation system.
|
|
252
240
|
*/
|
|
253
|
-
|
|
241
|
+
contentModeration?: Gen3aTurbo.ContentModeration;
|
|
254
242
|
|
|
255
243
|
/**
|
|
256
|
-
*
|
|
244
|
+
* The duration of the output video in seconds.
|
|
257
245
|
*/
|
|
258
|
-
|
|
246
|
+
duration?: 5 | 10;
|
|
259
247
|
|
|
260
248
|
/**
|
|
261
|
-
* The
|
|
249
|
+
* The resolution of the output video.
|
|
262
250
|
*/
|
|
263
|
-
|
|
251
|
+
ratio?: '768:1280' | '1280:768';
|
|
264
252
|
|
|
265
253
|
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
254
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
255
|
+
* get different results for the same other request parameters. Using the same seed
|
|
256
|
+
* integer for an identical request will produce similar results.
|
|
268
257
|
*/
|
|
269
|
-
|
|
258
|
+
seed?: number;
|
|
270
259
|
}
|
|
271
260
|
|
|
272
|
-
export namespace
|
|
261
|
+
export namespace Gen3aTurbo {
|
|
273
262
|
export interface PromptImage {
|
|
274
263
|
/**
|
|
275
264
|
* The position of the image in the output video. "first" will use the image as the
|
|
@@ -283,6 +272,17 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
283
272
|
*/
|
|
284
273
|
uri: string;
|
|
285
274
|
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Settings that affect the behavior of the content moderation system.
|
|
278
|
+
*/
|
|
279
|
+
export interface ContentModeration {
|
|
280
|
+
/**
|
|
281
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
282
|
+
* preventing generations that include recognizable public figures.
|
|
283
|
+
*/
|
|
284
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
285
|
+
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
export interface Veo3_1Fast {
|
|
@@ -106,20 +106,27 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
106
106
|
| 'gen4_turbo'
|
|
107
107
|
| 'gen4_image'
|
|
108
108
|
| 'gen4_image_turbo'
|
|
109
|
+
| 'gpt_image_2'
|
|
109
110
|
| 'act_two'
|
|
110
111
|
| 'gen4_aleph'
|
|
111
112
|
| 'veo3'
|
|
112
113
|
| 'veo3.1'
|
|
113
114
|
| 'veo3.1_fast'
|
|
114
115
|
| 'gemini_2.5_flash'
|
|
116
|
+
| 'gemini_image3_pro'
|
|
117
|
+
| 'gemini_image3.1_flash'
|
|
115
118
|
| 'eleven_multilingual_v2'
|
|
119
|
+
| 'eleven_v3'
|
|
116
120
|
| 'eleven_text_to_sound_v2'
|
|
117
121
|
| 'eleven_voice_isolation'
|
|
118
122
|
| 'eleven_voice_dubbing'
|
|
119
123
|
| 'eleven_multilingual_sts_v2'
|
|
124
|
+
| 'eleven_scribe_v2'
|
|
120
125
|
| 'gwm1_avatars'
|
|
121
126
|
| 'gwm1_avatar_async_audio_to_video'
|
|
127
|
+
| 'gwm1_avatar_async_text_to_video'
|
|
122
128
|
| 'voice_processing'
|
|
129
|
+
| 'seedance2'
|
|
123
130
|
>;
|
|
124
131
|
|
|
125
132
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
@@ -142,7 +149,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
142
149
|
export namespace Result {
|
|
143
150
|
export interface UsedCredit {
|
|
144
151
|
/**
|
|
145
|
-
* The number of credits spent on the model.
|
|
152
|
+
* The net number of credits spent on the model. May be negative if refunds
|
|
153
|
+
* exceeded charges on this day.
|
|
146
154
|
*/
|
|
147
155
|
amount: number;
|
|
148
156
|
|
|
@@ -155,20 +163,27 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
155
163
|
| 'gen4_turbo'
|
|
156
164
|
| 'gen4_image'
|
|
157
165
|
| 'gen4_image_turbo'
|
|
166
|
+
| 'gpt_image_2'
|
|
158
167
|
| 'act_two'
|
|
159
168
|
| 'gen4_aleph'
|
|
160
169
|
| 'veo3'
|
|
161
170
|
| 'veo3.1'
|
|
162
171
|
| 'veo3.1_fast'
|
|
163
172
|
| 'gemini_2.5_flash'
|
|
173
|
+
| 'gemini_image3_pro'
|
|
174
|
+
| 'gemini_image3.1_flash'
|
|
164
175
|
| 'eleven_multilingual_v2'
|
|
176
|
+
| 'eleven_v3'
|
|
165
177
|
| 'eleven_text_to_sound_v2'
|
|
166
178
|
| 'eleven_voice_isolation'
|
|
167
179
|
| 'eleven_voice_dubbing'
|
|
168
180
|
| 'eleven_multilingual_sts_v2'
|
|
181
|
+
| 'eleven_scribe_v2'
|
|
169
182
|
| 'gwm1_avatars'
|
|
170
183
|
| 'gwm1_avatar_async_audio_to_video'
|
|
171
|
-
| '
|
|
184
|
+
| 'gwm1_avatar_async_text_to_video'
|
|
185
|
+
| 'voice_processing'
|
|
186
|
+
| 'seedance2';
|
|
172
187
|
}
|
|
173
188
|
}
|
|
174
189
|
}
|
|
@@ -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
|
|
|
@@ -31,6 +31,8 @@ export interface TextToImageCreateResponse {
|
|
|
31
31
|
export type TextToImageCreateParams =
|
|
32
32
|
| TextToImageCreateParams.Gen4ImageTurbo
|
|
33
33
|
| TextToImageCreateParams.Gen4Image
|
|
34
|
+
| TextToImageCreateParams.GptImage2
|
|
35
|
+
| TextToImageCreateParams.GeminiImage3Pro
|
|
34
36
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
35
37
|
|
|
36
38
|
export declare namespace TextToImageCreateParams {
|
|
@@ -184,6 +186,172 @@ export declare namespace TextToImageCreateParams {
|
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
188
|
|
|
189
|
+
export interface GptImage2 {
|
|
190
|
+
model: 'gpt_image_2';
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A non-empty string up to 32,000 characters describing the desired image.
|
|
194
|
+
*/
|
|
195
|
+
promptText: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
199
|
+
* to let the model choose.
|
|
200
|
+
*/
|
|
201
|
+
ratio:
|
|
202
|
+
| '2048:880'
|
|
203
|
+
| '1920:1088'
|
|
204
|
+
| '1920:1280'
|
|
205
|
+
| '1920:1440'
|
|
206
|
+
| '1920:1536'
|
|
207
|
+
| '1920:1920'
|
|
208
|
+
| '1536:1920'
|
|
209
|
+
| '1440:1920'
|
|
210
|
+
| '1280:1920'
|
|
211
|
+
| '1088:1920'
|
|
212
|
+
| '2912:1248'
|
|
213
|
+
| '2560:1440'
|
|
214
|
+
| '2560:1712'
|
|
215
|
+
| '2560:1920'
|
|
216
|
+
| '2560:2048'
|
|
217
|
+
| '2560:2560'
|
|
218
|
+
| '2048:2560'
|
|
219
|
+
| '1920:2560'
|
|
220
|
+
| '1712:2560'
|
|
221
|
+
| '1440:2560'
|
|
222
|
+
| '3840:1648'
|
|
223
|
+
| '3840:2160'
|
|
224
|
+
| '3504:2336'
|
|
225
|
+
| '3264:2448'
|
|
226
|
+
| '3200:2560'
|
|
227
|
+
| '2880:2880'
|
|
228
|
+
| '2560:3200'
|
|
229
|
+
| '2448:3264'
|
|
230
|
+
| '2336:3504'
|
|
231
|
+
| '2160:3840'
|
|
232
|
+
| 'auto';
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Background treatment. Defaults to `auto`, which lets the model pick.
|
|
236
|
+
* `transparent` is not supported by this model.
|
|
237
|
+
*/
|
|
238
|
+
background?: 'opaque' | 'auto';
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
242
|
+
* number of credits consumed by the generation.
|
|
243
|
+
*/
|
|
244
|
+
outputCount?: number;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
248
|
+
*/
|
|
249
|
+
quality?: 'low' | 'medium' | 'high' | 'auto';
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
253
|
+
* output.
|
|
254
|
+
*/
|
|
255
|
+
referenceImages?: Array<GptImage2.ReferenceImage>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export namespace GptImage2 {
|
|
259
|
+
export interface ReferenceImage {
|
|
260
|
+
/**
|
|
261
|
+
* A HTTPS URL.
|
|
262
|
+
*/
|
|
263
|
+
uri: string;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
267
|
+
* in prompt text.
|
|
268
|
+
*/
|
|
269
|
+
tag?: string;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface GeminiImage3Pro {
|
|
274
|
+
model: 'gemini_image3_pro';
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* A non-empty string up to 5,500 characters (measured in UTF-16 code units). This
|
|
278
|
+
* should describe in detail what should appear in the output.
|
|
279
|
+
*/
|
|
280
|
+
promptText: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* The resolution of the output image.
|
|
284
|
+
*/
|
|
285
|
+
ratio:
|
|
286
|
+
| '1344:768'
|
|
287
|
+
| '768:1344'
|
|
288
|
+
| '1024:1024'
|
|
289
|
+
| '1184:864'
|
|
290
|
+
| '864:1184'
|
|
291
|
+
| '1536:672'
|
|
292
|
+
| '832:1248'
|
|
293
|
+
| '1248:832'
|
|
294
|
+
| '896:1152'
|
|
295
|
+
| '1152:896'
|
|
296
|
+
| '2048:2048'
|
|
297
|
+
| '1696:2528'
|
|
298
|
+
| '2528:1696'
|
|
299
|
+
| '1792:2400'
|
|
300
|
+
| '2400:1792'
|
|
301
|
+
| '1856:2304'
|
|
302
|
+
| '2304:1856'
|
|
303
|
+
| '1536:2752'
|
|
304
|
+
| '2752:1536'
|
|
305
|
+
| '3168:1344'
|
|
306
|
+
| '4096:4096'
|
|
307
|
+
| '3392:5056'
|
|
308
|
+
| '5056:3392'
|
|
309
|
+
| '3584:4800'
|
|
310
|
+
| '4800:3584'
|
|
311
|
+
| '3712:4608'
|
|
312
|
+
| '4608:3712'
|
|
313
|
+
| '3072:5504'
|
|
314
|
+
| '5504:3072'
|
|
315
|
+
| '6336:2688';
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
319
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
320
|
+
* once.
|
|
321
|
+
*/
|
|
322
|
+
outputCount?: 1 | 4;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
326
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
327
|
+
* character consistency, and up to nine of those images can pass
|
|
328
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
329
|
+
* output.
|
|
330
|
+
*/
|
|
331
|
+
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export namespace GeminiImage3Pro {
|
|
335
|
+
export interface ReferenceImage {
|
|
336
|
+
/**
|
|
337
|
+
* A HTTPS URL.
|
|
338
|
+
*/
|
|
339
|
+
uri: string;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
343
|
+
* object that appears in the output.
|
|
344
|
+
*/
|
|
345
|
+
subject?: 'object' | 'human';
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
349
|
+
* prompt text.
|
|
350
|
+
*/
|
|
351
|
+
tag?: string;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
187
355
|
export interface Gemini2_5Flash {
|
|
188
356
|
model: 'gemini_2.5_flash';
|
|
189
357
|
|
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.21.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.21.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.21.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.21.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|