@runwayml/sdk 3.20.0 → 3.21.1

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 (179) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.js +11 -0
  11. package/client.js.map +1 -1
  12. package/client.mjs +11 -0
  13. package/client.mjs.map +1 -1
  14. package/core/api-promise.d.mts.map +1 -1
  15. package/core/api-promise.d.ts.map +1 -1
  16. package/core/api-promise.mjs.map +1 -1
  17. package/core/error.mjs.map +1 -1
  18. package/core/pagination.d.mts.map +1 -1
  19. package/core/pagination.d.ts.map +1 -1
  20. package/core/pagination.mjs.map +1 -1
  21. package/core/resource.d.mts.map +1 -1
  22. package/core/resource.d.ts.map +1 -1
  23. package/core/uploads.d.mts.map +1 -1
  24. package/core/uploads.d.ts.map +1 -1
  25. package/core/uploads.mjs.map +1 -1
  26. package/error.d.mts +1 -0
  27. package/error.d.mts.map +1 -1
  28. package/error.d.ts +1 -0
  29. package/error.d.ts.map +1 -1
  30. package/error.mjs +1 -0
  31. package/error.mjs.map +1 -1
  32. package/index.d.mts.map +1 -1
  33. package/index.d.ts.map +1 -1
  34. package/index.mjs.map +1 -1
  35. package/internal/detect-platform.mjs.map +1 -1
  36. package/internal/headers.mjs.map +1 -1
  37. package/internal/parse.d.mts.map +1 -1
  38. package/internal/parse.d.ts.map +1 -1
  39. package/internal/parse.mjs.map +1 -1
  40. package/internal/request-options.d.mts.map +1 -1
  41. package/internal/request-options.d.ts.map +1 -1
  42. package/internal/shims.d.mts +6 -0
  43. package/internal/shims.d.mts.map +1 -1
  44. package/internal/shims.d.ts +6 -0
  45. package/internal/shims.d.ts.map +1 -1
  46. package/internal/to-file.d.mts.map +1 -1
  47. package/internal/to-file.d.ts.map +1 -1
  48. package/internal/to-file.mjs.map +1 -1
  49. package/internal/types.d.mts +10 -10
  50. package/internal/types.d.mts.map +1 -1
  51. package/internal/types.d.ts +10 -10
  52. package/internal/types.d.ts.map +1 -1
  53. package/internal/uploads.d.mts.map +1 -1
  54. package/internal/uploads.d.ts.map +1 -1
  55. package/internal/uploads.mjs.map +1 -1
  56. package/internal/utils/base64.mjs.map +1 -1
  57. package/internal/utils/log.d.mts.map +1 -1
  58. package/internal/utils/log.d.ts.map +1 -1
  59. package/internal/utils/log.js +2 -0
  60. package/internal/utils/log.js.map +1 -1
  61. package/internal/utils/log.mjs +2 -0
  62. package/internal/utils/log.mjs.map +1 -1
  63. package/internal/utils/path.mjs.map +1 -1
  64. package/internal/utils/query.mjs.map +1 -1
  65. package/internal/utils/values.mjs.map +1 -1
  66. package/internal/utils.d.mts.map +1 -1
  67. package/internal/utils.d.ts.map +1 -1
  68. package/internal/utils.mjs.map +1 -1
  69. package/lib/polling.d.mts.map +1 -1
  70. package/lib/polling.d.ts.map +1 -1
  71. package/package.json +1 -1
  72. package/pagination.d.mts +1 -0
  73. package/pagination.d.mts.map +1 -1
  74. package/pagination.d.ts +1 -0
  75. package/pagination.d.ts.map +1 -1
  76. package/pagination.mjs +1 -0
  77. package/pagination.mjs.map +1 -1
  78. package/resource.d.mts +1 -0
  79. package/resource.d.mts.map +1 -1
  80. package/resource.d.ts +1 -0
  81. package/resource.d.ts.map +1 -1
  82. package/resource.mjs +1 -0
  83. package/resource.mjs.map +1 -1
  84. package/resources/avatar-videos.d.mts.map +1 -1
  85. package/resources/avatar-videos.d.ts.map +1 -1
  86. package/resources/avatar-videos.mjs.map +1 -1
  87. package/resources/avatars.d.mts.map +1 -1
  88. package/resources/avatars.d.ts.map +1 -1
  89. package/resources/avatars.mjs.map +1 -1
  90. package/resources/character-performance.d.mts.map +1 -1
  91. package/resources/character-performance.d.ts.map +1 -1
  92. package/resources/character-performance.mjs.map +1 -1
  93. package/resources/documents.d.mts.map +1 -1
  94. package/resources/documents.d.ts.map +1 -1
  95. package/resources/documents.mjs.map +1 -1
  96. package/resources/image-to-video.d.mts +41 -83
  97. package/resources/image-to-video.d.mts.map +1 -1
  98. package/resources/image-to-video.d.ts +41 -83
  99. package/resources/image-to-video.d.ts.map +1 -1
  100. package/resources/image-to-video.mjs.map +1 -1
  101. package/resources/index.d.mts.map +1 -1
  102. package/resources/index.d.ts.map +1 -1
  103. package/resources/index.mjs.map +1 -1
  104. package/resources/organization.d.mts +2 -2
  105. package/resources/organization.d.mts.map +1 -1
  106. package/resources/organization.d.ts +2 -2
  107. package/resources/organization.d.ts.map +1 -1
  108. package/resources/organization.mjs.map +1 -1
  109. package/resources/realtime-sessions.d.mts.map +1 -1
  110. package/resources/realtime-sessions.d.ts.map +1 -1
  111. package/resources/realtime-sessions.mjs.map +1 -1
  112. package/resources/sound-effect.d.mts.map +1 -1
  113. package/resources/sound-effect.d.ts.map +1 -1
  114. package/resources/sound-effect.mjs.map +1 -1
  115. package/resources/speech-to-speech.d.mts.map +1 -1
  116. package/resources/speech-to-speech.d.ts.map +1 -1
  117. package/resources/speech-to-speech.mjs +1 -0
  118. package/resources/speech-to-speech.mjs.map +1 -1
  119. package/resources/tasks.d.mts.map +1 -1
  120. package/resources/tasks.d.ts.map +1 -1
  121. package/resources/tasks.mjs.map +1 -1
  122. package/resources/text-to-image.d.mts +89 -1
  123. package/resources/text-to-image.d.mts.map +1 -1
  124. package/resources/text-to-image.d.ts +89 -1
  125. package/resources/text-to-image.d.ts.map +1 -1
  126. package/resources/text-to-image.mjs.map +1 -1
  127. package/resources/text-to-speech.d.mts.map +1 -1
  128. package/resources/text-to-speech.d.ts.map +1 -1
  129. package/resources/text-to-speech.mjs.map +1 -1
  130. package/resources/text-to-video.d.mts +1 -25
  131. package/resources/text-to-video.d.mts.map +1 -1
  132. package/resources/text-to-video.d.ts +1 -25
  133. package/resources/text-to-video.d.ts.map +1 -1
  134. package/resources/text-to-video.mjs.map +1 -1
  135. package/resources/uploads.d.mts.map +1 -1
  136. package/resources/uploads.d.ts.map +1 -1
  137. package/resources/uploads.mjs.map +1 -1
  138. package/resources/video-to-video.d.mts +46 -112
  139. package/resources/video-to-video.d.mts.map +1 -1
  140. package/resources/video-to-video.d.ts +46 -112
  141. package/resources/video-to-video.d.ts.map +1 -1
  142. package/resources/video-to-video.mjs.map +1 -1
  143. package/resources/voice-dubbing.d.mts.map +1 -1
  144. package/resources/voice-dubbing.d.ts.map +1 -1
  145. package/resources/voice-dubbing.mjs.map +1 -1
  146. package/resources/voice-isolation.d.mts.map +1 -1
  147. package/resources/voice-isolation.d.ts.map +1 -1
  148. package/resources/voice-isolation.mjs.map +1 -1
  149. package/resources/voices.d.mts.map +1 -1
  150. package/resources/voices.d.ts.map +1 -1
  151. package/resources/voices.mjs.map +1 -1
  152. package/resources/workflow-invocations.d.mts.map +1 -1
  153. package/resources/workflow-invocations.d.ts.map +1 -1
  154. package/resources/workflow-invocations.mjs.map +1 -1
  155. package/resources/workflows.d.mts.map +1 -1
  156. package/resources/workflows.d.ts.map +1 -1
  157. package/resources/workflows.mjs.map +1 -1
  158. package/resources.d.mts.map +1 -1
  159. package/resources.d.ts.map +1 -1
  160. package/resources.mjs.map +1 -1
  161. package/src/client.ts +12 -0
  162. package/src/internal/types.ts +6 -8
  163. package/src/internal/utils/log.ts +2 -0
  164. package/src/resources/image-to-video.ts +48 -112
  165. package/src/resources/organization.ts +2 -0
  166. package/src/resources/text-to-image.ts +168 -0
  167. package/src/resources/text-to-video.ts +0 -43
  168. package/src/resources/video-to-video.ts +47 -149
  169. package/src/version.ts +1 -1
  170. package/uploads.d.mts +1 -0
  171. package/uploads.d.mts.map +1 -1
  172. package/uploads.d.ts +1 -0
  173. package/uploads.d.ts.map +1 -1
  174. package/uploads.mjs +1 -0
  175. package/uploads.mjs.map +1 -1
  176. package/version.d.mts +1 -1
  177. package/version.d.ts +1 -1
  178. package/version.js +1 -1
  179. package/version.mjs +1 -1
