@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.
- package/CHANGELOG.md +103 -0
- package/LICENSE +1 -1
- package/README.md +12 -2
- package/client.d.mts +1 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -3
- package/client.d.ts.map +1 -1
- package/client.js +15 -5
- package/client.js.map +1 -1
- package/client.mjs +15 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +55 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +55 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +1 -39
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +1 -39
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +40 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +40 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +5 -5
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +5 -5
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +0 -1
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +0 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/src/client.ts +18 -16
- package/src/internal/parse.ts +6 -0
- package/src/resources/image-to-video.ts +65 -0
- package/src/resources/index.ts +0 -5
- package/src/resources/organization.ts +2 -2
- package/src/resources/text-to-image.ts +0 -76
- package/src/resources/text-to-video.ts +47 -0
- package/src/resources/video-to-video.ts +6 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/video-upscale.d.mts +0 -35
- package/resources/video-upscale.d.mts.map +0 -1
- package/resources/video-upscale.d.ts +0 -35
- package/resources/video-upscale.d.ts.map +0 -1
- package/resources/video-upscale.js +0 -25
- package/resources/video-upscale.js.map +0 -1
- package/resources/video-upscale.mjs +0 -21
- package/resources/video-upscale.mjs.map +0 -1
- 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
|
-
}
|