magic-hour 0.33.1 → 0.35.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 (102) hide show
  1. package/dist/environment.d.ts +1 -1
  2. package/dist/environment.js +1 -1
  3. package/dist/resources/v1/ai-clothes-changer/request-types.d.ts +1 -1
  4. package/dist/resources/v1/ai-face-editor/request-types.d.ts +1 -1
  5. package/dist/resources/v1/ai-gif-generator/request-types.d.ts +1 -1
  6. package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +1 -1
  7. package/dist/resources/v1/ai-image-editor/request-types.d.ts +1 -1
  8. package/dist/resources/v1/ai-image-generator/request-types.d.ts +8 -2
  9. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +4 -2
  10. package/dist/resources/v1/ai-photo-editor/request-types.d.ts +1 -1
  11. package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +1 -1
  12. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +1 -1
  13. package/dist/resources/v1/animation/request-types.d.ts +2 -2
  14. package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +3 -3
  15. package/dist/resources/v1/face-detection/request-types.d.ts +1 -1
  16. package/dist/resources/v1/face-detection/resource-client.d.ts +4 -0
  17. package/dist/resources/v1/face-detection/resource-client.js +4 -0
  18. package/dist/resources/v1/face-swap/request-types.d.ts +17 -19
  19. package/dist/resources/v1/face-swap/request-types.js +4 -4
  20. package/dist/resources/v1/face-swap-photo/request-types.d.ts +1 -1
  21. package/dist/resources/v1/files/upload-urls/request-types.d.ts +3 -0
  22. package/dist/resources/v1/files/upload-urls/resource-client.d.ts +6 -5
  23. package/dist/resources/v1/files/upload-urls/resource-client.js +6 -5
  24. package/dist/resources/v1/image-background-remover/request-types.d.ts +1 -1
  25. package/dist/resources/v1/image-projects/request-types.d.ts +2 -2
  26. package/dist/resources/v1/image-projects/resource-client.d.ts +1 -1
  27. package/dist/resources/v1/image-projects/resource-client.js +1 -2
  28. package/dist/resources/v1/image-to-video/request-types.d.ts +20 -10
  29. package/dist/resources/v1/image-to-video/request-types.js +4 -4
  30. package/dist/resources/v1/lip-sync/request-types.d.ts +17 -19
  31. package/dist/resources/v1/lip-sync/request-types.js +4 -4
  32. package/dist/resources/v1/photo-colorizer/request-types.d.ts +1 -1
  33. package/dist/resources/v1/text-to-video/request-types.d.ts +8 -2
  34. package/dist/resources/v1/video-projects/request-types.d.ts +2 -2
  35. package/dist/resources/v1/video-projects/resource-client.js +0 -1
  36. package/dist/resources/v1/video-to-video/request-types.d.ts +17 -19
  37. package/dist/resources/v1/video-to-video/request-types.js +4 -4
  38. package/dist/types/index.d.ts +0 -165
  39. package/dist/types/v1-ai-clothes-changer-create-body-assets-garment-type-enum.d.ts +1 -1
  40. package/dist/types/v1-ai-clothes-changer-create-body-assets.d.ts +15 -2
  41. package/dist/types/v1-ai-clothes-changer-create-body.d.ts +1 -1
  42. package/dist/types/v1-ai-face-editor-create-body-assets.d.ts +6 -1
  43. package/dist/types/v1-ai-face-editor-create-body-style.d.ts +30 -30
  44. package/dist/types/v1-ai-face-editor-create-body-style.js +30 -30
  45. package/dist/types/v1-ai-face-editor-create-body.d.ts +1 -1
  46. package/dist/types/v1-ai-gif-generator-create-body.d.ts +1 -1
  47. package/dist/types/v1-ai-headshot-generator-create-body-assets.d.ts +6 -1
  48. package/dist/types/v1-ai-headshot-generator-create-body-style.d.ts +1 -1
  49. package/dist/types/v1-ai-headshot-generator-create-body.d.ts +1 -1
  50. package/dist/types/v1-ai-image-editor-create-body-assets.d.ts +6 -1
  51. package/dist/types/v1-ai-image-editor-create-body.d.ts +1 -1
  52. package/dist/types/v1-ai-image-generator-create-body-orientation-enum.d.ts +1 -1
  53. package/dist/types/v1-ai-image-generator-create-body-style.d.ts +2 -2
  54. package/dist/types/v1-ai-image-generator-create-body.d.ts +8 -2
  55. package/dist/types/v1-ai-image-upscaler-create-body-assets.d.ts +6 -1
  56. package/dist/types/v1-ai-image-upscaler-create-body.d.ts +4 -2
  57. package/dist/types/v1-ai-photo-editor-create-body-assets.d.ts +6 -1
  58. package/dist/types/v1-ai-photo-editor-create-body.d.ts +1 -1
  59. package/dist/types/v1-ai-qr-code-generator-create-body.d.ts +1 -1
  60. package/dist/types/v1-ai-talking-photo-create-body-assets.d.ts +12 -2
  61. package/dist/types/v1-ai-talking-photo-create-body.d.ts +1 -1
  62. package/dist/types/v1-animation-create-body-assets.d.ts +12 -2
  63. package/dist/types/v1-animation-create-body-style-art-style-enum.d.ts +1 -1
  64. package/dist/types/v1-animation-create-body-style-camera-effect-enum.d.ts +1 -1
  65. package/dist/types/v1-animation-create-body-style-prompt-type-enum.d.ts +1 -1
  66. package/dist/types/v1-animation-create-body-style.d.ts +10 -5
  67. package/dist/types/v1-animation-create-body-style.js +2 -2
  68. package/dist/types/v1-animation-create-body.d.ts +2 -2
  69. package/dist/types/v1-auto-subtitle-generator-create-body-assets.d.ts +6 -1
  70. package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +3 -3
  71. package/dist/types/v1-face-detection-create-body-assets.d.ts +6 -1
  72. package/dist/types/v1-face-detection-create-response.d.ts +1 -1
  73. package/dist/types/v1-face-detection-get-response.d.ts +1 -1
  74. package/dist/types/v1-face-swap-create-body-assets-face-mappings-item.d.ts +6 -1
  75. package/dist/types/v1-face-swap-create-body-assets.d.ts +12 -2
  76. package/dist/types/v1-face-swap-create-body.d.ts +17 -19
  77. package/dist/types/v1-face-swap-create-body.js +4 -4
  78. package/dist/types/v1-face-swap-photo-create-body-assets-face-mappings-item.d.ts +6 -1
  79. package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +12 -2
  80. package/dist/types/v1-face-swap-photo-create-body.d.ts +1 -1
  81. package/dist/types/v1-files-upload-urls-create-body-items-item-type-enum.d.ts +1 -1
  82. package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +2 -2
  83. package/dist/types/v1-files-upload-urls-create-body.d.ts +3 -0
  84. package/dist/types/v1-files-upload-urls-create-response.d.ts +3 -0
  85. package/dist/types/v1-image-background-remover-create-body-assets.d.ts +12 -2
  86. package/dist/types/v1-image-background-remover-create-body.d.ts +1 -1
  87. package/dist/types/v1-image-to-video-create-body-assets.d.ts +6 -1
  88. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +3 -1
  89. package/dist/types/v1-image-to-video-create-body.d.ts +20 -10
  90. package/dist/types/v1-image-to-video-create-body.js +4 -4
  91. package/dist/types/v1-lip-sync-create-body-assets.d.ts +12 -2
  92. package/dist/types/v1-lip-sync-create-body.d.ts +17 -19
  93. package/dist/types/v1-lip-sync-create-body.js +4 -4
  94. package/dist/types/v1-photo-colorizer-create-body-assets.d.ts +6 -1
  95. package/dist/types/v1-photo-colorizer-create-body.d.ts +1 -1
  96. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +3 -1
  97. package/dist/types/v1-text-to-video-create-body.d.ts +8 -2
  98. package/dist/types/v1-video-projects-get-response.d.ts +2 -2
  99. package/dist/types/v1-video-to-video-create-body-assets.d.ts +6 -1
  100. package/dist/types/v1-video-to-video-create-body.d.ts +17 -19
  101. package/dist/types/v1-video-to-video-create-body.js +4 -4
  102. package/package.json +1 -1
