magic-hour 0.2.0 → 0.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/README.md +7 -1
- package/dist/resources/v1/animation/index.d.ts +5 -0
- package/dist/resources/v1/animation/index.js +8 -0
- package/dist/resources/v1/animation/request-types.d.ts +10 -0
- package/dist/resources/v1/animation/request-types.js +5 -0
- package/dist/resources/v1/animation/resource-client.d.ts +15 -0
- package/dist/resources/v1/animation/resource-client.js +29 -0
- package/dist/resources/v1/image-projects/index.d.ts +1 -1
- package/dist/resources/v1/image-projects/request-types.d.ts +6 -0
- package/dist/resources/v1/image-projects/resource-client.d.ts +6 -0
- package/dist/resources/v1/image-projects/resource-client.js +14 -0
- package/dist/resources/v1/index.d.ts +1 -0
- package/dist/resources/v1/index.js +2 -1
- package/dist/resources/v1/resource-client.d.ts +2 -0
- package/dist/resources/v1/resource-client.js +2 -0
- package/dist/resources/v1/video-projects/index.d.ts +1 -1
- package/dist/resources/v1/video-projects/request-types.d.ts +6 -0
- package/dist/resources/v1/video-projects/resource-client.d.ts +6 -0
- package/dist/resources/v1/video-projects/resource-client.js +14 -0
- package/dist/types/delete-v1-image-projects-id-response400.d.ts +9 -0
- package/dist/types/delete-v1-image-projects-id-response400.js +5 -0
- package/dist/types/delete-v1-image-projects-id-response401-message-enum.d.ts +4 -0
- package/dist/types/delete-v1-image-projects-id-response401-message-enum.js +2 -0
- package/dist/types/delete-v1-image-projects-id-response401.d.ts +10 -0
- package/dist/types/delete-v1-image-projects-id-response401.js +5 -0
- package/dist/types/delete-v1-image-projects-id-response404-message-enum.d.ts +4 -0
- package/dist/types/delete-v1-image-projects-id-response404-message-enum.js +2 -0
- package/dist/types/delete-v1-image-projects-id-response404.d.ts +10 -0
- package/dist/types/delete-v1-image-projects-id-response404.js +5 -0
- package/dist/types/delete-v1-video-projects-id-response400.d.ts +9 -0
- package/dist/types/delete-v1-video-projects-id-response400.js +5 -0
- package/dist/types/delete-v1-video-projects-id-response401-message-enum.d.ts +4 -0
- package/dist/types/delete-v1-video-projects-id-response401-message-enum.js +2 -0
- package/dist/types/delete-v1-video-projects-id-response401.d.ts +10 -0
- package/dist/types/delete-v1-video-projects-id-response401.js +5 -0
- package/dist/types/delete-v1-video-projects-id-response404-message-enum.d.ts +4 -0
- package/dist/types/delete-v1-video-projects-id-response404-message-enum.js +2 -0
- package/dist/types/delete-v1-video-projects-id-response404.d.ts +10 -0
- package/dist/types/delete-v1-video-projects-id-response404.js +5 -0
- package/dist/types/delete-v1-video-projects-id-response422.d.ts +9 -0
- package/dist/types/delete-v1-video-projects-id-response422.js +5 -0
- package/dist/types/get-v1-image-projects-id-response-error.d.ts +16 -0
- package/dist/types/get-v1-image-projects-id-response-error.js +5 -0
- package/dist/types/get-v1-image-projects-id-response.d.ts +8 -0
- package/dist/types/get-v1-video-projects-id-response-error.d.ts +16 -0
- package/dist/types/get-v1-video-projects-id-response-error.js +5 -0
- package/dist/types/get-v1-video-projects-id-response.d.ts +8 -0
- package/dist/types/index.d.ts +27 -0
- package/dist/types/post-v1-animation-body-assets-audio-source-enum.d.ts +4 -0
- package/dist/types/post-v1-animation-body-assets-audio-source-enum.js +2 -0
- package/dist/types/post-v1-animation-body-assets.d.ts +25 -0
- package/dist/types/post-v1-animation-body-assets.js +5 -0
- package/dist/types/post-v1-animation-body-style-art-style-enum.d.ts +4 -0
- package/dist/types/post-v1-animation-body-style-art-style-enum.js +2 -0
- package/dist/types/post-v1-animation-body-style-camera-effect-enum.d.ts +4 -0
- package/dist/types/post-v1-animation-body-style-camera-effect-enum.js +2 -0
- package/dist/types/post-v1-animation-body-style-prompt-type-enum.d.ts +4 -0
- package/dist/types/post-v1-animation-body-style-prompt-type-enum.js +2 -0
- package/dist/types/post-v1-animation-body-style.d.ts +33 -0
- package/dist/types/post-v1-animation-body-style.js +5 -0
- package/dist/types/post-v1-animation-body.d.ts +37 -0
- package/dist/types/post-v1-animation-body.js +5 -0
- package/dist/types/post-v1-animation-response.d.ts +16 -0
- package/dist/types/post-v1-animation-response.js +5 -0
- package/dist/types/post-v1-animation-response400.d.ts +9 -0
- package/dist/types/post-v1-animation-response400.js +5 -0
- package/dist/types/post-v1-animation-response401-message-enum.d.ts +4 -0
- package/dist/types/post-v1-animation-response401-message-enum.js +2 -0
- package/dist/types/post-v1-animation-response401.d.ts +10 -0
- package/dist/types/post-v1-animation-response401.js +5 -0
- package/dist/types/post-v1-animation-response404-message-enum.d.ts +4 -0
- package/dist/types/post-v1-animation-response404-message-enum.js +2 -0
- package/dist/types/post-v1-animation-response404.d.ts +10 -0
- package/dist/types/post-v1-animation-response404.js +5 -0
- package/dist/types/post-v1-animation-response422.d.ts +9 -0
- package/dist/types/post-v1-animation-response422.js +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,6 +56,10 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
56
56
|
|
|
57
57
|
* [create](src/resources/v1/ai-qr-code-generator/README.md#create) - Create AI QR Code
|
|
58
58
|
|
|
59
|
+
### [v1.animation](src/resources/v1/animation/README.md)
|
|
60
|
+
|
|
61
|
+
* [create](src/resources/v1/animation/README.md#create) - Create Animation
|
|
62
|
+
|
|
59
63
|
### [v1.face_swap](src/resources/v1/face-swap/README.md)
|
|
60
64
|
|
|
61
65
|
* [create](src/resources/v1/face-swap/README.md#create) - Create Face Swap video
|
|
@@ -70,6 +74,7 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
70
74
|
|
|
71
75
|
### [v1.image_projects](src/resources/v1/image-projects/README.md)
|
|
72
76
|
|
|
77
|
+
* [delete](src/resources/v1/image-projects/README.md#delete) - Delete image
|
|
73
78
|
* [get](src/resources/v1/image-projects/README.md#get) - Get image project details
|
|
74
79
|
|
|
75
80
|
### [v1.image_to_video](src/resources/v1/image-to-video/README.md)
|
|
@@ -86,7 +91,8 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
86
91
|
|
|
87
92
|
### [v1.video_projects](src/resources/v1/video-projects/README.md)
|
|
88
93
|
|
|
89
|
-
* [
|
|
94
|
+
* [delete](src/resources/v1/video-projects/README.md#delete) - Delete video
|
|
95
|
+
* [get](src/resources/v1/video-projects/README.md#get) - Get video details
|
|
90
96
|
|
|
91
97
|
### [v1.video_to_video](src/resources/v1/video-to-video/README.md)
|
|
92
98
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AnimationClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "AnimationClient", { enumerable: true, get: function () { return resource_client_1.AnimationClient; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../../../index.js";
|
|
5
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
|
+
import * as requests from "../../../resources/v1/animation/request-types";
|
|
7
|
+
export declare class AnimationClient extends CoreResourceClient {
|
|
8
|
+
constructor(client: CoreClient);
|
|
9
|
+
/**
|
|
10
|
+
* Create a Animation video. The estimated frame cost is calculated based on the `fps` and `end_seconds` input.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/animation
|
|
13
|
+
*/
|
|
14
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AnimationResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AnimationClient = void 0;
|
|
7
|
+
const core_1 = require("../../../core");
|
|
8
|
+
class AnimationClient extends core_1.CoreResourceClient {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
super(client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a Animation video. The estimated frame cost is calculated based on the `fps` and `end_seconds` input.
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/animation
|
|
16
|
+
*/
|
|
17
|
+
create(request, opts) {
|
|
18
|
+
return this._client.makeRequest({
|
|
19
|
+
method: "post",
|
|
20
|
+
path: "/v1/animation",
|
|
21
|
+
auth: ["bearerAuth"],
|
|
22
|
+
contentType: "application/json",
|
|
23
|
+
body: request.data,
|
|
24
|
+
responseType: "json",
|
|
25
|
+
opts,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AnimationClient = AnimationClient;
|
|
@@ -21,4 +21,10 @@ export declare class ImageProjectsClient extends CoreResourceClient {
|
|
|
21
21
|
* GET /v1/image-projects/{id}
|
|
22
22
|
*/
|
|
23
23
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1ImageProjectsIdResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Permanently delete the rendered image. This action is not reversible, please be sure before deleting.
|
|
26
|
+
*
|
|
27
|
+
* DELETE /v1/image-projects/{id}
|
|
28
|
+
*/
|
|
29
|
+
delete(request: requests.DeleteRequest, opts?: RequestOptions): ApiPromise<null>;
|
|
24
30
|
}
|
|
@@ -32,5 +32,19 @@ class ImageProjectsClient extends core_1.CoreResourceClient {
|
|
|
32
32
|
opts,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Permanently delete the rendered image. This action is not reversible, please be sure before deleting.
|
|
37
|
+
*
|
|
38
|
+
* DELETE /v1/image-projects/{id}
|
|
39
|
+
*/
|
|
40
|
+
delete(request, opts) {
|
|
41
|
+
return this._client.makeRequest({
|
|
42
|
+
method: "delete",
|
|
43
|
+
path: `/v1/image-projects/${request.id}`,
|
|
44
|
+
auth: ["bearerAuth"],
|
|
45
|
+
responseType: "json",
|
|
46
|
+
opts,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
35
49
|
}
|
|
36
50
|
exports.ImageProjectsClient = ImageProjectsClient;
|
|
@@ -6,6 +6,7 @@ export * as aiImageGenerator from "./ai-image-generator";
|
|
|
6
6
|
export * as aiImageUpscaler from "./ai-image-upscaler";
|
|
7
7
|
export * as aiPhotoEditor from "./ai-photo-editor";
|
|
8
8
|
export * as aiQrCodeGenerator from "./ai-qr-code-generator";
|
|
9
|
+
export * as animation from "./animation";
|
|
9
10
|
export * as faceSwap from "./face-swap";
|
|
10
11
|
export * as faceSwapPhoto from "./face-swap-photo";
|
|
11
12
|
export * as files from "./files";
|
|
@@ -26,12 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiHeadshotGenerator = void 0;
|
|
29
|
+
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.animation = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiHeadshotGenerator = void 0;
|
|
30
30
|
exports.aiHeadshotGenerator = __importStar(require("./ai-headshot-generator"));
|
|
31
31
|
exports.aiImageGenerator = __importStar(require("./ai-image-generator"));
|
|
32
32
|
exports.aiImageUpscaler = __importStar(require("./ai-image-upscaler"));
|
|
33
33
|
exports.aiPhotoEditor = __importStar(require("./ai-photo-editor"));
|
|
34
34
|
exports.aiQrCodeGenerator = __importStar(require("./ai-qr-code-generator"));
|
|
35
|
+
exports.animation = __importStar(require("./animation"));
|
|
35
36
|
exports.faceSwap = __importStar(require("./face-swap"));
|
|
36
37
|
exports.faceSwapPhoto = __importStar(require("./face-swap-photo"));
|
|
37
38
|
exports.files = __importStar(require("./files"));
|
|
@@ -7,6 +7,7 @@ import { AiImageGeneratorClient } from "../../resources/v1/ai-image-generator";
|
|
|
7
7
|
import { AiImageUpscalerClient } from "../../resources/v1/ai-image-upscaler";
|
|
8
8
|
import { AiPhotoEditorClient } from "../../resources/v1/ai-photo-editor";
|
|
9
9
|
import { AiQrCodeGeneratorClient } from "../../resources/v1/ai-qr-code-generator";
|
|
10
|
+
import { AnimationClient } from "../../resources/v1/animation";
|
|
10
11
|
import { FaceSwapClient } from "../../resources/v1/face-swap";
|
|
11
12
|
import { FaceSwapPhotoClient } from "../../resources/v1/face-swap-photo";
|
|
12
13
|
import { FilesClient } from "../../resources/v1/files";
|
|
@@ -24,6 +25,7 @@ export declare class V1Client extends CoreResourceClient {
|
|
|
24
25
|
aiImageUpscaler: AiImageUpscalerClient;
|
|
25
26
|
aiPhotoEditor: AiPhotoEditorClient;
|
|
26
27
|
aiQrCodeGenerator: AiQrCodeGeneratorClient;
|
|
28
|
+
animation: AnimationClient;
|
|
27
29
|
faceSwap: FaceSwapClient;
|
|
28
30
|
faceSwapPhoto: FaceSwapPhotoClient;
|
|
29
31
|
files: FilesClient;
|
|
@@ -10,6 +10,7 @@ const ai_image_generator_1 = require("../../resources/v1/ai-image-generator");
|
|
|
10
10
|
const ai_image_upscaler_1 = require("../../resources/v1/ai-image-upscaler");
|
|
11
11
|
const ai_photo_editor_1 = require("../../resources/v1/ai-photo-editor");
|
|
12
12
|
const ai_qr_code_generator_1 = require("../../resources/v1/ai-qr-code-generator");
|
|
13
|
+
const animation_1 = require("../../resources/v1/animation");
|
|
13
14
|
const face_swap_1 = require("../../resources/v1/face-swap");
|
|
14
15
|
const face_swap_photo_1 = require("../../resources/v1/face-swap-photo");
|
|
15
16
|
const files_1 = require("../../resources/v1/files");
|
|
@@ -29,6 +30,7 @@ class V1Client extends core_1.CoreResourceClient {
|
|
|
29
30
|
this.aiImageUpscaler = new ai_image_upscaler_1.AiImageUpscalerClient(this._client);
|
|
30
31
|
this.aiPhotoEditor = new ai_photo_editor_1.AiPhotoEditorClient(this._client);
|
|
31
32
|
this.aiQrCodeGenerator = new ai_qr_code_generator_1.AiQrCodeGeneratorClient(this._client);
|
|
33
|
+
this.animation = new animation_1.AnimationClient(this._client);
|
|
32
34
|
this.faceSwap = new face_swap_1.FaceSwapClient(this._client);
|
|
33
35
|
this.faceSwapPhoto = new face_swap_photo_1.FaceSwapPhotoClient(this._client);
|
|
34
36
|
this.files = new files_1.FilesClient(this._client);
|
|
@@ -21,4 +21,10 @@ export declare class VideoProjectsClient extends CoreResourceClient {
|
|
|
21
21
|
* GET /v1/video-projects/{id}
|
|
22
22
|
*/
|
|
23
23
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1VideoProjectsIdResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Permanently delete the rendered video. This action is not reversible, please be sure before deleting.
|
|
26
|
+
*
|
|
27
|
+
* DELETE /v1/video-projects/{id}
|
|
28
|
+
*/
|
|
29
|
+
delete(request: requests.DeleteRequest, opts?: RequestOptions): ApiPromise<null>;
|
|
24
30
|
}
|
|
@@ -32,5 +32,19 @@ class VideoProjectsClient extends core_1.CoreResourceClient {
|
|
|
32
32
|
opts,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Permanently delete the rendered video. This action is not reversible, please be sure before deleting.
|
|
37
|
+
*
|
|
38
|
+
* DELETE /v1/video-projects/{id}
|
|
39
|
+
*/
|
|
40
|
+
delete(request, opts) {
|
|
41
|
+
return this._client.makeRequest({
|
|
42
|
+
method: "delete",
|
|
43
|
+
path: `/v1/video-projects/${request.id}`,
|
|
44
|
+
auth: ["bearerAuth"],
|
|
45
|
+
responseType: "json",
|
|
46
|
+
opts,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
35
49
|
}
|
|
36
50
|
exports.VideoProjectsClient = VideoProjectsClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The request is not properly authenticated
|
|
7
|
+
*/
|
|
8
|
+
export declare type DeleteV1ImageProjectsIdResponse401 = {
|
|
9
|
+
message: types.DeleteV1ImageProjectsIdResponse401MessageEnum;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Requested resource is not found
|
|
7
|
+
*/
|
|
8
|
+
export declare type DeleteV1ImageProjectsIdResponse404 = {
|
|
9
|
+
message: types.DeleteV1ImageProjectsIdResponse404MessageEnum;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The request is not properly authenticated
|
|
7
|
+
*/
|
|
8
|
+
export declare type DeleteV1VideoProjectsIdResponse401 = {
|
|
9
|
+
message: types.DeleteV1VideoProjectsIdResponse401MessageEnum;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Requested resource is not found
|
|
7
|
+
*/
|
|
8
|
+
export declare type DeleteV1VideoProjectsIdResponse404 = {
|
|
9
|
+
message: types.DeleteV1VideoProjectsIdResponse404MessageEnum;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
/**
|
|
5
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
6
|
+
*/
|
|
7
|
+
export declare type GetV1ImageProjectsIdResponseError = {
|
|
8
|
+
/**
|
|
9
|
+
* An error code to indicate why a failure happened.
|
|
10
|
+
*/
|
|
11
|
+
code: string;
|
|
12
|
+
/**
|
|
13
|
+
* Details on the reason why a failure happened.
|
|
14
|
+
*/
|
|
15
|
+
message: string;
|
|
16
|
+
};
|
|
@@ -8,6 +8,14 @@ import { types } from "../index.js";
|
|
|
8
8
|
export declare type GetV1ImageProjectsIdResponse = {
|
|
9
9
|
created_at: string;
|
|
10
10
|
downloads: types.GetV1ImageProjectsIdResponseDownloadsItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Indicates whether the resource is deleted
|
|
13
|
+
*/
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
17
|
+
*/
|
|
18
|
+
error?: types.GetV1ImageProjectsIdResponseError | null;
|
|
11
19
|
/**
|
|
12
20
|
* Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
|
|
13
21
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
/**
|
|
5
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
6
|
+
*/
|
|
7
|
+
export declare type GetV1VideoProjectsIdResponseError = {
|
|
8
|
+
/**
|
|
9
|
+
* An error code to indicate why a failure happened.
|
|
10
|
+
*/
|
|
11
|
+
code: string;
|
|
12
|
+
/**
|
|
13
|
+
* Details on the reason why a failure happened.
|
|
14
|
+
*/
|
|
15
|
+
message: string;
|
|
16
|
+
};
|
|
@@ -11,10 +11,18 @@ export declare type GetV1VideoProjectsIdResponse = {
|
|
|
11
11
|
* The download url and expiration date of the video project
|
|
12
12
|
*/
|
|
13
13
|
download?: types.GetV1VideoProjectsIdResponseDownload | null;
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether the resource is deleted
|
|
16
|
+
*/
|
|
17
|
+
enabled: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* The end time of the input video in seconds
|
|
16
20
|
*/
|
|
17
21
|
end_seconds: number;
|
|
22
|
+
/**
|
|
23
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
24
|
+
*/
|
|
25
|
+
error?: types.GetV1VideoProjectsIdResponseError | null;
|
|
18
26
|
/**
|
|
19
27
|
* 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.
|
|
20
28
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
export { DeleteV1ImageProjectsIdResponse400 } from "./delete-v1-image-projects-id-response400";
|
|
5
|
+
export { DeleteV1ImageProjectsIdResponse401 } from "./delete-v1-image-projects-id-response401";
|
|
6
|
+
export { DeleteV1ImageProjectsIdResponse401MessageEnum } from "./delete-v1-image-projects-id-response401-message-enum";
|
|
7
|
+
export { DeleteV1ImageProjectsIdResponse404 } from "./delete-v1-image-projects-id-response404";
|
|
8
|
+
export { DeleteV1ImageProjectsIdResponse404MessageEnum } from "./delete-v1-image-projects-id-response404-message-enum";
|
|
9
|
+
export { DeleteV1VideoProjectsIdResponse400 } from "./delete-v1-video-projects-id-response400";
|
|
10
|
+
export { DeleteV1VideoProjectsIdResponse401 } from "./delete-v1-video-projects-id-response401";
|
|
11
|
+
export { DeleteV1VideoProjectsIdResponse401MessageEnum } from "./delete-v1-video-projects-id-response401-message-enum";
|
|
12
|
+
export { DeleteV1VideoProjectsIdResponse404 } from "./delete-v1-video-projects-id-response404";
|
|
13
|
+
export { DeleteV1VideoProjectsIdResponse404MessageEnum } from "./delete-v1-video-projects-id-response404-message-enum";
|
|
14
|
+
export { DeleteV1VideoProjectsIdResponse422 } from "./delete-v1-video-projects-id-response422";
|
|
4
15
|
export { GetV1ImageProjectsIdResponse } from "./get-v1-image-projects-id-response";
|
|
5
16
|
export { GetV1ImageProjectsIdResponseDownloadsItem } from "./get-v1-image-projects-id-response-downloads-item";
|
|
17
|
+
export { GetV1ImageProjectsIdResponseError } from "./get-v1-image-projects-id-response-error";
|
|
6
18
|
export { GetV1ImageProjectsIdResponseStatusEnum } from "./get-v1-image-projects-id-response-status-enum";
|
|
7
19
|
export { GetV1ImageProjectsIdResponseTypeEnum } from "./get-v1-image-projects-id-response-type-enum";
|
|
8
20
|
export { GetV1ImageProjectsIdResponse400 } from "./get-v1-image-projects-id-response400";
|
|
@@ -12,6 +24,7 @@ export { GetV1ImageProjectsIdResponse404 } from "./get-v1-image-projects-id-resp
|
|
|
12
24
|
export { GetV1ImageProjectsIdResponse404MessageEnum } from "./get-v1-image-projects-id-response404-message-enum";
|
|
13
25
|
export { GetV1VideoProjectsIdResponse } from "./get-v1-video-projects-id-response";
|
|
14
26
|
export { GetV1VideoProjectsIdResponseDownload } from "./get-v1-video-projects-id-response-download";
|
|
27
|
+
export { GetV1VideoProjectsIdResponseError } from "./get-v1-video-projects-id-response-error";
|
|
15
28
|
export { GetV1VideoProjectsIdResponseStatusEnum } from "./get-v1-video-projects-id-response-status-enum";
|
|
16
29
|
export { GetV1VideoProjectsIdResponseTypeEnum } from "./get-v1-video-projects-id-response-type-enum";
|
|
17
30
|
export { GetV1VideoProjectsIdResponse400 } from "./get-v1-video-projects-id-response400";
|
|
@@ -68,6 +81,20 @@ export { PostV1AiQrCodeGeneratorResponse401MessageEnum } from "./post-v1-ai-qr-c
|
|
|
68
81
|
export { PostV1AiQrCodeGeneratorResponse404 } from "./post-v1-ai-qr-code-generator-response404";
|
|
69
82
|
export { PostV1AiQrCodeGeneratorResponse404MessageEnum } from "./post-v1-ai-qr-code-generator-response404-message-enum";
|
|
70
83
|
export { PostV1AiQrCodeGeneratorResponse422 } from "./post-v1-ai-qr-code-generator-response422";
|
|
84
|
+
export { PostV1AnimationBody } from "./post-v1-animation-body";
|
|
85
|
+
export { PostV1AnimationBodyAssets } from "./post-v1-animation-body-assets";
|
|
86
|
+
export { PostV1AnimationBodyAssetsAudioSourceEnum } from "./post-v1-animation-body-assets-audio-source-enum";
|
|
87
|
+
export { PostV1AnimationBodyStyle } from "./post-v1-animation-body-style";
|
|
88
|
+
export { PostV1AnimationBodyStyleArtStyleEnum } from "./post-v1-animation-body-style-art-style-enum";
|
|
89
|
+
export { PostV1AnimationBodyStyleCameraEffectEnum } from "./post-v1-animation-body-style-camera-effect-enum";
|
|
90
|
+
export { PostV1AnimationBodyStylePromptTypeEnum } from "./post-v1-animation-body-style-prompt-type-enum";
|
|
91
|
+
export { PostV1AnimationResponse } from "./post-v1-animation-response";
|
|
92
|
+
export { PostV1AnimationResponse400 } from "./post-v1-animation-response400";
|
|
93
|
+
export { PostV1AnimationResponse401 } from "./post-v1-animation-response401";
|
|
94
|
+
export { PostV1AnimationResponse401MessageEnum } from "./post-v1-animation-response401-message-enum";
|
|
95
|
+
export { PostV1AnimationResponse404 } from "./post-v1-animation-response404";
|
|
96
|
+
export { PostV1AnimationResponse404MessageEnum } from "./post-v1-animation-response404-message-enum";
|
|
97
|
+
export { PostV1AnimationResponse422 } from "./post-v1-animation-response422";
|
|
71
98
|
export { PostV1FaceSwapBody } from "./post-v1-face-swap-body";
|
|
72
99
|
export { PostV1FaceSwapBodyAssets } from "./post-v1-face-swap-body-assets";
|
|
73
100
|
export { PostV1FaceSwapBodyAssetsVideoSourceEnum } from "./post-v1-face-swap-body-assets-video-source-enum";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Provide the assets for animation.
|
|
7
|
+
*/
|
|
8
|
+
export declare type PostV1AnimationBodyAssets = {
|
|
9
|
+
/**
|
|
10
|
+
* The path of the input audio. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `audio_source` is `file`
|
|
11
|
+
*/
|
|
12
|
+
audio_file_path?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optionally add an audio source if you'd like to incorporate audio into your video
|
|
15
|
+
*/
|
|
16
|
+
audio_source: types.PostV1AnimationBodyAssetsAudioSourceEnum;
|
|
17
|
+
/**
|
|
18
|
+
* An initial image to use a the first frame of the video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
|
|
19
|
+
*/
|
|
20
|
+
image_file_path?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Using a youtube video as the input source. This field is required if `audio_source` is `youtube`
|
|
23
|
+
*/
|
|
24
|
+
youtube_url?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
export declare type PostV1AnimationBodyStyleArtStyleEnum = "3D Render" | "90s Streets" | "Abstract Minimalist" | "Arcane" | "Art Deco" | "Bold Colored Illustration" | "Cinematic Landscape" | "Cinematic Miyazaki" | "Cosmic" | "Cubist" | "Custom" | "Cyberpunk" | "Dark Graphic Illustration" | "Dark Watercolor" | "Directed by AI" | "Double Exposure" | "Faded Illustration" | "Fantasy" | "Futuristic Anime" | "Impressionism" | "Ink and Watercolor Portrait" | "Inkpunk" | "Intricate Abstract Lines Portrait" | "Jackson Pollock" | "Landscape Painting" | "Low Poly" | "Miniatures" | "Minimal Cold Futurism" | "Oil Painting" | "Old School Comic" | "Overgrown" | "Painted Cityscape" | "Painterly Illustration" | "Photograph" | "Pixar" | "Pixel Art" | "Postapocalyptic" | "Sin City" | "Soft Delicate Matte Portrait" | "Spooky" | "Studio Ghibli Film Still" | "Synthwave" | "Traditional Watercolor" | "Van Gogh" | "Vibrant Matte Illustration" | "Vintage Japanese Anime" | "Woodcut";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
export declare type PostV1AnimationBodyStyleCameraEffectEnum = "Accelerate" | "Aggressive Zoom In - Audio Sync" | "Aggressive Zoom Out - Audio Sync" | "Boost Zoom In" | "Boost Zoom Out" | "Bounce In And Out" | "Bounce Out" | "Bounce Out - Audio Sync" | "Bounce and Spin - Audio Sync" | "Bounce in Place" | "Cog in the Machine" | "Devolve - Audio Sync" | "Directed by AI" | "Dramatic Zoom In" | "Dramatic Zoom Out" | "Drift Spin" | "Earthquake Bounce" | "Earthquake Bounce - Audio Sync" | "Evolve - Audio Sync" | "Heartbeat" | "Hesitate In" | "Jump" | "Pan Left" | "Pan Right" | "Pulse - Audio Sync" | "Pusher" | "Pusher - Audio Sync" | "Quadrant" | "Rise and Climb" | "Road Trip" | "Rodeo" | "Roll In" | "Roll In - Audio Sync" | "Rolling Bounces" | "Rubber Band" | "Simple Zoom In" | "Simple Zoom Out" | "Slice Bounce" | "Slideshow" | "Speed of Light" | "Spin Bounce" | "Sway Out" | "Sway Out - Audio Sync" | "Tilt Down" | "Tilt Up" | "Traverse" | "Tron" | "Vertigo" | "Vertigo - Audio Sync" | "Zoom In - Audio Sync" | "Zoom In and Spin - Audio Sync" | "Zoom Out - Audio Sync";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Defines the style of the output video
|
|
7
|
+
*/
|
|
8
|
+
export declare type PostV1AnimationBodyStyle = {
|
|
9
|
+
/**
|
|
10
|
+
* The art style of the final output video
|
|
11
|
+
*/
|
|
12
|
+
art_style: types.PostV1AnimationBodyStyleArtStyleEnum;
|
|
13
|
+
/**
|
|
14
|
+
* Describe custom art style. This field is required if `art_style` is `Custom`
|
|
15
|
+
*/
|
|
16
|
+
art_style_custom?: string;
|
|
17
|
+
camera_effect: types.PostV1AnimationBodyStyleCameraEffectEnum;
|
|
18
|
+
/**
|
|
19
|
+
* The prompt used for the video. Prompt is required if `prompt_type` is `custom`. Otherwise this value is ignored
|
|
20
|
+
*/
|
|
21
|
+
prompt?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* * `custom` - use your own prompt for the video.
|
|
25
|
+
* * `use_lyrics` - Use the lyrics of the audio to create the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
|
|
26
|
+
* * `ai_choose` - Let AI write the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
|
|
27
|
+
*/
|
|
28
|
+
prompt_type: types.PostV1AnimationBodyStylePromptTypeEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Change determines how quickly the video's content changes across frames. Higher = more rapid transitions. Lower = more stable visual experience.
|
|
31
|
+
*/
|
|
32
|
+
transition_speed: number;
|
|
33
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1AnimationBody
|
|
7
|
+
*/
|
|
8
|
+
export declare type PostV1AnimationBody = {
|
|
9
|
+
/**
|
|
10
|
+
* Provide the assets for animation.
|
|
11
|
+
*/
|
|
12
|
+
assets: types.PostV1AnimationBodyAssets;
|
|
13
|
+
/**
|
|
14
|
+
* The end time of the input video in seconds
|
|
15
|
+
*/
|
|
16
|
+
end_seconds: number;
|
|
17
|
+
/**
|
|
18
|
+
* The desire output video frame rate
|
|
19
|
+
*/
|
|
20
|
+
fps: number;
|
|
21
|
+
/**
|
|
22
|
+
* The height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
|
|
23
|
+
*/
|
|
24
|
+
height: number;
|
|
25
|
+
/**
|
|
26
|
+
* The name of video
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Defines the style of the output video
|
|
31
|
+
*/
|
|
32
|
+
style: types.PostV1AnimationBodyStyle;
|
|
33
|
+
/**
|
|
34
|
+
* The width of the final output video. The maximum width depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
|
|
35
|
+
*/
|
|
36
|
+
width: number;
|
|
37
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
/**
|
|
5
|
+
* Success
|
|
6
|
+
*/
|
|
7
|
+
export declare type PostV1AnimationResponse = {
|
|
8
|
+
/**
|
|
9
|
+
* Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
|
|
10
|
+
*/
|
|
11
|
+
estimated_frame_cost: number;
|
|
12
|
+
/**
|
|
13
|
+
* Unique ID of the video. This value can be used in the [get video project API](/api/tag/video-projects/get/v1/video-projects/{id}) to fetch additional details such as status
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
};
|