@runwayml/sdk 3.18.0 → 3.19.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 +15 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/avatar-videos.d.mts +101 -0
- package/resources/avatar-videos.d.mts.map +1 -0
- package/resources/avatar-videos.d.ts +101 -0
- package/resources/avatar-videos.d.ts.map +1 -0
- package/resources/avatar-videos.js +19 -0
- package/resources/avatar-videos.js.map +1 -0
- package/resources/avatar-videos.mjs +15 -0
- package/resources/avatar-videos.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/voices.d.mts +17 -7
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +17 -7
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.js +2 -1
- package/resources/voices.js.map +1 -1
- package/resources/voices.mjs +2 -1
- package/resources/voices.mjs.map +1 -1
- package/src/client.ts +9 -0
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/avatar-videos.ts +170 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/voices.ts +19 -7
- 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/src/resources/voices.ts
CHANGED
|
@@ -9,7 +9,8 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
|
|
10
10
|
export class Voices extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Create a custom voice from a text description
|
|
12
|
+
* Create a custom voice from a text description, or clone a voice from an audio
|
|
13
|
+
* sample.
|
|
13
14
|
*/
|
|
14
15
|
create(body: VoiceCreateParams, options?: RequestOptions): APIPromise<VoiceCreateResponse> {
|
|
15
16
|
return this._client.post('/v1/voices', { body, ...options });
|
|
@@ -283,7 +284,7 @@ export interface VoiceCreateParams {
|
|
|
283
284
|
/**
|
|
284
285
|
* The source configuration for creating the voice.
|
|
285
286
|
*/
|
|
286
|
-
from: VoiceCreateParams.
|
|
287
|
+
from: VoiceCreateParams.Text | VoiceCreateParams.Audio;
|
|
287
288
|
|
|
288
289
|
/**
|
|
289
290
|
* A name for the voice.
|
|
@@ -300,11 +301,12 @@ export namespace VoiceCreateParams {
|
|
|
300
301
|
/**
|
|
301
302
|
* The source configuration for creating the voice.
|
|
302
303
|
*/
|
|
303
|
-
export interface
|
|
304
|
+
export interface Text {
|
|
304
305
|
/**
|
|
305
|
-
* The voice design model to use.
|
|
306
|
+
* The voice design model to use. Prefer eleven_ttv_v3 (latest);
|
|
307
|
+
* eleven_multilingual_ttv_v2 is the previous generation.
|
|
306
308
|
*/
|
|
307
|
-
model: '
|
|
309
|
+
model: 'eleven_ttv_v3' | 'eleven_multilingual_ttv_v2';
|
|
308
310
|
|
|
309
311
|
/**
|
|
310
312
|
* A text description of the desired voice characteristics. Must be at least 20
|
|
@@ -314,15 +316,25 @@ export namespace VoiceCreateParams {
|
|
|
314
316
|
|
|
315
317
|
type: 'text';
|
|
316
318
|
}
|
|
319
|
+
|
|
320
|
+
export interface Audio {
|
|
321
|
+
/**
|
|
322
|
+
* A HTTPS URL.
|
|
323
|
+
*/
|
|
324
|
+
audio: string;
|
|
325
|
+
|
|
326
|
+
type: 'audio';
|
|
327
|
+
}
|
|
317
328
|
}
|
|
318
329
|
|
|
319
330
|
export interface VoiceListParams extends CursorPageParams {}
|
|
320
331
|
|
|
321
332
|
export interface VoicePreviewParams {
|
|
322
333
|
/**
|
|
323
|
-
* The voice design model to use.
|
|
334
|
+
* The voice design model to use. Prefer eleven_ttv_v3 (latest);
|
|
335
|
+
* eleven_multilingual_ttv_v2 is the previous generation.
|
|
324
336
|
*/
|
|
325
|
-
model: '
|
|
337
|
+
model: 'eleven_ttv_v3' | 'eleven_multilingual_ttv_v2';
|
|
326
338
|
|
|
327
339
|
/**
|
|
328
340
|
* A text description of the desired voice characteristics. Must be at least 20
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.19.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.19.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.19.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.19.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|