@@ -6,63 +6,63 @@ export type V1AiFaceEditorCreateBodyStyle = {
6
6
  /**
7
7
  * Enhance face features
8
8
  */
9
- enhanceFace: boolean;
9
+ enhanceFace?: boolean | undefined;
10
10
  /**
11
11
  * Horizontal eye gaze (-100 to 100), in increments of 5
12
12
  */
13
- eyeGazeHorizontal: number;
13
+ eyeGazeHorizontal?: number | undefined;
14
14
  /**
15
15
  * Vertical eye gaze (-100 to 100), in increments of 5
16
16
  */
17
- eyeGazeVertical: number;
17
+ eyeGazeVertical?: number | undefined;
18
18
  /**
19
19
  * Eye open ratio (-100 to 100), in increments of 5
20
20
  */
21
- eyeOpenRatio: number;
21
+ eyeOpenRatio?: number | undefined;
22
22
  /**
23
23
  * Eyebrow direction (-100 to 100), in increments of 5
24
24
  */
25
- eyebrowDirection: number;
25
+ eyebrowDirection?: number | undefined;
26
26
  /**
27
27
  * Head pitch (-100 to 100), in increments of 5
28
28
  */
29
- headPitch: number;
29
+ headPitch?: number | undefined;
30
30
  /**
31
31
  * Head roll (-100 to 100), in increments of 5
32
32
  */
33
- headRoll: number;
33
+ headRoll?: number | undefined;
34
34
  /**
35
35
  * Head yaw (-100 to 100), in increments of 5
36
36
  */
37
- headYaw: number;
37
+ headYaw?: number | undefined;
38
38
  /**
39
39
  * Lip open ratio (-100 to 100), in increments of 5
40
40
  */
41
- lipOpenRatio: number;
41
+ lipOpenRatio?: number | undefined;
42
42
  /**
43
43
  * Mouth grim (-100 to 100), in increments of 5
44
44
  */
45
- mouthGrim: number;
45
+ mouthGrim?: number | undefined;
46
46
  /**
47
47
  * Horizontal mouth position (-100 to 100), in increments of 5
48
48
  */
49
- mouthPositionHorizontal: number;
49
+ mouthPositionHorizontal?: number | undefined;
50
50
  /**
51
51
  * Vertical mouth position (-100 to 100), in increments of 5
52
52
  */
53
- mouthPositionVertical: number;
53
+ mouthPositionVertical?: number | undefined;
54
54
  /**
55
55
  * Mouth pout (-100 to 100), in increments of 5
56
56
  */
57
- mouthPout: number;
57
+ mouthPout?: number | undefined;
58
58
  /**
59
59
  * Mouth purse (-100 to 100), in increments of 5
60
60
  */
61
- mouthPurse: number;
61
+ mouthPurse?: number | undefined;
62
62
  /**
63
63
  * Mouth smile (-100 to 100), in increments of 5
64
64
  */
65
- mouthSmile: number;
65
+ mouthSmile?: number | undefined;
66
66
  };
67
67
  /**
68
68
  * @internal
@@ -70,21 +70,21 @@ export type V1AiFaceEditorCreateBodyStyle = {
70
70
  * we expect to come in as network data
71
71
  */
72
72
  export type External$V1AiFaceEditorCreateBodyStyle = {
73
- enhance_face: boolean;
74
- eye_gaze_horizontal: number;
75
- eye_gaze_vertical: number;
76
- eye_open_ratio: number;
77
- eyebrow_direction: number;
78
- head_pitch: number;
79
- head_roll: number;
80
- head_yaw: number;
81
- lip_open_ratio: number;
82
- mouth_grim: number;
83
- mouth_position_horizontal: number;
84
- mouth_position_vertical: number;
85
- mouth_pout: number;
86
- mouth_purse: number;
87
- mouth_smile: number;
73
+ enhance_face?: boolean | undefined;
74
+ eye_gaze_horizontal?: number | undefined;
75
+ eye_gaze_vertical?: number | undefined;
76
+ eye_open_ratio?: number | undefined;
77
+ eyebrow_direction?: number | undefined;
78
+ head_pitch?: number | undefined;
79
+ head_roll?: number | undefined;
80
+ head_yaw?: number | undefined;
81
+ lip_open_ratio?: number | undefined;
82
+ mouth_grim?: number | undefined;
83
+ mouth_position_horizontal?: number | undefined;
84
+ mouth_position_vertical?: number | undefined;
85
+ mouth_pout?: number | undefined;
86
+ mouth_purse?: number | undefined;
87
+ mouth_smile?: number | undefined;
88
88
  };
