magic-hour 0.62.0 → 0.64.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 (50) hide show
  1. package/README.md +5 -0
  2. package/dist/environment.d.ts +1 -1
  3. package/dist/environment.js +1 -1
  4. package/dist/resources/v1/ai-image-editor/request-types.d.ts +3 -3
  5. package/dist/resources/v1/ai-image-generator/request-types.d.ts +3 -3
  6. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +3 -0
  7. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +2 -2
  8. package/dist/resources/v1/audio-to-video/index.d.ts +2 -0
  9. package/dist/resources/v1/audio-to-video/index.js +5 -0
  10. package/dist/resources/v1/audio-to-video/request-types.d.ts +49 -0
  11. package/dist/resources/v1/audio-to-video/request-types.js +89 -0
  12. package/dist/resources/v1/audio-to-video/resource-client.d.ts +87 -0
  13. package/dist/resources/v1/audio-to-video/resource-client.js +134 -0
  14. package/dist/resources/v1/image-to-video/request-types.d.ts +2 -2
  15. package/dist/resources/v1/index.d.ts +1 -0
  16. package/dist/resources/v1/index.js +2 -1
  17. package/dist/resources/v1/resource-client.d.ts +3 -0
  18. package/dist/resources/v1/resource-client.js +6 -0
  19. package/dist/resources/v1/text-to-video/request-types.d.ts +2 -2
  20. package/dist/types/index.d.ts +6 -0
  21. package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +3 -3
  22. package/dist/types/v1-ai-image-editor-create-body.d.ts +3 -3
  23. package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +3 -3
  24. package/dist/types/v1-ai-image-generator-create-body.d.ts +3 -3
  25. package/dist/types/v1-ai-image-upscaler-create-body-style-mode-enum.d.ts +4 -0
  26. package/dist/types/v1-ai-image-upscaler-create-body-style-mode-enum.js +2 -0
  27. package/dist/types/v1-ai-image-upscaler-create-body-style.d.ts +8 -3
  28. package/dist/types/v1-ai-image-upscaler-create-body-style.js +6 -2
  29. package/dist/types/v1-ai-image-upscaler-create-body.d.ts +3 -0
  30. package/dist/types/v1-ai-talking-photo-create-body.d.ts +2 -2
  31. package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
  32. package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +3 -3
  33. package/dist/types/v1-ai-voice-generator-create-body-style.js +590 -0
  34. package/dist/types/v1-audio-projects-get-response.d.ts +1 -1
  35. package/dist/types/v1-audio-to-video-create-body-assets.d.ts +37 -0
  36. package/dist/types/v1-audio-to-video-create-body-assets.js +71 -0
  37. package/dist/types/v1-audio-to-video-create-body-resolution-enum.d.ts +4 -0
  38. package/dist/types/v1-audio-to-video-create-body-resolution-enum.js +2 -0
  39. package/dist/types/v1-audio-to-video-create-body-style.d.ts +22 -0
  40. package/dist/types/v1-audio-to-video-create-body-style.js +67 -0
  41. package/dist/types/v1-audio-to-video-create-body.d.ts +49 -0
  42. package/dist/types/v1-audio-to-video-create-body.js +89 -0
  43. package/dist/types/v1-audio-to-video-create-response.d.ts +36 -0
  44. package/dist/types/v1-audio-to-video-create-response.js +75 -0
  45. package/dist/types/v1-image-projects-get-response.d.ts +1 -1
  46. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +1 -1
  47. package/dist/types/v1-image-to-video-create-body.d.ts +2 -2
  48. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +1 -1
  49. package/dist/types/v1-text-to-video-create-body.d.ts +2 -2
  50. package/package.json +1 -1
@@ -34,7 +34,7 @@ export type V1AudioProjectsGetResponse = {
34
34
  */
35
35
  status: "canceled" | "complete" | "draft" | "error" | "queued" | "rendering";
36
36
  /**
37
- * The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO
37
+ * The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO, MUSIC_GENERATOR
38
38
  */
39
39
  type: string;
40
40
  };
@@ -0,0 +1,37 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Provide the audio file and an optional reference image.
4
+ */
5
+ export type V1AudioToVideoCreateBodyAssets = {
6
+ /**
7
+ * The path of the audio file. 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
+ audioFilePath: string;
15
+ /**
16
+ * Reference image for the initial frame of the video. This value is either
17
+ * - a direct URL to the video file
18
+ * - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
19
+ *
20
+ * See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
21
+ *
22
+ */
23
+ imageFilePath?: string | undefined;
24
+ };
25
+ /**
26
+ * @internal
27
+ * V1AudioToVideoCreateBodyAssets without any key transformation, this is what
28
+ * we expect to come in as network data
29
+ */
30
+ export type External$V1AudioToVideoCreateBodyAssets = {
31
+ audio_file_path: string;
32
+ image_file_path?: string | undefined;
33
+ };
34
+ export declare const Schemas$V1AudioToVideoCreateBodyAssets: {
35
+ in: z.ZodType<V1AudioToVideoCreateBodyAssets, z.ZodTypeDef, unknown>;
36
+ out: z.ZodType<External$V1AudioToVideoCreateBodyAssets, z.ZodTypeDef, V1AudioToVideoCreateBodyAssets>;
37
+ };
@@ -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$V1AudioToVideoCreateBodyAssets = 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 V1AudioToVideoCreateBodyAssets
41
+ */
42
+ const SchemaIn$V1AudioToVideoCreateBodyAssets = z
43
+ .object({
44
+ audio_file_path: z.string(),
45
+ image_file_path: z.string().optional(),
46
+ })
47
+ .transform((obj) => {
48
+ return (0, make_api_request_js_1.zodTransform)(obj, {
49
+ audio_file_path: "audioFilePath",
50
+ image_file_path: "imageFilePath",
51
+ });
52
+ });
53
+ /**
54
+ * @internal
55
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioToVideoCreateBodyAssets
56
+ */
57
+ const SchemaOut$V1AudioToVideoCreateBodyAssets = z
58
+ .object({
59
+ audioFilePath: z.string(),
60
+ imageFilePath: z.string().optional(),
61
+ })
62
+ .transform((obj) => {
63
+ return (0, make_api_request_js_1.zodTransform)(obj, {
64
+ audioFilePath: "audio_file_path",
65
+ imageFilePath: "image_file_path",
66
+ });
67
+ });
68
+ exports.Schemas$V1AudioToVideoCreateBodyAssets = {
69
+ in: SchemaIn$V1AudioToVideoCreateBodyAssets,
70
+ out: SchemaOut$V1AudioToVideoCreateBodyAssets,
71
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
3
+ */
4
+ export type V1AudioToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Attributes used to dictate the style of the output
4
+ */
5
+ export type V1AudioToVideoCreateBodyStyle = {
6
+ /**
7
+ * Prompt to guide the visual style of the video.
8
+ */
9
+ prompt?: string | undefined;
10
+ };
11
+ /**
12
+ * @internal
13
+ * V1AudioToVideoCreateBodyStyle without any key transformation, this is what
14
+ * we expect to come in as network data
15
+ */
16
+ export type External$V1AudioToVideoCreateBodyStyle = {
17
+ prompt?: string | undefined;
18
+ };
19
+ export declare const Schemas$V1AudioToVideoCreateBodyStyle: {
20
+ in: z.ZodType<V1AudioToVideoCreateBodyStyle, z.ZodTypeDef, unknown>;
21
+ out: z.ZodType<External$V1AudioToVideoCreateBodyStyle, z.ZodTypeDef, V1AudioToVideoCreateBodyStyle>;
22
+ };
@@ -0,0 +1,67 @@
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$V1AudioToVideoCreateBodyStyle = 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 V1AudioToVideoCreateBodyStyle
41
+ */
42
+ const SchemaIn$V1AudioToVideoCreateBodyStyle = z
43
+ .object({
44
+ prompt: z.string().optional(),
45
+ })
46
+ .transform((obj) => {
47
+ return (0, make_api_request_js_1.zodTransform)(obj, {
48
+ prompt: "prompt",
49
+ });
50
+ });
51
+ /**
52
+ * @internal
53
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioToVideoCreateBodyStyle
54
+ */
55
+ const SchemaOut$V1AudioToVideoCreateBodyStyle = z
56
+ .object({
57
+ prompt: z.string().optional(),
58
+ })
59
+ .transform((obj) => {
60
+ return (0, make_api_request_js_1.zodTransform)(obj, {
61
+ prompt: "prompt",
62
+ });
63
+ });
64
+ exports.Schemas$V1AudioToVideoCreateBodyStyle = {
65
+ in: SchemaIn$V1AudioToVideoCreateBodyStyle,
66
+ out: SchemaOut$V1AudioToVideoCreateBodyStyle,
67
+ };
@@ -0,0 +1,49 @@
1
+ import * as z from "zod";
2
+ import { External$V1AudioToVideoCreateBodyAssets, V1AudioToVideoCreateBodyAssets } from "./v1-audio-to-video-create-body-assets";
3
+ import { External$V1AudioToVideoCreateBodyStyle, V1AudioToVideoCreateBodyStyle } from "./v1-audio-to-video-create-body-style";
4
+ /**
5
+ * V1AudioToVideoCreateBody
6
+ */
7
+ export type V1AudioToVideoCreateBody = {
8
+ /**
9
+ * Provide the audio file and an optional reference image.
10
+ */
11
+ assets: V1AudioToVideoCreateBodyAssets;
12
+ /**
13
+ * End time of your clip (seconds). Must be greater than start_seconds.
14
+ */
15
+ endSeconds: number;
16
+ /**
17
+ * Give your video a custom name for easy identification.
18
+ */
19
+ name?: string | undefined;
20
+ /**
21
+ * Output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
22
+ */
23
+ resolution?: ("1080p" | "480p" | "720p") | undefined;
24
+ /**
25
+ * Start time of your clip (seconds). Must be ≥ 0.
26
+ */
27
+ startSeconds?: number | undefined;
28
+ /**
29
+ * Attributes used to dictate the style of the output
30
+ */
31
+ style?: V1AudioToVideoCreateBodyStyle | undefined;
32
+ };
33
+ /**
34
+ * @internal
35
+ * V1AudioToVideoCreateBody without any key transformation, this is what
36
+ * we expect to come in as network data
37
+ */
38
+ export type External$V1AudioToVideoCreateBody = {
39
+ assets: External$V1AudioToVideoCreateBodyAssets;
40
+ end_seconds: number;
41
+ name?: string | undefined;
42
+ resolution?: ("1080p" | "480p" | "720p") | undefined;
43
+ start_seconds?: number | undefined;
44
+ style?: External$V1AudioToVideoCreateBodyStyle | undefined;
45
+ };
46
+ export declare const Schemas$V1AudioToVideoCreateBody: {
47
+ in: z.ZodType<V1AudioToVideoCreateBody, z.ZodTypeDef, unknown>;
48
+ out: z.ZodType<External$V1AudioToVideoCreateBody, z.ZodTypeDef, V1AudioToVideoCreateBody>;
49
+ };
@@ -0,0 +1,89 @@
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$V1AudioToVideoCreateBody = void 0;
37
+ const make_api_request_js_1 = require("make-api-request-js");
38
+ const z = __importStar(require("zod"));
39
+ const v1_audio_to_video_create_body_assets_1 = require("./v1-audio-to-video-create-body-assets");
40
+ const v1_audio_to_video_create_body_style_1 = require("./v1-audio-to-video-create-body-style");
41
+ /**
42
+ * Takes network data, validates it, and transforms keys to match typescript object V1AudioToVideoCreateBody
43
+ */
44
+ const SchemaIn$V1AudioToVideoCreateBody = z
45
+ .object({
46
+ assets: v1_audio_to_video_create_body_assets_1.Schemas$V1AudioToVideoCreateBodyAssets.in,
47
+ end_seconds: z.number(),
48
+ name: z.string().optional(),
49
+ resolution: z.enum(["1080p", "480p", "720p"]).optional(),
50
+ start_seconds: z.number().optional(),
51
+ style: v1_audio_to_video_create_body_style_1.Schemas$V1AudioToVideoCreateBodyStyle.in.optional(),
52
+ })
53
+ .transform((obj) => {
54
+ return (0, make_api_request_js_1.zodTransform)(obj, {
55
+ assets: "assets",
56
+ end_seconds: "endSeconds",
57
+ name: "name",
58
+ resolution: "resolution",
59
+ start_seconds: "startSeconds",
60
+ style: "style",
61
+ });
62
+ });
63
+ /**
64
+ * @internal
65
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioToVideoCreateBody
66
+ */
67
+ const SchemaOut$V1AudioToVideoCreateBody = z
68
+ .object({
69
+ assets: v1_audio_to_video_create_body_assets_1.Schemas$V1AudioToVideoCreateBodyAssets.out,
70
+ endSeconds: z.number(),
71
+ name: z.string().optional(),
72
+ resolution: z.enum(["1080p", "480p", "720p"]).optional(),
73
+ startSeconds: z.number().optional(),
74
+ style: v1_audio_to_video_create_body_style_1.Schemas$V1AudioToVideoCreateBodyStyle.out.optional(),
75
+ })
76
+ .transform((obj) => {
77
+ return (0, make_api_request_js_1.zodTransform)(obj, {
78
+ assets: "assets",
79
+ endSeconds: "end_seconds",
80
+ name: "name",
81
+ resolution: "resolution",
82
+ startSeconds: "start_seconds",
83
+ style: "style",
84
+ });
85
+ });
86
+ exports.Schemas$V1AudioToVideoCreateBody = {
87
+ in: SchemaIn$V1AudioToVideoCreateBody,
88
+ out: SchemaOut$V1AudioToVideoCreateBody,
89
+ };
@@ -0,0 +1,36 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Success
4
+ */
5
+ export type V1AudioToVideoCreateResponse = {
6
+ /**
7
+ * The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
8
+ *
9
+ * If video generation fails, credits will be refunded, and this field will be updated to include the refund.
10
+ */
11
+ creditsCharged: number;
12
+ /**
13
+ * Deprecated: Previously represented the number of frames (original name of our credit system) used for video generation. Use 'credits_charged' instead.
14
+ *
15
+ * 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.
16
+ */
17
+ estimatedFrameCost: number;
18
+ /**
19
+ * Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
20
+ */
21
+ id: string;
22
+ };
23
+ /**
24
+ * @internal
25
+ * V1AudioToVideoCreateResponse without any key transformation, this is what
26
+ * we expect to come in as network data
27
+ */
28
+ export type External$V1AudioToVideoCreateResponse = {
29
+ credits_charged: number;
30
+ estimated_frame_cost: number;
31
+ id: string;
32
+ };
33
+ export declare const Schemas$V1AudioToVideoCreateResponse: {
34
+ in: z.ZodType<V1AudioToVideoCreateResponse, z.ZodTypeDef, unknown>;
35
+ out: z.ZodType<External$V1AudioToVideoCreateResponse, z.ZodTypeDef, V1AudioToVideoCreateResponse>;
36
+ };
@@ -0,0 +1,75 @@
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$V1AudioToVideoCreateResponse = 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 V1AudioToVideoCreateResponse
41
+ */
42
+ const SchemaIn$V1AudioToVideoCreateResponse = z
43
+ .object({
44
+ credits_charged: z.number().int(),
45
+ estimated_frame_cost: z.number().int(),
46
+ id: z.string(),
47
+ })
48
+ .transform((obj) => {
49
+ return (0, make_api_request_js_1.zodTransform)(obj, {
50
+ credits_charged: "creditsCharged",
51
+ estimated_frame_cost: "estimatedFrameCost",
52
+ id: "id",
53
+ });
54
+ });
55
+ /**
56
+ * @internal
57
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AudioToVideoCreateResponse
58
+ */
59
+ const SchemaOut$V1AudioToVideoCreateResponse = z
60
+ .object({
61
+ creditsCharged: z.number().int(),
62
+ estimatedFrameCost: z.number().int(),
63
+ id: z.string(),
64
+ })
65
+ .transform((obj) => {
66
+ return (0, make_api_request_js_1.zodTransform)(obj, {
67
+ creditsCharged: "credits_charged",
68
+ estimatedFrameCost: "estimated_frame_cost",
69
+ id: "id",
70
+ });
71
+ });
72
+ exports.Schemas$V1AudioToVideoCreateResponse = {
73
+ in: SchemaIn$V1AudioToVideoCreateResponse,
74
+ out: SchemaOut$V1AudioToVideoCreateResponse,
75
+ };
@@ -42,7 +42,7 @@ export type V1ImageProjectsGetResponse = {
42
42
  */
43
43
  totalFrameCost: number;
44
44
  /**
45
- * The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, AI_SELFIE, AI_HEADSHOT, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, HEAD_SWAP, BODY_SWAP, STORYBOARD
45
+ * The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, AI_SELFIE, AI_HEADSHOT, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, HEAD_SWAP, BODY_SWAP, STORYBOARD, IMAGE_EXPANDER
46
46
  */
47
47
  type: string;
48
48
  };
@@ -2,7 +2,7 @@
2
2
  * The AI model to use for video generation.
3
3
  *
4
4
  * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
5
- * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame
5
+ * * `ltx-2.3`: Fast iteration with lip-sync & end frame
6
6
  * * `wan-2.2`: Fast, strong visuals with effects
7
7
  * * `kling-2.5`: Motion, action, and camera control
8
8
  * * `kling-3.0`: Cinematic, multi-scene storytelling
@@ -34,7 +34,7 @@ export type V1ImageToVideoCreateBody = {
34
34
  * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
35
35
  * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
36
36
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
37
- * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
37
+ * * **`seedance`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
38
38
  * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
39
39
  * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
40
40
  *
@@ -50,7 +50,7 @@ export type V1ImageToVideoCreateBody = {
50
50
  * The AI model to use for video generation.
51
51
  *
52
52
  * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
53
- * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame
53
+ * * `ltx-2.3`: Fast iteration with lip-sync & end frame
54
54
  * * `wan-2.2`: Fast, strong visuals with effects
55
55
  * * `kling-2.5`: Motion, action, and camera control
56
56
  * * `kling-3.0`: Cinematic, multi-scene storytelling
@@ -2,7 +2,7 @@
2
2
  * The AI model to use for video generation.
3
3
  *
4
4
  * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
5
- * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame
5
+ * * `ltx-2.3`: Fast iteration with lip-sync & end frame
6
6
  * * `wan-2.2`: Fast, strong visuals with effects
7
7
  * * `kling-2.5`: Motion, action, and camera control
8
8
  * * `kling-3.0`: Cinematic, multi-scene storytelling
@@ -44,7 +44,7 @@ export type V1TextToVideoCreateBody = {
44
44
  * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
45
45
  * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
46
46
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
47
- * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
47
+ * * **`seedance`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
48
48
  * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
49
49
  * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
50
50
  *
@@ -54,7 +54,7 @@ export type V1TextToVideoCreateBody = {
54
54
  * The AI model to use for video generation.
55
55
  *
56
56
  * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
57
- * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame
57
+ * * `ltx-2.3`: Fast iteration with lip-sync & end frame
58
58
  * * `wan-2.2`: Fast, strong visuals with effects
59
59
  * * `kling-2.5`: Motion, action, and camera control
60
60
  * * `kling-3.0`: Cinematic, multi-scene storytelling
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.62.0",
3
+ "version": "0.64.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {