magic-hour 0.77.1 → 0.79.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.
Files changed (55) hide show
  1. package/README.md +4 -0
  2. package/dist/environment.d.ts +1 -1
  3. package/dist/environment.js +1 -1
  4. package/dist/resources/v1/ai-video-editor/request-types.d.ts +5 -5
  5. package/dist/resources/v1/ai-video-editor/request-types.js +6 -2
  6. package/dist/resources/v1/image-to-video/request-types.d.ts +15 -15
  7. package/dist/resources/v1/image-to-video/request-types.js +2 -0
  8. package/dist/resources/v1/index.d.ts +1 -0
  9. package/dist/resources/v1/index.js +2 -1
  10. package/dist/resources/v1/resource-client.d.ts +3 -0
  11. package/dist/resources/v1/resource-client.js +5 -0
  12. package/dist/resources/v1/saved-items/index.d.ts +2 -0
  13. package/dist/resources/v1/saved-items/index.js +5 -0
  14. package/dist/resources/v1/saved-items/request-types.d.ts +32 -0
  15. package/dist/resources/v1/saved-items/request-types.js +79 -0
  16. package/dist/resources/v1/saved-items/resource-client.d.ts +14 -0
  17. package/dist/resources/v1/saved-items/resource-client.js +84 -0
  18. package/dist/resources/v1/text-to-video/request-types.d.ts +19 -16
  19. package/dist/resources/v1/text-to-video/request-types.js +11 -0
  20. package/dist/types/index.d.ts +7 -0
  21. package/dist/types/v1-ai-video-editor-create-body-model-enum.d.ts +2 -2
  22. package/dist/types/v1-ai-video-editor-create-body-resolution-enum.d.ts +1 -1
  23. package/dist/types/v1-ai-video-editor-create-body.d.ts +5 -5
  24. package/dist/types/v1-ai-video-editor-create-body.js +6 -2
  25. package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
  26. package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +3 -3
  27. package/dist/types/v1-ai-voice-generator-create-body-style.js +0 -2
  28. package/dist/types/v1-audio-projects-get-response.d.ts +1 -1
  29. package/dist/types/v1-image-to-video-create-body-assets.d.ts +2 -2
  30. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +2 -2
  31. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +2 -2
  32. package/dist/types/v1-image-to-video-create-body.d.ts +15 -15
  33. package/dist/types/v1-image-to-video-create-body.js +2 -0
  34. package/dist/types/v1-lip-sync-create-body-style-generation-mode-enum.d.ts +1 -1
  35. package/dist/types/v1-lip-sync-create-body-style.d.ts +1 -1
  36. package/dist/types/v1-saved-items-list-response-items-item-assets-item-media-kind-enum.d.ts +4 -0
  37. package/dist/types/v1-saved-items-list-response-items-item-assets-item-media-kind-enum.js +2 -0
  38. package/dist/types/v1-saved-items-list-response-items-item-assets-item.d.ts +42 -0
  39. package/dist/types/v1-saved-items-list-response-items-item-assets-item.js +83 -0
  40. package/dist/types/v1-saved-items-list-response-items-item-type-enum.d.ts +4 -0
  41. package/dist/types/v1-saved-items-list-response-items-item-type-enum.js +2 -0
  42. package/dist/types/v1-saved-items-list-response-items-item.d.ts +35 -0
  43. package/dist/types/v1-saved-items-list-response-items-item.js +80 -0
  44. package/dist/types/v1-saved-items-list-response.d.ts +25 -0
  45. package/dist/types/v1-saved-items-list-response.js +72 -0
  46. package/dist/types/v1-saved-items-list-type-enum.d.ts +4 -0
  47. package/dist/types/v1-saved-items-list-type-enum.js +2 -0
  48. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +1 -1
  49. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +2 -2
  50. package/dist/types/v1-text-to-video-create-body-references-item.d.ts +21 -0
  51. package/dist/types/v1-text-to-video-create-body-references-item.js +71 -0
  52. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +2 -2
  53. package/dist/types/v1-text-to-video-create-body.d.ts +19 -16
  54. package/dist/types/v1-text-to-video-create-body.js +11 -0
  55. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import * as z from "zod";
2
+ import { External$V1TextToVideoCreateBodyReferencesItem, V1TextToVideoCreateBodyReferencesItem } from "./v1-text-to-video-create-body-references-item";
2
3
  import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } from "./v1-text-to-video-create-body-style";
3
4
  /**
4
5
  * V1TextToVideoCreateBody
@@ -10,7 +11,6 @@ export type V1TextToVideoCreateBody = {
10
11
  * * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
11
12
  * * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
12
13
  * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
13
- * * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
14
14
  * * **`ltx-2.5`**: Supports 9:16, 16:9, 1:1.
15
15
  * * **`minimax-h3`**: Supports 16:9, 9:16, 1:1.
16
16
  * * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.
@@ -21,6 +21,7 @@ export type V1TextToVideoCreateBody = {
21
21
  * * **`veo3.1`**: Supports 9:16, 16:9.
22
22
  * * **`veo3.1-lite`**: Supports 9:16, 16:9.
23
23
  * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
24
+ * * **`wan-3.0`**: Supports 16:9, 9:16, 1:1.
24
25
  *
25
26
  */
26
27
  aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
@@ -31,7 +32,6 @@ export type V1TextToVideoCreateBody = {
31
32
  * * **`gemini-omni-1.1`**: Not supported
32
33
  * * **`kling-2.6`**: Not supported
33
34
  * * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
34
- * * **`ltx-2.3`**: Toggle-able: no additional credits for audio
35
35
  * * **`ltx-2.5`**: Toggle-able: no additional credits for audio
36
36
  * * **`minimax-h3`**: Toggle-able: no additional credits for audio
37
37
  * * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
@@ -42,26 +42,27 @@ export type V1TextToVideoCreateBody = {
42
42
  * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
43
43
  * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
44
44
  * * **`wan-2.2`**: Not supported
45
+ * * **`wan-3.0`**: Toggle-able: no additional credits for audio
45
46
  *
46
47
  */
47
48
  audio?: boolean | undefined;
48
49
  /**
49
50
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
50
51
  *
51
- * * **`gemini-omni-1.1`**: 3, 4, 5, 6, 7, 8, 9, 10
52
+ * * **`gemini-omni-1.1`**: any integer from 3 to 10
52
53
  * * **`kling-2.6`**: 5, 10
53
- * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
54
- * * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
55
- * * **`ltx-2.5`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
56
- * * **`minimax-h3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
57
- * * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
58
- * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
59
- * * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
60
- * * **`seedance-2.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
54
+ * * **`kling-3.0`**: any integer from 3 to 15
55
+ * * **`ltx-2.5`**: any integer from 1 to 60
56
+ * * **`minimax-h3`**: any integer from 1 to 30
57
+ * * **`seedance-1.5`**: any integer from 4 to 12
58
+ * * **`seedance-2.0`**: any integer from 4 to 15
59
+ * * **`seedance-2.0-mini`**: any integer from 4 to 15
60
+ * * **`seedance-2.5`**: any integer from 4 to 30
61
61
  * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
62
62
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
63
63
  * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
64
64
  * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
65
+ * * **`wan-3.0`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
65
66
  *
66
67
  */
67
68
  endSeconds: number;
@@ -72,7 +73,6 @@ export type V1TextToVideoCreateBody = {
72
73
  * * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
73
74
  * * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
74
75
  * * `kling-3.0`: Best for cinematic stories, references, and optional audio.
75
- * * `ltx-2.3`: Fastest for general scenes, long clips, audio, and rapid iteration.
76
76
  * * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.
77
77
  * * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
78
78
  * * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
@@ -83,10 +83,11 @@ export type V1TextToVideoCreateBody = {
83
83
  * * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
84
84
  * * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
85
85
  * * `wan-2.2`: Best for physical motion, action, and camera movement.
86
+ * * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control.
86
87
  *
87
88
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
88
89
  */
89
- model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
90
+ model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
90
91
  /**
91
92
  * Give your video a custom name for easy identification.
92
93
  */
@@ -95,23 +96,24 @@ export type V1TextToVideoCreateBody = {
95
96
  * Deprecated. Use `aspect_ratio` instead.
96
97
  */
97
98
  orientation?: ("landscape" | "portrait" | "square") | undefined;
99
+ references?: V1TextToVideoCreateBodyReferencesItem[] | undefined;
98
100
  /**
99
101
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
100
102
  *
101
103
  * * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
102
104
  * * **`kling-2.6`**: Supports 720p, 1080p.
103
105
  * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
104
- * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
105
106
  * * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
106
107
  * * **`minimax-h3`**: Supports 480p, 720p, 1080p.
107
108
  * * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
108
109
  * * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
109
110
  * * **`seedance-2.0-mini`**: Supports 480p, 720p.
110
- * * **`seedance-2.5`**: Supports 480p, 720p.
111
+ * * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
111
112
  * * **`sora-2`**: Supports 720p.
112
113
  * * **`veo3.1`**: Supports 720p, 1080p.
113
114
  * * **`veo3.1-lite`**: Supports 720p, 1080p.
114
115
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
116
+ * * **`wan-3.0`**: Supports 480p, 720p, 1080p.
115
117
  *
116
118
  */
117
119
  resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
@@ -126,9 +128,10 @@ export type External$V1TextToVideoCreateBody = {
126
128
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
127
129
  audio?: boolean | undefined;
128
130
  end_seconds: number;
129
- model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
131
+ model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
130
132
  name?: string | undefined;
131
133
  orientation?: ("landscape" | "portrait" | "square") | undefined;
134
+ references?: External$V1TextToVideoCreateBodyReferencesItem[] | undefined;
132
135
  resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
133
136
  style: External$V1TextToVideoCreateBodyStyle;
134
137
  };
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.Schemas$V1TextToVideoCreateBody = void 0;
37
37
  const make_api_request_js_1 = require("make-api-request-js");
38
38
  const z = __importStar(require("zod"));
39
+ const v1_text_to_video_create_body_references_item_1 = require("./v1-text-to-video-create-body-references-item");
39
40
  const v1_text_to_video_create_body_style_1 = require("./v1-text-to-video-create-body-style");
40
41
  /**
41
42
  * Takes network data, validates it, and transforms keys to match typescript object V1TextToVideoCreateBody
@@ -68,10 +69,14 @@ const SchemaIn$V1TextToVideoCreateBody = z
68
69
  "veo3.1-audio",
69
70
  "veo3.1-lite",
70
71
  "wan-2.2",
72
+ "wan-3.0",
71
73
  ])
72
74
  .optional(),
73
75
  name: z.string().optional(),
74
76
  orientation: z.enum(["landscape", "portrait", "square"]).optional(),
77
+ references: z
78
+ .array(v1_text_to_video_create_body_references_item_1.Schemas$V1TextToVideoCreateBodyReferencesItem.in)
79
+ .optional(),
75
80
  resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
76
81
  style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.in,
77
82
  })
@@ -83,6 +88,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
83
88
  model: "model",
84
89
  name: "name",
85
90
  orientation: "orientation",
91
+ references: "references",
86
92
  resolution: "resolution",
87
93
  style: "style",
88
94
  });
@@ -119,10 +125,14 @@ const SchemaOut$V1TextToVideoCreateBody = z
119
125
  "veo3.1-audio",
120
126
  "veo3.1-lite",
121
127
  "wan-2.2",
128
+ "wan-3.0",
122
129
  ])
123
130
  .optional(),
124
131
  name: z.string().optional(),
125
132
  orientation: z.enum(["landscape", "portrait", "square"]).optional(),
133
+ references: z
134
+ .array(v1_text_to_video_create_body_references_item_1.Schemas$V1TextToVideoCreateBodyReferencesItem.out)
135
+ .optional(),
126
136
  resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
127
137
  style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.out,
128
138
  })
@@ -134,6 +144,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
134
144
  model: "model",
135
145
  name: "name",
136
146
  orientation: "orientation",
147
+ references: "references",
137
148
  resolution: "resolution",
138
149
  style: "style",
139
150
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.77.1",
3
+ "version": "0.79.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {