magic-hour 0.0.8 → 0.1.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/README.md +55 -4
- package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +3 -0
- package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +2 -0
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +2 -0
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +3 -0
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +2 -0
- package/dist/resources/v1/ai-image-generator/resource-client.js +2 -0
- package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +3 -0
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +2 -0
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +2 -0
- package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +3 -0
- package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +2 -0
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +2 -0
- package/dist/resources/v1/face-swap/request-types.d.ts +3 -0
- package/dist/resources/v1/face-swap/resource-client.d.ts +2 -0
- package/dist/resources/v1/face-swap/resource-client.js +2 -0
- package/dist/resources/v1/face-swap-photo/request-types.d.ts +3 -0
- package/dist/resources/v1/face-swap-photo/resource-client.d.ts +2 -0
- package/dist/resources/v1/face-swap-photo/resource-client.js +2 -0
- package/dist/resources/v1/files/upload-urls/request-types.d.ts +3 -0
- package/dist/resources/v1/files/upload-urls/resource-client.d.ts +2 -0
- package/dist/resources/v1/files/upload-urls/resource-client.js +2 -0
- package/dist/resources/v1/image-projects/request-types.d.ts +3 -0
- package/dist/resources/v1/image-projects/resource-client.d.ts +2 -0
- package/dist/resources/v1/image-projects/resource-client.js +2 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +3 -0
- package/dist/resources/v1/image-to-video/resource-client.d.ts +2 -0
- package/dist/resources/v1/image-to-video/resource-client.js +2 -0
- package/dist/resources/v1/lip-sync/request-types.d.ts +3 -0
- package/dist/resources/v1/lip-sync/resource-client.d.ts +2 -0
- package/dist/resources/v1/lip-sync/resource-client.js +2 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +3 -0
- package/dist/resources/v1/text-to-video/resource-client.d.ts +2 -0
- package/dist/resources/v1/text-to-video/resource-client.js +2 -0
- package/dist/resources/v1/video-projects/request-types.d.ts +3 -0
- package/dist/resources/v1/video-projects/resource-client.d.ts +2 -0
- package/dist/resources/v1/video-projects/resource-client.js +2 -0
- package/dist/resources/v1/video-to-video/request-types.d.ts +3 -0
- package/dist/resources/v1/video-to-video/resource-client.d.ts +2 -0
- package/dist/resources/v1/video-to-video/resource-client.js +2 -0
- package/dist/types/get-v1-image-projects-id-response-downloads-item.d.ts +3 -0
- package/dist/types/get-v1-image-projects-id-response.d.ts +3 -0
- package/dist/types/get-v1-image-projects-id-response400.d.ts +3 -0
- package/dist/types/get-v1-image-projects-id-response401.d.ts +3 -0
- package/dist/types/get-v1-image-projects-id-response404.d.ts +3 -0
- package/dist/types/get-v1-video-projects-id-response-download.d.ts +3 -0
- package/dist/types/get-v1-video-projects-id-response.d.ts +5 -2
- package/dist/types/get-v1-video-projects-id-response400.d.ts +3 -0
- package/dist/types/get-v1-video-projects-id-response401.d.ts +3 -0
- package/dist/types/get-v1-video-projects-id-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-body-assets.d.ts +4 -1
- package/dist/types/post-v1-ai-headshot-generator-body.d.ts +4 -1
- package/dist/types/post-v1-ai-headshot-generator-response.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-response400.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-response401.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-response422.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-body-style.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-body.d.ts +4 -1
- package/dist/types/post-v1-ai-image-generator-response.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-response400.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-response401.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-response422.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-body-assets.d.ts +4 -1
- package/dist/types/post-v1-ai-image-upscaler-body-style.d.ts +4 -1
- package/dist/types/post-v1-ai-image-upscaler-body.d.ts +4 -1
- package/dist/types/post-v1-ai-image-upscaler-response.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-response400.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-response401.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-response422.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-body-style.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-body.d.ts +4 -1
- package/dist/types/post-v1-ai-qr-code-generator-response.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-response400.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-response401.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-response422.d.ts +3 -0
- package/dist/types/post-v1-face-swap-body-assets.d.ts +6 -3
- package/dist/types/post-v1-face-swap-body.d.ts +5 -2
- package/dist/types/post-v1-face-swap-photo-body-assets.d.ts +5 -2
- package/dist/types/post-v1-face-swap-photo-body.d.ts +4 -1
- package/dist/types/post-v1-face-swap-photo-response.d.ts +3 -0
- package/dist/types/post-v1-face-swap-photo-response400.d.ts +3 -0
- package/dist/types/post-v1-face-swap-photo-response401.d.ts +3 -0
- package/dist/types/post-v1-face-swap-photo-response404.d.ts +3 -0
- package/dist/types/post-v1-face-swap-photo-response422.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response400.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response401.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response404.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response422.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-body-items-item.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-body.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response-items-item.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response400.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response401.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response404.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response422.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-body-assets.d.ts +4 -1
- package/dist/types/post-v1-image-to-video-body-style.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-body.d.ts +4 -1
- package/dist/types/post-v1-image-to-video-response.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-response400.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-response401.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-response404.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-response422.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-body-assets.d.ts +6 -3
- package/dist/types/post-v1-lip-sync-body.d.ts +9 -2
- package/dist/types/post-v1-lip-sync-response.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-response400.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-response401.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-response404.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-response422.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-body-style.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-body.d.ts +4 -1
- package/dist/types/post-v1-text-to-video-response.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-response400.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-response401.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-response404.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-response422.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-body-assets.d.ts +5 -2
- package/dist/types/post-v1-video-to-video-body-style.d.ts +14 -11
- package/dist/types/post-v1-video-to-video-body.d.ts +7 -4
- package/dist/types/post-v1-video-to-video-response.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-response400.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-response401.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-response404.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-response422.d.ts +3 -0
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
# Magic Hour API Typescript SDK
|
|
3
3
|
|
|
4
|
-
|
|
5
4
|
## Overview
|
|
6
5
|
|
|
7
6
|
# Introduction
|
|
@@ -27,7 +26,6 @@ Then, add the `Authorization` header to the request.
|
|
|
27
26
|
> **Warning**: any API call that renders a video will utilize frames in your account.
|
|
28
27
|
|
|
29
28
|
|
|
30
|
-
|
|
31
29
|
### Example Client Initialization
|
|
32
30
|
|
|
33
31
|
```typescript
|
|
@@ -36,5 +34,58 @@ import Client from "magic-hour";
|
|
|
36
34
|
const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
37
35
|
```
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
## Module Documentation and Snippets
|
|
38
|
+
|
|
39
|
+
### [v1.ai_headshot_generator](src/resources/v1/ai-headshot-generator/README.md)
|
|
40
|
+
|
|
41
|
+
* [create](src/resources/v1/ai-headshot-generator/README.md#create) - Create AI Headshots
|
|
42
|
+
|
|
43
|
+
### [v1.ai_image_generator](src/resources/v1/ai-image-generator/README.md)
|
|
44
|
+
|
|
45
|
+
* [create](src/resources/v1/ai-image-generator/README.md#create) - Create AI Images
|
|
46
|
+
|
|
47
|
+
### [v1.ai_image_upscaler](src/resources/v1/ai-image-upscaler/README.md)
|
|
48
|
+
|
|
49
|
+
* [create](src/resources/v1/ai-image-upscaler/README.md#create) - Create Upscaled Image
|
|
50
|
+
|
|
51
|
+
### [v1.ai_qr_code_generator](src/resources/v1/ai-qr-code-generator/README.md)
|
|
52
|
+
|
|
53
|
+
* [create](src/resources/v1/ai-qr-code-generator/README.md#create) - Create AI QR Code
|
|
54
|
+
|
|
55
|
+
### [v1.face_swap](src/resources/v1/face-swap/README.md)
|
|
56
|
+
|
|
57
|
+
* [create](src/resources/v1/face-swap/README.md#create) - Create Face Swap video
|
|
58
|
+
|
|
59
|
+
### [v1.face_swap_photo](src/resources/v1/face-swap-photo/README.md)
|
|
60
|
+
|
|
61
|
+
* [create](src/resources/v1/face-swap-photo/README.md#create) - Create Face Swap Photo
|
|
62
|
+
|
|
63
|
+
### [v1.files.upload_urls](src/resources/v1/files/upload-urls/README.md)
|
|
64
|
+
|
|
65
|
+
* [create](src/resources/v1/files/upload-urls/README.md#create) - Generate asset upload urls
|
|
66
|
+
|
|
67
|
+
### [v1.image_projects](src/resources/v1/image-projects/README.md)
|
|
68
|
+
|
|
69
|
+
* [get](src/resources/v1/image-projects/README.md#get) - Get image project details
|
|
70
|
+
|
|
71
|
+
### [v1.image_to_video](src/resources/v1/image-to-video/README.md)
|
|
72
|
+
|
|
73
|
+
* [create](src/resources/v1/image-to-video/README.md#create) - Create Image-to-Video
|
|
74
|
+
|
|
75
|
+
### [v1.lip_sync](src/resources/v1/lip-sync/README.md)
|
|
76
|
+
|
|
77
|
+
* [create](src/resources/v1/lip-sync/README.md#create) - Create Lip Sync video
|
|
78
|
+
|
|
79
|
+
### [v1.text_to_video](src/resources/v1/text-to-video/README.md)
|
|
80
|
+
|
|
81
|
+
* [create](src/resources/v1/text-to-video/README.md#create) - Create Text-to-Video
|
|
82
|
+
|
|
83
|
+
### [v1.video_projects](src/resources/v1/video-projects/README.md)
|
|
84
|
+
|
|
85
|
+
* [get](src/resources/v1/video-projects/README.md#get) - Get video project details
|
|
86
|
+
|
|
87
|
+
### [v1.video_to_video](src/resources/v1/video-to-video/README.md)
|
|
88
|
+
|
|
89
|
+
* [create](src/resources/v1/video-to-video/README.md#create) - Create Video-to-Video
|
|
90
|
+
|
|
91
|
+
<!-- MODULE DOCS END -->
|
|
@@ -8,6 +8,8 @@ export declare class AiHeadshotGeneratorClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Create an AI headshot. Each headshot costs 50 frames.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/ai-headshot-generator
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiHeadshotGeneratorResponse>;
|
|
13
15
|
}
|
|
@@ -8,6 +8,8 @@ export declare class AiImageGeneratorClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Create an AI image. Each image costs 5 frames.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/ai-image-generator
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiImageGeneratorResponse>;
|
|
13
15
|
}
|
|
@@ -8,6 +8,8 @@ export declare class AiImageUpscalerClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Upscale your image using AI. Each 2x upscale costs 50 frames, and 4x upscale costs 200 frames.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/ai-image-upscaler
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiImageUpscalerResponse>;
|
|
13
15
|
}
|
|
@@ -11,6 +11,8 @@ class AiImageUpscalerClient extends core_1.CoreResourceClient {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Upscale your image using AI. Each 2x upscale costs 50 frames, and 4x upscale costs 200 frames.
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/ai-image-upscaler
|
|
14
16
|
*/
|
|
15
17
|
create(request, opts) {
|
|
16
18
|
return this._client.makeRequest({
|
|
@@ -8,6 +8,8 @@ export declare class AiQrCodeGeneratorClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Create an AI QR code. Each QR code costs 20 frames.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/ai-qr-code-generator
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiQrCodeGeneratorResponse>;
|
|
13
15
|
}
|
|
@@ -11,6 +11,8 @@ export declare class FaceSwapClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/face-swap).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/face-swap
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FaceSwapResponse>;
|
|
16
18
|
}
|
|
@@ -8,6 +8,8 @@ export declare class FaceSwapPhotoClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Create a face swap photo. Each photo costs 5 frames. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/face-swap-photo
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FaceSwapPhotoResponse>;
|
|
13
15
|
}
|
|
@@ -11,6 +11,8 @@ class FaceSwapPhotoClient extends core_1.CoreResourceClient {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Create a face swap photo. Each photo costs 5 frames. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/face-swap-photo
|
|
14
16
|
*/
|
|
15
17
|
create(request, opts) {
|
|
16
18
|
return this._client.makeRequest({
|
|
@@ -27,6 +27,8 @@ export declare class UploadUrlsClient extends CoreResourceClient {
|
|
|
27
27
|
* https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890
|
|
28
28
|
* ```
|
|
29
29
|
*
|
|
30
|
+
*
|
|
31
|
+
* POST /v1/files/upload-urls
|
|
30
32
|
*/
|
|
31
33
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FilesUploadUrlsResponse>;
|
|
32
34
|
}
|
|
@@ -17,6 +17,8 @@ export declare class ImageProjectsClient extends CoreResourceClient {
|
|
|
17
17
|
* - `error` - an error occurred during rendering
|
|
18
18
|
* - `canceled` - image render is canceled by the user
|
|
19
19
|
*
|
|
20
|
+
*
|
|
21
|
+
* GET /v1/image-projects/{id}
|
|
20
22
|
*/
|
|
21
23
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1ImageProjectsIdResponse>;
|
|
22
24
|
}
|
|
@@ -20,6 +20,8 @@ class ImageProjectsClient extends core_1.CoreResourceClient {
|
|
|
20
20
|
* - `error` - an error occurred during rendering
|
|
21
21
|
* - `canceled` - image render is canceled by the user
|
|
22
22
|
*
|
|
23
|
+
*
|
|
24
|
+
* GET /v1/image-projects/{id}
|
|
23
25
|
*/
|
|
24
26
|
get(request, opts) {
|
|
25
27
|
return this._client.makeRequest({
|
|
@@ -11,6 +11,8 @@ export declare class ImageToVideoClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/image-to-video).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/image-to-video
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1ImageToVideoResponse>;
|
|
16
18
|
}
|
|
@@ -14,6 +14,8 @@ class ImageToVideoClient extends core_1.CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* Get more information about this mode at our [product page](/products/image-to-video).
|
|
16
16
|
*
|
|
17
|
+
*
|
|
18
|
+
* POST /v1/image-to-video
|
|
17
19
|
*/
|
|
18
20
|
create(request, opts) {
|
|
19
21
|
return this._client.makeRequest({
|
|
@@ -11,6 +11,8 @@ export declare class LipSyncClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/lip-sync).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/lip-sync
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1LipSyncResponse>;
|
|
16
18
|
}
|
|
@@ -11,6 +11,8 @@ export declare class TextToVideoClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/text-to-video).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/text-to-video
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1TextToVideoResponse>;
|
|
16
18
|
}
|
|
@@ -14,6 +14,8 @@ class TextToVideoClient extends core_1.CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* Get more information about this mode at our [product page](/products/text-to-video).
|
|
16
16
|
*
|
|
17
|
+
*
|
|
18
|
+
* POST /v1/text-to-video
|
|
17
19
|
*/
|
|
18
20
|
create(request, opts) {
|
|
19
21
|
return this._client.makeRequest({
|
|
@@ -17,6 +17,8 @@ export declare class VideoProjectsClient extends CoreResourceClient {
|
|
|
17
17
|
* - `error` - an error occurred during rendering
|
|
18
18
|
* - `canceled` - video render is canceled by the user
|
|
19
19
|
*
|
|
20
|
+
*
|
|
21
|
+
* GET /v1/video-projects/{id}
|
|
20
22
|
*/
|
|
21
23
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1VideoProjectsIdResponse>;
|
|
22
24
|
}
|
|
@@ -20,6 +20,8 @@ class VideoProjectsClient extends core_1.CoreResourceClient {
|
|
|
20
20
|
* - `error` - an error occurred during rendering
|
|
21
21
|
* - `canceled` - video render is canceled by the user
|
|
22
22
|
*
|
|
23
|
+
*
|
|
24
|
+
* GET /v1/video-projects/{id}
|
|
23
25
|
*/
|
|
24
26
|
get(request, opts) {
|
|
25
27
|
return this._client.makeRequest({
|
|
@@ -11,6 +11,8 @@ export declare class VideoToVideoClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/video-to-video).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/video-to-video
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1VideoToVideoResponse>;
|
|
16
18
|
}
|
|
@@ -14,6 +14,8 @@ class VideoToVideoClient extends core_1.CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* Get more information about this mode at our [product page](/products/video-to-video).
|
|
16
16
|
*
|
|
17
|
+
*
|
|
18
|
+
* POST /v1/video-to-video
|
|
17
19
|
*/
|
|
18
20
|
create(request, opts) {
|
|
19
21
|
return this._client.makeRequest({
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Success
|
|
7
|
+
*/
|
|
5
8
|
export declare type GetV1VideoProjectsIdResponse = {
|
|
6
9
|
created_at: string;
|
|
7
10
|
/**
|
|
@@ -13,7 +16,7 @@ export declare type GetV1VideoProjectsIdResponse = {
|
|
|
13
16
|
*/
|
|
14
17
|
end_seconds: number;
|
|
15
18
|
/**
|
|
16
|
-
* Frame rate of the video. If the status is not
|
|
19
|
+
* Frame rate of the video. If the status is not 'complete', the frame rate is an estimate and will be adjusted when the video completes.
|
|
17
20
|
*/
|
|
18
21
|
fps: number;
|
|
19
22
|
/**
|
|
@@ -37,7 +40,7 @@ export declare type GetV1VideoProjectsIdResponse = {
|
|
|
37
40
|
*/
|
|
38
41
|
status: types.GetV1VideoProjectsIdResponseStatusEnum;
|
|
39
42
|
/**
|
|
40
|
-
* The amount of frames used to generate the video. If the status is not
|
|
43
|
+
* The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
|
|
41
44
|
*/
|
|
42
45
|
total_frame_cost: number;
|
|
43
46
|
type: types.GetV1VideoProjectsIdResponseTypeEnum;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* Provide the assets for headshot photo
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1AiHeadshotGeneratorBodyAssets = {
|
|
5
8
|
/**
|
|
6
|
-
* The image used to generate the headshot. This image must contain one detectable face. This is the
|
|
9
|
+
* The image used to generate the headshot. This image must contain one detectable face. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
|
|
7
10
|
*/
|
|
8
11
|
image_file_path: string;
|
|
9
12
|
};
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1AiHeadshotGeneratorBody
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1AiHeadshotGeneratorBody = {
|
|
6
9
|
/**
|
|
7
10
|
* Provide the assets for headshot photo
|
|
@@ -10,5 +13,5 @@ export declare type PostV1AiHeadshotGeneratorBody = {
|
|
|
10
13
|
/**
|
|
11
14
|
* The name of image
|
|
12
15
|
*/
|
|
13
|
-
name?: string
|
|
16
|
+
name?: string;
|
|
14
17
|
};
|