magic-hour 0.43.1 → 0.45.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 (167) hide show
  1. package/README.md +82 -77
  2. package/dist/core/api-error.d.ts +6 -0
  3. package/dist/core/api-error.js +11 -0
  4. package/dist/core/api-promise.d.ts +28 -0
  5. package/dist/core/api-promise.js +252 -0
  6. package/dist/core/auth.d.ts +76 -0
  7. package/dist/core/auth.js +232 -0
  8. package/dist/core/binary-response.d.ts +6 -0
  9. package/dist/core/binary-response.js +10 -0
  10. package/dist/core/content-type.d.ts +4 -0
  11. package/dist/core/content-type.js +12 -0
  12. package/dist/core/core-client.d.ts +58 -0
  13. package/dist/core/core-client.js +168 -0
  14. package/dist/core/form-data.d.ts +26 -0
  15. package/dist/core/form-data.js +83 -0
  16. package/dist/core/index.d.ts +9 -0
  17. package/dist/core/index.js +28 -0
  18. package/dist/core/logger.d.ts +48 -0
  19. package/dist/core/logger.js +82 -0
  20. package/dist/core/query.d.ts +8 -0
  21. package/dist/core/query.js +77 -0
  22. package/dist/core/runtime.d.ts +4 -0
  23. package/dist/core/runtime.js +20 -0
  24. package/dist/core/zod.d.ts +13 -0
  25. package/dist/core/zod.js +60 -0
  26. package/dist/environment.d.ts +1 -1
  27. package/dist/environment.js +1 -1
  28. package/dist/examples/logging-example.d.ts +10 -0
  29. package/dist/examples/logging-example.js +137 -0
  30. package/dist/logging-client.d.ts +39 -0
  31. package/dist/logging-client.js +116 -0
  32. package/dist/resources/v1/ai-clothes-changer/request-types.d.ts +1 -1
  33. package/dist/resources/v1/ai-face-editor/request-types.d.ts +1 -1
  34. package/dist/resources/v1/ai-gif-generator/request-types.d.ts +1 -1
  35. package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +1 -1
  36. package/dist/resources/v1/ai-image-editor/request-types.d.ts +1 -1
  37. package/dist/resources/v1/ai-image-editor/resource-client.d.ts +1 -1
  38. package/dist/resources/v1/ai-image-editor/resource-client.js +1 -1
  39. package/dist/resources/v1/ai-image-generator/request-types.d.ts +1 -1
  40. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +1 -1
  41. package/dist/resources/v1/ai-photo-editor/request-types.d.ts +1 -1
  42. package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +1 -1
  43. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +1 -1
  44. package/dist/resources/v1/ai-voice-cloner/index.d.ts +2 -0
  45. package/dist/resources/v1/ai-voice-cloner/index.js +5 -0
  46. package/dist/resources/v1/ai-voice-cloner/request-types.d.ts +31 -0
  47. package/dist/resources/v1/ai-voice-cloner/request-types.js +77 -0
  48. package/dist/resources/v1/ai-voice-cloner/resource-client.d.ts +55 -0
  49. package/dist/resources/v1/ai-voice-cloner/resource-client.js +99 -0
  50. package/dist/resources/v1/ai-voice-generator/request-types.d.ts +1 -1
  51. package/dist/resources/v1/animation/request-types.d.ts +1 -1
  52. package/dist/resources/v1/audio-projects/resource-client.d.ts +9 -10
  53. package/dist/resources/v1/audio-projects/resource-client.js +8 -9
  54. package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +3 -3
  55. package/dist/resources/v1/face-swap/request-types.d.ts +3 -3
  56. package/dist/resources/v1/face-swap/resource-client.d.ts +20 -2
  57. package/dist/resources/v1/face-swap/resource-client.js +20 -2
  58. package/dist/resources/v1/face-swap-photo/request-types.d.ts +1 -1
  59. package/dist/resources/v1/files/resource-client.d.ts +13 -3
  60. package/dist/resources/v1/files/resource-client.js +54 -3
  61. package/dist/resources/v1/files/resource-client.test.js +45 -0
  62. package/dist/resources/v1/image-background-remover/request-types.d.ts +1 -1
  63. package/dist/resources/v1/image-projects/resource-client.d.ts +9 -10
  64. package/dist/resources/v1/image-projects/resource-client.js +8 -9
  65. package/dist/resources/v1/image-to-video/request-types.d.ts +1 -1
  66. package/dist/resources/v1/image-to-video/resource-client.d.ts +20 -2
  67. package/dist/resources/v1/image-to-video/resource-client.js +20 -2
  68. package/dist/resources/v1/index.d.ts +1 -0
  69. package/dist/resources/v1/index.js +2 -1
  70. package/dist/resources/v1/lip-sync/request-types.d.ts +3 -3
  71. package/dist/resources/v1/lip-sync/resource-client.d.ts +20 -2
  72. package/dist/resources/v1/lip-sync/resource-client.js +20 -2
  73. package/dist/resources/v1/photo-colorizer/request-types.d.ts +1 -1
  74. package/dist/resources/v1/photo-colorizer/resource-client.d.ts +1 -1
  75. package/dist/resources/v1/photo-colorizer/resource-client.js +1 -1
  76. package/dist/resources/v1/resource-client.d.ts +3 -0
  77. package/dist/resources/v1/resource-client.js +6 -0
  78. package/dist/resources/v1/text-to-video/request-types.d.ts +1 -1
  79. package/dist/resources/v1/text-to-video/resource-client.d.ts +20 -2
  80. package/dist/resources/v1/text-to-video/resource-client.js +20 -2
  81. package/dist/resources/v1/video-projects/resource-client.d.ts +9 -10
  82. package/dist/resources/v1/video-projects/resource-client.js +8 -9
  83. package/dist/resources/v1/video-to-video/request-types.d.ts +3 -3
  84. package/dist/resources/v1/video-to-video/resource-client.d.ts +20 -2
  85. package/dist/resources/v1/video-to-video/resource-client.js +20 -2
  86. package/dist/types/index.d.ts +4 -0
  87. package/dist/types/v1-ai-clothes-changer-create-body-assets-garment-type-enum.d.ts +6 -2
  88. package/dist/types/v1-ai-clothes-changer-create-body-assets.d.ts +9 -5
  89. package/dist/types/v1-ai-clothes-changer-create-body-assets.js +6 -2
  90. package/dist/types/v1-ai-clothes-changer-create-body.d.ts +1 -1
  91. package/dist/types/v1-ai-clothes-changer-create-response.d.ts +1 -1
  92. package/dist/types/v1-ai-face-editor-create-body-assets.d.ts +1 -1
  93. package/dist/types/v1-ai-face-editor-create-body.d.ts +1 -1
  94. package/dist/types/v1-ai-face-editor-create-response.d.ts +1 -1
  95. package/dist/types/v1-ai-gif-generator-create-body.d.ts +1 -1
  96. package/dist/types/v1-ai-gif-generator-create-response.d.ts +1 -1
  97. package/dist/types/v1-ai-headshot-generator-create-body-assets.d.ts +1 -1
  98. package/dist/types/v1-ai-headshot-generator-create-body.d.ts +1 -1
  99. package/dist/types/v1-ai-headshot-generator-create-response.d.ts +1 -1
  100. package/dist/types/v1-ai-image-editor-create-body-assets.d.ts +2 -2
  101. package/dist/types/v1-ai-image-editor-create-body.d.ts +1 -1
  102. package/dist/types/v1-ai-image-editor-create-response.d.ts +1 -1
  103. package/dist/types/v1-ai-image-generator-create-body.d.ts +1 -1
  104. package/dist/types/v1-ai-image-generator-create-response.d.ts +1 -1
  105. package/dist/types/v1-ai-image-upscaler-create-body-assets.d.ts +1 -1
  106. package/dist/types/v1-ai-image-upscaler-create-body.d.ts +1 -1
  107. package/dist/types/v1-ai-image-upscaler-create-response.d.ts +1 -1
  108. package/dist/types/v1-ai-meme-generator-create-response.d.ts +1 -1
  109. package/dist/types/v1-ai-photo-editor-create-body-assets.d.ts +1 -1
  110. package/dist/types/v1-ai-photo-editor-create-body.d.ts +1 -1
  111. package/dist/types/v1-ai-photo-editor-create-response.d.ts +1 -1
  112. package/dist/types/v1-ai-qr-code-generator-create-body.d.ts +1 -1
  113. package/dist/types/v1-ai-qr-code-generator-create-response.d.ts +1 -1
  114. package/dist/types/v1-ai-talking-photo-create-body-assets.d.ts +2 -2
  115. package/dist/types/v1-ai-talking-photo-create-body.d.ts +1 -1
  116. package/dist/types/v1-ai-talking-photo-create-response.d.ts +1 -1
  117. package/dist/types/v1-ai-voice-cloner-create-body-assets.d.ts +27 -0
  118. package/dist/types/v1-ai-voice-cloner-create-body-assets.js +67 -0
  119. package/dist/types/v1-ai-voice-cloner-create-body-style.d.ts +22 -0
  120. package/dist/types/v1-ai-voice-cloner-create-body-style.js +67 -0
  121. package/dist/types/v1-ai-voice-cloner-create-body.d.ts +31 -0
  122. package/dist/types/v1-ai-voice-cloner-create-body.js +77 -0
  123. package/dist/types/v1-ai-voice-cloner-create-response.d.ts +29 -0
  124. package/dist/types/v1-ai-voice-cloner-create-response.js +71 -0
  125. package/dist/types/v1-ai-voice-generator-create-body.d.ts +1 -1
  126. package/dist/types/v1-ai-voice-generator-create-response.d.ts +1 -1
  127. package/dist/types/v1-animation-create-body-assets.d.ts +2 -2
  128. package/dist/types/v1-animation-create-body.d.ts +1 -1
  129. package/dist/types/v1-animation-create-response.d.ts +1 -1
  130. package/dist/types/v1-audio-projects-get-response.d.ts +2 -2
  131. package/dist/types/v1-auto-subtitle-generator-create-body-assets.d.ts +1 -1
  132. package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +3 -3
  133. package/dist/types/v1-auto-subtitle-generator-create-response.d.ts +1 -1
  134. package/dist/types/v1-face-detection-create-body-assets.d.ts +1 -1
  135. package/dist/types/v1-face-swap-create-body-assets-face-mappings-item.d.ts +1 -1
  136. package/dist/types/v1-face-swap-create-body-assets-face-swap-mode-enum.d.ts +3 -3
  137. package/dist/types/v1-face-swap-create-body-assets-video-source-enum.d.ts +1 -1
  138. package/dist/types/v1-face-swap-create-body-assets.d.ts +10 -7
  139. package/dist/types/v1-face-swap-create-body.d.ts +3 -3
  140. package/dist/types/v1-face-swap-create-response.d.ts +1 -1
  141. package/dist/types/v1-face-swap-photo-create-body-assets-face-mappings-item.d.ts +1 -1
  142. package/dist/types/v1-face-swap-photo-create-body-assets-face-swap-mode-enum.d.ts +3 -3
  143. package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +5 -5
  144. package/dist/types/v1-face-swap-photo-create-body.d.ts +1 -1
  145. package/dist/types/v1-face-swap-photo-create-response.d.ts +1 -1
  146. package/dist/types/v1-image-background-remover-create-body-assets.d.ts +2 -2
  147. package/dist/types/v1-image-background-remover-create-body.d.ts +1 -1
  148. package/dist/types/v1-image-background-remover-create-response.d.ts +1 -1
  149. package/dist/types/v1-image-projects-get-response.d.ts +2 -2
  150. package/dist/types/v1-image-to-video-create-body-assets.d.ts +1 -1
  151. package/dist/types/v1-image-to-video-create-body.d.ts +1 -1
  152. package/dist/types/v1-image-to-video-create-response.d.ts +1 -1
  153. package/dist/types/v1-lip-sync-create-body-assets-video-source-enum.d.ts +1 -1
  154. package/dist/types/v1-lip-sync-create-body-assets.d.ts +7 -4
  155. package/dist/types/v1-lip-sync-create-body.d.ts +3 -3
  156. package/dist/types/v1-lip-sync-create-response.d.ts +1 -1
  157. package/dist/types/v1-photo-colorizer-create-body-assets.d.ts +1 -1
  158. package/dist/types/v1-photo-colorizer-create-body.d.ts +1 -1
  159. package/dist/types/v1-photo-colorizer-create-response.d.ts +1 -1
  160. package/dist/types/v1-text-to-video-create-body.d.ts +1 -1
  161. package/dist/types/v1-text-to-video-create-response.d.ts +1 -1
  162. package/dist/types/v1-video-projects-get-response.d.ts +4 -4
  163. package/dist/types/v1-video-to-video-create-body-assets-video-source-enum.d.ts +1 -1
  164. package/dist/types/v1-video-to-video-create-body-assets.d.ts +6 -3
  165. package/dist/types/v1-video-to-video-create-body.d.ts +3 -3
  166. package/dist/types/v1-video-to-video-create-response.d.ts +1 -1
  167. package/package.json +2 -2
