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
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
- export declare type GetV1ImageProjectsIdResponseTypeEnum = "AI_HEADSHOT" | "AI_IMAGE" | "FACE_SWAP" | "IMAGE_UPSCALER" | "QR_CODE";
4
+ export declare type GetV1ImageProjectsIdResponseTypeEnum = "AI_HEADSHOT" | "AI_IMAGE" | "FACE_SWAP" | "IMAGE_UPSCALER" | "PHOTO_EDITOR" | "QR_CODE";
@@ -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 GetV1ImageProjectsIdResponse = {
6
9
  created_at: string;
7
10
  downloads: types.GetV1ImageProjectsIdResponseDownloadsItem[];
@@ -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 GetV1ImageProjectsIdResponse400 = {
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 GetV1ImageProjectsIdResponse401 = {
6
9
  message: types.GetV1ImageProjectsIdResponse401MessageEnum;
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 GetV1ImageProjectsIdResponse404 = {
6
9
  message: types.GetV1ImageProjectsIdResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The download url and expiration date of the video project
6
+ */
4
7
  export declare type GetV1VideoProjectsIdResponseDownload = {
5
8
  expires_at: string;
6
9
  url: string;
@@ -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 GetV1VideoProjectsIdResponse = {
6
9
  created_at: string;
7
10
  /**
@@ -13,7 +16,7 @@ export declare type GetV1VideoProjectsIdResponse = {
13
16
  */
14
17
  end_seconds: number;
15
18
  /**
16
- * Frame rate of the video. If the status is not 'complete', the frame rate is an estimate and will be adjusted when the video completes.
19
+ * Frame rate of the video. If the status is not 'complete', the frame rate is an estimate and will be adjusted when the video completes.
17
20
  */
18
21
  fps: number;
19
22
  /**
@@ -37,7 +40,7 @@ export declare type GetV1VideoProjectsIdResponse = {
37
40
  */
38
41
  status: types.GetV1VideoProjectsIdResponseStatusEnum;
39
42
  /**
40
- * The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
43
+ * The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
41
44
  */
42
45
  total_frame_cost: number;
43
46
  type: types.GetV1VideoProjectsIdResponseTypeEnum;
@@ -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 GetV1VideoProjectsIdResponse400 = {
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 GetV1VideoProjectsIdResponse401 = {
6
9
  message: types.GetV1VideoProjectsIdResponse401MessageEnum;
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 GetV1VideoProjectsIdResponse404 = {
6
9
  message: types.GetV1VideoProjectsIdResponse404MessageEnum;
7
10
  };
@@ -49,6 +49,16 @@ export { PostV1AiImageUpscalerResponse401MessageEnum } from "./post-v1-ai-image-
49
49
  export { PostV1AiImageUpscalerResponse404 } from "./post-v1-ai-image-upscaler-response404";
50
50
  export { PostV1AiImageUpscalerResponse404MessageEnum } from "./post-v1-ai-image-upscaler-response404-message-enum";
51
51
  export { PostV1AiImageUpscalerResponse422 } from "./post-v1-ai-image-upscaler-response422";
52
+ export { PostV1AiPhotoEditorBody } from "./post-v1-ai-photo-editor-body";
53
+ export { PostV1AiPhotoEditorBodyAssets } from "./post-v1-ai-photo-editor-body-assets";
54
+ export { PostV1AiPhotoEditorBodyStyle } from "./post-v1-ai-photo-editor-body-style";
55
+ export { PostV1AiPhotoEditorResponse } from "./post-v1-ai-photo-editor-response";
56
+ export { PostV1AiPhotoEditorResponse400 } from "./post-v1-ai-photo-editor-response400";
57
+ export { PostV1AiPhotoEditorResponse401 } from "./post-v1-ai-photo-editor-response401";
58
+ export { PostV1AiPhotoEditorResponse401MessageEnum } from "./post-v1-ai-photo-editor-response401-message-enum";
59
+ export { PostV1AiPhotoEditorResponse404 } from "./post-v1-ai-photo-editor-response404";
60
+ export { PostV1AiPhotoEditorResponse404MessageEnum } from "./post-v1-ai-photo-editor-response404-message-enum";
61
+ export { PostV1AiPhotoEditorResponse422 } from "./post-v1-ai-photo-editor-response422";
52
62
  export { PostV1AiQrCodeGeneratorBody } from "./post-v1-ai-qr-code-generator-body";
53
63
  export { PostV1AiQrCodeGeneratorBodyStyle } from "./post-v1-ai-qr-code-generator-body-style";
54
64
  export { PostV1AiQrCodeGeneratorResponse } from "./post-v1-ai-qr-code-generator-response";
@@ -1,9 +1,12 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Provide the assets for headshot photo
6
+ */
4
7
  export declare type PostV1AiHeadshotGeneratorBodyAssets = {
5
8
  /**
6
- * The image used to generate the headshot. This image must contain one detectable face. 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 image used to generate the headshot. This image must contain one detectable face. 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
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1AiHeadshotGeneratorBody
7
+ */
5
8
  export declare type PostV1AiHeadshotGeneratorBody = {
6
9
  /**
7
10
  * Provide the assets for headshot 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 PostV1AiHeadshotGeneratorResponse = {
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 PostV1AiHeadshotGeneratorResponse400 = {
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 PostV1AiHeadshotGeneratorResponse401 = {
6
9
  message: types.PostV1AiHeadshotGeneratorResponse401MessageEnum;
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 PostV1AiHeadshotGeneratorResponse404 = {
6
9
  message: types.PostV1AiHeadshotGeneratorResponse404MessageEnum;
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 PostV1AiHeadshotGeneratorResponse422 = {
5
8
  message: string;
6
9
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * PostV1AiImageGeneratorBodyStyle
6
+ */
4
7
  export declare type PostV1AiImageGeneratorBodyStyle = {
5
8
  /**
6
9
  * The prompt used for the image.
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1AiImageGeneratorBody
7
+ */
5
8
  export declare type PostV1AiImageGeneratorBody = {
6
9
  /**
7
10
  * number to images to generate
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Success
6
+ */
4
7
  export declare type PostV1AiImageGeneratorResponse = {
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 PostV1AiImageGeneratorResponse400 = {
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 PostV1AiImageGeneratorResponse401 = {
6
9
  message: types.PostV1AiImageGeneratorResponse401MessageEnum;
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 PostV1AiImageGeneratorResponse404 = {
6
9
  message: types.PostV1AiImageGeneratorResponse404MessageEnum;
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 PostV1AiImageGeneratorResponse422 = {
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 upscaling
6
+ */
4
7
  export declare type PostV1AiImageUpscalerBodyAssets = {
5
8
  /**
6
- * The image to upscale. 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 image to upscale. 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
  };
@@ -2,10 +2,13 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1AiImageUpscalerBodyStyle
7
+ */
5
8
  export declare type PostV1AiImageUpscalerBodyStyle = {
6
9
  enhancement: types.PostV1AiImageUpscalerBodyStyleEnhancementEnum;
7
10
  /**
8
- * A prompt to guide the final image. This value is ignored if `enhancement` is not Creative
11
+ * A prompt to guide the final image. This value is ignored if `enhancement` is not Creative
9
12
  */
10
13
  prompt?: string;
11
14
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1AiImageUpscalerBody
7
+ */
5
8
  export declare type PostV1AiImageUpscalerBody = {
6
9
  /**
7
10
  * Provide the assets for upscaling
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Success
6
+ */
4
7
  export declare type PostV1AiImageUpscalerResponse = {
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 PostV1AiImageUpscalerResponse400 = {
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 PostV1AiImageUpscalerResponse401 = {
6
9
  message: types.PostV1AiImageUpscalerResponse401MessageEnum;
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 PostV1AiImageUpscalerResponse404 = {
6
9
  message: types.PostV1AiImageUpscalerResponse404MessageEnum;
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 PostV1AiImageUpscalerResponse422 = {
5
8
  message: string;
6
9
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ /**
5
+ * Provide the assets for photo editor
6
+ */
7
+ export declare type PostV1AiPhotoEditorBodyAssets = {
8
+ /**
9
+ * The image used to generate the output. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
10
+ */
11
+ image_file_path: string;
12
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by Sideko (sideko.dev)
4
+ **/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ /**
5
+ * PostV1AiPhotoEditorBodyStyle
6
+ */
7
+ export declare type PostV1AiPhotoEditorBodyStyle = {
8
+ /**
9
+ * Use this to describe what your input image is. This helps maintain aspects of the image you don't want to change.
10
+ */
11
+ image_description: string;
12
+ /**
13
+ * Determines the input image's influence. Higher values align the output more with the initial image.
14
+ */
15
+ likeness_strength: number;
16
+ /**
17
+ * What you want to avoid seeing in the final output; has a minor effect.
18
+ */
19
+ negative_prompt?: string;
20
+ /**
21
+ * What you want your final output to look like. We recommend starting with the image description and making minor edits for best results.
22
+ */
23
+ prompt: string;
24
+ /**
25
+ * Determines the prompt's influence. Higher values align the output more with the prompt.
26
+ */
27
+ prompt_strength: number;
28
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by Sideko (sideko.dev)
4
+ **/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ import { types } from "../index.js";
5
+ /**
6
+ * PostV1AiPhotoEditorBody
7
+ */
8
+ export declare type PostV1AiPhotoEditorBody = {
9
+ /**
10
+ * Provide the assets for photo editor
11
+ */
12
+ assets: types.PostV1AiPhotoEditorBodyAssets;
13
+ /**
14
+ * The name of image
15
+ */
16
+ name?: string;
17
+ /**
18
+ * The resolution of the final output image. The allowed value is based on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
19
+ */
20
+ resolution: number;
21
+ /**
22
+ * Number of iterations used to generate the output. Higher values improve quality and increase the strength of the prompt but increase processing time.
23
+ */
24
+ steps: number;
25
+ style: types.PostV1AiPhotoEditorBodyStyle;
26
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by Sideko (sideko.dev)
4
+ **/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ /**
5
+ * Success
6
+ */
7
+ export declare type PostV1AiPhotoEditorResponse = {
8
+ frame_cost: number;
9
+ /**
10
+ * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ */
12
+ id: string;
13
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by Sideko (sideko.dev)
4
+ **/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ /**
5
+ * The request is invalid
6
+ */
7
+ export declare type PostV1AiPhotoEditorResponse400 = {
8
+ message: string;
9
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by Sideko (sideko.dev)
4
+ **/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ export declare type PostV1AiPhotoEditorResponse401MessageEnum = "Unauthorized";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
8
+ export declare type PostV1AiPhotoEditorResponse401 = {
9
+ message: types.PostV1AiPhotoEditorResponse401MessageEnum;
10
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by Sideko (sideko.dev)
4
+ **/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ export declare type PostV1AiPhotoEditorResponse404MessageEnum = "Not Found";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
8
+ export declare type PostV1AiPhotoEditorResponse404 = {
9
+ message: types.PostV1AiPhotoEditorResponse404MessageEnum;
10
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by Sideko (sideko.dev)
4
+ **/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by Sideko (sideko.dev)
3
+ **/
4
+ /**
5
+ * Unprocessable Entity
6
+ */
7
+ export declare type PostV1AiPhotoEditorResponse422 = {
8
+ message: string;
9
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by Sideko (sideko.dev)
4
+ **/
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * PostV1AiQrCodeGeneratorBodyStyle
6
+ */
4
7
  export declare type PostV1AiQrCodeGeneratorBodyStyle = {
5
8
  /**
6
9
  * To use our templates, pass in one of Watercolor, Cyberpunk City, Ink Landscape, Interior Painting, Japanese Street, Mech, Minecraft, Picasso Painting, Game Map, Spaceship, Chinese Painting, Winter Village, or pass any custom art style.
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1AiQrCodeGeneratorBody
7
+ */
5
8
  export declare type PostV1AiQrCodeGeneratorBody = {
6
9
  /**
7
10
  * The content of the QR code.
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Success
6
+ */
4
7
  export declare type PostV1AiQrCodeGeneratorResponse = {
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 PostV1AiQrCodeGeneratorResponse400 = {
5
8
  message: string;
6
9
  };