@runwayml/sdk 3.8.0 → 3.10.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 (90) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.d.ts.map +1 -1
  6. package/lib/polling.d.mts +2 -2
  7. package/lib/polling.d.mts.map +1 -1
  8. package/lib/polling.d.ts +2 -2
  9. package/lib/polling.d.ts.map +1 -1
  10. package/lib/polling.js +1 -1
  11. package/lib/polling.js.map +1 -1
  12. package/lib/polling.mjs +1 -1
  13. package/lib/polling.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/character-performance.d.mts +3 -0
  16. package/resources/character-performance.d.mts.map +1 -1
  17. package/resources/character-performance.d.ts +3 -0
  18. package/resources/character-performance.d.ts.map +1 -1
  19. package/resources/image-to-video.d.mts +3 -0
  20. package/resources/image-to-video.d.mts.map +1 -1
  21. package/resources/image-to-video.d.ts +3 -0
  22. package/resources/image-to-video.d.ts.map +1 -1
  23. package/resources/organization.d.mts +18 -489
  24. package/resources/organization.d.mts.map +1 -1
  25. package/resources/organization.d.ts +18 -489
  26. package/resources/organization.d.ts.map +1 -1
  27. package/resources/sound-effect.d.mts +3 -0
  28. package/resources/sound-effect.d.mts.map +1 -1
  29. package/resources/sound-effect.d.ts +3 -0
  30. package/resources/sound-effect.d.ts.map +1 -1
  31. package/resources/speech-to-speech.d.mts +3 -0
  32. package/resources/speech-to-speech.d.mts.map +1 -1
  33. package/resources/speech-to-speech.d.ts +3 -0
  34. package/resources/speech-to-speech.d.ts.map +1 -1
  35. package/resources/tasks.d.mts +94 -32
  36. package/resources/tasks.d.mts.map +1 -1
  37. package/resources/tasks.d.ts +94 -32
  38. package/resources/tasks.d.ts.map +1 -1
  39. package/resources/text-to-image.d.mts +54 -1
  40. package/resources/text-to-image.d.mts.map +1 -1
  41. package/resources/text-to-image.d.ts +54 -1
  42. package/resources/text-to-image.d.ts.map +1 -1
  43. package/resources/text-to-speech.d.mts +3 -0
  44. package/resources/text-to-speech.d.mts.map +1 -1
  45. package/resources/text-to-speech.d.ts +3 -0
  46. package/resources/text-to-speech.d.ts.map +1 -1
  47. package/resources/text-to-video.d.mts +3 -0
  48. package/resources/text-to-video.d.mts.map +1 -1
  49. package/resources/text-to-video.d.ts +3 -0
  50. package/resources/text-to-video.d.ts.map +1 -1
  51. package/resources/video-to-video.d.mts +3 -0
  52. package/resources/video-to-video.d.mts.map +1 -1
  53. package/resources/video-to-video.d.ts +3 -0
  54. package/resources/video-to-video.d.ts.map +1 -1
  55. package/resources/video-upscale.d.mts +3 -0
  56. package/resources/video-upscale.d.mts.map +1 -1
  57. package/resources/video-upscale.d.ts +3 -0
  58. package/resources/video-upscale.d.ts.map +1 -1
  59. package/resources/voice-dubbing.d.mts +3 -0
  60. package/resources/voice-dubbing.d.mts.map +1 -1
  61. package/resources/voice-dubbing.d.ts +3 -0
  62. package/resources/voice-dubbing.d.ts.map +1 -1
  63. package/resources/voice-isolation.d.mts +3 -0
  64. package/resources/voice-isolation.d.mts.map +1 -1
  65. package/resources/voice-isolation.d.ts +3 -0
  66. package/resources/voice-isolation.d.ts.map +1 -1
  67. package/src/client.ts +1 -1
  68. package/src/lib/polling.ts +4 -4
  69. package/src/resources/character-performance.ts +3 -0
  70. package/src/resources/image-to-video.ts +3 -0
  71. package/src/resources/organization.ts +31 -583
  72. package/src/resources/sound-effect.ts +3 -0
  73. package/src/resources/speech-to-speech.ts +3 -0
  74. package/src/resources/tasks.ts +116 -32
  75. package/src/resources/text-to-image.ts +91 -0
  76. package/src/resources/text-to-speech.ts +3 -0
  77. package/src/resources/text-to-video.ts +3 -0
  78. package/src/resources/video-to-video.ts +3 -0
  79. package/src/resources/video-upscale.ts +3 -0
  80. package/src/resources/voice-dubbing.ts +3 -0
  81. package/src/resources/voice-isolation.ts +3 -0
  82. package/src/version.ts +1 -1
  83. package/version.d.mts +1 -1
  84. package/version.d.mts.map +1 -1
  85. package/version.d.ts +1 -1
  86. package/version.d.ts.map +1 -1
  87. package/version.js +1 -1
  88. package/version.js.map +1 -1
  89. package/version.mjs +1 -1
  90. package/version.mjs.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"video-upscale.d.mts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"video-upscale.d.mts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,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;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -17,6 +17,9 @@ export declare class VideoUpscale extends APIResource {
17
17
  create(body: VideoUpscaleCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse>;
18
18
  }
19
19
  export interface VideoUpscaleCreateResponse {
20
+ /**
21
+ * The ID of the task that was created. Use this to retrieve the task later.
22
+ */
20
23
  id: string;
21
24
  }
22
25
  export interface VideoUpscaleCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"video-upscale.d.ts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"video-upscale.d.ts","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,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;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -17,6 +17,9 @@ export declare class VoiceDubbing extends APIResource {
17
17
  create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
18
18
  }
19
19
  export interface VoiceDubbingCreateResponse {
20
+ /**
21
+ * The ID of the task that was created. Use this to retrieve the task later.
22
+ */
20
23
  id: string;
21
24
  }
22
25
  export interface VoiceDubbingCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"voice-dubbing.d.mts","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;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sBAAsB,CAAC;IAE9B;;;OAGG;IACH,UAAU,EACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -17,6 +17,9 @@ export declare class VoiceDubbing extends APIResource {
17
17
  create(body: VoiceDubbingCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse>;
18
18
  }
19
19
  export interface VoiceDubbingCreateResponse {
20
+ /**
21
+ * The ID of the task that was created. Use this to retrieve the task later.
22
+ */
20
23
  id: string;
21
24
  }
22
25
  export interface VoiceDubbingCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"voice-dubbing.d.ts","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,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AED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;;OAGG;IACH,UAAU,EACN,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -18,6 +18,9 @@ export declare class VoiceIsolation extends APIResource {
18
18
  create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
19
19
  }
20
20
  export interface VoiceIsolationCreateResponse {
21
+ /**
22
+ * The ID of the task that was created. Use this to retrieve the task later.
23
+ */
21
24
  id: string;
22
25
  }
23
26
  export interface VoiceIsolationCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"voice-isolation.d.mts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"voice-isolation.d.mts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -18,6 +18,9 @@ export declare class VoiceIsolation extends APIResource {
18
18
  create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
19
19
  }
20
20
  export interface VoiceIsolationCreateResponse {
21
+ /**
22
+ * The ID of the task that was created. Use this to retrieve the task later.
23
+ */
21
24
  id: string;
22
25
  }
23
26
  export interface VoiceIsolationCreateParams {
@@ -1 +1 @@
1
- {"version":3,"file":"voice-isolation.d.ts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"voice-isolation.d.ts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
package/src/client.ts CHANGED
@@ -168,7 +168,7 @@ export class RunwayML {
168
168
  baseURL: string;
169
169
  maxRetries: number;
170
170
  timeout: number;
171
- logger: Logger | undefined;
171
+ logger: Logger;
172
172
  logLevel: LogLevel | undefined;
173
173
  fetchOptions: MergedRequestInit | undefined;
174
174
 
@@ -7,8 +7,8 @@ const POLL_JITTER = 3000; // 3 seconds
7
7
 
8
8
  export class TaskFailedError extends Error {
9
9
  taskDetails: TaskRetrieveResponse;
10
- constructor(taskDetails: TaskRetrieveResponse) {
11
- super(taskDetails.failure!);
10
+ constructor(taskDetails: TaskRetrieveResponse.Failed | TaskRetrieveResponse.Cancelled) {
11
+ super('failure' in taskDetails ? taskDetails.failure : 'Task cancelled');
12
12
  this.taskDetails = taskDetails;
13
13
  this.name = 'TaskFailedError';
14
14
  }
@@ -58,7 +58,7 @@ export type APIPromiseWithAwaitableTask<T extends { id: string }> = APIPromise<T
58
58
  *
59
59
  * If the task fails or is cancelled, a `TaskFailedError` will be thrown.
60
60
  */
61
- waitForTaskOutput: (options?: WaitForTaskOutputOptions) => Promise<TaskRetrieveResponse>;
61
+ waitForTaskOutput: (options?: WaitForTaskOutputOptions) => Promise<TaskRetrieveResponse.Succeeded>;
62
62
  };
63
63
 
64
64
  export function wrapAsWaitableResource<T extends { id: string }>(client: RunwayML) {
@@ -103,7 +103,7 @@ export function wrapAsWaitableResource<T extends { id: string }>(client: RunwayM
103
103
  enumerable: false,
104
104
  configurable: false,
105
105
  }) as APIPromise<T> & {
106
- waitForTaskOutput: () => Promise<TaskRetrieveResponse>;
106
+ waitForTaskOutput: () => Promise<TaskRetrieveResponse.Succeeded>;
107
107
  };
108
108
  };
109
109
  }
@@ -36,6 +36,9 @@ export class CharacterPerformance extends APIResource {
36
36
  }
37
37
 
38
38
  export interface CharacterPerformanceCreateResponse {
39
+ /**
40
+ * The ID of the task that was created. Use this to retrieve the task later.
41
+ */
39
42
  id: string;
40
43
  }
41
44
 
@@ -28,6 +28,9 @@ export class ImageToVideo extends APIResource {
28
28
  }
29
29
 
30
30
  export interface ImageToVideoCreateResponse {
31
+ /**
32
+ * The ID of the task that was created. Use this to retrieve the task later.
33
+ */
31
34
  id: string;
32
35
  }
33
36