magic-hour 0.54.0 → 0.55.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.
@@ -1,4 +1,4 @@
1
1
  export declare enum Environment {
2
2
  Environment = "https://api.magichour.ai",
3
- MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.54.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.56.0"
4
4
  }
@@ -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.54.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.56.0";
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/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
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/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
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. Starter tier users can use up to 1000 characters, while Creator, Pro, or Business users can use up to 1000.
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
  /**
@@ -3,6 +3,20 @@ import * as z from "zod";
3
3
  * Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
4
4
  */
5
5
  export type V1ImageToVideoCreateBodyAssets = {
6
+ /**
7
+ * The image to use as the last frame of the video.
8
+ *
9
+ * * **`ltx-2`**: Not supported
10
+ * * **`seedance`**: Supports 480p, 720p, 1080p.
11
+ * * **`kling-2.5`**: Supports 1080p.
12
+ * * **`kling-3.0`**: Supports 1080p.
13
+ * * **`sora-2`**: Not supported
14
+ * * **`veo3.1`**: Not supported
15
+ *
16
+ * Legacy models:
17
+ * * **`kling-1.6`**: Not supported
18
+ */
19
+ endImageFilePath?: string | undefined;
6
20
  /**
7
21
  * The path of the image file. This value is either
8
22
  * - a direct URL to the video file
@@ -19,6 +33,7 @@ export type V1ImageToVideoCreateBodyAssets = {
19
33
  * we expect to come in as network data
20
34
  */
21
35
  export type External$V1ImageToVideoCreateBodyAssets = {
36
+ end_image_file_path?: string | undefined;
22
37
  image_file_path: string;
23
38
  };
24
39
  export declare const Schemas$V1ImageToVideoCreateBodyAssets: {
@@ -41,10 +41,12 @@ const z = __importStar(require("zod"));
41
41
  */
42
42
  const SchemaIn$V1ImageToVideoCreateBodyAssets = z
43
43
  .object({
44
+ end_image_file_path: z.string().optional(),
44
45
  image_file_path: z.string(),
45
46
  })
46
47
  .transform((obj) => {
47
48
  return (0, make_api_request_js_1.zodTransform)(obj, {
49
+ end_image_file_path: "endImageFilePath",
48
50
  image_file_path: "imageFilePath",
49
51
  });
50
52
  });
@@ -54,10 +56,12 @@ const SchemaIn$V1ImageToVideoCreateBodyAssets = z
54
56
  */
55
57
  const SchemaOut$V1ImageToVideoCreateBodyAssets = z
56
58
  .object({
59
+ endImageFilePath: z.string().optional(),
57
60
  imageFilePath: z.string(),
58
61
  })
59
62
  .transform((obj) => {
60
63
  return (0, make_api_request_js_1.zodTransform)(obj, {
64
+ endImageFilePath: "end_image_file_path",
61
65
  imageFilePath: "image_file_path",
62
66
  });
63
67
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.54.0",
3
+ "version": "0.55.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {