magic-hour 0.84.0 → 0.86.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 (58) hide show
  1. package/README.md +8 -0
  2. package/dist/environment.d.ts +1 -1
  3. package/dist/environment.js +1 -1
  4. package/dist/resources/v1/ai-music-generator/index.d.ts +2 -0
  5. package/dist/resources/v1/ai-music-generator/index.js +5 -0
  6. package/dist/resources/v1/ai-music-generator/request-types.d.ts +32 -0
  7. package/dist/resources/v1/ai-music-generator/request-types.js +78 -0
  8. package/dist/resources/v1/ai-music-generator/resource-client.d.ts +31 -0
  9. package/dist/resources/v1/ai-music-generator/resource-client.js +78 -0
  10. package/dist/resources/v1/ai-video-editor/resource-client.d.ts +1 -1
  11. package/dist/resources/v1/ai-video-editor/resource-client.js +1 -1
  12. package/dist/resources/v1/ai-video-translator/resource-client.d.ts +1 -1
  13. package/dist/resources/v1/ai-video-translator/resource-client.js +1 -1
  14. package/dist/resources/v1/ai-video-upscaler/index.d.ts +2 -0
  15. package/dist/resources/v1/ai-video-upscaler/index.js +5 -0
  16. package/dist/resources/v1/ai-video-upscaler/request-types.d.ts +43 -0
  17. package/dist/resources/v1/ai-video-upscaler/request-types.js +84 -0
  18. package/dist/resources/v1/ai-video-upscaler/resource-client.d.ts +60 -0
  19. package/dist/resources/v1/ai-video-upscaler/resource-client.js +103 -0
  20. package/dist/resources/v1/audio-to-video/resource-client.d.ts +1 -1
  21. package/dist/resources/v1/audio-to-video/resource-client.js +1 -1
  22. package/dist/resources/v1/character-replace/resource-client.d.ts +1 -1
  23. package/dist/resources/v1/character-replace/resource-client.js +1 -1
  24. package/dist/resources/v1/face-swap/resource-client.d.ts +1 -1
  25. package/dist/resources/v1/face-swap/resource-client.js +1 -1
  26. package/dist/resources/v1/image-to-video/resource-client.d.ts +1 -1
  27. package/dist/resources/v1/image-to-video/resource-client.js +1 -1
  28. package/dist/resources/v1/index.d.ts +2 -0
  29. package/dist/resources/v1/index.js +3 -1
  30. package/dist/resources/v1/lip-sync/resource-client.d.ts +1 -1
  31. package/dist/resources/v1/lip-sync/resource-client.js +1 -1
  32. package/dist/resources/v1/resource-client.d.ts +6 -0
  33. package/dist/resources/v1/resource-client.js +12 -0
  34. package/dist/resources/v1/text-to-video/request-types.d.ts +1 -1
  35. package/dist/resources/v1/text-to-video/resource-client.d.ts +1 -1
  36. package/dist/resources/v1/text-to-video/resource-client.js +1 -1
  37. package/dist/resources/v1/video-to-video/resource-client.d.ts +1 -1
  38. package/dist/resources/v1/video-to-video/resource-client.js +1 -1
  39. package/dist/types/index.d.ts +7 -0
  40. package/dist/types/v1-ai-music-generator-create-body-style.d.ts +34 -0
  41. package/dist/types/v1-ai-music-generator-create-body-style.js +77 -0
  42. package/dist/types/v1-ai-music-generator-create-body.d.ts +32 -0
  43. package/dist/types/v1-ai-music-generator-create-body.js +78 -0
  44. package/dist/types/v1-ai-music-generator-create-response.d.ts +29 -0
  45. package/dist/types/v1-ai-music-generator-create-response.js +71 -0
  46. package/dist/types/v1-ai-video-upscaler-create-body-assets.d.ts +27 -0
  47. package/dist/types/v1-ai-video-upscaler-create-body-assets.js +67 -0
  48. package/dist/types/v1-ai-video-upscaler-create-body-resolution-enum.d.ts +4 -0
  49. package/dist/types/v1-ai-video-upscaler-create-body-resolution-enum.js +2 -0
  50. package/dist/types/v1-ai-video-upscaler-create-body.d.ts +43 -0
  51. package/dist/types/v1-ai-video-upscaler-create-body.js +84 -0
  52. package/dist/types/v1-ai-video-upscaler-create-response.d.ts +36 -0
  53. package/dist/types/v1-ai-video-upscaler-create-response.js +75 -0
  54. package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
  55. package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +3 -3
  56. package/dist/types/v1-ai-voice-generator-create-body-style.js +0 -4
  57. package/dist/types/v1-text-to-video-create-body.d.ts +1 -1
  58. package/package.json +1 -1
