magic-hour 0.0.9 → 0.2.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 (164) hide show
  1. package/README.md +59 -4
  2. package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +3 -0
  3. package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +2 -0
  4. package/dist/resources/v1/ai-headshot-generator/resource-client.js +2 -0
  5. package/dist/resources/v1/ai-image-generator/request-types.d.ts +3 -0
  6. package/dist/resources/v1/ai-image-generator/resource-client.d.ts +2 -0
  7. package/dist/resources/v1/ai-image-generator/resource-client.js +2 -0
  8. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +3 -0
  9. package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +2 -0
  10. package/dist/resources/v1/ai-image-upscaler/resource-client.js +2 -0
  11. package/dist/resources/v1/ai-photo-editor/index.d.ts +5 -0
  12. package/dist/resources/v1/ai-photo-editor/index.js +8 -0
  13. package/dist/resources/v1/ai-photo-editor/request-types.d.ts +10 -0
  14. package/dist/resources/v1/ai-photo-editor/request-types.js +5 -0
  15. package/dist/resources/v1/ai-photo-editor/resource-client.d.ts +17 -0
  16. package/dist/resources/v1/ai-photo-editor/resource-client.js +31 -0
  17. package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +3 -0
  18. package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +2 -0
  19. package/dist/resources/v1/ai-qr-code-generator/resource-client.js +2 -0
  20. package/dist/resources/v1/face-swap/request-types.d.ts +3 -0
  21. package/dist/resources/v1/face-swap/resource-client.d.ts +2 -0
  22. package/dist/resources/v1/face-swap/resource-client.js +2 -0
  23. package/dist/resources/v1/face-swap-photo/request-types.d.ts +3 -0
  24. package/dist/resources/v1/face-swap-photo/resource-client.d.ts +2 -0
  25. package/dist/resources/v1/face-swap-photo/resource-client.js +2 -0
  26. package/dist/resources/v1/files/upload-urls/request-types.d.ts +3 -0
  27. package/dist/resources/v1/files/upload-urls/resource-client.d.ts +2 -0
  28. package/dist/resources/v1/files/upload-urls/resource-client.js +2 -0
  29. package/dist/resources/v1/image-projects/request-types.d.ts +3 -0
  30. package/dist/resources/v1/image-projects/resource-client.d.ts +2 -0
  31. package/dist/resources/v1/image-projects/resource-client.js +2 -0
  32. package/dist/resources/v1/image-to-video/request-types.d.ts +3 -0
  33. package/dist/resources/v1/image-to-video/resource-client.d.ts +2 -0
  34. package/dist/resources/v1/image-to-video/resource-client.js +2 -0
  35. package/dist/resources/v1/index.d.ts +1 -0
  36. package/dist/resources/v1/index.js +2 -1
  37. package/dist/resources/v1/lip-sync/request-types.d.ts +3 -0
  38. package/dist/resources/v1/lip-sync/resource-client.d.ts +2 -0
  39. package/dist/resources/v1/lip-sync/resource-client.js +2 -0
  40. package/dist/resources/v1/resource-client.d.ts +2 -0
  41. package/dist/resources/v1/resource-client.js +2 -0
  42. package/dist/resources/v1/text-to-video/request-types.d.ts +3 -0
  43. package/dist/resources/v1/text-to-video/resource-client.d.ts +2 -0
  44. package/dist/resources/v1/text-to-video/resource-client.js +2 -0
  45. package/dist/resources/v1/video-projects/request-types.d.ts +3 -0
  46. package/dist/resources/v1/video-projects/resource-client.d.ts +2 -0
  47. package/dist/resources/v1/video-projects/resource-client.js +2 -0
  48. package/dist/resources/v1/video-to-video/request-types.d.ts +3 -0
  49. package/dist/resources/v1/video-to-video/resource-client.d.ts +2 -0
  50. package/dist/resources/v1/video-to-video/resource-client.js +2 -0
  51. package/dist/types/get-v1-image-projects-id-response-downloads-item.d.ts +3 -0
  52. package/dist/types/get-v1-image-projects-id-response-type-enum.d.ts +1 -1
  53. package/dist/types/get-v1-image-projects-id-response.d.ts +3 -0
  54. package/dist/types/get-v1-image-projects-id-response400.d.ts +3 -0
  55. package/dist/types/get-v1-image-projects-id-response401.d.ts +3 -0
  56. package/dist/types/get-v1-image-projects-id-response404.d.ts +3 -0
  57. package/dist/types/get-v1-video-projects-id-response-download.d.ts +3 -0
  58. package/dist/types/get-v1-video-projects-id-response.d.ts +5 -2
  59. package/dist/types/get-v1-video-projects-id-response400.d.ts +3 -0
  60. package/dist/types/get-v1-video-projects-id-response401.d.ts +3 -0
  61. package/dist/types/get-v1-video-projects-id-response404.d.ts +3 -0
  62. package/dist/types/index.d.ts +10 -0
  63. package/dist/types/post-v1-ai-headshot-generator-body-assets.d.ts +4 -1
  64. package/dist/types/post-v1-ai-headshot-generator-body.d.ts +3 -0
  65. package/dist/types/post-v1-ai-headshot-generator-response.d.ts +3 -0
  66. package/dist/types/post-v1-ai-headshot-generator-response400.d.ts +3 -0
  67. package/dist/types/post-v1-ai-headshot-generator-response401.d.ts +3 -0
  68. package/dist/types/post-v1-ai-headshot-generator-response404.d.ts +3 -0
  69. package/dist/types/post-v1-ai-headshot-generator-response422.d.ts +3 -0
  70. package/dist/types/post-v1-ai-image-generator-body-style.d.ts +3 -0
  71. package/dist/types/post-v1-ai-image-generator-body.d.ts +3 -0
  72. package/dist/types/post-v1-ai-image-generator-response.d.ts +3 -0
  73. package/dist/types/post-v1-ai-image-generator-response400.d.ts +3 -0
  74. package/dist/types/post-v1-ai-image-generator-response401.d.ts +3 -0
  75. package/dist/types/post-v1-ai-image-generator-response404.d.ts +3 -0
  76. package/dist/types/post-v1-ai-image-generator-response422.d.ts +3 -0
  77. package/dist/types/post-v1-ai-image-upscaler-body-assets.d.ts +4 -1
  78. package/dist/types/post-v1-ai-image-upscaler-body-style.d.ts +4 -1
  79. package/dist/types/post-v1-ai-image-upscaler-body.d.ts +3 -0
  80. package/dist/types/post-v1-ai-image-upscaler-response.d.ts +3 -0
  81. package/dist/types/post-v1-ai-image-upscaler-response400.d.ts +3 -0
  82. package/dist/types/post-v1-ai-image-upscaler-response401.d.ts +3 -0
  83. package/dist/types/post-v1-ai-image-upscaler-response404.d.ts +3 -0
  84. package/dist/types/post-v1-ai-image-upscaler-response422.d.ts +3 -0
  85. package/dist/types/post-v1-ai-photo-editor-body-assets.d.ts +12 -0
  86. package/dist/types/post-v1-ai-photo-editor-body-assets.js +5 -0
  87. package/dist/types/post-v1-ai-photo-editor-body-style.d.ts +28 -0
  88. package/dist/types/post-v1-ai-photo-editor-body-style.js +5 -0
  89. package/dist/types/post-v1-ai-photo-editor-body.d.ts +26 -0
  90. package/dist/types/post-v1-ai-photo-editor-body.js +5 -0
  91. package/dist/types/post-v1-ai-photo-editor-response.d.ts +13 -0
  92. package/dist/types/post-v1-ai-photo-editor-response.js +5 -0
  93. package/dist/types/post-v1-ai-photo-editor-response400.d.ts +9 -0
  94. package/dist/types/post-v1-ai-photo-editor-response400.js +5 -0
  95. package/dist/types/post-v1-ai-photo-editor-response401-message-enum.d.ts +4 -0
  96. package/dist/types/post-v1-ai-photo-editor-response401-message-enum.js +2 -0
  97. package/dist/types/post-v1-ai-photo-editor-response401.d.ts +10 -0
  98. package/dist/types/post-v1-ai-photo-editor-response401.js +5 -0
  99. package/dist/types/post-v1-ai-photo-editor-response404-message-enum.d.ts +4 -0
  100. package/dist/types/post-v1-ai-photo-editor-response404-message-enum.js +2 -0
  101. package/dist/types/post-v1-ai-photo-editor-response404.d.ts +10 -0
  102. package/dist/types/post-v1-ai-photo-editor-response404.js +5 -0
  103. package/dist/types/post-v1-ai-photo-editor-response422.d.ts +9 -0
  104. package/dist/types/post-v1-ai-photo-editor-response422.js +5 -0
  105. package/dist/types/post-v1-ai-qr-code-generator-body-style.d.ts +3 -0
  106. package/dist/types/post-v1-ai-qr-code-generator-body.d.ts +3 -0
  107. package/dist/types/post-v1-ai-qr-code-generator-response.d.ts +3 -0
  108. package/dist/types/post-v1-ai-qr-code-generator-response400.d.ts +3 -0
  109. package/dist/types/post-v1-ai-qr-code-generator-response401.d.ts +3 -0
  110. package/dist/types/post-v1-ai-qr-code-generator-response404.d.ts +3 -0
  111. package/dist/types/post-v1-ai-qr-code-generator-response422.d.ts +3 -0
  112. package/dist/types/post-v1-face-swap-body-assets.d.ts +6 -3
  113. package/dist/types/post-v1-face-swap-body.d.ts +4 -1
  114. package/dist/types/post-v1-face-swap-photo-body-assets.d.ts +5 -2
  115. package/dist/types/post-v1-face-swap-photo-body.d.ts +3 -0
  116. package/dist/types/post-v1-face-swap-photo-response.d.ts +3 -0
  117. package/dist/types/post-v1-face-swap-photo-response400.d.ts +3 -0
  118. package/dist/types/post-v1-face-swap-photo-response401.d.ts +3 -0
  119. package/dist/types/post-v1-face-swap-photo-response404.d.ts +3 -0
  120. package/dist/types/post-v1-face-swap-photo-response422.d.ts +3 -0
  121. package/dist/types/post-v1-face-swap-response.d.ts +3 -0
  122. package/dist/types/post-v1-face-swap-response400.d.ts +3 -0
  123. package/dist/types/post-v1-face-swap-response401.d.ts +3 -0
  124. package/dist/types/post-v1-face-swap-response404.d.ts +3 -0
  125. package/dist/types/post-v1-face-swap-response422.d.ts +3 -0
  126. package/dist/types/post-v1-files-upload-urls-body-items-item.d.ts +3 -0
  127. package/dist/types/post-v1-files-upload-urls-body.d.ts +3 -0
  128. package/dist/types/post-v1-files-upload-urls-response-items-item.d.ts +12 -0
  129. package/dist/types/post-v1-files-upload-urls-response.d.ts +3 -0
  130. package/dist/types/post-v1-files-upload-urls-response400.d.ts +3 -0
  131. package/dist/types/post-v1-files-upload-urls-response401.d.ts +3 -0
  132. package/dist/types/post-v1-files-upload-urls-response404.d.ts +3 -0
  133. package/dist/types/post-v1-files-upload-urls-response422.d.ts +3 -0
  134. package/dist/types/post-v1-image-to-video-body-assets.d.ts +4 -1
  135. package/dist/types/post-v1-image-to-video-body-style.d.ts +3 -0
  136. package/dist/types/post-v1-image-to-video-body.d.ts +3 -0
  137. package/dist/types/post-v1-image-to-video-response.d.ts +3 -0
  138. package/dist/types/post-v1-image-to-video-response400.d.ts +3 -0
  139. package/dist/types/post-v1-image-to-video-response401.d.ts +3 -0
  140. package/dist/types/post-v1-image-to-video-response404.d.ts +3 -0
  141. package/dist/types/post-v1-image-to-video-response422.d.ts +3 -0
  142. package/dist/types/post-v1-lip-sync-body-assets.d.ts +6 -3
  143. package/dist/types/post-v1-lip-sync-body.d.ts +8 -1
  144. package/dist/types/post-v1-lip-sync-response.d.ts +3 -0
  145. package/dist/types/post-v1-lip-sync-response400.d.ts +3 -0
  146. package/dist/types/post-v1-lip-sync-response401.d.ts +3 -0
  147. package/dist/types/post-v1-lip-sync-response404.d.ts +3 -0
  148. package/dist/types/post-v1-lip-sync-response422.d.ts +3 -0
  149. package/dist/types/post-v1-text-to-video-body-style.d.ts +3 -0
  150. package/dist/types/post-v1-text-to-video-body.d.ts +3 -0
  151. package/dist/types/post-v1-text-to-video-response.d.ts +3 -0
  152. package/dist/types/post-v1-text-to-video-response400.d.ts +3 -0
  153. package/dist/types/post-v1-text-to-video-response401.d.ts +3 -0
  154. package/dist/types/post-v1-text-to-video-response404.d.ts +3 -0
  155. package/dist/types/post-v1-text-to-video-response422.d.ts +3 -0
  156. package/dist/types/post-v1-video-to-video-body-assets.d.ts +5 -2
  157. package/dist/types/post-v1-video-to-video-body-style.d.ts +14 -11
  158. package/dist/types/post-v1-video-to-video-body.d.ts +6 -3
  159. package/dist/types/post-v1-video-to-video-response.d.ts +3 -0
  160. package/dist/types/post-v1-video-to-video-response400.d.ts +3 -0
  161. package/dist/types/post-v1-video-to-video-response401.d.ts +3 -0
  162. package/dist/types/post-v1-video-to-video-response404.d.ts +3 -0
  163. package/dist/types/post-v1-video-to-video-response422.d.ts +3 -0
  164. package/package.json +12 -2
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type PostV1AiQrCodeGeneratorResponse401 = {
6
9
  message: types.PostV1AiQrCodeGeneratorResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type PostV1AiQrCodeGeneratorResponse404 = {
6
9
  message: types.PostV1AiQrCodeGeneratorResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Unprocessable Entity
6
+ */
4
7
  export declare type PostV1AiQrCodeGeneratorResponse422 = {
5
8
  message: string;
6
9
  };
@@ -2,18 +2,21 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
7
+ */
5
8
  export declare type PostV1FaceSwapBodyAssets = {
6
9
  /**
7
- * The path of the input image. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
10
+ * The path of the input image. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
8
11
  */
9
12
  image_file_path: string;
10
13
  /**
11
- * The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
14
+ * The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
12
15
  */
13
16
  video_file_path?: string;
14
17
  video_source: types.PostV1FaceSwapBodyAssetsVideoSourceEnum;
15
18
  /**
16
- * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
19
+ * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
17
20
  */
18
21
  youtube_url?: string;
19
22
  };
@@ -2,9 +2,12 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1FaceSwapBody
7
+ */
5
8
  export declare type PostV1FaceSwapBody = {
6
9
  /**
7
- * Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
10
+ * Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
8
11
  */
9
12
  assets: types.PostV1FaceSwapBodyAssets;
10
13
  /**
@@ -1,13 +1,16 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Provide the assets for face swap photo
6
+ */
4
7
  export declare type PostV1FaceSwapPhotoBodyAssets = {
5
8
  /**
6
- * This is the image from which the face is extracted. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
9
+ * This is the image from which the face is extracted. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
7
10
  */
8
11
  source_file_path: string;
9
12
  /**
10
- * This is the image where the face from the source image will be placed. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
13
+ * This is the image where the face from the source image will be placed. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
11
14
  */
12
15
  target_file_path: string;
13
16
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1FaceSwapPhotoBody
7
+ */
5
8
  export declare type PostV1FaceSwapPhotoBody = {
6
9
  /**
7
10
  * Provide the assets for face swap photo
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Success
6
+ */
4
7
  export declare type PostV1FaceSwapPhotoResponse = {
5
8
  frame_cost: number;
6
9
  /**
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The request is invalid
6
+ */
4
7
  export declare type PostV1FaceSwapPhotoResponse400 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type PostV1FaceSwapPhotoResponse401 = {
6
9
  message: types.PostV1FaceSwapPhotoResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type PostV1FaceSwapPhotoResponse404 = {
6
9
  message: types.PostV1FaceSwapPhotoResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Unprocessable Entity
6
+ */
4
7
  export declare type PostV1FaceSwapPhotoResponse422 = {
5
8
  message: string;
6
9
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Success
6
+ */
4
7
  export declare type PostV1FaceSwapResponse = {
5
8
  /**
6
9
  * Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The request is invalid
6
+ */
4
7
  export declare type PostV1FaceSwapResponse400 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type PostV1FaceSwapResponse401 = {
6
9
  message: types.PostV1FaceSwapResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type PostV1FaceSwapResponse404 = {
6
9
  message: types.PostV1FaceSwapResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Unprocessable Entity
6
+ */
4
7
  export declare type PostV1FaceSwapResponse422 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1FilesUploadUrlsBodyItemsItem
7
+ */
5
8
  export declare type PostV1FilesUploadUrlsBodyItemsItem = {
6
9
  /**
7
10
  * the extension of the file to upload. Do not include the dot (.) before the extension.
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1FilesUploadUrlsBody
7
+ */
5
8
  export declare type PostV1FilesUploadUrlsBody = {
6
9
  items: types.PostV1FilesUploadUrlsBodyItemsItem[];
7
10
  };
@@ -1,8 +1,20 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * PostV1FilesUploadUrlsResponseItemsItem
6
+ */
4
7
  export declare type PostV1FilesUploadUrlsResponseItemsItem = {
8
+ /**
9
+ * when the upload url expires, and will need to request a new one.
10
+ */
5
11
  expires_at: string;
12
+ /**
13
+ * this value is used in APIs that needs assets, such as image_file_path, video_file_path, and audio_file_path
14
+ */
6
15
  file_path: string;
16
+ /**
17
+ * Used to upload the file to storage, send a PUT request with the file as data to upload.
18
+ */
7
19
  upload_url: string;
8
20
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Success
7
+ */
5
8
  export declare type PostV1FilesUploadUrlsResponse = {
6
9
  items: types.PostV1FilesUploadUrlsResponseItemsItem[];
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The request is invalid
6
+ */
4
7
  export declare type PostV1FilesUploadUrlsResponse400 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type PostV1FilesUploadUrlsResponse401 = {
6
9
  message: types.PostV1FilesUploadUrlsResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type PostV1FilesUploadUrlsResponse404 = {
6
9
  message: types.PostV1FilesUploadUrlsResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Unprocessable Entity
6
+ */
4
7
  export declare type PostV1FilesUploadUrlsResponse422 = {
5
8
  message: string;
6
9
  };
@@ -1,9 +1,12 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Provide the assets for image-to-video.
6
+ */
4
7
  export declare type PostV1ImageToVideoBodyAssets = {
5
8
  /**
6
- * The path of the image file. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
9
+ * The path of the image file. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
7
10
  */
8
11
  image_file_path: string;
9
12
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * PostV1ImageToVideoBodyStyle
6
+ */
4
7
  export declare type PostV1ImageToVideoBodyStyle = {
5
8
  /**
6
9
  * The prompt used for the video.
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1ImageToVideoBody
7
+ */
5
8
  export declare type PostV1ImageToVideoBody = {
6
9
  /**
7
10
  * Provide the assets for image-to-video.
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Success
6
+ */
4
7
  export declare type PostV1ImageToVideoResponse = {
5
8
  /**
6
9
  * Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The request is invalid
6
+ */
4
7
  export declare type PostV1ImageToVideoResponse400 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type PostV1ImageToVideoResponse401 = {
6
9
  message: types.PostV1ImageToVideoResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type PostV1ImageToVideoResponse404 = {
6
9
  message: types.PostV1ImageToVideoResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Unprocessable Entity
6
+ */
4
7
  export declare type PostV1ImageToVideoResponse422 = {
5
8
  message: string;
6
9
  };
@@ -2,18 +2,21 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
7
+ */
5
8
  export declare type PostV1LipSyncBodyAssets = {
6
9
  /**
7
- * The path of the audio file. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
10
+ * The path of the audio file. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
8
11
  */
9
12
  audio_file_path: string;
10
13
  /**
11
- * The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
14
+ * The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
12
15
  */
13
16
  video_file_path?: string;
14
17
  video_source: types.PostV1LipSyncBodyAssetsVideoSourceEnum;
15
18
  /**
16
- * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
19
+ * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
17
20
  */
18
21
  youtube_url?: string;
19
22
  };
@@ -2,9 +2,12 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1LipSyncBody
7
+ */
5
8
  export declare type PostV1LipSyncBody = {
6
9
  /**
7
- * Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
10
+ * Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
8
11
  */
9
12
  assets: types.PostV1LipSyncBodyAssets;
10
13
  /**
@@ -15,6 +18,10 @@ export declare type PostV1LipSyncBody = {
15
18
  * The height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
16
19
  */
17
20
  height: number;
21
+ /**
22
+ * Defines the maximum FPS (frames per second) for the output video. If the input video's FPS is lower than this limit, the output video will retain the input FPS. This is useful for reducing unnecessary frame usage in scenarios where high FPS is not required.
23
+ */
24
+ max_fps_limit?: number;
18
25
  /**
19
26
  * The name of video
20
27
  */
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Success
6
+ */
4
7
  export declare type PostV1LipSyncResponse = {
5
8
  /**
6
9
  * Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The request is invalid
6
+ */
4
7
  export declare type PostV1LipSyncResponse400 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type PostV1LipSyncResponse401 = {
6
9
  message: types.PostV1LipSyncResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type PostV1LipSyncResponse404 = {
6
9
  message: types.PostV1LipSyncResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Unprocessable Entity
6
+ */
4
7
  export declare type PostV1LipSyncResponse422 = {
5
8
  message: string;
6
9
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * PostV1TextToVideoBodyStyle
6
+ */
4
7
  export declare type PostV1TextToVideoBodyStyle = {
5
8
  /**
6
9
  * The prompt used for the video.
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1TextToVideoBody
7
+ */
5
8
  export declare type PostV1TextToVideoBody = {
6
9
  /**
7
10
  * The total duration of the output video in seconds.
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Success
6
+ */
4
7
  export declare type PostV1TextToVideoResponse = {
5
8
  /**
6
9
  * Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The request is invalid
6
+ */
4
7
  export declare type PostV1TextToVideoResponse400 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type PostV1TextToVideoResponse401 = {
6
9
  message: types.PostV1TextToVideoResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type PostV1TextToVideoResponse404 = {
6
9
  message: types.PostV1TextToVideoResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Unprocessable Entity
6
+ */
4
7
  export declare type PostV1TextToVideoResponse422 = {
5
8
  message: string;
6
9
  };
@@ -2,14 +2,17 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
7
+ */
5
8
  export declare type PostV1VideoToVideoBodyAssets = {
6
9
  /**
7
- * The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
10
+ * The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
8
11
  */
9
12
  video_file_path?: string;
10
13
  video_source: types.PostV1VideoToVideoBodyAssetsVideoSourceEnum;
11
14
  /**
12
- * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
15
+ * Using a youtube video as the input source. This field is required if `video_source` is `youtube`
13
16
  */
14
17
  youtube_url?: string;
15
18
  };