@runwayml/sdk 3.8.0 → 3.10.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 +25 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/lib/polling.d.mts +2 -2
- package/lib/polling.d.mts.map +1 -1
- package/lib/polling.d.ts +2 -2
- package/lib/polling.d.ts.map +1 -1
- package/lib/polling.js +1 -1
- package/lib/polling.js.map +1 -1
- package/lib/polling.mjs +1 -1
- package/lib/polling.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/character-performance.d.mts +3 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +3 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +3 -0
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +3 -0
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization.d.mts +18 -489
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +18 -489
- package/resources/organization.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +3 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +3 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +3 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +3 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/tasks.d.mts +94 -32
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +94 -32
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +54 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +54 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +3 -0
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -0
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +3 -0
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +3 -0
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +3 -0
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +3 -0
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +3 -0
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +3 -0
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +3 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +3 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +3 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +3 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/src/client.ts +1 -1
- package/src/lib/polling.ts +4 -4
- package/src/resources/character-performance.ts +3 -0
- package/src/resources/image-to-video.ts +3 -0
- package/src/resources/organization.ts +31 -583
- package/src/resources/sound-effect.ts +3 -0
- package/src/resources/speech-to-speech.ts +3 -0
- package/src/resources/tasks.ts +116 -32
- package/src/resources/text-to-image.ts +91 -0
- package/src/resources/text-to-speech.ts +3 -0
- package/src/resources/text-to-video.ts +3 -0
- package/src/resources/video-to-video.ts +3 -0
- package/src/resources/video-upscale.ts +3 -0
- package/src/resources/voice-dubbing.ts +3 -0
- package/src/resources/voice-isolation.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/resources/tasks.ts
CHANGED
|
@@ -35,56 +35,140 @@ export class Tasks extends APIResource {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
/**
|
|
39
|
+
* A pending task
|
|
40
|
+
*/
|
|
41
|
+
export type TaskRetrieveResponse =
|
|
42
|
+
| TaskRetrieveResponse.Pending
|
|
43
|
+
| TaskRetrieveResponse.Throttled
|
|
44
|
+
| TaskRetrieveResponse.Cancelled
|
|
45
|
+
| TaskRetrieveResponse.Running
|
|
46
|
+
| TaskRetrieveResponse.Failed
|
|
47
|
+
| TaskRetrieveResponse.Succeeded;
|
|
43
48
|
|
|
49
|
+
export namespace TaskRetrieveResponse {
|
|
44
50
|
/**
|
|
45
|
-
*
|
|
51
|
+
* A pending task
|
|
46
52
|
*/
|
|
47
|
-
|
|
53
|
+
export interface Pending {
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the task being returned.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The timestamp that the task was submitted at.
|
|
61
|
+
*/
|
|
62
|
+
createdAt: string;
|
|
63
|
+
|
|
64
|
+
status: 'PENDING';
|
|
65
|
+
}
|
|
48
66
|
|
|
49
67
|
/**
|
|
50
|
-
*
|
|
51
|
-
* - `THROTTLED` tasks are waiting to be enqueued until other jobs have finished
|
|
52
|
-
* running.
|
|
53
|
-
* - `RUNNING` tasks are currently being processed.
|
|
54
|
-
* - `SUCCEEDED` tasks have completed successfully.
|
|
55
|
-
* - `FAILED` tasks have failed.
|
|
56
|
-
* - `CANCELLED` tasks have been aborted.
|
|
68
|
+
* A throttled task
|
|
57
69
|
*/
|
|
58
|
-
|
|
70
|
+
export interface Throttled {
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the task being returned.
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The timestamp that the task was submitted at.
|
|
78
|
+
*/
|
|
79
|
+
createdAt: string;
|
|
80
|
+
|
|
81
|
+
status: 'THROTTLED';
|
|
82
|
+
}
|
|
59
83
|
|
|
60
84
|
/**
|
|
61
|
-
*
|
|
62
|
-
* failure.
|
|
85
|
+
* A cancelled or deleted task
|
|
63
86
|
*/
|
|
64
|
-
|
|
87
|
+
export interface Cancelled {
|
|
88
|
+
/**
|
|
89
|
+
* The ID of the task being returned.
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The timestamp that the task was submitted at.
|
|
95
|
+
*/
|
|
96
|
+
createdAt: string;
|
|
97
|
+
|
|
98
|
+
status: 'CANCELLED';
|
|
99
|
+
}
|
|
65
100
|
|
|
66
101
|
/**
|
|
67
|
-
*
|
|
68
|
-
* code. This is a dot-separated string, with the leftmost segment being the most
|
|
69
|
-
* generic and the rightmost segment being the most specific. For example,
|
|
70
|
-
* `SAFETY.INPUT.TEXT` would indicate that the task failed due to a content
|
|
71
|
-
* moderation error on the input text.
|
|
102
|
+
* A running task
|
|
72
103
|
*/
|
|
73
|
-
|
|
104
|
+
export interface Running {
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the task being returned.
|
|
107
|
+
*/
|
|
108
|
+
id: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The timestamp that the task was submitted at.
|
|
112
|
+
*/
|
|
113
|
+
createdAt: string;
|
|
114
|
+
|
|
115
|
+
progress: number;
|
|
116
|
+
|
|
117
|
+
status: 'RUNNING';
|
|
118
|
+
}
|
|
74
119
|
|
|
75
120
|
/**
|
|
76
|
-
*
|
|
77
|
-
* will be a URL that returns an output from the task. URLs expire within 24-48
|
|
78
|
-
* hours; fetch the task again to get fresh URLs. It is expected that you download
|
|
79
|
-
* the assets at these URLs and store them in your own storage system.
|
|
121
|
+
* A failed task
|
|
80
122
|
*/
|
|
81
|
-
|
|
123
|
+
export interface Failed {
|
|
124
|
+
/**
|
|
125
|
+
* The ID of the task being returned.
|
|
126
|
+
*/
|
|
127
|
+
id: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The timestamp that the task was submitted at.
|
|
131
|
+
*/
|
|
132
|
+
createdAt: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* A human-friendly reason for the failure. We do not recommend returning this to
|
|
136
|
+
* users directly without adding context.
|
|
137
|
+
*/
|
|
138
|
+
failure: string;
|
|
139
|
+
|
|
140
|
+
status: 'FAILED';
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* A machine-readable error code for the failure. See
|
|
144
|
+
* https://docs.dev.runwayml.com/errors/task-failures/ for more information.
|
|
145
|
+
*/
|
|
146
|
+
failureCode?: string;
|
|
147
|
+
}
|
|
82
148
|
|
|
83
149
|
/**
|
|
84
|
-
*
|
|
85
|
-
* between 0 and 1 representing the progress of the generation.
|
|
150
|
+
* A succeeded task
|
|
86
151
|
*/
|
|
87
|
-
|
|
152
|
+
export interface Succeeded {
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the task being returned.
|
|
155
|
+
*/
|
|
156
|
+
id: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The timestamp that the task was submitted at.
|
|
160
|
+
*/
|
|
161
|
+
createdAt: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* An array of URLs that return the output of the task. These URLs will expire
|
|
165
|
+
* within 24-48 hours; fetch the task again to get fresh URLs. It is expected that
|
|
166
|
+
* you download the assets at these URLs and store them in your own storage system.
|
|
167
|
+
*/
|
|
168
|
+
output: Array<string>;
|
|
169
|
+
|
|
170
|
+
status: 'SUCCEEDED';
|
|
171
|
+
}
|
|
88
172
|
}
|
|
89
173
|
|
|
90
174
|
export declare namespace Tasks {
|
|
@@ -19,12 +19,16 @@ export class TextToImage extends APIResource {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface TextToImageCreateResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
24
|
+
*/
|
|
22
25
|
id: string;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export type TextToImageCreateParams =
|
|
26
29
|
| TextToImageCreateParams.Gen4ImageTurbo
|
|
27
30
|
| TextToImageCreateParams.Gen4Image
|
|
31
|
+
| TextToImageCreateParams.Gemini3Pro
|
|
28
32
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
29
33
|
|
|
30
34
|
export declare namespace TextToImageCreateParams {
|
|
@@ -84,6 +88,10 @@ export declare namespace TextToImageCreateParams {
|
|
|
84
88
|
*/
|
|
85
89
|
uri: string;
|
|
86
90
|
|
|
91
|
+
/**
|
|
92
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
93
|
+
* prompt text.
|
|
94
|
+
*/
|
|
87
95
|
tag?: string;
|
|
88
96
|
}
|
|
89
97
|
|
|
@@ -166,6 +174,85 @@ export declare namespace TextToImageCreateParams {
|
|
|
166
174
|
*/
|
|
167
175
|
uri: string;
|
|
168
176
|
|
|
177
|
+
/**
|
|
178
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
179
|
+
* prompt text.
|
|
180
|
+
*/
|
|
181
|
+
tag?: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface Gemini3Pro {
|
|
186
|
+
model: 'gemini_3_pro';
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
190
|
+
* should describe in detail what should appear in the output.
|
|
191
|
+
*/
|
|
192
|
+
promptText: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The resolution of the output image.
|
|
196
|
+
*/
|
|
197
|
+
ratio:
|
|
198
|
+
| '1344:768'
|
|
199
|
+
| '768:1344'
|
|
200
|
+
| '1024:1024'
|
|
201
|
+
| '1184:864'
|
|
202
|
+
| '864:1184'
|
|
203
|
+
| '1536:672'
|
|
204
|
+
| '832:1248'
|
|
205
|
+
| '1248:832'
|
|
206
|
+
| '896:1152'
|
|
207
|
+
| '1152:896'
|
|
208
|
+
| '2048:2048'
|
|
209
|
+
| '1696:2528'
|
|
210
|
+
| '2528:1696'
|
|
211
|
+
| '1792:2400'
|
|
212
|
+
| '2400:1792'
|
|
213
|
+
| '1856:2304'
|
|
214
|
+
| '2304:1856'
|
|
215
|
+
| '1536:2752'
|
|
216
|
+
| '2752:1536'
|
|
217
|
+
| '3168:1344'
|
|
218
|
+
| '4096:4096'
|
|
219
|
+
| '3392:5056'
|
|
220
|
+
| '5056:3392'
|
|
221
|
+
| '3584:4800'
|
|
222
|
+
| '4800:3584'
|
|
223
|
+
| '3712:4608'
|
|
224
|
+
| '4608:3712'
|
|
225
|
+
| '3072:5504'
|
|
226
|
+
| '5504:3072'
|
|
227
|
+
| '6336:2688';
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
231
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
232
|
+
* character consistency, and up to nine of those images can pass
|
|
233
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
234
|
+
* output.
|
|
235
|
+
*/
|
|
236
|
+
referenceImages?: Array<Gemini3Pro.ReferenceImage>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export namespace Gemini3Pro {
|
|
240
|
+
export interface ReferenceImage {
|
|
241
|
+
/**
|
|
242
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
243
|
+
* object that appears in the output.
|
|
244
|
+
*/
|
|
245
|
+
subject: 'object' | 'human';
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* A HTTPS URL.
|
|
249
|
+
*/
|
|
250
|
+
uri: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
254
|
+
* prompt text.
|
|
255
|
+
*/
|
|
169
256
|
tag?: string;
|
|
170
257
|
}
|
|
171
258
|
}
|
|
@@ -208,6 +295,10 @@ export declare namespace TextToImageCreateParams {
|
|
|
208
295
|
*/
|
|
209
296
|
uri: string;
|
|
210
297
|
|
|
298
|
+
/**
|
|
299
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
300
|
+
* prompt text.
|
|
301
|
+
*/
|
|
211
302
|
tag?: string;
|
|
212
303
|
}
|
|
213
304
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.10.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.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.10.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|