@runwayml/sdk 3.10.0 → 3.14.3

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 (72) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/LICENSE +1 -1
  3. package/README.md +12 -2
  4. package/client.d.mts +1 -3
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +1 -3
  7. package/client.d.ts.map +1 -1
  8. package/client.js +15 -5
  9. package/client.js.map +1 -1
  10. package/client.mjs +15 -5
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/image-to-video.d.mts +55 -1
  20. package/resources/image-to-video.d.mts.map +1 -1
  21. package/resources/image-to-video.d.ts +55 -1
  22. package/resources/image-to-video.d.ts.map +1 -1
  23. package/resources/index.d.mts +0 -1
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +0 -1
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js +1 -3
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs +0 -1
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/organization.d.mts +2 -2
  32. package/resources/organization.d.mts.map +1 -1
  33. package/resources/organization.d.ts +2 -2
  34. package/resources/organization.d.ts.map +1 -1
  35. package/resources/text-to-image.d.mts +1 -39
  36. package/resources/text-to-image.d.mts.map +1 -1
  37. package/resources/text-to-image.d.ts +1 -39
  38. package/resources/text-to-image.d.ts.map +1 -1
  39. package/resources/text-to-video.d.mts +40 -1
  40. package/resources/text-to-video.d.mts.map +1 -1
  41. package/resources/text-to-video.d.ts +40 -1
  42. package/resources/text-to-video.d.ts.map +1 -1
  43. package/resources/video-to-video.d.mts +5 -5
  44. package/resources/video-to-video.d.mts.map +1 -1
  45. package/resources/video-to-video.d.ts +5 -5
  46. package/resources/video-to-video.d.ts.map +1 -1
  47. package/resources/video-to-video.js +0 -1
  48. package/resources/video-to-video.js.map +1 -1
  49. package/resources/video-to-video.mjs +0 -1
  50. package/resources/video-to-video.mjs.map +1 -1
  51. package/src/client.ts +18 -16
  52. package/src/internal/parse.ts +6 -0
  53. package/src/resources/image-to-video.ts +65 -0
  54. package/src/resources/index.ts +0 -5
  55. package/src/resources/organization.ts +2 -2
  56. package/src/resources/text-to-image.ts +0 -76
  57. package/src/resources/text-to-video.ts +47 -0
  58. package/src/resources/video-to-video.ts +6 -6
  59. package/src/version.ts +1 -1
  60. package/version.d.mts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
  64. package/resources/video-upscale.d.mts +0 -35
  65. package/resources/video-upscale.d.mts.map +0 -1
  66. package/resources/video-upscale.d.ts +0 -35
  67. package/resources/video-upscale.d.ts.map +0 -1
  68. package/resources/video-upscale.js +0 -25
  69. package/resources/video-upscale.js.map +0 -1
  70. package/resources/video-upscale.mjs +0 -21
  71. package/resources/video-upscale.mjs.map +0 -1
  72. package/src/resources/video-upscale.ts +0 -51
@@ -1,21 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- import { wrapAsWaitableResource } from "../lib/polling.mjs";
4
- export class VideoUpscale extends APIResource {
5
- /**
6
- * This endpoint will start a new task to upscale a video. Videos will be upscaled
7
- * by a factor of 4X, capped at a maximum of 4096px along each side.
8
- *
9
- * @example
10
- * ```ts
11
- * const videoUpscale = await client.videoUpscale.create({
12
- * model: 'upscale_v1',
13
- * videoUri: 'https://example.com/video.mp4',
14
- * });
15
- * ```
16
- */
17
- create(body, options) {
18
- return wrapAsWaitableResource(this._client)(this._client.post('/v1/video_upscale', { body, ...options }));
19
- }
20
- }
21
- //# sourceMappingURL=video-upscale.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video-upscale.mjs","sourceRoot":"","sources":["../src/resources/video-upscale.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
@@ -1,51 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { RequestOptions } from '../internal/request-options';
5
- import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
-
7
- export class VideoUpscale extends APIResource {
8
- /**
9
- * This endpoint will start a new task to upscale a video. Videos will be upscaled
10
- * by a factor of 4X, capped at a maximum of 4096px along each side.
11
- *
12
- * @example
13
- * ```ts
14
- * const videoUpscale = await client.videoUpscale.create({
15
- * model: 'upscale_v1',
16
- * videoUri: 'https://example.com/video.mp4',
17
- * });
18
- * ```
19
- */
20
- create(
21
- body: VideoUpscaleCreateParams,
22
- options?: RequestOptions,
23
- ): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse> {
24
- return wrapAsWaitableResource<VideoUpscaleCreateResponse>(this._client)(
25
- this._client.post('/v1/video_upscale', { body, ...options }),
26
- );
27
- }
28
- }
29
-
30
- export interface VideoUpscaleCreateResponse {
31
- /**
32
- * The ID of the task that was created. Use this to retrieve the task later.
33
- */
34
- id: string;
35
- }
36
-
37
- export interface VideoUpscaleCreateParams {
38
- model: 'upscale_v1';
39
-
40
- /**
41
- * A HTTPS URL.
42
- */
43
- videoUri: string;
44
- }
45
-
46
- export declare namespace VideoUpscale {
47
- export {
48
- type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse,
49
- type VideoUpscaleCreateParams as VideoUpscaleCreateParams,
50
- };
51
- }