magic-hour 0.54.1 → 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.55.1"
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.55.1";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.56.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -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.1",
3
+ "version": "0.55.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {