magic-hour 0.34.0 → 0.35.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/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/face-swap/request-types.d.ts +14 -16
- package/dist/resources/v1/face-swap/request-types.js +4 -4
- package/dist/resources/v1/image-to-video/request-types.d.ts +16 -8
- package/dist/resources/v1/image-to-video/request-types.js +4 -4
- package/dist/resources/v1/lip-sync/request-types.d.ts +14 -16
- package/dist/resources/v1/lip-sync/request-types.js +4 -4
- package/dist/resources/v1/video-to-video/request-types.d.ts +14 -16
- package/dist/resources/v1/video-to-video/request-types.js +4 -4
- package/dist/types/v1-face-swap-create-body.d.ts +14 -16
- package/dist/types/v1-face-swap-create-body.js +4 -4
- package/dist/types/v1-image-to-video-create-body.d.ts +16 -8
- package/dist/types/v1-image-to-video-create-body.js +4 -4
- package/dist/types/v1-lip-sync-create-body.d.ts +14 -16
- package/dist/types/v1-lip-sync-create-body.js +4 -4
- package/dist/types/v1-video-to-video-create-body.d.ts +14 -16
- package/dist/types/v1-video-to-video-create-body.js +4 -4
- package/package.json +1 -1
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -4,5 +4,5 @@ exports.Environment = void 0;
|
|
|
4
4
|
var Environment;
|
|
5
5
|
(function (Environment) {
|
|
6
6
|
Environment["Environment"] = "https://api.magichour.ai";
|
|
7
|
-
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.35.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -13,16 +13,15 @@ export type CreateRequest = {
|
|
|
13
13
|
*/
|
|
14
14
|
endSeconds: number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* Output resolution is determined by the **minimum** of:
|
|
19
|
+
* - The resolution of the input video
|
|
20
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
23
|
*/
|
|
25
|
-
height?: number | undefined;
|
|
24
|
+
height?: number | null | undefined;
|
|
26
25
|
/**
|
|
27
26
|
* The name of video. This value is mainly used for your own identification of the video.
|
|
28
27
|
*/
|
|
@@ -32,16 +31,15 @@ export type CreateRequest = {
|
|
|
32
31
|
*/
|
|
33
32
|
startSeconds: number;
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* * If width is provided, height will also be required. The larger value between width and height will be used to determine the maximum output resolution while maintaining the original aspect ratio.
|
|
38
|
-
* * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
|
|
34
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
39
35
|
*
|
|
40
|
-
*
|
|
36
|
+
* Output resolution is determined by the **minimum** of:
|
|
37
|
+
* - The resolution of the input video
|
|
38
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
41
39
|
*
|
|
42
|
-
*
|
|
40
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
43
41
|
*/
|
|
44
|
-
width?: number | undefined;
|
|
42
|
+
width?: number | null | undefined;
|
|
45
43
|
};
|
|
46
44
|
/**
|
|
47
45
|
* @internal
|
|
@@ -51,10 +49,10 @@ export type CreateRequest = {
|
|
|
51
49
|
export type External$CreateRequest = {
|
|
52
50
|
assets: External$V1FaceSwapCreateBodyAssets;
|
|
53
51
|
end_seconds: number;
|
|
54
|
-
height?: number | undefined;
|
|
52
|
+
height?: number | null | undefined;
|
|
55
53
|
name?: string | undefined;
|
|
56
54
|
start_seconds: number;
|
|
57
|
-
width?: number | undefined;
|
|
55
|
+
width?: number | null | undefined;
|
|
58
56
|
};
|
|
59
57
|
export declare const Schemas$CreateRequest: {
|
|
60
58
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -44,10 +44,10 @@ const SchemaIn$CreateRequest = z
|
|
|
44
44
|
.object({
|
|
45
45
|
assets: v1_face_swap_create_body_assets_1.Schemas$V1FaceSwapCreateBodyAssets.in,
|
|
46
46
|
end_seconds: z.number(),
|
|
47
|
-
height: z.number().int().optional(),
|
|
47
|
+
height: z.number().int().nullable().optional(),
|
|
48
48
|
name: z.string().optional(),
|
|
49
49
|
start_seconds: z.number(),
|
|
50
|
-
width: z.number().int().optional(),
|
|
50
|
+
width: z.number().int().nullable().optional(),
|
|
51
51
|
})
|
|
52
52
|
.transform((obj) => {
|
|
53
53
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -67,10 +67,10 @@ const SchemaOut$CreateRequest = z
|
|
|
67
67
|
.object({
|
|
68
68
|
assets: v1_face_swap_create_body_assets_1.Schemas$V1FaceSwapCreateBodyAssets.out,
|
|
69
69
|
endSeconds: z.number(),
|
|
70
|
-
height: z.number().int().optional(),
|
|
70
|
+
height: z.number().int().nullable().optional(),
|
|
71
71
|
name: z.string().optional(),
|
|
72
72
|
startSeconds: z.number(),
|
|
73
|
-
width: z.number().int().optional(),
|
|
73
|
+
width: z.number().int().nullable().optional(),
|
|
74
74
|
})
|
|
75
75
|
.transform((obj) => {
|
|
76
76
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -14,11 +14,15 @@ export type CreateRequest = {
|
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* Output resolution is determined by the **minimum** of:
|
|
20
|
+
* - The resolution of the input video
|
|
21
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
+
*
|
|
23
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
20
24
|
*/
|
|
21
|
-
height?: number | undefined;
|
|
25
|
+
height?: number | null | undefined;
|
|
22
26
|
/**
|
|
23
27
|
* The name of video. This value is mainly used for your own identification of the video.
|
|
24
28
|
*/
|
|
@@ -39,11 +43,15 @@ export type CreateRequest = {
|
|
|
39
43
|
*/
|
|
40
44
|
style?: V1ImageToVideoCreateBodyStyle | undefined;
|
|
41
45
|
/**
|
|
42
|
-
*
|
|
46
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
47
|
+
*
|
|
48
|
+
* Output resolution is determined by the **minimum** of:
|
|
49
|
+
* - The resolution of the input video
|
|
50
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
43
51
|
*
|
|
44
|
-
*
|
|
52
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
45
53
|
*/
|
|
46
|
-
width?: number | undefined;
|
|
54
|
+
width?: number | null | undefined;
|
|
47
55
|
};
|
|
48
56
|
/**
|
|
49
57
|
* @internal
|
|
@@ -53,11 +61,11 @@ export type CreateRequest = {
|
|
|
53
61
|
export type External$CreateRequest = {
|
|
54
62
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
55
63
|
end_seconds: number;
|
|
56
|
-
height?: number | undefined;
|
|
64
|
+
height?: number | null | undefined;
|
|
57
65
|
name?: string | undefined;
|
|
58
66
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
59
67
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
60
|
-
width?: number | undefined;
|
|
68
|
+
width?: number | null | undefined;
|
|
61
69
|
};
|
|
62
70
|
export declare const Schemas$CreateRequest: {
|
|
63
71
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -45,11 +45,11 @@ const SchemaIn$CreateRequest = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
-
height: z.number().int().optional(),
|
|
48
|
+
height: z.number().int().nullable().optional(),
|
|
49
49
|
name: z.string().optional(),
|
|
50
50
|
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
51
51
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in.optional(),
|
|
52
|
-
width: z.number().int().optional(),
|
|
52
|
+
width: z.number().int().nullable().optional(),
|
|
53
53
|
})
|
|
54
54
|
.transform((obj) => {
|
|
55
55
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -70,11 +70,11 @@ const SchemaOut$CreateRequest = z
|
|
|
70
70
|
.object({
|
|
71
71
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
72
72
|
endSeconds: z.number(),
|
|
73
|
-
height: z.number().int().optional(),
|
|
73
|
+
height: z.number().int().nullable().optional(),
|
|
74
74
|
name: z.string().optional(),
|
|
75
75
|
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
76
76
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out.optional(),
|
|
77
|
-
width: z.number().int().optional(),
|
|
77
|
+
width: z.number().int().nullable().optional(),
|
|
78
78
|
})
|
|
79
79
|
.transform((obj) => {
|
|
80
80
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -13,16 +13,15 @@ export type CreateRequest = {
|
|
|
13
13
|
*/
|
|
14
14
|
endSeconds: number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* Output resolution is determined by the **minimum** of:
|
|
19
|
+
* - The resolution of the input video
|
|
20
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
23
|
*/
|
|
25
|
-
height?: number | undefined;
|
|
24
|
+
height?: number | null | undefined;
|
|
26
25
|
/**
|
|
27
26
|
* Defines the maximum FPS (frames per second) for the output video. If the input video's FPS is lower than this limit, the output video will retain the input FPS. This is useful for reducing unnecessary frame usage in scenarios where high FPS is not required.
|
|
28
27
|
*/
|
|
@@ -36,16 +35,15 @@ export type CreateRequest = {
|
|
|
36
35
|
*/
|
|
37
36
|
startSeconds: number;
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* * If width is provided, height will also be required. The larger value between width and height will be used to determine the maximum output resolution while maintaining the original aspect ratio.
|
|
42
|
-
* * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
|
|
38
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
43
39
|
*
|
|
44
|
-
*
|
|
40
|
+
* Output resolution is determined by the **minimum** of:
|
|
41
|
+
* - The resolution of the input video
|
|
42
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
45
43
|
*
|
|
46
|
-
*
|
|
44
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
47
45
|
*/
|
|
48
|
-
width?: number | undefined;
|
|
46
|
+
width?: number | null | undefined;
|
|
49
47
|
};
|
|
50
48
|
/**
|
|
51
49
|
* @internal
|
|
@@ -55,11 +53,11 @@ export type CreateRequest = {
|
|
|
55
53
|
export type External$CreateRequest = {
|
|
56
54
|
assets: External$V1LipSyncCreateBodyAssets;
|
|
57
55
|
end_seconds: number;
|
|
58
|
-
height?: number | undefined;
|
|
56
|
+
height?: number | null | undefined;
|
|
59
57
|
max_fps_limit?: number | undefined;
|
|
60
58
|
name?: string | undefined;
|
|
61
59
|
start_seconds: number;
|
|
62
|
-
width?: number | undefined;
|
|
60
|
+
width?: number | null | undefined;
|
|
63
61
|
};
|
|
64
62
|
export declare const Schemas$CreateRequest: {
|
|
65
63
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -44,11 +44,11 @@ const SchemaIn$CreateRequest = z
|
|
|
44
44
|
.object({
|
|
45
45
|
assets: v1_lip_sync_create_body_assets_1.Schemas$V1LipSyncCreateBodyAssets.in,
|
|
46
46
|
end_seconds: z.number(),
|
|
47
|
-
height: z.number().int().optional(),
|
|
47
|
+
height: z.number().int().nullable().optional(),
|
|
48
48
|
max_fps_limit: z.number().optional(),
|
|
49
49
|
name: z.string().optional(),
|
|
50
50
|
start_seconds: z.number(),
|
|
51
|
-
width: z.number().int().optional(),
|
|
51
|
+
width: z.number().int().nullable().optional(),
|
|
52
52
|
})
|
|
53
53
|
.transform((obj) => {
|
|
54
54
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -69,11 +69,11 @@ const SchemaOut$CreateRequest = z
|
|
|
69
69
|
.object({
|
|
70
70
|
assets: v1_lip_sync_create_body_assets_1.Schemas$V1LipSyncCreateBodyAssets.out,
|
|
71
71
|
endSeconds: z.number(),
|
|
72
|
-
height: z.number().int().optional(),
|
|
72
|
+
height: z.number().int().nullable().optional(),
|
|
73
73
|
maxFpsLimit: z.number().optional(),
|
|
74
74
|
name: z.string().optional(),
|
|
75
75
|
startSeconds: z.number(),
|
|
76
|
-
width: z.number().int().optional(),
|
|
76
|
+
width: z.number().int().nullable().optional(),
|
|
77
77
|
})
|
|
78
78
|
.transform((obj) => {
|
|
79
79
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -20,16 +20,15 @@ export type CreateRequest = {
|
|
|
20
20
|
*/
|
|
21
21
|
fpsResolution?: ("FULL" | "HALF") | undefined;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
25
|
+
* Output resolution is determined by the **minimum** of:
|
|
26
|
+
* - The resolution of the input video
|
|
27
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
27
28
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
29
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
31
30
|
*/
|
|
32
|
-
height?: number | undefined;
|
|
31
|
+
height?: number | null | undefined;
|
|
33
32
|
/**
|
|
34
33
|
* The name of video. This value is mainly used for your own identification of the video.
|
|
35
34
|
*/
|
|
@@ -40,16 +39,15 @@ export type CreateRequest = {
|
|
|
40
39
|
startSeconds: number;
|
|
41
40
|
style: V1VideoToVideoCreateBodyStyle;
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* * If width is provided, height will also be required. The larger value between width and height will be used to determine the maximum output resolution while maintaining the original aspect ratio.
|
|
46
|
-
* * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
|
|
42
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
47
43
|
*
|
|
48
|
-
*
|
|
44
|
+
* Output resolution is determined by the **minimum** of:
|
|
45
|
+
* - The resolution of the input video
|
|
46
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
49
47
|
*
|
|
50
|
-
*
|
|
48
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
51
49
|
*/
|
|
52
|
-
width?: number | undefined;
|
|
50
|
+
width?: number | null | undefined;
|
|
53
51
|
};
|
|
54
52
|
/**
|
|
55
53
|
* @internal
|
|
@@ -60,11 +58,11 @@ export type External$CreateRequest = {
|
|
|
60
58
|
assets: External$V1VideoToVideoCreateBodyAssets;
|
|
61
59
|
end_seconds: number;
|
|
62
60
|
fps_resolution?: ("FULL" | "HALF") | undefined;
|
|
63
|
-
height?: number | undefined;
|
|
61
|
+
height?: number | null | undefined;
|
|
64
62
|
name?: string | undefined;
|
|
65
63
|
start_seconds: number;
|
|
66
64
|
style: External$V1VideoToVideoCreateBodyStyle;
|
|
67
|
-
width?: number | undefined;
|
|
65
|
+
width?: number | null | undefined;
|
|
68
66
|
};
|
|
69
67
|
export declare const Schemas$CreateRequest: {
|
|
70
68
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -46,11 +46,11 @@ const SchemaIn$CreateRequest = z
|
|
|
46
46
|
assets: v1_video_to_video_create_body_assets_1.Schemas$V1VideoToVideoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
48
|
fps_resolution: z.enum(["FULL", "HALF"]).optional(),
|
|
49
|
-
height: z.number().int().optional(),
|
|
49
|
+
height: z.number().int().nullable().optional(),
|
|
50
50
|
name: z.string().optional(),
|
|
51
51
|
start_seconds: z.number(),
|
|
52
52
|
style: v1_video_to_video_create_body_style_1.Schemas$V1VideoToVideoCreateBodyStyle.in,
|
|
53
|
-
width: z.number().int().optional(),
|
|
53
|
+
width: z.number().int().nullable().optional(),
|
|
54
54
|
})
|
|
55
55
|
.transform((obj) => {
|
|
56
56
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -73,11 +73,11 @@ const SchemaOut$CreateRequest = z
|
|
|
73
73
|
assets: v1_video_to_video_create_body_assets_1.Schemas$V1VideoToVideoCreateBodyAssets.out,
|
|
74
74
|
endSeconds: z.number(),
|
|
75
75
|
fpsResolution: z.enum(["FULL", "HALF"]).optional(),
|
|
76
|
-
height: z.number().int().optional(),
|
|
76
|
+
height: z.number().int().nullable().optional(),
|
|
77
77
|
name: z.string().optional(),
|
|
78
78
|
startSeconds: z.number(),
|
|
79
79
|
style: v1_video_to_video_create_body_style_1.Schemas$V1VideoToVideoCreateBodyStyle.out,
|
|
80
|
-
width: z.number().int().optional(),
|
|
80
|
+
width: z.number().int().nullable().optional(),
|
|
81
81
|
})
|
|
82
82
|
.transform((obj) => {
|
|
83
83
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -13,16 +13,15 @@ export type V1FaceSwapCreateBody = {
|
|
|
13
13
|
*/
|
|
14
14
|
endSeconds: number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* Output resolution is determined by the **minimum** of:
|
|
19
|
+
* - The resolution of the input video
|
|
20
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
23
|
*/
|
|
25
|
-
height?: number | undefined;
|
|
24
|
+
height?: number | null | undefined;
|
|
26
25
|
/**
|
|
27
26
|
* The name of video. This value is mainly used for your own identification of the video.
|
|
28
27
|
*/
|
|
@@ -32,16 +31,15 @@ export type V1FaceSwapCreateBody = {
|
|
|
32
31
|
*/
|
|
33
32
|
startSeconds: number;
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* * If width is provided, height will also be required. The larger value between width and height will be used to determine the maximum output resolution while maintaining the original aspect ratio.
|
|
38
|
-
* * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
|
|
34
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
39
35
|
*
|
|
40
|
-
*
|
|
36
|
+
* Output resolution is determined by the **minimum** of:
|
|
37
|
+
* - The resolution of the input video
|
|
38
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
41
39
|
*
|
|
42
|
-
*
|
|
40
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
43
41
|
*/
|
|
44
|
-
width?: number | undefined;
|
|
42
|
+
width?: number | null | undefined;
|
|
45
43
|
};
|
|
46
44
|
/**
|
|
47
45
|
* @internal
|
|
@@ -51,10 +49,10 @@ export type V1FaceSwapCreateBody = {
|
|
|
51
49
|
export type External$V1FaceSwapCreateBody = {
|
|
52
50
|
assets: External$V1FaceSwapCreateBodyAssets;
|
|
53
51
|
end_seconds: number;
|
|
54
|
-
height?: number | undefined;
|
|
52
|
+
height?: number | null | undefined;
|
|
55
53
|
name?: string | undefined;
|
|
56
54
|
start_seconds: number;
|
|
57
|
-
width?: number | undefined;
|
|
55
|
+
width?: number | null | undefined;
|
|
58
56
|
};
|
|
59
57
|
export declare const Schemas$V1FaceSwapCreateBody: {
|
|
60
58
|
in: z.ZodType<V1FaceSwapCreateBody, z.ZodTypeDef, unknown>;
|
|
@@ -44,10 +44,10 @@ const SchemaIn$V1FaceSwapCreateBody = z
|
|
|
44
44
|
.object({
|
|
45
45
|
assets: v1_face_swap_create_body_assets_1.Schemas$V1FaceSwapCreateBodyAssets.in,
|
|
46
46
|
end_seconds: z.number(),
|
|
47
|
-
height: z.number().int().optional(),
|
|
47
|
+
height: z.number().int().nullable().optional(),
|
|
48
48
|
name: z.string().optional(),
|
|
49
49
|
start_seconds: z.number(),
|
|
50
|
-
width: z.number().int().optional(),
|
|
50
|
+
width: z.number().int().nullable().optional(),
|
|
51
51
|
})
|
|
52
52
|
.transform((obj) => {
|
|
53
53
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -67,10 +67,10 @@ const SchemaOut$V1FaceSwapCreateBody = z
|
|
|
67
67
|
.object({
|
|
68
68
|
assets: v1_face_swap_create_body_assets_1.Schemas$V1FaceSwapCreateBodyAssets.out,
|
|
69
69
|
endSeconds: z.number(),
|
|
70
|
-
height: z.number().int().optional(),
|
|
70
|
+
height: z.number().int().nullable().optional(),
|
|
71
71
|
name: z.string().optional(),
|
|
72
72
|
startSeconds: z.number(),
|
|
73
|
-
width: z.number().int().optional(),
|
|
73
|
+
width: z.number().int().nullable().optional(),
|
|
74
74
|
})
|
|
75
75
|
.transform((obj) => {
|
|
76
76
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -14,11 +14,15 @@ export type V1ImageToVideoCreateBody = {
|
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* Output resolution is determined by the **minimum** of:
|
|
20
|
+
* - The resolution of the input video
|
|
21
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
+
*
|
|
23
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
20
24
|
*/
|
|
21
|
-
height?: number | undefined;
|
|
25
|
+
height?: number | null | undefined;
|
|
22
26
|
/**
|
|
23
27
|
* The name of video. This value is mainly used for your own identification of the video.
|
|
24
28
|
*/
|
|
@@ -39,11 +43,15 @@ export type V1ImageToVideoCreateBody = {
|
|
|
39
43
|
*/
|
|
40
44
|
style?: V1ImageToVideoCreateBodyStyle | undefined;
|
|
41
45
|
/**
|
|
42
|
-
*
|
|
46
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
47
|
+
*
|
|
48
|
+
* Output resolution is determined by the **minimum** of:
|
|
49
|
+
* - The resolution of the input video
|
|
50
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
43
51
|
*
|
|
44
|
-
*
|
|
52
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
45
53
|
*/
|
|
46
|
-
width?: number | undefined;
|
|
54
|
+
width?: number | null | undefined;
|
|
47
55
|
};
|
|
48
56
|
/**
|
|
49
57
|
* @internal
|
|
@@ -53,11 +61,11 @@ export type V1ImageToVideoCreateBody = {
|
|
|
53
61
|
export type External$V1ImageToVideoCreateBody = {
|
|
54
62
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
55
63
|
end_seconds: number;
|
|
56
|
-
height?: number | undefined;
|
|
64
|
+
height?: number | null | undefined;
|
|
57
65
|
name?: string | undefined;
|
|
58
66
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
59
67
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
60
|
-
width?: number | undefined;
|
|
68
|
+
width?: number | null | undefined;
|
|
61
69
|
};
|
|
62
70
|
export declare const Schemas$V1ImageToVideoCreateBody: {
|
|
63
71
|
in: z.ZodType<V1ImageToVideoCreateBody, z.ZodTypeDef, unknown>;
|
|
@@ -45,11 +45,11 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
-
height: z.number().int().optional(),
|
|
48
|
+
height: z.number().int().nullable().optional(),
|
|
49
49
|
name: z.string().optional(),
|
|
50
50
|
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
51
51
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in.optional(),
|
|
52
|
-
width: z.number().int().optional(),
|
|
52
|
+
width: z.number().int().nullable().optional(),
|
|
53
53
|
})
|
|
54
54
|
.transform((obj) => {
|
|
55
55
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -70,11 +70,11 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
70
70
|
.object({
|
|
71
71
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
72
72
|
endSeconds: z.number(),
|
|
73
|
-
height: z.number().int().optional(),
|
|
73
|
+
height: z.number().int().nullable().optional(),
|
|
74
74
|
name: z.string().optional(),
|
|
75
75
|
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
76
76
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out.optional(),
|
|
77
|
-
width: z.number().int().optional(),
|
|
77
|
+
width: z.number().int().nullable().optional(),
|
|
78
78
|
})
|
|
79
79
|
.transform((obj) => {
|
|
80
80
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -13,16 +13,15 @@ export type V1LipSyncCreateBody = {
|
|
|
13
13
|
*/
|
|
14
14
|
endSeconds: number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* Output resolution is determined by the **minimum** of:
|
|
19
|
+
* - The resolution of the input video
|
|
20
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
23
|
*/
|
|
25
|
-
height?: number | undefined;
|
|
24
|
+
height?: number | null | undefined;
|
|
26
25
|
/**
|
|
27
26
|
* Defines the maximum FPS (frames per second) for the output video. If the input video's FPS is lower than this limit, the output video will retain the input FPS. This is useful for reducing unnecessary frame usage in scenarios where high FPS is not required.
|
|
28
27
|
*/
|
|
@@ -36,16 +35,15 @@ export type V1LipSyncCreateBody = {
|
|
|
36
35
|
*/
|
|
37
36
|
startSeconds: number;
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* * If width is provided, height will also be required. The larger value between width and height will be used to determine the maximum output resolution while maintaining the original aspect ratio.
|
|
42
|
-
* * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
|
|
38
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
43
39
|
*
|
|
44
|
-
*
|
|
40
|
+
* Output resolution is determined by the **minimum** of:
|
|
41
|
+
* - The resolution of the input video
|
|
42
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
45
43
|
*
|
|
46
|
-
*
|
|
44
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
47
45
|
*/
|
|
48
|
-
width?: number | undefined;
|
|
46
|
+
width?: number | null | undefined;
|
|
49
47
|
};
|
|
50
48
|
/**
|
|
51
49
|
* @internal
|
|
@@ -55,11 +53,11 @@ export type V1LipSyncCreateBody = {
|
|
|
55
53
|
export type External$V1LipSyncCreateBody = {
|
|
56
54
|
assets: External$V1LipSyncCreateBodyAssets;
|
|
57
55
|
end_seconds: number;
|
|
58
|
-
height?: number | undefined;
|
|
56
|
+
height?: number | null | undefined;
|
|
59
57
|
max_fps_limit?: number | undefined;
|
|
60
58
|
name?: string | undefined;
|
|
61
59
|
start_seconds: number;
|
|
62
|
-
width?: number | undefined;
|
|
60
|
+
width?: number | null | undefined;
|
|
63
61
|
};
|
|
64
62
|
export declare const Schemas$V1LipSyncCreateBody: {
|
|
65
63
|
in: z.ZodType<V1LipSyncCreateBody, z.ZodTypeDef, unknown>;
|
|
@@ -44,11 +44,11 @@ const SchemaIn$V1LipSyncCreateBody = z
|
|
|
44
44
|
.object({
|
|
45
45
|
assets: v1_lip_sync_create_body_assets_1.Schemas$V1LipSyncCreateBodyAssets.in,
|
|
46
46
|
end_seconds: z.number(),
|
|
47
|
-
height: z.number().int().optional(),
|
|
47
|
+
height: z.number().int().nullable().optional(),
|
|
48
48
|
max_fps_limit: z.number().optional(),
|
|
49
49
|
name: z.string().optional(),
|
|
50
50
|
start_seconds: z.number(),
|
|
51
|
-
width: z.number().int().optional(),
|
|
51
|
+
width: z.number().int().nullable().optional(),
|
|
52
52
|
})
|
|
53
53
|
.transform((obj) => {
|
|
54
54
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -69,11 +69,11 @@ const SchemaOut$V1LipSyncCreateBody = z
|
|
|
69
69
|
.object({
|
|
70
70
|
assets: v1_lip_sync_create_body_assets_1.Schemas$V1LipSyncCreateBodyAssets.out,
|
|
71
71
|
endSeconds: z.number(),
|
|
72
|
-
height: z.number().int().optional(),
|
|
72
|
+
height: z.number().int().nullable().optional(),
|
|
73
73
|
maxFpsLimit: z.number().optional(),
|
|
74
74
|
name: z.string().optional(),
|
|
75
75
|
startSeconds: z.number(),
|
|
76
|
-
width: z.number().int().optional(),
|
|
76
|
+
width: z.number().int().nullable().optional(),
|
|
77
77
|
})
|
|
78
78
|
.transform((obj) => {
|
|
79
79
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -20,16 +20,15 @@ export type V1VideoToVideoCreateBody = {
|
|
|
20
20
|
*/
|
|
21
21
|
fpsResolution?: ("FULL" | "HALF") | undefined;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* `height` is deprecated and no longer influences the output video's resolution.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
25
|
+
* Output resolution is determined by the **minimum** of:
|
|
26
|
+
* - The resolution of the input video
|
|
27
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
27
28
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
29
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
31
30
|
*/
|
|
32
|
-
height?: number | undefined;
|
|
31
|
+
height?: number | null | undefined;
|
|
33
32
|
/**
|
|
34
33
|
* The name of video. This value is mainly used for your own identification of the video.
|
|
35
34
|
*/
|
|
@@ -40,16 +39,15 @@ export type V1VideoToVideoCreateBody = {
|
|
|
40
39
|
startSeconds: number;
|
|
41
40
|
style: V1VideoToVideoCreateBodyStyle;
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* * If width is provided, height will also be required. The larger value between width and height will be used to determine the maximum output resolution while maintaining the original aspect ratio.
|
|
46
|
-
* * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
|
|
42
|
+
* `width` is deprecated and no longer influences the output video's resolution.
|
|
47
43
|
*
|
|
48
|
-
*
|
|
44
|
+
* Output resolution is determined by the **minimum** of:
|
|
45
|
+
* - The resolution of the input video
|
|
46
|
+
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
49
47
|
*
|
|
50
|
-
*
|
|
48
|
+
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
51
49
|
*/
|
|
52
|
-
width?: number | undefined;
|
|
50
|
+
width?: number | null | undefined;
|
|
53
51
|
};
|
|
54
52
|
/**
|
|
55
53
|
* @internal
|
|
@@ -60,11 +58,11 @@ export type External$V1VideoToVideoCreateBody = {
|
|
|
60
58
|
assets: External$V1VideoToVideoCreateBodyAssets;
|
|
61
59
|
end_seconds: number;
|
|
62
60
|
fps_resolution?: ("FULL" | "HALF") | undefined;
|
|
63
|
-
height?: number | undefined;
|
|
61
|
+
height?: number | null | undefined;
|
|
64
62
|
name?: string | undefined;
|
|
65
63
|
start_seconds: number;
|
|
66
64
|
style: External$V1VideoToVideoCreateBodyStyle;
|
|
67
|
-
width?: number | undefined;
|
|
65
|
+
width?: number | null | undefined;
|
|
68
66
|
};
|
|
69
67
|
export declare const Schemas$V1VideoToVideoCreateBody: {
|
|
70
68
|
in: z.ZodType<V1VideoToVideoCreateBody, z.ZodTypeDef, unknown>;
|
|
@@ -46,11 +46,11 @@ const SchemaIn$V1VideoToVideoCreateBody = z
|
|
|
46
46
|
assets: v1_video_to_video_create_body_assets_1.Schemas$V1VideoToVideoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
48
|
fps_resolution: z.enum(["FULL", "HALF"]).optional(),
|
|
49
|
-
height: z.number().int().optional(),
|
|
49
|
+
height: z.number().int().nullable().optional(),
|
|
50
50
|
name: z.string().optional(),
|
|
51
51
|
start_seconds: z.number(),
|
|
52
52
|
style: v1_video_to_video_create_body_style_1.Schemas$V1VideoToVideoCreateBodyStyle.in,
|
|
53
|
-
width: z.number().int().optional(),
|
|
53
|
+
width: z.number().int().nullable().optional(),
|
|
54
54
|
})
|
|
55
55
|
.transform((obj) => {
|
|
56
56
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -73,11 +73,11 @@ const SchemaOut$V1VideoToVideoCreateBody = z
|
|
|
73
73
|
assets: v1_video_to_video_create_body_assets_1.Schemas$V1VideoToVideoCreateBodyAssets.out,
|
|
74
74
|
endSeconds: z.number(),
|
|
75
75
|
fpsResolution: z.enum(["FULL", "HALF"]).optional(),
|
|
76
|
-
height: z.number().int().optional(),
|
|
76
|
+
height: z.number().int().nullable().optional(),
|
|
77
77
|
name: z.string().optional(),
|
|
78
78
|
startSeconds: z.number(),
|
|
79
79
|
style: v1_video_to_video_create_body_style_1.Schemas$V1VideoToVideoCreateBodyStyle.out,
|
|
80
|
-
width: z.number().int().optional(),
|
|
80
|
+
width: z.number().int().nullable().optional(),
|
|
81
81
|
})
|
|
82
82
|
.transform((obj) => {
|
|
83
83
|
return (0, core_1.zodTransform)(obj, {
|