@runwayml/sdk 4.20.0 → 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 (43) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +1 -1
  3. package/resources/organization/organization.d.mts +6 -4
  4. package/resources/organization/organization.d.mts.map +1 -1
  5. package/resources/organization/organization.d.ts +6 -4
  6. package/resources/organization/organization.d.ts.map +1 -1
  7. package/resources/organization/organization.js.map +1 -1
  8. package/resources/organization/organization.mjs.map +1 -1
  9. package/resources/organization/webapp/audit-logs.d.mts +16 -3
  10. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  11. package/resources/organization/webapp/audit-logs.d.ts +16 -3
  12. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  13. package/resources/text-to-image.d.mts +142 -47
  14. package/resources/text-to-image.d.mts.map +1 -1
  15. package/resources/text-to-image.d.ts +142 -47
  16. package/resources/text-to-image.d.ts.map +1 -1
  17. package/resources/video-to-hdr.d.mts +19 -10
  18. package/resources/video-to-hdr.d.mts.map +1 -1
  19. package/resources/video-to-hdr.d.ts +19 -10
  20. package/resources/video-to-hdr.d.ts.map +1 -1
  21. package/resources/video-upscale.d.mts +49 -33
  22. package/resources/video-upscale.d.mts.map +1 -1
  23. package/resources/video-upscale.d.ts +49 -33
  24. package/resources/video-upscale.d.ts.map +1 -1
  25. package/resources/workflow-invocations.d.mts +29 -4
  26. package/resources/workflow-invocations.d.mts.map +1 -1
  27. package/resources/workflow-invocations.d.ts +29 -4
  28. package/resources/workflow-invocations.d.ts.map +1 -1
  29. package/resources/workflow-invocations.js +3 -1
  30. package/resources/workflow-invocations.js.map +1 -1
  31. package/resources/workflow-invocations.mjs +3 -1
  32. package/resources/workflow-invocations.mjs.map +1 -1
  33. package/src/resources/organization/organization.ts +10 -2
  34. package/src/resources/organization/webapp/audit-logs.ts +30 -3
  35. package/src/resources/text-to-image.ts +262 -85
  36. package/src/resources/video-to-hdr.ts +19 -10
  37. package/src/resources/video-upscale.ts +55 -33
  38. package/src/resources/workflow-invocations.ts +32 -4
  39. package/src/version.ts +1 -1
  40. package/version.d.mts +1 -1
  41. package/version.d.ts +1 -1
  42. package/version.js +1 -1
  43. package/version.mjs +1 -1
@@ -39,39 +39,55 @@ export declare namespace VideoUpscaleCreateResponse {
39
39
  credits: number;
40
40
  }
41
41
  }