@@ -14,7 +14,7 @@ export type V1ImageProjectsGetResponse = {
14
14
  creditsCharged: number;
15
15
  downloads: V1ImageProjectsGetResponseDownloadsItem[];
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 V1ImageProjectsGetResponse = {
22
22
  */
23
23
  error: V1ImageProjectsGetResponseError | null;
24
24
  /**
25
- * 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
25
+ * 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.
26
26
  */
27
27
  id: string;
28
28
  /**
@@ -8,7 +8,7 @@ export type V1ImageToVideoCreateBodyAssets = {
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;
@@ -24,7 +24,7 @@ export type V1ImageToVideoCreateBody = {
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
  /**
@@ -16,7 +16,7 @@ export type V1ImageToVideoCreateResponse = {
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
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
- * V1LipSyncCreateBodyAssetsVideoSourceEnum
2
+ * Choose your video source.
3
3
  */
4
4
  export type V1LipSyncCreateBodyAssetsVideoSourceEnum = "file" | "youtube";
@@ -8,22 +8,25 @@ export type V1LipSyncCreateBodyAssets = {
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;
15
15
  /**
16
- * Required if `video_source` is `file`. This value is either
16
+ * Your video file. Required if `video_source` is `file`. This value is either
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
  videoFilePath?: string | undefined;
24
+ /**
25
+ * Choose your video source.
26
+ */
24
27
  videoSource: "file" | "youtube";
25
28
  /**
26
- * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
29
+ * YouTube URL (required if `video_source` is `youtube`).
27
30
  */
28
31
  youtubeUrl?: string | undefined;
29
32
  };
@@ -10,7 +10,7 @@ export type V1LipSyncCreateBody = {
10
10
  */
11
11
  assets: V1LipSyncCreateBodyAssets;
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
  /**
@@ -28,11 +28,11 @@ export type V1LipSyncCreateBody = {
28
28
  */
29
29
  maxFpsLimit?: number | undefined;
30
30
  /**
31
- * The name of video. This value is mainly used for your own identification of the video.
31
+ * Give your video a custom name for easy identification.
32
32
  */
33
33
  name?: string | undefined;
34
34
  /**
35
- * 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.
35
+ * Start time of your clip (seconds). Must be ≥ 0.
36
36
  */
37
37
  startSeconds: number;
38
38
  /**
@@ -16,7 +16,7 @@ export type V1LipSyncCreateResponse = {
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 V1PhotoColorizerCreateBodyAssets = {
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;
@@ -9,7 +9,7 @@ export type V1PhotoColorizerCreateBody = {
9
9
  */
10
10
  assets: V1PhotoColorizerCreateBodyAssets;
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 V1PhotoColorizerCreateResponse = {
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
  };
@@ -13,7 +13,7 @@ export type V1TextToVideoCreateBody = {
13
13
  */
14
14
  endSeconds: number;
15
15
  /**
16
- * The name of video. This value is mainly used for your own identification of the video.
16
+ * Give your video a custom name for easy identification.
17
17
  */
18
18
  name?: string | undefined;
19
19
  /**
@@ -16,7 +16,7 @@ export type V1TextToVideoCreateResponse = {
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
  };
@@ -19,11 +19,11 @@ export type V1VideoProjectsGetResponse = {
19
19
  download: V1VideoProjectsGetResponseDownload | null;
20
20
  downloads: V1VideoProjectsGetResponseDownloadsItem[];
21
21
  /**
22
- * Indicates whether the resource is deleted
22
+ * Whether this resource is active. If false, it is deleted.
23
23
  */
24
24
  enabled: boolean;
25
25
  /**
26
- * 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.
26
+ * End time of your clip (seconds). Must be greater than start_seconds.
27
27
  */
28
28
  endSeconds: number;
29
29
  /**
@@ -39,7 +39,7 @@ export type V1VideoProjectsGetResponse = {
39
39
  */
40
40
  height: number;
41
41
  /**
42
- * 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
42
+ * 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.
43
43
  */
44
44
  id: string;
45
45
  /**
@@ -47,7 +47,7 @@ export type V1VideoProjectsGetResponse = {
47
47
  */
48
48
  name: string | null;
49
49
  /**
50
- * 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.
50
+ * Start time of your clip (seconds). Must be ≥ 0.
51
51
  */
52
52
  startSeconds: number;
53
53
  /**
@@ -1,4 +1,4 @@
1
1
  /**
2
- * V1VideoToVideoCreateBodyAssetsVideoSourceEnum
2
+ * Choose your video source.
3
3
  */
4
4
  export type V1VideoToVideoCreateBodyAssetsVideoSourceEnum = "file" | "youtube";
@@ -4,17 +4,20 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1VideoToVideoCreateBodyAssets = {
6
6
  /**
7
- * Required if `video_source` is `file`. This value is either
7
+ * Your video file. Required if `video_source` is `file`. This value is either
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 | undefined;
15
+ /**
16
+ * Choose your video source.
17
+ */
15
18
  videoSource: "file" | "youtube";
16
19
  /**
17
- * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
20
+ * YouTube URL (required if `video_source` is `youtube`).
18
21
  */
19
22
  youtubeUrl?: string | undefined;
20
23
  };
@@ -10,7 +10,7 @@ export type V1VideoToVideoCreateBody = {
10
10
  */
11
11
  assets: V1VideoToVideoCreateBodyAssets;
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
  /**
@@ -30,11 +30,11 @@ export type V1VideoToVideoCreateBody = {
30
30
  */
31
31
  height?: number | null | undefined;
32
32
  /**
33
- * The name of video. This value is mainly used for your own identification of the video.
33
+ * Give your video a custom name for easy identification.
34
34
  */
35
35
  name?: string | undefined;
36
36
  /**
37
- * 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.
37
+ * Start time of your clip (seconds). Must be ≥ 0.
38
38
  */
39
39
  startSeconds: number;
40
40
  style: V1VideoToVideoCreateBodyStyle;
@@ -16,7 +16,7 @@ export type V1VideoToVideoCreateResponse = {
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.43.1",
3
+ "version": "0.45.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -59,4 +59,4 @@
59
59
  "type": "git",
60
60
  "url": "git://github.com/magichourhq/magic-hour-node.git"
61
61
  }
62
- }
62
+ }