magic-hour 0.54.0 → 0.54.1
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/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/face-detection/request-types.d.ts +1 -1
- package/dist/resources/v1/face-detection/resource-client.d.ts +2 -2
- package/dist/resources/v1/face-detection/resource-client.js +2 -2
- package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +1 -1
- package/dist/types/v1-face-detection-create-response.d.ts +1 -1
- package/dist/types/v1-face-detection-get-response.d.ts +1 -1
- package/package.json +1 -1
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -4,5 +4,5 @@ exports.Environment = void 0;
|
|
|
4
4
|
var Environment;
|
|
5
5
|
(function (Environment) {
|
|
6
6
|
Environment["Environment"] = "https://api.magichour.ai";
|
|
7
|
-
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.55.1";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -5,7 +5,7 @@ import { External$V1FaceDetectionCreateBodyAssets, V1FaceDetectionCreateBodyAsse
|
|
|
5
5
|
*/
|
|
6
6
|
export type GetRequest = {
|
|
7
7
|
/**
|
|
8
|
-
* The id of the task. This value is returned by the [face detection API](/api-reference/files/face-detection#response-id).
|
|
8
|
+
* The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id).
|
|
9
9
|
*/
|
|
10
10
|
id: string;
|
|
11
11
|
};
|
|
@@ -37,7 +37,7 @@ export declare class FaceDetectionClient extends CoreResourceClient {
|
|
|
37
37
|
*
|
|
38
38
|
* Get the details of a face detection task.
|
|
39
39
|
*
|
|
40
|
-
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/
|
|
40
|
+
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps.
|
|
41
41
|
*
|
|
42
42
|
* GET /v1/face-detection/{id}
|
|
43
43
|
*/
|
|
@@ -47,7 +47,7 @@ export declare class FaceDetectionClient extends CoreResourceClient {
|
|
|
47
47
|
*
|
|
48
48
|
* Detect faces in an image or video.
|
|
49
49
|
*
|
|
50
|
-
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
|
|
50
|
+
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/face-swap-photo/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
|
|
51
51
|
*
|
|
52
52
|
* Note: Face detection is free to use for the near future. Pricing may change in the future.
|
|
53
53
|
*
|
|
@@ -89,7 +89,7 @@ class FaceDetectionClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
89
89
|
*
|
|
90
90
|
* Get the details of a face detection task.
|
|
91
91
|
*
|
|
92
|
-
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/
|
|
92
|
+
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps.
|
|
93
93
|
*
|
|
94
94
|
* GET /v1/face-detection/{id}
|
|
95
95
|
*/
|
|
@@ -107,7 +107,7 @@ class FaceDetectionClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
107
107
|
*
|
|
108
108
|
* Detect faces in an image or video.
|
|
109
109
|
*
|
|
110
|
-
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
|
|
110
|
+
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/face-swap-photo/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
|
|
111
111
|
*
|
|
112
112
|
* Note: Face detection is free to use for the near future. Pricing may change in the future.
|
|
113
113
|
*
|
|
@@ -4,7 +4,7 @@ import * as z from "zod";
|
|
|
4
4
|
*/
|
|
5
5
|
export type V1AiVoiceGeneratorCreateBodyStyle = {
|
|
6
6
|
/**
|
|
7
|
-
* Text used to generate speech.
|
|
7
|
+
* Text used to generate speech. The character limit is 1000 characters.
|
|
8
8
|
*/
|
|
9
9
|
prompt: string;
|
|
10
10
|
/**
|
|
@@ -8,7 +8,7 @@ export type V1FaceDetectionCreateResponse = {
|
|
|
8
8
|
*/
|
|
9
9
|
creditsCharged: number;
|
|
10
10
|
/**
|
|
11
|
-
* The id of the task. Use this value in the [get face detection details API](/api-reference/files/get-face-detection-details) to get the details of the face detection task.
|
|
11
|
+
* The id of the task. Use this value in the [get face detection details API](https://docs.magichour.ai/api-reference/files/get-face-detection-details) to get the details of the face detection task.
|
|
12
12
|
*/
|
|
13
13
|
id: string;
|
|
14
14
|
};
|
|
@@ -13,7 +13,7 @@ export type V1FaceDetectionGetResponse = {
|
|
|
13
13
|
*/
|
|
14
14
|
faces: V1FaceDetectionGetResponseFacesItem[];
|
|
15
15
|
/**
|
|
16
|
-
* The id of the task. This value is returned by the [face detection API](/api-reference/files/face-detection#response-id).
|
|
16
|
+
* The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id).
|
|
17
17
|
*/
|
|
18
18
|
id: string;
|
|
19
19
|
/**
|