magic-hour 0.44.0 → 0.46.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 (125) 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-editor/resource-client.d.ts +1 -1
  9. package/dist/resources/v1/ai-image-editor/resource-client.js +1 -1
  10. package/dist/resources/v1/ai-image-generator/request-types.d.ts +1 -1
  11. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +1 -1
  12. package/dist/resources/v1/ai-photo-editor/request-types.d.ts +1 -1
  13. package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +1 -1
  14. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +6 -1
  15. package/dist/resources/v1/ai-talking-photo/request-types.js +4 -0
  16. package/dist/resources/v1/ai-voice-cloner/request-types.d.ts +1 -1
  17. package/dist/resources/v1/ai-voice-generator/request-types.d.ts +1 -1
  18. package/dist/resources/v1/animation/request-types.d.ts +1 -1
  19. package/dist/resources/v1/audio-projects/resource-client.d.ts +9 -10
  20. package/dist/resources/v1/audio-projects/resource-client.js +8 -9
  21. package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +3 -3
  22. package/dist/resources/v1/face-swap/request-types.d.ts +3 -3
  23. package/dist/resources/v1/face-swap/resource-client.d.ts +20 -2
  24. package/dist/resources/v1/face-swap/resource-client.js +20 -2
  25. package/dist/resources/v1/face-swap-photo/request-types.d.ts +1 -1
  26. package/dist/resources/v1/files/resource-client.d.ts +13 -3
  27. package/dist/resources/v1/files/resource-client.js +54 -3
  28. package/dist/resources/v1/files/resource-client.test.js +45 -0
  29. package/dist/resources/v1/image-background-remover/request-types.d.ts +1 -1
  30. package/dist/resources/v1/image-projects/resource-client.d.ts +9 -10
  31. package/dist/resources/v1/image-projects/resource-client.js +8 -9
  32. package/dist/resources/v1/image-to-video/request-types.d.ts +1 -1
  33. package/dist/resources/v1/image-to-video/resource-client.d.ts +20 -2
  34. package/dist/resources/v1/image-to-video/resource-client.js +20 -2
  35. package/dist/resources/v1/lip-sync/request-types.d.ts +3 -3
  36. package/dist/resources/v1/lip-sync/resource-client.d.ts +20 -2
  37. package/dist/resources/v1/lip-sync/resource-client.js +20 -2
  38. package/dist/resources/v1/photo-colorizer/request-types.d.ts +1 -1
  39. package/dist/resources/v1/photo-colorizer/resource-client.d.ts +1 -1
  40. package/dist/resources/v1/photo-colorizer/resource-client.js +1 -1
  41. package/dist/resources/v1/text-to-video/request-types.d.ts +1 -1
  42. package/dist/resources/v1/text-to-video/resource-client.d.ts +20 -2
  43. package/dist/resources/v1/text-to-video/resource-client.js +20 -2
  44. package/dist/resources/v1/video-projects/resource-client.d.ts +9 -10
  45. package/dist/resources/v1/video-projects/resource-client.js +8 -9
  46. package/dist/resources/v1/video-to-video/request-types.d.ts +3 -3
  47. package/dist/resources/v1/video-to-video/resource-client.d.ts +20 -2
  48. package/dist/resources/v1/video-to-video/resource-client.js +20 -2
  49. package/dist/types/v1-ai-clothes-changer-create-body-assets-garment-type-enum.d.ts +6 -2
  50. package/dist/types/v1-ai-clothes-changer-create-body-assets.d.ts +9 -5
  51. package/dist/types/v1-ai-clothes-changer-create-body-assets.js +6 -2
  52. package/dist/types/v1-ai-clothes-changer-create-body.d.ts +1 -1
  53. package/dist/types/v1-ai-clothes-changer-create-response.d.ts +1 -1
  54. package/dist/types/v1-ai-face-editor-create-body-assets.d.ts +1 -1
  55. package/dist/types/v1-ai-face-editor-create-body.d.ts +1 -1
  56. package/dist/types/v1-ai-face-editor-create-response.d.ts +1 -1
  57. package/dist/types/v1-ai-gif-generator-create-body.d.ts +1 -1
  58. package/dist/types/v1-ai-gif-generator-create-response.d.ts +1 -1
  59. package/dist/types/v1-ai-headshot-generator-create-body-assets.d.ts +1 -1
  60. package/dist/types/v1-ai-headshot-generator-create-body.d.ts +1 -1
  61. package/dist/types/v1-ai-headshot-generator-create-response.d.ts +1 -1
  62. package/dist/types/v1-ai-image-editor-create-body-assets.d.ts +2 -2
  63. package/dist/types/v1-ai-image-editor-create-body.d.ts +1 -1
  64. package/dist/types/v1-ai-image-editor-create-response.d.ts +1 -1
  65. package/dist/types/v1-ai-image-generator-create-body.d.ts +1 -1
  66. package/dist/types/v1-ai-image-generator-create-response.d.ts +1 -1
  67. package/dist/types/v1-ai-image-upscaler-create-body-assets.d.ts +1 -1
  68. package/dist/types/v1-ai-image-upscaler-create-body.d.ts +1 -1
  69. package/dist/types/v1-ai-image-upscaler-create-response.d.ts +1 -1
  70. package/dist/types/v1-ai-meme-generator-create-response.d.ts +1 -1
  71. package/dist/types/v1-ai-photo-editor-create-body-assets.d.ts +1 -1
  72. package/dist/types/v1-ai-photo-editor-create-body.d.ts +1 -1
  73. package/dist/types/v1-ai-photo-editor-create-response.d.ts +1 -1
  74. package/dist/types/v1-ai-qr-code-generator-create-body.d.ts +1 -1
  75. package/dist/types/v1-ai-qr-code-generator-create-response.d.ts +1 -1
  76. package/dist/types/v1-ai-talking-photo-create-body-assets.d.ts +2 -2
  77. package/dist/types/v1-ai-talking-photo-create-body.d.ts +6 -1
  78. package/dist/types/v1-ai-talking-photo-create-body.js +4 -0
  79. package/dist/types/v1-ai-talking-photo-create-response.d.ts +1 -1
  80. package/dist/types/v1-ai-voice-cloner-create-body-assets.d.ts +1 -1
  81. package/dist/types/v1-ai-voice-cloner-create-body.d.ts +1 -1
  82. package/dist/types/v1-ai-voice-cloner-create-response.d.ts +1 -1
  83. package/dist/types/v1-ai-voice-generator-create-body.d.ts +1 -1
  84. package/dist/types/v1-ai-voice-generator-create-response.d.ts +1 -1
  85. package/dist/types/v1-animation-create-body-assets.d.ts +2 -2
  86. package/dist/types/v1-animation-create-body.d.ts +1 -1
  87. package/dist/types/v1-animation-create-response.d.ts +1 -1
  88. package/dist/types/v1-audio-projects-get-response.d.ts +2 -2
  89. package/dist/types/v1-auto-subtitle-generator-create-body-assets.d.ts +1 -1
  90. package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +3 -3
  91. package/dist/types/v1-auto-subtitle-generator-create-response.d.ts +1 -1
  92. package/dist/types/v1-face-detection-create-body-assets.d.ts +1 -1
  93. package/dist/types/v1-face-swap-create-body-assets-face-mappings-item.d.ts +1 -1
  94. package/dist/types/v1-face-swap-create-body-assets-face-swap-mode-enum.d.ts +3 -3
  95. package/dist/types/v1-face-swap-create-body-assets-video-source-enum.d.ts +1 -1
  96. package/dist/types/v1-face-swap-create-body-assets.d.ts +10 -7
  97. package/dist/types/v1-face-swap-create-body.d.ts +3 -3
  98. package/dist/types/v1-face-swap-create-response.d.ts +1 -1
  99. package/dist/types/v1-face-swap-photo-create-body-assets-face-mappings-item.d.ts +1 -1
  100. package/dist/types/v1-face-swap-photo-create-body-assets-face-swap-mode-enum.d.ts +3 -3
  101. package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +5 -5
  102. package/dist/types/v1-face-swap-photo-create-body.d.ts +1 -1
  103. package/dist/types/v1-face-swap-photo-create-response.d.ts +1 -1
  104. package/dist/types/v1-image-background-remover-create-body-assets.d.ts +2 -2
  105. package/dist/types/v1-image-background-remover-create-body.d.ts +1 -1
  106. package/dist/types/v1-image-background-remover-create-response.d.ts +1 -1
  107. package/dist/types/v1-image-projects-get-response.d.ts +2 -2
  108. package/dist/types/v1-image-to-video-create-body-assets.d.ts +1 -1
  109. package/dist/types/v1-image-to-video-create-body.d.ts +1 -1
  110. package/dist/types/v1-image-to-video-create-response.d.ts +1 -1
  111. package/dist/types/v1-lip-sync-create-body-assets-video-source-enum.d.ts +1 -1
  112. package/dist/types/v1-lip-sync-create-body-assets.d.ts +7 -4
  113. package/dist/types/v1-lip-sync-create-body.d.ts +3 -3
  114. package/dist/types/v1-lip-sync-create-response.d.ts +1 -1
  115. package/dist/types/v1-photo-colorizer-create-body-assets.d.ts +1 -1
  116. package/dist/types/v1-photo-colorizer-create-body.d.ts +1 -1
  117. package/dist/types/v1-photo-colorizer-create-response.d.ts +1 -1
  118. package/dist/types/v1-text-to-video-create-body.d.ts +1 -1
  119. package/dist/types/v1-text-to-video-create-response.d.ts +1 -1
  120. package/dist/types/v1-video-projects-get-response.d.ts +4 -4
  121. package/dist/types/v1-video-to-video-create-body-assets-video-source-enum.d.ts +1 -1
  122. package/dist/types/v1-video-to-video-create-body-assets.d.ts +6 -3
  123. package/dist/types/v1-video-to-video-create-body.d.ts +3 -3
  124. package/dist/types/v1-video-to-video-create-response.d.ts +1 -1
  125. package/package.json +1 -1
@@ -10,7 +10,7 @@ export type V1AiHeadshotGeneratorCreateBody = {
10
10
  */
11
11
  assets: V1AiHeadshotGeneratorCreateBodyAssets;
12
12
  /**
13
- * The name of image. This value is mainly used for your own identification of the image.
13
+ * Give your image a custom name for easy identification.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style?: V1AiHeadshotGeneratorCreateBodyStyle | undefined;
@@ -14,7 +14,7 @@ export type V1AiHeadshotGeneratorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -8,7 +8,7 @@ export type V1AiImageEditorCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  imageFilePath?: string | undefined;
@@ -17,7 +17,7 @@ export type V1AiImageEditorCreateBodyAssets = {
17
17
  * - a direct URL to the video file
18
18
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
19
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.
20
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
21
21
  *
22
22
  */
23
23
  imageFilePaths?: string[] | undefined;
@@ -10,7 +10,7 @@ export type V1AiImageEditorCreateBody = {
10
10
  */
11
11
  assets: V1AiImageEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image. This value is mainly used for your own identification of the image.
13
+ * Give your image a custom name for easy identification.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style: V1AiImageEditorCreateBodyStyle;
@@ -14,7 +14,7 @@ export type V1AiImageEditorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -9,7 +9,7 @@ export type V1AiImageGeneratorCreateBody = {
9
9
  */
10
10
  imageCount: number;
11
11
  /**
12
- * The name of image. This value is mainly used for your own identification of the image.
12
+ * Give your image a custom name for easy identification.
13
13
  */
14
14
  name?: string | undefined;
15
15
  /**
@@ -14,7 +14,7 @@ export type V1AiImageGeneratorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -8,7 +8,7 @@ export type V1AiImageUpscalerCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  imageFilePath: string;
@@ -10,7 +10,7 @@ export type V1AiImageUpscalerCreateBody = {
10
10
  */
11
11
  assets: V1AiImageUpscalerCreateBodyAssets;
12
12
  /**
13
- * The name of image. This value is mainly used for your own identification of the image.
13
+ * Give your image a custom name for easy identification.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
@@ -14,7 +14,7 @@ export type V1AiImageUpscalerCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -14,7 +14,7 @@ export type V1AiMemeGeneratorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -8,7 +8,7 @@ export type V1AiPhotoEditorCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  imageFilePath: string;
@@ -10,7 +10,7 @@ export type V1AiPhotoEditorCreateBody = {
10
10
  */
11
11
  assets: V1AiPhotoEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image. This value is mainly used for your own identification of the image.
13
+ * Give your image a custom name for easy identification.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
@@ -14,7 +14,7 @@ export type V1AiPhotoEditorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -9,7 +9,7 @@ export type V1AiQrCodeGeneratorCreateBody = {
9
9
  */
10
10
  content: string;
11
11
  /**
12
- * The name of image. This value is mainly used for your own identification of the image.
12
+ * Give your image a custom name for easy identification.
13
13
  */
14
14
  name?: string | undefined;
15
15
  style: V1AiQrCodeGeneratorCreateBodyStyle;
@@ -14,7 +14,7 @@ export type V1AiQrCodeGeneratorCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };
@@ -8,7 +8,7 @@ export type V1AiTalkingPhotoCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  audioFilePath: string;
@@ -17,7 +17,7 @@ export type V1AiTalkingPhotoCreateBodyAssets = {
17
17
  * - a direct URL to the video file
18
18
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
19
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.
20
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
21
21
  *
22
22
  */
23
23
  imageFilePath: string;
@@ -14,7 +14,11 @@ export type V1AiTalkingPhotoCreateBody = {
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
17
- * The name of image. This value is mainly used for your own identification of the image.
17
+ * Constrains the larger dimension (height or width) of the output video. Allows you to set a lower resolution than your plan's maximum if desired. The value is capped by your plan's max resolution.
18
+ */
19
+ maxResolution?: number | undefined;
20
+ /**
21
+ * Give your image a custom name for easy identification.
18
22
  */
19
23
  name?: string | undefined;
20
24
  /**
@@ -34,6 +38,7 @@ export type V1AiTalkingPhotoCreateBody = {
34
38
  export type External$V1AiTalkingPhotoCreateBody = {
35
39
  assets: External$V1AiTalkingPhotoCreateBodyAssets;
36
40
  end_seconds: number;
41
+ max_resolution?: number | undefined;
37
42
  name?: string | undefined;
38
43
  start_seconds: number;
39
44
  style?: External$V1AiTalkingPhotoCreateBodyStyle | undefined;
@@ -45,6 +45,7 @@ const SchemaIn$V1AiTalkingPhotoCreateBody = z
45
45
  .object({
46
46
  assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.in,
47
47
  end_seconds: z.number(),
48
+ max_resolution: z.number().int().optional(),
48
49
  name: z.string().optional(),
49
50
  start_seconds: z.number(),
50
51
  style: v1_ai_talking_photo_create_body_style_1.Schemas$V1AiTalkingPhotoCreateBodyStyle.in.optional(),
@@ -53,6 +54,7 @@ const SchemaIn$V1AiTalkingPhotoCreateBody = z
53
54
  return (0, make_api_request_js_1.zodTransform)(obj, {
54
55
  assets: "assets",
55
56
  end_seconds: "endSeconds",
57
+ max_resolution: "maxResolution",
56
58
  name: "name",
57
59
  start_seconds: "startSeconds",
58
60
  style: "style",
@@ -66,6 +68,7 @@ const SchemaOut$V1AiTalkingPhotoCreateBody = z
66
68
  .object({
67
69
  assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.out,
68
70
  endSeconds: z.number(),
71
+ maxResolution: z.number().int().optional(),
69
72
  name: z.string().optional(),
70
73
  startSeconds: z.number(),
71
74
  style: v1_ai_talking_photo_create_body_style_1.Schemas$V1AiTalkingPhotoCreateBodyStyle.out.optional(),
@@ -74,6 +77,7 @@ const SchemaOut$V1AiTalkingPhotoCreateBody = z
74
77
  return (0, make_api_request_js_1.zodTransform)(obj, {
75
78
  assets: "assets",
76
79
  endSeconds: "end_seconds",
80
+ maxResolution: "max_resolution",
77
81
  name: "name",
78
82
  startSeconds: "start_seconds",
79
83
  style: "style",
@@ -16,7 +16,7 @@ export type V1AiTalkingPhotoCreateResponse = {
16
16
  */
17
17
  estimatedFrameCost: number;
18
18
  /**
19
- * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
19
+ * Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
20
20
  */
21
21
  id: string;
22
22
  };
@@ -8,7 +8,7 @@ export type V1AiVoiceClonerCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  audioFilePath: string;
@@ -10,7 +10,7 @@ export type V1AiVoiceClonerCreateBody = {
10
10
  */
11
11
  assets: V1AiVoiceClonerCreateBodyAssets;
12
12
  /**
13
- * The name of audio. This value is mainly used for your own identification of the audio.
13
+ * Give your audio a custom name for easy identification.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style: V1AiVoiceClonerCreateBodyStyle;
@@ -10,7 +10,7 @@ export type V1AiVoiceClonerCreateResponse = {
10
10
  */
11
11
  creditsCharged: number;
12
12
  /**
13
- * Unique ID of the audio. This value can be used in the [get audio project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch additional details such as status
13
+ * Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads.
14
14
  */
15
15
  id: string;
16
16
  };
@@ -5,7 +5,7 @@ import { External$V1AiVoiceGeneratorCreateBodyStyle, V1AiVoiceGeneratorCreateBod
5
5
  */
6
6
  export type V1AiVoiceGeneratorCreateBody = {
7
7
  /**
8
- * The name of audio. This value is mainly used for your own identification of the audio.
8
+ * Give your audio a custom name for easy identification.
9
9
  */
10
10
  name?: string | undefined;
11
11
  /**
@@ -10,7 +10,7 @@ export type V1AiVoiceGeneratorCreateResponse = {
10
10
  */
11
11
  creditsCharged: number;
12
12
  /**
13
- * Unique ID of the audio. This value can be used in the [get audio project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch additional details such as status
13
+ * Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads.
14
14
  */
15
15
  id: string;
16
16
  };
@@ -8,7 +8,7 @@ export type V1AnimationCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  audioFilePath?: string | undefined;
@@ -21,7 +21,7 @@ export type V1AnimationCreateBodyAssets = {
21
21
  * - a direct URL to the video file
22
22
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
23
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.
24
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
25
25
  *
26
26
  */
27
27
  imageFilePath?: string | undefined;
@@ -22,7 +22,7 @@ export type V1AnimationCreateBody = {
22
22
  */
23
23
  height: number;
24
24
  /**
25
- * The name of video. This value is mainly used for your own identification of the video.
25
+ * Give your video a custom name for easy identification.
26
26
  */
27
27
  name?: string | undefined;
28
28
  /**
@@ -16,7 +16,7 @@ export type V1AnimationCreateResponse = {
16
16
  */
17
17
  estimatedFrameCost: number;
18
18
  /**
19
- * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
19
+ * Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
20
20
  */
21
21
  id: string;
22
22
  };
@@ -14,7 +14,7 @@ export type V1AudioProjectsGetResponse = {
14
14
  creditsCharged: number;
15
15
  downloads: V1AudioProjectsGetResponseDownloadsItem[];
16
16
  /**
17
- * Indicates whether the resource is deleted
17
+ * Whether this resource is active. If false, it is deleted.
18
18
  */
19
19
  enabled: boolean;
20
20
  /**
@@ -22,7 +22,7 @@ export type V1AudioProjectsGetResponse = {
22
22
  */
23
23
  error: V1AudioProjectsGetResponseError | null;
24
24
  /**
25
- * Unique ID of the audio. This value can be used in the [get audio project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch additional details such as status
25
+ * Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads.
26
26
  */
27
27
  id: string;
28
28
  /**
@@ -8,7 +8,7 @@ export type V1AutoSubtitleGeneratorCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  videoFilePath: string;
@@ -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. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
13
+ * End time of your clip (seconds). Must be greater than start_seconds.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
17
- * The name of video. This value is mainly used for your own identification of the video.
17
+ * Give your video a custom name for easy identification.
18
18
  */
19
19
  name?: string | undefined;
20
20
  /**
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.
21
+ * Start time of your clip (seconds). Must be ≥ 0.
22
22
  */
23
23
  startSeconds: number;
24
24
  /**
@@ -16,7 +16,7 @@ export type V1AutoSubtitleGeneratorCreateResponse = {
16
16
  */
17
17
  estimatedFrameCost: number;
18
18
  /**
19
- * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
19
+ * Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
20
20
  */
21
21
  id: string;
22
22
  };
@@ -8,7 +8,7 @@ export type V1FaceDetectionCreateBodyAssets = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  targetFilePath: string;
@@ -8,7 +8,7 @@ export type V1FaceSwapCreateBodyAssetsFaceMappingsItem = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  newFace: string;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The mode of face swap.
3
- * * `all-faces` - Swap all faces in the target image or video. `source_file_path` is required.
4
- * * `individual-faces` - Swap individual faces in the target image or video. `source_faces` is required.
2
+ * Choose how to swap faces:
3
+ * **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
4
+ * +- **individual-faces** — specify exact mappings using `face_mappings`
5
5
  */
6
6
  export type V1FaceSwapCreateBodyAssetsFaceSwapModeEnum = "all-faces" | "individual-faces";
@@ -1,4 +1,4 @@
1
1
  /**
2
- * V1FaceSwapCreateBodyAssetsVideoSourceEnum
2
+ * Choose your video source.
3
3
  */
4
4
  export type V1FaceSwapCreateBodyAssetsVideoSourceEnum = "file" | "youtube";
@@ -9,9 +9,9 @@ export type V1FaceSwapCreateBodyAssets = {
9
9
  */
10
10
  faceMappings?: V1FaceSwapCreateBodyAssetsFaceMappingsItem[] | undefined;
11
11
  /**
12
- * The mode of face swap.
13
- * * `all-faces` - Swap all faces in the target image or video. `source_file_path` is required.
14
- * * `individual-faces` - Swap individual faces in the target image or video. `source_faces` is required.
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`
15
15
  */
16
16
  faceSwapMode?: ("all-faces" | "individual-faces") | undefined;
17
17
  /**
@@ -21,22 +21,25 @@ export type V1FaceSwapCreateBodyAssets = {
21
21
  * - a direct URL to the video file
22
22
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
23
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.
24
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
25
25
  *
26
26
  */
27
27
  imageFilePath?: string | undefined;
28
28
  /**
29
- * Required if `video_source` is `file`. This value is either
29
+ * Your video file. Required if `video_source` is `file`. This value is either
30
30
  * - a direct URL to the video file
31
31
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
32
32
  *
33
- * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
33
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
34
34
  *
35
35
  */
36
36
  videoFilePath?: string | undefined;
37
+ /**
38
+ * Choose your video source.
39
+ */
37
40
  videoSource: "file" | "youtube";
38
41
  /**
39
- * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
42
+ * YouTube URL (required if `video_source` is `youtube`).
40
43
  */
41
44
  youtubeUrl?: string | undefined;
42
45
  };
@@ -10,7 +10,7 @@ export type V1FaceSwapCreateBody = {
10
10
  */
11
11
  assets: V1FaceSwapCreateBodyAssets;
12
12
  /**
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.
13
+ * End time of your clip (seconds). Must be greater than start_seconds.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
@@ -24,11 +24,11 @@ export type V1FaceSwapCreateBody = {
24
24
  */
25
25
  height?: number | null | undefined;
26
26
  /**
27
- * The name of video. This value is mainly used for your own identification of the video.
27
+ * Give your video a custom name for easy identification.
28
28
  */
29
29
  name?: string | undefined;
30
30
  /**
31
- * 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.
31
+ * Start time of your clip (seconds). Must be ≥ 0.
32
32
  */
33
33
  startSeconds: number;
34
34
  /**
@@ -16,7 +16,7 @@ export type V1FaceSwapCreateResponse = {
16
16
  */
17
17
  estimatedFrameCost: number;
18
18
  /**
19
- * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
19
+ * Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
20
20
  */
21
21
  id: string;
22
22
  };
@@ -8,7 +8,7 @@ export type V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem = {
8
8
  * - a direct URL to the video file
9
9
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
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.
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
12
  *
13
13
  */
14
14
  newFace: string;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The mode of face swap.
3
- * * `all-faces` - Swap all faces in the target image or video. `source_file_path` is required.
4
- * * `individual-faces` - Swap individual faces in the target image or video. `source_faces` is required.
2
+ * Choose how to swap faces:
3
+ * **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
4
+ * +- **individual-faces** — specify exact mappings using `face_mappings`
5
5
  */
6
6
  export type V1FaceSwapPhotoCreateBodyAssetsFaceSwapModeEnum = "all-faces" | "individual-faces";
@@ -9,9 +9,9 @@ export type V1FaceSwapPhotoCreateBodyAssets = {
9
9
  */
10
10
  faceMappings?: V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem[] | undefined;
11
11
  /**
12
- * The mode of face swap.
13
- * * `all-faces` - Swap all faces in the target image or video. `source_file_path` is required.
14
- * * `individual-faces` - Swap individual faces in the target image or video. `source_faces` is required.
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`
15
15
  */
16
16
  faceSwapMode?: ("all-faces" | "individual-faces") | undefined;
17
17
  /**
@@ -21,7 +21,7 @@ export type V1FaceSwapPhotoCreateBodyAssets = {
21
21
  * - a direct URL to the video file
22
22
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
23
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.
24
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
25
25
  *
26
26
  */
27
27
  sourceFilePath?: string | undefined;
@@ -30,7 +30,7 @@ export type V1FaceSwapPhotoCreateBodyAssets = {
30
30
  * - a direct URL to the video file
31
31
  * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
32
32
  *
33
- * Please refer to the [Input File documentation](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) to learn more.
33
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
34
34
  *
35
35
  */
36
36
  targetFilePath: string;
@@ -9,7 +9,7 @@ export type V1FaceSwapPhotoCreateBody = {
9
9
  */
10
10
  assets: V1FaceSwapPhotoCreateBodyAssets;
11
11
  /**
12
- * The name of image. This value is mainly used for your own identification of the image.
12
+ * Give your image a custom name for easy identification.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -14,7 +14,7 @@ export type V1FaceSwapPhotoCreateResponse = {
14
14
  */
15
15
  frameCost: number;
16
16
  /**
17
- * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
17
+ * Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
18
18
  */
19
19
  id: string;
20
20
  };