magic-hour 0.95.0 → 0.96.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.99.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.100.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.99.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.100.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -17,10 +17,11 @@ export type CreateRequest = {
17
17
  * Model to use. Defaults to `wan-animate`.
18
18
  *
19
19
  * * **`wan-animate`**: 480p, 720p. Supports `points` subject selection.
20
- * * **`kling-3.0`**: 720p, 1080p. Clips of 3–10 seconds in `replace` mode or 3–30 seconds in `animate` mode. Picks the main person automatically, so `points` are rejected.
21
- * * **`minimax-h3`**: 480p, 720p, 1080p. Clips of 1–30 seconds in `replace` mode or 1–60 seconds in `animate` mode. Subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored.
20
+ * * **`kling-3.0`**: 720p, 1080p. Clips of 3–30 seconds in `animate` mode or 3–10 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.
21
+ * * **`kling-4.0`**: 720p, 1080p. Clips of 3–30 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.
22
+ * * **`minimax-h3`**: 480p, 720p, 1080p. Clips of 1–60 seconds in `animate` mode or 1–30 seconds in `replace` mode. Subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored.
22
23
  */
23
- model?: ("kling-3.0" | "minimax-h3" | "wan-animate") | undefined;
24
+ model?: ("kling-3.0" | "kling-4.0" | "minimax-h3" | "wan-animate") | undefined;
24
25
  /**
25
26
  * Give your video a custom name for easy identification.
26
27
  */
@@ -46,7 +47,7 @@ export type CreateRequest = {
46
47
  export type External$CreateRequest = {
47
48
  assets: External$V1CharacterReplaceCreateBodyAssets;
48
49
  end_seconds: number;
49
- model?: ("kling-3.0" | "minimax-h3" | "wan-animate") | undefined;
50
+ model?: ("kling-3.0" | "kling-4.0" | "minimax-h3" | "wan-animate") | undefined;
50
51
  name?: string | undefined;
51
52
  resolution?: ("1080p" | "480p" | "720p") | undefined;
52
53
  start_seconds?: number | undefined;
@@ -45,7 +45,9 @@ const SchemaIn$CreateRequest = z
45
45
  .object({
46
46
  assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.in,
47
47
  end_seconds: z.number(),
48
- model: z.enum(["kling-3.0", "minimax-h3", "wan-animate"]).optional(),
48
+ model: z
49
+ .enum(["kling-3.0", "kling-4.0", "minimax-h3", "wan-animate"])
50
+ .optional(),
49
51
  name: z.string().optional(),
50
52
  resolution: z.enum(["1080p", "480p", "720p"]).optional(),
51
53
  start_seconds: z.number().optional(),
@@ -70,7 +72,9 @@ const SchemaOut$CreateRequest = z
70
72
  .object({
71
73
  assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.out,
72
74
  endSeconds: z.number(),
73
- model: z.enum(["kling-3.0", "minimax-h3", "wan-animate"]).optional(),
75
+ model: z
76
+ .enum(["kling-3.0", "kling-4.0", "minimax-h3", "wan-animate"])
77
+ .optional(),
74
78
  name: z.string().optional(),
75
79
  resolution: z.enum(["1080p", "480p", "720p"]).optional(),
76
80
  startSeconds: z.number().optional(),
@@ -2,7 +2,8 @@
2
2
  * Model to use. Defaults to `wan-animate`.
3
3
  *
4
4
  * * **`wan-animate`**: 480p, 720p. Supports `points` subject selection.
5
- * * **`kling-3.0`**: 720p, 1080p. Clips of 3–10 seconds in `replace` mode or 3–30 seconds in `animate` mode. Picks the main person automatically, so `points` are rejected.
6
- * * **`minimax-h3`**: 480p, 720p, 1080p. Clips of 1–30 seconds in `replace` mode or 1–60 seconds in `animate` mode. Subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored.
5
+ * * **`kling-3.0`**: 720p, 1080p. Clips of 3–30 seconds in `animate` mode or 3–10 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.
6
+ * * **`kling-4.0`**: 720p, 1080p. Clips of 3–30 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.
7
+ * * **`minimax-h3`**: 480p, 720p, 1080p. Clips of 1–60 seconds in `animate` mode or 1–30 seconds in `replace` mode. Subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored.
7
8
  */
8
- export type V1CharacterReplaceCreateBodyModelEnum = "kling-3.0" | "minimax-h3" | "wan-animate";
9
+ export type V1CharacterReplaceCreateBodyModelEnum = "kling-3.0" | "kling-4.0" | "minimax-h3" | "wan-animate";
@@ -13,7 +13,7 @@ export type V1CharacterReplaceCreateBodyStyle = {
13
13
  */
14
14
  points?: V1CharacterReplaceCreateBodyStylePointsItem[] | undefined;
15
15
  /**
16
- * Optional direction. Supported by kling-3.0, minimax-h3. For MiniMax H3 in replace mode, ignored and not saved when `selection_mode` is `point`; applies only to automatic person selection.
16
+ * Optional direction. Supported by kling-3.0, kling-4.0, minimax-h3. For MiniMax H3 in replace mode, ignored and not saved when `selection_mode` is `point`; applies only to automatic person selection.
17
17
  */
18
18
  prompt?: string | undefined;
19
19
  /**
@@ -17,10 +17,11 @@ export type V1CharacterReplaceCreateBody = {
17
17
  * Model to use. Defaults to `wan-animate`.
18
18
  *
19
19
  * * **`wan-animate`**: 480p, 720p. Supports `points` subject selection.
20
- * * **`kling-3.0`**: 720p, 1080p. Clips of 3–10 seconds in `replace` mode or 3–30 seconds in `animate` mode. Picks the main person automatically, so `points` are rejected.
21
- * * **`minimax-h3`**: 480p, 720p, 1080p. Clips of 1–30 seconds in `replace` mode or 1–60 seconds in `animate` mode. Subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored.
20
+ * * **`kling-3.0`**: 720p, 1080p. Clips of 3–30 seconds in `animate` mode or 3–10 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.
21
+ * * **`kling-4.0`**: 720p, 1080p. Clips of 3–30 seconds in `replace` mode. Picks the main person automatically, so `points` are rejected.
22
+ * * **`minimax-h3`**: 480p, 720p, 1080p. Clips of 1–60 seconds in `animate` mode or 1–30 seconds in `replace` mode. Subject `points` are `replace`-only; `animate` with `selection_mode` `point` returns 422, and with `auto` or no `selection_mode` the points are ignored.
22
23
  */
23
- model?: ("kling-3.0" | "minimax-h3" | "wan-animate") | undefined;
24
+ model?: ("kling-3.0" | "kling-4.0" | "minimax-h3" | "wan-animate") | undefined;
24
25
  /**
25
26
  * Give your video a custom name for easy identification.
26
27
  */
@@ -46,7 +47,7 @@ export type V1CharacterReplaceCreateBody = {
46
47
  export type External$V1CharacterReplaceCreateBody = {
47
48
  assets: External$V1CharacterReplaceCreateBodyAssets;
48
49
  end_seconds: number;
49
- model?: ("kling-3.0" | "minimax-h3" | "wan-animate") | undefined;
50
+ model?: ("kling-3.0" | "kling-4.0" | "minimax-h3" | "wan-animate") | undefined;
50
51
  name?: string | undefined;
51
52
  resolution?: ("1080p" | "480p" | "720p") | undefined;
52
53
  start_seconds?: number | undefined;
@@ -45,7 +45,9 @@ const SchemaIn$V1CharacterReplaceCreateBody = z
45
45
  .object({
46
46
  assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.in,
47
47
  end_seconds: z.number(),
48
- model: z.enum(["kling-3.0", "minimax-h3", "wan-animate"]).optional(),
48
+ model: z
49
+ .enum(["kling-3.0", "kling-4.0", "minimax-h3", "wan-animate"])
50
+ .optional(),
49
51
  name: z.string().optional(),
50
52
  resolution: z.enum(["1080p", "480p", "720p"]).optional(),
51
53
  start_seconds: z.number().optional(),
@@ -70,7 +72,9 @@ const SchemaOut$V1CharacterReplaceCreateBody = z
70
72
  .object({
71
73
  assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.out,
72
74
  endSeconds: z.number(),
73
- model: z.enum(["kling-3.0", "minimax-h3", "wan-animate"]).optional(),
75
+ model: z
76
+ .enum(["kling-3.0", "kling-4.0", "minimax-h3", "wan-animate"])
77
+ .optional(),
74
78
  name: z.string().optional(),
75
79
  resolution: z.enum(["1080p", "480p", "720p"]).optional(),
76
80
  startSeconds: z.number().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.95.0",
3
+ "version": "0.96.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {