@runwayml/sdk 3.21.1 → 3.22.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 (49) hide show
  1. package/CHANGELOG.md +14 -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/image-upscale.d.mts +62 -0
  12. package/resources/image-upscale.d.mts.map +1 -0
  13. package/resources/image-upscale.d.ts +62 -0
  14. package/resources/image-upscale.d.ts.map +1 -0
  15. package/resources/image-upscale.js +30 -0
  16. package/resources/image-upscale.js.map +1 -0
  17. package/resources/image-upscale.mjs +26 -0
  18. package/resources/image-upscale.mjs.map +1 -0
  19. package/resources/index.d.mts +1 -0
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +1 -0
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +3 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +1 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/organization.d.mts +2 -2
  28. package/resources/organization.d.mts.map +1 -1
  29. package/resources/organization.d.ts +2 -2
  30. package/resources/organization.d.ts.map +1 -1
  31. package/resources/text-to-image.d.mts +45 -1
  32. package/resources/text-to-image.d.mts.map +1 -1
  33. package/resources/text-to-image.d.ts +45 -1
  34. package/resources/text-to-image.d.ts.map +1 -1
  35. package/resources/video-to-video.d.mts +143 -46
  36. package/resources/video-to-video.d.mts.map +1 -1
  37. package/resources/video-to-video.d.ts +143 -46
  38. package/resources/video-to-video.d.ts.map +1 -1
  39. package/src/client.ts +16 -0
  40. package/src/resources/image-upscale.ts +83 -0
  41. package/src/resources/index.ts +5 -0
  42. package/src/resources/organization.ts +21 -1
  43. package/src/resources/text-to-image.ts +109 -0
  44. package/src/resources/video-to-video.ts +171 -47
  45. package/src/version.ts +1 -1
  46. package/version.d.mts +1 -1
  47. package/version.d.ts +1 -1
  48. package/version.js +1 -1
  49. package/version.mjs +1 -1
@@ -37,68 +37,192 @@ export interface VideoToVideoCreateResponse {
37
37
  id: string;
38
38
  }
39
39
 
40
- export interface VideoToVideoCreateParams {
41
- model: 'gen4_aleph';
40
+ export type VideoToVideoCreateParams = VideoToVideoCreateParams.Gen4Aleph | VideoToVideoCreateParams.Aleph2;
42
41
 
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;
42
+ export declare namespace VideoToVideoCreateParams {
43
+ export interface Gen4Aleph {
44
+ model: 'gen4_aleph';
48
45
 
49
- /**
50
- * A HTTPS URL.
51
- */
52
- videoUri: string;
46
+ /**
47
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
48
+ * should describe in detail what should appear in the output.
49
+ */
50
+ promptText: string;
53
51
 
54
- /**
55
- * Settings that affect the behavior of the content moderation system.
56
- */
57
- contentModeration?: VideoToVideoCreateParams.ContentModeration;
52
+ /**
53
+ * A HTTPS URL.
54
+ */
55
+ videoUri: string;
58
56
 
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';
57
+ /**
58
+ * Settings that affect the behavior of the content moderation system.
59
+ */
60
+ contentModeration?: Gen4Aleph.ContentModeration;
64
61
 
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>;
62
+ /**
63
+ * @deprecated Deprecated. This field is ignored. The resolution of the output
64
+ * video is determined by the input video.
65
+ */
66
+ ratio?:
67
+ | '1280:720'
68
+ | '720:1280'
69
+ | '1104:832'
70
+ | '960:960'
71
+ | '832:1104'
72
+ | '1584:672'
73
+ | '848:480'
74
+ | '640:480';
70
75
 
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
- }
76
+ /**
77
+ * An array of references. Currently up to one reference is supported. See
78
+ * [our docs](/assets/inputs#images) on image inputs for more information.
79
+ */
80
+ references?: Array<Gen4Aleph.Reference>;
78
81
 
79
- export namespace VideoToVideoCreateParams {
80
- /**
81
- * Settings that affect the behavior of the content moderation system.
82
- */
83
- export interface ContentModeration {
84
82
  /**
85
- * When set to `low`, the content moderation system will be less strict about
86
- * preventing generations that include recognizable public figures.
83
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
84
+ * get different results for the same other request parameters. Using the same seed
85
+ * integer for an identical request will produce similar results.
87
86
  */
88
- publicFigureThreshold?: 'auto' | 'low';
87
+ seed?: number;
89
88
  }
90
89
 
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';
90
+ export namespace Gen4Aleph {
91
+ /**
92
+ * Settings that affect the behavior of the content moderation system.
93
+ */
94
+ export interface ContentModeration {
95
+ /**
96
+ * When set to `low`, the content moderation system will be less strict about
97
+ * preventing generations that include recognizable public figures.
98
+ */
99
+ publicFigureThreshold?: 'auto' | 'low';
100
+ }
101
+
102
+ /**
103
+ * Passing an image reference allows the model to emulate the style or content of
104
+ * the reference in the output.
105
+ */
106
+ export interface Reference {
107
+ type: 'image';
108
+
109
+ /**
110
+ * A HTTPS URL.
111
+ */
112
+ uri: string;
113
+ }
114
+ }
115
+
116
+ export interface Aleph2 {
117
+ model: 'aleph2';
118
+
119
+ /**
120
+ * A non-empty string up to 1000 characters describing what should appear in the
121
+ * output.
122
+ */
123
+ promptText: string;
97
124
 
98
125
  /**
99
126
  * A HTTPS URL.
100
127
  */
101
- uri: string;
128
+ videoUri: string;
129
+
130
+ /**
131
+ * Settings that affect the behavior of the content moderation system.
132
+ */
133
+ contentModeration?: Aleph2.ContentModeration;
134
+
135
+ /**
136
+ * Timed guidance images placed at specific points in the input video. Up to 5
137
+ * keyframes.
138
+ */
139
+ keyframes?: Array<Aleph2.UnionMember0 | Aleph2.UnionMember1>;
140
+
141
+ /**
142
+ * A list of up to 5 image keyframes for guiding the edit at specific points in the
143
+ * video.
144
+ */
145
+ promptImage?: Array<Aleph2.PromptImage>;
146
+
147
+ /**
148
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
149
+ * get different results for the same other request parameters. Using the same seed
150
+ * integer for an identical request will produce similar results.
151
+ */
152
+ seed?: number;
153
+ }
154
+
155
+ export namespace Aleph2 {
156
+ /**
157
+ * Settings that affect the behavior of the content moderation system.
158
+ */
159
+ export interface ContentModeration {
160
+ /**
161
+ * When set to `low`, the content moderation system will be less strict about
162
+ * preventing generations that include recognizable public figures.
163
+ */
164
+ publicFigureThreshold?: 'auto' | 'low';
165
+ }
166
+
167
+ export interface UnionMember0 {
168
+ /**
169
+ * Absolute timestamp in seconds from the start of the input video when this
170
+ * guidance image should apply.
171
+ */
172
+ seconds: number;
173
+
174
+ /**
175
+ * A HTTPS URL.
176
+ */
177
+ uri: string;
178
+ }
179
+
180
+ export interface UnionMember1 {
181
+ /**
182
+ * Position as a fraction [0.0, 1.0] of the input video duration when this guidance
183
+ * image should apply.
184
+ */
185
+ at: number;
186
+
187
+ /**
188
+ * A HTTPS URL.
189
+ */
190
+ uri: string;
191
+ }
192
+
193
+ export interface PromptImage {
194
+ /**
195
+ * - `first` - Places the image at the start of the output video (timestamp 0).
196
+ * - `last` - Places the image at the end of the output video (timestamp =
197
+ * duration).
198
+ */
199
+ position: 'first' | 'last' | PromptImage.TimestampPosition | PromptImage.RelativePosition;
200
+
201
+ /**
202
+ * A HTTPS URL.
203
+ */
204
+ uri: string;
205
+ }
206
+
207
+ export namespace PromptImage {
208
+ export interface TimestampPosition {
209
+ /**
210
+ * Absolute timestamp in seconds from the start of the output video.
211
+ */
212
+ timestampSeconds: number;
213
+
214
+ type: 'timestamp';
215
+ }
216
+
217
+ export interface RelativePosition {
218
+ /**
219
+ * Position as a fraction [0.0, 1.0] of the total video duration.
220
+ */
221
+ positionPercentage: number;
222
+
223
+ type: 'position';
224
+ }
225
+ }
102
226
  }
103
227
  }
104
228
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.21.1'; // x-release-please-version
1
+ export const VERSION = '3.22.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.21.1";
1
+ export declare const VERSION = "3.22.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.21.1";
1
+ export declare const VERSION = "3.22.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.21.1'; // x-release-please-version
4
+ exports.VERSION = '3.22.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.21.1'; // x-release-please-version
1
+ export const VERSION = '3.22.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map