magic-hour 0.79.0 → 0.81.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 (51) hide show
  1. package/README.md +5 -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 +1 -1
  5. package/dist/resources/v1/ai-video-translator/index.d.ts +2 -0
  6. package/dist/resources/v1/ai-video-translator/index.js +5 -0
  7. package/dist/resources/v1/ai-video-translator/request-types.d.ts +48 -0
  8. package/dist/resources/v1/ai-video-translator/request-types.js +196 -0
  9. package/dist/resources/v1/ai-video-translator/resource-client.d.ts +43 -0
  10. package/dist/resources/v1/ai-video-translator/resource-client.js +84 -0
  11. package/dist/resources/v1/character-replace/request-types.d.ts +11 -3
  12. package/dist/resources/v1/character-replace/request-types.js +6 -2
  13. package/dist/resources/v1/image-to-video/request-types.d.ts +1 -5
  14. package/dist/resources/v1/index.d.ts +1 -0
  15. package/dist/resources/v1/index.js +2 -1
  16. package/dist/resources/v1/resource-client.d.ts +3 -0
  17. package/dist/resources/v1/resource-client.js +6 -0
  18. package/dist/resources/v1/text-to-video/request-types.d.ts +0 -5
  19. package/dist/types/index.d.ts +6 -0
  20. package/dist/types/v1-ai-video-editor-create-body.d.ts +1 -1
  21. package/dist/types/v1-ai-video-translator-create-body-assets.d.ts +27 -0
  22. package/dist/types/v1-ai-video-translator-create-body-assets.js +67 -0
  23. package/dist/types/v1-ai-video-translator-create-body-resolution-enum.d.ts +4 -0
  24. package/dist/types/v1-ai-video-translator-create-body-resolution-enum.js +2 -0
  25. package/dist/types/v1-ai-video-translator-create-body-target-language-enum.d.ts +4 -0
  26. package/dist/types/v1-ai-video-translator-create-body-target-language-enum.js +2 -0
  27. package/dist/types/v1-ai-video-translator-create-body.d.ts +48 -0
  28. package/dist/types/v1-ai-video-translator-create-body.js +196 -0
  29. package/dist/types/v1-ai-video-translator-create-response.d.ts +36 -0
  30. package/dist/types/v1-ai-video-translator-create-response.js +75 -0
  31. package/dist/types/v1-character-replace-create-body-model-enum.d.ts +7 -0
  32. package/dist/types/v1-character-replace-create-body-model-enum.js +2 -0
  33. package/dist/types/v1-character-replace-create-body-resolution-enum.d.ts +2 -2
  34. package/dist/types/v1-character-replace-create-body-style-selection-mode-enum.d.ts +1 -1
  35. package/dist/types/v1-character-replace-create-body-style.d.ts +2 -2
  36. package/dist/types/v1-character-replace-create-body.d.ts +11 -3
  37. package/dist/types/v1-character-replace-create-body.js +6 -2
  38. package/dist/types/v1-face-swap-create-body-assets-face-swap-mode-enum.d.ts +2 -2
  39. package/dist/types/v1-face-swap-create-body-assets.d.ts +2 -2
  40. package/dist/types/v1-face-swap-photo-create-body-assets-face-swap-mode-enum.d.ts +2 -2
  41. package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +2 -2
  42. package/dist/types/v1-image-to-video-create-body-assets.d.ts +1 -2
  43. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +0 -1
  44. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +0 -1
  45. package/dist/types/v1-image-to-video-create-body.d.ts +1 -5
  46. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +0 -1
  47. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +0 -1
  48. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +0 -1
  49. package/dist/types/v1-text-to-video-create-body.d.ts +0 -5
  50. package/dist/types/v1-video-projects-get-response.d.ts +1 -1
  51. package/package.json +1 -1
