magic-hour 0.14.0 → 0.15.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.14.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.15.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.14.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.15.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -13,9 +13,16 @@ export type CreateRequest = {
13
13
  */
14
14
  endSeconds: number;
15
15
  /**
16
- * The height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
16
+ * Used to determine the dimensions of the output video.
17
+ *
18
+ * * If height is provided, width 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.
19
+ * * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
20
+ *
21
+ * Note: if the video's original resolution is less than the maximum, the video will not be resized.
22
+ *
23
+ * See our [pricing page](https://magichour.ai/pricing) for more details.
17
24
  */
18
- height: number;
25
+ height?: number | undefined;
19
26
  /**
20
27
  * The name of video
21
28
  */
@@ -25,9 +32,16 @@ export type CreateRequest = {
25
32
  */
26
33
  startSeconds: number;
27
34
  /**
28
- * The width of the final output video. The maximum width depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
35
+ * Used to determine the dimensions of the output video.
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.
39
+ *
40
+ * Note: if the video's original resolution is less than the maximum, the video will not be resized.
41
+ *
42
+ * See our [pricing page](https://magichour.ai/pricing) for more details.
29
43
  */
30
- width: number;
44
+ width?: number | undefined;
31
45
  };
32
46
  /**
33
47
  * @internal
@@ -37,10 +51,10 @@ export type CreateRequest = {
37
51
  export type External$CreateRequest = {
38
52
  assets: External$V1FaceSwapCreateBodyAssets;
39
53
  end_seconds: number;
40
- height: number;
54
+ height?: number | undefined;
41
55
  name?: string | undefined;
42
56
  start_seconds: number;
43
- width: number;
57
+ width?: number | undefined;
44
58
  };
45
59
  export declare const Schemas$CreateRequest: {
46
60
  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(),
47
+ height: z.number().int().optional(),
48
48
  name: z.string().optional(),
49
49
  start_seconds: z.number(),
50
- width: z.number().int(),
50
+ width: z.number().int().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(),
70
+ height: z.number().int().optional(),
71
71
  name: z.string().optional(),
72
72
  startSeconds: z.number(),
73
- width: z.number().int(),
73
+ width: z.number().int().optional(),
74
74
  })
75
75
  .transform((obj) => {
76
76
  return (0, core_1.zodTransform)(obj, {
@@ -13,9 +13,16 @@ export type V1FaceSwapCreateBody = {
13
13
  */
14
14
  endSeconds: number;
15
15
  /**
16
- * The height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
16
+ * Used to determine the dimensions of the output video.
17
+ *
18
+ * * If height is provided, width 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.
19
+ * * If both height and width are omitted, the video will be resized according to your subscription's maximum resolution, while preserving aspect ratio.
20
+ *
21
+ * Note: if the video's original resolution is less than the maximum, the video will not be resized.
22
+ *
23
+ * See our [pricing page](https://magichour.ai/pricing) for more details.
17
24
  */
18
- height: number;
25
+ height?: number | undefined;
19
26
  /**
20
27
  * The name of video
21
28
  */
@@ -25,9 +32,16 @@ export type V1FaceSwapCreateBody = {
25
32
  */
26
33
  startSeconds: number;
27
34
  /**
28
- * The width of the final output video. The maximum width depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
35
+ * Used to determine the dimensions of the output video.
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.
39
+ *
40
+ * Note: if the video's original resolution is less than the maximum, the video will not be resized.
41
+ *
42
+ * See our [pricing page](https://magichour.ai/pricing) for more details.
29
43
  */
30
- width: number;
44
+ width?: number | undefined;
31
45
  };
32
46
  /**
33
47
  * @internal
@@ -37,10 +51,10 @@ export type V1FaceSwapCreateBody = {
37
51
  export type External$V1FaceSwapCreateBody = {
38
52
  assets: External$V1FaceSwapCreateBodyAssets;
39
53
  end_seconds: number;
40
- height: number;
54
+ height?: number | undefined;
41
55
  name?: string | undefined;
42
56
  start_seconds: number;
43
- width: number;
57
+ width?: number | undefined;
44
58
  };
45
59
  export declare const Schemas$V1FaceSwapCreateBody: {
46
60
  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(),
47
+ height: z.number().int().optional(),
48
48
  name: z.string().optional(),
49
49
  start_seconds: z.number(),
50
- width: z.number().int(),
50
+ width: z.number().int().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(),
70
+ height: z.number().int().optional(),
71
71
  name: z.string().optional(),
72
72
  startSeconds: z.number(),
73
- width: z.number().int(),
73
+ width: z.number().int().optional(),
74
74
  })
75
75
  .transform((obj) => {
76
76
  return (0, core_1.zodTransform)(obj, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {