@runwayml/sdk 3.11.0 → 3.15.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.
Files changed (226) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/LICENSE +1 -1
  3. package/README.md +43 -2
  4. package/client.d.mts +53 -4
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +53 -4
  7. package/client.d.ts.map +1 -1
  8. package/client.js +75 -20
  9. package/client.js.map +1 -1
  10. package/client.mjs +75 -20
  11. package/client.mjs.map +1 -1
  12. package/core/pagination.d.mts +54 -0
  13. package/core/pagination.d.mts.map +1 -0
  14. package/core/pagination.d.ts +54 -0
  15. package/core/pagination.d.ts.map +1 -0
  16. package/core/pagination.js +101 -0
  17. package/core/pagination.js.map +1 -0
  18. package/core/pagination.mjs +95 -0
  19. package/core/pagination.mjs.map +1 -0
  20. package/index.d.mts +1 -0
  21. package/index.d.mts.map +1 -1
  22. package/index.d.ts +1 -0
  23. package/index.d.ts.map +1 -1
  24. package/index.js +3 -1
  25. package/index.js.map +1 -1
  26. package/index.mjs +1 -0
  27. package/index.mjs.map +1 -1
  28. package/internal/parse.d.mts.map +1 -1
  29. package/internal/parse.d.ts.map +1 -1
  30. package/internal/parse.js +5 -0
  31. package/internal/parse.js.map +1 -1
  32. package/internal/parse.mjs +5 -0
  33. package/internal/parse.mjs.map +1 -1
  34. package/internal/tslib.js +17 -17
  35. package/internal/utils/query.d.mts +5 -0
  36. package/internal/utils/query.d.mts.map +1 -0
  37. package/internal/utils/query.d.ts +5 -0
  38. package/internal/utils/query.d.ts.map +1 -0
  39. package/internal/utils/query.js +23 -0
  40. package/internal/utils/query.js.map +1 -0
  41. package/internal/utils/query.mjs +20 -0
  42. package/internal/utils/query.mjs.map +1 -0
  43. package/internal/utils.d.mts +1 -0
  44. package/internal/utils.d.ts +1 -0
  45. package/internal/utils.js +1 -0
  46. package/internal/utils.js.map +1 -1
  47. package/internal/utils.mjs +1 -0
  48. package/package.json +11 -1
  49. package/pagination.d.mts +2 -0
  50. package/pagination.d.mts.map +1 -0
  51. package/pagination.d.ts +2 -0
  52. package/pagination.d.ts.map +1 -0
  53. package/pagination.js +6 -0
  54. package/pagination.js.map +1 -0
  55. package/pagination.mjs +2 -0
  56. package/pagination.mjs.map +1 -0
  57. package/resources/avatars.d.mts +1308 -0
  58. package/resources/avatars.d.mts.map +1 -0
  59. package/resources/avatars.d.ts +1308 -0
  60. package/resources/avatars.d.ts.map +1 -0
  61. package/resources/avatars.js +87 -0
  62. package/resources/avatars.js.map +1 -0
  63. package/resources/avatars.mjs +83 -0
  64. package/resources/avatars.mjs.map +1 -0
  65. package/resources/character-performance.d.mts +3 -0
  66. package/resources/character-performance.d.mts.map +1 -1
  67. package/resources/character-performance.d.ts +3 -0
  68. package/resources/character-performance.d.ts.map +1 -1
  69. package/resources/character-performance.js +3 -0
  70. package/resources/character-performance.js.map +1 -1
  71. package/resources/character-performance.mjs +3 -0
  72. package/resources/character-performance.mjs.map +1 -1
  73. package/resources/documents.d.mts +209 -0
  74. package/resources/documents.d.mts.map +1 -0
  75. package/resources/documents.d.ts +209 -0
  76. package/resources/documents.d.ts.map +1 -0
  77. package/resources/documents.js +75 -0
  78. package/resources/documents.js.map +1 -0
  79. package/resources/documents.mjs +71 -0
  80. package/resources/documents.mjs.map +1 -0
  81. package/resources/image-to-video.d.mts +58 -1
  82. package/resources/image-to-video.d.mts.map +1 -1
  83. package/resources/image-to-video.d.ts +58 -1
  84. package/resources/image-to-video.d.ts.map +1 -1
  85. package/resources/image-to-video.js +3 -0
  86. package/resources/image-to-video.js.map +1 -1
  87. package/resources/image-to-video.mjs +3 -0
  88. package/resources/image-to-video.mjs.map +1 -1
  89. package/resources/index.d.mts +4 -1
  90. package/resources/index.d.mts.map +1 -1
  91. package/resources/index.d.ts +4 -1
  92. package/resources/index.d.ts.map +1 -1
  93. package/resources/index.js +9 -3
  94. package/resources/index.js.map +1 -1
  95. package/resources/index.mjs +4 -1
  96. package/resources/index.mjs.map +1 -1
  97. package/resources/organization.d.mts +2 -2
  98. package/resources/organization.d.mts.map +1 -1
  99. package/resources/organization.d.ts +2 -2
  100. package/resources/organization.d.ts.map +1 -1
  101. package/resources/realtime-sessions.d.mts +180 -0
  102. package/resources/realtime-sessions.d.mts.map +1 -0
  103. package/resources/realtime-sessions.d.ts +180 -0
  104. package/resources/realtime-sessions.d.ts.map +1 -0
  105. package/resources/realtime-sessions.js +32 -0
  106. package/resources/realtime-sessions.js.map +1 -0
  107. package/resources/realtime-sessions.mjs +28 -0
  108. package/resources/realtime-sessions.mjs.map +1 -0
  109. package/resources/sound-effect.d.mts +3 -0
  110. package/resources/sound-effect.d.mts.map +1 -1
  111. package/resources/sound-effect.d.ts +3 -0
  112. package/resources/sound-effect.d.ts.map +1 -1
  113. package/resources/sound-effect.js +3 -0
  114. package/resources/sound-effect.js.map +1 -1
  115. package/resources/sound-effect.mjs +3 -0
  116. package/resources/sound-effect.mjs.map +1 -1
  117. package/resources/speech-to-speech.d.mts +3 -0
  118. package/resources/speech-to-speech.d.mts.map +1 -1
  119. package/resources/speech-to-speech.d.ts +3 -0
  120. package/resources/speech-to-speech.d.ts.map +1 -1
  121. package/resources/speech-to-speech.js +3 -0
  122. package/resources/speech-to-speech.js.map +1 -1
  123. package/resources/speech-to-speech.mjs +3 -0
  124. package/resources/speech-to-speech.mjs.map +1 -1
  125. package/resources/tasks.d.mts +3 -0
  126. package/resources/tasks.d.mts.map +1 -1
  127. package/resources/tasks.d.ts +3 -0
  128. package/resources/tasks.d.ts.map +1 -1
  129. package/resources/tasks.js +3 -0
  130. package/resources/tasks.js.map +1 -1
  131. package/resources/tasks.mjs +3 -0
  132. package/resources/tasks.mjs.map +1 -1
  133. package/resources/text-to-image.d.mts +3 -0
  134. package/resources/text-to-image.d.mts.map +1 -1
  135. package/resources/text-to-image.d.ts +3 -0
  136. package/resources/text-to-image.d.ts.map +1 -1
  137. package/resources/text-to-image.js +3 -0
  138. package/resources/text-to-image.js.map +1 -1
  139. package/resources/text-to-image.mjs +3 -0
  140. package/resources/text-to-image.mjs.map +1 -1
  141. package/resources/text-to-speech.d.mts +3 -0
  142. package/resources/text-to-speech.d.mts.map +1 -1
  143. package/resources/text-to-speech.d.ts +3 -0
  144. package/resources/text-to-speech.d.ts.map +1 -1
  145. package/resources/text-to-speech.js +3 -0
  146. package/resources/text-to-speech.js.map +1 -1
  147. package/resources/text-to-speech.mjs +3 -0
  148. package/resources/text-to-speech.mjs.map +1 -1
  149. package/resources/text-to-video.d.mts +43 -1
  150. package/resources/text-to-video.d.mts.map +1 -1
  151. package/resources/text-to-video.d.ts +43 -1
  152. package/resources/text-to-video.d.ts.map +1 -1
  153. package/resources/text-to-video.js +3 -0
  154. package/resources/text-to-video.js.map +1 -1
  155. package/resources/text-to-video.mjs +3 -0
  156. package/resources/text-to-video.mjs.map +1 -1
  157. package/resources/video-to-video.d.mts +8 -5
  158. package/resources/video-to-video.d.mts.map +1 -1
  159. package/resources/video-to-video.d.ts +8 -5
  160. package/resources/video-to-video.d.ts.map +1 -1
  161. package/resources/video-to-video.js +3 -1
  162. package/resources/video-to-video.js.map +1 -1
  163. package/resources/video-to-video.mjs +3 -1
  164. package/resources/video-to-video.mjs.map +1 -1
  165. package/resources/voice-dubbing.d.mts +3 -0
  166. package/resources/voice-dubbing.d.mts.map +1 -1
  167. package/resources/voice-dubbing.d.ts +3 -0
  168. package/resources/voice-dubbing.d.ts.map +1 -1
  169. package/resources/voice-dubbing.js +3 -0
  170. package/resources/voice-dubbing.js.map +1 -1
  171. package/resources/voice-dubbing.mjs +3 -0
  172. package/resources/voice-dubbing.mjs.map +1 -1
  173. package/resources/voice-isolation.d.mts +3 -0
  174. package/resources/voice-isolation.d.mts.map +1 -1
  175. package/resources/voice-isolation.d.ts +3 -0
  176. package/resources/voice-isolation.d.ts.map +1 -1
  177. package/resources/voice-isolation.js +3 -0
  178. package/resources/voice-isolation.js.map +1 -1
  179. package/resources/voice-isolation.mjs +3 -0
  180. package/resources/voice-isolation.mjs.map +1 -1
  181. package/resources/voices.d.mts +257 -0
  182. package/resources/voices.d.mts.map +1 -0
  183. package/resources/voices.d.ts +257 -0
  184. package/resources/voices.d.ts.map +1 -0
  185. package/resources/voices.js +47 -0
  186. package/resources/voices.js.map +1 -0
  187. package/resources/voices.mjs +43 -0
  188. package/resources/voices.mjs.map +1 -0
  189. package/src/client.ts +173 -35
  190. package/src/core/pagination.ts +157 -0
  191. package/src/index.ts +1 -0
  192. package/src/internal/parse.ts +6 -0
  193. package/src/internal/utils/query.ts +23 -0
  194. package/src/internal/utils.ts +1 -0
  195. package/src/pagination.ts +2 -0
  196. package/src/resources/avatars.ts +2049 -0
  197. package/src/resources/character-performance.ts +3 -0
  198. package/src/resources/documents.ts +270 -0
  199. package/src/resources/image-to-video.ts +68 -0
  200. package/src/resources/index.ts +37 -5
  201. package/src/resources/organization.ts +7 -3
  202. package/src/resources/realtime-sessions.ts +251 -0
  203. package/src/resources/sound-effect.ts +3 -0
  204. package/src/resources/speech-to-speech.ts +3 -0
  205. package/src/resources/tasks.ts +3 -0
  206. package/src/resources/text-to-image.ts +3 -0
  207. package/src/resources/text-to-speech.ts +3 -0
  208. package/src/resources/text-to-video.ts +50 -0
  209. package/src/resources/video-to-video.ts +9 -6
  210. package/src/resources/voice-dubbing.ts +3 -0
  211. package/src/resources/voice-isolation.ts +3 -0
  212. package/src/resources/voices.ts +345 -0
  213. package/src/version.ts +1 -1
  214. package/version.d.mts +1 -1
  215. package/version.d.ts +1 -1
  216. package/version.js +1 -1
  217. package/version.mjs +1 -1
  218. package/resources/video-upscale.d.mts +0 -35
  219. package/resources/video-upscale.d.mts.map +0 -1
  220. package/resources/video-upscale.d.ts +0 -35
  221. package/resources/video-upscale.d.ts.map +0 -1
  222. package/resources/video-upscale.js +0 -25
  223. package/resources/video-upscale.js.map +0 -1
  224. package/resources/video-upscale.mjs +0 -21
  225. package/resources/video-upscale.mjs.map +0 -1
  226. package/src/resources/video-upscale.ts +0 -51
@@ -0,0 +1,345 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
6
+ import { buildHeaders } from '../internal/headers';
7
+ import { RequestOptions } from '../internal/request-options';
8
+ import { path } from '../internal/utils/path';
9
+
10
+ export class Voices extends APIResource {
11
+ /**
12
+ * Create a custom voice from a text description.
13
+ */
14
+ create(body: VoiceCreateParams, options?: RequestOptions): APIPromise<VoiceCreateResponse> {
15
+ return this._client.post('/v1/voices', { body, ...options });
16
+ }
17
+
18
+ /**
19
+ * Get details about a specific custom voice.
20
+ */
21
+ retrieve(id: string, options?: RequestOptions): APIPromise<VoiceRetrieveResponse> {
22
+ return this._client.get(path`/v1/voices/${id}`, options);
23
+ }
24
+
25
+ /**
26
+ * List custom voices for the authenticated organization with cursor-based
27
+ * pagination.
28
+ */
29
+ list(
30
+ query: VoiceListParams,
31
+ options?: RequestOptions,
32
+ ): PagePromise<VoiceListResponsesCursorPage, VoiceListResponse> {
33
+ return this._client.getAPIList('/v1/voices', CursorPage<VoiceListResponse>, { query, ...options });
34
+ }
35
+
36
+ /**
37
+ * Delete a custom voice.
38
+ */
39
+ delete(id: string, options?: RequestOptions): APIPromise<void> {
40
+ return this._client.delete(path`/v1/voices/${id}`, {
41
+ ...options,
42
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
43
+ });
44
+ }
45
+
46
+ /**
47
+ * Generate a short audio preview of a voice from a text description. Use this to
48
+ * audition a voice before creating it.
49
+ */
50
+ preview(body: VoicePreviewParams, options?: RequestOptions): APIPromise<VoicePreviewResponse> {
51
+ return this._client.post('/v1/voices/preview', { body, ...options });
52
+ }
53
+ }
54
+
55
+ export type VoiceListResponsesCursorPage = CursorPage<VoiceListResponse>;
56
+
57
+ export interface VoiceCreateResponse {
58
+ /**
59
+ * The ID of the voice that was created.
60
+ */
61
+ id: string;
62
+ }
63
+
64
+ /**
65
+ * A voice that is still being processed.
66
+ */
67
+ export type VoiceRetrieveResponse =
68
+ | VoiceRetrieveResponse.Processing
69
+ | VoiceRetrieveResponse.Ready
70
+ | VoiceRetrieveResponse.Failed;
71
+
72
+ export namespace VoiceRetrieveResponse {
73
+ /**
74
+ * A voice that is still being processed.
75
+ */
76
+ export interface Processing {
77
+ /**
78
+ * The unique identifier of the voice.
79
+ */
80
+ id: string;
81
+
82
+ /**
83
+ * When the voice was created.
84
+ */
85
+ createdAt: string;
86
+
87
+ /**
88
+ * A description of the voice, or null if not set.
89
+ */
90
+ description: string | null;
91
+
92
+ /**
93
+ * The name of the voice.
94
+ */
95
+ name: string;
96
+
97
+ status: 'PROCESSING';
98
+ }
99
+
100
+ /**
101
+ * A voice that is ready for use.
102
+ */
103
+ export interface Ready {
104
+ /**
105
+ * The unique identifier of the voice.
106
+ */
107
+ id: string;
108
+
109
+ /**
110
+ * When the voice was created.
111
+ */
112
+ createdAt: string;
113
+
114
+ /**
115
+ * A description of the voice, or null if not set.
116
+ */
117
+ description: string | null;
118
+
119
+ /**
120
+ * The name of the voice.
121
+ */
122
+ name: string;
123
+
124
+ /**
125
+ * A signed URL to an MP3 audio sample of the voice, or null if no sample is
126
+ * available.
127
+ */
128
+ previewUrl: string | null;
129
+
130
+ status: 'READY';
131
+ }
132
+
133
+ /**
134
+ * A voice that failed to finish processing.
135
+ */
136
+ export interface Failed {
137
+ /**
138
+ * The unique identifier of the voice.
139
+ */
140
+ id: string;
141
+
142
+ /**
143
+ * When the voice was created.
144
+ */
145
+ createdAt: string;
146
+
147
+ /**
148
+ * A description of the voice, or null if not set.
149
+ */
150
+ description: string | null;
151
+
152
+ /**
153
+ * A human-readable error message. This value is not stable and should not be
154
+ * matched against programmatically.
155
+ */
156
+ failureReason: string;
157
+
158
+ /**
159
+ * The name of the voice.
160
+ */
161
+ name: string;
162
+
163
+ status: 'FAILED';
164
+ }
165
+ }
166
+
167
+ /**
168
+ * A voice that is still being processed.
169
+ */
170
+ export type VoiceListResponse =
171
+ | VoiceListResponse.Processing
172
+ | VoiceListResponse.Ready
173
+ | VoiceListResponse.Failed;
174
+
175
+ export namespace VoiceListResponse {
176
+ /**
177
+ * A voice that is still being processed.
178
+ */
179
+ export interface Processing {
180
+ /**
181
+ * The unique identifier of the voice.
182
+ */
183
+ id: string;
184
+
185
+ /**
186
+ * When the voice was created.
187
+ */
188
+ createdAt: string;
189
+
190
+ /**
191
+ * A description of the voice, or null if not set.
192
+ */
193
+ description: string | null;
194
+
195
+ /**
196
+ * The name of the voice.
197
+ */
198
+ name: string;
199
+
200
+ status: 'PROCESSING';
201
+ }
202
+
203
+ /**
204
+ * A voice that is ready for use.
205
+ */
206
+ export interface Ready {
207
+ /**
208
+ * The unique identifier of the voice.
209
+ */
210
+ id: string;
211
+
212
+ /**
213
+ * When the voice was created.
214
+ */
215
+ createdAt: string;
216
+
217
+ /**
218
+ * A description of the voice, or null if not set.
219
+ */
220
+ description: string | null;
221
+
222
+ /**
223
+ * The name of the voice.
224
+ */
225
+ name: string;
226
+
227
+ /**
228
+ * A signed URL to an MP3 audio sample of the voice, or null if no sample is
229
+ * available.
230
+ */
231
+ previewUrl: string | null;
232
+
233
+ status: 'READY';
234
+ }
235
+
236
+ /**
237
+ * A voice that failed to finish processing.
238
+ */
239
+ export interface Failed {
240
+ /**
241
+ * The unique identifier of the voice.
242
+ */
243
+ id: string;
244
+
245
+ /**
246
+ * When the voice was created.
247
+ */
248
+ createdAt: string;
249
+
250
+ /**
251
+ * A description of the voice, or null if not set.
252
+ */
253
+ description: string | null;
254
+
255
+ /**
256
+ * A human-readable error message. This value is not stable and should not be
257
+ * matched against programmatically.
258
+ */
259
+ failureReason: string;
260
+
261
+ /**
262
+ * The name of the voice.
263
+ */
264
+ name: string;
265
+
266
+ status: 'FAILED';
267
+ }
268
+ }
269
+
270
+ export interface VoicePreviewResponse {
271
+ /**
272
+ * Duration of the audio preview in seconds.
273
+ */
274
+ durationSecs: number;
275
+
276
+ /**
277
+ * A presigned URL to the audio preview. The URL expires after 24 hours.
278
+ */
279
+ url: string;
280
+ }
281
+
282
+ export interface VoiceCreateParams {
283
+ /**
284
+ * The source configuration for creating the voice.
285
+ */
286
+ from: VoiceCreateParams.From;
287
+
288
+ /**
289
+ * A name for the voice.
290
+ */
291
+ name: string;
292
+
293
+ /**
294
+ * An optional description of the voice.
295
+ */
296
+ description?: string | null;
297
+ }
298
+
299
+ export namespace VoiceCreateParams {
300
+ /**
301
+ * The source configuration for creating the voice.
302
+ */
303
+ export interface From {
304
+ /**
305
+ * The voice design model to use.
306
+ */
307
+ model: 'eleven_multilingual_ttv_v2' | 'eleven_ttv_v3';
308
+
309
+ /**
310
+ * A text description of the desired voice characteristics. Must be at least 20
311
+ * characters.
312
+ */
313
+ prompt: string;
314
+
315
+ type: 'text';
316
+ }
317
+ }
318
+
319
+ export interface VoiceListParams extends CursorPageParams {}
320
+
321
+ export interface VoicePreviewParams {
322
+ /**
323
+ * The voice design model to use.
324
+ */
325
+ model: 'eleven_multilingual_ttv_v2' | 'eleven_ttv_v3';
326
+
327
+ /**
328
+ * A text description of the desired voice characteristics. Must be at least 20
329
+ * characters.
330
+ */
331
+ prompt: string;
332
+ }
333
+
334
+ export declare namespace Voices {
335
+ export {
336
+ type VoiceCreateResponse as VoiceCreateResponse,
337
+ type VoiceRetrieveResponse as VoiceRetrieveResponse,
338
+ type VoiceListResponse as VoiceListResponse,
339
+ type VoicePreviewResponse as VoicePreviewResponse,
340
+ type VoiceListResponsesCursorPage as VoiceListResponsesCursorPage,
341
+ type VoiceCreateParams as VoiceCreateParams,
342
+ type VoiceListParams as VoiceListParams,
343
+ type VoicePreviewParams as VoicePreviewParams,
344
+ };
345
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.11.0'; // x-release-please-version
1
+ export const VERSION = '3.15.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.11.0";
1
+ export declare const VERSION = "3.15.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.11.0";
1
+ export declare const VERSION = "3.15.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '3.11.0'; // x-release-please-version
4
+ exports.VERSION = '3.15.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.11.0'; // x-release-please-version
1
+ export const VERSION = '3.15.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,35 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { RequestOptions } from "../internal/request-options.mjs";
3
- import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
4
- export declare class VideoUpscale extends APIResource {
5
- /**
6
- * This endpoint will start a new task to upscale a video. Videos will be upscaled
7
- * by a factor of 4X, capped at a maximum of 4096px along each side.
8
- *
9
- * @example
10
- * ```ts
11
- * const videoUpscale = await client.videoUpscale.create({
12
- * model: 'upscale_v1',
13
- * videoUri: 'https://example.com/video.mp4',
14
- * });
15
- * ```
16
- */
17
- create(body: VideoUpscaleCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse>;
18
- }
19
- export interface VideoUpscaleCreateResponse {
20
- /**
21
- * The ID of the task that was created. Use this to retrieve the task later.
22
- */
23
- id: string;
24
- }
25
- export interface VideoUpscaleCreateParams {
26
- model: 'upscale_v1';
27
- /**
28
- * A HTTPS URL.
29
- */
30
- videoUri: string;
31
- }
32
- export declare namespace VideoUpscale {
33
- export { type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
34
- }
35
- //# sourceMappingURL=video-upscale.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video-upscale.d.mts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1,35 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { RequestOptions } from "../internal/request-options.js";
3
- import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
4
- export declare class VideoUpscale extends APIResource {
5
- /**
6
- * This endpoint will start a new task to upscale a video. Videos will be upscaled
7
- * by a factor of 4X, capped at a maximum of 4096px along each side.
8
- *
9
- * @example
10
- * ```ts
11
- * const videoUpscale = await client.videoUpscale.create({
12
- * model: 'upscale_v1',
13
- * videoUri: 'https://example.com/video.mp4',
14
- * });
15
- * ```
16
- */
17
- create(body: VideoUpscaleCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse>;
18
- }
19
- export interface VideoUpscaleCreateResponse {
20
- /**
21
- * The ID of the task that was created. Use this to retrieve the task later.
22
- */
23
- id: string;
24
- }
25
- export interface VideoUpscaleCreateParams {
26
- model: 'upscale_v1';
27
- /**
28
- * A HTTPS URL.
29
- */
30
- videoUri: string;
31
- }
32
- export declare namespace VideoUpscale {
33
- export { type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
34
- }
35
- //# sourceMappingURL=video-upscale.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video-upscale.d.ts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.VideoUpscale = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- const polling_1 = require("../lib/polling.js");
7
- class VideoUpscale extends resource_1.APIResource {
8
- /**
9
- * This endpoint will start a new task to upscale a video. Videos will be upscaled
10
- * by a factor of 4X, capped at a maximum of 4096px along each side.
11
- *
12
- * @example
13
- * ```ts
14
- * const videoUpscale = await client.videoUpscale.create({
15
- * model: 'upscale_v1',
16
- * videoUri: 'https://example.com/video.mp4',
17
- * });
18
- * ```
19
- */
20
- create(body, options) {
21
- return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/video_upscale', { body, ...options }));
22
- }
23
- }
24
- exports.VideoUpscale = VideoUpscale;
25
- //# sourceMappingURL=video-upscale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video-upscale.js","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF;AArBD,oCAqBC"}
@@ -1,21 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- import { wrapAsWaitableResource } from "../lib/polling.mjs";
4
- export class VideoUpscale extends APIResource {
5
- /**
6
- * This endpoint will start a new task to upscale a video. Videos will be upscaled
7
- * by a factor of 4X, capped at a maximum of 4096px along each side.
8
- *
9
- * @example
10
- * ```ts
11
- * const videoUpscale = await client.videoUpscale.create({
12
- * model: 'upscale_v1',
13
- * videoUri: 'https://example.com/video.mp4',
14
- * });
15
- * ```
16
- */
17
- create(body, options) {
18
- return wrapAsWaitableResource(this._client)(this._client.post('/v1/video_upscale', { body, ...options }));
19
- }
20
- }
21
- //# sourceMappingURL=video-upscale.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video-upscale.mjs","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
@@ -1,51 +0,0 @@
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
- export class VideoUpscale extends APIResource {
8
- /**
9
- * This endpoint will start a new task to upscale a video. Videos will be upscaled
10
- * by a factor of 4X, capped at a maximum of 4096px along each side.
11
- *
12
- * @example
13
- * ```ts
14
- * const videoUpscale = await client.videoUpscale.create({
15
- * model: 'upscale_v1',
16
- * videoUri: 'https://example.com/video.mp4',
17
- * });
18
- * ```
19
- */
20
- create(
21
- body: VideoUpscaleCreateParams,
22
- options?: RequestOptions,
23
- ): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse> {
24
- return wrapAsWaitableResource<VideoUpscaleCreateResponse>(this._client)(
25
- this._client.post('/v1/video_upscale', { body, ...options }),
26
- );
27
- }
28
- }
29
-
30
- export interface VideoUpscaleCreateResponse {
31
- /**
32
- * The ID of the task that was created. Use this to retrieve the task later.
33
- */
34
- id: string;
35
- }
36
-
37
- export interface VideoUpscaleCreateParams {
38
- model: 'upscale_v1';
39
-
40
- /**
41
- * A HTTPS URL.
42
- */
43
- videoUri: string;
44
- }
45
-
46
- export declare namespace VideoUpscale {
47
- export {
48
- type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse,
49
- type VideoUpscaleCreateParams as VideoUpscaleCreateParams,
50
- };
51
- }