@runwayml/sdk 3.2.0 → 3.3.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 (48) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +2 -0
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +2 -0
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +5 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +2 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/organization.d.mts +62 -2
  20. package/resources/organization.d.mts.map +1 -1
  21. package/resources/organization.d.ts +62 -2
  22. package/resources/organization.d.ts.map +1 -1
  23. package/resources/voice-dubbing.d.mts +48 -0
  24. package/resources/voice-dubbing.d.mts.map +1 -0
  25. package/resources/voice-dubbing.d.ts +48 -0
  26. package/resources/voice-dubbing.d.ts.map +1 -0
  27. package/resources/voice-dubbing.js +16 -0
  28. package/resources/voice-dubbing.js.map +1 -0
  29. package/resources/voice-dubbing.mjs +12 -0
  30. package/resources/voice-dubbing.mjs.map +1 -0
  31. package/resources/voice-isolation.d.mts +30 -0
  32. package/resources/voice-isolation.d.mts.map +1 -0
  33. package/resources/voice-isolation.d.ts +30 -0
  34. package/resources/voice-isolation.d.ts.map +1 -0
  35. package/resources/voice-isolation.js +16 -0
  36. package/resources/voice-isolation.js.map +1 -0
  37. package/resources/voice-isolation.mjs +12 -0
  38. package/resources/voice-isolation.mjs.map +1 -0
  39. package/src/client.ts +26 -0
  40. package/src/resources/index.ts +10 -0
  41. package/src/resources/organization.ts +74 -0
  42. package/src/resources/voice-dubbing.ts +97 -0
  43. package/src/resources/voice-isolation.ts +46 -0
  44. package/src/version.ts +1 -1
  45. package/version.d.mts +1 -1
  46. package/version.d.ts +1 -1
  47. package/version.js +1 -1
  48. package/version.mjs +1 -1
@@ -0,0 +1,97 @@
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 VoiceDubbing extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to dub audio content to a target language.
10
+ */
11
+ create(
12
+ body: VoiceDubbingCreateParams,
13
+ options?: RequestOptions,
14
+ ): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse> {
15
+ return wrapAsWaitableResource<VoiceDubbingCreateResponse>(this._client)(
16
+ this._client.post('/v1/voice_dubbing', { body, ...options }),
17
+ );
18
+ }
19
+ }
20
+
21
+ export interface VoiceDubbingCreateResponse {
22
+ /**
23
+ * The ID of the newly created task.
24
+ */
25
+ id: string;
26
+ }
27
+
28
+ export interface VoiceDubbingCreateParams {
29
+ /**
30
+ * A HTTPS URL or data URI containing the audio file to dub. See
31
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
32
+ */
33
+ audioUri: string;
34
+
35
+ /**
36
+ * The model variant to use.
37
+ */
38
+ model: 'eleven_voice_dubbing';
39
+
40
+ /**
41
+ * The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
42
+ * French).
43
+ */
44
+ targetLang:
45
+ | 'en'
46
+ | 'hi'
47
+ | 'pt'
48
+ | 'zh'
49
+ | 'es'
50
+ | 'fr'
51
+ | 'de'
52
+ | 'ja'
53
+ | 'ar'
54
+ | 'ru'
55
+ | 'ko'
56
+ | 'id'
57
+ | 'it'
58
+ | 'nl'
59
+ | 'tr'
60
+ | 'pl'
61
+ | 'sv'
62
+ | 'fil'
63
+ | 'ms'
64
+ | 'ro'
65
+ | 'uk'
66
+ | 'el'
67
+ | 'cs'
68
+ | 'da'
69
+ | 'fi'
70
+ | 'bg'
71
+ | 'hr'
72
+ | 'sk'
73
+ | 'ta';
74
+
75
+ /**
76
+ * Whether to disable voice cloning and use a generic voice instead.
77
+ */
78
+ disableVoiceCloning?: boolean;
79
+
80
+ /**
81
+ * Whether to remove background audio from the dubbed output.
82
+ */
83
+ dropBackgroundAudio?: boolean;
84
+
85
+ /**
86
+ * The number of speakers in the audio. If not provided, it will be detected
87
+ * automatically.
88
+ */
89
+ numSpeakers?: number;
90
+ }
91
+
92
+ export declare namespace VoiceDubbing {
93
+ export {
94
+ type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse,
95
+ type VoiceDubbingCreateParams as VoiceDubbingCreateParams,
96
+ };
97
+ }
@@ -0,0 +1,46 @@
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 VoiceIsolation extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to isolate and enhance voices in audio.
10
+ */
11
+ create(
12
+ body: VoiceIsolationCreateParams,
13
+ options?: RequestOptions,
14
+ ): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse> {
15
+ return wrapAsWaitableResource<VoiceIsolationCreateResponse>(this._client)(
16
+ this._client.post('/v1/voice_isolation', { body, ...options }),
17
+ );
18
+ }
19
+ }
20
+
21
+ export interface VoiceIsolationCreateResponse {
22
+ /**
23
+ * The ID of the newly created task.
24
+ */
25
+ id: string;
26
+ }
27
+
28
+ export interface VoiceIsolationCreateParams {
29
+ /**
30
+ * A HTTPS URL or data URI containing the audio file to process. See
31
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
32
+ */
33
+ audioUrl: string;
34
+
35
+ /**
36
+ * The model variant to use.
37
+ */
38
+ model: 'eleven_voice_isolation';
39
+ }
40
+
41
+ export declare namespace VoiceIsolation {
42
+ export {
43
+ type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse,
44
+ type VoiceIsolationCreateParams as VoiceIsolationCreateParams,
45
+ };
46
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.2.0'; // x-release-please-version
1
+ export const VERSION = '3.3.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.2.0";
1
+ export declare const VERSION = "3.3.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.2.0";
1
+ export declare const VERSION = "3.3.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.2.0'; // x-release-please-version
4
+ exports.VERSION = '3.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.2.0'; // x-release-please-version
1
+ export const VERSION = '3.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map