magic-hour 0.0.9 → 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 +3 -0
- 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 +3 -0
- 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 +3 -0
- 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 +3 -0
- 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 +4 -1
- 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 +3 -0
- 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 +3 -0
- 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 +8 -1
- 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 +3 -0
- 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 +6 -3
- 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
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The request is not properly authenticated
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1AiHeadshotGeneratorResponse401 = {
|
|
6
9
|
message: types.PostV1AiHeadshotGeneratorResponse401MessageEnum;
|
|
7
10
|
};
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The request is not properly authenticated
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1AiImageGeneratorResponse401 = {
|
|
6
9
|
message: types.PostV1AiImageGeneratorResponse401MessageEnum;
|
|
7
10
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* Provide the assets for upscaling
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1AiImageUpscalerBodyAssets = {
|
|
5
8
|
/**
|
|
6
|
-
* The image to upscale. This is the
|
|
9
|
+
* The image to upscale. 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,10 +2,13 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1AiImageUpscalerBodyStyle
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1AiImageUpscalerBodyStyle = {
|
|
6
9
|
enhancement: types.PostV1AiImageUpscalerBodyStyleEnhancementEnum;
|
|
7
10
|
/**
|
|
8
|
-
* A prompt to guide the final image. This value is ignored if
|
|
11
|
+
* A prompt to guide the final image. This value is ignored if `enhancement` is not Creative
|
|
9
12
|
*/
|
|
10
13
|
prompt?: string;
|
|
11
14
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* PostV1AiQrCodeGeneratorBodyStyle
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1AiQrCodeGeneratorBodyStyle = {
|
|
5
8
|
/**
|
|
6
9
|
* To use our templates, pass in one of Watercolor, Cyberpunk City, Ink Landscape, Interior Painting, Japanese Street, Mech, Minecraft, Picasso Painting, Game Map, Spaceship, Chinese Painting, Winter Village, or pass any custom art style.
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The request is not properly authenticated
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1AiQrCodeGeneratorResponse401 = {
|
|
6
9
|
message: types.PostV1AiQrCodeGeneratorResponse401MessageEnum;
|
|
7
10
|
};
|
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1FaceSwapBodyAssets = {
|
|
6
9
|
/**
|
|
7
|
-
* The path of the input image. This is the
|
|
10
|
+
* The path of the input image. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
|
|
8
11
|
*/
|
|
9
12
|
image_file_path: string;
|
|
10
13
|
/**
|
|
11
|
-
* The path of the input video. This is the
|
|
14
|
+
* The path of the input video. 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 `video_source` is `file`
|
|
12
15
|
*/
|
|
13
16
|
video_file_path?: string;
|
|
14
17
|
video_source: types.PostV1FaceSwapBodyAssetsVideoSourceEnum;
|
|
15
18
|
/**
|
|
16
|
-
* Using a youtube video as the input source. This field is required if
|
|
19
|
+
* Using a youtube video as the input source. This field is required if `video_source` is `youtube`
|
|
17
20
|
*/
|
|
18
21
|
youtube_url?: string;
|
|
19
22
|
};
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1FaceSwapBody
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1FaceSwapBody = {
|
|
6
9
|
/**
|
|
7
|
-
* Provide the assets for face swap. For video, The
|
|
10
|
+
* Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
8
11
|
*/
|
|
9
12
|
assets: types.PostV1FaceSwapBodyAssets;
|
|
10
13
|
/**
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* Provide the assets for face swap photo
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1FaceSwapPhotoBodyAssets = {
|
|
5
8
|
/**
|
|
6
|
-
* This is the image from which the face is extracted. This is the
|
|
9
|
+
* This is the image from which the face is extracted. 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
|
source_file_path: string;
|
|
9
12
|
/**
|
|
10
|
-
* This is the image where the face from the source image will be placed. This is the
|
|
13
|
+
* This is the image where the face from the source image will be placed. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
|
|
11
14
|
*/
|
|
12
15
|
target_file_path: string;
|
|
13
16
|
};
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1FilesUploadUrlsBodyItemsItem
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1FilesUploadUrlsBodyItemsItem = {
|
|
6
9
|
/**
|
|
7
10
|
* the extension of the file to upload. Do not include the dot (.) before the extension.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* Provide the assets for image-to-video.
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1ImageToVideoBodyAssets = {
|
|
5
8
|
/**
|
|
6
|
-
* The path of the image file. This is the
|
|
9
|
+
* The path of the image file. 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
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* Success
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1ImageToVideoResponse = {
|
|
5
8
|
/**
|
|
6
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
|