magic-hour 0.8.6 → 0.9.1

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.8.5"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.9.1"
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.8.5";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.9.1";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1AnimationBodyAssets = {
6
6
  /**
7
- * The path of the input audio. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `audio_source` is `file`
7
+ * The path of the input audio. This field is required if `audio_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
8
8
  */
9
9
  audioFilePath?: string | undefined;
10
10
  /**
@@ -12,7 +12,7 @@ export type PostV1AnimationBodyAssets = {
12
12
  */
13
13
  audioSource: "file" | "none" | "youtube";
14
14
  /**
15
- * An initial image to use a the first frame of the video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
15
+ * An initial image to use a the first frame of the video. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
16
16
  */
17
17
  imageFilePath?: string | undefined;
18
18
  /**
@@ -3,6 +3,10 @@ import * as z from "zod";
3
3
  * PostV1ImageToVideoBodyStyle
4
4
  */
5
5
  export type PostV1ImageToVideoBodyStyle = {
6
+ /**
7
+ * High Quality mode enhances detail, sharpness, and realism, making it ideal for portraits, animals, and intricate landscapes.
8
+ */
9
+ highQuality?: boolean | undefined;
6
10
  /**
7
11
  * The prompt used for the video.
8
12
  */
@@ -14,6 +18,7 @@ export type PostV1ImageToVideoBodyStyle = {
14
18
  * we expect to come in as network data
15
19
  */
16
20
  export type External$PostV1ImageToVideoBodyStyle = {
21
+ high_quality?: boolean | undefined;
17
22
  prompt: string | null;
18
23
  };
19
24
  export declare const Schemas$PostV1ImageToVideoBodyStyle: {
@@ -41,10 +41,12 @@ const z = __importStar(require("zod"));
41
41
  */
42
42
  const SchemaIn$PostV1ImageToVideoBodyStyle = z
43
43
  .object({
44
+ high_quality: z.boolean().optional(),
44
45
  prompt: z.string().nullable(),
45
46
  })
46
47
  .transform((obj) => {
47
48
  return (0, core_1.zodTransform)(obj, {
49
+ high_quality: "highQuality",
48
50
  prompt: "prompt",
49
51
  });
50
52
  });
@@ -54,10 +56,12 @@ const SchemaIn$PostV1ImageToVideoBodyStyle = z
54
56
  */
55
57
  const SchemaOut$PostV1ImageToVideoBodyStyle = z
56
58
  .object({
59
+ highQuality: z.boolean().optional(),
57
60
  prompt: z.string().nullable(),
58
61
  })
59
62
  .transform((obj) => {
60
63
  return (0, core_1.zodTransform)(obj, {
64
+ highQuality: "high_quality",
61
65
  prompt: "prompt",
62
66
  });
63
67
  });
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1VideoToVideoBodyAssets = {
6
6
  /**
7
- * The path of the input video. This field is required if `video_source` is `file`. This value is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls).
7
+ * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
8
8
  */
9
9
  videoFilePath?: string | undefined;
10
10
  videoSource: "file" | "youtube";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.8.6",
3
+ "version": "0.9.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {