@runwayml/sdk 3.5.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 +8 -0
- package/package.json +1 -1
- package/resources/character-performance.d.mts +32 -5
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +32 -5
- 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/speech-to-speech.d.mts +16 -4
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +16 -4
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +2 -2
- package/resources/text-to-speech.d.ts +2 -2
- 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 -1
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +10 -1
- 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 +11 -2
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +11 -2
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +10 -1
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +10 -1
- package/resources/voice-isolation.mjs.map +1 -1
- package/src/resources/character-performance.ts +32 -5
- package/src/resources/image-to-video.ts +253 -99
- package/src/resources/speech-to-speech.ts +16 -4
- package/src/resources/text-to-speech.ts +2 -2
- 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 -1
- package/src/resources/voice-isolation.ts +11 -2
- 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
|
@@ -8,36 +8,58 @@ export declare class TextToVideo extends APIResource {
|
|
|
8
8
|
create(body: TextToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<TextToVideoCreateResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface TextToVideoCreateResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the newly created task.
|
|
13
|
-
*/
|
|
14
11
|
id: string;
|
|
15
12
|
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
13
|
+
export type TextToVideoCreateParams = TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Veo3;
|
|
14
|
+
export declare namespace TextToVideoCreateParams {
|
|
15
|
+
interface Veo3_1 {
|
|
16
|
+
model: 'veo3.1';
|
|
17
|
+
/**
|
|
18
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
19
|
+
* should describe in detail what should appear in the output.
|
|
20
|
+
*/
|
|
21
|
+
promptText: string;
|
|
22
|
+
/**
|
|
23
|
+
* The resolution of the output video.
|
|
24
|
+
*/
|
|
25
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
26
|
+
/**
|
|
27
|
+
* The number of seconds of duration for the output video.
|
|
28
|
+
*/
|
|
29
|
+
duration?: 4 | 6 | 8;
|
|
30
|
+
}
|
|
31
|
+
interface Veo3_1Fast {
|
|
32
|
+
model: 'veo3.1_fast';
|
|
33
|
+
/**
|
|
34
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
35
|
+
* should describe in detail what should appear in the output.
|
|
36
|
+
*/
|
|
37
|
+
promptText: string;
|
|
38
|
+
/**
|
|
39
|
+
* The resolution of the output video.
|
|
40
|
+
*/
|
|
41
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
42
|
+
/**
|
|
43
|
+
* The number of seconds of duration for the output video.
|
|
44
|
+
*/
|
|
45
|
+
duration?: 4 | 6 | 8;
|
|
46
|
+
}
|
|
47
|
+
interface Veo3 {
|
|
48
|
+
/**
|
|
49
|
+
* The number of seconds of duration for the output video.
|
|
50
|
+
*/
|
|
51
|
+
duration: 8;
|
|
52
|
+
model: 'veo3';
|
|
53
|
+
/**
|
|
54
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
55
|
+
* should describe in detail what should appear in the output.
|
|
56
|
+
*/
|
|
57
|
+
promptText: string;
|
|
58
|
+
/**
|
|
59
|
+
* The resolution of the output video.
|
|
60
|
+
*/
|
|
61
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
62
|
+
}
|
|
41
63
|
}
|
|
42
64
|
export declare namespace TextToVideo {
|
|
43
65
|
export { type TextToVideoCreateResponse as TextToVideoCreateResponse, type TextToVideoCreateParams as TextToVideoCreateParams, };
|
|
@@ -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,6 +4,15 @@ 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
|
}
|
|
@@ -12,7 +21,7 @@ export interface VoiceDubbingCreateResponse {
|
|
|
12
21
|
}
|
|
13
22
|
export interface VoiceDubbingCreateParams {
|
|
14
23
|
/**
|
|
15
|
-
* A
|
|
24
|
+
* A HTTPS URL.
|
|
16
25
|
*/
|
|
17
26
|
audioUri: string;
|
|
18
27
|
model: 'eleven_voice_dubbing';
|
|
@@ -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,6 +4,15 @@ 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
|
}
|
|
@@ -12,7 +21,7 @@ export interface VoiceDubbingCreateResponse {
|
|
|
12
21
|
}
|
|
13
22
|
export interface VoiceDubbingCreateParams {
|
|
14
23
|
/**
|
|
15
|
-
* A
|
|
24
|
+
* A HTTPS URL.
|
|
16
25
|
*/
|
|
17
26
|
audioUri: string;
|
|
18
27
|
model: 'eleven_voice_dubbing';
|
|
@@ -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"}
|
|
@@ -4,7 +4,16 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
|
4
4
|
export declare class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
-
* audio.
|
|
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
|
+
* ```
|
|
8
17
|
*/
|
|
9
18
|
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
10
19
|
}
|
|
@@ -13,7 +22,7 @@ export interface VoiceIsolationCreateResponse {
|
|
|
13
22
|
}
|
|
14
23
|
export interface VoiceIsolationCreateParams {
|
|
15
24
|
/**
|
|
16
|
-
* A
|
|
25
|
+
* A HTTPS URL.
|
|
17
26
|
*/
|
|
18
27
|
audioUri: string;
|
|
19
28
|
model: 'eleven_voice_isolation';
|
|
@@ -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"}
|
|
@@ -4,7 +4,16 @@ import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
|
4
4
|
export declare class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
-
* audio.
|
|
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
|
+
* ```
|
|
8
17
|
*/
|
|
9
18
|
create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
|
|
10
19
|
}
|
|
@@ -13,7 +22,7 @@ export interface VoiceIsolationCreateResponse {
|
|
|
13
22
|
}
|
|
14
23
|
export interface VoiceIsolationCreateParams {
|
|
15
24
|
/**
|
|
16
|
-
* A
|
|
25
|
+
* A HTTPS URL.
|
|
17
26
|
*/
|
|
18
27
|
audioUri: string;
|
|
19
28
|
model: 'eleven_voice_isolation';
|
|
@@ -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"}
|
|
@@ -7,7 +7,16 @@ const polling_1 = require("../lib/polling.js");
|
|
|
7
7
|
class VoiceIsolation extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to isolate the voice from the background
|
|
10
|
-
* audio.
|
|
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
|
+
* ```
|
|
11
20
|
*/
|
|
12
21
|
create(body, options) {
|
|
13
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"}
|
|
@@ -4,7 +4,16 @@ import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
|
4
4
|
export class VoiceIsolation extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to isolate the voice from the background
|
|
7
|
-
* audio.
|
|
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
|
+
* ```
|
|
8
17
|
*/
|
|
9
18
|
create(body, options) {
|
|
10
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"}
|