@runwayml/sdk 2.2.1 → 2.4.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.
- package/CHANGELOG.md +28 -0
- package/core.d.ts +5 -2
- package/core.d.ts.map +1 -1
- package/core.js +11 -6
- package/core.js.map +1 -1
- package/core.mjs +11 -6
- package/core.mjs.map +1 -1
- package/index.d.mts +5 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +14 -3
- package/index.js.map +1 -1
- package/index.mjs +10 -2
- package/index.mjs.map +1 -1
- package/lib/polling.d.ts +49 -0
- package/lib/polling.d.ts.map +1 -0
- package/lib/polling.js +67 -0
- package/lib/polling.js.map +1 -0
- package/lib/polling.mjs +60 -0
- package/lib/polling.mjs.map +1 -0
- package/package.json +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/image-to-video.d.ts +17 -2
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +2 -1
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +2 -1
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.ts +30 -0
- package/resources/organization.d.ts.map +1 -1
- package/resources/tasks.d.ts +2 -1
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +2 -1
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +2 -1
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.ts +2 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.js +2 -1
- package/resources/text-to-image.js.map +1 -1
- package/resources/text-to-image.mjs +2 -1
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/video-upscale.d.ts +32 -0
- package/resources/video-upscale.d.ts.map +1 -0
- package/resources/video-upscale.js +17 -0
- package/resources/video-upscale.js.map +1 -0
- package/resources/video-upscale.mjs +13 -0
- package/resources/video-upscale.mjs.map +1 -0
- package/src/core.ts +11 -4
- package/src/index.ts +23 -0
- package/src/lib/polling.ts +109 -0
- package/src/resource.ts +1 -1
- package/src/resources/image-to-video.ts +22 -3
- package/src/resources/index.ts +5 -0
- package/src/resources/organization.ts +35 -0
- package/src/resources/tasks.ts +6 -2
- package/src/resources/text-to-image.ts +5 -2
- package/src/resources/video-upscale.ts +48 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
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
|
+
create(
|
|
13
|
+
body: VideoUpscaleCreateParams,
|
|
14
|
+
options?: Core.RequestOptions,
|
|
15
|
+
): APIPromiseWithAwaitableTask<VideoUpscaleCreateResponse> {
|
|
16
|
+
return wrapAsWaitableResource<VideoUpscaleCreateResponse>(this._client)(
|
|
17
|
+
this._client.post('/v1/video_upscale', { body, ...options }),
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface VideoUpscaleCreateResponse {
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the newly created task.
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface VideoUpscaleCreateParams {
|
|
30
|
+
/**
|
|
31
|
+
* The model variant to use.
|
|
32
|
+
*/
|
|
33
|
+
model: 'upscale_v1';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A HTTPS URL pointing to a video or a data URI containing a video. The video must
|
|
37
|
+
* be less than 4096px on each side. The video duration may not exceed 40 seconds.
|
|
38
|
+
* See [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
39
|
+
*/
|
|
40
|
+
videoUri: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare namespace VideoUpscale {
|
|
44
|
+
export {
|
|
45
|
+
type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse,
|
|
46
|
+
type VideoUpscaleCreateParams as VideoUpscaleCreateParams,
|
|
47
|
+
};
|
|
48
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.4.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|