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.
@@ -1,4 +1,4 @@
1
1
  export declare enum Environment {
2
2
  Environment = "https://api.magichour.ai",
3
- MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.17.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.18.0"
4
4
  }
@@ -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.17.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
- * The height of the input video. This value will help determine the final orientation of the output video. The output video resolution may not match the input.
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: number;
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
- * The width of the input video. This value will help determine the final orientation of the output video. The output video resolution may not match the input.
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: number;
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: number;
45
+ height?: number | undefined;
42
46
  name?: string | undefined;
43
47
  style: External$V1ImageToVideoCreateBodyStyle;
44
- width: number;
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
- * The height of the input video. This value will help determine the final orientation of the output video. The output video resolution may not match the input.
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: number;
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
- * The width of the input video. This value will help determine the final orientation of the output video. The output video resolution may not match the input.
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: number;
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: number;
45
+ height?: number | undefined;
42
46
  name?: string | undefined;
43
47
  style: External$V1ImageToVideoCreateBodyStyle;
44
- width: number;
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {