magic-hour 0.61.0 → 0.63.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 (60) 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 +10 -5
  5. package/dist/resources/v1/ai-image-editor/request-types.js +2 -0
  6. package/dist/resources/v1/ai-image-generator/request-types.d.ts +10 -5
  7. package/dist/resources/v1/ai-image-generator/request-types.js +2 -0
  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 +136 -0
  14. package/dist/resources/v1/files/upload-urls/resource-client.d.ts +1 -1
  15. package/dist/resources/v1/files/upload-urls/resource-client.js +1 -1
  16. package/dist/resources/v1/image-to-video/request-types.d.ts +27 -36
  17. package/dist/resources/v1/image-to-video/request-types.js +4 -2
  18. package/dist/resources/v1/index.d.ts +1 -0
  19. package/dist/resources/v1/index.js +2 -1
  20. package/dist/resources/v1/resource-client.d.ts +3 -0
  21. package/dist/resources/v1/resource-client.js +6 -0
  22. package/dist/resources/v1/text-to-video/request-types.d.ts +32 -43
  23. package/dist/resources/v1/text-to-video/request-types.js +4 -2
  24. package/dist/types/index.d.ts +5 -0
  25. package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +8 -4
  26. package/dist/types/v1-ai-image-editor-create-body-resolution-enum.d.ts +1 -0
  27. package/dist/types/v1-ai-image-editor-create-body.d.ts +10 -5
  28. package/dist/types/v1-ai-image-editor-create-body.js +2 -0
  29. package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +8 -4
  30. package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +1 -0
  31. package/dist/types/v1-ai-image-generator-create-body.d.ts +10 -5
  32. package/dist/types/v1-ai-image-generator-create-body.js +2 -0
  33. package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
  34. package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +3 -3
  35. package/dist/types/v1-ai-voice-generator-create-body-style.js +590 -0
  36. package/dist/types/v1-audio-projects-get-response.d.ts +1 -1
  37. package/dist/types/v1-audio-to-video-create-body-assets.d.ts +37 -0
  38. package/dist/types/v1-audio-to-video-create-body-assets.js +71 -0
  39. package/dist/types/v1-audio-to-video-create-body-resolution-enum.d.ts +4 -0
  40. package/dist/types/v1-audio-to-video-create-body-resolution-enum.js +2 -0
  41. package/dist/types/v1-audio-to-video-create-body-style.d.ts +22 -0
  42. package/dist/types/v1-audio-to-video-create-body-style.js +67 -0
  43. package/dist/types/v1-audio-to-video-create-body.d.ts +49 -0
  44. package/dist/types/v1-audio-to-video-create-body.js +89 -0
  45. package/dist/types/v1-audio-to-video-create-response.d.ts +36 -0
  46. package/dist/types/v1-audio-to-video-create-response.js +75 -0
  47. package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +1 -1
  48. package/dist/types/v1-image-projects-get-response.d.ts +1 -1
  49. package/dist/types/v1-image-to-video-create-body-assets.d.ts +5 -7
  50. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +7 -10
  51. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +6 -8
  52. package/dist/types/v1-image-to-video-create-body.d.ts +27 -36
  53. package/dist/types/v1-image-to-video-create-body.js +4 -2
  54. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +5 -7
  55. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +7 -10
  56. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +6 -8
  57. package/dist/types/v1-text-to-video-create-body.d.ts +32 -43
  58. package/dist/types/v1-text-to-video-create-body.js +4 -2
  59. package/dist/types/v1-video-projects-get-response.d.ts +1 -1
  60. 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
+ };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1FilesUploadUrlsCreateBodyItemsItem = {
6
6
  /**
7
- * The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,png,jpg,jpeg,heic,webp,avif,jp2,tiff,bmp,gif,webp,webm
7
+ * The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,png,jpg,jpeg,heic,heif,webp,avif,jp2,tiff,bmp,gif,webp,webm
8
8
  */
9
9
  extension: string;
10
10
  /**
@@ -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
  };
@@ -6,18 +6,16 @@ export type V1ImageToVideoCreateBodyAssets = {
6
6
  /**
7
7
  * The image to use as the last frame of the video.
8
8
  *
9
- * * **`ltx-2`**: Not supported
9
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
10
10
  * * **`wan-2.2`**: Not supported
11
+ * * **`kling-2.5`**: Supports 1080p.
12
+ * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
13
+ * * **`veo3.1-lite`**: Not supported
14
+ * * **`veo3.1`**: Not supported
11
15
  * * **`seedance`**: Supports 480p, 720p, 1080p.
12
16
  * * **`seedance-2.0`**: Supports 480p, 720p.
13
- * * **`kling-2.5`**: Supports 1080p.
14
- * * **`kling-3.0`**: Supports 1080p.
15
17
  * * **`sora-2`**: Not supported
16
- * * **`veo3.1`**: Not supported
17
- * * **`veo3.1-lite`**: Not supported
18
18
  *
19
- * Legacy models:
20
- * * **`kling-1.6`**: Not supported
21
19
  */
22
20
  endImageFilePath?: string | undefined;
23
21
  /**
@@ -1,20 +1,17 @@
1
1
  /**
2
2
  * The AI model to use for video generation.
3
3
  *
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`.
5
- * * `ltx-2`: Fast iteration with audio and lip-sync
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 lip-sync & end frame
6
6
  * * `wan-2.2`: Fast, strong visuals with effects
7
- * * `seedance`: Fast iteration and start/end frames
8
- * * `seedance-2.0`: State-of-the-art quality and consistency
9
7
  * * `kling-2.5`: Motion, action, and camera control
10
8
  * * `kling-3.0`: Cinematic, multi-scene storytelling
11
- * * `sora-2`: Story-first concepts and creativity
9
+ * * `veo3.1-lite`: Fast, affordable, high-quality
12
10
  * * `veo3.1`: Realistic visuals and prompt adherence
13
- * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
14
- *
15
- * Legacy models:
16
- * * `kling-1.6`: Reliable baseline with smooth motion
11
+ * * `seedance`: Fast iteration and start/end frames
12
+ * * `seedance-2.0`: State-of-the-art quality and consistency
13
+ * * `sora-2`: Story-first concepts and creativity
17
14
  *
18
15
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
19
16
  */
20
- export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2";
17
+ export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2";
@@ -1,17 +1,15 @@
1
1
  /**
2
2
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
3
3
  *
4
- * * **`ltx-2`**: Supports 480p, 720p, 1080p.
4
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
5
5
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
6
+ * * **`kling-2.5`**: Supports 720p, 1080p.
7
+ * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
8
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
9
+ * * **`veo3.1`**: Supports 720p, 1080p.
6
10
  * * **`seedance`**: Supports 480p, 720p, 1080p.
7
11
  * * **`seedance-2.0`**: Supports 480p, 720p.
8
- * * **`kling-2.5`**: Supports 720p, 1080p.
9
- * * **`kling-3.0`**: Supports 720p, 1080p.
10
12
  * * **`sora-2`**: Supports 720p.
11
- * * **`veo3.1`**: Supports 720p, 1080p.
12
- * * **`veo3.1-lite`**: Supports 720p, 1080p.
13
13
  *
14
- * Legacy models:
15
- * * **`kling-1.6`**: Supports 720p, 1080p.
16
14
  */
17
- export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
15
+ export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "4k" | "720p";