magic-hour 0.17.0 → 0.18.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/image-to-video/request-types.d.ts +10 -6
- package/dist/resources/v1/image-to-video/request-types.js +4 -4
- package/dist/types/v1-image-to-video-create-body.d.ts +10 -6
- package/dist/types/v1-image-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.18.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -14,9 +14,11 @@ export type CreateRequest = {
|
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* This field does not affect the output video's resolution. The video's orientation will match that of the input image.
|
|
18
|
+
*
|
|
19
|
+
* It is retained solely for backward compatibility and will be deprecated in the future.
|
|
18
20
|
*/
|
|
19
|
-
height
|
|
21
|
+
height?: number | undefined;
|
|
20
22
|
/**
|
|
21
23
|
* The name of video
|
|
22
24
|
*/
|
|
@@ -26,9 +28,11 @@ export type CreateRequest = {
|
|
|
26
28
|
*/
|
|
27
29
|
style: V1ImageToVideoCreateBodyStyle;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* This field does not affect the output video's resolution. The video's orientation will match that of the input image.
|
|
32
|
+
*
|
|
33
|
+
* It is retained solely for backward compatibility and will be deprecated in the future.
|
|
30
34
|
*/
|
|
31
|
-
width
|
|
35
|
+
width?: number | undefined;
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
38
|
* @internal
|
|
@@ -38,10 +42,10 @@ export type CreateRequest = {
|
|
|
38
42
|
export type External$CreateRequest = {
|
|
39
43
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
40
44
|
end_seconds: number;
|
|
41
|
-
height
|
|
45
|
+
height?: number | undefined;
|
|
42
46
|
name?: string | undefined;
|
|
43
47
|
style: External$V1ImageToVideoCreateBodyStyle;
|
|
44
|
-
width
|
|
48
|
+
width?: number | undefined;
|
|
45
49
|
};
|
|
46
50
|
export declare const Schemas$CreateRequest: {
|
|
47
51
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -45,10 +45,10 @@ 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(),
|
|
48
|
+
height: z.number().int().optional(),
|
|
49
49
|
name: z.string().optional(),
|
|
50
50
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in,
|
|
51
|
-
width: z.number().int(),
|
|
51
|
+
width: z.number().int().optional(),
|
|
52
52
|
})
|
|
53
53
|
.transform((obj) => {
|
|
54
54
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -68,10 +68,10 @@ const SchemaOut$CreateRequest = z
|
|
|
68
68
|
.object({
|
|
69
69
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
70
70
|
endSeconds: z.number(),
|
|
71
|
-
height: z.number().int(),
|
|
71
|
+
height: z.number().int().optional(),
|
|
72
72
|
name: z.string().optional(),
|
|
73
73
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out,
|
|
74
|
-
width: z.number().int(),
|
|
74
|
+
width: z.number().int().optional(),
|
|
75
75
|
})
|
|
76
76
|
.transform((obj) => {
|
|
77
77
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -14,9 +14,11 @@ export type V1ImageToVideoCreateBody = {
|
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* This field does not affect the output video's resolution. The video's orientation will match that of the input image.
|
|
18
|
+
*
|
|
19
|
+
* It is retained solely for backward compatibility and will be deprecated in the future.
|
|
18
20
|
*/
|
|
19
|
-
height
|
|
21
|
+
height?: number | undefined;
|
|
20
22
|
/**
|
|
21
23
|
* The name of video
|
|
22
24
|
*/
|
|
@@ -26,9 +28,11 @@ export type V1ImageToVideoCreateBody = {
|
|
|
26
28
|
*/
|
|
27
29
|
style: V1ImageToVideoCreateBodyStyle;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* This field does not affect the output video's resolution. The video's orientation will match that of the input image.
|
|
32
|
+
*
|
|
33
|
+
* It is retained solely for backward compatibility and will be deprecated in the future.
|
|
30
34
|
*/
|
|
31
|
-
width
|
|
35
|
+
width?: number | undefined;
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
38
|
* @internal
|
|
@@ -38,10 +42,10 @@ export type V1ImageToVideoCreateBody = {
|
|
|
38
42
|
export type External$V1ImageToVideoCreateBody = {
|
|
39
43
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
40
44
|
end_seconds: number;
|
|
41
|
-
height
|
|
45
|
+
height?: number | undefined;
|
|
42
46
|
name?: string | undefined;
|
|
43
47
|
style: External$V1ImageToVideoCreateBodyStyle;
|
|
44
|
-
width
|
|
48
|
+
width?: number | undefined;
|
|
45
49
|
};
|
|
46
50
|
export declare const Schemas$V1ImageToVideoCreateBody: {
|
|
47
51
|
in: z.ZodType<V1ImageToVideoCreateBody, z.ZodTypeDef, unknown>;
|
|
@@ -45,10 +45,10 @@ 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(),
|
|
48
|
+
height: z.number().int().optional(),
|
|
49
49
|
name: z.string().optional(),
|
|
50
50
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in,
|
|
51
|
-
width: z.number().int(),
|
|
51
|
+
width: z.number().int().optional(),
|
|
52
52
|
})
|
|
53
53
|
.transform((obj) => {
|
|
54
54
|
return (0, core_1.zodTransform)(obj, {
|
|
@@ -68,10 +68,10 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
68
68
|
.object({
|
|
69
69
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
70
70
|
endSeconds: z.number(),
|
|
71
|
-
height: z.number().int(),
|
|
71
|
+
height: z.number().int().optional(),
|
|
72
72
|
name: z.string().optional(),
|
|
73
73
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out,
|
|
74
|
-
width: z.number().int(),
|
|
74
|
+
width: z.number().int().optional(),
|
|
75
75
|
})
|
|
76
76
|
.transform((obj) => {
|
|
77
77
|
return (0, core_1.zodTransform)(obj, {
|