magic-hour 0.78.0 → 0.80.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.
- package/README.md +4 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-video-editor/request-types.d.ts +5 -5
- package/dist/resources/v1/ai-video-editor/request-types.js +6 -2
- package/dist/resources/v1/ai-video-translator/index.d.ts +2 -0
- package/dist/resources/v1/ai-video-translator/index.js +5 -0
- package/dist/resources/v1/ai-video-translator/request-types.d.ts +48 -0
- package/dist/resources/v1/ai-video-translator/request-types.js +196 -0
- package/dist/resources/v1/ai-video-translator/resource-client.d.ts +43 -0
- package/dist/resources/v1/ai-video-translator/resource-client.js +84 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +10 -18
- package/dist/resources/v1/index.d.ts +1 -0
- package/dist/resources/v1/index.js +2 -1
- package/dist/resources/v1/resource-client.d.ts +3 -0
- package/dist/resources/v1/resource-client.js +6 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +12 -19
- package/dist/resources/v1/text-to-video/request-types.js +9 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/v1-ai-video-editor-create-body-model-enum.d.ts +2 -2
- package/dist/types/v1-ai-video-editor-create-body-resolution-enum.d.ts +1 -1
- package/dist/types/v1-ai-video-editor-create-body.d.ts +5 -5
- package/dist/types/v1-ai-video-editor-create-body.js +6 -2
- package/dist/types/v1-ai-video-translator-create-body-assets.d.ts +27 -0
- package/dist/types/v1-ai-video-translator-create-body-assets.js +67 -0
- package/dist/types/v1-ai-video-translator-create-body-resolution-enum.d.ts +4 -0
- package/dist/types/v1-ai-video-translator-create-body-resolution-enum.js +2 -0
- package/dist/types/v1-ai-video-translator-create-body-target-language-enum.d.ts +4 -0
- package/dist/types/v1-ai-video-translator-create-body-target-language-enum.js +2 -0
- package/dist/types/v1-ai-video-translator-create-body.d.ts +48 -0
- package/dist/types/v1-ai-video-translator-create-body.js +196 -0
- package/dist/types/v1-ai-video-translator-create-response.d.ts +36 -0
- package/dist/types/v1-ai-video-translator-create-response.js +75 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
- package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +3 -3
- package/dist/types/v1-ai-voice-generator-create-body-style.js +0 -2
- package/dist/types/v1-face-swap-create-body-assets-face-swap-mode-enum.d.ts +2 -2
- package/dist/types/v1-face-swap-create-body-assets.d.ts +2 -2
- package/dist/types/v1-face-swap-photo-create-body-assets-face-swap-mode-enum.d.ts +2 -2
- package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +2 -2
- package/dist/types/v1-image-to-video-create-body-assets.d.ts +2 -4
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +0 -2
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +1 -3
- package/dist/types/v1-image-to-video-create-body.d.ts +10 -18
- package/dist/types/v1-lip-sync-create-body-style-generation-mode-enum.d.ts +1 -1
- package/dist/types/v1-lip-sync-create-body-style.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +0 -2
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +0 -2
- package/dist/types/v1-text-to-video-create-body-references-item.d.ts +21 -0
- package/dist/types/v1-text-to-video-create-body-references-item.js +71 -0
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +1 -3
- package/dist/types/v1-text-to-video-create-body.d.ts +12 -19
- package/dist/types/v1-text-to-video-create-body.js +9 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1TextToVideoCreateBodyReferencesItem, V1TextToVideoCreateBodyReferencesItem } from "../../../types/v1-text-to-video-create-body-references-item";
|
|
2
3
|
import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } from "../../../types/v1-text-to-video-create-body-style";
|
|
3
4
|
/**
|
|
4
5
|
* CreateRequest
|
|
@@ -10,14 +11,12 @@ export type CreateRequest = {
|
|
|
10
11
|
* * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
|
|
11
12
|
* * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
|
|
12
13
|
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
13
|
-
* * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
|
|
14
14
|
* * **`ltx-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
15
15
|
* * **`minimax-h3`**: Supports 16:9, 9:16, 1:1.
|
|
16
16
|
* * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.
|
|
17
17
|
* * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
|
|
18
18
|
* * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
|
|
19
19
|
* * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
20
|
-
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
21
20
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
22
21
|
* * **`veo3.1-lite`**: Supports 9:16, 16:9.
|
|
23
22
|
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
@@ -32,14 +31,12 @@ export type CreateRequest = {
|
|
|
32
31
|
* * **`gemini-omni-1.1`**: Not supported
|
|
33
32
|
* * **`kling-2.6`**: Not supported
|
|
34
33
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
35
|
-
* * **`ltx-2.3`**: Toggle-able: no additional credits for audio
|
|
36
34
|
* * **`ltx-2.5`**: Toggle-able: no additional credits for audio
|
|
37
35
|
* * **`minimax-h3`**: Toggle-able: no additional credits for audio
|
|
38
36
|
* * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
|
|
39
37
|
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
40
38
|
* * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
|
|
41
39
|
* * **`seedance-2.5`**: Toggle-able: no additional credits for audio
|
|
42
|
-
* * **`sora-2`**: Toggle-able: no additional credits for audio
|
|
43
40
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
44
41
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
45
42
|
* * **`wan-2.2`**: Not supported
|
|
@@ -50,17 +47,15 @@ export type CreateRequest = {
|
|
|
50
47
|
/**
|
|
51
48
|
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
52
49
|
*
|
|
53
|
-
* * **`gemini-omni-1.1`**:
|
|
50
|
+
* * **`gemini-omni-1.1`**: any integer from 3 to 10
|
|
54
51
|
* * **`kling-2.6`**: 5, 10
|
|
55
|
-
* * **`kling-3.0`**:
|
|
56
|
-
* * **`ltx-2.
|
|
57
|
-
* * **`
|
|
58
|
-
* * **`
|
|
59
|
-
* * **`seedance-
|
|
60
|
-
* * **`seedance-2.0`**:
|
|
61
|
-
* * **`seedance-2.
|
|
62
|
-
* * **`seedance-2.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
|
|
63
|
-
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
52
|
+
* * **`kling-3.0`**: any integer from 3 to 15
|
|
53
|
+
* * **`ltx-2.5`**: any integer from 1 to 60
|
|
54
|
+
* * **`minimax-h3`**: any integer from 1 to 30
|
|
55
|
+
* * **`seedance-1.5`**: any integer from 4 to 12
|
|
56
|
+
* * **`seedance-2.0`**: any integer from 4 to 15
|
|
57
|
+
* * **`seedance-2.0-mini`**: any integer from 4 to 15
|
|
58
|
+
* * **`seedance-2.5`**: any integer from 4 to 30
|
|
64
59
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
65
60
|
* * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
66
61
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
@@ -75,14 +70,12 @@ export type CreateRequest = {
|
|
|
75
70
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
76
71
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
77
72
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
78
|
-
* * `ltx-2.3`: Fastest for general scenes, long clips, audio, and rapid iteration.
|
|
79
73
|
* * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.
|
|
80
74
|
* * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
|
|
81
75
|
* * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
|
|
82
76
|
* * `seedance-2.0`: Best for reference-led clips with precise subject control.
|
|
83
77
|
* * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
|
|
84
78
|
* * `seedance-2.5`: Best for premium realism, detail, and natural motion.
|
|
85
|
-
* * `sora-2`: Best for creative concepts and longer clips with audio.
|
|
86
79
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
87
80
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
88
81
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
@@ -99,20 +92,19 @@ export type CreateRequest = {
|
|
|
99
92
|
* Deprecated. Use `aspect_ratio` instead.
|
|
100
93
|
*/
|
|
101
94
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
95
|
+
references?: V1TextToVideoCreateBodyReferencesItem[] | undefined;
|
|
102
96
|
/**
|
|
103
97
|
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
104
98
|
*
|
|
105
99
|
* * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
|
|
106
100
|
* * **`kling-2.6`**: Supports 720p, 1080p.
|
|
107
101
|
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
108
|
-
* * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
|
|
109
102
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
110
103
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
111
104
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
112
105
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
113
106
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
114
|
-
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
115
|
-
* * **`sora-2`**: Supports 720p.
|
|
107
|
+
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
116
108
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
117
109
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
118
110
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
@@ -134,6 +126,7 @@ export type External$CreateRequest = {
|
|
|
134
126
|
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
135
127
|
name?: string | undefined;
|
|
136
128
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
129
|
+
references?: External$V1TextToVideoCreateBodyReferencesItem[] | undefined;
|
|
137
130
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
138
131
|
style: External$V1TextToVideoCreateBodyStyle;
|
|
139
132
|
};
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.Schemas$CreateRequest = void 0;
|
|
37
37
|
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
38
|
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_text_to_video_create_body_references_item_1 = require("../../../types/v1-text-to-video-create-body-references-item");
|
|
39
40
|
const v1_text_to_video_create_body_style_1 = require("../../../types/v1-text-to-video-create-body-style");
|
|
40
41
|
/**
|
|
41
42
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
@@ -73,6 +74,9 @@ const SchemaIn$CreateRequest = z
|
|
|
73
74
|
.optional(),
|
|
74
75
|
name: z.string().optional(),
|
|
75
76
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
77
|
+
references: z
|
|
78
|
+
.array(v1_text_to_video_create_body_references_item_1.Schemas$V1TextToVideoCreateBodyReferencesItem.in)
|
|
79
|
+
.optional(),
|
|
76
80
|
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
77
81
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.in,
|
|
78
82
|
})
|
|
@@ -84,6 +88,7 @@ const SchemaIn$CreateRequest = z
|
|
|
84
88
|
model: "model",
|
|
85
89
|
name: "name",
|
|
86
90
|
orientation: "orientation",
|
|
91
|
+
references: "references",
|
|
87
92
|
resolution: "resolution",
|
|
88
93
|
style: "style",
|
|
89
94
|
});
|
|
@@ -125,6 +130,9 @@ const SchemaOut$CreateRequest = z
|
|
|
125
130
|
.optional(),
|
|
126
131
|
name: z.string().optional(),
|
|
127
132
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
133
|
+
references: z
|
|
134
|
+
.array(v1_text_to_video_create_body_references_item_1.Schemas$V1TextToVideoCreateBodyReferencesItem.out)
|
|
135
|
+
.optional(),
|
|
128
136
|
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
129
137
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.out,
|
|
130
138
|
})
|
|
@@ -136,6 +144,7 @@ const SchemaOut$CreateRequest = z
|
|
|
136
144
|
model: "model",
|
|
137
145
|
name: "name",
|
|
138
146
|
orientation: "orientation",
|
|
147
|
+
references: "references",
|
|
139
148
|
resolution: "resolution",
|
|
140
149
|
style: "style",
|
|
141
150
|
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -62,6 +62,11 @@ export { V1AiVideoEditorCreateBodyModelEnum } from "./v1-ai-video-editor-create-
|
|
|
62
62
|
export { V1AiVideoEditorCreateBodyResolutionEnum } from "./v1-ai-video-editor-create-body-resolution-enum";
|
|
63
63
|
export { V1AiVideoEditorCreateBodyStyle } from "./v1-ai-video-editor-create-body-style";
|
|
64
64
|
export { V1AiVideoEditorCreateResponse } from "./v1-ai-video-editor-create-response";
|
|
65
|
+
export { V1AiVideoTranslatorCreateBody } from "./v1-ai-video-translator-create-body";
|
|
66
|
+
export { V1AiVideoTranslatorCreateBodyAssets } from "./v1-ai-video-translator-create-body-assets";
|
|
67
|
+
export { V1AiVideoTranslatorCreateBodyResolutionEnum } from "./v1-ai-video-translator-create-body-resolution-enum";
|
|
68
|
+
export { V1AiVideoTranslatorCreateBodyTargetLanguageEnum } from "./v1-ai-video-translator-create-body-target-language-enum";
|
|
69
|
+
export { V1AiVideoTranslatorCreateResponse } from "./v1-ai-video-translator-create-response";
|
|
65
70
|
export { V1AiVoiceClonerCreateBody } from "./v1-ai-voice-cloner-create-body";
|
|
66
71
|
export { V1AiVoiceClonerCreateBodyAssets } from "./v1-ai-voice-cloner-create-body-assets";
|
|
67
72
|
export { V1AiVoiceClonerCreateBodyStyle } from "./v1-ai-voice-cloner-create-body-style";
|
|
@@ -165,6 +170,7 @@ export { V1TextToVideoCreateBody } from "./v1-text-to-video-create-body";
|
|
|
165
170
|
export { V1TextToVideoCreateBodyAspectRatioEnum } from "./v1-text-to-video-create-body-aspect-ratio-enum";
|
|
166
171
|
export { V1TextToVideoCreateBodyModelEnum } from "./v1-text-to-video-create-body-model-enum";
|
|
167
172
|
export { V1TextToVideoCreateBodyOrientationEnum } from "./v1-text-to-video-create-body-orientation-enum";
|
|
173
|
+
export { V1TextToVideoCreateBodyReferencesItem } from "./v1-text-to-video-create-body-references-item";
|
|
168
174
|
export { V1TextToVideoCreateBodyResolutionEnum } from "./v1-text-to-video-create-body-resolution-enum";
|
|
169
175
|
export { V1TextToVideoCreateBodyStyle } from "./v1-text-to-video-create-body-style";
|
|
170
176
|
export { V1TextToVideoCreateBodyStyleQualityModeEnum } from "./v1-text-to-video-create-body-style-quality-mode-enum";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Editing model. Defaults to
|
|
2
|
+
* Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
|
|
3
3
|
*/
|
|
4
|
-
export type V1AiVideoEditorCreateBodyModelEnum = "gemini-omni" | "gemini-omni-1.1" | "ltx-2.3";
|
|
4
|
+
export type V1AiVideoEditorCreateBodyModelEnum = "gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX
|
|
2
|
+
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p.
|
|
3
3
|
*/
|
|
4
4
|
export type V1AiVideoEditorCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -10,19 +10,19 @@ export type V1AiVideoEditorCreateBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
assets: V1AiVideoEditorCreateBodyAssets;
|
|
12
12
|
/**
|
|
13
|
-
* End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s,
|
|
13
|
+
* End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 45s.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
* Editing model. Defaults to
|
|
17
|
+
* Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
|
|
18
18
|
*/
|
|
19
|
-
model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3") | undefined;
|
|
19
|
+
model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5") | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* Give your video a custom name for easy identification.
|
|
22
22
|
*/
|
|
23
23
|
name?: string | undefined;
|
|
24
24
|
/**
|
|
25
|
-
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX
|
|
25
|
+
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. `gemini-omni-1.1` and deprecated `gemini-omni` support 720p and 1080p; LTX 2.5 supports 480p, 720p, and 1080p.
|
|
26
26
|
*/
|
|
27
27
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
28
28
|
/**
|
|
@@ -39,7 +39,7 @@ export type V1AiVideoEditorCreateBody = {
|
|
|
39
39
|
export type External$V1AiVideoEditorCreateBody = {
|
|
40
40
|
assets: External$V1AiVideoEditorCreateBodyAssets;
|
|
41
41
|
end_seconds: number;
|
|
42
|
-
model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3") | undefined;
|
|
42
|
+
model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5") | undefined;
|
|
43
43
|
name?: string | undefined;
|
|
44
44
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
45
45
|
start_seconds?: number | undefined;
|
|
@@ -45,7 +45,9 @@ const SchemaIn$V1AiVideoEditorCreateBody = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_ai_video_editor_create_body_assets_1.Schemas$V1AiVideoEditorCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
-
model: z
|
|
48
|
+
model: z
|
|
49
|
+
.enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5"])
|
|
50
|
+
.optional(),
|
|
49
51
|
name: z.string().optional(),
|
|
50
52
|
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
51
53
|
start_seconds: z.number().optional(),
|
|
@@ -70,7 +72,9 @@ const SchemaOut$V1AiVideoEditorCreateBody = z
|
|
|
70
72
|
.object({
|
|
71
73
|
assets: v1_ai_video_editor_create_body_assets_1.Schemas$V1AiVideoEditorCreateBodyAssets.out,
|
|
72
74
|
endSeconds: z.number(),
|
|
73
|
-
model: z
|
|
75
|
+
model: z
|
|
76
|
+
.enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5"])
|
|
77
|
+
.optional(),
|
|
74
78
|
name: z.string().optional(),
|
|
75
79
|
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
76
80
|
startSeconds: z.number().optional(),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Source video for the translation job.
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiVideoTranslatorCreateBodyAssets = {
|
|
6
|
+
/**
|
|
7
|
+
* Source video containing the speech to translate. 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
|
+
* V1AiVideoTranslatorCreateBodyAssets without any key transformation, this is what
|
|
19
|
+
* we expect to come in as network data
|
|
20
|
+
*/
|
|
21
|
+
export type External$V1AiVideoTranslatorCreateBodyAssets = {
|
|
22
|
+
video_file_path: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const Schemas$V1AiVideoTranslatorCreateBodyAssets: {
|
|
25
|
+
in: z.ZodType<V1AiVideoTranslatorCreateBodyAssets, z.ZodTypeDef, unknown>;
|
|
26
|
+
out: z.ZodType<External$V1AiVideoTranslatorCreateBodyAssets, z.ZodTypeDef, V1AiVideoTranslatorCreateBodyAssets>;
|
|
27
|
+
};
|
|
@@ -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$V1AiVideoTranslatorCreateBodyAssets = 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 V1AiVideoTranslatorCreateBodyAssets
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiVideoTranslatorCreateBodyAssets = z
|
|
43
|
+
.object({
|
|
44
|
+
video_file_path: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
48
|
+
video_file_path: "videoFilePath",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiVideoTranslatorCreateBodyAssets
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1AiVideoTranslatorCreateBodyAssets = z
|
|
56
|
+
.object({
|
|
57
|
+
videoFilePath: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
61
|
+
videoFilePath: "video_file_path",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1AiVideoTranslatorCreateBodyAssets = {
|
|
65
|
+
in: SchemaIn$V1AiVideoTranslatorCreateBodyAssets,
|
|
66
|
+
out: SchemaOut$V1AiVideoTranslatorCreateBodyAssets,
|
|
67
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language to translate the video's speech into.
|
|
3
|
+
*/
|
|
4
|
+
export type V1AiVideoTranslatorCreateBodyTargetLanguageEnum = "Afrikaans" | "Arabic" | "Bengali" | "Bulgarian" | "Catalan" | "Chinese (Simplified)" | "Chinese (Traditional)" | "Croatian" | "Czech" | "Danish" | "Dutch" | "English" | "Estonian" | "Finnish" | "French" | "German" | "Greek" | "Gujarati" | "Hebrew" | "Hindi" | "Hungarian" | "Indonesian" | "Italian" | "Japanese" | "Kannada" | "Kazakh" | "Korean" | "Latvian" | "Lithuanian" | "Malay" | "Malayalam" | "Marathi" | "Norwegian" | "Persian" | "Polish" | "Portuguese" | "Punjabi" | "Romanian" | "Russian" | "Serbian" | "Slovak" | "Slovenian" | "Spanish" | "Swahili" | "Swedish" | "Tamil" | "Telugu" | "Thai" | "Turkish" | "Ukrainian" | "Urdu" | "Vietnamese" | "Welsh";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { External$V1AiVideoTranslatorCreateBodyAssets, V1AiVideoTranslatorCreateBodyAssets } from "./v1-ai-video-translator-create-body-assets";
|
|
3
|
+
/**
|
|
4
|
+
* V1AiVideoTranslatorCreateBody
|
|
5
|
+
*/
|
|
6
|
+
export type V1AiVideoTranslatorCreateBody = {
|
|
7
|
+
/**
|
|
8
|
+
* Source video for the translation job.
|
|
9
|
+
*/
|
|
10
|
+
assets: V1AiVideoTranslatorCreateBodyAssets;
|
|
11
|
+
/**
|
|
12
|
+
* End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.
|
|
13
|
+
*/
|
|
14
|
+
endSeconds: number;
|
|
15
|
+
/**
|
|
16
|
+
* Give your video a custom name for easy identification.
|
|
17
|
+
*/
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.
|
|
21
|
+
*/
|
|
22
|
+
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Start time of your clip (seconds). Must be ≥ 0.
|
|
25
|
+
*/
|
|
26
|
+
startSeconds?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Language to translate the video's speech into.
|
|
29
|
+
*/
|
|
30
|
+
targetLanguage: "Afrikaans" | "Arabic" | "Bengali" | "Bulgarian" | "Catalan" | "Chinese (Simplified)" | "Chinese (Traditional)" | "Croatian" | "Czech" | "Danish" | "Dutch" | "English" | "Estonian" | "Finnish" | "French" | "German" | "Greek" | "Gujarati" | "Hebrew" | "Hindi" | "Hungarian" | "Indonesian" | "Italian" | "Japanese" | "Kannada" | "Kazakh" | "Korean" | "Latvian" | "Lithuanian" | "Malay" | "Malayalam" | "Marathi" | "Norwegian" | "Persian" | "Polish" | "Portuguese" | "Punjabi" | "Romanian" | "Russian" | "Serbian" | "Slovak" | "Slovenian" | "Spanish" | "Swahili" | "Swedish" | "Tamil" | "Telugu" | "Thai" | "Turkish" | "Ukrainian" | "Urdu" | "Vietnamese" | "Welsh";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* V1AiVideoTranslatorCreateBody without any key transformation, this is what
|
|
35
|
+
* we expect to come in as network data
|
|
36
|
+
*/
|
|
37
|
+
export type External$V1AiVideoTranslatorCreateBody = {
|
|
38
|
+
assets: External$V1AiVideoTranslatorCreateBodyAssets;
|
|
39
|
+
end_seconds: number;
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
42
|
+
start_seconds?: number | undefined;
|
|
43
|
+
target_language: "Afrikaans" | "Arabic" | "Bengali" | "Bulgarian" | "Catalan" | "Chinese (Simplified)" | "Chinese (Traditional)" | "Croatian" | "Czech" | "Danish" | "Dutch" | "English" | "Estonian" | "Finnish" | "French" | "German" | "Greek" | "Gujarati" | "Hebrew" | "Hindi" | "Hungarian" | "Indonesian" | "Italian" | "Japanese" | "Kannada" | "Kazakh" | "Korean" | "Latvian" | "Lithuanian" | "Malay" | "Malayalam" | "Marathi" | "Norwegian" | "Persian" | "Polish" | "Portuguese" | "Punjabi" | "Romanian" | "Russian" | "Serbian" | "Slovak" | "Slovenian" | "Spanish" | "Swahili" | "Swedish" | "Tamil" | "Telugu" | "Thai" | "Turkish" | "Ukrainian" | "Urdu" | "Vietnamese" | "Welsh";
|
|
44
|
+
};
|
|
45
|
+
export declare const Schemas$V1AiVideoTranslatorCreateBody: {
|
|
46
|
+
in: z.ZodType<V1AiVideoTranslatorCreateBody, z.ZodTypeDef, unknown>;
|
|
47
|
+
out: z.ZodType<External$V1AiVideoTranslatorCreateBody, z.ZodTypeDef, V1AiVideoTranslatorCreateBody>;
|
|
48
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
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$V1AiVideoTranslatorCreateBody = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_ai_video_translator_create_body_assets_1 = require("./v1-ai-video-translator-create-body-assets");
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiVideoTranslatorCreateBody
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$V1AiVideoTranslatorCreateBody = z
|
|
44
|
+
.object({
|
|
45
|
+
assets: v1_ai_video_translator_create_body_assets_1.Schemas$V1AiVideoTranslatorCreateBodyAssets.in,
|
|
46
|
+
end_seconds: z.number(),
|
|
47
|
+
name: z.string().optional(),
|
|
48
|
+
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
49
|
+
start_seconds: z.number().optional(),
|
|
50
|
+
target_language: z.enum([
|
|
51
|
+
"Afrikaans",
|
|
52
|
+
"Arabic",
|
|
53
|
+
"Bengali",
|
|
54
|
+
"Bulgarian",
|
|
55
|
+
"Catalan",
|
|
56
|
+
"Chinese (Simplified)",
|
|
57
|
+
"Chinese (Traditional)",
|
|
58
|
+
"Croatian",
|
|
59
|
+
"Czech",
|
|
60
|
+
"Danish",
|
|
61
|
+
"Dutch",
|
|
62
|
+
"English",
|
|
63
|
+
"Estonian",
|
|
64
|
+
"Finnish",
|
|
65
|
+
"French",
|
|
66
|
+
"German",
|
|
67
|
+
"Greek",
|
|
68
|
+
"Gujarati",
|
|
69
|
+
"Hebrew",
|
|
70
|
+
"Hindi",
|
|
71
|
+
"Hungarian",
|
|
72
|
+
"Indonesian",
|
|
73
|
+
"Italian",
|
|
74
|
+
"Japanese",
|
|
75
|
+
"Kannada",
|
|
76
|
+
"Kazakh",
|
|
77
|
+
"Korean",
|
|
78
|
+
"Latvian",
|
|
79
|
+
"Lithuanian",
|
|
80
|
+
"Malay",
|
|
81
|
+
"Malayalam",
|
|
82
|
+
"Marathi",
|
|
83
|
+
"Norwegian",
|
|
84
|
+
"Persian",
|
|
85
|
+
"Polish",
|
|
86
|
+
"Portuguese",
|
|
87
|
+
"Punjabi",
|
|
88
|
+
"Romanian",
|
|
89
|
+
"Russian",
|
|
90
|
+
"Serbian",
|
|
91
|
+
"Slovak",
|
|
92
|
+
"Slovenian",
|
|
93
|
+
"Spanish",
|
|
94
|
+
"Swahili",
|
|
95
|
+
"Swedish",
|
|
96
|
+
"Tamil",
|
|
97
|
+
"Telugu",
|
|
98
|
+
"Thai",
|
|
99
|
+
"Turkish",
|
|
100
|
+
"Ukrainian",
|
|
101
|
+
"Urdu",
|
|
102
|
+
"Vietnamese",
|
|
103
|
+
"Welsh",
|
|
104
|
+
]),
|
|
105
|
+
})
|
|
106
|
+
.transform((obj) => {
|
|
107
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
108
|
+
assets: "assets",
|
|
109
|
+
end_seconds: "endSeconds",
|
|
110
|
+
name: "name",
|
|
111
|
+
resolution: "resolution",
|
|
112
|
+
start_seconds: "startSeconds",
|
|
113
|
+
target_language: "targetLanguage",
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiVideoTranslatorCreateBody
|
|
119
|
+
*/
|
|
120
|
+
const SchemaOut$V1AiVideoTranslatorCreateBody = z
|
|
121
|
+
.object({
|
|
122
|
+
assets: v1_ai_video_translator_create_body_assets_1.Schemas$V1AiVideoTranslatorCreateBodyAssets.out,
|
|
123
|
+
endSeconds: z.number(),
|
|
124
|
+
name: z.string().optional(),
|
|
125
|
+
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
126
|
+
startSeconds: z.number().optional(),
|
|
127
|
+
targetLanguage: z.enum([
|
|
128
|
+
"Afrikaans",
|
|
129
|
+
"Arabic",
|
|
130
|
+
"Bengali",
|
|
131
|
+
"Bulgarian",
|
|
132
|
+
"Catalan",
|
|
133
|
+
"Chinese (Simplified)",
|
|
134
|
+
"Chinese (Traditional)",
|
|
135
|
+
"Croatian",
|
|
136
|
+
"Czech",
|
|
137
|
+
"Danish",
|
|
138
|
+
"Dutch",
|
|
139
|
+
"English",
|
|
140
|
+
"Estonian",
|
|
141
|
+
"Finnish",
|
|
142
|
+
"French",
|
|
143
|
+
"German",
|
|
144
|
+
"Greek",
|
|
145
|
+
"Gujarati",
|
|
146
|
+
"Hebrew",
|
|
147
|
+
"Hindi",
|
|
148
|
+
"Hungarian",
|
|
149
|
+
"Indonesian",
|
|
150
|
+
"Italian",
|
|
151
|
+
"Japanese",
|
|
152
|
+
"Kannada",
|
|
153
|
+
"Kazakh",
|
|
154
|
+
"Korean",
|
|
155
|
+
"Latvian",
|
|
156
|
+
"Lithuanian",
|
|
157
|
+
"Malay",
|
|
158
|
+
"Malayalam",
|
|
159
|
+
"Marathi",
|
|
160
|
+
"Norwegian",
|
|
161
|
+
"Persian",
|
|
162
|
+
"Polish",
|
|
163
|
+
"Portuguese",
|
|
164
|
+
"Punjabi",
|
|
165
|
+
"Romanian",
|
|
166
|
+
"Russian",
|
|
167
|
+
"Serbian",
|
|
168
|
+
"Slovak",
|
|
169
|
+
"Slovenian",
|
|
170
|
+
"Spanish",
|
|
171
|
+
"Swahili",
|
|
172
|
+
"Swedish",
|
|
173
|
+
"Tamil",
|
|
174
|
+
"Telugu",
|
|
175
|
+
"Thai",
|
|
176
|
+
"Turkish",
|
|
177
|
+
"Ukrainian",
|
|
178
|
+
"Urdu",
|
|
179
|
+
"Vietnamese",
|
|
180
|
+
"Welsh",
|
|
181
|
+
]),
|
|
182
|
+
})
|
|
183
|
+
.transform((obj) => {
|
|
184
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
185
|
+
assets: "assets",
|
|
186
|
+
endSeconds: "end_seconds",
|
|
187
|
+
name: "name",
|
|
188
|
+
resolution: "resolution",
|
|
189
|
+
startSeconds: "start_seconds",
|
|
190
|
+
targetLanguage: "target_language",
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
exports.Schemas$V1AiVideoTranslatorCreateBody = {
|
|
194
|
+
in: SchemaIn$V1AiVideoTranslatorCreateBody,
|
|
195
|
+
out: SchemaOut$V1AiVideoTranslatorCreateBody,
|
|
196
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Success
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiVideoTranslatorCreateResponse = {
|
|
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
|
+
* V1AiVideoTranslatorCreateResponse without any key transformation, this is what
|
|
26
|
+
* we expect to come in as network data
|
|
27
|
+
*/
|
|
28
|
+
export type External$V1AiVideoTranslatorCreateResponse = {
|
|
29
|
+
credits_charged: number;
|
|
30
|
+
estimated_frame_cost: number;
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const Schemas$V1AiVideoTranslatorCreateResponse: {
|
|
34
|
+
in: z.ZodType<V1AiVideoTranslatorCreateResponse, z.ZodTypeDef, unknown>;
|
|
35
|
+
out: z.ZodType<External$V1AiVideoTranslatorCreateResponse, z.ZodTypeDef, V1AiVideoTranslatorCreateResponse>;
|
|
36
|
+
};
|