42
- export interface VideoUpscaleCreateParams {
43
- model: 'magnific_video_upscaler_creative';
44
- /**
45
- * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
46
- * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
47
- * [our docs](/assets/inputs#videos) on video inputs for more information.
48
- */
49
- videoUri: string;
50
- /**
51
- * How much AI-generated detail to add during upscaling, from 0 (faithful) to 100.
52
- */
53
- creativity?: number;
54
- /**
55
- * Processing style: `vivid` for enhanced color and detail, `natural` for faithful
56
- * reproduction.
57
- */
58
- flavor?: 'vivid' | 'natural';
59
- /**
60
- * Whether to increase the output frame rate.
61
- */
62
- fpsBoost?: boolean;
63
- /**
64
- * Target output resolution from 720p to 4k. Defaults to `2k`.
65
- */
66
- resolution?: '720p' | '1k' | '2k' | '4k';
67
- /**
68
- * Sharpness intensity from 0 (none) to 100.
69
- */
70
- sharpen?: number;
71
- /**
72
- * Grain and texture enhancement from 0 to 100.
73
- */
74
- smartGrain?: number;
42
+ export type VideoUpscaleCreateParams = VideoUpscaleCreateParams.MagnificVideoUpscalerCreative | VideoUpscaleCreateParams.EnhanceFrameRate;
43
+ export declare namespace VideoUpscaleCreateParams {
44
+ interface MagnificVideoUpscalerCreative {
45
+ model: 'magnific_video_upscaler_creative';
46
+ /**
47
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
48
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
49
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
50
+ */
51
+ videoUri: string;
52
+ /**
53
+ * How much AI-generated detail to add during upscaling, from 0 (faithful) to 100.
54
+ */
55
+ creativity?: number;
56
+ /**
57
+ * Processing style: `vivid` for enhanced color and detail, `natural` for faithful
58
+ * reproduction.
59
+ */
60
+ flavor?: 'vivid' | 'natural';
61
+ /**
62
+ * Whether to increase the output frame rate.
63
+ */
64
+ fpsBoost?: boolean;
65
+ /**
66
+ * Target output resolution from 720p to 4k. Defaults to `2k`.
67
+ */
68
+ resolution?: '720p' | '1k' | '2k' | '4k';
69
+ /**
70
+ * Sharpness intensity from 0 (none) to 100.
71
+ */
72
+ sharpen?: number;
73
+ /**
74
+ * Grain and texture enhancement from 0 to 100.
75
+ */
76
+ smartGrain?: number;
77
+ }
78
+ interface EnhanceFrameRate {
79
+ model: 'enhance_frame_rate';
80
+ /**
81
+ * The output frame rate.
82
+ */
83
+ targetFramerate: '24' | '25' | '30' | '48' | '50' | '60' | '120' | '23_98' | '29_97' | '59_94';
84
+ /**
85
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
86
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
87
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
88
+ */
89
+ videoUri: string;
90
+ }
75
91
  }
76
92
  export declare namespace VideoUpscale {
77
93
  export { type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"video-upscale.d.mts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC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CreateResponse {
39
39
  credits: number;
40
40
  }
41
41
  }
42
- export interface VideoUpscaleCreateParams {
43
- model: 'magnific_video_upscaler_creative';
44
- /**
45
- * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
46
- * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
47
- * [our docs](/assets/inputs#videos) on video inputs for more information.
48
- */
49
- videoUri: string;
50
- /**
51
- * How much AI-generated detail to add during upscaling, from 0 (faithful) to 100.
52
- */
53
- creativity?: number;
54
- /**
55
- * Processing style: `vivid` for enhanced color and detail, `natural` for faithful
56
- * reproduction.
57
- */
58
- flavor?: 'vivid' | 'natural';
59
- /**
60
- * Whether to increase the output frame rate.
61
- */
62
- fpsBoost?: boolean;
63
- /**
64
- * Target output resolution from 720p to 4k. Defaults to `2k`.
65
- */
66
- resolution?: '720p' | '1k' | '2k' | '4k';
67
- /**
68
- * Sharpness intensity from 0 (none) to 100.
69
- */
70
- sharpen?: number;
71
- /**
72
- * Grain and texture enhancement from 0 to 100.
73
- */
74
- smartGrain?: number;
42
+ export type VideoUpscaleCreateParams = VideoUpscaleCreateParams.MagnificVideoUpscalerCreative | VideoUpscaleCreateParams.EnhanceFrameRate;
43
+ export declare namespace VideoUpscaleCreateParams {
44
+ interface MagnificVideoUpscalerCreative {
45
+ model: 'magnific_video_upscaler_creative';
46
+ /**
47
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
48
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
49
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
50
+ */
51
+ videoUri: string;
52
+ /**
53
+ * How much AI-generated detail to add during upscaling, from 0 (faithful) to 100.
54
+ */
55
+ creativity?: number;
56
+ /**
57
+ * Processing style: `vivid` for enhanced color and detail, `natural` for faithful
58
+ * reproduction.
59
+ */
60
+ flavor?: 'vivid' | 'natural';
61
+ /**
62
+ * Whether to increase the output frame rate.
63
+ */
64
+ fpsBoost?: boolean;
65
+ /**
66
+ * Target output resolution from 720p to 4k. Defaults to `2k`.
67
+ */
68
+ resolution?: '720p' | '1k' | '2k' | '4k';
69
+ /**
70
+ * Sharpness intensity from 0 (none) to 100.
71
+ */
72
+ sharpen?: number;
73
+ /**
74
+ * Grain and texture enhancement from 0 to 100.
75
+ */
76
+ smartGrain?: number;
77
+ }
78
+ interface EnhanceFrameRate {
79
+ model: 'enhance_frame_rate';
80
+ /**
81
+ * The output frame rate.
82
+ */
83
+ targetFramerate: '24' | '25' | '30' | '48' | '50' | '60' | '120' | '23_98' | '29_97' | '59_94';
84
+ /**
85
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
86
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
87
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
88
+ */
89
+ videoUri: string;
90
+ }
75
91
  }
76
92
  export declare namespace VideoUpscale {
77
93
  export { type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"video-upscale.d.ts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,0BAA0B,CAAC,aAAa,CAAC;CACzD;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;K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AM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,6BAA6B,GACtD,wBAAwB,CAAC,gBAAgB,CAAC;AAE9C,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,UAAiB,6BAA6B;QAC5C,KAAK,EAAE,kCAAkC,CAAC;QAE1C;;;;WAIG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAE7B;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;QAEzC;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,gBAAgB;QAC/B,KAAK,EAAE,oBAAoB,CAAC;QAE5B;;WAEG;QACH,eAAe,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;QAE/F;;;;WAIG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -5,7 +5,9 @@ export declare class WorkflowInvocations extends APIResource {
5
5
  /**
6
6
  * Return details about a workflow invocation. Consumers of this API should not
7
7
  * expect updates more frequent than once every five seconds for a given workflow
8
- * invocation.
8
+ * invocation. A `SUCCEEDED` invocation may still have had individual nodes fail,
9
+ * so check `nodeErrors` to detect a partial run rather than relying on `status`
10
+ * alone.
9
11
  */
10
12
  retrieve(id: string, options?: RequestOptions): APIPromiseWithAwaitableWorkflowInvocation<WorkflowInvocationRetrieveResponse>;
11
13
  }
@@ -95,6 +97,13 @@ export declare namespace WorkflowInvocationRetrieveResponse {
95
97
  * A human-readable description of the node error.
96
98
  */
97
99
  message: string;
100
+ /**
101
+ * A machine-readable error code for the node failure. See
102
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
103
+ * for nodes that failed before generation began, such as an input validation
104
+ * error.
105
+ */
106
+ failureCode?: string;
98
107
  /**
99
108
  * The human-readable name of the node that errored.
100
109
  */
@@ -138,6 +147,13 @@ export declare namespace WorkflowInvocationRetrieveResponse {
138
147
  * A human-readable description of the node error.
139
148
  */
140
149
  message: string;
150
+ /**
151
+ * A machine-readable error code for the node failure. See
152
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
153
+ * for nodes that failed before generation began, such as an input validation
154
+ * error.
155
+ */
156
+ failureCode?: string;
141
157
  /**
142
158
  * The human-readable name of the node that errored.
143
159
  */
@@ -168,9 +184,11 @@ export declare namespace WorkflowInvocationRetrieveResponse {
168
184
  };
169
185
  status: 'SUCCEEDED';
170
186
  /**
171
- * A record mapping workflow node IDs to their error details. Even when the overall
172
- * workflow succeeds, individual nodes may have encountered non-fatal errors. Only
173
- * present when one or more nodes have errored.
187
+ * A record mapping workflow node IDs to their error details. A workflow invocation
188
+ * succeeds as long as every node reached a terminal state, so individual nodes may
189
+ * still have failed — for example a moderated prompt or an upstream provider
190
+ * outage — leaving their output missing from `output`. Check this field to detect
191
+ * a partial run. Only present when one or more nodes have errored.
174
192
  */
175
193
  nodeErrors?: {
176
194
  [key: string]: Succeeded.NodeErrors;
@@ -182,6 +200,13 @@ export declare namespace WorkflowInvocationRetrieveResponse {
182
200
  * A human-readable description of the node error.
183
201
  */
184
202
  message: string;
203
+ /**
204
+ * A machine-readable error code for the node failure. See
205
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
206
+ * for nodes that failed before generation began, such as an input validation
207
+ * error.
208
+ */
209
+ failureCode?: string;
185
210
  /**
186
211
  * The human-readable name of the node that errored.
187
212
  */
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-invocations.d.mts","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,OAAO,EAAE,yCAAyC,EAAoC,2BAAuB;AAE7G,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;OAIG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,yCAAyC,CAAC,kCAAkC,CAAC;CAMjF;AAED;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAC1C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,MAAM,GACzC,kCAAkC,CAAC,SAAS,CAAC;AAEjD,yBAAiB,kCAAkC,CAAC;IAClD;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,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C;QAEpB;;;;WAIG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,UAAU,CAAA;SAAE,CAAC;KACtD;IAED,UAAiB,SAAS,CAAC;QACzB,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
1
+ {"version":3,"file":"workflow-invocations.d.mts","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,OAAO,EAAE,yCAAyC,EAAoC,2BAAuB;AAE7G,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,yCAAyC,CAAC,kCAAkC,CAAC;CAMjF;AAED;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAC1C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,MAAM,GACzC,kCAAkC,CAAC,SAAS,CAAC;AAEjD,yBAAiB,kCAAkC,CAAC;IAClD;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SA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EG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;;;eAKG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;;;WAMG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;SAAE,CAAC;QAEzC,MAAM,EAAE,WAAW,CAAC;QAEpB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,UAAU,CAAA;SAAE,CAAC;KACtD;IAED,UAAiB,SAAS,CAAC;QACzB,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;;;eAKG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
@@ -5,7 +5,9 @@ export declare class WorkflowInvocations extends APIResource {
5
5
  /**
6
6
  * Return details about a workflow invocation. Consumers of this API should not
7
7
  * expect updates more frequent than once every five seconds for a given workflow
8
- * invocation.
8
+ * invocation. A `SUCCEEDED` invocation may still have had individual nodes fail,
9
+ * so check `nodeErrors` to detect a partial run rather than relying on `status`
10
+ * alone.
9
11
  */
10
12
  retrieve(id: string, options?: RequestOptions): APIPromiseWithAwaitableWorkflowInvocation<WorkflowInvocationRetrieveResponse>;
11
13
  }
@@ -95,6 +97,13 @@ export declare namespace WorkflowInvocationRetrieveResponse {
95
97
  * A human-readable description of the node error.
96
98
  */
97
99
  message: string;
100
+ /**
101
+ * A machine-readable error code for the node failure. See
102
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
103
+ * for nodes that failed before generation began, such as an input validation
104
+ * error.
105
+ */
106
+ failureCode?: string;
98
107
  /**
99
108
  * The human-readable name of the node that errored.
100
109
  */
@@ -138,6 +147,13 @@ export declare namespace WorkflowInvocationRetrieveResponse {
138
147
  * A human-readable description of the node error.
139
148
  */
140
149
  message: string;
150
+ /**
151
+ * A machine-readable error code for the node failure. See
152
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
153
+ * for nodes that failed before generation began, such as an input validation
154
+ * error.
155
+ */
156
+ failureCode?: string;
141
157
  /**
142
158
  * The human-readable name of the node that errored.
143
159
  */
@@ -168,9 +184,11 @@ export declare namespace WorkflowInvocationRetrieveResponse {
168
184
  };
169
185
  status: 'SUCCEEDED';
170
186
  /**
171
- * A record mapping workflow node IDs to their error details. Even when the overall
172
- * workflow succeeds, individual nodes may have encountered non-fatal errors. Only
173
- * present when one or more nodes have errored.
187
+ * A record mapping workflow node IDs to their error details. A workflow invocation
188
+ * succeeds as long as every node reached a terminal state, so individual nodes may
189
+ * still have failed — for example a moderated prompt or an upstream provider
190
+ * outage — leaving their output missing from `output`. Check this field to detect
191
+ * a partial run. Only present when one or more nodes have errored.
174
192
  */
175
193
  nodeErrors?: {
176
194
  [key: string]: Succeeded.NodeErrors;
@@ -182,6 +200,13 @@ export declare namespace WorkflowInvocationRetrieveResponse {
182
200
  * A human-readable description of the node error.
183
201
  */
184
202
  message: string;
203
+ /**
204
+ * A machine-readable error code for the node failure. See
205
+ * https://docs.dev.runwayml.com/errors/task-failures/ for more information. Absent
206
+ * for nodes that failed before generation began, such as an input validation
207
+ * error.
208
+ */
209
+ failureCode?: string;
185
210
  /**
186
211
  * The human-readable name of the node that errored.
187
212
  */
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-invocations.d.ts","sourceRoot":"","sources":["../src/resources/workflow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B,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
1
+ {"version":3,"file":"workflow-invocations.d.ts","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,OAAO,EAAE,yCAAyC,EAAoC,0BAAuB;AAE7G,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,yCAAyC,CAAC,kCAAkC,CAAC;CAMjF;AAED;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAC1C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,MAAM,GACzC,kCAAkC,CAAC,SAAS,CAAC;AAEjD,yBAAiB,kCAAkC,CAAC;IAClD;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,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ED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;;;WAMG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;SAAE,CAAC;QAEzC,MAAM,EAAE,WAAW,CAAC;QAEpB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,UAAU,CAAA;SAAE,CAAC;KACtD;IAED,UAAiB,SAAS,CAAC;QACzB,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;;;eAKG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
@@ -9,7 +9,9 @@ class WorkflowInvocations extends resource_1.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(id, options) {
15
17
  return (0, polling_1.wrapAsWaitableWorkflowInvocation)(this._client)(this._client.get((0, path_1.path) `/v1/workflow_invocations/${id}`, options), true);
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-invocations.js","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAA8C;AAC9C,+CAA6G;AAE7G,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;OAIG;IACH,QAAQ,CACN,EAAU,EACV,OAAwB;QAExB,OAAO,IAAA,0CAAgC,EAAqC,IAAI,CAAC,OAAO,CAAC,CACvF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAfD,kDAeC"}
1
+ {"version":3,"file":"workflow-invocations.js","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAA8C;AAC9C,+CAA6G;AAE7G,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,OAAwB;QAExB,OAAO,IAAA,0CAAgC,EAAqC,IAAI,CAAC,OAAO,CAAC,CACvF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAjBD,kDAiBC"}
@@ -6,7 +6,9 @@ export class WorkflowInvocations extends APIResource {
6
6
  /**
7
7
  * Return details about a workflow invocation. Consumers of this API should not
8
8
  * expect updates more frequent than once every five seconds for a given workflow
9
- * invocation.
9
+ * invocation. A `SUCCEEDED` invocation may still have had individual nodes fail,
10
+ * so check `nodeErrors` to detect a partial run rather than relying on `status`
11
+ * alone.
10
12
  */
11
13
  retrieve(id, options) {
12
14
  return wrapAsWaitableWorkflowInvocation(this._client)(this._client.get(path `/v1/workflow_invocations/${id}`, options), true);
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-invocations.mjs","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAC9C,OAAO,EAA6C,gCAAgC,EAAE,2BAAuB;AAE7G,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;OAIG;IACH,QAAQ,CACN,EAAU,EACV,OAAwB;QAExB,OAAO,gCAAgC,CAAqC,IAAI,CAAC,OAAO,CAAC,CACvF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"workflow-invocations.mjs","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAC9C,OAAO,EAA6C,gCAAgC,EAAE,2BAAuB;AAE7G,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,OAAwB;QAExB,OAAO,gCAAgC,CAAqC,IAAI,CAAC,OAAO,CAAC,CACvF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
@@ -75,13 +75,15 @@ export namespace OrganizationRetrieveResponse {
75
75
  export interface Models {
76
76
  /**
77
77
  * The maximum number of generations that can be run concurrently for this model.
78
+ * null means no limit.
78
79
  */
79
- maxConcurrentGenerations: number;
80
+ maxConcurrentGenerations: number | null;
80
81
 
81
82
  /**
82
83
  * The maximum number of generations that can be created each day for this model.
84
+ * null means no limit.
83
85
  */
84
- maxDailyGenerations: number;
86
+ maxDailyGenerations: number | null;
85
87
  }
86
88
  }
87
89
 
@@ -116,6 +118,8 @@ export interface OrganizationRetrieveUsageResponse {
116
118
  | 'gen4_image'
117
119
  | 'gen4_image_turbo'
118
120
  | 'gpt_image_2'
121
+ | 'gpt_image_2_5_flare'
122
+ | 'gpt_image_2_5_sunburst'
119
123
  | 'act_two'
120
124
  | 'gen4_aleph'
121
125
  | 'veo3'
@@ -154,6 +158,7 @@ export interface OrganizationRetrieveUsageResponse {
154
158
  | 'magnific_precision_upscaler_v2'
155
159
  | 'magnific_video_upscaler_creative'
156
160
  | 'ruby'
161
+ | 'enhance_frame_rate'
157
162
  | 'kling2.5_turbo_pro'
158
163
  | 'kling3.0_pro'
159
164
  | 'kling3.0_4k'
@@ -217,6 +222,8 @@ export namespace OrganizationRetrieveUsageResponse {
217
222
  | 'gen4_image'
218
223
  | 'gen4_image_turbo'
219
224
  | 'gpt_image_2'
225
+ | 'gpt_image_2_5_flare'
226
+ | 'gpt_image_2_5_sunburst'
220
227
  | 'act_two'
221
228
  | 'gen4_aleph'
222
229
  | 'veo3'
@@ -255,6 +262,7 @@ export namespace OrganizationRetrieveUsageResponse {
255
262
  | 'magnific_precision_upscaler_v2'
256
263
  | 'magnific_video_upscaler_creative'
257
264
  | 'ruby'
265
+ | 'enhance_frame_rate'
258
266
  | 'kling2.5_turbo_pro'
259
267
  | 'kling3.0_pro'
260
268
  | 'kling3.0_4k'
@@ -127,7 +127,8 @@ export interface AuditLogRetrieveResponse {
127
127
  | 'MeteredBillingConfigUpdated'
128
128
  | 'MeteredBillingRefillTriggered'
129
129
  | 'MeteredBillingRetryTriggered'
130
- | 'EnterpriseSpendCapEnforcementUpdated';
130
+ | 'EnterpriseSpendCapEnforcementUpdated'
131
+ | 'AwsMarketplaceEnterpriseSubscriptionLinked';
131
132
 
132
133
  /**
133
134
  * Whether the acting user has since been deleted.
@@ -221,14 +222,22 @@ export namespace AuditLogRetrieveResponse {
221
222
 
222
223
  'Asset name'?: unknown;
223
224
 
225
+ 'AWS license'?: unknown;
226
+
227
+ 'Brand kit ID'?: unknown;
228
+
224
229
  'Comment ID'?: unknown;
225
230
 
226
231
  'Comment target ID'?: unknown;
227
232
 
228
233
  'Comment target type'?: unknown;
229
234
 
235
+ 'Comment text'?: unknown;
236
+
230
237
  'Default task name template'?: unknown;
231
238
 
239
+ 'Destination category ID'?: unknown;
240
+
232
241
  Direction?: unknown;
233
242
 
234
243
  'Error code'?: unknown;
@@ -241,6 +250,8 @@ export namespace AuditLogRetrieveResponse {
241
250
 
242
251
  'Login method'?: unknown;
243
252
 
253
+ 'Media included'?: unknown;
254
+
244
255
  'Member email'?: unknown;
245
256
 
246
257
  Mentions?: unknown;
@@ -249,12 +260,16 @@ export namespace AuditLogRetrieveResponse {
249
260
 
250
261
  'New role'?: unknown;
251
262
 
263
+ 'New text'?: unknown;
264
+
252
265
  'New User'?: unknown;
253
266
 
254
267
  'New value'?: unknown;
255
268
 
256
269
  Operation?: unknown;
257
270
 
271
+ Organization?: unknown;
272
+
258
273
  Outcome?: unknown;
259
274
 
260
275
  Plan?: unknown;
@@ -263,6 +278,8 @@ export namespace AuditLogRetrieveResponse {
263
278
 
264
279
  'Previous role'?: unknown;
265
280
 
281
+ 'Previous text'?: unknown;
282
+
266
283
  'Previous value'?: unknown;
267
284
 
268
285
  Reason?: unknown;
@@ -271,20 +288,28 @@ export namespace AuditLogRetrieveResponse {
271
288
 
272
289
  Role?: unknown;
273
290
 
291
+ 'Root asset ID'?: unknown;
292
+
274
293
  Setting?: unknown;
275
294
 
276
295
  'Shared with projects'?: unknown;
277
296
 
278
297
  'Shared with workspace'?: unknown;
279
298
 
299
+ 'Source category ID'?: unknown;
300
+
280
301
  'Spend cap'?: unknown;
281
302
 
303
+ 'Spend cap change'?: unknown;
304
+
282
305
  'Tag color'?: unknown;
283
306
 
284
307
  'Tag name'?: unknown;
285
308
 
286
309
  'Target member'?: unknown;
287
310
 
311
+ 'Via public API'?: unknown;
312
+
288
313
  Workspace?: unknown;
289
314
 
290
315
  'Workspace description'?: unknown;
@@ -386,7 +411,8 @@ export interface AuditLogListResponse {
386
411
  | 'MeteredBillingConfigUpdated'
387
412
  | 'MeteredBillingRefillTriggered'
388
413
  | 'MeteredBillingRetryTriggered'
389
- | 'EnterpriseSpendCapEnforcementUpdated';
414
+ | 'EnterpriseSpendCapEnforcementUpdated'
415
+ | 'AwsMarketplaceEnterpriseSubscriptionLinked';
390
416
 
391
417
  /**
392
418
  * Whether the acting user has since been deleted.
@@ -466,7 +492,8 @@ export interface AuditLogListParams extends CursorPageParams {
466
492
  * `WorkspaceTagCreated`, `WorkspaceTagUpdated`, `WorkspaceTagDeleted`,
467
493
  * `WorkspaceTagAssigned`, `WorkspaceTagUnassigned`, `MeteredBillingConfigUpdated`,
468
494
  * `MeteredBillingRefillTriggered`, `MeteredBillingRetryTriggered`,
469
- * `EnterpriseSpendCapEnforcementUpdated`.
495
+ * `EnterpriseSpendCapEnforcementUpdated`,
496
+ * `AwsMarketplaceEnterpriseSubscriptionLinked`.
470
497
  */
471
498
  actions?: string;
472
499