@runwayml/sdk 3.11.0 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +115 -0
- package/LICENSE +1 -1
- package/README.md +43 -2
- package/client.d.mts +53 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +53 -4
- package/client.d.ts.map +1 -1
- package/client.js +75 -20
- package/client.js.map +1 -1
- package/client.mjs +75 -20
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/avatars.d.mts +1308 -0
- package/resources/avatars.d.mts.map +1 -0
- package/resources/avatars.d.ts +1308 -0
- package/resources/avatars.d.ts.map +1 -0
- package/resources/avatars.js +87 -0
- package/resources/avatars.js.map +1 -0
- package/resources/avatars.mjs +83 -0
- package/resources/avatars.mjs.map +1 -0
- package/resources/character-performance.d.mts +3 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +3 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +3 -0
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +3 -0
- package/resources/character-performance.mjs.map +1 -1
- package/resources/documents.d.mts +209 -0
- package/resources/documents.d.mts.map +1 -0
- package/resources/documents.d.ts +209 -0
- package/resources/documents.d.ts.map +1 -0
- package/resources/documents.js +75 -0
- package/resources/documents.js.map +1 -0
- package/resources/documents.mjs +71 -0
- package/resources/documents.mjs.map +1 -0
- package/resources/image-to-video.d.mts +58 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +58 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +3 -0
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +3 -0
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/realtime-sessions.d.mts +180 -0
- package/resources/realtime-sessions.d.mts.map +1 -0
- package/resources/realtime-sessions.d.ts +180 -0
- package/resources/realtime-sessions.d.ts.map +1 -0
- package/resources/realtime-sessions.js +32 -0
- package/resources/realtime-sessions.js.map +1 -0
- package/resources/realtime-sessions.mjs +28 -0
- package/resources/realtime-sessions.mjs.map +1 -0
- package/resources/sound-effect.d.mts +3 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +3 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/sound-effect.js +3 -0
- package/resources/sound-effect.js.map +1 -1
- package/resources/sound-effect.mjs +3 -0
- package/resources/sound-effect.mjs.map +1 -1
- package/resources/speech-to-speech.d.mts +3 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +3 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/speech-to-speech.js +3 -0
- package/resources/speech-to-speech.js.map +1 -1
- package/resources/speech-to-speech.mjs +3 -0
- package/resources/speech-to-speech.mjs.map +1 -1
- package/resources/tasks.d.mts +3 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +3 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +3 -0
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +3 -0
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +3 -0
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +3 -0
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.js +3 -0
- package/resources/text-to-image.js.map +1 -1
- package/resources/text-to-image.mjs +3 -0
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/text-to-speech.d.mts +3 -0
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -0
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech.js +3 -0
- package/resources/text-to-speech.js.map +1 -1
- package/resources/text-to-speech.mjs +3 -0
- package/resources/text-to-speech.mjs.map +1 -1
- package/resources/text-to-video.d.mts +43 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +43 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/text-to-video.js +3 -0
- package/resources/text-to-video.js.map +1 -1
- package/resources/text-to-video.mjs +3 -0
- package/resources/text-to-video.mjs.map +1 -1
- package/resources/video-to-video.d.mts +8 -5
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +8 -5
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +3 -1
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +3 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts +3 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +3 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.js +3 -0
- package/resources/voice-dubbing.js.map +1 -1
- package/resources/voice-dubbing.mjs +3 -0
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts +3 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +3 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +3 -0
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +3 -0
- package/resources/voice-isolation.mjs.map +1 -1
- package/resources/voices.d.mts +257 -0
- package/resources/voices.d.mts.map +1 -0
- package/resources/voices.d.ts +257 -0
- package/resources/voices.d.ts.map +1 -0
- package/resources/voices.js +47 -0
- package/resources/voices.js.map +1 -0
- package/resources/voices.mjs +43 -0
- package/resources/voices.mjs.map +1 -0
- package/src/client.ts +173 -35
- package/src/core/pagination.ts +157 -0
- package/src/index.ts +1 -0
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/avatars.ts +2049 -0
- package/src/resources/character-performance.ts +3 -0
- package/src/resources/documents.ts +270 -0
- package/src/resources/image-to-video.ts +68 -0
- package/src/resources/index.ts +37 -5
- package/src/resources/organization.ts +7 -3
- package/src/resources/realtime-sessions.ts +251 -0
- package/src/resources/sound-effect.ts +3 -0
- package/src/resources/speech-to-speech.ts +3 -0
- package/src/resources/tasks.ts +3 -0
- package/src/resources/text-to-image.ts +3 -0
- package/src/resources/text-to-speech.ts +3 -0
- package/src/resources/text-to-video.ts +50 -0
- package/src/resources/video-to-video.ts +9 -6
- package/src/resources/voice-dubbing.ts +3 -0
- package/src/resources/voice-isolation.ts +3 -0
- package/src/resources/voices.ts +345 -0
- 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/resources/video-upscale.d.mts +0 -35
- package/resources/video-upscale.d.mts.map +0 -1
- package/resources/video-upscale.d.ts +0 -35
- package/resources/video-upscale.d.ts.map +0 -1
- package/resources/video-upscale.js +0 -25
- package/resources/video-upscale.js.map +0 -1
- package/resources/video-upscale.mjs +0 -21
- package/resources/video-upscale.mjs.map +0 -1
- package/src/resources/video-upscale.ts +0 -51
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,120 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.15.0 (2026-03-06)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.14.3...v3.15.0](https://github.com/runwayml/sdk-node/compare/v3.14.3...v3.15.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add avatar, voice, document, and realtime session endpoints ([9534a7e](https://github.com/runwayml/sdk-node/commit/9534a7e892b9b11d7c2420a0b79b4c065b820a42))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* fix request delays for retrying to be more respectful of high requested delays ([0a0a653](https://github.com/runwayml/sdk-node/commit/0a0a653562760410cbe9425ab6ef118ee8682546))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Chores
|
|
18
|
+
|
|
19
|
+
* **docs:** add missing descriptions ([322c513](https://github.com/runwayml/sdk-node/commit/322c513a65a9250c65215cc636ee1ca061c1592a))
|
|
20
|
+
* **internal:** move stringifyQuery implementation to internal function ([bdc20f1](https://github.com/runwayml/sdk-node/commit/bdc20f12c6558a6f405f0790b1601d4bbf2b9078))
|
|
21
|
+
* **test:** do not count install time for mock server timeout ([a5761c0](https://github.com/runwayml/sdk-node/commit/a5761c04cc605146aa284eeefcaf1f23bd7ab0ff))
|
|
22
|
+
|
|
23
|
+
## 3.14.3 (2026-02-23)
|
|
24
|
+
|
|
25
|
+
Full Changelog: [v3.14.2...v3.14.3](https://github.com/runwayml/sdk-node/compare/v3.14.2...v3.14.3)
|
|
26
|
+
|
|
27
|
+
### Chores
|
|
28
|
+
|
|
29
|
+
* update SDK settings ([33d29dc](https://github.com/runwayml/sdk-node/commit/33d29dc4cf285d901ad009072d62c27d3d9d5c87))
|
|
30
|
+
* update SDK settings ([5729c74](https://github.com/runwayml/sdk-node/commit/5729c74a33e032e12b36e5afc95aaabfbc3d62ad))
|
|
31
|
+
* update SDK settings ([e412022](https://github.com/runwayml/sdk-node/commit/e412022ebbee63a25d68a053949b35668668c4ca))
|
|
32
|
+
|
|
33
|
+
## 3.14.2 (2026-02-23)
|
|
34
|
+
|
|
35
|
+
Full Changelog: [v3.14.1...v3.14.2](https://github.com/runwayml/sdk-node/compare/v3.14.1...v3.14.2)
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* **docs/contributing:** correct pnpm link command ([6ef2e72](https://github.com/runwayml/sdk-node/commit/6ef2e72b83770f631461812d09ef279cd9df99f3))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Chores
|
|
43
|
+
|
|
44
|
+
* **internal/client:** fix form-urlencoded requests ([5f9ef37](https://github.com/runwayml/sdk-node/commit/5f9ef3706dd70eb0a1a95a26f01d7e08bcced1c6))
|
|
45
|
+
* update mock server docs ([3eece21](https://github.com/runwayml/sdk-node/commit/3eece21562712a0619b67de364dbc57041089dbb))
|
|
46
|
+
|
|
47
|
+
## 3.14.1 (2026-02-13)
|
|
48
|
+
|
|
49
|
+
Full Changelog: [v3.14.0...v3.14.1](https://github.com/runwayml/sdk-node/compare/v3.14.0...v3.14.1)
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
* **api:** Remove invalid 4.5 i2v ratio ([445c547](https://github.com/runwayml/sdk-node/commit/445c547bfe5ca956c3b65b0f55ed6bce6f3d6375))
|
|
54
|
+
|
|
55
|
+
## 3.14.0 (2026-02-12)
|
|
56
|
+
|
|
57
|
+
Full Changelog: [v3.13.0...v3.14.0](https://github.com/runwayml/sdk-node/compare/v3.13.0...v3.14.0)
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* **api:** Gen-4.5 t2v+i2v ([dca7320](https://github.com/runwayml/sdk-node/commit/dca732027218879d0e6c2e000bfa68c96793ebd8))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Bug Fixes
|
|
65
|
+
|
|
66
|
+
* **client:** avoid removing abort listener too early ([5b9cfe9](https://github.com/runwayml/sdk-node/commit/5b9cfe9bb2930300250f70418ec2784074db3908))
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Chores
|
|
70
|
+
|
|
71
|
+
* **client:** restructure abort controller binding ([72b0d5a](https://github.com/runwayml/sdk-node/commit/72b0d5ac5383ea1f667d578a4d41e33dc3b9d1af))
|
|
72
|
+
* **internal:** avoid type checking errors with ts-reset ([2fecbbf](https://github.com/runwayml/sdk-node/commit/2fecbbf2c2d6857a25a6c6829a034ce8a2e1ab1c))
|
|
73
|
+
|
|
74
|
+
## 3.13.0 (2026-02-03)
|
|
75
|
+
|
|
76
|
+
Full Changelog: [v3.12.0...v3.13.0](https://github.com/runwayml/sdk-node/compare/v3.12.0...v3.13.0)
|
|
77
|
+
|
|
78
|
+
### Features
|
|
79
|
+
|
|
80
|
+
* **api:** Deprecate v2v ratio ([59dacf5](https://github.com/runwayml/sdk-node/commit/59dacf52a52f4d9dd706305448c834dcf9286146))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Bug Fixes
|
|
84
|
+
|
|
85
|
+
* **client:** avoid memory leak with abort signals ([71a3c3f](https://github.com/runwayml/sdk-node/commit/71a3c3f14dac8533af93206a5bf0b914d82e9e58))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Chores
|
|
89
|
+
|
|
90
|
+
* **ci:** upgrade `actions/github-script` ([e9e6329](https://github.com/runwayml/sdk-node/commit/e9e6329cdb7dbe97cc93d2881cb6b6e37897a1b8))
|
|
91
|
+
* **client:** do not parse responses with empty content-length ([750bb75](https://github.com/runwayml/sdk-node/commit/750bb7514b888c70b90335d72ea51b5559c204d1))
|
|
92
|
+
* **internal:** update `actions/checkout` version ([1b556a4](https://github.com/runwayml/sdk-node/commit/1b556a470410c8fa3aa656d1ee07694590721c88))
|
|
93
|
+
|
|
94
|
+
## 3.12.0 (2026-01-17)
|
|
95
|
+
|
|
96
|
+
Full Changelog: [v3.11.0...v3.12.0](https://github.com/runwayml/sdk-node/compare/v3.11.0...v3.12.0)
|
|
97
|
+
|
|
98
|
+
### Features
|
|
99
|
+
|
|
100
|
+
* **api:** Remove video_upscale resource ([5faaa58](https://github.com/runwayml/sdk-node/commit/5faaa5818b2654d067bbe84d502061dac24a46b6))
|
|
101
|
+
* **api:** Sunset upscale endpoint ([76beaa9](https://github.com/runwayml/sdk-node/commit/76beaa91fac29ca3efaab369754927b96a020b37))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
* **mcp:** correct code tool API endpoint ([57d4a99](https://github.com/runwayml/sdk-node/commit/57d4a9902807f0ef52fc5bba9e7f86458db8662f))
|
|
107
|
+
* **mcp:** return correct lines on typescript errors ([35fd83a](https://github.com/runwayml/sdk-node/commit/35fd83aeda8a6dff376a3210226ec53590874ba4))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Chores
|
|
111
|
+
|
|
112
|
+
* break long lines in snippets into multiline ([08bfc7d](https://github.com/runwayml/sdk-node/commit/08bfc7d7bb67f864d847296917f0778096a2ffc6))
|
|
113
|
+
* **internal:** codegen related update ([7d38c14](https://github.com/runwayml/sdk-node/commit/7d38c1491bbb0738bb6e3035cc8ca830a45e5756))
|
|
114
|
+
* **internal:** codegen related update ([fd24c92](https://github.com/runwayml/sdk-node/commit/fd24c92b95e3b735ef44f6c4839fbe059e873d3d))
|
|
115
|
+
* **internal:** codegen related update ([7b0ad37](https://github.com/runwayml/sdk-node/commit/7b0ad372c8d4c9d46b7a5164c30f11d50f242bdf))
|
|
116
|
+
* **internal:** upgrade babel, qs, js-yaml ([07dcaf5](https://github.com/runwayml/sdk-node/commit/07dcaf56b0a45fd0a64004c42269bde5eef48cba))
|
|
117
|
+
|
|
3
118
|
## 3.11.0 (2025-12-04)
|
|
4
119
|
|
|
5
120
|
Full Changelog: [v3.10.0...v3.11.0](https://github.com/runwayml/sdk-node/compare/v3.10.0...v3.11.0)
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 RunwayML
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -114,7 +114,12 @@ const client = new RunwayML({
|
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
// Or, configure per-request:
|
|
117
|
-
await client.imageToVideo.create({
|
|
117
|
+
await client.imageToVideo.create({
|
|
118
|
+
model: 'gen4_turbo',
|
|
119
|
+
promptImage: 'https://example.com/assets/bunny.jpg',
|
|
120
|
+
ratio: '1280:720',
|
|
121
|
+
promptText: 'The bunny is eating a carrot',
|
|
122
|
+
}, {
|
|
118
123
|
maxRetries: 5,
|
|
119
124
|
});
|
|
120
125
|
```
|
|
@@ -131,7 +136,12 @@ const client = new RunwayML({
|
|
|
131
136
|
});
|
|
132
137
|
|
|
133
138
|
// Override per-request:
|
|
134
|
-
await client.imageToVideo.create({
|
|
139
|
+
await client.imageToVideo.create({
|
|
140
|
+
model: 'gen4_turbo',
|
|
141
|
+
promptImage: 'https://example.com/assets/bunny.jpg',
|
|
142
|
+
ratio: '1280:720',
|
|
143
|
+
promptText: 'The bunny is eating a carrot',
|
|
144
|
+
}, {
|
|
135
145
|
timeout: 5 * 1000,
|
|
136
146
|
});
|
|
137
147
|
```
|
|
@@ -140,6 +150,37 @@ On timeout, an `APIConnectionTimeoutError` is thrown.
|
|
|
140
150
|
|
|
141
151
|
Note that requests which time out will be [retried twice by default](#retries).
|
|
142
152
|
|
|
153
|
+
## Auto-pagination
|
|
154
|
+
|
|
155
|
+
List methods in the RunwayML API are paginated.
|
|
156
|
+
You can use the `for await … of` syntax to iterate through items across all pages:
|
|
157
|
+
|
|
158
|
+
```ts
|
|
159
|
+
async function fetchAllAvatarListResponses(params) {
|
|
160
|
+
const allAvatarListResponses = [];
|
|
161
|
+
// Automatically fetches more pages as needed.
|
|
162
|
+
for await (const avatarListResponse of client.avatars.list({ limit: 1 })) {
|
|
163
|
+
allAvatarListResponses.push(avatarListResponse);
|
|
164
|
+
}
|
|
165
|
+
return allAvatarListResponses;
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Alternatively, you can request a single page at a time:
|
|
170
|
+
|
|
171
|
+
```ts
|
|
172
|
+
let page = await client.avatars.list({ limit: 1 });
|
|
173
|
+
for (const avatarListResponse of page.data) {
|
|
174
|
+
console.log(avatarListResponse);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Convenience methods are provided for manually paginating:
|
|
178
|
+
while (page.hasNextPage()) {
|
|
179
|
+
page = await page.getNextPage();
|
|
180
|
+
// ...
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
143
184
|
## Advanced Usage
|
|
144
185
|
|
|
145
186
|
### Accessing raw Response data (e.g., headers)
|
package/client.d.mts
CHANGED
|
@@ -3,12 +3,17 @@ import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./
|
|
|
3
3
|
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
4
|
import * as Opts from "./internal/request-options.mjs";
|
|
5
5
|
import * as Errors from "./core/error.mjs";
|
|
6
|
+
import * as Pagination from "./core/pagination.mjs";
|
|
7
|
+
import { type CursorPageParams, CursorPageResponse } from "./core/pagination.mjs";
|
|
6
8
|
import * as UploadsCore from "./core/uploads.mjs";
|
|
7
9
|
import * as API from "./resources/index.mjs";
|
|
8
10
|
import { APIPromise } from "./core/api-promise.mjs";
|
|
11
|
+
import { AvatarCreateParams, AvatarCreateResponse, AvatarListParams, AvatarListResponse, AvatarListResponsesCursorPage, AvatarRetrieveResponse, AvatarUpdateParams, AvatarUpdateResponse, Avatars } from "./resources/avatars.mjs";
|
|
9
12
|
import { CharacterPerformance, CharacterPerformanceCreateParams, CharacterPerformanceCreateResponse } from "./resources/character-performance.mjs";
|
|
13
|
+
import { DocumentCreateParams, DocumentCreateResponse, DocumentListParams, DocumentListResponse, DocumentListResponsesCursorPage, DocumentRetrieveResponse, Documents } from "./resources/documents.mjs";
|
|
10
14
|
import { ImageToVideo, ImageToVideoCreateParams, ImageToVideoCreateResponse } from "./resources/image-to-video.mjs";
|
|
11
15
|
import { Organization, OrganizationRetrieveResponse, OrganizationRetrieveUsageParams, OrganizationRetrieveUsageResponse } from "./resources/organization.mjs";
|
|
16
|
+
import { RealtimeSessionCreateParams, RealtimeSessionCreateResponse, RealtimeSessionRetrieveResponse, RealtimeSessions } from "./resources/realtime-sessions.mjs";
|
|
12
17
|
import { SoundEffect, SoundEffectCreateParams, SoundEffectCreateResponse } from "./resources/sound-effect.mjs";
|
|
13
18
|
import { SpeechToSpeech, SpeechToSpeechCreateParams, SpeechToSpeechCreateResponse } from "./resources/speech-to-speech.mjs";
|
|
14
19
|
import { TaskRetrieveResponse, Tasks } from "./resources/tasks.mjs";
|
|
@@ -16,10 +21,10 @@ import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from
|
|
|
16
21
|
import { TextToSpeech, TextToSpeechCreateParams, TextToSpeechCreateResponse } from "./resources/text-to-speech.mjs";
|
|
17
22
|
import { TextToVideo, TextToVideoCreateParams, TextToVideoCreateResponse } from "./resources/text-to-video.mjs";
|
|
18
23
|
import { VideoToVideo, VideoToVideoCreateParams, VideoToVideoCreateResponse } from "./resources/video-to-video.mjs";
|
|
19
|
-
import { VideoUpscale, VideoUpscaleCreateParams, VideoUpscaleCreateResponse } from "./resources/video-upscale.mjs";
|
|
20
24
|
import { VoiceDubbing, VoiceDubbingCreateParams, VoiceDubbingCreateResponse } from "./resources/voice-dubbing.mjs";
|
|
21
25
|
import { VoiceIsolation, VoiceIsolationCreateParams, VoiceIsolationCreateResponse } from "./resources/voice-isolation.mjs";
|
|
22
26
|
import { Uploads, UploadsCreateEphemeralParams, UploadCreateEphemeralResponse } from "./resources/uploads.mjs";
|
|
27
|
+
import { VoiceCreateParams, VoiceCreateResponse, VoiceListParams, VoiceListResponse, VoiceListResponsesCursorPage, VoicePreviewParams, VoicePreviewResponse, VoiceRetrieveResponse, Voices } from "./resources/voices.mjs";
|
|
23
28
|
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
24
29
|
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
25
30
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
@@ -131,7 +136,7 @@ export declare class RunwayML {
|
|
|
131
136
|
/**
|
|
132
137
|
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
133
138
|
*/
|
|
134
|
-
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
139
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string;
|
|
135
140
|
private getUserAgent;
|
|
136
141
|
protected defaultIdempotencyKey(): string;
|
|
137
142
|
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
@@ -158,6 +163,8 @@ export declare class RunwayML {
|
|
|
158
163
|
private methodRequest;
|
|
159
164
|
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
160
165
|
private makeRequest;
|
|
166
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: PromiseOrValue<RequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
167
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: PromiseOrValue<FinalRequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
161
168
|
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
162
169
|
private shouldRetry;
|
|
163
170
|
private retryRequest;
|
|
@@ -170,6 +177,7 @@ export declare class RunwayML {
|
|
|
170
177
|
timeout: number;
|
|
171
178
|
}>;
|
|
172
179
|
private buildHeaders;
|
|
180
|
+
private _makeAbort;
|
|
173
181
|
private buildBody;
|
|
174
182
|
static RunwayML: typeof RunwayML;
|
|
175
183
|
static DEFAULT_TIMEOUT: number;
|
|
@@ -187,29 +195,66 @@ export declare class RunwayML {
|
|
|
187
195
|
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
188
196
|
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
189
197
|
static toFile: typeof UploadsCore.toFile;
|
|
198
|
+
/**
|
|
199
|
+
* Endpoints for managing tasks that have been submitted.
|
|
200
|
+
*/
|
|
190
201
|
tasks: API.Tasks;
|
|
202
|
+
/**
|
|
203
|
+
* These endpoints all kick off tasks to create generations.
|
|
204
|
+
*/
|
|
191
205
|
imageToVideo: API.ImageToVideo;
|
|
206
|
+
/**
|
|
207
|
+
* These endpoints all kick off tasks to create generations.
|
|
208
|
+
*/
|
|
192
209
|
videoToVideo: API.VideoToVideo;
|
|
210
|
+
/**
|
|
211
|
+
* These endpoints all kick off tasks to create generations.
|
|
212
|
+
*/
|
|
193
213
|
textToVideo: API.TextToVideo;
|
|
214
|
+
/**
|
|
215
|
+
* These endpoints all kick off tasks to create generations.
|
|
216
|
+
*/
|
|
194
217
|
textToImage: API.TextToImage;
|
|
195
|
-
|
|
218
|
+
/**
|
|
219
|
+
* These endpoints all kick off tasks to create generations.
|
|
220
|
+
*/
|
|
196
221
|
characterPerformance: API.CharacterPerformance;
|
|
222
|
+
/**
|
|
223
|
+
* These endpoints all kick off tasks to create generations.
|
|
224
|
+
*/
|
|
197
225
|
textToSpeech: API.TextToSpeech;
|
|
226
|
+
/**
|
|
227
|
+
* These endpoints all kick off tasks to create generations.
|
|
228
|
+
*/
|
|
198
229
|
soundEffect: API.SoundEffect;
|
|
230
|
+
/**
|
|
231
|
+
* These endpoints all kick off tasks to create generations.
|
|
232
|
+
*/
|
|
199
233
|
voiceIsolation: API.VoiceIsolation;
|
|
234
|
+
/**
|
|
235
|
+
* These endpoints all kick off tasks to create generations.
|
|
236
|
+
*/
|
|
200
237
|
voiceDubbing: API.VoiceDubbing;
|
|
238
|
+
/**
|
|
239
|
+
* These endpoints all kick off tasks to create generations.
|
|
240
|
+
*/
|
|
201
241
|
speechToSpeech: API.SpeechToSpeech;
|
|
202
242
|
organization: API.Organization;
|
|
243
|
+
avatars: API.Avatars;
|
|
244
|
+
documents: API.Documents;
|
|
245
|
+
realtimeSessions: API.RealtimeSessions;
|
|
246
|
+
voices: API.Voices;
|
|
203
247
|
uploads: API.Uploads;
|
|
204
248
|
}
|
|
205
249
|
export declare namespace RunwayML {
|
|
206
250
|
export type RequestOptions = Opts.RequestOptions;
|
|
251
|
+
export import CursorPage = Pagination.CursorPage;
|
|
252
|
+
export { type CursorPageParams as CursorPageParams, type CursorPageResponse as CursorPageResponse };
|
|
207
253
|
export { Tasks as Tasks, type TaskRetrieveResponse as TaskRetrieveResponse };
|
|
208
254
|
export { ImageToVideo as ImageToVideo, type ImageToVideoCreateResponse as ImageToVideoCreateResponse, type ImageToVideoCreateParams as ImageToVideoCreateParams, };
|
|
209
255
|
export { VideoToVideo as VideoToVideo, type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
210
256
|
export { TextToVideo as TextToVideo, type TextToVideoCreateResponse as TextToVideoCreateResponse, type TextToVideoCreateParams as TextToVideoCreateParams, };
|
|
211
257
|
export { TextToImage as TextToImage, type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };
|
|
212
|
-
export { VideoUpscale as VideoUpscale, type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
|
|
213
258
|
export { CharacterPerformance as CharacterPerformance, type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams, };
|
|
214
259
|
export { TextToSpeech as TextToSpeech, type TextToSpeechCreateResponse as TextToSpeechCreateResponse, type TextToSpeechCreateParams as TextToSpeechCreateParams, };
|
|
215
260
|
export { SoundEffect as SoundEffect, type SoundEffectCreateResponse as SoundEffectCreateResponse, type SoundEffectCreateParams as SoundEffectCreateParams, };
|
|
@@ -217,6 +262,10 @@ export declare namespace RunwayML {
|
|
|
217
262
|
export { VoiceDubbing as VoiceDubbing, type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse, type VoiceDubbingCreateParams as VoiceDubbingCreateParams, };
|
|
218
263
|
export { SpeechToSpeech as SpeechToSpeech, type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse, type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams, };
|
|
219
264
|
export { Organization as Organization, type OrganizationRetrieveResponse as OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams, };
|
|
265
|
+
export { Avatars as Avatars, type AvatarCreateResponse as AvatarCreateResponse, type AvatarRetrieveResponse as AvatarRetrieveResponse, type AvatarUpdateResponse as AvatarUpdateResponse, type AvatarListResponse as AvatarListResponse, type AvatarListResponsesCursorPage as AvatarListResponsesCursorPage, type AvatarCreateParams as AvatarCreateParams, type AvatarUpdateParams as AvatarUpdateParams, type AvatarListParams as AvatarListParams, };
|
|
266
|
+
export { Documents as Documents, type DocumentCreateResponse as DocumentCreateResponse, type DocumentRetrieveResponse as DocumentRetrieveResponse, type DocumentListResponse as DocumentListResponse, type DocumentListResponsesCursorPage as DocumentListResponsesCursorPage, type DocumentCreateParams as DocumentCreateParams, type DocumentListParams as DocumentListParams, };
|
|
267
|
+
export { RealtimeSessions as RealtimeSessions, type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse as RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams as RealtimeSessionCreateParams, };
|
|
268
|
+
export { Voices as Voices, type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoicePreviewResponse as VoicePreviewResponse, type VoiceListResponsesCursorPage as VoiceListResponsesCursorPage, type VoiceCreateParams as VoiceCreateParams, type VoiceListParams as VoiceListParams, type VoicePreviewParams as VoicePreviewParams, };
|
|
220
269
|
export { Uploads as Uploads, type UploadCreateEphemeralResponse as UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams as UploadsCreateEphemeralParams, };
|
|
221
270
|
}
|
|
222
271
|
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAE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AAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
package/client.d.ts
CHANGED
|
@@ -3,12 +3,17 @@ import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./
|
|
|
3
3
|
export type { Logger, LogLevel } from "./internal/utils/log.js";
|
|
4
4
|
import * as Opts from "./internal/request-options.js";
|
|
5
5
|
import * as Errors from "./core/error.js";
|
|
6
|
+
import * as Pagination from "./core/pagination.js";
|
|
7
|
+
import { type CursorPageParams, CursorPageResponse } from "./core/pagination.js";
|
|
6
8
|
import * as UploadsCore from "./core/uploads.js";
|
|
7
9
|
import * as API from "./resources/index.js";
|
|
8
10
|
import { APIPromise } from "./core/api-promise.js";
|
|
11
|
+
import { AvatarCreateParams, AvatarCreateResponse, AvatarListParams, AvatarListResponse, AvatarListResponsesCursorPage, AvatarRetrieveResponse, AvatarUpdateParams, AvatarUpdateResponse, Avatars } from "./resources/avatars.js";
|
|
9
12
|
import { CharacterPerformance, CharacterPerformanceCreateParams, CharacterPerformanceCreateResponse } from "./resources/character-performance.js";
|
|
13
|
+
import { DocumentCreateParams, DocumentCreateResponse, DocumentListParams, DocumentListResponse, DocumentListResponsesCursorPage, DocumentRetrieveResponse, Documents } from "./resources/documents.js";
|
|
10
14
|
import { ImageToVideo, ImageToVideoCreateParams, ImageToVideoCreateResponse } from "./resources/image-to-video.js";
|
|
11
15
|
import { Organization, OrganizationRetrieveResponse, OrganizationRetrieveUsageParams, OrganizationRetrieveUsageResponse } from "./resources/organization.js";
|
|
16
|
+
import { RealtimeSessionCreateParams, RealtimeSessionCreateResponse, RealtimeSessionRetrieveResponse, RealtimeSessions } from "./resources/realtime-sessions.js";
|
|
12
17
|
import { SoundEffect, SoundEffectCreateParams, SoundEffectCreateResponse } from "./resources/sound-effect.js";
|
|
13
18
|
import { SpeechToSpeech, SpeechToSpeechCreateParams, SpeechToSpeechCreateResponse } from "./resources/speech-to-speech.js";
|
|
14
19
|
import { TaskRetrieveResponse, Tasks } from "./resources/tasks.js";
|
|
@@ -16,10 +21,10 @@ import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from
|
|
|
16
21
|
import { TextToSpeech, TextToSpeechCreateParams, TextToSpeechCreateResponse } from "./resources/text-to-speech.js";
|
|
17
22
|
import { TextToVideo, TextToVideoCreateParams, TextToVideoCreateResponse } from "./resources/text-to-video.js";
|
|
18
23
|
import { VideoToVideo, VideoToVideoCreateParams, VideoToVideoCreateResponse } from "./resources/video-to-video.js";
|
|
19
|
-
import { VideoUpscale, VideoUpscaleCreateParams, VideoUpscaleCreateResponse } from "./resources/video-upscale.js";
|
|
20
24
|
import { VoiceDubbing, VoiceDubbingCreateParams, VoiceDubbingCreateResponse } from "./resources/voice-dubbing.js";
|
|
21
25
|
import { VoiceIsolation, VoiceIsolationCreateParams, VoiceIsolationCreateResponse } from "./resources/voice-isolation.js";
|
|
22
26
|
import { Uploads, UploadsCreateEphemeralParams, UploadCreateEphemeralResponse } from "./resources/uploads.js";
|
|
27
|
+
import { VoiceCreateParams, VoiceCreateResponse, VoiceListParams, VoiceListResponse, VoiceListResponsesCursorPage, VoicePreviewParams, VoicePreviewResponse, VoiceRetrieveResponse, Voices } from "./resources/voices.js";
|
|
23
28
|
import { type Fetch } from "./internal/builtin-types.js";
|
|
24
29
|
import { HeadersLike, NullableHeaders } from "./internal/headers.js";
|
|
25
30
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
|
|
@@ -131,7 +136,7 @@ export declare class RunwayML {
|
|
|
131
136
|
/**
|
|
132
137
|
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
133
138
|
*/
|
|
134
|
-
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
139
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string;
|
|
135
140
|
private getUserAgent;
|
|
136
141
|
protected defaultIdempotencyKey(): string;
|
|
137
142
|
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
@@ -158,6 +163,8 @@ export declare class RunwayML {
|
|
|
158
163
|
private methodRequest;
|
|
159
164
|
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
160
165
|
private makeRequest;
|
|
166
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: PromiseOrValue<RequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
167
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: PromiseOrValue<FinalRequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
161
168
|
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
162
169
|
private shouldRetry;
|
|
163
170
|
private retryRequest;
|
|
@@ -170,6 +177,7 @@ export declare class RunwayML {
|
|
|
170
177
|
timeout: number;
|
|
171
178
|
}>;
|
|
172
179
|
private buildHeaders;
|
|
180
|
+
private _makeAbort;
|
|
173
181
|
private buildBody;
|
|
174
182
|
static RunwayML: typeof RunwayML;
|
|
175
183
|
static DEFAULT_TIMEOUT: number;
|
|
@@ -187,29 +195,66 @@ export declare class RunwayML {
|
|
|
187
195
|
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
188
196
|
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
189
197
|
static toFile: typeof UploadsCore.toFile;
|
|
198
|
+
/**
|
|
199
|
+
* Endpoints for managing tasks that have been submitted.
|
|
200
|
+
*/
|
|
190
201
|
tasks: API.Tasks;
|
|
202
|
+
/**
|
|
203
|
+
* These endpoints all kick off tasks to create generations.
|
|
204
|
+
*/
|
|
191
205
|
imageToVideo: API.ImageToVideo;
|
|
206
|
+
/**
|
|
207
|
+
* These endpoints all kick off tasks to create generations.
|
|
208
|
+
*/
|
|
192
209
|
videoToVideo: API.VideoToVideo;
|
|
210
|
+
/**
|
|
211
|
+
* These endpoints all kick off tasks to create generations.
|
|
212
|
+
*/
|
|
193
213
|
textToVideo: API.TextToVideo;
|
|
214
|
+
/**
|
|
215
|
+
* These endpoints all kick off tasks to create generations.
|
|
216
|
+
*/
|
|
194
217
|
textToImage: API.TextToImage;
|
|
195
|
-
|
|
218
|
+
/**
|
|
219
|
+
* These endpoints all kick off tasks to create generations.
|
|
220
|
+
*/
|
|
196
221
|
characterPerformance: API.CharacterPerformance;
|
|
222
|
+
/**
|
|
223
|
+
* These endpoints all kick off tasks to create generations.
|
|
224
|
+
*/
|
|
197
225
|
textToSpeech: API.TextToSpeech;
|
|
226
|
+
/**
|
|
227
|
+
* These endpoints all kick off tasks to create generations.
|
|
228
|
+
*/
|
|
198
229
|
soundEffect: API.SoundEffect;
|
|
230
|
+
/**
|
|
231
|
+
* These endpoints all kick off tasks to create generations.
|
|
232
|
+
*/
|
|
199
233
|
voiceIsolation: API.VoiceIsolation;
|
|
234
|
+
/**
|
|
235
|
+
* These endpoints all kick off tasks to create generations.
|
|
236
|
+
*/
|
|
200
237
|
voiceDubbing: API.VoiceDubbing;
|
|
238
|
+
/**
|
|
239
|
+
* These endpoints all kick off tasks to create generations.
|
|
240
|
+
*/
|
|
201
241
|
speechToSpeech: API.SpeechToSpeech;
|
|
202
242
|
organization: API.Organization;
|
|
243
|
+
avatars: API.Avatars;
|
|
244
|
+
documents: API.Documents;
|
|
245
|
+
realtimeSessions: API.RealtimeSessions;
|
|
246
|
+
voices: API.Voices;
|
|
203
247
|
uploads: API.Uploads;
|
|
204
248
|
}
|
|
205
249
|
export declare namespace RunwayML {
|
|
206
250
|
export type RequestOptions = Opts.RequestOptions;
|
|
251
|
+
export import CursorPage = Pagination.CursorPage;
|
|
252
|
+
export { type CursorPageParams as CursorPageParams, type CursorPageResponse as CursorPageResponse };
|
|
207
253
|
export { Tasks as Tasks, type TaskRetrieveResponse as TaskRetrieveResponse };
|
|
208
254
|
export { ImageToVideo as ImageToVideo, type ImageToVideoCreateResponse as ImageToVideoCreateResponse, type ImageToVideoCreateParams as ImageToVideoCreateParams, };
|
|
209
255
|
export { VideoToVideo as VideoToVideo, type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
210
256
|
export { TextToVideo as TextToVideo, type TextToVideoCreateResponse as TextToVideoCreateResponse, type TextToVideoCreateParams as TextToVideoCreateParams, };
|
|
211
257
|
export { TextToImage as TextToImage, type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };
|
|
212
|
-
export { VideoUpscale as VideoUpscale, type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
|
|
213
258
|
export { CharacterPerformance as CharacterPerformance, type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams, };
|
|
214
259
|
export { TextToSpeech as TextToSpeech, type TextToSpeechCreateResponse as TextToSpeechCreateResponse, type TextToSpeechCreateParams as TextToSpeechCreateParams, };
|
|
215
260
|
export { SoundEffect as SoundEffect, type SoundEffectCreateResponse as SoundEffectCreateResponse, type SoundEffectCreateParams as SoundEffectCreateParams, };
|
|
@@ -217,6 +262,10 @@ export declare namespace RunwayML {
|
|
|
217
262
|
export { VoiceDubbing as VoiceDubbing, type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse, type VoiceDubbingCreateParams as VoiceDubbingCreateParams, };
|
|
218
263
|
export { SpeechToSpeech as SpeechToSpeech, type SpeechToSpeechCreateResponse as SpeechToSpeechCreateResponse, type SpeechToSpeechCreateParams as SpeechToSpeechCreateParams, };
|
|
219
264
|
export { Organization as Organization, type OrganizationRetrieveResponse as OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams, };
|
|
265
|
+
export { Avatars as Avatars, type AvatarCreateResponse as AvatarCreateResponse, type AvatarRetrieveResponse as AvatarRetrieveResponse, type AvatarUpdateResponse as AvatarUpdateResponse, type AvatarListResponse as AvatarListResponse, type AvatarListResponsesCursorPage as AvatarListResponsesCursorPage, type AvatarCreateParams as AvatarCreateParams, type AvatarUpdateParams as AvatarUpdateParams, type AvatarListParams as AvatarListParams, };
|
|
266
|
+
export { Documents as Documents, type DocumentCreateResponse as DocumentCreateResponse, type DocumentRetrieveResponse as DocumentRetrieveResponse, type DocumentListResponse as DocumentListResponse, type DocumentListResponsesCursorPage as DocumentListResponsesCursorPage, type DocumentCreateParams as DocumentCreateParams, type DocumentListParams as DocumentListParams, };
|
|
267
|
+
export { RealtimeSessions as RealtimeSessions, type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse as RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams as RealtimeSessionCreateParams, };
|
|
268
|
+
export { Voices as Voices, type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoicePreviewResponse as VoicePreviewResponse, type VoiceListResponsesCursorPage as VoiceListResponsesCursorPage, type VoiceCreateParams as VoiceCreateParams, type VoiceListParams as VoiceListParams, type VoicePreviewParams as VoicePreviewParams, };
|
|
220
269
|
export { Uploads as Uploads, type UploadCreateEphemeralResponse as UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams as UploadsCreateEphemeralParams, };
|
|
221
270
|
}
|
|
222
271
|
//# sourceMappingURL=client.d.ts.map
|
package/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,gBAAgB,EAAE,kBAAkB,EAAE;OAC3D,KAAK,WAAW;OAChB,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,6BAA6B,EAC7B,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,OAAO,EACR;OACM,EACL,oBAAoB,EACpB,gCAAgC,EAChC,kCAAkC,EACnC;OACM,EAC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