@@ -77,7 +77,7 @@ export declare class CharacterReplaceClient extends CoreResourceClient {
77
77
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
78
78
  *
79
79
  * **Cost**
80
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
80
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
81
81
  *
82
82
  * For detailed examples, see the [product page](https://magichour.ai/products/character-replace).
83
83
  *
@@ -108,7 +108,7 @@ class CharacterReplaceClient extends make_api_request_js_1.CoreResourceClient {
108
108
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
109
109
  *
110
110
  * **Cost**
111
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
111
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
112
112
  *
113
113
  * For detailed examples, see the [product page](https://magichour.ai/products/character-replace).
114
114
  *
@@ -101,7 +101,7 @@ export declare class FaceSwapClient extends CoreResourceClient {
101
101
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
102
102
  *
103
103
  * **Cost**
104
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
104
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
105
105
  *
106
106
  * For detailed examples, see the [product page](https://magichour.ai/products/face-swap).
107
107
  *
@@ -155,7 +155,7 @@ class FaceSwapClient extends make_api_request_js_1.CoreResourceClient {
155
155
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
156
156
  *
157
157
  * **Cost**
158
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
158
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
159
159
  *
160
160
  * For detailed examples, see the [product page](https://magichour.ai/products/face-swap).
161
161
  *
@@ -64,7 +64,7 @@ export declare class ImageToVideoClient extends CoreResourceClient {
64
64
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
65
65
  *
66
66
  * **Cost**
67
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
67
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
68
68
  *
69
69
  * For detailed examples, see the [product page](https://magichour.ai/products/image-to-video).
70
70
  *
@@ -100,7 +100,7 @@ class ImageToVideoClient extends make_api_request_js_1.CoreResourceClient {
100
100
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
101
101
  *
102
102
  * **Cost**
103
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
103
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
104
104
  *
105
105
  * For detailed examples, see the [product page](https://magichour.ai/products/image-to-video).
106
106
  *
@@ -7,11 +7,13 @@ export * as aiImageEditor from "./ai-image-editor";
7
7
  export * as aiImageGenerator from "./ai-image-generator";
8
8
  export * as aiImageUpscaler from "./ai-image-upscaler";
9
9
  export * as aiMemeGenerator from "./ai-meme-generator";
10
+ export * as aiMusicGenerator from "./ai-music-generator";
10
11
  export * as aiQrCodeGenerator from "./ai-qr-code-generator";
11
12
  export * as aiTalkingPhoto from "./ai-talking-photo";
12
13
  export * as aiUgcAd from "./ai-ugc-ad";
13
14
  export * as aiVideoEditor from "./ai-video-editor";
14
15
  export * as aiVideoTranslator from "./ai-video-translator";
16
+ export * as aiVideoUpscaler from "./ai-video-upscaler";
15
17
  export * as aiVoiceCloner from "./ai-voice-cloner";
16
18
  export * as aiVoiceGenerator from "./ai-voice-generator";
17
19
  export * as animation from "./animation";
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.savedItems = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.characterReplace = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiVideoTranslator = exports.aiVideoEditor = exports.aiUgcAd = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = exports.account = void 0;
36
+ exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.savedItems = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.characterReplace = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiVideoUpscaler = exports.aiVideoTranslator = exports.aiVideoEditor = exports.aiUgcAd = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMusicGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = exports.account = void 0;
37
37
  exports.account = __importStar(require("./account"));
38
38
  exports.aiClothesChanger = __importStar(require("./ai-clothes-changer"));
39
39
  exports.aiFaceEditor = __importStar(require("./ai-face-editor"));
@@ -43,11 +43,13 @@ exports.aiImageEditor = __importStar(require("./ai-image-editor"));
43
43
  exports.aiImageGenerator = __importStar(require("./ai-image-generator"));
44
44
  exports.aiImageUpscaler = __importStar(require("./ai-image-upscaler"));
45
45
  exports.aiMemeGenerator = __importStar(require("./ai-meme-generator"));
46
+ exports.aiMusicGenerator = __importStar(require("./ai-music-generator"));
46
47
  exports.aiQrCodeGenerator = __importStar(require("./ai-qr-code-generator"));
47
48
  exports.aiTalkingPhoto = __importStar(require("./ai-talking-photo"));
48
49
  exports.aiUgcAd = __importStar(require("./ai-ugc-ad"));
49
50
  exports.aiVideoEditor = __importStar(require("./ai-video-editor"));
50
51
  exports.aiVideoTranslator = __importStar(require("./ai-video-translator"));
52
+ exports.aiVideoUpscaler = __importStar(require("./ai-video-upscaler"));
51
53
  exports.aiVoiceCloner = __importStar(require("./ai-voice-cloner"));
52
54
  exports.aiVoiceGenerator = __importStar(require("./ai-voice-generator"));
53
55
  exports.animation = __importStar(require("./animation"));
@@ -77,7 +77,7 @@ export declare class LipSyncClient extends CoreResourceClient {
77
77
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
78
78
  *
79
79
  * **Cost**
80
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
80
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
81
81
  *
82
82
  * For detailed examples, see the [product page](https://magichour.ai/products/lip-sync).
83
83
  *
@@ -114,7 +114,7 @@ class LipSyncClient extends make_api_request_js_1.CoreResourceClient {
114
114
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
115
115
  *
116
116
  * **Cost**
117
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
117
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
118
118
  *
119
119
  * For detailed examples, see the [product page](https://magichour.ai/products/lip-sync).
120
120
  *
@@ -8,11 +8,13 @@ import { AiImageEditorClient } from "./ai-image-editor/index.js";
8
8
  import { AiImageGeneratorClient } from "./ai-image-generator/index.js";
9
9
  import { AiImageUpscalerClient } from "./ai-image-upscaler/index.js";
10
10
  import { AiMemeGeneratorClient } from "./ai-meme-generator/index.js";
11
+ import { AiMusicGeneratorClient } from "./ai-music-generator/index.js";
11
12
  import { AiQrCodeGeneratorClient } from "./ai-qr-code-generator/index.js";
12
13
  import { AiTalkingPhotoClient } from "./ai-talking-photo/index.js";
13
14
  import { AiUgcAdClient } from "./ai-ugc-ad/index.js";
14
15
  import { AiVideoEditorClient } from "./ai-video-editor/index.js";
15
16
  import { AiVideoTranslatorClient } from "./ai-video-translator/index.js";
17
+ import { AiVideoUpscalerClient } from "./ai-video-upscaler/index.js";
16
18
  import { AiVoiceClonerClient } from "./ai-voice-cloner/index.js";
17
19
  import { AiVoiceGeneratorClient } from "./ai-voice-generator/index.js";
18
20
  import { AnimationClient } from "./animation/index.js";
@@ -36,6 +38,8 @@ import { TextToVideoClient } from "./text-to-video/index.js";
36
38
  import { VideoProjectsClient } from "./video-projects/index.js";
37
39
  import { VideoToVideoClient } from "./video-to-video/index.js";
38
40
  export declare class V1Client extends CoreResourceClient {
41
+ private _aiVideoUpscalerLazy?;
42
+ private _aiMusicGeneratorLazy?;
39
43
  private _aiUgcAdLazy?;
40
44
  private _aiVideoTranslatorLazy?;
41
45
  private _savedItemsLazy?;
@@ -109,4 +113,6 @@ export declare class V1Client extends CoreResourceClient {
109
113
  get savedItems(): SavedItemsClient;
110
114
  get aiVideoTranslator(): AiVideoTranslatorClient;
111
115
  get aiUgcAd(): AiUgcAdClient;
116
+ get aiMusicGenerator(): AiMusicGeneratorClient;
117
+ get aiVideoUpscaler(): AiVideoUpscalerClient;
112
118
  }
@@ -15,11 +15,13 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
15
15
  this.aiImageGenerator;
16
16
  this.aiImageUpscaler;
17
17
  this.aiMemeGenerator;
18
+ this.aiMusicGenerator;
18
19
  this.aiQrCodeGenerator;
19
20
  this.aiTalkingPhoto;
20
21
  this.aiUgcAd;
21
22
  this.aiVideoEditor;
22
23
  this.aiVideoTranslator;
24
+ this.aiVideoUpscaler;
23
25
  this.aiVoiceCloner;
24
26
  this.aiVoiceGenerator;
25
27
  this.animation;
@@ -215,5 +217,15 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
215
217
  var _a;
216
218
  return ((_a = this._aiUgcAdLazy) !== null && _a !== void 0 ? _a : (this._aiUgcAdLazy = new (require("./ai-ugc-ad").AiUgcAdClient)(this._client, this._opts)));
217
219
  }
220
+ get aiMusicGenerator() {
221
+ var _a;
222
+ return ((_a = this._aiMusicGeneratorLazy) !== null && _a !== void 0 ? _a : (this._aiMusicGeneratorLazy =
223
+ new (require("./ai-music-generator").AiMusicGeneratorClient)(this._client, this._opts)));
224
+ }
225
+ get aiVideoUpscaler() {
226
+ var _a;
227
+ return ((_a = this._aiVideoUpscalerLazy) !== null && _a !== void 0 ? _a : (this._aiVideoUpscalerLazy =
228
+ new (require("./ai-video-upscaler").AiVideoUpscalerClient)(this._client, this._opts)));
229
+ }
218
230
  }
219
231
  exports.V1Client = V1Client;
@@ -100,7 +100,7 @@ export type CreateRequest = {
100
100
  * Reference media for video generation. Name references without @ and refer to them as @name in style.prompt. Maximum 10 references total.
101
101
  *
102
102
  * Supported models and reference media:
103
- * * **`gemini-omni-1.1`**: Supports images, videos. Up to 13 references.
103
+ * * **`gemini-omni-1.1`**: Supports images, videos. Up to 10 references.
104
104
  * * **`kling-3.0`**: Supports images, videos.
105
105
  * * **`minimax-h3`**: Supports images, videos, audio.
106
106
  * * **`seedance-2.0`**: Supports images, videos, audio.
@@ -56,7 +56,7 @@ export declare class TextToVideoClient extends CoreResourceClient {
56
56
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
57
57
  *
58
58
  * **Cost**
59
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
59
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
60
60
  *
61
61
  * For detailed examples, see the [product page](https://magichour.ai/products/text-to-video).
62
62
  *
@@ -93,7 +93,7 @@ class TextToVideoClient extends make_api_request_js_1.CoreResourceClient {
93
93
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
94
94
  *
95
95
  * **Cost**
96
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
96
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
97
97
  *
98
98
  * For detailed examples, see the [product page](https://magichour.ai/products/text-to-video).
99
99
  *
@@ -72,7 +72,7 @@ export declare class VideoToVideoClient extends CoreResourceClient {
72
72
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
73
73
  *
74
74
  * **Cost**
75
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
75
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
76
76
  *
77
77
  * For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).
78
78
  *
@@ -114,7 +114,7 @@ class VideoToVideoClient extends make_api_request_js_1.CoreResourceClient {
114
114
  * - Extra fields: e.g. `face_swap_mode`, `start_seconds`/`end_seconds`, or a text prompt
115
115
  *
116
116
  * **Cost**
117
- * Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
117
+ * Credits are charged when the job is queued (`credits_charged` in the response). Tools billed per frame charge an estimate and settle to the frames that actually render once the job finishes; tools billed per second charge the final amount upfront. Failed jobs are refunded.
118
118
  *
119
119
  * For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).
120
120
  *
@@ -48,6 +48,9 @@ export { V1AiMemeGeneratorCreateBody } from "./v1-ai-meme-generator-create-body"
48
48
  export { V1AiMemeGeneratorCreateBodyStyle } from "./v1-ai-meme-generator-create-body-style";
49
49
  export { V1AiMemeGeneratorCreateBodyStyleTemplateEnum } from "./v1-ai-meme-generator-create-body-style-template-enum";
50
50
  export { V1AiMemeGeneratorCreateResponse } from "./v1-ai-meme-generator-create-response";
51
+ export { V1AiMusicGeneratorCreateBody } from "./v1-ai-music-generator-create-body";
52
+ export { V1AiMusicGeneratorCreateBodyStyle } from "./v1-ai-music-generator-create-body-style";
53
+ export { V1AiMusicGeneratorCreateResponse } from "./v1-ai-music-generator-create-response";
51
54
  export { V1AiQrCodeGeneratorCreateBody } from "./v1-ai-qr-code-generator-create-body";
52
55
  export { V1AiQrCodeGeneratorCreateBodyStyle } from "./v1-ai-qr-code-generator-create-body-style";
53
56
  export { V1AiQrCodeGeneratorCreateResponse } from "./v1-ai-qr-code-generator-create-response";
@@ -73,6 +76,10 @@ export { V1AiVideoTranslatorCreateBodyAssets } from "./v1-ai-video-translator-cr
73
76
  export { V1AiVideoTranslatorCreateBodyResolutionEnum } from "./v1-ai-video-translator-create-body-resolution-enum";
74
77
  export { V1AiVideoTranslatorCreateBodyTargetLanguageEnum } from "./v1-ai-video-translator-create-body-target-language-enum";
75
78
  export { V1AiVideoTranslatorCreateResponse } from "./v1-ai-video-translator-create-response";
79
+ export { V1AiVideoUpscalerCreateBody } from "./v1-ai-video-upscaler-create-body";
80
+ export { V1AiVideoUpscalerCreateBodyAssets } from "./v1-ai-video-upscaler-create-body-assets";
81
+ export { V1AiVideoUpscalerCreateBodyResolutionEnum } from "./v1-ai-video-upscaler-create-body-resolution-enum";
82
+ export { V1AiVideoUpscalerCreateResponse } from "./v1-ai-video-upscaler-create-response";
76
83
  export { V1AiVoiceClonerCreateBody } from "./v1-ai-voice-cloner-create-body";
77
84
  export { V1AiVoiceClonerCreateBodyAssets } from "./v1-ai-voice-cloner-create-body-assets";
78
85
  export { V1AiVoiceClonerCreateBodyStyle } from "./v1-ai-voice-cloner-create-body-style";
@@ -0,0 +1,34 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * V1AiMusicGeneratorCreateBodyStyle
4
+ */
5
+ export type V1AiMusicGeneratorCreateBodyStyle = {
6
+ /**
7
+ * Generate music without vocals. When true, lyrics is ignored.
8
+ */
9
+ instrumental?: boolean | undefined;
10
+ /**
11
+ * Custom lyrics. Omit or leave blank for AI-generated lyrics when instrumental is false.
12
+ */
13
+ lyrics?: string | undefined;
14
+ /**
15
+ * Describe the song, including genre, mood, and instruments.
16
+ */
17
+ prompt: string;
18
+ [additionalProperty: string]: (boolean | undefined) | (string | undefined) | string | any | null | undefined;
19
+ };
20
+ /**
21
+ * @internal
22
+ * V1AiMusicGeneratorCreateBodyStyle without any key transformation, this is what
23
+ * we expect to come in as network data
24
+ */
25
+ export type External$V1AiMusicGeneratorCreateBodyStyle = {
26
+ instrumental?: boolean | undefined;
27
+ lyrics?: string | undefined;
28
+ prompt: string;
29
+ [additionalProperty: string]: (boolean | undefined) | (string | undefined) | string | External$V1AiMusicGeneratorCreateBodyStyle | null | undefined;
30
+ };
31
+ export declare const Schemas$V1AiMusicGeneratorCreateBodyStyle: {
32
+ in: z.ZodType<V1AiMusicGeneratorCreateBodyStyle, z.ZodTypeDef, unknown>;
33
+ out: z.ZodType<External$V1AiMusicGeneratorCreateBodyStyle, z.ZodTypeDef, V1AiMusicGeneratorCreateBodyStyle>;
34
+ };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiMusicGeneratorCreateBodyStyle = void 0;
37
+ const make_api_request_js_1 = require("make-api-request-js");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiMusicGeneratorCreateBodyStyle
41
+ */
42
+ const SchemaIn$V1AiMusicGeneratorCreateBodyStyle = z
43
+ .object({
44
+ instrumental: z.boolean().optional(),
45
+ lyrics: z.string().optional(),
46
+ prompt: z.string(),
47
+ })
48
+ .catchall(make_api_request_js_1.zodRequiredAny)
49
+ .transform((obj) => {
50
+ return (0, make_api_request_js_1.zodTransform)(obj, {
51
+ instrumental: "instrumental",
52
+ lyrics: "lyrics",
53
+ prompt: "prompt",
54
+ });
55
+ });
56
+ /**
57
+ * @internal
58
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiMusicGeneratorCreateBodyStyle
59
+ */
60
+ const SchemaOut$V1AiMusicGeneratorCreateBodyStyle = z
61
+ .object({
62
+ instrumental: z.boolean().optional(),
63
+ lyrics: z.string().optional(),
64
+ prompt: z.string(),
65
+ })
66
+ .catchall(make_api_request_js_1.zodRequiredAny)
67
+ .transform((obj) => {
68
+ return (0, make_api_request_js_1.zodTransform)(obj, {
69
+ instrumental: "instrumental",
70
+ lyrics: "lyrics",
71
+ prompt: "prompt",
72
+ });
73
+ });
74
+ exports.Schemas$V1AiMusicGeneratorCreateBodyStyle = {
75
+ in: SchemaIn$V1AiMusicGeneratorCreateBodyStyle,
76
+ out: SchemaOut$V1AiMusicGeneratorCreateBodyStyle,
77
+ };
@@ -0,0 +1,32 @@
1
+ import * as z from "zod";
2
+ import { External$V1AiMusicGeneratorCreateBodyStyle, V1AiMusicGeneratorCreateBodyStyle } from "./v1-ai-music-generator-create-body-style";
3
+ /**
4
+ * V1AiMusicGeneratorCreateBody
5
+ */
6
+ export type V1AiMusicGeneratorCreateBody = {
7
+ /**
8
+ * Requested track duration in seconds, from 15 to 300. Determines credits charged.
9
+ */
10
+ duration: number;
11
+ /**
12
+ * Give your audio a custom name for easy identification.
13
+ */
14
+ name?: string | undefined;
15
+ style: V1AiMusicGeneratorCreateBodyStyle;
16
+ [additionalProperty: string]: number | (string | undefined) | V1AiMusicGeneratorCreateBodyStyle | any | null | undefined;
17
+ };
18
+ /**
19
+ * @internal
20
+ * V1AiMusicGeneratorCreateBody without any key transformation, this is what
21
+ * we expect to come in as network data
22
+ */
23
+ export type External$V1AiMusicGeneratorCreateBody = {
24
+ duration: number;
25
+ name?: string | undefined;
26
+ style: External$V1AiMusicGeneratorCreateBodyStyle;
27
+ [additionalProperty: string]: number | (string | undefined) | External$V1AiMusicGeneratorCreateBodyStyle | External$V1AiMusicGeneratorCreateBody | null | undefined;
28
+ };
29
+ export declare const Schemas$V1AiMusicGeneratorCreateBody: {
30
+ in: z.ZodType<V1AiMusicGeneratorCreateBody, z.ZodTypeDef, unknown>;
31
+ out: z.ZodType<External$V1AiMusicGeneratorCreateBody, z.ZodTypeDef, V1AiMusicGeneratorCreateBody>;
32
+ };
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiMusicGeneratorCreateBody = void 0;
37
+ const make_api_request_js_1 = require("make-api-request-js");
38
+ const z = __importStar(require("zod"));
39
+ const v1_ai_music_generator_create_body_style_1 = require("./v1-ai-music-generator-create-body-style");
40
+ /**
41
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiMusicGeneratorCreateBody
42
+ */
43
+ const SchemaIn$V1AiMusicGeneratorCreateBody = z
44
+ .object({
45
+ duration: z.number().int(),
46
+ name: z.string().optional(),
47
+ style: v1_ai_music_generator_create_body_style_1.Schemas$V1AiMusicGeneratorCreateBodyStyle.in,
48
+ })
49
+ .catchall(make_api_request_js_1.zodRequiredAny)
50
+ .transform((obj) => {
51
+ return (0, make_api_request_js_1.zodTransform)(obj, {
52
+ duration: "duration",
53
+ name: "name",
54
+ style: "style",
55
+ });
56
+ });
57
+ /**
58
+ * @internal
59
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiMusicGeneratorCreateBody
60
+ */
61
+ const SchemaOut$V1AiMusicGeneratorCreateBody = z
62
+ .object({
63
+ duration: z.number().int(),
64
+ name: z.string().optional(),
65
+ style: v1_ai_music_generator_create_body_style_1.Schemas$V1AiMusicGeneratorCreateBodyStyle.out,
66
+ })
67
+ .catchall(make_api_request_js_1.zodRequiredAny)
68
+ .transform((obj) => {
69
+ return (0, make_api_request_js_1.zodTransform)(obj, {
70
+ duration: "duration",
71
+ name: "name",
72
+ style: "style",
73
+ });
74
+ });
75
+ exports.Schemas$V1AiMusicGeneratorCreateBody = {
76
+ in: SchemaIn$V1AiMusicGeneratorCreateBody,
77
+ out: SchemaOut$V1AiMusicGeneratorCreateBody,
78
+ };
@@ -0,0 +1,29 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Success
4
+ */
5
+ export type V1AiMusicGeneratorCreateResponse = {
6
+ /**
7
+ * The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made.
8
+ *
9
+ * If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund.
10
+ */
11
+ creditsCharged: number;
12
+ /**
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
+ */
15
+ id: string;
16
+ };
17
+ /**
18
+ * @internal
19
+ * V1AiMusicGeneratorCreateResponse without any key transformation, this is what
20
+ * we expect to come in as network data
21
+ */
22
+ export type External$V1AiMusicGeneratorCreateResponse = {
23
+ credits_charged: number;
24
+ id: string;
25
+ };
26
+ export declare const Schemas$V1AiMusicGeneratorCreateResponse: {
27
+ in: z.ZodType<V1AiMusicGeneratorCreateResponse, z.ZodTypeDef, unknown>;
28
+ out: z.ZodType<External$V1AiMusicGeneratorCreateResponse, z.ZodTypeDef, V1AiMusicGeneratorCreateResponse>;
29
+ };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiMusicGeneratorCreateResponse = void 0;
37
+ const make_api_request_js_1 = require("make-api-request-js");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiMusicGeneratorCreateResponse
41
+ */
42
+ const SchemaIn$V1AiMusicGeneratorCreateResponse = z
43
+ .object({
44
+ credits_charged: z.number().int(),
45
+ id: z.string(),
46
+ })
47
+ .transform((obj) => {
48
+ return (0, make_api_request_js_1.zodTransform)(obj, {
49
+ credits_charged: "creditsCharged",
50
+ id: "id",
51
+ });
52
+ });
53
+ /**
54
+ * @internal
55
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiMusicGeneratorCreateResponse
56
+ */
57
+ const SchemaOut$V1AiMusicGeneratorCreateResponse = z
58
+ .object({
59
+ creditsCharged: z.number().int(),
60
+ id: z.string(),
61
+ })
62
+ .transform((obj) => {
63
+ return (0, make_api_request_js_1.zodTransform)(obj, {
64
+ creditsCharged: "credits_charged",
65
+ id: "id",
66
+ });
67
+ });
68
+ exports.Schemas$V1AiMusicGeneratorCreateResponse = {
69
+ in: SchemaIn$V1AiMusicGeneratorCreateResponse,
70
+ out: SchemaOut$V1AiMusicGeneratorCreateResponse,
71
+ };
@@ -0,0 +1,27 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Source video for the upscale job.
4
+ */
5
+ export type V1AiVideoUpscalerCreateBodyAssets = {
6
+ /**
7
+ * Video to upscale. This value is either
8
+ * - a direct URL to the video file
9
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
10
+ *
11
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
12
+ *
13
+ */
14
+ videoFilePath: string;
15
+ };
16
+ /**
17
+ * @internal
18
+ * V1AiVideoUpscalerCreateBodyAssets without any key transformation, this is what
19
+ * we expect to come in as network data
20
+ */
21
+ export type External$V1AiVideoUpscalerCreateBodyAssets = {
22
+ video_file_path: string;
23
+ };
24
+ export declare const Schemas$V1AiVideoUpscalerCreateBodyAssets: {
25
+ in: z.ZodType<V1AiVideoUpscalerCreateBodyAssets, z.ZodTypeDef, unknown>;
26
+ out: z.ZodType<External$V1AiVideoUpscalerCreateBodyAssets, z.ZodTypeDef, V1AiVideoUpscalerCreateBodyAssets>;
27
+ };