89
89
  export declare const Schemas$V1AiFaceEditorCreateBodyStyle: {
90
90
  in: z.ZodType<V1AiFaceEditorCreateBodyStyle, z.ZodTypeDef, unknown>;
@@ -41,21 +41,21 @@ const z = __importStar(require("zod"));
41
41
  */
42
42
  const SchemaIn$V1AiFaceEditorCreateBodyStyle = z
43
43
  .object({
44
- enhance_face: z.boolean(),
45
- eye_gaze_horizontal: z.number(),
46
- eye_gaze_vertical: z.number(),
47
- eye_open_ratio: z.number(),
48
- eyebrow_direction: z.number(),
49
- head_pitch: z.number(),
50
- head_roll: z.number(),
51
- head_yaw: z.number(),
52
- lip_open_ratio: z.number(),
53
- mouth_grim: z.number(),
54
- mouth_position_horizontal: z.number(),
55
- mouth_position_vertical: z.number(),
56
- mouth_pout: z.number(),
57
- mouth_purse: z.number(),
58
- mouth_smile: z.number(),
44
+ enhance_face: z.boolean().optional(),
45
+ eye_gaze_horizontal: z.number().optional(),
46
+ eye_gaze_vertical: z.number().optional(),
47
+ eye_open_ratio: z.number().optional(),
48
+ eyebrow_direction: z.number().optional(),
49
+ head_pitch: z.number().optional(),
50
+ head_roll: z.number().optional(),
51
+ head_yaw: z.number().optional(),
52
+ lip_open_ratio: z.number().optional(),
53
+ mouth_grim: z.number().optional(),
54
+ mouth_position_horizontal: z.number().optional(),
55
+ mouth_position_vertical: z.number().optional(),
56
+ mouth_pout: z.number().optional(),
57
+ mouth_purse: z.number().optional(),
58
+ mouth_smile: z.number().optional(),
59
59
  })
60
60
  .transform((obj) => {
61
61
  return (0, core_1.zodTransform)(obj, {
@@ -82,21 +82,21 @@ const SchemaIn$V1AiFaceEditorCreateBodyStyle = z
82
82
  */
83
83
  const SchemaOut$V1AiFaceEditorCreateBodyStyle = z
84
84
  .object({
85
- enhanceFace: z.boolean(),
86
- eyeGazeHorizontal: z.number(),
87
- eyeGazeVertical: z.number(),
88
- eyeOpenRatio: z.number(),
89
- eyebrowDirection: z.number(),
90
- headPitch: z.number(),
91
- headRoll: z.number(),
92
- headYaw: z.number(),
93
- lipOpenRatio: z.number(),
94
- mouthGrim: z.number(),
95
- mouthPositionHorizontal: z.number(),
96
- mouthPositionVertical: z.number(),
97
- mouthPout: z.number(),
98
- mouthPurse: z.number(),
99
- mouthSmile: z.number(),
85
+ enhanceFace: z.boolean().optional(),
86
+ eyeGazeHorizontal: z.number().optional(),
87
+ eyeGazeVertical: z.number().optional(),
88
+ eyeOpenRatio: z.number().optional(),
89
+ eyebrowDirection: z.number().optional(),
90
+ headPitch: z.number().optional(),
91
+ headRoll: z.number().optional(),
92
+ headYaw: z.number().optional(),
93
+ lipOpenRatio: z.number().optional(),
94
+ mouthGrim: z.number().optional(),
95
+ mouthPositionHorizontal: z.number().optional(),
96
+ mouthPositionVertical: z.number().optional(),
97
+ mouthPout: z.number().optional(),
98
+ mouthPurse: z.number().optional(),
99
+ mouthSmile: z.number().optional(),
100
100
  })
101
101
  .transform((obj) => {
102
102
  return (0, core_1.zodTransform)(obj, {
@@ -10,7 +10,7 @@ export type V1AiFaceEditorCreateBody = {
10
10
  */
11
11
  assets: V1AiFaceEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
@@ -5,7 +5,7 @@ import * as z from "zod";
5
5
  */
6
6
  export type V1AiGifGeneratorCreateBody = {
7
7
  /**
8
- * The name of gif
8
+ * The name of gif. This value is mainly used for your own identification of the gif.
9
9
  */
10
10
  name?: string | undefined;
11
11
  style: V1AiGifGeneratorCreateBodyStyle;
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiHeadshotGeneratorCreateBodyAssets = {
6
6
  /**
7
- * The image used to generate the headshot. This image must contain one detectable face. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The image used to generate the headshot. This image must contain one detectable face. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
12
+ *
8
13
  */
9
14
  imageFilePath: string;
10
15
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiHeadshotGeneratorCreateBodyStyle = {
6
6
  /**
7
- * A prompt to guide the final image.
7
+ * Prompt used to guide the style of your headshot. We recommend omitting the prompt unless you want to customize your headshot. You can visit [AI headshot generator](https://magichour.ai/create/ai-headshot-generator) to view an example of a good prompt used for our 'Professional' style.
8
8
  */
9
9
  prompt?: string | undefined;
10
10
  };
@@ -10,7 +10,7 @@ export type V1AiHeadshotGeneratorCreateBody = {
10
10
  */
11
11
  assets: V1AiHeadshotGeneratorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style?: V1AiHeadshotGeneratorCreateBodyStyle | undefined;
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiImageEditorCreateBodyAssets = {
6
6
  /**
7
- * The image used in the edit. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The image used in the edit. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
12
+ *
8
13
  */
9
14
  imageFilePath: string;
10
15
  };
@@ -10,7 +10,7 @@ export type V1AiImageEditorCreateBody = {
10
10
  */
11
11
  assets: V1AiImageEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style: V1AiImageEditorCreateBodyStyle;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * V1AiImageGeneratorCreateBodyOrientationEnum
2
+ * The orientation of the output image(s).
3
3
  */
4
4
  export type V1AiImageGeneratorCreateBodyOrientationEnum = "landscape" | "portrait" | "square";
@@ -1,10 +1,10 @@
1
1
  import * as z from "zod";
2
2
  /**
3
- * V1AiImageGeneratorCreateBodyStyle
3
+ * The art style to use for image generation.
4
4
  */
5
5
  export type V1AiImageGeneratorCreateBodyStyle = {
6
6
  /**
7
- * The prompt used for the image.
7
+ * The prompt used for the image(s).
8
8
  */
9
9
  prompt: string;
10
10
  /**
@@ -5,14 +5,20 @@ import * as z from "zod";
5
5
  */
6
6
  export type V1AiImageGeneratorCreateBody = {
7
7
  /**
8
- * number to images to generate
8
+ * Number of images to generate.
9
9
  */
10
10
  imageCount: number;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
+ /**
16
+ * The orientation of the output image(s).
17
+ */
15
18
  orientation: "landscape" | "portrait" | "square";
19
+ /**
20
+ * The art style to use for image generation.
21
+ */
16
22
  style: V1AiImageGeneratorCreateBodyStyle;
17
23
  };
18
24
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiImageUpscalerCreateBodyAssets = {
6
6
  /**
7
- * The image to upscale. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The image to upscale. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
12
+ *
8
13
  */
9
14
  imageFilePath: string;
10
15
  };
@@ -10,11 +10,13 @@ export type V1AiImageUpscalerCreateBody = {
10
10
  */
11
11
  assets: V1AiImageUpscalerCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
17
- * How much to scale the image. Must be either 2 or 4
17
+ * How much to scale the image. Must be either 2 or 4.
18
+ *
19
+ * Note: 4x upscale is only available on Creator, Pro, or Business tier.
18
20
  */
19
21
  scaleFactor: number;
20
22
  style: V1AiImageUpscalerCreateBodyStyle;
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiPhotoEditorCreateBodyAssets = {
6
6
  /**
7
- * The image used to generate the output. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The image used to generate the output. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
12
+ *
8
13
  */
9
14
  imageFilePath: string;
10
15
  };
@@ -10,7 +10,7 @@ export type V1AiPhotoEditorCreateBody = {
10
10
  */
11
11
  assets: V1AiPhotoEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
@@ -9,7 +9,7 @@ export type V1AiQrCodeGeneratorCreateBody = {
9
9
  */
10
10
  content: string;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  style: V1AiQrCodeGeneratorCreateBodyStyle;
@@ -4,11 +4,21 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AiTalkingPhotoCreateBodyAssets = {
6
6
  /**
7
- * The audio file to sync with the image. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The audio file to sync with the image. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
12
+ *
8
13
  */
9
14
  audioFilePath: string;
10
15
  /**
11
- * The source image to animate. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
16
+ * The source image to animate. This value is either
17
+ * - a direct URL to the video file
18
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
19
+ *
20
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
21
+ *
12
22
  */
13
23
  imageFilePath: string;
14
24
  };
@@ -14,7 +14,7 @@ export type V1AiTalkingPhotoCreateBody = {
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
17
- * The name of image
17
+ * The name of image. This value is mainly used for your own identification of the image.
18
18
  */
19
19
  name?: string | undefined;
20
20
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AnimationCreateBodyAssets = {
6
6
  /**
7
- * The path of the input audio. This field is required if `audio_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * The path of the input audio. This field is required if `audio_source` is `file`. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
12
+ *
8
13
  */
9
14
  audioFilePath?: string | undefined;
10
15
  /**
@@ -12,7 +17,12 @@ export type V1AnimationCreateBodyAssets = {
12
17
  */
13
18
  audioSource: "file" | "none" | "youtube";
14
19
  /**
15
- * An initial image to use a the first frame of the video. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
20
+ * An initial image to use a the first frame of the video. This value is either
21
+ * - a direct URL to the video file
22
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
23
+ *
24
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
25
+ *
16
26
  */
17
27
  imageFilePath?: string | undefined;
18
28
  /**
@@ -1,4 +1,4 @@
1
1
  /**
2
- * The art style of the final output video
2
+ * The art style used to create the output video
3
3
  */
4
4
  export type V1AnimationCreateBodyStyleArtStyleEnum = "3D Render" | "90s Streets" | "Abstract Minimalist" | "Arcane" | "Art Deco" | "Bold Colored Illustration" | "Cinematic Landscape" | "Cinematic Miyazaki" | "Cosmic" | "Cubist" | "Custom" | "Cyberpunk" | "Dark Graphic Illustration" | "Dark Watercolor" | "Directed by AI" | "Double Exposure" | "Faded Illustration" | "Fantasy" | "Futuristic Anime" | "Impressionism" | "Ink and Watercolor Portrait" | "Inkpunk" | "Intricate Abstract Lines Portrait" | "Jackson Pollock" | "Landscape Painting" | "Low Poly" | "Miniatures" | "Minimal Cold Futurism" | "Oil Painting" | "Old School Comic" | "Overgrown" | "Painted Cityscape" | "Painterly Illustration" | "Photograph" | "Pixar" | "Pixel Art" | "Postapocalyptic" | "Sin City" | "Soft Delicate Matte Portrait" | "Spooky" | "Studio Ghibli Film Still" | "Synthwave" | "Traditional Watercolor" | "Van Gogh" | "Vibrant Matte Illustration" | "Vintage Japanese Anime" | "Woodcut";
@@ -1,4 +1,4 @@
1
1
  /**
2
- * V1AnimationCreateBodyStyleCameraEffectEnum
2
+ * The camera effect used to create the output video
3
3
  */
4
4
  export type V1AnimationCreateBodyStyleCameraEffectEnum = "Accelerate" | "Aggressive Zoom In - Audio Sync" | "Aggressive Zoom Out - Audio Sync" | "Boost Zoom In" | "Boost Zoom Out" | "Bounce In And Out" | "Bounce Out" | "Bounce Out - Audio Sync" | "Bounce and Spin - Audio Sync" | "Bounce in Place" | "Cog in the Machine" | "Devolve - Audio Sync" | "Directed by AI" | "Dramatic Zoom In" | "Dramatic Zoom Out" | "Drift Spin" | "Earthquake Bounce" | "Earthquake Bounce - Audio Sync" | "Evolve - Audio Sync" | "Heartbeat" | "Hesitate In" | "Jump" | "Pan Left" | "Pan Right" | "Pulse - Audio Sync" | "Pusher" | "Pusher - Audio Sync" | "Quadrant" | "Rise and Climb" | "Road Trip" | "Rodeo" | "Roll In" | "Roll In - Audio Sync" | "Rolling Bounces" | "Rubber Band" | "Simple Zoom In" | "Simple Zoom Out" | "Slice Bounce" | "Slideshow" | "Speed of Light" | "Spin Bounce" | "Sway Out" | "Sway Out - Audio Sync" | "Tilt Down" | "Tilt Up" | "Traverse" | "Tron" | "Vertigo" | "Vertigo - Audio Sync" | "Zoom In - Audio Sync" | "Zoom In and Spin - Audio Sync" | "Zoom Out - Audio Sync";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  *
3
- * * `custom` - use your own prompt for the video.
3
+ * * `custom` - Use your own prompt for the video.
4
4
  * * `use_lyrics` - Use the lyrics of the audio to create the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
5
5
  * * `ai_choose` - Let AI write the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
6
6
  */
@@ -4,27 +4,32 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AnimationCreateBodyStyle = {
6
6
  /**
7
- * The art style of the final output video
7
+ * The art style used to create the output video
8
8
  */
9
9
  artStyle: "3D Render" | "90s Streets" | "Abstract Minimalist" | "Arcane" | "Art Deco" | "Bold Colored Illustration" | "Cinematic Landscape" | "Cinematic Miyazaki" | "Cosmic" | "Cubist" | "Custom" | "Cyberpunk" | "Dark Graphic Illustration" | "Dark Watercolor" | "Directed by AI" | "Double Exposure" | "Faded Illustration" | "Fantasy" | "Futuristic Anime" | "Impressionism" | "Ink and Watercolor Portrait" | "Inkpunk" | "Intricate Abstract Lines Portrait" | "Jackson Pollock" | "Landscape Painting" | "Low Poly" | "Miniatures" | "Minimal Cold Futurism" | "Oil Painting" | "Old School Comic" | "Overgrown" | "Painted Cityscape" | "Painterly Illustration" | "Photograph" | "Pixar" | "Pixel Art" | "Postapocalyptic" | "Sin City" | "Soft Delicate Matte Portrait" | "Spooky" | "Studio Ghibli Film Still" | "Synthwave" | "Traditional Watercolor" | "Van Gogh" | "Vibrant Matte Illustration" | "Vintage Japanese Anime" | "Woodcut";
10
10
  /**
11
11
  * Describe custom art style. This field is required if `art_style` is `Custom`
12
12
  */
13
13
  artStyleCustom?: string | undefined;
14
+ /**
15
+ * The camera effect used to create the output video
16
+ */
14
17
  cameraEffect: "Accelerate" | "Aggressive Zoom In - Audio Sync" | "Aggressive Zoom Out - Audio Sync" | "Boost Zoom In" | "Boost Zoom Out" | "Bounce In And Out" | "Bounce Out" | "Bounce Out - Audio Sync" | "Bounce and Spin - Audio Sync" | "Bounce in Place" | "Cog in the Machine" | "Devolve - Audio Sync" | "Directed by AI" | "Dramatic Zoom In" | "Dramatic Zoom Out" | "Drift Spin" | "Earthquake Bounce" | "Earthquake Bounce - Audio Sync" | "Evolve - Audio Sync" | "Heartbeat" | "Hesitate In" | "Jump" | "Pan Left" | "Pan Right" | "Pulse - Audio Sync" | "Pusher" | "Pusher - Audio Sync" | "Quadrant" | "Rise and Climb" | "Road Trip" | "Rodeo" | "Roll In" | "Roll In - Audio Sync" | "Rolling Bounces" | "Rubber Band" | "Simple Zoom In" | "Simple Zoom Out" | "Slice Bounce" | "Slideshow" | "Speed of Light" | "Spin Bounce" | "Sway Out" | "Sway Out - Audio Sync" | "Tilt Down" | "Tilt Up" | "Traverse" | "Tron" | "Vertigo" | "Vertigo - Audio Sync" | "Zoom In - Audio Sync" | "Zoom In and Spin - Audio Sync" | "Zoom Out - Audio Sync";
15
18
  /**
16
19
  * The prompt used for the video. Prompt is required if `prompt_type` is `custom`. Otherwise this value is ignored
17
20
  */
18
- prompt: string | null;
21
+ prompt?: string | undefined;
19
22
  /**
20
23
  *
21
- * * `custom` - use your own prompt for the video.
24
+ * * `custom` - Use your own prompt for the video.
22
25
  * * `use_lyrics` - Use the lyrics of the audio to create the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
23
26
  * * `ai_choose` - Let AI write the prompt. If this option is selected, then `assets.audio_source` must be `file` or `youtube`.
24
27
  */
25
28
  promptType: "ai_choose" | "custom" | "use_lyrics";
26
29
  /**
27
- * Change determines how quickly the video's content changes across frames. Higher = more rapid transitions. Lower = more stable visual experience.
30
+ * Change determines how quickly the video's content changes across frames.
31
+ * * Higher = more rapid transitions.
32
+ * * Lower = more stable visual experience.
28
33
  */
29
34
  transitionSpeed: number;
30
35
  };
@@ -37,7 +42,7 @@ export type External$V1AnimationCreateBodyStyle = {
37
42
  art_style: "3D Render" | "90s Streets" | "Abstract Minimalist" | "Arcane" | "Art Deco" | "Bold Colored Illustration" | "Cinematic Landscape" | "Cinematic Miyazaki" | "Cosmic" | "Cubist" | "Custom" | "Cyberpunk" | "Dark Graphic Illustration" | "Dark Watercolor" | "Directed by AI" | "Double Exposure" | "Faded Illustration" | "Fantasy" | "Futuristic Anime" | "Impressionism" | "Ink and Watercolor Portrait" | "Inkpunk" | "Intricate Abstract Lines Portrait" | "Jackson Pollock" | "Landscape Painting" | "Low Poly" | "Miniatures" | "Minimal Cold Futurism" | "Oil Painting" | "Old School Comic" | "Overgrown" | "Painted Cityscape" | "Painterly Illustration" | "Photograph" | "Pixar" | "Pixel Art" | "Postapocalyptic" | "Sin City" | "Soft Delicate Matte Portrait" | "Spooky" | "Studio Ghibli Film Still" | "Synthwave" | "Traditional Watercolor" | "Van Gogh" | "Vibrant Matte Illustration" | "Vintage Japanese Anime" | "Woodcut";
38
43
  art_style_custom?: string | undefined;
39
44
  camera_effect: "Accelerate" | "Aggressive Zoom In - Audio Sync" | "Aggressive Zoom Out - Audio Sync" | "Boost Zoom In" | "Boost Zoom Out" | "Bounce In And Out" | "Bounce Out" | "Bounce Out - Audio Sync" | "Bounce and Spin - Audio Sync" | "Bounce in Place" | "Cog in the Machine" | "Devolve - Audio Sync" | "Directed by AI" | "Dramatic Zoom In" | "Dramatic Zoom Out" | "Drift Spin" | "Earthquake Bounce" | "Earthquake Bounce - Audio Sync" | "Evolve - Audio Sync" | "Heartbeat" | "Hesitate In" | "Jump" | "Pan Left" | "Pan Right" | "Pulse - Audio Sync" | "Pusher" | "Pusher - Audio Sync" | "Quadrant" | "Rise and Climb" | "Road Trip" | "Rodeo" | "Roll In" | "Roll In - Audio Sync" | "Rolling Bounces" | "Rubber Band" | "Simple Zoom In" | "Simple Zoom Out" | "Slice Bounce" | "Slideshow" | "Speed of Light" | "Spin Bounce" | "Sway Out" | "Sway Out - Audio Sync" | "Tilt Down" | "Tilt Up" | "Traverse" | "Tron" | "Vertigo" | "Vertigo - Audio Sync" | "Zoom In - Audio Sync" | "Zoom In and Spin - Audio Sync" | "Zoom Out - Audio Sync";
40
- prompt: string | null;
45
+ prompt?: string | undefined;
41
46
  prompt_type: "ai_choose" | "custom" | "use_lyrics";
42
47
  transition_speed: number;
43
48
  };
@@ -145,7 +145,7 @@ const SchemaIn$V1AnimationCreateBodyStyle = z
145
145
  "Zoom In and Spin - Audio Sync",
146
146
  "Zoom Out - Audio Sync",
147
147
  ]),
148
- prompt: z.string().nullable(),
148
+ prompt: z.string().optional(),
149
149
  prompt_type: z.enum(["ai_choose", "custom", "use_lyrics"]),
150
150
  transition_speed: z.number().int(),
151
151
  })
@@ -269,7 +269,7 @@ const SchemaOut$V1AnimationCreateBodyStyle = z
269
269
  "Zoom In and Spin - Audio Sync",
270
270
  "Zoom Out - Audio Sync",
271
271
  ]),
272
- prompt: z.string().nullable(),
272
+ prompt: z.string().optional(),
273
273
  promptType: z.enum(["ai_choose", "custom", "use_lyrics"]),
274
274
  transitionSpeed: z.number().int(),
275
275
  })
@@ -10,7 +10,7 @@ export type V1AnimationCreateBody = {
10
10
  */
11
11
  assets: V1AnimationCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds
13
+ * This value determines the duration of the output video.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
@@ -22,7 +22,7 @@ export type V1AnimationCreateBody = {
22
22
  */
23
23
  height: number;
24
24
  /**
25
- * The name of video
25
+ * The name of video. This value is mainly used for your own identification of the video.
26
26
  */
27
27
  name?: string | undefined;
28
28
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1AutoSubtitleGeneratorCreateBodyAssets = {
6
6
  /**
7
- * This is the video used to add subtitles. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * This is the video used to add subtitles. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
12
+ *
8
13
  */
9
14
  videoFilePath: string;
10
15
  };
@@ -10,15 +10,15 @@ export type V1AutoSubtitleGeneratorCreateBody = {
10
10
  */
11
11
  assets: V1AutoSubtitleGeneratorCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds
13
+ * The end time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
17
- * The name of video
17
+ * The name of video. This value is mainly used for your own identification of the video.
18
18
  */
19
19
  name?: string | undefined;
20
20
  /**
21
- * The start time of the input video in seconds
21
+ * The start time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.
22
22
  */
23
23
  startSeconds: number;
24
24
  /**
@@ -4,7 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1FaceDetectionCreateBodyAssets = {
6
6
  /**
7
- * This is the image or video where the face will be detected. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
7
+ * This is the image or video where the face will be detected. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
12
+ *
8
13
  */
9
14
  targetFilePath: string;
10
15
  };
@@ -8,7 +8,7 @@ export type V1FaceDetectionCreateResponse = {
8
8
  */
9
9
  creditsCharged: number;
10
10
  /**
11
- * The id of the task
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.
12
12
  */
13
13
  id: string;
14
14
  };