@@ -10,8 +10,8 @@ export type V1FaceSwapPhotoCreateBodyAssets = {
10
10
  faceMappings?: V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem[] | undefined;
11
11
  /**
12
12
  * Choose how to swap faces:
13
- * **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
14
- * +- **individual-faces** — specify exact mappings using `face_mappings`
13
+ * - **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
14
+ * - **individual-faces** — specify exact mappings using `face_mappings`
15
15
  */
16
16
  faceSwapMode?: ("all-faces" | "individual-faces") | undefined;
17
17
  /**
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod";
2
2
  /**
3
- * Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
3
+ * Provide the assets for image-to-video.
4
4
  */
5
5
  export type V1ImageToVideoCreateBodyAssets = {
6
6
  /**
@@ -15,7 +15,6 @@ export type V1ImageToVideoCreateBodyAssets = {
15
15
  * * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
16
16
  * * **`seedance-2.0-mini`**: Supports 480p, 720p.
17
17
  * * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
18
- * * **`sora-2`**: Not supported
19
18
  * * **`veo3.1`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.
20
19
  * * **`veo3.1-lite`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.
21
20
  * * **`wan-2.2`**: Not supported
@@ -11,7 +11,6 @@
11
11
  * * `seedance-2.0`: Best for reference-led clips with precise subject control.
12
12
  * * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
13
13
  * * `seedance-2.5`: Best for premium realism, detail, and natural motion.
14
- * * `sora-2`: Best for creative concepts and longer clips with audio.
15
14
  * * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
16
15
  * * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
17
16
  * * `wan-2.2`: Best for physical motion, action, and camera movement.
@@ -10,7 +10,6 @@
10
10
  * * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
11
11
  * * **`seedance-2.0-mini`**: Supports 480p, 720p.
12
12
  * * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
13
- * * **`sora-2`**: Supports 720p.
14
13
  * * **`veo3.1`**: Supports 720p, 1080p.
15
14
  * * **`veo3.1-lite`**: Supports 720p, 1080p.
16
15
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
@@ -6,7 +6,7 @@ import { External$V1ImageToVideoCreateBodyStyle, V1ImageToVideoCreateBodyStyle }
6
6
  */
7
7
  export type V1ImageToVideoCreateBody = {
8
8
  /**
9
- * Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
9
+ * Provide the assets for image-to-video.
10
10
  */
11
11
  assets: V1ImageToVideoCreateBodyAssets;
12
12
  /**
@@ -22,7 +22,6 @@ export type V1ImageToVideoCreateBody = {
22
22
  * * **`seedance-2.0`**: Toggle-able: no additional credits for audio
23
23
  * * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
24
24
  * * **`seedance-2.5`**: Toggle-able: no additional credits for audio
25
- * * **`sora-2`**: Toggle-able: no additional credits for audio
26
25
  * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
27
26
  * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
28
27
  * * **`wan-2.2`**: Not supported
@@ -42,7 +41,6 @@ export type V1ImageToVideoCreateBody = {
42
41
  * * **`seedance-2.0`**: any integer from 4 to 15
43
42
  * * **`seedance-2.0-mini`**: any integer from 4 to 15
44
43
  * * **`seedance-2.5`**: any integer from 4 to 30
45
- * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
46
44
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
47
45
  * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
48
46
  * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
@@ -69,7 +67,6 @@ export type V1ImageToVideoCreateBody = {
69
67
  * * `seedance-2.0`: Best for reference-led clips with precise subject control.
70
68
  * * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
71
69
  * * `seedance-2.5`: Best for premium realism, detail, and natural motion.
72
- * * `sora-2`: Best for creative concepts and longer clips with audio.
73
70
  * * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
74
71
  * * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
75
72
  * * `wan-2.2`: Best for physical motion, action, and camera movement.
@@ -94,7 +91,6 @@ export type V1ImageToVideoCreateBody = {
94
91
  * * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
95
92
  * * **`seedance-2.0-mini`**: Supports 480p, 720p.
96
93
  * * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
97
- * * **`sora-2`**: Supports 720p.
98
94
  * * **`veo3.1`**: Supports 720p, 1080p.
99
95
  * * **`veo3.1-lite`**: Supports 720p, 1080p.
100
96
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
@@ -10,7 +10,6 @@
10
10
  * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
11
11
  * * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
12
12
  * * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
13
- * * **`sora-2`**: Supports 9:16, 16:9.
14
13
  * * **`veo3.1`**: Supports 9:16, 16:9.
15
14
  * * **`veo3.1-lite`**: Supports 9:16, 16:9.
16
15
  * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
@@ -11,7 +11,6 @@
11
11
  * * `seedance-2.0`: Best for reference-led clips with precise subject control.
12
12
  * * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
13
13
  * * `seedance-2.5`: Best for premium realism, detail, and natural motion.
14
- * * `sora-2`: Best for creative concepts and longer clips with audio.
15
14
  * * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
16
15
  * * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
17
16
  * * `wan-2.2`: Best for physical motion, action, and camera movement.
@@ -10,7 +10,6 @@
10
10
  * * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
11
11
  * * **`seedance-2.0-mini`**: Supports 480p, 720p.
12
12
  * * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
13
- * * **`sora-2`**: Supports 720p.
14
13
  * * **`veo3.1`**: Supports 720p, 1080p.
15
14
  * * **`veo3.1-lite`**: Supports 720p, 1080p.
16
15
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
@@ -17,7 +17,6 @@ export type V1TextToVideoCreateBody = {
17
17
  * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
18
18
  * * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
19
19
  * * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
20
- * * **`sora-2`**: Supports 9:16, 16:9.
21
20
  * * **`veo3.1`**: Supports 9:16, 16:9.
22
21
  * * **`veo3.1-lite`**: Supports 9:16, 16:9.
23
22
  * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
@@ -38,7 +37,6 @@ export type V1TextToVideoCreateBody = {
38
37
  * * **`seedance-2.0`**: Toggle-able: no additional credits for audio
39
38
  * * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
40
39
  * * **`seedance-2.5`**: Toggle-able: no additional credits for audio
41
- * * **`sora-2`**: Toggle-able: no additional credits for audio
42
40
  * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
43
41
  * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
44
42
  * * **`wan-2.2`**: Not supported
@@ -58,7 +56,6 @@ export type V1TextToVideoCreateBody = {
58
56
  * * **`seedance-2.0`**: any integer from 4 to 15
59
57
  * * **`seedance-2.0-mini`**: any integer from 4 to 15
60
58
  * * **`seedance-2.5`**: any integer from 4 to 30
61
- * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
62
59
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
63
60
  * * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
64
61
  * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
@@ -79,7 +76,6 @@ export type V1TextToVideoCreateBody = {
79
76
  * * `seedance-2.0`: Best for reference-led clips with precise subject control.
80
77
  * * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
81
78
  * * `seedance-2.5`: Best for premium realism, detail, and natural motion.
82
- * * `sora-2`: Best for creative concepts and longer clips with audio.
83
79
  * * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
84
80
  * * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
85
81
  * * `wan-2.2`: Best for physical motion, action, and camera movement.
@@ -109,7 +105,6 @@ export type V1TextToVideoCreateBody = {
109
105
  * * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
110
106
  * * **`seedance-2.0-mini`**: Supports 480p, 720p.
111
107
  * * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
112
- * * **`sora-2`**: Supports 720p.
113
108
  * * **`veo3.1`**: Supports 720p, 1080p.
114
109
  * * **`veo3.1-lite`**: Supports 720p, 1080p.
115
110
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
@@ -70,7 +70,7 @@ export type V1VideoProjectsGetResponse = {
70
70
  */
71
71
  totalFrameCost: number;
72
72
  /**
73
- * The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, VIDEO_COLOR_GRADER, VIDEO_TRANSLATOR, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD
73
+ * The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, VIDEO_WATERMARK_REMOVER, VIDEO_COLOR_GRADER, VIDEO_TRANSLATOR, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD
74
74
  */
75
75
  type: string;
76
76
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.79.0",
3
+ "version": "0.81.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {