@runwayml/sdk 4.19.1 → 4.20.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 (85) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +1 -1
  3. package/resources/image-to-video.d.mts +192 -19
  4. package/resources/image-to-video.d.mts.map +1 -1
  5. package/resources/image-to-video.d.ts +192 -19
  6. package/resources/image-to-video.d.ts.map +1 -1
  7. package/resources/image-to-video.js +9 -0
  8. package/resources/image-to-video.js.map +1 -1
  9. package/resources/image-to-video.mjs +9 -0
  10. package/resources/image-to-video.mjs.map +1 -1
  11. package/resources/organization/organization.d.mts +6 -4
  12. package/resources/organization/organization.d.mts.map +1 -1
  13. package/resources/organization/organization.d.ts +6 -4
  14. package/resources/organization/organization.d.ts.map +1 -1
  15. package/resources/organization/organization.js.map +1 -1
  16. package/resources/organization/organization.mjs.map +1 -1
  17. package/resources/organization/webapp/audit-logs.d.mts +59 -22
  18. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  19. package/resources/organization/webapp/audit-logs.d.ts +59 -22
  20. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  21. package/resources/realtime-sessions.d.mts +6 -3
  22. package/resources/realtime-sessions.d.mts.map +1 -1
  23. package/resources/realtime-sessions.d.ts +6 -3
  24. package/resources/realtime-sessions.d.ts.map +1 -1
  25. package/resources/tasks.d.mts +12 -6
  26. package/resources/tasks.d.mts.map +1 -1
  27. package/resources/tasks.d.ts +12 -6
  28. package/resources/tasks.d.ts.map +1 -1
  29. package/resources/text-to-image.d.mts +142 -47
  30. package/resources/text-to-image.d.mts.map +1 -1
  31. package/resources/text-to-image.d.ts +142 -47
  32. package/resources/text-to-image.d.ts.map +1 -1
  33. package/resources/text-to-speech.d.mts +5 -3
  34. package/resources/text-to-speech.d.mts.map +1 -1
  35. package/resources/text-to-speech.d.ts +5 -3
  36. package/resources/text-to-speech.d.ts.map +1 -1
  37. package/resources/text-to-video.d.mts +177 -24
  38. package/resources/text-to-video.d.mts.map +1 -1
  39. package/resources/text-to-video.d.ts +177 -24
  40. package/resources/text-to-video.d.ts.map +1 -1
  41. package/resources/text-to-video.js +8 -0
  42. package/resources/text-to-video.js.map +1 -1
  43. package/resources/text-to-video.mjs +8 -0
  44. package/resources/text-to-video.mjs.map +1 -1
  45. package/resources/video-to-hdr.d.mts +25 -9
  46. package/resources/video-to-hdr.d.mts.map +1 -1
  47. package/resources/video-to-hdr.d.ts +25 -9
  48. package/resources/video-to-hdr.d.ts.map +1 -1
  49. package/resources/video-to-hdr.js +4 -2
  50. package/resources/video-to-hdr.js.map +1 -1
  51. package/resources/video-to-hdr.mjs +4 -2
  52. package/resources/video-to-hdr.mjs.map +1 -1
  53. package/resources/video-to-video.d.mts +53 -5
  54. package/resources/video-to-video.d.mts.map +1 -1
  55. package/resources/video-to-video.d.ts +53 -5
  56. package/resources/video-to-video.d.ts.map +1 -1
  57. package/resources/video-upscale.d.mts +49 -33
  58. package/resources/video-upscale.d.mts.map +1 -1
  59. package/resources/video-upscale.d.ts +49 -33
  60. package/resources/video-upscale.d.ts.map +1 -1
  61. package/resources/workflow-invocations.d.mts +29 -4
  62. package/resources/workflow-invocations.d.mts.map +1 -1
  63. package/resources/workflow-invocations.d.ts +29 -4
  64. package/resources/workflow-invocations.d.ts.map +1 -1
  65. package/resources/workflow-invocations.js +3 -1
  66. package/resources/workflow-invocations.js.map +1 -1
  67. package/resources/workflow-invocations.mjs +3 -1
  68. package/resources/workflow-invocations.mjs.map +1 -1
  69. package/src/resources/image-to-video.ts +258 -26
  70. package/src/resources/organization/organization.ts +22 -2
  71. package/src/resources/organization/webapp/audit-logs.ts +119 -22
  72. package/src/resources/realtime-sessions.ts +6 -3
  73. package/src/resources/tasks.ts +12 -6
  74. package/src/resources/text-to-image.ts +262 -85
  75. package/src/resources/text-to-speech.ts +5 -3
  76. package/src/resources/text-to-video.ts +242 -31
  77. package/src/resources/video-to-hdr.ts +31 -9
  78. package/src/resources/video-to-video.ts +70 -5
  79. package/src/resources/video-upscale.ts +55 -33
  80. package/src/resources/workflow-invocations.ts +32 -4
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/version.mjs +1 -1
@@ -9,7 +9,9 @@ export class WorkflowInvocations extends APIResource {
9
9
  /**
10
10
  * Return details about a workflow invocation. Consumers of this API should not
11
11
  * expect updates more frequent than once every five seconds for a given workflow
12
- * invocation.
12
+ * invocation. A `SUCCEEDED` invocation may still have had individual nodes fail,
13
+ * so check `nodeErrors` to detect a partial run rather than relying on `status`
14
+ * alone.
13
15
  */
14
16
  retrieve(
15
17
  id: string,
@@ -127,6 +129,14 @@ export namespace WorkflowInvocationRetrieveResponse {
127
129
  */
128
130
  message: string;
129
131
 
132
+ /**
133
+ * A machine-readable error code for the node failure. See
134
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
135
+ * for nodes that failed before generation began, such as an input validation
136
+ * error.
137
+ */
138
+ failureCode?: string;
139
+
130
140
  /**
131
141
  * The human-readable name of the node that errored.
132
142
  */
@@ -176,6 +186,14 @@ export namespace WorkflowInvocationRetrieveResponse {
176
186
  */
177
187
  message: string;
178
188
 
189
+ /**
190
+ * A machine-readable error code for the node failure. See
191
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
192
+ * for nodes that failed before generation began, such as an input validation
193
+ * error.
194
+ */
195
+ failureCode?: string;
196
+
179
197
  /**
180
198
  * The human-readable name of the node that errored.
181
199
  */
@@ -209,9 +227,11 @@ export namespace WorkflowInvocationRetrieveResponse {
209
227
  status: 'SUCCEEDED';
210
228
 
211
229
  /**
212
- * A record mapping workflow node IDs to their error details. Even when the overall
213
- * workflow succeeds, individual nodes may have encountered non-fatal errors. Only
214
- * present when one or more nodes have errored.
230
+ * A record mapping workflow node IDs to their error details. A workflow invocation
231
+ * succeeds as long as every node reached a terminal state, so individual nodes may
232
+ * still have failed — for example a moderated prompt or an upstream provider
233
+ * outage — leaving their output missing from `output`. Check this field to detect
234
+ * a partial run. Only present when one or more nodes have errored.
215
235
  */
216
236
  nodeErrors?: { [key: string]: Succeeded.NodeErrors };
217
237
  }
@@ -223,6 +243,14 @@ export namespace WorkflowInvocationRetrieveResponse {
223
243
  */
224
244
  message: string;
225
245
 
246
+ /**
247
+ * A machine-readable error code for the node failure. See
248
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
249
+ * for nodes that failed before generation began, such as an input validation
250
+ * error.
251
+ */
252
+ failureCode?: string;
253
+
226
254
  /**
227
255
  * The human-readable name of the node that errored.
228
256
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.19.1'; // x-release-please-version
1
+ export const VERSION = '4.20.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.19.1";
1
+ export declare const VERSION = "4.20.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.19.1";
1
+ export declare const VERSION = "4.20.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 = '4.19.1'; // x-release-please-version
4
+ exports.VERSION = '4.20.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.19.1'; // x-release-please-version
1
+ export const VERSION = '4.20.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map