@runwayml/sdk 3.4.0 → 3.6.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 +17 -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/package.json +1 -1
- package/resources/character-performance.d.mts +38 -27
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +38 -27
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +16 -0
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +16 -0
- package/resources/character-performance.mjs.map +1 -1
- package/resources/image-to-video.d.mts +215 -88
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +215 -88
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +10 -1
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +10 -1
- package/resources/image-to-video.mjs.map +1 -1
- 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/organization.d.mts +32 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +32 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +1 -7
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +1 -7
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +64 -0
- package/resources/speech-to-speech.d.mts.map +1 -0
- package/resources/speech-to-speech.d.ts +64 -0
- package/resources/speech-to-speech.d.ts.map +1 -0
- package/resources/speech-to-speech.js +17 -0
- package/resources/speech-to-speech.js.map +1 -0
- package/resources/speech-to-speech.mjs +12 -0
- package/resources/speech-to-speech.mjs.map +1 -0
- package/resources/text-to-speech.d.mts +3 -9
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -9
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +50 -28
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +50 -28
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +12 -10
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +12 -10
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +10 -0
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +10 -0
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/video-upscale.d.mts +9 -9
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +9 -9
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/video-upscale.js +8 -0
- package/resources/video-upscale.js.map +1 -1
- package/resources/video-upscale.mjs +8 -0
- package/resources/video-upscale.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts +10 -8
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +10 -8
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.js +9 -0
- package/resources/voice-dubbing.js.map +1 -1
- package/resources/voice-dubbing.mjs +9 -0
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts +13 -10
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +13 -10
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +11 -1
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +11 -1
- package/resources/voice-isolation.mjs.map +1 -1
- package/src/client.ts +13 -0
- package/src/resources/character-performance.ts +40 -29
- package/src/resources/image-to-video.ts +253 -99
- package/src/resources/index.ts +5 -0
- package/src/resources/organization.ts +37 -0
- package/src/resources/sound-effect.ts +1 -7
- package/src/resources/speech-to-speech.ts +136 -0
- package/src/resources/text-to-speech.ts +3 -9
- package/src/resources/text-to-video.ts +61 -28
- package/src/resources/video-to-video.ts +12 -10
- package/src/resources/video-upscale.ts +9 -9
- package/src/resources/voice-dubbing.ts +10 -8
- package/src/resources/voice-isolation.ts +13 -10
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC
|
|
1
|
+
{"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,MAAM,GAC9B,uBAAuB,CAAC,UAAU,GAClC,uBAAuB,CAAC,IAAI,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,MAAM;QACrB,KAAK,EAAE,QAAQ,CAAC;QAEhB;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,UAAU;QACzB,KAAK,EAAE,aAAa,CAAC;QAErB;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -4,19 +4,23 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
|
4
4
|
export declare class VideoToVideo extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to generate a video from a video.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const videoToVideo = await client.videoToVideo.create({
|
|
11
|
+
* model: 'gen4_aleph',
|
|
12
|
+
* promptText: 'x',
|
|
13
|
+
* ratio: '1280:720',
|
|
14
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
7
17
|
*/
|
|
8
18
|
create(body: VideoToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoToVideoCreateResponse>;
|
|
9
19
|
}
|
|
10
20
|
export interface VideoToVideoCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
21
|
id: string;
|
|
15
22
|
}
|
|
16
23
|
export interface VideoToVideoCreateParams {
|
|
17
|
-
/**
|
|
18
|
-
* The model variant to use.
|
|
19
|
-
*/
|
|
20
24
|
model: 'gen4_aleph';
|
|
21
25
|
/**
|
|
22
26
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
@@ -28,8 +32,7 @@ export interface VideoToVideoCreateParams {
|
|
|
28
32
|
*/
|
|
29
33
|
ratio: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
30
34
|
/**
|
|
31
|
-
* A HTTPS URL
|
|
32
|
-
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
35
|
+
* A HTTPS URL.
|
|
33
36
|
*/
|
|
34
37
|
videoUri: string;
|
|
35
38
|
/**
|
|
@@ -66,8 +69,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
66
69
|
interface Reference {
|
|
67
70
|
type: 'image';
|
|
68
71
|
/**
|
|
69
|
-
* A HTTPS URL
|
|
70
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
72
|
+
* A HTTPS URL.
|
|
71
73
|
*/
|
|
72
74
|
uri: string;
|
|
73
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAE1G;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAEvD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED;;;OAGG;IACH,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -4,19 +4,23 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
|
4
4
|
export declare class VideoToVideo extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to generate a video from a video.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const videoToVideo = await client.videoToVideo.create({
|
|
11
|
+
* model: 'gen4_aleph',
|
|
12
|
+
* promptText: 'x',
|
|
13
|
+
* ratio: '1280:720',
|
|
14
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
7
17
|
*/
|
|
8
18
|
create(body: VideoToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoToVideoCreateResponse>;
|
|
9
19
|
}
|
|
10
20
|
export interface VideoToVideoCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
21
|
id: string;
|
|
15
22
|
}
|
|
16
23
|
export interface VideoToVideoCreateParams {
|
|
17
|
-
/**
|
|
18
|
-
* The model variant to use.
|
|
19
|
-
*/
|
|
20
24
|
model: 'gen4_aleph';
|
|
21
25
|
/**
|
|
22
26
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
@@ -28,8 +32,7 @@ export interface VideoToVideoCreateParams {
|
|
|
28
32
|
*/
|
|
29
33
|
ratio: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
30
34
|
/**
|
|
31
|
-
* A HTTPS URL
|
|
32
|
-
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
35
|
+
* A HTTPS URL.
|
|
33
36
|
*/
|
|
34
37
|
videoUri: string;
|
|
35
38
|
/**
|
|
@@ -66,8 +69,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
66
69
|
interface Reference {
|
|
67
70
|
type: 'image';
|
|
68
71
|
/**
|
|
69
|
-
* A HTTPS URL
|
|
70
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
72
|
+
* A HTTPS URL.
|
|
71
73
|
*/
|
|
72
74
|
uri: string;
|
|
73
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAE1G;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAEvD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED;;;OAGG;IACH,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -7,6 +7,16 @@ const polling_1 = require("../lib/polling.js");
|
|
|
7
7
|
class VideoToVideo extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to generate a video from a video.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const videoToVideo = await client.videoToVideo.create({
|
|
14
|
+
* model: 'gen4_aleph',
|
|
15
|
+
* promptText: 'x',
|
|
16
|
+
* ratio: '1280:720',
|
|
17
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
create(body, options) {
|
|
12
22
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/video_to_video', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.js","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.js","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AAtBD,oCAsBC"}
|
|
@@ -4,6 +4,16 @@ import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
|
4
4
|
export class VideoToVideo extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to generate a video from a video.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const videoToVideo = await client.videoToVideo.create({
|
|
11
|
+
* model: 'gen4_aleph',
|
|
12
|
+
* promptText: 'x',
|
|
13
|
+
* ratio: '1280:720',
|
|
14
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
7
17
|
*/
|
|
8
18
|
create(body, options) {
|
|
9
19
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/video_to_video', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.mjs","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"video-to-video.mjs","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -5,24 +5,24 @@ export declare class VideoUpscale extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to upscale a video. Videos will be upscaled
|
|
7
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
|
+
* ```
|
|
8
16
|
*/
|
|
9
17
|
create(body: VideoUpscaleCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse>;
|
|
10
18
|
}
|
|
11
19
|
export interface VideoUpscaleCreateResponse {
|
|
12
|
-
/**
|
|
13
|
-
* The ID of the newly created task.
|
|
14
|
-
*/
|
|
15
20
|
id: string;
|
|
16
21
|
}
|
|
17
22
|
export interface VideoUpscaleCreateParams {
|
|
18
|
-
/**
|
|
19
|
-
* The model variant to use.
|
|
20
|
-
*/
|
|
21
23
|
model: 'upscale_v1';
|
|
22
24
|
/**
|
|
23
|
-
* A HTTPS URL
|
|
24
|
-
* be less than 4096px on each side. The video duration may not exceed 40 seconds.
|
|
25
|
-
* See [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
25
|
+
* A HTTPS URL.
|
|
26
26
|
*/
|
|
27
27
|
videoUri: string;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,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"}
|
|
@@ -5,24 +5,24 @@ export declare class VideoUpscale extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to upscale a video. Videos will be upscaled
|
|
7
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
|
+
* ```
|
|
8
16
|
*/
|
|
9
17
|
create(body: VideoUpscaleCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse>;
|
|
10
18
|
}
|
|
11
19
|
export interface VideoUpscaleCreateResponse {
|
|
12
|
-
/**
|
|
13
|
-
* The ID of the newly created task.
|
|
14
|
-
*/
|
|
15
20
|
id: string;
|
|
16
21
|
}
|
|
17
22
|
export interface VideoUpscaleCreateParams {
|
|
18
|
-
/**
|
|
19
|
-
* The model variant to use.
|
|
20
|
-
*/
|
|
21
23
|
model: 'upscale_v1';
|
|
22
24
|
/**
|
|
23
|
-
* A HTTPS URL
|
|
24
|
-
* be less than 4096px on each side. The video duration may not exceed 40 seconds.
|
|
25
|
-
* See [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
25
|
+
* A HTTPS URL.
|
|
26
26
|
*/
|
|
27
27
|
videoUri: string;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,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"}
|
|
@@ -8,6 +8,14 @@ class VideoUpscale extends resource_1.APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to upscale a video. Videos will be upscaled
|
|
10
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
|
+
* ```
|
|
11
19
|
*/
|
|
12
20
|
create(body, options) {
|
|
13
21
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/video_upscale', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
|
@@ -5,6 +5,14 @@ export class VideoUpscale extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to upscale a video. Videos will be upscaled
|
|
7
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
|
+
* ```
|
|
8
16
|
*/
|
|
9
17
|
create(body, options) {
|
|
10
18
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/video_upscale', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
|
@@ -4,24 +4,26 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
|
4
4
|
export declare class VoiceDubbing extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const voiceDubbing = await client.voiceDubbing.create({
|
|
11
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
12
|
+
* model: 'eleven_voice_dubbing',
|
|
13
|
+
* targetLang: 'en',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
|
|
9
18
|
}
|
|
10
19
|
export interface VoiceDubbingCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
20
|
id: string;
|
|
15
21
|
}
|
|
16
22
|
export interface VoiceDubbingCreateParams {
|
|
17
23
|
/**
|
|
18
|
-
* A HTTPS URL
|
|
19
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
24
|
+
* A HTTPS URL.
|
|
20
25
|
*/
|
|
21
26
|
audioUri: string;
|
|
22
|
-
/**
|
|
23
|
-
* The model variant to use.
|
|
24
|
-
*/
|
|
25
27
|
model: 'eleven_voice_dubbing';
|
|
26
28
|
/**
|
|
27
29
|
* The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-dubbing.d.mts","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"voice-dubbing.d.mts","sourceRoot":"","sources":["../src/resources/voice-dubbing.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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;;OAGG;IACH,UAAU,EACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -4,24 +4,26 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
|
4
4
|
export declare class VoiceDubbing extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const voiceDubbing = await client.voiceDubbing.create({
|
|
11
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
12
|
+
* model: 'eleven_voice_dubbing',
|
|
13
|
+
* targetLang: 'en',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
|
|
9
18
|
}
|
|
10
19
|
export interface VoiceDubbingCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
20
|
id: string;
|
|
15
21
|
}
|
|
16
22
|
export interface VoiceDubbingCreateParams {
|
|
17
23
|
/**
|
|
18
|
-
* A HTTPS URL
|
|
19
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
24
|
+
* A HTTPS URL.
|
|
20
25
|
*/
|
|
21
26
|
audioUri: string;
|
|
22
|
-
/**
|
|
23
|
-
* The model variant to use.
|
|
24
|
-
*/
|
|
25
27
|
model: 'eleven_voice_dubbing';
|
|
26
28
|
/**
|
|
27
29
|
* The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-dubbing.d.ts","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"voice-dubbing.d.ts","sourceRoot":"","sources":["../src/resources/voice-dubbing.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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;;OAGG;IACH,UAAU,EACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -7,6 +7,15 @@ const polling_1 = require("../lib/polling.js");
|
|
|
7
7
|
class VoiceDubbing extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const voiceDubbing = await client.voiceDubbing.create({
|
|
14
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
15
|
+
* model: 'eleven_voice_dubbing',
|
|
16
|
+
* targetLang: 'en',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(body, options) {
|
|
12
21
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/voice_dubbing', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-dubbing.js","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"voice-dubbing.js","sourceRoot":"","sources":["../src/resources/voice-dubbing.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"}
|
|
@@ -4,6 +4,15 @@ import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
|
4
4
|
export class VoiceDubbing extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to dub audio content to a target language.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const voiceDubbing = await client.voiceDubbing.create({
|
|
11
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
12
|
+
* model: 'eleven_voice_dubbing',
|
|
13
|
+
* targetLang: 'en',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(body, options) {
|
|
9
18
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/voice_dubbing', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-dubbing.mjs","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"voice-dubbing.mjs","sourceRoot":"","sources":["../src/resources/voice-dubbing.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"}
|
|
@@ -3,25 +3,28 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
4
|
export declare class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* This endpoint will start a new task to isolate
|
|
6
|
+
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
+
* audio. Audio duration must be greater than 4.6 seconds and less than 3600
|
|
8
|
+
* seconds.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const voiceIsolation = await client.voiceIsolation.create({
|
|
13
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
14
|
+
* model: 'eleven_voice_isolation',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
7
17
|
*/
|
|
8
18
|
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
9
19
|
}
|
|
10
20
|
export interface VoiceIsolationCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
21
|
id: string;
|
|
15
22
|
}
|
|
16
23
|
export interface VoiceIsolationCreateParams {
|
|
17
24
|
/**
|
|
18
|
-
* A HTTPS URL
|
|
19
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
20
|
-
*/
|
|
21
|
-
audioUrl: string;
|
|
22
|
-
/**
|
|
23
|
-
* The model variant to use.
|
|
25
|
+
* A HTTPS URL.
|
|
24
26
|
*/
|
|
27
|
+
audioUri: string;
|
|
25
28
|
model: 'eleven_voice_isolation';
|
|
26
29
|
}
|
|
27
30
|
export declare namespace VoiceIsolation {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-isolation.d.mts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"voice-isolation.d.mts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -3,25 +3,28 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
4
|
export declare class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* This endpoint will start a new task to isolate
|
|
6
|
+
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
+
* audio. Audio duration must be greater than 4.6 seconds and less than 3600
|
|
8
|
+
* seconds.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const voiceIsolation = await client.voiceIsolation.create({
|
|
13
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
14
|
+
* model: 'eleven_voice_isolation',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
7
17
|
*/
|
|
8
18
|
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
9
19
|
}
|
|
10
20
|
export interface VoiceIsolationCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
21
|
id: string;
|
|
15
22
|
}
|
|
16
23
|
export interface VoiceIsolationCreateParams {
|
|
17
24
|
/**
|
|
18
|
-
* A HTTPS URL
|
|
19
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
20
|
-
*/
|
|
21
|
-
audioUrl: string;
|
|
22
|
-
/**
|
|
23
|
-
* The model variant to use.
|
|
25
|
+
* A HTTPS URL.
|
|
24
26
|
*/
|
|
27
|
+
audioUri: string;
|
|
25
28
|
model: 'eleven_voice_isolation';
|
|
26
29
|
}
|
|
27
30
|
export declare namespace VoiceIsolation {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-isolation.d.ts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"voice-isolation.d.ts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -6,7 +6,17 @@ const resource_1 = require("../core/resource.js");
|
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
7
|
class VoiceIsolation extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* This endpoint will start a new task to isolate
|
|
9
|
+
* This endpoint will start a new task to isolate the voice from the background
|
|
10
|
+
* audio. Audio duration must be greater than 4.6 seconds and less than 3600
|
|
11
|
+
* seconds.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const voiceIsolation = await client.voiceIsolation.create({
|
|
16
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
17
|
+
* model: 'eleven_voice_isolation',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
create(body, options) {
|
|
12
22
|
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-isolation.js","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,cAAe,SAAQ,sBAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"voice-isolation.js","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF;AAtBD,wCAsBC"}
|
|
@@ -3,7 +3,17 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
4
|
export class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* This endpoint will start a new task to isolate
|
|
6
|
+
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
+
* audio. Audio duration must be greater than 4.6 seconds and less than 3600
|
|
8
|
+
* seconds.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const voiceIsolation = await client.voiceIsolation.create({
|
|
13
|
+
* audioUri: 'https://example.com/audio.mp3',
|
|
14
|
+
* model: 'eleven_voice_isolation',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
7
17
|
*/
|
|
8
18
|
create(body, options) {
|
|
9
19
|
return wrapAsWaitableResource(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-isolation.mjs","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"voice-isolation.mjs","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,sBAAsB,CAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -33,6 +33,11 @@ import {
|
|
|
33
33
|
OrganizationRetrieveUsageResponse,
|
|
34
34
|
} from './resources/organization';
|
|
35
35
|
import { SoundEffect, SoundEffectCreateParams, SoundEffectCreateResponse } from './resources/sound-effect';
|
|
36
|
+
import {
|
|
37
|
+
SpeechToSpeech,
|
|
38
|
+
SpeechToSpeechCreateParams,
|
|
39
|
+
SpeechToSpeechCreateResponse,
|
|
40
|
+
} from './resources/speech-to-speech';
|
|
36
41
|
import { TaskRetrieveResponse, Tasks } from './resources/tasks';
|
|
37
42
|
import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from './resources/text-to-image';
|
|
38
43
|
import {
|
|
@@ -785,6 +790,7 @@ export class RunwayML {
|
|
|
785
790
|
soundEffect: API.SoundEffect = new API.SoundEffect(this);
|
|
786
791
|
voiceIsolation: API.VoiceIsolation = new API.VoiceIsolation(this);
|
|
787
792
|
voiceDubbing: API.VoiceDubbing = new API.VoiceDubbing(this);
|
|
793
|
+
speechToSpeech: API.SpeechToSpeech = new API.SpeechToSpeech(this);
|
|
788
794
|
organization: API.Organization = new API.Organization(this);
|
|
789
795
|
}
|
|
790
796
|
|
|
@@ -799,6 +805,7 @@ RunwayML.TextToSpeech = TextToSpeech;
|
|
|
799
805
|
RunwayML.SoundEffect = SoundEffect;
|
|
800
806
|
RunwayML.VoiceIsolation = VoiceIsolation;
|
|
801
807
|
RunwayML.VoiceDubbing = VoiceDubbing;
|
|
808
|
+
RunwayML.SpeechToSpeech = SpeechToSpeech;
|
|
802
809
|
RunwayML.Organization = Organization;
|
|
803
810
|
|
|
804
811
|
export declare namespace RunwayML {
|
|
@@ -866,6 +873,12 @@ export declare namespace RunwayML {
|
|
|
866
873
|
type VoiceDubbingCreateParams as VoiceDubbingCreateParams,
|
|
867
874
|
};
|
|
868
875
|
|
|
876
|
+
export {
|
|
877
|
+
SpeechToSpeech as SpeechToSpeech,
|
|
878
|
+
type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse,
|
|
879
|
+
type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams,
|
|
880
|
+
};
|
|
881
|
+
|
|
869
882
|
export {
|
|
870
883
|
Organization as Organization,
|
|
871
884
|
type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
|