@@ -37,170 +37,68 @@ export interface VideoToVideoCreateResponse {
37
37
  id: string;
38
38
  }
39
39
 
40
- export type VideoToVideoCreateParams =
41
- | VideoToVideoCreateParams.Gen4Aleph
42
- | VideoToVideoCreateParams.Seedance2;
40
+ export interface VideoToVideoCreateParams {
41
+ model: 'gen4_aleph';
43
42
 
44
- export declare namespace VideoToVideoCreateParams {
45
- export interface Gen4Aleph {
46
- model: 'gen4_aleph';
47
-
48
- /**
49
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
50
- * should describe in detail what should appear in the output.
51
- */
52
- promptText: string;
53
-
54
- /**
55
- * A HTTPS URL.
56
- */
57
- videoUri: string;
43
+ /**
44
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
45
+ * should describe in detail what should appear in the output.
46
+ */
47
+ promptText: string;
58
48
 
59
- /**
60
- * Settings that affect the behavior of the content moderation system.
61
- */
62
- contentModeration?: Gen4Aleph.ContentModeration;
49
+ /**
50
+ * A HTTPS URL.
51
+ */
52
+ videoUri: string;
63
53
 
64
- /**
65
- * @deprecated Deprecated. This field is ignored. The resolution of the output
66
- * video is determined by the input video.
67
- */
68
- ratio?:
69
- | '1280:720'
70
- | '720:1280'
71
- | '1104:832'
72
- | '960:960'
73
- | '832:1104'
74
- | '1584:672'
75
- | '848:480'
76
- | '640:480';
54
+ /**
55
+ * Settings that affect the behavior of the content moderation system.
56
+ */
57
+ contentModeration?: VideoToVideoCreateParams.ContentModeration;
77
58
 
78
- /**
79
- * An array of references. Currently up to one reference is supported. See
80
- * [our docs](/assets/inputs#images) on image inputs for more information.
81
- */
82
- references?: Array<Gen4Aleph.Reference>;
59
+ /**
60
+ * @deprecated Deprecated. This field is ignored. The resolution of the output
61
+ * video is determined by the input video.
62
+ */
63
+ ratio?: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
83
64
 
84
- /**
85
- * If unspecified, a random number is chosen. Varying the seed integer is a way to
86
- * get different results for the same other request parameters. Using the same seed
87
- * integer for an identical request will produce similar results.
88
- */
89
- seed?: number;
90
- }
65
+ /**
66
+ * An array of references. Currently up to one reference is supported. See
67
+ * [our docs](/assets/inputs#images) on image inputs for more information.
68
+ */
69
+ references?: Array<VideoToVideoCreateParams.Reference>;
91
70
 
92
- export namespace Gen4Aleph {
93
- /**
94
- * Settings that affect the behavior of the content moderation system.
95
- */
96
- export interface ContentModeration {
97
- /**
98
- * When set to `low`, the content moderation system will be less strict about
99
- * preventing generations that include recognizable public figures.
100
- */
101
- publicFigureThreshold?: 'auto' | 'low';
102
- }
71
+ /**
72
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
73
+ * get different results for the same other request parameters. Using the same seed
74
+ * integer for an identical request will produce similar results.
75
+ */
76
+ seed?: number;
77
+ }
103
78
 
79
+ export namespace VideoToVideoCreateParams {
80
+ /**
81
+ * Settings that affect the behavior of the content moderation system.
82
+ */
83
+ export interface ContentModeration {
104
84
  /**
105
- * Passing an image reference allows the model to emulate the style or content of
106
- * the reference in the output.
85
+ * When set to `low`, the content moderation system will be less strict about
86
+ * preventing generations that include recognizable public figures.
107
87
  */
108
- export interface Reference {
109
- type: 'image';
110
-
111
- /**
112
- * A HTTPS URL.
113
- */
114
- uri: string;
115
- }
88
+ publicFigureThreshold?: 'auto' | 'low';
116
89
  }
117
90
 
118
- export interface Seedance2 {
119
- model: 'seedance2';
91
+ /**
92
+ * Passing an image reference allows the model to emulate the style or content of
93
+ * the reference in the output.
94
+ */
95
+ export interface Reference {
96
+ type: 'image';
120
97
 
121
98
  /**
122
99
  * A HTTPS URL.
123
100
  */
124
- promptVideo: string;
125
-
126
- /**
127
- * Whether to generate audio for the video. Audio inclusion affects pricing.
128
- */
129
- audio?: boolean;
130
-
131
- /**
132
- * The number of seconds of duration for the output video. Must be an integer from
133
- * 4 to 15.
134
- */
135
- duration?: number;
136
-
137
- /**
138
- * The number of video generations to produce.
139
- */
140
- outputCount?: number;
141
-
142
- /**
143
- * An optional text prompt up to 3500 characters describing what should appear in
144
- * the output video.
145
- */
146
- promptText?: string;
147
-
148
- /**
149
- * The resolution of the output video.
150
- */
151
- ratio?:
152
- | '992:432'
153
- | '864:496'
154
- | '752:560'
155
- | '640:640'
156
- | '560:752'
157
- | '496:864'
158
- | '1470:630'
159
- | '1280:720'
160
- | '1112:834'
161
- | '960:960'
162
- | '834:1112'
163
- | '720:1280';
164
-
165
- /**
166
- * An optional array of image references (up to 9). See
167
- * [our docs](/assets/inputs#images) on image inputs for more information.
168
- */
169
- references?: string | Array<Seedance2.PromptImage>;
170
-
171
- /**
172
- * An optional array of up to 3 video references. See
173
- * [our docs](/assets/inputs#videos) on video inputs for more information.
174
- */
175
- referenceVideos?: Array<Seedance2.ReferenceVideo>;
176
- }
177
-
178
- export namespace Seedance2 {
179
- export interface PromptImage {
180
- /**
181
- * A HTTPS URL.
182
- */
183
- uri: string;
184
-
185
- /**
186
- * The position of the image in the output video. "first" will use the image as the
187
- * first frame, "last" as the last frame. Omit for a reference image.
188
- */
189
- position?: 'first' | 'last';
190
- }
191
-
192
- /**
193
- * A video reference allows the model to use the video as additional context for
194
- * the output.
195
- */
196
- export interface ReferenceVideo {
197
- type: 'video';
198
-
199
- /**
200
- * A HTTPS URL.
201
- */
202
- uri: string;
203
- }
101
+ uri: string;
204
102
  }
205
103
  }
206
104
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.20.0'; // x-release-please-version
1
+ export const VERSION = '3.21.1'; // x-release-please-version
package/uploads.d.mts CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.mjs";
2
3
  //# sourceMappingURL=uploads.d.mts.map
package/uploads.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
package/uploads.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.js";
2
3
  //# sourceMappingURL=uploads.d.ts.map
package/uploads.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
package/uploads.mjs CHANGED
@@ -1,2 +1,3 @@
1
+ /** @deprecated Import from ./core/uploads instead */
1
2
  export * from "./core/uploads.mjs";
2
3
  //# sourceMappingURL=uploads.mjs.map
package/uploads.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.20.0";
1
+ export declare const VERSION = "3.21.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.20.0";
1
+ export declare const VERSION = "3.21.1";
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.20.0'; // x-release-please-version
4
+ exports.VERSION = '3.21.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.20.0'; // x-release-please-version
1
+ export const VERSION = '3.21.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map